diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index ae42f954..0d0f0ff4 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -5,8 +5,8 @@ management: docVersion: 1.1.1 speakeasyVersion: 1.665.0 generationVersion: 2.767.2 - releaseVersion: 0.44.0 - configChecksum: 2c2d20783109d054e322cf01eaa8396e + releaseVersion: 0.44.1 + configChecksum: 1e8bce40b14b78785c117b8d4d291692 repoURL: https://github.com/LukeHagar/plexjs.git repoSubDirectory: . installationURL: https://github.com/LukeHagar/plexjs @@ -48,1100 +48,924 @@ generatedFiles: - RUNTIMES.md - USAGE.md - docs/lib/utils/retryconfig.md - - docs/sdk/models/errors/getserverresourcesunauthorizederror.md - - docs/sdk/models/errors/gettokendetailsbadrequesterror.md - - docs/sdk/models/errors/gettokendetailsunauthorizederror.md - - docs/sdk/models/errors/getusersbadrequesterror.md - - docs/sdk/models/errors/getusersunauthorizederror.md - - docs/sdk/models/errors/postuserssignindatabadrequesterror.md - - docs/sdk/models/errors/postuserssignindataunauthorizederror.md - - docs/sdk/models/operations/account.md - - docs/sdk/models/operations/action.md - - docs/sdk/models/operations/activity.md - - docs/sdk/models/operations/addcollectionitemsglobals.md - - docs/sdk/models/operations/addcollectionitemsrequest.md - - docs/sdk/models/operations/addcollectionitemsresponse.md - - docs/sdk/models/operations/adddeviceglobals.md - - docs/sdk/models/operations/adddevicerequest.md - - docs/sdk/models/operations/adddeviceresponse.md - - docs/sdk/models/operations/adddevicetodvrdvr.md - - docs/sdk/models/operations/adddevicetodvrglobals.md - - docs/sdk/models/operations/adddevicetodvrmediacontainer.md - - docs/sdk/models/operations/adddevicetodvrmediacontainermediacontainer.md - - docs/sdk/models/operations/adddevicetodvrrequest.md - - docs/sdk/models/operations/adddevicetodvrresponse.md - - docs/sdk/models/operations/adddevicetodvrresponsebody.md - - docs/sdk/models/operations/adddownloadqueueitemsglobals.md - - docs/sdk/models/operations/adddownloadqueueitemsmediacontainer.md - - docs/sdk/models/operations/adddownloadqueueitemsrequest.md - - docs/sdk/models/operations/adddownloadqueueitemsresponse.md - - docs/sdk/models/operations/adddownloadqueueitemsresponsebody.md - - docs/sdk/models/operations/addedqueueitem.md - - docs/sdk/models/operations/addextrasglobals.md - - docs/sdk/models/operations/addextrasrequest.md - - docs/sdk/models/operations/addextrasresponse.md - - docs/sdk/models/operations/addlineupdvr.md - - docs/sdk/models/operations/addlineupglobals.md - - docs/sdk/models/operations/addlineupmediacontainer.md - - docs/sdk/models/operations/addlineupmediacontainermediacontainer.md - - docs/sdk/models/operations/addlineuprequest.md - - docs/sdk/models/operations/addlineupresponse.md - - docs/sdk/models/operations/addlineupresponsebody.md - - docs/sdk/models/operations/addplaylistitemsglobals.md - - docs/sdk/models/operations/addplaylistitemsrequest.md - - docs/sdk/models/operations/addplaylistitemsresponse.md - - docs/sdk/models/operations/addproviderglobals.md - - docs/sdk/models/operations/addproviderrequest.md - - docs/sdk/models/operations/addproviderresponse.md - - docs/sdk/models/operations/addsectionglobals.md - - docs/sdk/models/operations/addsectionprefs.md - - docs/sdk/models/operations/addsectionrequest.md - - docs/sdk/models/operations/addsectionresponse.md - - docs/sdk/models/operations/addsubtitlesglobals.md - - docs/sdk/models/operations/addsubtitlesrequest.md - - docs/sdk/models/operations/addsubtitlesresponse.md - - docs/sdk/models/operations/addtoplayqueueglobals.md - - docs/sdk/models/operations/addtoplayqueuerequest.md - - docs/sdk/models/operations/addtoplayqueueresponse.md - - docs/sdk/models/operations/advancedsubtitles.md - - docs/sdk/models/operations/alllibraries.md - - docs/sdk/models/operations/allowcameraupload.md - - docs/sdk/models/operations/allowchannels.md - - docs/sdk/models/operations/allowsubtitleadmin.md - - docs/sdk/models/operations/allowsync.md - - docs/sdk/models/operations/allowtuners.md - - docs/sdk/models/operations/analyzemetadataglobals.md - - docs/sdk/models/operations/analyzemetadatarequest.md - - docs/sdk/models/operations/analyzemetadataresponse.md - - docs/sdk/models/operations/applyupdatesglobals.md - - docs/sdk/models/operations/applyupdatesrequest.md - - docs/sdk/models/operations/applyupdatesresponse.md - - docs/sdk/models/operations/autocompleteglobals.md - - docs/sdk/models/operations/autocompleterequest.md - - docs/sdk/models/operations/autocompleteresponse.md - - docs/sdk/models/operations/bandwidth.md - - docs/sdk/models/operations/bandwidths.md - - docs/sdk/models/operations/billing.md - - docs/sdk/models/operations/butlertasks.md - - docs/sdk/models/operations/cancelactivityglobals.md - - docs/sdk/models/operations/cancelactivityrequest.md - - docs/sdk/models/operations/cancelactivityresponse.md - - docs/sdk/models/operations/cancelgrabglobals.md - - docs/sdk/models/operations/cancelgrabrequest.md - - docs/sdk/models/operations/cancelgrabresponse.md - - docs/sdk/models/operations/cancelrefreshglobals.md - - docs/sdk/models/operations/cancelrefreshrequest.md - - docs/sdk/models/operations/cancelrefreshresponse.md - - docs/sdk/models/operations/channelmappingbykey.md - - docs/sdk/models/operations/checkupdatesglobals.md - - docs/sdk/models/operations/checkupdatesrequest.md - - docs/sdk/models/operations/checkupdatesresponse.md - - docs/sdk/models/operations/chromasubsampling.md - - docs/sdk/models/operations/cleanbundlesresponse.md - - docs/sdk/models/operations/clearplaylistitemsglobals.md - - docs/sdk/models/operations/clearplaylistitemsrequest.md - - docs/sdk/models/operations/clearplaylistitemsresponse.md - - docs/sdk/models/operations/clearplayqueueglobals.md - - docs/sdk/models/operations/clearplayqueuerequest.md - - docs/sdk/models/operations/clearplayqueueresponse.md - - docs/sdk/models/operations/computechannelmapchannelmapping.md - - docs/sdk/models/operations/computechannelmapglobals.md - - docs/sdk/models/operations/computechannelmapmediacontainer.md - - docs/sdk/models/operations/computechannelmaprequest.md - - docs/sdk/models/operations/computechannelmapresponse.md - - docs/sdk/models/operations/computechannelmapresponsebody.md - - docs/sdk/models/operations/connection.md - - docs/sdk/models/operations/connectwebsocketglobals.md - - docs/sdk/models/operations/connectwebsocketrequest.md - - docs/sdk/models/operations/connectwebsocketresponse.md - - docs/sdk/models/operations/createcollectionglobals.md - - docs/sdk/models/operations/createcollectionrequest.md - - docs/sdk/models/operations/createcollectionresponse.md - - docs/sdk/models/operations/createcustomhubglobals.md - - docs/sdk/models/operations/createcustomhubrequest.md - - docs/sdk/models/operations/createcustomhubresponse.md - - docs/sdk/models/operations/createdownloadqueuedownloadqueue.md - - docs/sdk/models/operations/createdownloadqueuemediacontainer.md - - docs/sdk/models/operations/createdownloadqueueresponse.md - - docs/sdk/models/operations/createdownloadqueueresponsebody.md - - docs/sdk/models/operations/createdownloadqueuestatus.md - - docs/sdk/models/operations/createdvrglobals.md - - docs/sdk/models/operations/createdvrrequest.md - - docs/sdk/models/operations/createdvrresponse.md - - docs/sdk/models/operations/createmarkerattributes.md - - docs/sdk/models/operations/createmarkerglobals.md - - docs/sdk/models/operations/createmarkermediacontainer.md - - docs/sdk/models/operations/createmarkerrequest.md - - docs/sdk/models/operations/createmarkerresponse.md - - docs/sdk/models/operations/createmarkerresponsebody.md - - docs/sdk/models/operations/createmarkertype.md - - docs/sdk/models/operations/createplaylistglobals.md - - docs/sdk/models/operations/createplaylistrequest.md - - docs/sdk/models/operations/createplaylistresponse.md - - docs/sdk/models/operations/createplayqueueglobals.md - - docs/sdk/models/operations/createplayqueuemediacontainer.md - - docs/sdk/models/operations/createplayqueuerequest.md - - docs/sdk/models/operations/createplayqueueresponse.md - - docs/sdk/models/operations/createplayqueueresponsebody.md - - docs/sdk/models/operations/createplayqueuetype.md - - docs/sdk/models/operations/createsubscriptionglobals.md - - docs/sdk/models/operations/createsubscriptionmediacontainer.md - - docs/sdk/models/operations/createsubscriptionprefs.md - - docs/sdk/models/operations/createsubscriptionrequest.md - - docs/sdk/models/operations/createsubscriptionresponse.md - - docs/sdk/models/operations/createsubscriptionresponsebody.md - - docs/sdk/models/operations/deletecachesresponse.md - - docs/sdk/models/operations/deletecollectionglobals.md - - docs/sdk/models/operations/deletecollectionitemglobals.md - - docs/sdk/models/operations/deletecollectionitemrequest.md - - docs/sdk/models/operations/deletecollectionitemresponse.md - - docs/sdk/models/operations/deletecollectionrequest.md - - docs/sdk/models/operations/deletecollectionresponse.md - - docs/sdk/models/operations/deletecustomhubglobals.md - - docs/sdk/models/operations/deletecustomhubrequest.md - - docs/sdk/models/operations/deletecustomhubresponse.md - - docs/sdk/models/operations/deletedvrglobals.md - - docs/sdk/models/operations/deletedvrrequest.md - - docs/sdk/models/operations/deletedvrresponse.md - - docs/sdk/models/operations/deletehistoryglobals.md - - docs/sdk/models/operations/deletehistoryrequest.md - - docs/sdk/models/operations/deletehistoryresponse.md - - docs/sdk/models/operations/deleteindexesglobals.md - - docs/sdk/models/operations/deleteindexesrequest.md - - docs/sdk/models/operations/deleteindexesresponse.md - - docs/sdk/models/operations/deleteintrosglobals.md - - docs/sdk/models/operations/deleteintrosrequest.md - - docs/sdk/models/operations/deleteintrosresponse.md - - docs/sdk/models/operations/deletelibrarysectionglobals.md - - docs/sdk/models/operations/deletelibrarysectionrequest.md - - docs/sdk/models/operations/deletelibrarysectionresponse.md - - docs/sdk/models/operations/deletelineupdvr.md - - docs/sdk/models/operations/deletelineupglobals.md - - docs/sdk/models/operations/deletelineupmediacontainer.md - - docs/sdk/models/operations/deletelineupmediacontainermediacontainer.md - - docs/sdk/models/operations/deletelineuprequest.md - - docs/sdk/models/operations/deletelineupresponse.md - - docs/sdk/models/operations/deletelineupresponsebody.md - - docs/sdk/models/operations/deletemarkerglobals.md - - docs/sdk/models/operations/deletemarkerrequest.md - - docs/sdk/models/operations/deletemarkerresponse.md - - docs/sdk/models/operations/deletemediaitemglobals.md - - docs/sdk/models/operations/deletemediaitemrequest.md - - docs/sdk/models/operations/deletemediaitemresponse.md - - docs/sdk/models/operations/deletemediaproviderglobals.md - - docs/sdk/models/operations/deletemediaproviderrequest.md - - docs/sdk/models/operations/deletemediaproviderresponse.md - - docs/sdk/models/operations/deletemetadataitemglobals.md - - docs/sdk/models/operations/deletemetadataitemrequest.md - - docs/sdk/models/operations/deletemetadataitemresponse.md - - docs/sdk/models/operations/deleteplaylistglobals.md - - docs/sdk/models/operations/deleteplaylistitemglobals.md - - docs/sdk/models/operations/deleteplaylistitemrequest.md - - docs/sdk/models/operations/deleteplaylistitemresponse.md - - docs/sdk/models/operations/deleteplaylistrequest.md - - docs/sdk/models/operations/deleteplaylistresponse.md - - docs/sdk/models/operations/deleteplayqueueitemglobals.md - - docs/sdk/models/operations/deleteplayqueueitemrequest.md - - docs/sdk/models/operations/deleteplayqueueitemresponse.md - - docs/sdk/models/operations/deletestreamglobals.md - - docs/sdk/models/operations/deletestreamrequest.md - - docs/sdk/models/operations/deletestreamresponse.md - - docs/sdk/models/operations/deletesubscriptionglobals.md - - docs/sdk/models/operations/deletesubscriptionrequest.md - - docs/sdk/models/operations/deletesubscriptionresponse.md - - docs/sdk/models/operations/detectadsglobals.md - - docs/sdk/models/operations/detectadsrequest.md - - docs/sdk/models/operations/detectadsresponse.md - - docs/sdk/models/operations/detectcreditsglobals.md - - docs/sdk/models/operations/detectcreditsrequest.md - - docs/sdk/models/operations/detectcreditsresponse.md - - docs/sdk/models/operations/detectintrosglobals.md - - docs/sdk/models/operations/detectintrosrequest.md - - docs/sdk/models/operations/detectintrosresponse.md - - docs/sdk/models/operations/detectvoiceactivityglobals.md - - docs/sdk/models/operations/detectvoiceactivityrequest.md - - docs/sdk/models/operations/detectvoiceactivityresponse.md - - docs/sdk/models/operations/devicechannel.md - - docs/sdk/models/operations/discoverdevicesresponse.md - - docs/sdk/models/operations/editmarkerattributes.md - - docs/sdk/models/operations/editmarkerglobals.md - - docs/sdk/models/operations/editmarkerrequest.md - - docs/sdk/models/operations/editmarkerresponse.md - - docs/sdk/models/operations/editmetadataitemargs.md - - docs/sdk/models/operations/editmetadataitemglobals.md - - docs/sdk/models/operations/editmetadataitemrequest.md - - docs/sdk/models/operations/editmetadataitemresponse.md - - docs/sdk/models/operations/editsectionglobals.md - - docs/sdk/models/operations/editsectionprefs.md - - docs/sdk/models/operations/editsectionrequest.md - - docs/sdk/models/operations/editsectionresponse.md - - docs/sdk/models/operations/editsubscriptionpreferencesglobals.md - - docs/sdk/models/operations/editsubscriptionpreferencesprefs.md - - docs/sdk/models/operations/editsubscriptionpreferencesrequest.md - - docs/sdk/models/operations/editsubscriptionpreferencesresponse.md - - docs/sdk/models/operations/emptytrashglobals.md - - docs/sdk/models/operations/emptytrashrequest.md - - docs/sdk/models/operations/emptytrashresponse.md - - docs/sdk/models/operations/enablepapertrailglobals.md - - docs/sdk/models/operations/enablepapertrailrequest.md - - docs/sdk/models/operations/enablepapertrailresponse.md - - docs/sdk/models/operations/extension.md - - docs/sdk/models/operations/feature.md - - docs/sdk/models/operations/flavor.md - - docs/sdk/models/operations/format.md - - docs/sdk/models/operations/generatethumbsglobals.md - - docs/sdk/models/operations/generatethumbsrequest.md - - docs/sdk/models/operations/generatethumbsresponse.md - - docs/sdk/models/operations/getalbumsglobals.md - - docs/sdk/models/operations/getalbumsrequest.md - - docs/sdk/models/operations/getalbumsresponse.md - - docs/sdk/models/operations/getallhubsglobals.md - - docs/sdk/models/operations/getallhubsmediacontainer.md - - docs/sdk/models/operations/getallhubsrequest.md - - docs/sdk/models/operations/getallhubsresponse.md - - docs/sdk/models/operations/getallhubsresponsebody.md - - docs/sdk/models/operations/getallitemleavesglobals.md - - docs/sdk/models/operations/getallitemleavesrequest.md - - docs/sdk/models/operations/getallitemleavesresponse.md - - docs/sdk/models/operations/getalllanguagesmediacontainer.md - - docs/sdk/models/operations/getalllanguagesresponse.md - - docs/sdk/models/operations/getalllanguagesresponsebody.md - - docs/sdk/models/operations/getallleavesglobals.md - - docs/sdk/models/operations/getallleavesrequest.md - - docs/sdk/models/operations/getallleavesresponse.md - - docs/sdk/models/operations/getallpreferencesresponse.md - - docs/sdk/models/operations/getallsubscriptionsglobals.md - - docs/sdk/models/operations/getallsubscriptionsrequest.md - - docs/sdk/models/operations/getallsubscriptionsresponse.md - - docs/sdk/models/operations/getartsglobals.md - - docs/sdk/models/operations/getartsrequest.md - - docs/sdk/models/operations/getartsresponse.md - - docs/sdk/models/operations/getaugmentationstatusglobals.md - - docs/sdk/models/operations/getaugmentationstatusrequest.md - - docs/sdk/models/operations/getaugmentationstatusresponse.md - - docs/sdk/models/operations/getavailablegrabbersglobals.md - - docs/sdk/models/operations/getavailablegrabbersmediacontainer.md - - docs/sdk/models/operations/getavailablegrabbersrequest.md - - docs/sdk/models/operations/getavailablegrabbersresponse.md - - docs/sdk/models/operations/getavailablegrabbersresponsebody.md - - docs/sdk/models/operations/getavailablesortsglobals.md - - docs/sdk/models/operations/getavailablesortsmediacontainer.md - - docs/sdk/models/operations/getavailablesortsrequest.md - - docs/sdk/models/operations/getavailablesortsresponse.md - - docs/sdk/models/operations/getavailablesortsresponsebody.md - - docs/sdk/models/operations/getbackgroundtasksmediacontainer.md - - docs/sdk/models/operations/getbackgroundtasksresponse.md - - docs/sdk/models/operations/getbackgroundtasksresponsebody.md - - docs/sdk/models/operations/getbackgroundtaskstype.md - - docs/sdk/models/operations/getcategoriesglobals.md - - docs/sdk/models/operations/getcategoriesrequest.md - - docs/sdk/models/operations/getcategoriesresponse.md - - docs/sdk/models/operations/getchannelsglobals.md - - docs/sdk/models/operations/getchannelsmediacontainer.md - - docs/sdk/models/operations/getchannelsrequest.md - - docs/sdk/models/operations/getchannelsresponse.md - - docs/sdk/models/operations/getchannelsresponsebody.md - - docs/sdk/models/operations/getchapterimageglobals.md - - docs/sdk/models/operations/getchapterimagerequest.md - - docs/sdk/models/operations/getchapterimageresponse.md - - docs/sdk/models/operations/getclusterglobals.md - - docs/sdk/models/operations/getclusterrequest.md - - docs/sdk/models/operations/getclusterresponse.md - - docs/sdk/models/operations/getcollectionimageglobals.md - - docs/sdk/models/operations/getcollectionimagerequest.md - - docs/sdk/models/operations/getcollectionimageresponse.md - - docs/sdk/models/operations/getcollectionitemsglobals.md - - docs/sdk/models/operations/getcollectionitemsrequest.md - - docs/sdk/models/operations/getcollectionitemsresponse.md - - docs/sdk/models/operations/getcollectionsglobals.md - - docs/sdk/models/operations/getcollectionsrequest.md - - docs/sdk/models/operations/getcollectionsresponse.md - - docs/sdk/models/operations/getcolorsglobals.md - - docs/sdk/models/operations/getcolorsmediacontainer.md - - docs/sdk/models/operations/getcolorsrequest.md - - docs/sdk/models/operations/getcolorsresponse.md - - docs/sdk/models/operations/getcolorsresponsebody.md - - docs/sdk/models/operations/getcommonglobals.md - - docs/sdk/models/operations/getcommonrequest.md - - docs/sdk/models/operations/getcommonresponse.md - - docs/sdk/models/operations/getcontinuewatchingglobals.md - - docs/sdk/models/operations/getcontinuewatchingmediacontainer.md - - docs/sdk/models/operations/getcontinuewatchingrequest.md - - docs/sdk/models/operations/getcontinuewatchingresponse.md - - docs/sdk/models/operations/getcontinuewatchingresponsebody.md - - docs/sdk/models/operations/getcountriescountry.md - - docs/sdk/models/operations/getcountrieslineupsglobals.md - - docs/sdk/models/operations/getcountrieslineupsrequest.md - - docs/sdk/models/operations/getcountrieslineupsresponse.md - - docs/sdk/models/operations/getcountriesmediacontainer.md - - docs/sdk/models/operations/getcountriesresponse.md - - docs/sdk/models/operations/getcountriesresponsebody.md - - docs/sdk/models/operations/getcountryregionscountry.md - - docs/sdk/models/operations/getcountryregionsglobals.md - - docs/sdk/models/operations/getcountryregionsmediacontainer.md - - docs/sdk/models/operations/getcountryregionsrequest.md - - docs/sdk/models/operations/getcountryregionsresponse.md - - docs/sdk/models/operations/getcountryregionsresponsebody.md - - docs/sdk/models/operations/getdevicedetailsglobals.md - - docs/sdk/models/operations/getdevicedetailsrequest.md - - docs/sdk/models/operations/getdevicedetailsresponse.md - - docs/sdk/models/operations/getdeviceschannelsglobals.md - - docs/sdk/models/operations/getdeviceschannelsmediacontainer.md - - docs/sdk/models/operations/getdeviceschannelsrequest.md - - docs/sdk/models/operations/getdeviceschannelsresponse.md - - docs/sdk/models/operations/getdeviceschannelsresponsebody.md - - docs/sdk/models/operations/getdownloadqueuedownloadqueue.md - - docs/sdk/models/operations/getdownloadqueueglobals.md - - docs/sdk/models/operations/getdownloadqueueitemsdecisionresult.md - - docs/sdk/models/operations/getdownloadqueueitemsdownloadqueueitem.md - - docs/sdk/models/operations/getdownloadqueueitemsglobals.md - - docs/sdk/models/operations/getdownloadqueueitemsmediacontainer.md - - docs/sdk/models/operations/getdownloadqueueitemsrequest.md - - docs/sdk/models/operations/getdownloadqueueitemsresponse.md - - docs/sdk/models/operations/getdownloadqueueitemsresponsebody.md - - docs/sdk/models/operations/getdownloadqueueitemsstatus.md - - docs/sdk/models/operations/getdownloadqueueitemstranscode.md - - docs/sdk/models/operations/getdownloadqueuemediacontainer.md - - docs/sdk/models/operations/getdownloadqueuemediaglobals.md - - docs/sdk/models/operations/getdownloadqueuemediarequest.md - - docs/sdk/models/operations/getdownloadqueuemediaresponse.md - - docs/sdk/models/operations/getdownloadqueuerequest.md - - docs/sdk/models/operations/getdownloadqueueresponse.md - - docs/sdk/models/operations/getdownloadqueueresponsebody.md - - docs/sdk/models/operations/getdownloadqueuestatus.md - - docs/sdk/models/operations/getdvrdvr.md - - docs/sdk/models/operations/getdvrglobals.md - - docs/sdk/models/operations/getdvrmediacontainer.md - - docs/sdk/models/operations/getdvrmediacontainermediacontainer.md - - docs/sdk/models/operations/getdvrrequest.md - - docs/sdk/models/operations/getdvrresponse.md - - docs/sdk/models/operations/getdvrresponsebody.md - - docs/sdk/models/operations/getextrasglobals.md - - docs/sdk/models/operations/getextrasrequest.md - - docs/sdk/models/operations/getextrasresponse.md - - docs/sdk/models/operations/getfileglobals.md - - docs/sdk/models/operations/getfilerequest.md - - docs/sdk/models/operations/getfileresponse.md - - docs/sdk/models/operations/getfirstcharactersdirectory.md - - docs/sdk/models/operations/getfirstcharactersglobals.md - - docs/sdk/models/operations/getfirstcharactersmediacontainer.md - - docs/sdk/models/operations/getfirstcharactersrequest.md - - docs/sdk/models/operations/getfirstcharactersresponse.md - - docs/sdk/models/operations/getfirstcharactersresponsebody.md - - docs/sdk/models/operations/getfoldersdirectory.md - - docs/sdk/models/operations/getfoldersglobals.md - - docs/sdk/models/operations/getfoldersmediacontainer.md - - docs/sdk/models/operations/getfoldersrequest.md - - docs/sdk/models/operations/getfoldersresponse.md - - docs/sdk/models/operations/getfoldersresponsebody.md - - docs/sdk/models/operations/gethistoryitemglobals.md - - docs/sdk/models/operations/gethistoryitemrequest.md - - docs/sdk/models/operations/gethistoryitemresponse.md - - docs/sdk/models/operations/gethubitemsglobals.md - - docs/sdk/models/operations/gethubitemsrequest.md - - docs/sdk/models/operations/gethubitemsresponse.md - - docs/sdk/models/operations/gethubitemsresponsebody.md - - docs/sdk/models/operations/getidentitymediacontainer.md - - docs/sdk/models/operations/getidentityresponse.md - - docs/sdk/models/operations/getidentityresponsebody.md - - docs/sdk/models/operations/getimagefrombifglobals.md - - docs/sdk/models/operations/getimagefrombifindex.md - - docs/sdk/models/operations/getimagefrombifrequest.md - - docs/sdk/models/operations/getimagefrombifresponse.md - - docs/sdk/models/operations/getimageglobals.md - - docs/sdk/models/operations/getimagerequest.md - - docs/sdk/models/operations/getimageresponse.md - - docs/sdk/models/operations/getitemartworkelement.md - - docs/sdk/models/operations/getitemartworkglobals.md - - docs/sdk/models/operations/getitemartworkrequest.md - - docs/sdk/models/operations/getitemartworkresponse.md - - docs/sdk/models/operations/getitemdecisionglobals.md - - docs/sdk/models/operations/getitemdecisionrequest.md - - docs/sdk/models/operations/getitemdecisionresponse.md - - docs/sdk/models/operations/getitemtreeglobals.md - - docs/sdk/models/operations/getitemtreerequest.md - - docs/sdk/models/operations/getitemtreeresponse.md - - docs/sdk/models/operations/getlibrarydetailsglobals.md - - docs/sdk/models/operations/getlibrarydetailsmediacontainer.md - - docs/sdk/models/operations/getlibrarydetailsrequest.md - - docs/sdk/models/operations/getlibrarydetailsresponse.md - - docs/sdk/models/operations/getlibrarydetailsresponsebody.md - - docs/sdk/models/operations/getlibraryitemsglobals.md - - docs/sdk/models/operations/getlibraryitemsrequest.md - - docs/sdk/models/operations/getlibraryitemsresponse.md - - docs/sdk/models/operations/getlibrarymatchesglobals.md - - docs/sdk/models/operations/getlibrarymatchesrequest.md - - docs/sdk/models/operations/getlibrarymatchesresponse.md - - docs/sdk/models/operations/getlineupchannelsglobals.md - - docs/sdk/models/operations/getlineupchannelsmediacontainer.md - - docs/sdk/models/operations/getlineupchannelsrequest.md - - docs/sdk/models/operations/getlineupchannelsresponse.md - - docs/sdk/models/operations/getlineupchannelsresponsebody.md - - docs/sdk/models/operations/getlineupglobals.md - - docs/sdk/models/operations/getlineuprequest.md - - docs/sdk/models/operations/getlineupresponse.md - - docs/sdk/models/operations/getlivetvsessionglobals.md - - docs/sdk/models/operations/getlivetvsessionrequest.md - - docs/sdk/models/operations/getlivetvsessionresponse.md - - docs/sdk/models/operations/getmediapartglobals.md - - docs/sdk/models/operations/getmediapartrequest.md - - docs/sdk/models/operations/getmediapartresponse.md - - docs/sdk/models/operations/getmetadatahubsglobals.md - - docs/sdk/models/operations/getmetadatahubsrequest.md - - docs/sdk/models/operations/getmetadatahubsresponse.md - - docs/sdk/models/operations/getmetadataitemglobals.md - - docs/sdk/models/operations/getmetadataitemrequest.md - - docs/sdk/models/operations/getmetadataitemresponse.md - - docs/sdk/models/operations/getnotificationsglobals.md - - docs/sdk/models/operations/getnotificationsrequest.md - - docs/sdk/models/operations/getnotificationsresponse.md - - docs/sdk/models/operations/getpartindexglobals.md - - docs/sdk/models/operations/getpartindexindex.md - - docs/sdk/models/operations/getpartindexrequest.md - - docs/sdk/models/operations/getpartindexresponse.md - - docs/sdk/models/operations/getpersonglobals.md - - docs/sdk/models/operations/getpersonmediacontainer.md - - docs/sdk/models/operations/getpersonrequest.md - - docs/sdk/models/operations/getpersonresponse.md - - docs/sdk/models/operations/getpersonresponsebody.md - - docs/sdk/models/operations/getplaylistgeneratordevice.md - - docs/sdk/models/operations/getplaylistgeneratorglobals.md - - docs/sdk/models/operations/getplaylistgeneratoritem.md - - docs/sdk/models/operations/getplaylistgeneratoritemsglobals.md - - docs/sdk/models/operations/getplaylistgeneratoritemsguid.md - - docs/sdk/models/operations/getplaylistgeneratoritemsmediacontainer.md - - docs/sdk/models/operations/getplaylistgeneratoritemsrequest.md - - docs/sdk/models/operations/getplaylistgeneratoritemsresponse.md - - docs/sdk/models/operations/getplaylistgeneratoritemsresponsebody.md - - docs/sdk/models/operations/getplaylistgeneratorlocation.md - - docs/sdk/models/operations/getplaylistgeneratormediacontainer.md - - docs/sdk/models/operations/getplaylistgeneratorpolicy.md - - docs/sdk/models/operations/getplaylistgeneratorrequest.md - - docs/sdk/models/operations/getplaylistgeneratorresponse.md - - docs/sdk/models/operations/getplaylistgeneratorresponsebody.md - - docs/sdk/models/operations/getplaylistgeneratorscope.md - - docs/sdk/models/operations/getplaylistgeneratorsglobals.md - - docs/sdk/models/operations/getplaylistgeneratorsmediacontainer.md - - docs/sdk/models/operations/getplaylistgeneratorsrequest.md - - docs/sdk/models/operations/getplaylistgeneratorsresponse.md - - docs/sdk/models/operations/getplaylistgeneratorsresponsebody.md - - docs/sdk/models/operations/getplaylistgeneratorstate.md - - docs/sdk/models/operations/getplaylistgeneratorstatus.md - - docs/sdk/models/operations/getplaylistgeneratorstype.md - - docs/sdk/models/operations/getplaylistgeneratorsubtitles.md - - docs/sdk/models/operations/getplaylistgeneratortype.md - - docs/sdk/models/operations/getplaylistglobals.md - - docs/sdk/models/operations/getplaylistitemsglobals.md - - docs/sdk/models/operations/getplaylistitemsrequest.md - - docs/sdk/models/operations/getplaylistitemsresponse.md - - docs/sdk/models/operations/getplaylistrequest.md - - docs/sdk/models/operations/getplaylistresponse.md - - docs/sdk/models/operations/getplayqueueglobals.md - - docs/sdk/models/operations/getplayqueuerequest.md - - docs/sdk/models/operations/getplayqueueresponse.md - - docs/sdk/models/operations/getpostplayhubsglobals.md - - docs/sdk/models/operations/getpostplayhubsrequest.md - - docs/sdk/models/operations/getpostplayhubsresponse.md - - docs/sdk/models/operations/getpreferenceglobals.md - - docs/sdk/models/operations/getpreferencerequest.md - - docs/sdk/models/operations/getpreferenceresponse.md - - docs/sdk/models/operations/getpromotedhubsglobals.md - - docs/sdk/models/operations/getpromotedhubsmediacontainer.md - - docs/sdk/models/operations/getpromotedhubsrequest.md - - docs/sdk/models/operations/getpromotedhubsresponse.md - - docs/sdk/models/operations/getpromotedhubsresponsebody.md - - docs/sdk/models/operations/getrandomartworkglobals.md - - docs/sdk/models/operations/getrandomartworkrequest.md - - docs/sdk/models/operations/getrandomartworkresponse.md - - docs/sdk/models/operations/getrelatedhubsglobals.md - - docs/sdk/models/operations/getrelatedhubsrequest.md - - docs/sdk/models/operations/getrelatedhubsresponse.md - - docs/sdk/models/operations/getrelateditemsglobals.md - - docs/sdk/models/operations/getrelateditemsmediacontainer.md - - docs/sdk/models/operations/getrelateditemsrequest.md - - docs/sdk/models/operations/getrelateditemsresponse.md - - docs/sdk/models/operations/getrelateditemsresponsebody.md - - docs/sdk/models/operations/getscheduledrecordingsmediacontainer.md - - docs/sdk/models/operations/getscheduledrecordingsresponse.md - - docs/sdk/models/operations/getscheduledrecordingsresponsebody.md - - docs/sdk/models/operations/getsectionfiltersglobals.md - - docs/sdk/models/operations/getsectionfiltersmediacontainer.md - - docs/sdk/models/operations/getsectionfiltersrequest.md - - docs/sdk/models/operations/getsectionfiltersresponse.md - - docs/sdk/models/operations/getsectionfiltersresponsebody.md - - docs/sdk/models/operations/getsectionhubsglobals.md - - docs/sdk/models/operations/getsectionhubsmediacontainer.md - - docs/sdk/models/operations/getsectionhubsrequest.md - - docs/sdk/models/operations/getsectionhubsresponse.md - - docs/sdk/models/operations/getsectionhubsresponsebody.md - - docs/sdk/models/operations/getsectionimageglobals.md - - docs/sdk/models/operations/getsectionimagerequest.md - - docs/sdk/models/operations/getsectionimageresponse.md - - docs/sdk/models/operations/getsectionpreferencesglobals.md - - docs/sdk/models/operations/getsectionpreferencesrequest.md - - docs/sdk/models/operations/getsectionpreferencesresponse.md - - docs/sdk/models/operations/getsectionsmediacontainer.md - - docs/sdk/models/operations/getsectionsprefsglobals.md - - docs/sdk/models/operations/getsectionsprefsrequest.md - - docs/sdk/models/operations/getsectionsprefsresponse.md - - docs/sdk/models/operations/getsectionsresponse.md - - docs/sdk/models/operations/getsectionsresponsebody.md - - docs/sdk/models/operations/getserverinfoglobals.md - - docs/sdk/models/operations/getserverinforequest.md - - docs/sdk/models/operations/getserverinforesponse.md - - docs/sdk/models/operations/getserverresourceserror.md - - docs/sdk/models/operations/getserverresourcesglobals.md - - docs/sdk/models/operations/getserverresourcesrequest.md - - docs/sdk/models/operations/getserverresourcesresponse.md - - docs/sdk/models/operations/getsessionplaylistindexglobals.md - - docs/sdk/models/operations/getsessionplaylistindexrequest.md - - docs/sdk/models/operations/getsessionplaylistindexresponse.md - - docs/sdk/models/operations/getsessionsegmentglobals.md - - docs/sdk/models/operations/getsessionsegmentrequest.md - - docs/sdk/models/operations/getsessionsegmentresponse.md - - docs/sdk/models/operations/getsessionsresponse.md - - docs/sdk/models/operations/getsonicallysimilarglobals.md - - docs/sdk/models/operations/getsonicallysimilarrequest.md - - docs/sdk/models/operations/getsonicallysimilarresponse.md - - docs/sdk/models/operations/getsonicpathglobals.md - - docs/sdk/models/operations/getsonicpathrequest.md - - docs/sdk/models/operations/getsonicpathresponse.md - - docs/sdk/models/operations/getsourceconnectioninformationdevice.md - - docs/sdk/models/operations/getsourceconnectioninformationglobals.md - - docs/sdk/models/operations/getsourceconnectioninformationmediacontainer.md - - docs/sdk/models/operations/getsourceconnectioninformationrequest.md - - docs/sdk/models/operations/getsourceconnectioninformationresponse.md - - docs/sdk/models/operations/getsourceconnectioninformationresponsebody.md - - docs/sdk/models/operations/getstreamglobals.md - - docs/sdk/models/operations/getstreamlevelsglobals.md - - docs/sdk/models/operations/getstreamlevelslevel.md - - docs/sdk/models/operations/getstreamlevelsmediacontainer.md - - docs/sdk/models/operations/getstreamlevelsrequest.md - - docs/sdk/models/operations/getstreamlevelsresponse.md - - docs/sdk/models/operations/getstreamlevelsresponsebody.md - - docs/sdk/models/operations/getstreamloudnessglobals.md - - docs/sdk/models/operations/getstreamloudnessrequest.md - - docs/sdk/models/operations/getstreamloudnessresponse.md - - docs/sdk/models/operations/getstreamrequest.md - - docs/sdk/models/operations/getstreamresponse.md - - docs/sdk/models/operations/getsubscriptionglobals.md - - docs/sdk/models/operations/getsubscriptionrequest.md - - docs/sdk/models/operations/getsubscriptionresponse.md - - docs/sdk/models/operations/gettagsdirectory.md - - docs/sdk/models/operations/gettagsglobals.md - - docs/sdk/models/operations/gettagsmediacontainer.md - - docs/sdk/models/operations/gettagsrequest.md - - docs/sdk/models/operations/gettagsresponse.md - - docs/sdk/models/operations/gettagsresponsebody.md - - docs/sdk/models/operations/gettasksbutlertask.md - - docs/sdk/models/operations/gettasksresponse.md - - docs/sdk/models/operations/gettasksresponsebody.md - - docs/sdk/models/operations/gettemplateglobals.md - - docs/sdk/models/operations/gettemplatemediacontainer.md - - docs/sdk/models/operations/gettemplaterequest.md - - docs/sdk/models/operations/gettemplateresponse.md - - docs/sdk/models/operations/gettemplateresponsebody.md - - docs/sdk/models/operations/getthumbglobals.md - - docs/sdk/models/operations/getthumbrequest.md - - docs/sdk/models/operations/getthumbresponse.md - - docs/sdk/models/operations/gettokendetailsbadrequesterror.md - - docs/sdk/models/operations/gettokendetailsglobals.md - - docs/sdk/models/operations/gettokendetailsrequest.md - - docs/sdk/models/operations/gettokendetailsresponse.md - - docs/sdk/models/operations/gettokendetailsunauthorizederror.md - - docs/sdk/models/operations/gettransienttokenglobals.md - - docs/sdk/models/operations/gettransienttokenmediacontainer.md - - docs/sdk/models/operations/gettransienttokenrequest.md - - docs/sdk/models/operations/gettransienttokenresponse.md - - docs/sdk/models/operations/gettransienttokenresponsebody.md - - docs/sdk/models/operations/gettransienttokenscope.md - - docs/sdk/models/operations/gettransienttokentype.md - - docs/sdk/models/operations/getupdatesstatusmediacontainer.md - - docs/sdk/models/operations/getupdatesstatusresponse.md - - docs/sdk/models/operations/getupdatesstatusresponsebody.md - - docs/sdk/models/operations/getupdatesstatusstate.md - - docs/sdk/models/operations/getusersbadrequesterror.md - - docs/sdk/models/operations/getusersglobals.md - - docs/sdk/models/operations/getusersmediacontainer.md - - docs/sdk/models/operations/getusersrequest.md - - docs/sdk/models/operations/getusersresponse.md - - docs/sdk/models/operations/getusersresponsebody.md - - docs/sdk/models/operations/getusersunauthorizederror.md - - docs/sdk/models/operations/hints.md - - docs/sdk/models/operations/home.md - - docs/sdk/models/operations/homevisibility.md - - docs/sdk/models/operations/hub.md - - docs/sdk/models/operations/includehttps.md - - docs/sdk/models/operations/includeipv6.md - - docs/sdk/models/operations/includerelay.md - - docs/sdk/models/operations/ingesttransientitemglobals.md - - docs/sdk/models/operations/ingesttransientitemrequest.md - - docs/sdk/models/operations/ingesttransientitemresponse.md - - docs/sdk/models/operations/internalpaymentmethod.md - - docs/sdk/models/operations/language.md - - docs/sdk/models/operations/lineup.md - - docs/sdk/models/operations/lineuptype.md - - docs/sdk/models/operations/listactivitiesmediacontainer.md - - docs/sdk/models/operations/listactivitiesresponse.md - - docs/sdk/models/operations/listactivitiesresponsebody.md - - docs/sdk/models/operations/listcontentglobals.md - - docs/sdk/models/operations/listcontentrequest.md - - docs/sdk/models/operations/listcontentresponse.md - - docs/sdk/models/operations/listdevicesresponse.md - - docs/sdk/models/operations/listdownloadqueueitemsdecisionresult.md - - docs/sdk/models/operations/listdownloadqueueitemsdownloadqueueitem.md - - docs/sdk/models/operations/listdownloadqueueitemsglobals.md - - docs/sdk/models/operations/listdownloadqueueitemsmediacontainer.md - - docs/sdk/models/operations/listdownloadqueueitemsrequest.md - - docs/sdk/models/operations/listdownloadqueueitemsresponse.md - - docs/sdk/models/operations/listdownloadqueueitemsresponsebody.md - - docs/sdk/models/operations/listdownloadqueueitemsstatus.md - - docs/sdk/models/operations/listdownloadqueueitemstranscode.md - - docs/sdk/models/operations/listdvrsdvr.md - - docs/sdk/models/operations/listdvrsmediacontainer.md - - docs/sdk/models/operations/listdvrsmediacontainermediacontainer.md - - docs/sdk/models/operations/listdvrsresponse.md - - docs/sdk/models/operations/listdvrsresponsebody.md - - docs/sdk/models/operations/listhubsglobals.md - - docs/sdk/models/operations/listhubsmediacontainer.md - - docs/sdk/models/operations/listhubsrequest.md - - docs/sdk/models/operations/listhubsresponse.md - - docs/sdk/models/operations/listhubsresponsebody.md - - docs/sdk/models/operations/listlineupsglobals.md - - docs/sdk/models/operations/listlineupsrequest.md - - docs/sdk/models/operations/listlineupsresponse.md - - docs/sdk/models/operations/listmatchesglobals.md - - docs/sdk/models/operations/listmatchesrequest.md - - docs/sdk/models/operations/listmatchesresponse.md - - docs/sdk/models/operations/listmomentsglobals.md - - docs/sdk/models/operations/listmomentsrequest.md - - docs/sdk/models/operations/listmomentsresponse.md - - docs/sdk/models/operations/listpersonmediaglobals.md - - docs/sdk/models/operations/listpersonmediarequest.md - - docs/sdk/models/operations/listpersonmediaresponse.md - - docs/sdk/models/operations/listplaybackhistoryglobals.md - - docs/sdk/models/operations/listplaybackhistorymediacontainer.md - - docs/sdk/models/operations/listplaybackhistorymetadatum.md - - docs/sdk/models/operations/listplaybackhistoryrequest.md - - docs/sdk/models/operations/listplaybackhistoryresponse.md - - docs/sdk/models/operations/listplaybackhistoryresponsebody.md - - docs/sdk/models/operations/listplaylistsglobals.md - - docs/sdk/models/operations/listplaylistsrequest.md - - docs/sdk/models/operations/listplaylistsresponse.md - - docs/sdk/models/operations/listprovidersmediacontainer.md - - docs/sdk/models/operations/listprovidersresponse.md - - docs/sdk/models/operations/listprovidersresponsebody.md - - docs/sdk/models/operations/listsessionsguid.md - - docs/sdk/models/operations/listsessionsmediacontainer.md - - docs/sdk/models/operations/listsessionsmetadatum.md - - docs/sdk/models/operations/listsessionsresponse.md - - docs/sdk/models/operations/listsessionsresponsebody.md - - docs/sdk/models/operations/listsimilarglobals.md - - docs/sdk/models/operations/listsimilarrequest.md - - docs/sdk/models/operations/listsimilarresponse.md - - docs/sdk/models/operations/listsonicallysimilarglobals.md - - docs/sdk/models/operations/listsonicallysimilarrequest.md - - docs/sdk/models/operations/listsonicallysimilarresponse.md - - docs/sdk/models/operations/listtopusersglobals.md - - docs/sdk/models/operations/listtopusersmediacontainer.md - - docs/sdk/models/operations/listtopusersrequest.md - - docs/sdk/models/operations/listtopusersresponse.md - - docs/sdk/models/operations/listtopusersresponsebody.md - - docs/sdk/models/operations/mailingliststatus.md - - docs/sdk/models/operations/makedecisionglobals.md - - docs/sdk/models/operations/makedecisionlocation.md - - docs/sdk/models/operations/makedecisionprotocol.md - - docs/sdk/models/operations/makedecisionrequest.md - - docs/sdk/models/operations/makedecisionresponse.md - - docs/sdk/models/operations/makedecisionsubtitles.md - - docs/sdk/models/operations/markplayedglobals.md - - docs/sdk/models/operations/markplayedrequest.md - - docs/sdk/models/operations/markplayedresponse.md - - docs/sdk/models/operations/matchitemglobals.md - - docs/sdk/models/operations/matchitemrequest.md - - docs/sdk/models/operations/matchitemresponse.md - - docs/sdk/models/operations/mediagrabber.md - - docs/sdk/models/operations/mediasettings.md - - docs/sdk/models/operations/mediasubscription.md - - docs/sdk/models/operations/mergeitemsglobals.md - - docs/sdk/models/operations/mergeitemsrequest.md - - docs/sdk/models/operations/mergeitemsresponse.md - - docs/sdk/models/operations/metadata.md - - docs/sdk/models/operations/modifydeviceglobals.md - - docs/sdk/models/operations/modifydevicemediacontainer.md - - docs/sdk/models/operations/modifydevicerequest.md - - docs/sdk/models/operations/modifydeviceresponse.md - - docs/sdk/models/operations/modifydeviceresponsebody.md - - docs/sdk/models/operations/modifyplaylistgeneratorglobals.md - - docs/sdk/models/operations/modifyplaylistgeneratoritem.md - - docs/sdk/models/operations/modifyplaylistgeneratorlocation.md - - docs/sdk/models/operations/modifyplaylistgeneratorpolicy.md - - docs/sdk/models/operations/modifyplaylistgeneratorrequest.md - - docs/sdk/models/operations/modifyplaylistgeneratorresponse.md - - docs/sdk/models/operations/modifyplaylistgeneratorscope.md - - docs/sdk/models/operations/movecollectionitemglobals.md - - docs/sdk/models/operations/movecollectionitemrequest.md - - docs/sdk/models/operations/movecollectionitemresponse.md - - docs/sdk/models/operations/movehubglobals.md - - docs/sdk/models/operations/movehubrequest.md - - docs/sdk/models/operations/movehubresponse.md - - docs/sdk/models/operations/moveplaylistitemglobals.md - - docs/sdk/models/operations/moveplaylistitemrequest.md - - docs/sdk/models/operations/moveplaylistitemresponse.md - - docs/sdk/models/operations/moveplayqueueitemglobals.md - - docs/sdk/models/operations/moveplayqueueitemrequest.md - - docs/sdk/models/operations/moveplayqueueitemresponse.md - - docs/sdk/models/operations/optimizedatabaseglobals.md - - docs/sdk/models/operations/optimizedatabaserequest.md - - docs/sdk/models/operations/optimizedatabaseresponse.md - - docs/sdk/models/operations/owned.md - - docs/sdk/models/operations/params.md - - docs/sdk/models/operations/pastsubscription.md - - docs/sdk/models/operations/pending.md - - docs/sdk/models/operations/playlisttype.md - - docs/sdk/models/operations/playqueuegenerator.md - - docs/sdk/models/operations/postuserssignindatabadrequesterror.md - - docs/sdk/models/operations/postuserssignindataglobals.md - - docs/sdk/models/operations/postuserssignindatarequest.md - - docs/sdk/models/operations/postuserssignindatarequestbody.md - - docs/sdk/models/operations/postuserssignindataresponse.md - - docs/sdk/models/operations/postuserssignindatastate.md - - docs/sdk/models/operations/postuserssignindataunauthorizederror.md - - docs/sdk/models/operations/processingstate.md - - docs/sdk/models/operations/processingstatecontext.md - - docs/sdk/models/operations/processsubscriptionsresponse.md - - docs/sdk/models/operations/protected.md - - docs/sdk/models/operations/recommendationsvisibility.md - - docs/sdk/models/operations/refreshitemsmetadataglobals.md - - docs/sdk/models/operations/refreshitemsmetadatarequest.md - - docs/sdk/models/operations/refreshitemsmetadataresponse.md - - docs/sdk/models/operations/refreshplaylistglobals.md - - docs/sdk/models/operations/refreshplaylistrequest.md - - docs/sdk/models/operations/refreshplaylistresponse.md - - docs/sdk/models/operations/refreshprovidersresponse.md - - docs/sdk/models/operations/refreshsectionglobals.md - - docs/sdk/models/operations/refreshsectionrequest.md - - docs/sdk/models/operations/refreshsectionresponse.md - - docs/sdk/models/operations/refreshsectionsmetadataglobals.md - - docs/sdk/models/operations/refreshsectionsmetadatarequest.md - - docs/sdk/models/operations/refreshsectionsmetadataresponse.md - - docs/sdk/models/operations/release.md - - docs/sdk/models/operations/reloadguideglobals.md - - docs/sdk/models/operations/reloadguiderequest.md - - docs/sdk/models/operations/reloadguideresponse.md - - docs/sdk/models/operations/removedevicefromdvrdvr.md - - docs/sdk/models/operations/removedevicefromdvrglobals.md - - docs/sdk/models/operations/removedevicefromdvrmediacontainer.md - - docs/sdk/models/operations/removedevicefromdvrmediacontainermediacontainer.md - - docs/sdk/models/operations/removedevicefromdvrrequest.md - - docs/sdk/models/operations/removedevicefromdvrresponse.md - - docs/sdk/models/operations/removedevicefromdvrresponsebody.md - - docs/sdk/models/operations/removedeviceglobals.md - - docs/sdk/models/operations/removedevicemediacontainer.md - - docs/sdk/models/operations/removedevicerequest.md - - docs/sdk/models/operations/removedeviceresponse.md - - docs/sdk/models/operations/removedeviceresponsebody.md - - docs/sdk/models/operations/removedownloadqueueitemsglobals.md - - docs/sdk/models/operations/removedownloadqueueitemsrequest.md - - docs/sdk/models/operations/removedownloadqueueitemsresponse.md - - docs/sdk/models/operations/reordersubscriptionglobals.md - - docs/sdk/models/operations/reordersubscriptionrequest.md - - docs/sdk/models/operations/reordersubscriptionresponse.md - - docs/sdk/models/operations/reportglobals.md - - docs/sdk/models/operations/reportmediacontainer.md - - docs/sdk/models/operations/reportrequest.md - - docs/sdk/models/operations/reportresponse.md - - docs/sdk/models/operations/reportresponsebody.md - - docs/sdk/models/operations/reportstate.md - - docs/sdk/models/operations/resetplayqueueglobals.md - - docs/sdk/models/operations/resetplayqueuerequest.md - - docs/sdk/models/operations/resetplayqueueresponse.md - - docs/sdk/models/operations/resetsectiondefaultsglobals.md - - docs/sdk/models/operations/resetsectiondefaultsrequest.md - - docs/sdk/models/operations/resetsectiondefaultsresponse.md - - docs/sdk/models/operations/restartprocessingdownloadqueueitemsglobals.md - - docs/sdk/models/operations/restartprocessingdownloadqueueitemsrequest.md - - docs/sdk/models/operations/restartprocessingdownloadqueueitemsresponse.md - - docs/sdk/models/operations/restricted.md - - docs/sdk/models/operations/scanglobals.md - - docs/sdk/models/operations/scanrequest.md - - docs/sdk/models/operations/scanresponse.md - - docs/sdk/models/operations/searchhubsglobals.md - - docs/sdk/models/operations/searchhubsmediacontainer.md - - docs/sdk/models/operations/searchhubsrequest.md - - docs/sdk/models/operations/searchhubsresponse.md - - docs/sdk/models/operations/searchhubsresponsebody.md - - docs/sdk/models/operations/server.md - - docs/sdk/models/operations/service.md - - docs/sdk/models/operations/servicestatus.md - - docs/sdk/models/operations/setchannelmapchannelmapping.md - - docs/sdk/models/operations/setchannelmapglobals.md - - docs/sdk/models/operations/setchannelmaprequest.md - - docs/sdk/models/operations/setchannelmapresponse.md - - docs/sdk/models/operations/setdevicepreferencesglobals.md - - docs/sdk/models/operations/setdevicepreferencesrequest.md - - docs/sdk/models/operations/setdevicepreferencesresponse.md - - docs/sdk/models/operations/setdvrpreferencesdvr.md - - docs/sdk/models/operations/setdvrpreferencesglobals.md - - docs/sdk/models/operations/setdvrpreferencesmediacontainer.md - - docs/sdk/models/operations/setdvrpreferencesmediacontainermediacontainer.md - - docs/sdk/models/operations/setdvrpreferencesrequest.md - - docs/sdk/models/operations/setdvrpreferencesresponse.md - - docs/sdk/models/operations/setdvrpreferencesresponsebody.md - - docs/sdk/models/operations/setitemartworkelement.md - - docs/sdk/models/operations/setitemartworkglobals.md - - docs/sdk/models/operations/setitemartworkrequest.md - - docs/sdk/models/operations/setitemartworkresponse.md - - docs/sdk/models/operations/setitempreferencesargs.md - - docs/sdk/models/operations/setitempreferencesglobals.md - - docs/sdk/models/operations/setitempreferencesrequest.md - - docs/sdk/models/operations/setitempreferencesresponse.md - - docs/sdk/models/operations/setpreferencesglobals.md - - docs/sdk/models/operations/setpreferencesprefs.md - - docs/sdk/models/operations/setpreferencesrequest.md - - docs/sdk/models/operations/setpreferencesresponse.md - - docs/sdk/models/operations/setratingglobals.md - - docs/sdk/models/operations/setratingrequest.md - - docs/sdk/models/operations/setratingresponse.md - - docs/sdk/models/operations/setsectionpreferencesglobals.md - - docs/sdk/models/operations/setsectionpreferencesprefs.md - - docs/sdk/models/operations/setsectionpreferencesrequest.md - - docs/sdk/models/operations/setsectionpreferencesresponse.md - - docs/sdk/models/operations/setstreamoffsetglobals.md - - docs/sdk/models/operations/setstreamoffsetrequest.md - - docs/sdk/models/operations/setstreamoffsetresponse.md - - docs/sdk/models/operations/setstreamselectionglobals.md - - docs/sdk/models/operations/setstreamselectionrequest.md - - docs/sdk/models/operations/setstreamselectionresponse.md - - docs/sdk/models/operations/shuffleglobals.md - - docs/sdk/models/operations/shufflerequest.md - - docs/sdk/models/operations/shuffleresponse.md - - docs/sdk/models/operations/splititemglobals.md - - docs/sdk/models/operations/splititemrequest.md - - docs/sdk/models/operations/splititemresponse.md - - docs/sdk/models/operations/startanalysisglobals.md - - docs/sdk/models/operations/startanalysisrequest.md - - docs/sdk/models/operations/startanalysisresponse.md - - docs/sdk/models/operations/startbifgenerationglobals.md - - docs/sdk/models/operations/startbifgenerationrequest.md - - docs/sdk/models/operations/startbifgenerationresponse.md - - docs/sdk/models/operations/starttaskbutlertask.md - - docs/sdk/models/operations/starttaskglobals.md - - docs/sdk/models/operations/starttaskrequest.md - - docs/sdk/models/operations/starttaskresponse.md - - docs/sdk/models/operations/starttasksresponse.md - - docs/sdk/models/operations/starttranscodesessionglobals.md - - docs/sdk/models/operations/starttranscodesessionlocation.md - - docs/sdk/models/operations/starttranscodesessionprotocol.md - - docs/sdk/models/operations/starttranscodesessionrequest.md - - docs/sdk/models/operations/starttranscodesessionresponse.md - - docs/sdk/models/operations/starttranscodesessionsubtitles.md - - docs/sdk/models/operations/stopallrefreshesresponse.md - - docs/sdk/models/operations/stopdvrreloadglobals.md - - docs/sdk/models/operations/stopdvrreloadrequest.md - - docs/sdk/models/operations/stopdvrreloadresponse.md - - docs/sdk/models/operations/stopscanglobals.md - - docs/sdk/models/operations/stopscanrequest.md - - docs/sdk/models/operations/stopscanresponse.md - - docs/sdk/models/operations/stoptaskbutlertask.md - - docs/sdk/models/operations/stoptaskglobals.md - - docs/sdk/models/operations/stoptaskrequest.md - - docs/sdk/models/operations/stoptaskresponse.md - - docs/sdk/models/operations/stoptasksresponse.md - - docs/sdk/models/operations/subscription1.md - - docs/sdk/models/operations/subscription2.md - - docs/sdk/models/operations/subscriptionstatus1.md - - docs/sdk/models/operations/subscriptionstatus2.md - - docs/sdk/models/operations/subscriptiontemplate.md - - docs/sdk/models/operations/terminatesessionglobals.md - - docs/sdk/models/operations/terminatesessionrequest.md - - docs/sdk/models/operations/terminatesessionresponse.md - - docs/sdk/models/operations/transcodeimageglobals.md - - docs/sdk/models/operations/transcodeimagerequest.md - - docs/sdk/models/operations/transcodeimageresponse.md - - docs/sdk/models/operations/transcodejob.md - - docs/sdk/models/operations/transcodesubtitlesglobals.md - - docs/sdk/models/operations/transcodesubtitleslocation.md - - docs/sdk/models/operations/transcodesubtitlesprotocol.md - - docs/sdk/models/operations/transcodesubtitlesrequest.md - - docs/sdk/models/operations/transcodesubtitlesresponse.md - - docs/sdk/models/operations/transcodesubtitlessubtitles.md - - docs/sdk/models/operations/trial.md - - docs/sdk/models/operations/triggerfallbackglobals.md - - docs/sdk/models/operations/triggerfallbackrequest.md - - docs/sdk/models/operations/triggerfallbackresponse.md - - docs/sdk/models/operations/tunechannelglobals.md - - docs/sdk/models/operations/tunechannelrequest.md - - docs/sdk/models/operations/tunechannelresponse.md - - docs/sdk/models/operations/ultrablurcolor.md - - docs/sdk/models/operations/unmatchglobals.md - - docs/sdk/models/operations/unmatchrequest.md - - docs/sdk/models/operations/unmatchresponse.md - - docs/sdk/models/operations/unscrobbleglobals.md - - docs/sdk/models/operations/unscrobblerequest.md - - docs/sdk/models/operations/unscrobbleresponse.md - - docs/sdk/models/operations/unshuffleglobals.md - - docs/sdk/models/operations/unshufflerequest.md - - docs/sdk/models/operations/unshuffleresponse.md - - docs/sdk/models/operations/updatehubvisibilityglobals.md - - docs/sdk/models/operations/updatehubvisibilityrequest.md - - docs/sdk/models/operations/updatehubvisibilityresponse.md - - docs/sdk/models/operations/updateitemartworkelement.md - - docs/sdk/models/operations/updateitemartworkglobals.md - - docs/sdk/models/operations/updateitemartworkrequest.md - - docs/sdk/models/operations/updateitemartworkresponse.md - - docs/sdk/models/operations/updateitemsglobals.md - - docs/sdk/models/operations/updateitemsrequest.md - - docs/sdk/models/operations/updateitemsresponse.md - - docs/sdk/models/operations/updateplaylistglobals.md - - docs/sdk/models/operations/updateplaylistrequest.md - - docs/sdk/models/operations/updateplaylistresponse.md - - docs/sdk/models/operations/uploadplaylistglobals.md - - docs/sdk/models/operations/uploadplaylistrequest.md - - docs/sdk/models/operations/uploadplaylistresponse.md - - docs/sdk/models/operations/user.md - - docs/sdk/models/operations/userplexaccount.md - - docs/sdk/models/operations/voicesearchhubsglobals.md - - docs/sdk/models/operations/voicesearchhubsmediacontainer.md - - docs/sdk/models/operations/voicesearchhubsrequest.md - - docs/sdk/models/operations/voicesearchhubsresponse.md - - docs/sdk/models/operations/voicesearchhubsresponsebody.md - - docs/sdk/models/operations/writelogresponse.md - - docs/sdk/models/operations/writemessageglobals.md - - 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/autoselectsubtitle.md - - docs/sdk/models/shared/boolint.md - - docs/sdk/models/shared/channel.md - - docs/sdk/models/shared/channelmapping.md - - docs/sdk/models/shared/composite.md - - docs/sdk/models/shared/connection.md - - docs/sdk/models/shared/crop.md - - docs/sdk/models/shared/decision.md - - docs/sdk/models/shared/default.md - - docs/sdk/models/shared/defaultaudioaccessibility.md - - docs/sdk/models/shared/defaultdirection.md - - docs/sdk/models/shared/defaultenum.md - - docs/sdk/models/shared/defaultsubtitleaccessibility.md - - docs/sdk/models/shared/defaultsubtitleforced.md - - docs/sdk/models/shared/device.md - - docs/sdk/models/shared/directory.md - - docs/sdk/models/shared/directorypivot.md - - docs/sdk/models/shared/directoryresponse.md - - docs/sdk/models/shared/dvr.md - - docs/sdk/models/shared/dvrrequesthandlerslashgetresponses200.md - - docs/sdk/models/shared/dvrrequesthandlerslashgetresponses200mediacontainer.md - - docs/sdk/models/shared/dvrrequesthandlerslashgetresponses200mediacontainermediacontainer.md - - docs/sdk/models/shared/filter.md - - docs/sdk/models/shared/filterpivot.md - - docs/sdk/models/shared/format.md - - docs/sdk/models/shared/getresponses200.md - - docs/sdk/models/shared/getresponses200mediacontainer.md - - docs/sdk/models/shared/historyallgetresponses200.md - - docs/sdk/models/shared/historyallgetresponses200mediacontainer.md - - docs/sdk/models/shared/homevisibility.md - - docs/sdk/models/shared/hub.md - - docs/sdk/models/shared/hubresponse.md - - docs/sdk/models/shared/image.md - - docs/sdk/models/shared/imagetype.md - - docs/sdk/models/shared/items.md - - docs/sdk/models/shared/itemsguid.md - - docs/sdk/models/shared/librarysection.md - - docs/sdk/models/shared/librarysectionlocation.md - - docs/sdk/models/shared/librarysections.md - - docs/sdk/models/shared/librarysectionsmediacontainer.md - - docs/sdk/models/shared/lineup.md - - docs/sdk/models/shared/lineuptype.md - - docs/sdk/models/shared/locationparameter.md - - docs/sdk/models/shared/mailingliststatus.md - - docs/sdk/models/shared/media.md - - docs/sdk/models/shared/mediacontainer.md - - docs/sdk/models/shared/mediacontainerwithartwork.md - - docs/sdk/models/shared/mediacontainerwithartworkmediacontainer.md - - docs/sdk/models/shared/mediacontainerwithartworkmetadatum.md - - docs/sdk/models/shared/mediacontainerwithartworktype.md - - docs/sdk/models/shared/mediacontainerwithdecision.md - - docs/sdk/models/shared/mediacontainerwithdecisionguid.md - - docs/sdk/models/shared/mediacontainerwithdecisionlocation.md - - docs/sdk/models/shared/mediacontainerwithdecisionmedia.md - - docs/sdk/models/shared/mediacontainerwithdecisionmediacontainer.md - - docs/sdk/models/shared/mediacontainerwithdecisionmetadatum.md - - docs/sdk/models/shared/mediacontainerwithdecisionpart.md - - docs/sdk/models/shared/mediacontainerwithdecisionstream.md - - docs/sdk/models/shared/mediacontainerwithdevice.md - - docs/sdk/models/shared/mediacontainerwithdevicedevice.md - - docs/sdk/models/shared/mediacontainerwithdevicemediacontainer.md - - docs/sdk/models/shared/mediacontainerwithdirectory.md - - docs/sdk/models/shared/mediacontainerwithdirectorymediacontainer.md - - docs/sdk/models/shared/mediacontainerwithhubs.md - - docs/sdk/models/shared/mediacontainerwithhubsmediacontainer.md - - docs/sdk/models/shared/mediacontainerwithlineup.md - - docs/sdk/models/shared/mediacontainerwithlineupmediacontainer.md - - docs/sdk/models/shared/mediacontainerwithmetadata.md - - docs/sdk/models/shared/mediacontainerwithmetadatamediacontainer.md - - docs/sdk/models/shared/mediacontainerwithnestedmetadata.md - - docs/sdk/models/shared/mediacontainerwithnestedmetadataguid.md - - docs/sdk/models/shared/mediacontainerwithnestedmetadatamediacontainer.md - - docs/sdk/models/shared/mediacontainerwithplaylistmetadata.md - - docs/sdk/models/shared/mediacontainerwithplaylistmetadataguid.md - - docs/sdk/models/shared/mediacontainerwithplaylistmetadatamediacontainer.md - - docs/sdk/models/shared/mediacontainerwithplaylistmetadatametadatum.md - - docs/sdk/models/shared/mediacontainerwithsettings.md - - docs/sdk/models/shared/mediacontainerwithsettingsmediacontainer.md - - docs/sdk/models/shared/mediacontainerwithsubscription.md - - docs/sdk/models/shared/mediacontainerwithsubscriptionmediacontainer.md - - docs/sdk/models/shared/mediaenum.md - - docs/sdk/models/shared/mediagraboperation.md - - docs/sdk/models/shared/mediagraboperationstatus.md - - docs/sdk/models/shared/mediaquery.md - - docs/sdk/models/shared/mediareviewsvisibility.md - - docs/sdk/models/shared/mediasubscription.md - - docs/sdk/models/shared/mediatype.md - - docs/sdk/models/shared/mediatypestring.md - - docs/sdk/models/shared/metadata.md - - docs/sdk/models/shared/metadataguid.md - - docs/sdk/models/shared/metadataitem.md - - docs/sdk/models/shared/metadatumresponse.md - - docs/sdk/models/shared/part.md - - docs/sdk/models/shared/player.md - - docs/sdk/models/shared/playlisttype.md - - docs/sdk/models/shared/plexdevice.md - - docs/sdk/models/shared/plexdeviceprotocol.md - - docs/sdk/models/shared/postresponses200.md - - docs/sdk/models/shared/postresponses200mediacontainer.md - - docs/sdk/models/shared/protocolparameter.md - - docs/sdk/models/shared/recommendationsvisibility.md - - docs/sdk/models/shared/security.md - - docs/sdk/models/shared/service.md - - docs/sdk/models/shared/servicestatus.md - - docs/sdk/models/shared/session.md - - docs/sdk/models/shared/sessionlocation.md - - docs/sdk/models/shared/setting.md - - docs/sdk/models/shared/settingtype.md - - docs/sdk/models/shared/slashgetresponses200.md - - docs/sdk/models/shared/slashgetresponses200mediacontainer.md - - docs/sdk/models/shared/sort.md - - docs/sdk/models/shared/sortpivot.md - - docs/sdk/models/shared/stream.md - - docs/sdk/models/shared/streamdecision.md - - docs/sdk/models/shared/subscription1.md - - docs/sdk/models/shared/subscription2.md - - docs/sdk/models/shared/subscriptionstatus1.md - - docs/sdk/models/shared/subscriptionstatus2.md - - docs/sdk/models/shared/subtitles.md - - docs/sdk/models/shared/tag.md - - docs/sdk/models/shared/transcodesession.md - - docs/sdk/models/shared/transcodetype.md - - docs/sdk/models/shared/typeresponse.md - - docs/sdk/models/shared/user.md - - docs/sdk/models/shared/userplexaccount.md - - docs/sdk/models/shared/userprofile.md - - docs/sdk/models/shared/value.md - - docs/sdk/models/shared/watchedindicator.md + - docs/models/errors/getserverresourcesunauthorizederror.md + - docs/models/errors/gettokendetailsbadrequesterror.md + - docs/models/errors/gettokendetailsunauthorizederror.md + - docs/models/errors/getusersbadrequesterror.md + - docs/models/errors/getusersunauthorizederror.md + - docs/models/errors/postuserssignindatabadrequesterror.md + - docs/models/errors/postuserssignindataunauthorizederror.md + - docs/models/operations/account.md + - docs/models/operations/action.md + - docs/models/operations/activity.md + - docs/models/operations/addcollectionitemsglobals.md + - docs/models/operations/addcollectionitemsrequest.md + - docs/models/operations/adddeviceglobals.md + - docs/models/operations/adddevicerequest.md + - docs/models/operations/adddevicetodvrdvr.md + - docs/models/operations/adddevicetodvrglobals.md + - docs/models/operations/adddevicetodvrmediacontainer.md + - docs/models/operations/adddevicetodvrmediacontainermediacontainer.md + - docs/models/operations/adddevicetodvrrequest.md + - docs/models/operations/adddevicetodvrresponse.md + - docs/models/operations/adddevicetodvrresponsebody.md + - docs/models/operations/adddownloadqueueitemsglobals.md + - docs/models/operations/adddownloadqueueitemsmediacontainer.md + - docs/models/operations/adddownloadqueueitemsrequest.md + - docs/models/operations/adddownloadqueueitemsresponse.md + - docs/models/operations/addedqueueitem.md + - docs/models/operations/addextrasglobals.md + - docs/models/operations/addextrasrequest.md + - docs/models/operations/addlineupdvr.md + - docs/models/operations/addlineupglobals.md + - docs/models/operations/addlineupmediacontainer.md + - docs/models/operations/addlineupmediacontainermediacontainer.md + - docs/models/operations/addlineuprequest.md + - docs/models/operations/addlineupresponse.md + - docs/models/operations/addlineupresponsebody.md + - docs/models/operations/addplaylistitemsglobals.md + - docs/models/operations/addplaylistitemsrequest.md + - docs/models/operations/addproviderglobals.md + - docs/models/operations/addproviderrequest.md + - docs/models/operations/addsectionglobals.md + - docs/models/operations/addsectionprefs.md + - docs/models/operations/addsectionrequest.md + - docs/models/operations/addsubtitlesglobals.md + - docs/models/operations/addsubtitlesrequest.md + - docs/models/operations/addtoplayqueueglobals.md + - docs/models/operations/addtoplayqueuerequest.md + - docs/models/operations/advancedsubtitles.md + - docs/models/operations/alllibraries.md + - docs/models/operations/allowcameraupload.md + - docs/models/operations/allowchannels.md + - docs/models/operations/allowsubtitleadmin.md + - docs/models/operations/allowsync.md + - docs/models/operations/allowtuners.md + - docs/models/operations/analyzemetadataglobals.md + - docs/models/operations/analyzemetadatarequest.md + - docs/models/operations/applyupdatesglobals.md + - docs/models/operations/applyupdatesrequest.md + - docs/models/operations/autocompleteglobals.md + - docs/models/operations/autocompleterequest.md + - docs/models/operations/autocompleteresponse.md + - docs/models/operations/bandwidth.md + - docs/models/operations/bandwidths.md + - docs/models/operations/billing.md + - docs/models/operations/butlertasks.md + - docs/models/operations/cancelactivityglobals.md + - docs/models/operations/cancelactivityrequest.md + - docs/models/operations/cancelgrabglobals.md + - docs/models/operations/cancelgrabrequest.md + - docs/models/operations/cancelrefreshglobals.md + - docs/models/operations/cancelrefreshrequest.md + - docs/models/operations/channelmappingbykey.md + - docs/models/operations/checkupdatesglobals.md + - docs/models/operations/checkupdatesrequest.md + - docs/models/operations/chromasubsampling.md + - docs/models/operations/clearplaylistitemsglobals.md + - docs/models/operations/clearplaylistitemsrequest.md + - docs/models/operations/clearplayqueueglobals.md + - docs/models/operations/clearplayqueuerequest.md + - docs/models/operations/computechannelmapchannelmapping.md + - docs/models/operations/computechannelmapglobals.md + - docs/models/operations/computechannelmapmediacontainer.md + - docs/models/operations/computechannelmaprequest.md + - docs/models/operations/computechannelmapresponse.md + - docs/models/operations/computechannelmapresponsebody.md + - docs/models/operations/connection.md + - docs/models/operations/connectwebsocketglobals.md + - docs/models/operations/connectwebsocketrequest.md + - docs/models/operations/createcollectionglobals.md + - docs/models/operations/createcollectionrequest.md + - docs/models/operations/createcustomhubglobals.md + - docs/models/operations/createcustomhubrequest.md + - docs/models/operations/createdownloadqueuedownloadqueue.md + - docs/models/operations/createdownloadqueuemediacontainer.md + - docs/models/operations/createdownloadqueueresponse.md + - docs/models/operations/createdownloadqueuestatus.md + - docs/models/operations/createdvrglobals.md + - docs/models/operations/createdvrrequest.md + - docs/models/operations/createdvrresponse.md + - docs/models/operations/createmarkerattributes.md + - docs/models/operations/createmarkerglobals.md + - docs/models/operations/createmarkermediacontainer.md + - docs/models/operations/createmarkerrequest.md + - docs/models/operations/createmarkerresponse.md + - docs/models/operations/createmarkertype.md + - docs/models/operations/createplaylistglobals.md + - docs/models/operations/createplaylistrequest.md + - docs/models/operations/createplayqueueglobals.md + - docs/models/operations/createplayqueuemediacontainer.md + - docs/models/operations/createplayqueuerequest.md + - docs/models/operations/createplayqueueresponse.md + - docs/models/operations/createplayqueueresponsebody.md + - docs/models/operations/createplayqueuetype.md + - docs/models/operations/createsubscriptionglobals.md + - docs/models/operations/createsubscriptionmediacontainer.md + - docs/models/operations/createsubscriptionprefs.md + - docs/models/operations/createsubscriptionrequest.md + - docs/models/operations/createsubscriptionresponse.md + - docs/models/operations/createsubscriptionresponsebody.md + - docs/models/operations/deletecollectionglobals.md + - docs/models/operations/deletecollectionitemglobals.md + - docs/models/operations/deletecollectionitemrequest.md + - docs/models/operations/deletecollectionrequest.md + - docs/models/operations/deletecustomhubglobals.md + - docs/models/operations/deletecustomhubrequest.md + - docs/models/operations/deletedvrglobals.md + - docs/models/operations/deletedvrrequest.md + - docs/models/operations/deletehistoryglobals.md + - docs/models/operations/deletehistoryrequest.md + - docs/models/operations/deletehistoryresponse.md + - docs/models/operations/deleteindexesglobals.md + - docs/models/operations/deleteindexesrequest.md + - docs/models/operations/deleteintrosglobals.md + - docs/models/operations/deleteintrosrequest.md + - docs/models/operations/deletelibrarysectionglobals.md + - docs/models/operations/deletelibrarysectionrequest.md + - docs/models/operations/deletelineupdvr.md + - docs/models/operations/deletelineupglobals.md + - docs/models/operations/deletelineupmediacontainer.md + - docs/models/operations/deletelineupmediacontainermediacontainer.md + - docs/models/operations/deletelineuprequest.md + - docs/models/operations/deletelineupresponse.md + - docs/models/operations/deletelineupresponsebody.md + - docs/models/operations/deletemarkerglobals.md + - docs/models/operations/deletemarkerrequest.md + - docs/models/operations/deletemediaitemglobals.md + - docs/models/operations/deletemediaitemrequest.md + - docs/models/operations/deletemediaproviderglobals.md + - docs/models/operations/deletemediaproviderrequest.md + - docs/models/operations/deletemetadataitemglobals.md + - docs/models/operations/deletemetadataitemrequest.md + - docs/models/operations/deleteplaylistglobals.md + - docs/models/operations/deleteplaylistitemglobals.md + - docs/models/operations/deleteplaylistitemrequest.md + - docs/models/operations/deleteplaylistrequest.md + - docs/models/operations/deleteplayqueueitemglobals.md + - docs/models/operations/deleteplayqueueitemrequest.md + - docs/models/operations/deletestreamglobals.md + - docs/models/operations/deletestreamrequest.md + - docs/models/operations/deletesubscriptionglobals.md + - docs/models/operations/deletesubscriptionrequest.md + - docs/models/operations/detectadsglobals.md + - docs/models/operations/detectadsrequest.md + - docs/models/operations/detectcreditsglobals.md + - docs/models/operations/detectcreditsrequest.md + - docs/models/operations/detectintrosglobals.md + - docs/models/operations/detectintrosrequest.md + - docs/models/operations/detectvoiceactivityglobals.md + - docs/models/operations/detectvoiceactivityrequest.md + - docs/models/operations/devicechannel.md + - docs/models/operations/editmarkerattributes.md + - docs/models/operations/editmarkerglobals.md + - docs/models/operations/editmarkerrequest.md + - docs/models/operations/editmetadataitemargs.md + - docs/models/operations/editmetadataitemglobals.md + - docs/models/operations/editmetadataitemrequest.md + - docs/models/operations/editsectionglobals.md + - docs/models/operations/editsectionprefs.md + - docs/models/operations/editsectionrequest.md + - docs/models/operations/editsubscriptionpreferencesglobals.md + - docs/models/operations/editsubscriptionpreferencesprefs.md + - docs/models/operations/editsubscriptionpreferencesrequest.md + - docs/models/operations/emptytrashglobals.md + - docs/models/operations/emptytrashrequest.md + - docs/models/operations/enablepapertrailglobals.md + - docs/models/operations/enablepapertrailrequest.md + - docs/models/operations/extension.md + - docs/models/operations/feature.md + - docs/models/operations/flavor.md + - docs/models/operations/format.md + - docs/models/operations/generatethumbsglobals.md + - docs/models/operations/generatethumbsrequest.md + - docs/models/operations/getalbumsglobals.md + - docs/models/operations/getalbumsrequest.md + - docs/models/operations/getallhubsglobals.md + - docs/models/operations/getallhubsmediacontainer.md + - docs/models/operations/getallhubsrequest.md + - docs/models/operations/getallhubsresponse.md + - docs/models/operations/getallhubsresponsebody.md + - docs/models/operations/getallitemleavesglobals.md + - docs/models/operations/getallitemleavesrequest.md + - docs/models/operations/getallitemleavesresponse.md + - docs/models/operations/getalllanguagesmediacontainer.md + - docs/models/operations/getalllanguagesresponse.md + - docs/models/operations/getalllanguagesresponsebody.md + - docs/models/operations/getallleavesglobals.md + - docs/models/operations/getallleavesrequest.md + - docs/models/operations/getallsubscriptionsglobals.md + - docs/models/operations/getallsubscriptionsrequest.md + - docs/models/operations/getallsubscriptionsresponse.md + - docs/models/operations/getartsglobals.md + - docs/models/operations/getartsrequest.md + - docs/models/operations/getaugmentationstatusglobals.md + - docs/models/operations/getaugmentationstatusrequest.md + - docs/models/operations/getavailablegrabbersglobals.md + - docs/models/operations/getavailablegrabbersmediacontainer.md + - docs/models/operations/getavailablegrabbersrequest.md + - docs/models/operations/getavailablegrabbersresponse.md + - docs/models/operations/getavailablegrabbersresponsebody.md + - docs/models/operations/getavailablesortsglobals.md + - docs/models/operations/getavailablesortsmediacontainer.md + - docs/models/operations/getavailablesortsrequest.md + - docs/models/operations/getavailablesortsresponse.md + - docs/models/operations/getbackgroundtasksmediacontainer.md + - docs/models/operations/getbackgroundtasksresponse.md + - docs/models/operations/getbackgroundtaskstype.md + - docs/models/operations/getcategoriesglobals.md + - docs/models/operations/getcategoriesrequest.md + - docs/models/operations/getchannelsglobals.md + - docs/models/operations/getchannelsmediacontainer.md + - docs/models/operations/getchannelsrequest.md + - docs/models/operations/getchannelsresponse.md + - docs/models/operations/getchannelsresponsebody.md + - docs/models/operations/getchapterimageglobals.md + - docs/models/operations/getchapterimagerequest.md + - docs/models/operations/getclusterglobals.md + - docs/models/operations/getclusterrequest.md + - docs/models/operations/getcollectionimageglobals.md + - docs/models/operations/getcollectionimagerequest.md + - docs/models/operations/getcollectionitemsglobals.md + - docs/models/operations/getcollectionitemsrequest.md + - docs/models/operations/getcollectionsglobals.md + - docs/models/operations/getcollectionsrequest.md + - docs/models/operations/getcollectionsresponse.md + - docs/models/operations/getcolorsglobals.md + - docs/models/operations/getcolorsmediacontainer.md + - docs/models/operations/getcolorsrequest.md + - docs/models/operations/getcolorsresponse.md + - docs/models/operations/getcommonglobals.md + - docs/models/operations/getcommonrequest.md + - docs/models/operations/getcommonresponse.md + - docs/models/operations/getcontinuewatchingglobals.md + - docs/models/operations/getcontinuewatchingmediacontainer.md + - docs/models/operations/getcontinuewatchingrequest.md + - docs/models/operations/getcontinuewatchingresponse.md + - docs/models/operations/getcontinuewatchingresponsebody.md + - docs/models/operations/getcountriescountry.md + - docs/models/operations/getcountrieslineupsglobals.md + - docs/models/operations/getcountrieslineupsrequest.md + - docs/models/operations/getcountriesmediacontainer.md + - docs/models/operations/getcountriesresponse.md + - docs/models/operations/getcountriesresponsebody.md + - docs/models/operations/getcountryregionscountry.md + - docs/models/operations/getcountryregionsglobals.md + - docs/models/operations/getcountryregionsmediacontainer.md + - docs/models/operations/getcountryregionsrequest.md + - docs/models/operations/getcountryregionsresponse.md + - docs/models/operations/getcountryregionsresponsebody.md + - docs/models/operations/getdevicedetailsglobals.md + - docs/models/operations/getdevicedetailsrequest.md + - docs/models/operations/getdeviceschannelsglobals.md + - docs/models/operations/getdeviceschannelsmediacontainer.md + - docs/models/operations/getdeviceschannelsrequest.md + - docs/models/operations/getdeviceschannelsresponse.md + - docs/models/operations/getdeviceschannelsresponsebody.md + - docs/models/operations/getdownloadqueuedownloadqueue.md + - docs/models/operations/getdownloadqueueglobals.md + - docs/models/operations/getdownloadqueueitemsdecisionresult.md + - docs/models/operations/getdownloadqueueitemsdownloadqueueitem.md + - docs/models/operations/getdownloadqueueitemsglobals.md + - docs/models/operations/getdownloadqueueitemsmediacontainer.md + - docs/models/operations/getdownloadqueueitemsrequest.md + - docs/models/operations/getdownloadqueueitemsresponse.md + - docs/models/operations/getdownloadqueueitemsstatus.md + - docs/models/operations/getdownloadqueueitemstranscode.md + - docs/models/operations/getdownloadqueuemediacontainer.md + - docs/models/operations/getdownloadqueuemediaglobals.md + - docs/models/operations/getdownloadqueuemediarequest.md + - docs/models/operations/getdownloadqueuemediaresponse.md + - docs/models/operations/getdownloadqueuerequest.md + - docs/models/operations/getdownloadqueueresponse.md + - docs/models/operations/getdownloadqueuestatus.md + - docs/models/operations/getdvrdvr.md + - docs/models/operations/getdvrglobals.md + - docs/models/operations/getdvrmediacontainer.md + - docs/models/operations/getdvrmediacontainermediacontainer.md + - docs/models/operations/getdvrrequest.md + - docs/models/operations/getdvrresponse.md + - docs/models/operations/getdvrresponsebody.md + - docs/models/operations/getextrasglobals.md + - docs/models/operations/getextrasrequest.md + - docs/models/operations/getextrasresponse.md + - docs/models/operations/getfileglobals.md + - docs/models/operations/getfilerequest.md + - docs/models/operations/getfileresponse.md + - docs/models/operations/getfirstcharactersdirectory.md + - docs/models/operations/getfirstcharactersglobals.md + - docs/models/operations/getfirstcharactersmediacontainer.md + - docs/models/operations/getfirstcharactersrequest.md + - docs/models/operations/getfirstcharactersresponse.md + - docs/models/operations/getfoldersdirectory.md + - docs/models/operations/getfoldersglobals.md + - docs/models/operations/getfoldersmediacontainer.md + - docs/models/operations/getfoldersrequest.md + - docs/models/operations/getfoldersresponse.md + - docs/models/operations/gethistoryitemglobals.md + - docs/models/operations/gethistoryitemrequest.md + - docs/models/operations/gethistoryitemresponse.md + - docs/models/operations/gethubitemsglobals.md + - docs/models/operations/gethubitemsrequest.md + - docs/models/operations/gethubitemsresponse.md + - docs/models/operations/gethubitemsresponsebody.md + - docs/models/operations/getidentitymediacontainer.md + - docs/models/operations/getidentityresponse.md + - docs/models/operations/getimagefrombifglobals.md + - docs/models/operations/getimagefrombifindex.md + - docs/models/operations/getimagefrombifrequest.md + - docs/models/operations/getimageglobals.md + - docs/models/operations/getimagerequest.md + - docs/models/operations/getitemartworkelement.md + - docs/models/operations/getitemartworkglobals.md + - docs/models/operations/getitemartworkrequest.md + - docs/models/operations/getitemartworkresponse.md + - docs/models/operations/getitemdecisionglobals.md + - docs/models/operations/getitemdecisionrequest.md + - docs/models/operations/getitemtreeglobals.md + - docs/models/operations/getitemtreerequest.md + - docs/models/operations/getlibrarydetailsglobals.md + - docs/models/operations/getlibrarydetailsmediacontainer.md + - docs/models/operations/getlibrarydetailsrequest.md + - docs/models/operations/getlibrarydetailsresponse.md + - docs/models/operations/getlibraryitemsglobals.md + - docs/models/operations/getlibraryitemsrequest.md + - docs/models/operations/getlibraryitemsresponse.md + - docs/models/operations/getlibrarymatchesglobals.md + - docs/models/operations/getlibrarymatchesrequest.md + - docs/models/operations/getlibrarymatchesresponse.md + - docs/models/operations/getlineupchannelsglobals.md + - docs/models/operations/getlineupchannelsmediacontainer.md + - docs/models/operations/getlineupchannelsrequest.md + - docs/models/operations/getlineupchannelsresponse.md + - docs/models/operations/getlineupglobals.md + - docs/models/operations/getlineuprequest.md + - docs/models/operations/getlineupresponse.md + - docs/models/operations/getlivetvsessionglobals.md + - docs/models/operations/getlivetvsessionrequest.md + - docs/models/operations/getlivetvsessionresponse.md + - docs/models/operations/getmediapartglobals.md + - docs/models/operations/getmediapartrequest.md + - docs/models/operations/getmediapartresponse.md + - docs/models/operations/getmetadatahubsglobals.md + - docs/models/operations/getmetadatahubsrequest.md + - docs/models/operations/getmetadatahubsresponse.md + - docs/models/operations/getmetadataitemglobals.md + - docs/models/operations/getmetadataitemrequest.md + - docs/models/operations/getmetadataitemresponse.md + - docs/models/operations/getnotificationsglobals.md + - docs/models/operations/getnotificationsrequest.md + - docs/models/operations/getpartindexglobals.md + - docs/models/operations/getpartindexindex.md + - docs/models/operations/getpartindexrequest.md + - docs/models/operations/getpersonglobals.md + - docs/models/operations/getpersonmediacontainer.md + - docs/models/operations/getpersonrequest.md + - docs/models/operations/getpersonresponse.md + - docs/models/operations/getplaylistgeneratordevice.md + - docs/models/operations/getplaylistgeneratorglobals.md + - docs/models/operations/getplaylistgeneratoritem.md + - docs/models/operations/getplaylistgeneratoritemsglobals.md + - docs/models/operations/getplaylistgeneratoritemsguid.md + - docs/models/operations/getplaylistgeneratoritemsmediacontainer.md + - docs/models/operations/getplaylistgeneratoritemsrequest.md + - docs/models/operations/getplaylistgeneratoritemsresponse.md + - docs/models/operations/getplaylistgeneratorlocation.md + - docs/models/operations/getplaylistgeneratormediacontainer.md + - docs/models/operations/getplaylistgeneratorpolicy.md + - docs/models/operations/getplaylistgeneratorrequest.md + - docs/models/operations/getplaylistgeneratorresponse.md + - docs/models/operations/getplaylistgeneratorscope.md + - docs/models/operations/getplaylistgeneratorsglobals.md + - docs/models/operations/getplaylistgeneratorsmediacontainer.md + - docs/models/operations/getplaylistgeneratorsrequest.md + - docs/models/operations/getplaylistgeneratorsresponse.md + - docs/models/operations/getplaylistgeneratorstate.md + - docs/models/operations/getplaylistgeneratorstatus.md + - docs/models/operations/getplaylistgeneratorstype.md + - docs/models/operations/getplaylistgeneratorsubtitles.md + - docs/models/operations/getplaylistgeneratortype.md + - docs/models/operations/getplaylistglobals.md + - docs/models/operations/getplaylistitemsglobals.md + - docs/models/operations/getplaylistitemsrequest.md + - docs/models/operations/getplaylistitemsresponse.md + - docs/models/operations/getplaylistrequest.md + - docs/models/operations/getplayqueueglobals.md + - docs/models/operations/getplayqueuerequest.md + - docs/models/operations/getpostplayhubsglobals.md + - docs/models/operations/getpostplayhubsrequest.md + - docs/models/operations/getpostplayhubsresponse.md + - docs/models/operations/getpreferenceglobals.md + - docs/models/operations/getpreferencerequest.md + - docs/models/operations/getpromotedhubsglobals.md + - docs/models/operations/getpromotedhubsmediacontainer.md + - docs/models/operations/getpromotedhubsrequest.md + - docs/models/operations/getpromotedhubsresponse.md + - docs/models/operations/getpromotedhubsresponsebody.md + - docs/models/operations/getrandomartworkglobals.md + - docs/models/operations/getrandomartworkrequest.md + - docs/models/operations/getrelatedhubsglobals.md + - docs/models/operations/getrelatedhubsrequest.md + - docs/models/operations/getrelatedhubsresponse.md + - docs/models/operations/getrelateditemsglobals.md + - docs/models/operations/getrelateditemsmediacontainer.md + - docs/models/operations/getrelateditemsrequest.md + - docs/models/operations/getrelateditemsresponse.md + - docs/models/operations/getscheduledrecordingsmediacontainer.md + - docs/models/operations/getscheduledrecordingsresponse.md + - docs/models/operations/getscheduledrecordingsresponsebody.md + - docs/models/operations/getsectionfiltersglobals.md + - docs/models/operations/getsectionfiltersmediacontainer.md + - docs/models/operations/getsectionfiltersrequest.md + - docs/models/operations/getsectionfiltersresponse.md + - docs/models/operations/getsectionhubsglobals.md + - docs/models/operations/getsectionhubsmediacontainer.md + - docs/models/operations/getsectionhubsrequest.md + - docs/models/operations/getsectionhubsresponse.md + - docs/models/operations/getsectionhubsresponsebody.md + - docs/models/operations/getsectionimageglobals.md + - docs/models/operations/getsectionimagerequest.md + - docs/models/operations/getsectionpreferencesglobals.md + - docs/models/operations/getsectionpreferencesrequest.md + - docs/models/operations/getsectionsmediacontainer.md + - docs/models/operations/getsectionsprefsglobals.md + - docs/models/operations/getsectionsprefsrequest.md + - docs/models/operations/getsectionsresponse.md + - docs/models/operations/getsectionsresponsebody.md + - docs/models/operations/getserverinfoglobals.md + - docs/models/operations/getserverinforequest.md + - docs/models/operations/getserverresourceserror.md + - docs/models/operations/getserverresourcesglobals.md + - docs/models/operations/getserverresourcesrequest.md + - docs/models/operations/getsessionplaylistindexglobals.md + - docs/models/operations/getsessionplaylistindexrequest.md + - docs/models/operations/getsessionsegmentglobals.md + - docs/models/operations/getsessionsegmentrequest.md + - docs/models/operations/getsessionsresponse.md + - docs/models/operations/getsonicallysimilarglobals.md + - docs/models/operations/getsonicallysimilarrequest.md + - docs/models/operations/getsonicpathglobals.md + - docs/models/operations/getsonicpathrequest.md + - docs/models/operations/getsourceconnectioninformationdevice.md + - docs/models/operations/getsourceconnectioninformationglobals.md + - docs/models/operations/getsourceconnectioninformationmediacontainer.md + - docs/models/operations/getsourceconnectioninformationrequest.md + - docs/models/operations/getsourceconnectioninformationresponse.md + - docs/models/operations/getstreamglobals.md + - docs/models/operations/getstreamlevelsglobals.md + - docs/models/operations/getstreamlevelslevel.md + - docs/models/operations/getstreamlevelsmediacontainer.md + - docs/models/operations/getstreamlevelsrequest.md + - docs/models/operations/getstreamlevelsresponse.md + - docs/models/operations/getstreamloudnessglobals.md + - docs/models/operations/getstreamloudnessrequest.md + - docs/models/operations/getstreamrequest.md + - docs/models/operations/getsubscriptionglobals.md + - docs/models/operations/getsubscriptionrequest.md + - docs/models/operations/gettagsdirectory.md + - docs/models/operations/gettagsglobals.md + - docs/models/operations/gettagsmediacontainer.md + - docs/models/operations/gettagsrequest.md + - docs/models/operations/gettagsresponse.md + - docs/models/operations/gettasksbutlertask.md + - docs/models/operations/gettasksresponse.md + - docs/models/operations/gettemplateglobals.md + - docs/models/operations/gettemplatemediacontainer.md + - docs/models/operations/gettemplaterequest.md + - docs/models/operations/gettemplateresponse.md + - docs/models/operations/gettemplateresponsebody.md + - docs/models/operations/getthumbglobals.md + - docs/models/operations/getthumbrequest.md + - docs/models/operations/gettokendetailsbadrequesterror.md + - docs/models/operations/gettokendetailsglobals.md + - docs/models/operations/gettokendetailsrequest.md + - docs/models/operations/gettokendetailsunauthorizederror.md + - docs/models/operations/gettransienttokenglobals.md + - docs/models/operations/gettransienttokenmediacontainer.md + - docs/models/operations/gettransienttokenrequest.md + - docs/models/operations/gettransienttokenresponse.md + - docs/models/operations/gettransienttokenscope.md + - docs/models/operations/gettransienttokentype.md + - docs/models/operations/getupdatesstatusmediacontainer.md + - docs/models/operations/getupdatesstatusresponse.md + - docs/models/operations/getupdatesstatusstate.md + - docs/models/operations/getusersbadrequesterror.md + - docs/models/operations/getusersglobals.md + - docs/models/operations/getusersmediacontainer.md + - docs/models/operations/getusersrequest.md + - docs/models/operations/getusersresponse.md + - docs/models/operations/getusersunauthorizederror.md + - docs/models/operations/hints.md + - docs/models/operations/home.md + - docs/models/operations/homevisibility.md + - docs/models/operations/hub.md + - docs/models/operations/includehttps.md + - docs/models/operations/includeipv6.md + - docs/models/operations/includerelay.md + - docs/models/operations/ingesttransientitemglobals.md + - docs/models/operations/ingesttransientitemrequest.md + - docs/models/operations/ingesttransientitemresponse.md + - docs/models/operations/internalpaymentmethod.md + - docs/models/operations/language.md + - docs/models/operations/lineup.md + - docs/models/operations/lineuptype.md + - docs/models/operations/listactivitiesmediacontainer.md + - docs/models/operations/listactivitiesresponse.md + - docs/models/operations/listcontentglobals.md + - docs/models/operations/listcontentrequest.md + - docs/models/operations/listcontentresponse.md + - docs/models/operations/listdevicesresponse.md + - docs/models/operations/listdownloadqueueitemsdecisionresult.md + - docs/models/operations/listdownloadqueueitemsdownloadqueueitem.md + - docs/models/operations/listdownloadqueueitemsglobals.md + - docs/models/operations/listdownloadqueueitemsmediacontainer.md + - docs/models/operations/listdownloadqueueitemsrequest.md + - docs/models/operations/listdownloadqueueitemsresponse.md + - docs/models/operations/listdownloadqueueitemsstatus.md + - docs/models/operations/listdownloadqueueitemstranscode.md + - docs/models/operations/listdvrsdvr.md + - docs/models/operations/listdvrsmediacontainer.md + - docs/models/operations/listdvrsmediacontainermediacontainer.md + - docs/models/operations/listdvrsresponse.md + - docs/models/operations/listdvrsresponsebody.md + - docs/models/operations/listhubsglobals.md + - docs/models/operations/listhubsmediacontainer.md + - docs/models/operations/listhubsrequest.md + - docs/models/operations/listhubsresponse.md + - docs/models/operations/listhubsresponsebody.md + - docs/models/operations/listlineupsglobals.md + - docs/models/operations/listlineupsrequest.md + - docs/models/operations/listlineupsresponse.md + - docs/models/operations/listmatchesglobals.md + - docs/models/operations/listmatchesrequest.md + - docs/models/operations/listmomentsglobals.md + - docs/models/operations/listmomentsrequest.md + - docs/models/operations/listpersonmediaglobals.md + - docs/models/operations/listpersonmediarequest.md + - docs/models/operations/listplaybackhistoryglobals.md + - docs/models/operations/listplaybackhistorymediacontainer.md + - docs/models/operations/listplaybackhistorymetadatum.md + - docs/models/operations/listplaybackhistoryrequest.md + - docs/models/operations/listplaybackhistoryresponse.md + - docs/models/operations/listplaybackhistoryresponsebody.md + - docs/models/operations/listplaylistsglobals.md + - docs/models/operations/listplaylistsrequest.md + - docs/models/operations/listplaylistsresponse.md + - docs/models/operations/listprovidersmediacontainer.md + - docs/models/operations/listprovidersresponse.md + - docs/models/operations/listsessionsguid.md + - docs/models/operations/listsessionsmediacontainer.md + - docs/models/operations/listsessionsmetadatum.md + - docs/models/operations/listsessionsresponse.md + - docs/models/operations/listsessionsresponsebody.md + - docs/models/operations/listsimilarglobals.md + - docs/models/operations/listsimilarrequest.md + - docs/models/operations/listsonicallysimilarglobals.md + - docs/models/operations/listsonicallysimilarrequest.md + - docs/models/operations/listtopusersglobals.md + - docs/models/operations/listtopusersmediacontainer.md + - docs/models/operations/listtopusersrequest.md + - docs/models/operations/listtopusersresponse.md + - docs/models/operations/mailingliststatus.md + - docs/models/operations/makedecisionglobals.md + - docs/models/operations/makedecisionlocation.md + - docs/models/operations/makedecisionprotocol.md + - docs/models/operations/makedecisionrequest.md + - docs/models/operations/makedecisionsubtitles.md + - docs/models/operations/markplayedglobals.md + - docs/models/operations/markplayedrequest.md + - docs/models/operations/matchitemglobals.md + - docs/models/operations/matchitemrequest.md + - docs/models/operations/mediagrabber.md + - docs/models/operations/mediasettings.md + - docs/models/operations/mediasubscription.md + - docs/models/operations/mergeitemsglobals.md + - docs/models/operations/mergeitemsrequest.md + - docs/models/operations/metadata.md + - docs/models/operations/modifydeviceglobals.md + - docs/models/operations/modifydevicemediacontainer.md + - docs/models/operations/modifydevicerequest.md + - docs/models/operations/modifydeviceresponse.md + - docs/models/operations/modifydeviceresponsebody.md + - docs/models/operations/modifyplaylistgeneratorglobals.md + - docs/models/operations/modifyplaylistgeneratoritem.md + - docs/models/operations/modifyplaylistgeneratorlocation.md + - docs/models/operations/modifyplaylistgeneratorpolicy.md + - docs/models/operations/modifyplaylistgeneratorrequest.md + - docs/models/operations/modifyplaylistgeneratorscope.md + - docs/models/operations/movecollectionitemglobals.md + - docs/models/operations/movecollectionitemrequest.md + - docs/models/operations/movehubglobals.md + - docs/models/operations/movehubrequest.md + - docs/models/operations/movehubresponse.md + - docs/models/operations/moveplaylistitemglobals.md + - docs/models/operations/moveplaylistitemrequest.md + - docs/models/operations/moveplayqueueitemglobals.md + - docs/models/operations/moveplayqueueitemrequest.md + - docs/models/operations/optimizedatabaseglobals.md + - docs/models/operations/optimizedatabaserequest.md + - docs/models/operations/owned.md + - docs/models/operations/params.md + - docs/models/operations/pastsubscription.md + - docs/models/operations/pending.md + - docs/models/operations/playlisttype.md + - docs/models/operations/playqueuegenerator.md + - docs/models/operations/postuserssignindatabadrequesterror.md + - docs/models/operations/postuserssignindataglobals.md + - docs/models/operations/postuserssignindatarequest.md + - docs/models/operations/postuserssignindatarequestbody.md + - docs/models/operations/postuserssignindatastate.md + - docs/models/operations/postuserssignindataunauthorizederror.md + - docs/models/operations/processingstate.md + - docs/models/operations/processingstatecontext.md + - docs/models/operations/processsubscriptionsresponse.md + - docs/models/operations/protected.md + - docs/models/operations/recommendationsvisibility.md + - docs/models/operations/refreshitemsmetadataglobals.md + - docs/models/operations/refreshitemsmetadatarequest.md + - docs/models/operations/refreshplaylistglobals.md + - docs/models/operations/refreshplaylistrequest.md + - docs/models/operations/refreshsectionglobals.md + - docs/models/operations/refreshsectionrequest.md + - docs/models/operations/refreshsectionsmetadataglobals.md + - docs/models/operations/refreshsectionsmetadatarequest.md + - docs/models/operations/release.md + - docs/models/operations/reloadguideglobals.md + - docs/models/operations/reloadguiderequest.md + - docs/models/operations/reloadguideresponse.md + - docs/models/operations/removedevicefromdvrdvr.md + - docs/models/operations/removedevicefromdvrglobals.md + - docs/models/operations/removedevicefromdvrmediacontainer.md + - docs/models/operations/removedevicefromdvrmediacontainermediacontainer.md + - docs/models/operations/removedevicefromdvrrequest.md + - docs/models/operations/removedevicefromdvrresponse.md + - docs/models/operations/removedevicefromdvrresponsebody.md + - docs/models/operations/removedeviceglobals.md + - docs/models/operations/removedevicemediacontainer.md + - docs/models/operations/removedevicerequest.md + - docs/models/operations/removedeviceresponse.md + - docs/models/operations/removedeviceresponsebody.md + - docs/models/operations/removedownloadqueueitemsglobals.md + - docs/models/operations/removedownloadqueueitemsrequest.md + - docs/models/operations/reordersubscriptionglobals.md + - docs/models/operations/reordersubscriptionrequest.md + - docs/models/operations/reportglobals.md + - docs/models/operations/reportmediacontainer.md + - docs/models/operations/reportrequest.md + - docs/models/operations/reportresponse.md + - docs/models/operations/reportstate.md + - docs/models/operations/resetplayqueueglobals.md + - docs/models/operations/resetplayqueuerequest.md + - docs/models/operations/resetsectiondefaultsglobals.md + - docs/models/operations/resetsectiondefaultsrequest.md + - docs/models/operations/restartprocessingdownloadqueueitemsglobals.md + - docs/models/operations/restartprocessingdownloadqueueitemsrequest.md + - docs/models/operations/restricted.md + - docs/models/operations/scanglobals.md + - docs/models/operations/scanrequest.md + - docs/models/operations/scanresponse.md + - docs/models/operations/searchhubsglobals.md + - docs/models/operations/searchhubsmediacontainer.md + - docs/models/operations/searchhubsrequest.md + - docs/models/operations/searchhubsresponse.md + - docs/models/operations/searchhubsresponsebody.md + - docs/models/operations/server.md + - docs/models/operations/service.md + - docs/models/operations/servicestatus.md + - docs/models/operations/setchannelmapchannelmapping.md + - docs/models/operations/setchannelmapglobals.md + - docs/models/operations/setchannelmaprequest.md + - docs/models/operations/setdevicepreferencesglobals.md + - docs/models/operations/setdevicepreferencesrequest.md + - docs/models/operations/setdvrpreferencesdvr.md + - docs/models/operations/setdvrpreferencesglobals.md + - docs/models/operations/setdvrpreferencesmediacontainer.md + - docs/models/operations/setdvrpreferencesmediacontainermediacontainer.md + - docs/models/operations/setdvrpreferencesrequest.md + - docs/models/operations/setdvrpreferencesresponse.md + - docs/models/operations/setdvrpreferencesresponsebody.md + - docs/models/operations/setitemartworkelement.md + - docs/models/operations/setitemartworkglobals.md + - docs/models/operations/setitemartworkrequest.md + - docs/models/operations/setitempreferencesargs.md + - docs/models/operations/setitempreferencesglobals.md + - docs/models/operations/setitempreferencesrequest.md + - docs/models/operations/setpreferencesglobals.md + - docs/models/operations/setpreferencesprefs.md + - docs/models/operations/setpreferencesrequest.md + - docs/models/operations/setratingglobals.md + - docs/models/operations/setratingrequest.md + - docs/models/operations/setsectionpreferencesglobals.md + - docs/models/operations/setsectionpreferencesprefs.md + - docs/models/operations/setsectionpreferencesrequest.md + - docs/models/operations/setstreamoffsetglobals.md + - docs/models/operations/setstreamoffsetrequest.md + - docs/models/operations/setstreamselectionglobals.md + - docs/models/operations/setstreamselectionrequest.md + - docs/models/operations/shuffleglobals.md + - docs/models/operations/shufflerequest.md + - docs/models/operations/splititemglobals.md + - docs/models/operations/splititemrequest.md + - docs/models/operations/startanalysisglobals.md + - docs/models/operations/startanalysisrequest.md + - docs/models/operations/startbifgenerationglobals.md + - docs/models/operations/startbifgenerationrequest.md + - docs/models/operations/starttaskbutlertask.md + - docs/models/operations/starttaskglobals.md + - docs/models/operations/starttaskrequest.md + - docs/models/operations/starttranscodesessionglobals.md + - docs/models/operations/starttranscodesessionlocation.md + - docs/models/operations/starttranscodesessionprotocol.md + - docs/models/operations/starttranscodesessionrequest.md + - docs/models/operations/starttranscodesessionsubtitles.md + - docs/models/operations/stopdvrreloadglobals.md + - docs/models/operations/stopdvrreloadrequest.md + - docs/models/operations/stopscanglobals.md + - docs/models/operations/stopscanrequest.md + - docs/models/operations/stoptaskbutlertask.md + - docs/models/operations/stoptaskglobals.md + - docs/models/operations/stoptaskrequest.md + - docs/models/operations/subscription1.md + - docs/models/operations/subscription2.md + - docs/models/operations/subscriptionstatus1.md + - docs/models/operations/subscriptionstatus2.md + - docs/models/operations/subscriptiontemplate.md + - docs/models/operations/terminatesessionglobals.md + - docs/models/operations/terminatesessionrequest.md + - docs/models/operations/transcodeimageglobals.md + - docs/models/operations/transcodeimagerequest.md + - docs/models/operations/transcodeimageresponse.md + - docs/models/operations/transcodejob.md + - docs/models/operations/transcodesubtitlesglobals.md + - docs/models/operations/transcodesubtitleslocation.md + - docs/models/operations/transcodesubtitlesprotocol.md + - docs/models/operations/transcodesubtitlesrequest.md + - docs/models/operations/transcodesubtitlessubtitles.md + - docs/models/operations/trial.md + - docs/models/operations/triggerfallbackglobals.md + - docs/models/operations/triggerfallbackrequest.md + - docs/models/operations/tunechannelglobals.md + - docs/models/operations/tunechannelrequest.md + - docs/models/operations/tunechannelresponse.md + - docs/models/operations/ultrablurcolor.md + - docs/models/operations/unmatchglobals.md + - docs/models/operations/unmatchrequest.md + - docs/models/operations/unscrobbleglobals.md + - docs/models/operations/unscrobblerequest.md + - docs/models/operations/unshuffleglobals.md + - docs/models/operations/unshufflerequest.md + - docs/models/operations/updatehubvisibilityglobals.md + - docs/models/operations/updatehubvisibilityrequest.md + - docs/models/operations/updateitemartworkelement.md + - docs/models/operations/updateitemartworkglobals.md + - docs/models/operations/updateitemartworkrequest.md + - docs/models/operations/updateitemsglobals.md + - docs/models/operations/updateitemsrequest.md + - docs/models/operations/updateplaylistglobals.md + - docs/models/operations/updateplaylistrequest.md + - docs/models/operations/uploadplaylistglobals.md + - docs/models/operations/uploadplaylistrequest.md + - docs/models/operations/user.md + - docs/models/operations/userplexaccount.md + - docs/models/operations/voicesearchhubsglobals.md + - docs/models/operations/voicesearchhubsmediacontainer.md + - docs/models/operations/voicesearchhubsrequest.md + - docs/models/operations/voicesearchhubsresponse.md + - docs/models/operations/voicesearchhubsresponsebody.md + - docs/models/operations/writemessageglobals.md + - docs/models/operations/writemessagelevel.md + - docs/models/operations/writemessagerequest.md + - docs/models/shared/accepts.md + - docs/models/shared/advancedsubtitles.md + - docs/models/shared/airingstype.md + - docs/models/shared/autoselectsubtitle.md + - docs/models/shared/boolint.md + - docs/models/shared/channel.md + - docs/models/shared/channelmapping.md + - docs/models/shared/composite.md + - docs/models/shared/connection.md + - docs/models/shared/crop.md + - docs/models/shared/decision.md + - docs/models/shared/default.md + - docs/models/shared/defaultaudioaccessibility.md + - docs/models/shared/defaultdirection.md + - docs/models/shared/defaultenum.md + - docs/models/shared/defaultsubtitleaccessibility.md + - docs/models/shared/defaultsubtitleforced.md + - docs/models/shared/device.md + - docs/models/shared/directory.md + - docs/models/shared/directorypivot.md + - docs/models/shared/directoryresponse.md + - docs/models/shared/dvr.md + - docs/models/shared/dvrrequesthandlerslashgetresponses200.md + - docs/models/shared/dvrrequesthandlerslashgetresponses200mediacontainer.md + - docs/models/shared/dvrrequesthandlerslashgetresponses200mediacontainermediacontainer.md + - docs/models/shared/filter.md + - docs/models/shared/filterpivot.md + - docs/models/shared/format.md + - docs/models/shared/getresponses200.md + - docs/models/shared/getresponses200mediacontainer.md + - docs/models/shared/historyallgetresponses200.md + - docs/models/shared/historyallgetresponses200mediacontainer.md + - docs/models/shared/homevisibility.md + - docs/models/shared/hub.md + - docs/models/shared/hubresponse.md + - docs/models/shared/image.md + - docs/models/shared/imagetype.md + - docs/models/shared/items.md + - docs/models/shared/itemsguid.md + - docs/models/shared/librarysection.md + - docs/models/shared/librarysectionlocation.md + - docs/models/shared/librarysections.md + - docs/models/shared/librarysectionsmediacontainer.md + - docs/models/shared/lineup.md + - docs/models/shared/lineuptype.md + - docs/models/shared/locationparameter.md + - docs/models/shared/mailingliststatus.md + - docs/models/shared/media.md + - docs/models/shared/mediacontainer.md + - docs/models/shared/mediacontainerwithartwork.md + - docs/models/shared/mediacontainerwithartworkmediacontainer.md + - docs/models/shared/mediacontainerwithartworkmetadatum.md + - docs/models/shared/mediacontainerwithartworktype.md + - docs/models/shared/mediacontainerwithdecision.md + - docs/models/shared/mediacontainerwithdecisionguid.md + - docs/models/shared/mediacontainerwithdecisionlocation.md + - docs/models/shared/mediacontainerwithdecisionmedia.md + - docs/models/shared/mediacontainerwithdecisionmediacontainer.md + - docs/models/shared/mediacontainerwithdecisionmetadatum.md + - docs/models/shared/mediacontainerwithdecisionpart.md + - docs/models/shared/mediacontainerwithdecisionstream.md + - docs/models/shared/mediacontainerwithdevice.md + - docs/models/shared/mediacontainerwithdevicedevice.md + - docs/models/shared/mediacontainerwithdevicemediacontainer.md + - docs/models/shared/mediacontainerwithdirectory.md + - docs/models/shared/mediacontainerwithdirectorymediacontainer.md + - docs/models/shared/mediacontainerwithhubs.md + - docs/models/shared/mediacontainerwithhubsmediacontainer.md + - docs/models/shared/mediacontainerwithlineup.md + - docs/models/shared/mediacontainerwithlineupmediacontainer.md + - docs/models/shared/mediacontainerwithmetadata.md + - docs/models/shared/mediacontainerwithmetadatamediacontainer.md + - docs/models/shared/mediacontainerwithnestedmetadata.md + - docs/models/shared/mediacontainerwithnestedmetadataguid.md + - docs/models/shared/mediacontainerwithnestedmetadatamediacontainer.md + - docs/models/shared/mediacontainerwithplaylistmetadata.md + - docs/models/shared/mediacontainerwithplaylistmetadataguid.md + - docs/models/shared/mediacontainerwithplaylistmetadatamediacontainer.md + - docs/models/shared/mediacontainerwithplaylistmetadatametadatum.md + - docs/models/shared/mediacontainerwithsettings.md + - docs/models/shared/mediacontainerwithsettingsmediacontainer.md + - docs/models/shared/mediacontainerwithsubscription.md + - docs/models/shared/mediacontainerwithsubscriptionmediacontainer.md + - docs/models/shared/mediaenum.md + - docs/models/shared/mediagraboperation.md + - docs/models/shared/mediagraboperationstatus.md + - docs/models/shared/mediaquery.md + - docs/models/shared/mediareviewsvisibility.md + - docs/models/shared/mediasubscription.md + - docs/models/shared/mediatype.md + - docs/models/shared/mediatypestring.md + - docs/models/shared/metadata.md + - docs/models/shared/metadataguid.md + - docs/models/shared/metadataitem.md + - docs/models/shared/metadatumresponse.md + - docs/models/shared/part.md + - docs/models/shared/player.md + - docs/models/shared/playlisttype.md + - docs/models/shared/plexdevice.md + - docs/models/shared/plexdeviceprotocol.md + - docs/models/shared/postresponses200.md + - docs/models/shared/postresponses200mediacontainer.md + - docs/models/shared/protocolparameter.md + - docs/models/shared/recommendationsvisibility.md + - docs/models/shared/security.md + - docs/models/shared/service.md + - docs/models/shared/servicestatus.md + - docs/models/shared/session.md + - docs/models/shared/sessionlocation.md + - docs/models/shared/setting.md + - docs/models/shared/settingtype.md + - docs/models/shared/slashgetresponses200.md + - docs/models/shared/slashgetresponses200mediacontainer.md + - docs/models/shared/sort.md + - docs/models/shared/sortpivot.md + - docs/models/shared/stream.md + - docs/models/shared/streamdecision.md + - docs/models/shared/subscription1.md + - docs/models/shared/subscription2.md + - docs/models/shared/subscriptionstatus1.md + - docs/models/shared/subscriptionstatus2.md + - docs/models/shared/subtitles.md + - docs/models/shared/tag.md + - docs/models/shared/transcodesession.md + - docs/models/shared/transcodetype.md + - docs/models/shared/typeresponse.md + - docs/models/shared/user.md + - docs/models/shared/userplexaccount.md + - docs/models/shared/userprofile.md + - docs/models/shared/value.md + - docs/models/shared/watchedindicator.md - docs/sdks/activities/README.md - docs/sdks/authentication/README.md - docs/sdks/butler/README.md @@ -1442,6 +1266,306 @@ generatedFiles: - src/lib/sdks.ts - src/lib/security.ts - src/lib/url.ts + - src/models/errors/getserverresources.ts + - src/models/errors/gettokendetails.ts + - src/models/errors/getusers.ts + - src/models/errors/httpclienterrors.ts + - src/models/errors/index.ts + - src/models/errors/plexapierror.ts + - src/models/errors/postuserssignindata.ts + - src/models/errors/responsevalidationerror.ts + - src/models/errors/sdkerror.ts + - src/models/errors/sdkvalidationerror.ts + - src/models/operations/addcollectionitems.ts + - src/models/operations/adddevice.ts + - src/models/operations/adddevicetodvr.ts + - src/models/operations/adddownloadqueueitems.ts + - src/models/operations/addextras.ts + - src/models/operations/addlineup.ts + - src/models/operations/addplaylistitems.ts + - src/models/operations/addprovider.ts + - src/models/operations/addsection.ts + - src/models/operations/addsubtitles.ts + - src/models/operations/addtoplayqueue.ts + - src/models/operations/analyzemetadata.ts + - src/models/operations/applyupdates.ts + - src/models/operations/autocomplete.ts + - src/models/operations/cancelactivity.ts + - src/models/operations/cancelgrab.ts + - src/models/operations/cancelrefresh.ts + - src/models/operations/checkupdates.ts + - src/models/operations/clearplaylistitems.ts + - src/models/operations/clearplayqueue.ts + - src/models/operations/computechannelmap.ts + - src/models/operations/connectwebsocket.ts + - src/models/operations/createcollection.ts + - src/models/operations/createcustomhub.ts + - src/models/operations/createdownloadqueue.ts + - src/models/operations/createdvr.ts + - src/models/operations/createmarker.ts + - src/models/operations/createplaylist.ts + - src/models/operations/createplayqueue.ts + - src/models/operations/createsubscription.ts + - src/models/operations/deletecollection.ts + - src/models/operations/deletecollectionitem.ts + - src/models/operations/deletecustomhub.ts + - src/models/operations/deletedvr.ts + - src/models/operations/deletehistory.ts + - src/models/operations/deleteindexes.ts + - src/models/operations/deleteintros.ts + - src/models/operations/deletelibrarysection.ts + - src/models/operations/deletelineup.ts + - src/models/operations/deletemarker.ts + - src/models/operations/deletemediaitem.ts + - src/models/operations/deletemediaprovider.ts + - src/models/operations/deletemetadataitem.ts + - src/models/operations/deleteplaylist.ts + - src/models/operations/deleteplaylistitem.ts + - src/models/operations/deleteplayqueueitem.ts + - src/models/operations/deletestream.ts + - src/models/operations/deletesubscription.ts + - src/models/operations/detectads.ts + - src/models/operations/detectcredits.ts + - src/models/operations/detectintros.ts + - src/models/operations/detectvoiceactivity.ts + - src/models/operations/editmarker.ts + - src/models/operations/editmetadataitem.ts + - src/models/operations/editsection.ts + - src/models/operations/editsubscriptionpreferences.ts + - src/models/operations/emptytrash.ts + - src/models/operations/enablepapertrail.ts + - src/models/operations/generatethumbs.ts + - src/models/operations/getalbums.ts + - src/models/operations/getallhubs.ts + - src/models/operations/getallitemleaves.ts + - src/models/operations/getalllanguages.ts + - src/models/operations/getallleaves.ts + - src/models/operations/getallsubscriptions.ts + - src/models/operations/getarts.ts + - src/models/operations/getaugmentationstatus.ts + - src/models/operations/getavailablegrabbers.ts + - src/models/operations/getavailablesorts.ts + - src/models/operations/getbackgroundtasks.ts + - src/models/operations/getcategories.ts + - src/models/operations/getchannels.ts + - src/models/operations/getchapterimage.ts + - src/models/operations/getcluster.ts + - src/models/operations/getcollectionimage.ts + - src/models/operations/getcollectionitems.ts + - src/models/operations/getcollections.ts + - src/models/operations/getcolors.ts + - src/models/operations/getcommon.ts + - src/models/operations/getcontinuewatching.ts + - src/models/operations/getcountries.ts + - src/models/operations/getcountrieslineups.ts + - src/models/operations/getcountryregions.ts + - src/models/operations/getdevicedetails.ts + - src/models/operations/getdeviceschannels.ts + - src/models/operations/getdownloadqueue.ts + - src/models/operations/getdownloadqueueitems.ts + - src/models/operations/getdownloadqueuemedia.ts + - src/models/operations/getdvr.ts + - src/models/operations/getextras.ts + - src/models/operations/getfile.ts + - src/models/operations/getfirstcharacters.ts + - src/models/operations/getfolders.ts + - src/models/operations/gethistoryitem.ts + - src/models/operations/gethubitems.ts + - src/models/operations/getidentity.ts + - src/models/operations/getimage.ts + - src/models/operations/getimagefrombif.ts + - src/models/operations/getitemartwork.ts + - src/models/operations/getitemdecision.ts + - src/models/operations/getitemtree.ts + - src/models/operations/getlibrarydetails.ts + - src/models/operations/getlibraryitems.ts + - src/models/operations/getlibrarymatches.ts + - src/models/operations/getlineup.ts + - src/models/operations/getlineupchannels.ts + - src/models/operations/getlivetvsession.ts + - src/models/operations/getmediapart.ts + - src/models/operations/getmetadatahubs.ts + - src/models/operations/getmetadataitem.ts + - src/models/operations/getnotifications.ts + - src/models/operations/getpartindex.ts + - src/models/operations/getperson.ts + - src/models/operations/getplaylist.ts + - src/models/operations/getplaylistgenerator.ts + - src/models/operations/getplaylistgeneratoritems.ts + - src/models/operations/getplaylistgenerators.ts + - src/models/operations/getplaylistitems.ts + - src/models/operations/getplayqueue.ts + - src/models/operations/getpostplayhubs.ts + - src/models/operations/getpreference.ts + - src/models/operations/getpromotedhubs.ts + - src/models/operations/getrandomartwork.ts + - src/models/operations/getrelatedhubs.ts + - src/models/operations/getrelateditems.ts + - src/models/operations/getscheduledrecordings.ts + - src/models/operations/getsectionfilters.ts + - src/models/operations/getsectionhubs.ts + - src/models/operations/getsectionimage.ts + - src/models/operations/getsectionpreferences.ts + - src/models/operations/getsections.ts + - src/models/operations/getsectionsprefs.ts + - src/models/operations/getserverinfo.ts + - src/models/operations/getserverresources.ts + - src/models/operations/getsessionplaylistindex.ts + - src/models/operations/getsessions.ts + - src/models/operations/getsessionsegment.ts + - src/models/operations/getsonicallysimilar.ts + - src/models/operations/getsonicpath.ts + - src/models/operations/getsourceconnectioninformation.ts + - src/models/operations/getstream.ts + - src/models/operations/getstreamlevels.ts + - src/models/operations/getstreamloudness.ts + - src/models/operations/getsubscription.ts + - src/models/operations/gettags.ts + - src/models/operations/gettasks.ts + - src/models/operations/gettemplate.ts + - src/models/operations/getthumb.ts + - src/models/operations/gettokendetails.ts + - src/models/operations/gettransienttoken.ts + - src/models/operations/getupdatesstatus.ts + - src/models/operations/getusers.ts + - src/models/operations/index.ts + - src/models/operations/ingesttransientitem.ts + - src/models/operations/listactivities.ts + - src/models/operations/listcontent.ts + - src/models/operations/listdevices.ts + - src/models/operations/listdownloadqueueitems.ts + - src/models/operations/listdvrs.ts + - src/models/operations/listhubs.ts + - src/models/operations/listlineups.ts + - src/models/operations/listmatches.ts + - src/models/operations/listmoments.ts + - src/models/operations/listpersonmedia.ts + - src/models/operations/listplaybackhistory.ts + - src/models/operations/listplaylists.ts + - src/models/operations/listproviders.ts + - src/models/operations/listsessions.ts + - src/models/operations/listsimilar.ts + - src/models/operations/listsonicallysimilar.ts + - src/models/operations/listtopusers.ts + - src/models/operations/makedecision.ts + - src/models/operations/markplayed.ts + - src/models/operations/matchitem.ts + - src/models/operations/mergeitems.ts + - src/models/operations/modifydevice.ts + - src/models/operations/modifyplaylistgenerator.ts + - src/models/operations/movecollectionitem.ts + - src/models/operations/movehub.ts + - src/models/operations/moveplaylistitem.ts + - src/models/operations/moveplayqueueitem.ts + - src/models/operations/optimizedatabase.ts + - src/models/operations/postuserssignindata.ts + - src/models/operations/processsubscriptions.ts + - src/models/operations/refreshitemsmetadata.ts + - src/models/operations/refreshplaylist.ts + - src/models/operations/refreshsection.ts + - src/models/operations/refreshsectionsmetadata.ts + - src/models/operations/reloadguide.ts + - src/models/operations/removedevice.ts + - src/models/operations/removedevicefromdvr.ts + - src/models/operations/removedownloadqueueitems.ts + - src/models/operations/reordersubscription.ts + - src/models/operations/report.ts + - src/models/operations/resetplayqueue.ts + - src/models/operations/resetsectiondefaults.ts + - src/models/operations/restartprocessingdownloadqueueitems.ts + - src/models/operations/scan.ts + - src/models/operations/searchhubs.ts + - src/models/operations/setchannelmap.ts + - src/models/operations/setdevicepreferences.ts + - src/models/operations/setdvrpreferences.ts + - src/models/operations/setitemartwork.ts + - src/models/operations/setitempreferences.ts + - src/models/operations/setpreferences.ts + - src/models/operations/setrating.ts + - src/models/operations/setsectionpreferences.ts + - src/models/operations/setstreamoffset.ts + - src/models/operations/setstreamselection.ts + - src/models/operations/shuffle.ts + - src/models/operations/splititem.ts + - src/models/operations/startanalysis.ts + - src/models/operations/startbifgeneration.ts + - src/models/operations/starttask.ts + - src/models/operations/starttranscodesession.ts + - src/models/operations/stopdvrreload.ts + - src/models/operations/stopscan.ts + - src/models/operations/stoptask.ts + - src/models/operations/terminatesession.ts + - src/models/operations/transcodeimage.ts + - src/models/operations/transcodesubtitles.ts + - src/models/operations/triggerfallback.ts + - src/models/operations/tunechannel.ts + - src/models/operations/unmatch.ts + - src/models/operations/unscrobble.ts + - src/models/operations/unshuffle.ts + - src/models/operations/updatehubvisibility.ts + - src/models/operations/updateitemartwork.ts + - src/models/operations/updateitems.ts + - src/models/operations/updateplaylist.ts + - src/models/operations/uploadplaylist.ts + - src/models/operations/voicesearchhubs.ts + - src/models/operations/writemessage.ts + - src/models/shared/accepts.ts + - src/models/shared/advancedsubtitles.ts + - src/models/shared/boolint.ts + - src/models/shared/channel.ts + - src/models/shared/channelmapping.ts + - src/models/shared/composite.ts + - src/models/shared/device.ts + - src/models/shared/directory.ts + - src/models/shared/dvrrequesthandlerslashgetresponses200.ts + - src/models/shared/filter.ts + - src/models/shared/getresponses200.ts + - src/models/shared/historyallgetresponses200.ts + - src/models/shared/hub.ts + - src/models/shared/image.ts + - src/models/shared/index.ts + - src/models/shared/items.ts + - src/models/shared/librarysection.ts + - src/models/shared/librarysections.ts + - src/models/shared/lineup.ts + - src/models/shared/locationparameter.ts + - src/models/shared/media.ts + - src/models/shared/mediacontainer.ts + - src/models/shared/mediacontainerwithartwork.ts + - src/models/shared/mediacontainerwithdecision.ts + - src/models/shared/mediacontainerwithdevice.ts + - src/models/shared/mediacontainerwithdirectory.ts + - src/models/shared/mediacontainerwithhubs.ts + - src/models/shared/mediacontainerwithlineup.ts + - src/models/shared/mediacontainerwithmetadata.ts + - src/models/shared/mediacontainerwithnestedmetadata.ts + - src/models/shared/mediacontainerwithplaylistmetadata.ts + - src/models/shared/mediacontainerwithsettings.ts + - src/models/shared/mediacontainerwithsubscription.ts + - src/models/shared/mediagraboperation.ts + - src/models/shared/mediaquery.ts + - src/models/shared/mediasubscription.ts + - src/models/shared/mediatype.ts + - src/models/shared/mediatypestring.ts + - src/models/shared/metadata.ts + - src/models/shared/part.ts + - src/models/shared/player.ts + - src/models/shared/plexdevice.ts + - src/models/shared/postresponses200.ts + - src/models/shared/protocolparameter.ts + - src/models/shared/security.ts + - src/models/shared/session.ts + - src/models/shared/setting.ts + - src/models/shared/slashgetresponses200.ts + - src/models/shared/sort.ts + - src/models/shared/stream.ts + - src/models/shared/subtitles.ts + - src/models/shared/tag.ts + - src/models/shared/transcodesession.ts + - src/models/shared/transcodetype.ts + - src/models/shared/user.ts + - src/models/shared/userplexaccount.ts + - src/models/shared/userprofile.ts - src/sdk/activities.ts - src/sdk/authentication.ts - src/sdk/butler.ts @@ -1460,315 +1584,6 @@ generatedFiles: - src/sdk/libraryplaylists.ts - src/sdk/livetv.ts - src/sdk/log.ts - - src/sdk/models/errors/getserverresources.ts - - src/sdk/models/errors/gettokendetails.ts - - src/sdk/models/errors/getusers.ts - - src/sdk/models/errors/httpclienterrors.ts - - src/sdk/models/errors/index.ts - - src/sdk/models/errors/plexapierror.ts - - src/sdk/models/errors/postuserssignindata.ts - - src/sdk/models/errors/responsevalidationerror.ts - - src/sdk/models/errors/sdkerror.ts - - src/sdk/models/errors/sdkvalidationerror.ts - - src/sdk/models/operations/addcollectionitems.ts - - src/sdk/models/operations/adddevice.ts - - src/sdk/models/operations/adddevicetodvr.ts - - src/sdk/models/operations/adddownloadqueueitems.ts - - src/sdk/models/operations/addextras.ts - - src/sdk/models/operations/addlineup.ts - - src/sdk/models/operations/addplaylistitems.ts - - src/sdk/models/operations/addprovider.ts - - src/sdk/models/operations/addsection.ts - - src/sdk/models/operations/addsubtitles.ts - - src/sdk/models/operations/addtoplayqueue.ts - - src/sdk/models/operations/analyzemetadata.ts - - src/sdk/models/operations/applyupdates.ts - - src/sdk/models/operations/autocomplete.ts - - src/sdk/models/operations/cancelactivity.ts - - src/sdk/models/operations/cancelgrab.ts - - src/sdk/models/operations/cancelrefresh.ts - - src/sdk/models/operations/checkupdates.ts - - src/sdk/models/operations/cleanbundles.ts - - src/sdk/models/operations/clearplaylistitems.ts - - src/sdk/models/operations/clearplayqueue.ts - - src/sdk/models/operations/computechannelmap.ts - - src/sdk/models/operations/connectwebsocket.ts - - src/sdk/models/operations/createcollection.ts - - src/sdk/models/operations/createcustomhub.ts - - src/sdk/models/operations/createdownloadqueue.ts - - src/sdk/models/operations/createdvr.ts - - src/sdk/models/operations/createmarker.ts - - src/sdk/models/operations/createplaylist.ts - - src/sdk/models/operations/createplayqueue.ts - - src/sdk/models/operations/createsubscription.ts - - src/sdk/models/operations/deletecaches.ts - - src/sdk/models/operations/deletecollection.ts - - src/sdk/models/operations/deletecollectionitem.ts - - src/sdk/models/operations/deletecustomhub.ts - - src/sdk/models/operations/deletedvr.ts - - src/sdk/models/operations/deletehistory.ts - - src/sdk/models/operations/deleteindexes.ts - - src/sdk/models/operations/deleteintros.ts - - src/sdk/models/operations/deletelibrarysection.ts - - src/sdk/models/operations/deletelineup.ts - - src/sdk/models/operations/deletemarker.ts - - src/sdk/models/operations/deletemediaitem.ts - - src/sdk/models/operations/deletemediaprovider.ts - - src/sdk/models/operations/deletemetadataitem.ts - - src/sdk/models/operations/deleteplaylist.ts - - src/sdk/models/operations/deleteplaylistitem.ts - - src/sdk/models/operations/deleteplayqueueitem.ts - - src/sdk/models/operations/deletestream.ts - - src/sdk/models/operations/deletesubscription.ts - - src/sdk/models/operations/detectads.ts - - src/sdk/models/operations/detectcredits.ts - - src/sdk/models/operations/detectintros.ts - - src/sdk/models/operations/detectvoiceactivity.ts - - src/sdk/models/operations/discoverdevices.ts - - src/sdk/models/operations/editmarker.ts - - src/sdk/models/operations/editmetadataitem.ts - - src/sdk/models/operations/editsection.ts - - src/sdk/models/operations/editsubscriptionpreferences.ts - - src/sdk/models/operations/emptytrash.ts - - src/sdk/models/operations/enablepapertrail.ts - - src/sdk/models/operations/generatethumbs.ts - - src/sdk/models/operations/getalbums.ts - - src/sdk/models/operations/getallhubs.ts - - src/sdk/models/operations/getallitemleaves.ts - - src/sdk/models/operations/getalllanguages.ts - - src/sdk/models/operations/getallleaves.ts - - src/sdk/models/operations/getallpreferences.ts - - src/sdk/models/operations/getallsubscriptions.ts - - src/sdk/models/operations/getarts.ts - - src/sdk/models/operations/getaugmentationstatus.ts - - src/sdk/models/operations/getavailablegrabbers.ts - - src/sdk/models/operations/getavailablesorts.ts - - src/sdk/models/operations/getbackgroundtasks.ts - - src/sdk/models/operations/getcategories.ts - - src/sdk/models/operations/getchannels.ts - - src/sdk/models/operations/getchapterimage.ts - - src/sdk/models/operations/getcluster.ts - - src/sdk/models/operations/getcollectionimage.ts - - src/sdk/models/operations/getcollectionitems.ts - - src/sdk/models/operations/getcollections.ts - - src/sdk/models/operations/getcolors.ts - - src/sdk/models/operations/getcommon.ts - - src/sdk/models/operations/getcontinuewatching.ts - - src/sdk/models/operations/getcountries.ts - - src/sdk/models/operations/getcountrieslineups.ts - - src/sdk/models/operations/getcountryregions.ts - - src/sdk/models/operations/getdevicedetails.ts - - src/sdk/models/operations/getdeviceschannels.ts - - src/sdk/models/operations/getdownloadqueue.ts - - src/sdk/models/operations/getdownloadqueueitems.ts - - src/sdk/models/operations/getdownloadqueuemedia.ts - - src/sdk/models/operations/getdvr.ts - - src/sdk/models/operations/getextras.ts - - src/sdk/models/operations/getfile.ts - - src/sdk/models/operations/getfirstcharacters.ts - - src/sdk/models/operations/getfolders.ts - - src/sdk/models/operations/gethistoryitem.ts - - src/sdk/models/operations/gethubitems.ts - - src/sdk/models/operations/getidentity.ts - - src/sdk/models/operations/getimage.ts - - src/sdk/models/operations/getimagefrombif.ts - - src/sdk/models/operations/getitemartwork.ts - - src/sdk/models/operations/getitemdecision.ts - - src/sdk/models/operations/getitemtree.ts - - src/sdk/models/operations/getlibrarydetails.ts - - src/sdk/models/operations/getlibraryitems.ts - - src/sdk/models/operations/getlibrarymatches.ts - - src/sdk/models/operations/getlineup.ts - - src/sdk/models/operations/getlineupchannels.ts - - src/sdk/models/operations/getlivetvsession.ts - - src/sdk/models/operations/getmediapart.ts - - src/sdk/models/operations/getmetadatahubs.ts - - src/sdk/models/operations/getmetadataitem.ts - - src/sdk/models/operations/getnotifications.ts - - src/sdk/models/operations/getpartindex.ts - - src/sdk/models/operations/getperson.ts - - src/sdk/models/operations/getplaylist.ts - - src/sdk/models/operations/getplaylistgenerator.ts - - src/sdk/models/operations/getplaylistgeneratoritems.ts - - src/sdk/models/operations/getplaylistgenerators.ts - - src/sdk/models/operations/getplaylistitems.ts - - src/sdk/models/operations/getplayqueue.ts - - src/sdk/models/operations/getpostplayhubs.ts - - src/sdk/models/operations/getpreference.ts - - src/sdk/models/operations/getpromotedhubs.ts - - src/sdk/models/operations/getrandomartwork.ts - - src/sdk/models/operations/getrelatedhubs.ts - - src/sdk/models/operations/getrelateditems.ts - - src/sdk/models/operations/getscheduledrecordings.ts - - src/sdk/models/operations/getsectionfilters.ts - - src/sdk/models/operations/getsectionhubs.ts - - src/sdk/models/operations/getsectionimage.ts - - src/sdk/models/operations/getsectionpreferences.ts - - src/sdk/models/operations/getsections.ts - - src/sdk/models/operations/getsectionsprefs.ts - - src/sdk/models/operations/getserverinfo.ts - - src/sdk/models/operations/getserverresources.ts - - src/sdk/models/operations/getsessionplaylistindex.ts - - src/sdk/models/operations/getsessions.ts - - src/sdk/models/operations/getsessionsegment.ts - - src/sdk/models/operations/getsonicallysimilar.ts - - src/sdk/models/operations/getsonicpath.ts - - src/sdk/models/operations/getsourceconnectioninformation.ts - - src/sdk/models/operations/getstream.ts - - src/sdk/models/operations/getstreamlevels.ts - - src/sdk/models/operations/getstreamloudness.ts - - src/sdk/models/operations/getsubscription.ts - - src/sdk/models/operations/gettags.ts - - src/sdk/models/operations/gettasks.ts - - src/sdk/models/operations/gettemplate.ts - - src/sdk/models/operations/getthumb.ts - - src/sdk/models/operations/gettokendetails.ts - - src/sdk/models/operations/gettransienttoken.ts - - src/sdk/models/operations/getupdatesstatus.ts - - src/sdk/models/operations/getusers.ts - - src/sdk/models/operations/index.ts - - src/sdk/models/operations/ingesttransientitem.ts - - src/sdk/models/operations/listactivities.ts - - src/sdk/models/operations/listcontent.ts - - src/sdk/models/operations/listdevices.ts - - src/sdk/models/operations/listdownloadqueueitems.ts - - src/sdk/models/operations/listdvrs.ts - - src/sdk/models/operations/listhubs.ts - - src/sdk/models/operations/listlineups.ts - - src/sdk/models/operations/listmatches.ts - - src/sdk/models/operations/listmoments.ts - - src/sdk/models/operations/listpersonmedia.ts - - src/sdk/models/operations/listplaybackhistory.ts - - src/sdk/models/operations/listplaylists.ts - - src/sdk/models/operations/listproviders.ts - - src/sdk/models/operations/listsessions.ts - - src/sdk/models/operations/listsimilar.ts - - src/sdk/models/operations/listsonicallysimilar.ts - - src/sdk/models/operations/listtopusers.ts - - src/sdk/models/operations/makedecision.ts - - src/sdk/models/operations/markplayed.ts - - src/sdk/models/operations/matchitem.ts - - src/sdk/models/operations/mergeitems.ts - - src/sdk/models/operations/modifydevice.ts - - src/sdk/models/operations/modifyplaylistgenerator.ts - - src/sdk/models/operations/movecollectionitem.ts - - src/sdk/models/operations/movehub.ts - - src/sdk/models/operations/moveplaylistitem.ts - - src/sdk/models/operations/moveplayqueueitem.ts - - src/sdk/models/operations/optimizedatabase.ts - - src/sdk/models/operations/postuserssignindata.ts - - src/sdk/models/operations/processsubscriptions.ts - - src/sdk/models/operations/refreshitemsmetadata.ts - - src/sdk/models/operations/refreshplaylist.ts - - src/sdk/models/operations/refreshproviders.ts - - src/sdk/models/operations/refreshsection.ts - - src/sdk/models/operations/refreshsectionsmetadata.ts - - src/sdk/models/operations/reloadguide.ts - - src/sdk/models/operations/removedevice.ts - - src/sdk/models/operations/removedevicefromdvr.ts - - src/sdk/models/operations/removedownloadqueueitems.ts - - src/sdk/models/operations/reordersubscription.ts - - src/sdk/models/operations/report.ts - - src/sdk/models/operations/resetplayqueue.ts - - src/sdk/models/operations/resetsectiondefaults.ts - - src/sdk/models/operations/restartprocessingdownloadqueueitems.ts - - src/sdk/models/operations/scan.ts - - src/sdk/models/operations/searchhubs.ts - - src/sdk/models/operations/setchannelmap.ts - - src/sdk/models/operations/setdevicepreferences.ts - - src/sdk/models/operations/setdvrpreferences.ts - - src/sdk/models/operations/setitemartwork.ts - - src/sdk/models/operations/setitempreferences.ts - - src/sdk/models/operations/setpreferences.ts - - src/sdk/models/operations/setrating.ts - - src/sdk/models/operations/setsectionpreferences.ts - - src/sdk/models/operations/setstreamoffset.ts - - src/sdk/models/operations/setstreamselection.ts - - src/sdk/models/operations/shuffle.ts - - src/sdk/models/operations/splititem.ts - - src/sdk/models/operations/startanalysis.ts - - src/sdk/models/operations/startbifgeneration.ts - - src/sdk/models/operations/starttask.ts - - src/sdk/models/operations/starttasks.ts - - src/sdk/models/operations/starttranscodesession.ts - - src/sdk/models/operations/stopallrefreshes.ts - - src/sdk/models/operations/stopdvrreload.ts - - src/sdk/models/operations/stopscan.ts - - src/sdk/models/operations/stoptask.ts - - src/sdk/models/operations/stoptasks.ts - - src/sdk/models/operations/terminatesession.ts - - src/sdk/models/operations/transcodeimage.ts - - src/sdk/models/operations/transcodesubtitles.ts - - src/sdk/models/operations/triggerfallback.ts - - src/sdk/models/operations/tunechannel.ts - - src/sdk/models/operations/unmatch.ts - - src/sdk/models/operations/unscrobble.ts - - src/sdk/models/operations/unshuffle.ts - - src/sdk/models/operations/updatehubvisibility.ts - - src/sdk/models/operations/updateitemartwork.ts - - src/sdk/models/operations/updateitems.ts - - src/sdk/models/operations/updateplaylist.ts - - src/sdk/models/operations/uploadplaylist.ts - - 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 - - src/sdk/models/shared/channelmapping.ts - - src/sdk/models/shared/composite.ts - - src/sdk/models/shared/device.ts - - src/sdk/models/shared/directory.ts - - src/sdk/models/shared/dvrrequesthandlerslashgetresponses200.ts - - src/sdk/models/shared/filter.ts - - src/sdk/models/shared/getresponses200.ts - - src/sdk/models/shared/historyallgetresponses200.ts - - src/sdk/models/shared/hub.ts - - src/sdk/models/shared/image.ts - - src/sdk/models/shared/index.ts - - src/sdk/models/shared/items.ts - - src/sdk/models/shared/librarysection.ts - - src/sdk/models/shared/librarysections.ts - - src/sdk/models/shared/lineup.ts - - src/sdk/models/shared/locationparameter.ts - - src/sdk/models/shared/media.ts - - src/sdk/models/shared/mediacontainer.ts - - src/sdk/models/shared/mediacontainerwithartwork.ts - - src/sdk/models/shared/mediacontainerwithdecision.ts - - src/sdk/models/shared/mediacontainerwithdevice.ts - - src/sdk/models/shared/mediacontainerwithdirectory.ts - - src/sdk/models/shared/mediacontainerwithhubs.ts - - src/sdk/models/shared/mediacontainerwithlineup.ts - - src/sdk/models/shared/mediacontainerwithmetadata.ts - - src/sdk/models/shared/mediacontainerwithnestedmetadata.ts - - src/sdk/models/shared/mediacontainerwithplaylistmetadata.ts - - src/sdk/models/shared/mediacontainerwithsettings.ts - - src/sdk/models/shared/mediacontainerwithsubscription.ts - - src/sdk/models/shared/mediagraboperation.ts - - src/sdk/models/shared/mediaquery.ts - - src/sdk/models/shared/mediasubscription.ts - - src/sdk/models/shared/mediatype.ts - - src/sdk/models/shared/mediatypestring.ts - - src/sdk/models/shared/metadata.ts - - src/sdk/models/shared/part.ts - - src/sdk/models/shared/player.ts - - src/sdk/models/shared/plexdevice.ts - - src/sdk/models/shared/postresponses200.ts - - src/sdk/models/shared/protocolparameter.ts - - src/sdk/models/shared/security.ts - - src/sdk/models/shared/session.ts - - src/sdk/models/shared/setting.ts - - src/sdk/models/shared/slashgetresponses200.ts - - src/sdk/models/shared/sort.ts - - src/sdk/models/shared/stream.ts - - src/sdk/models/shared/subtitles.ts - - src/sdk/models/shared/tag.ts - - src/sdk/models/shared/transcodesession.ts - - src/sdk/models/shared/transcodetype.ts - - src/sdk/models/shared/user.ts - - src/sdk/models/shared/userplexaccount.ts - - src/sdk/models/shared/userprofile.ts - src/sdk/playlist.ts - src/sdk/playqueue.ts - src/sdk/plex.ts @@ -1781,19 +1596,22 @@ generatedFiles: - src/sdk/subscriptions.ts - src/sdk/timeline.ts - src/sdk/transcoder.ts - - src/sdk/types/async.ts - - src/sdk/types/blobs.ts - - src/sdk/types/constdatetime.ts - - src/sdk/types/enums.ts - - src/sdk/types/fp.ts - - src/sdk/types/index.ts - - src/sdk/types/operations.ts - - src/sdk/types/rfcdate.ts - - src/sdk/types/streams.ts - - src/sdk/types/unrecognized.ts - src/sdk/ultrablur.ts - src/sdk/updater.ts - src/sdk/users.ts + - src/types/async.ts + - src/types/blobs.ts + - src/types/constdatetime.ts + - src/types/defaultToZeroValue.ts + - src/types/enums.ts + - src/types/fp.ts + - src/types/index.ts + - src/types/operations.ts + - src/types/primitives.ts + - src/types/rfcdate.ts + - src/types/smartUnion.ts + - src/types/streams.ts + - src/types/unrecognized.ts - tsconfig.json examples: getServerCapabilities: @@ -7709,4 +7527,3 @@ generatedTests: post-users-sign-in-data: "2025-12-01T00:14:41Z" get-users: "2025-12-01T00:14:41Z" get-server-resources: "2025-12-01T00:14:41Z" -releaseNotes: "## Typescript SDK Changes:\n* `plex-api.libraryPlaylists.addPlaylistItems()`: `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.hubs.getMetadataHubs()`: \n * `request.onlyTransient` **Changed**\n * `response.mediacontainer.hub.[].metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.libraryCollections.moveCollectionItem()`: `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.libraryCollections.deleteCollectionItem()`: `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.libraryCollections.addCollectionItems()`: `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.content.getSonicallySimilar()`: `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.butler.stopTask()`: `request` **Changed** **Breaking** :warning:\n* `plex-api.butler.startTask()`: `request` **Changed** **Breaking** :warning:\n* `plex-api.content.getSonicPath()`: `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.downloadQueue.getItemDecision()`: `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.hubs.getAllHubs()`: \n * `request.onlyTransient` **Changed**\n * `response.mediacontainer.hub.[].metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.hubs.getContinueWatching()`: `response.mediacontainer.hub.[].metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.hubs.getPromotedHubs()`: `response.mediacontainer.hub.[].metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.content.getAllLeaves()`: `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.hubs.getPostplayHubs()`: \n * `request.onlyTransient` **Changed**\n * `response.mediacontainer.hub.[].metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.hubs.getRelatedHubs()`: \n * `request.onlyTransient` **Changed**\n * `response.mediacontainer.hub.[].metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.hubs.getSectionHubs()`: \n * `request.onlyTransient` **Changed**\n * `response.mediacontainer.hub.[].metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.content.listContent()`: \n * `request` **Changed**\n * `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.content.getAlbums()`: `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.search.searchHubs()`: `response.mediacontainer.hub.[].metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.search.voiceSearchHubs()`: \n * `request.type` **Changed** **Breaking** :warning:\n * `response.mediacontainer.hub.[].metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.library.getLibraryItems()`: \n * `request.mediaQuery` **Changed**\n * `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.library.ingestTransientItem()`: \n * `request` **Changed**\n * `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.library.getLibraryMatches()`: \n * `request` **Changed** **Breaking** :warning:\n * `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.content.getMetadataItem()`: \n * `request` **Changed**\n * `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.library.getSections()`: `response.mediacontainer.directory.[]` **Changed** **Breaking** :warning:\n* `plex-api.library.addSection()`: \n * `request` **Changed**\n * `response.mediacontainer.directory.[]` **Changed** **Breaking** :warning:\n* `plex-api.library.getTags()`: \n * `request.type` **Changed** **Breaking** :warning:\n* `plex-api.content.getCollectionItems()`: `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.library.getAllItemLeaves()`: `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.status.listSessions()`: `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.playQueue.movePlayQueueItem()`: `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.library.getExtras()`: `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.playQueue.deletePlayQueueItem()`: `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.playQueue.unshuffle()`: `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.library.listMatches()`: \n * `request.manual` **Changed**\n * `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.library.listSonicallySimilar()`: `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.playQueue.resetPlayQueue()`: `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.library.getRelatedItems()`: `response.mediacontainer.hub.[].metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.library.listSimilar()`: `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.playQueue.clearPlayQueue()`: `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.library.getItemTree()`: `response.mediacontainer.metadataItem.[]` **Changed** **Breaking** :warning:\n* `plex-api.playQueue.addToPlayQueue()`: \n * `request.next` **Changed**\n * `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.playQueue.getPlayQueue()`: \n * `request` **Changed**\n * `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.libraryPlaylists.movePlaylistItem()`: `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.library.getPerson()`: `response.mediacontainer.directory.[]` **Changed** **Breaking** :warning:\n* `plex-api.library.listPersonMedia()`: `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.libraryPlaylists.getPlaylistGeneratorItems()`: `response.mediacontainer.metadata` **Changed** **Breaking** :warning:\n* `plex-api.library.getLibraryDetails()`: \n * `request.includeDetails` **Changed**\n * `response.mediacontainer.directory.[]` **Changed** **Breaking** :warning:\n* `plex-api.libraryPlaylists.modifyPlaylistGenerator()`: \n * `request.item` **Changed**\n * `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.library.autocomplete()`: \n * `request.mediaQuery` **Changed**\n * `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.library.getCollections()`: \n * `request.mediaQuery` **Changed**\n * `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.library.getCommon()`: \n * `request.mediaQuery` **Changed**\n * `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.libraryPlaylists.deletePlaylistItem()`: `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.libraryPlaylists.clearPlaylistItems()`: `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.playQueue.shuffle()`: `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.libraryPlaylists.createPlaylist()`: `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.playlist.getPlaylistItems()`: `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.playlist.getPlaylist()`: `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.collections.createCollection()`: \n * `request.type` **Changed** **Breaking** :warning:\n * `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.dvRs.tuneChannel()`: `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.liveTv.getSessions()`: `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.liveTv.getLiveTvSession()`: `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.playlist.listPlaylists()`: `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.subscriptions.getAllSubscriptions()`: \n * `request` **Changed**\n * `response.mediacontainer.mediaSubscription.[].mediaGrabOperation.[].metadata` **Changed** **Breaking** :warning:\n* `plex-api.subscriptions.createSubscription()`: `response.mediacontainer.mediaSubscription.[].mediaGrabOperation.[].metadata` **Changed** **Breaking** :warning:\n* `plex-api.subscriptions.getScheduledRecordings()`: `response.mediacontainer.mediaGrabOperation.[].metadata` **Changed** **Breaking** :warning:\n* `plex-api.subscriptions.getTemplate()`: `response.mediacontainer.subscriptionTemplate.[].mediaSubscription.[].mediaGrabOperation.[].metadata` **Changed** **Breaking** :warning:\n* `plex-api.subscriptions.getSubscription()`: \n * `request` **Changed**\n * `response.mediacontainer.mediaSubscription.[].mediaGrabOperation.[].metadata` **Changed** **Breaking** :warning:\n* `plex-api.subscriptions.editSubscriptionPreferences()`: `response.mediacontainer.mediaSubscription.[].mediaGrabOperation.[].metadata` **Changed** **Breaking** :warning:\n* `plex-api.subscriptions.reorderSubscription()`: `response.mediacontainer.mediaSubscription.[].mediaGrabOperation.[].metadata` **Changed** **Breaking** :warning:\n* `plex-api.transcoder.makeDecision()`: \n * `request` **Changed**\n * `response.mediacontainer.metadata.[]` **Changed** **Breaking** :warning:\n* `plex-api.library.refreshItemsMetadata()`: \n * `request.markUpdated` **Changed**\n* `plex-api.authentication.postUsersSignInData()`: **Added**\n* `plex-api.transcoder.startTranscodeSession()`: `request` **Changed**\n* `plex-api.devices.modifyDevice()`: \n * `request.enabled` **Changed**\n* `plex-api.library.getMediaPart()`: \n * `request.download` **Changed**\n* `plex-api.library.detectIntros()`: \n * `request.force` **Changed**\n* `plex-api.library.refreshSection()`: \n * `request.force` **Changed**\n* `plex-api.libraryPlaylists.uploadPlaylist()`: \n * `request.force` **Changed**\n* `plex-api.library.deleteMediaItem()`: \n * `request.proxy` **Changed**\n* `plex-api.authentication.getTokenDetails()`: **Added**\n* `plex-api.library.getFirstCharacters()`: \n * `request.mediaQuery` **Changed**\n* `plex-api.library.updateItems()`: \n * `request.field.locked` **Changed**\n* `plex-api.library.deleteLibrarySection()`: \n * `request.async` **Changed**\n* `plex-api.library.setStreamSelection()`: \n * `request.allParts` **Changed**\n* `plex-api.playQueue.createPlayQueue()`: `request` **Changed**\n* `plex-api.library.getAugmentationStatus()`: \n * `request.wait` **Changed**\n* `plex-api.library.detectVoiceActivity()`: `request` **Changed**\n* `plex-api.transcoder.transcodeImage()`: `request` **Changed**\n* `plex-api.transcoder.transcodeSubtitles()`: `request` **Changed**\n* `plex-api.library.addSubtitles()`: `request` **Changed**\n* `plex-api.library.getStream()`: \n * `request.autoAdjustSubtitle` **Changed**\n* `plex-api.library.startBifGeneration()`: \n * `request.force` **Changed**\n* `plex-api.library.detectCredits()`: `request` **Changed**\n* `plex-api.ultraBlur.getImage()`: \n * `request.noise` **Changed**\n* `plex-api.library.generateThumbs()`: \n * `request.force` **Changed**\n* `plex-api.updater.applyUpdates()`: `request` **Changed**\n* `plex-api.updater.checkUpdates()`: \n * `request.download` **Changed**\n* `plex-api.library.deleteMetadataItem()`: \n * `request.proxy` **Changed**\n* `plex-api.library.optimizeDatabase()`: \n * `request.async` **Changed**\n* `plex-api.hubs.updateHubVisibility()`: `request` **Changed**\n* `plex-api.hubs.createCustomHub()`: `request` **Changed**\n* `plex-api.library.getSectionImage()`: \n * `request.mediaQuery` **Changed**\n* `plex-api.downloadQueue.addDownloadQueueItems()`: `request` **Changed**\n* `plex-api.timeline.report()`: `request` **Changed**\n* `plex-api.general.getSourceConnectionInformation()`: \n * `request.refresh` **Changed**\n* `plex-api.plex.getServerResources()`: **Added**\n* `plex-api.users.getUsers()`: **Added**\n" diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 47b35b24..3cb266ab 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -25,7 +25,7 @@ generation: generateNewTests: true skipResponseBodyAssertions: false typescript: - version: 0.44.0 + version: 0.44.1 acceptHeaderEnum: true additionalDependencies: dependencies: {} @@ -40,7 +40,7 @@ typescript: constFieldsAlwaysOptional: true defaultErrorName: SDKError enableCustomCodeRegions: false - enableMCPServer: true + enableMCPServer: false enableReactQuery: false enumFormat: enum exportZodModelNamespace: false @@ -48,7 +48,7 @@ typescript: flatteningOrder: body-first formStringArrayEncodeMode: encoded-string forwardCompatibleEnumsByDefault: true - forwardCompatibleUnionsByDefault: "tagged-only" + forwardCompatibleUnionsByDefault: tagged-only generateExamples: true imports: option: openapi diff --git a/.speakeasy/tests.arazzo.yaml b/.speakeasy/tests.arazzo.yaml index 546bac87..7761c84f 100644 --- a/.speakeasy/tests.arazzo.yaml +++ b/.speakeasy/tests.arazzo.yaml @@ -7894,7 +7894,7 @@ workflows: parameters: - name: X-Plex-Client-Identifier in: header - value: 3381b62b-9ab7-4e37-827b-203e9809eb58 + value: abc123 - name: X-Plex-Product in: header value: Plex for Roku @@ -7907,6 +7907,24 @@ workflows: - name: X-Plex-Platform in: header value: Roku + - name: accepts + in: header + value: application/xml + - name: X-Plex-Platform-Version + in: header + value: 4.3 build 1057 + - name: X-Plex-Model + in: header + value: 4200X + - name: X-Plex-Device-Vendor + in: header + value: Roku + - name: X-Plex-Device-Name + in: header + value: Living Room TV + - name: X-Plex-Marketplace + in: header + value: googlePlay requestBody: contentType: application/x-www-form-urlencoded payload: @@ -7919,7 +7937,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - {"adsConsent": null, "adsConsentReminderAt": 1556281940, "adsConsentSetAt": 1556281940, "anonymous": false, "authToken": "CxoUzBTSV5hsxjTpFKaf", "backupCodesCreated": false, "confirmed": false, "country": "US", "email": "username@email.com", "emailOnlyAuth": false, "experimentalFeatures": false, "friendlyName": "friendlyUsername", "entitlements": ["[]"], "guest": false, "hasPassword": true, "home": false, "homeAdmin": false, "homeSize": 1, "id": 13692262, "joinedAt": 1556281940, "locale": "ru", "mailingListActive": false, "mailingListStatus": "active", "maxHomeSize": 15, "profile": {"autoSelectAudio": true, "defaultAudioLanguage": "ja", "defaultSubtitleLanguage": "en", "autoSelectSubtitle": 1, "defaultSubtitleAccessibility": 1, "defaultSubtitleForced": 1, "watchedIndicator": 1, "mediaReviewsVisibility": 1}, "protected": false, "rememberExpiresAt": 1556281940, "restricted": false, "scrobbleTypes": "", "services": [], "subscription": {"active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive"}, "subscriptionDescription": "", "subscriptions": [{"active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive"}], "thumb": "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101", "title": "UsernameTitle", "twoFactorEnabled": false, "username": "Username", "uuid": "dae343c1f45beb4f", "attributionPartner": null, "pastSubscriptions": [], "trials": []} + {"adsConsentReminderAt":1556281940,"adsConsentSetAt":1556281940,"anonymous":false,"authToken":"CxoUzBTSV5hsxjTpFKaf","backupCodesCreated":false,"confirmed":false,"country":"US","email":"username@email.com","emailOnlyAuth":false,"experimentalFeatures":false,"friendlyName":"friendlyUsername","entitlements":[],"guest":false,"hasPassword":true,"home":false,"homeAdmin":false,"homeSize":1,"id":13692262,"joinedAt":1556281940,"mailingListActive":false,"mailingListStatus":"active","maxHomeSize":15,"profile":{"autoSelectAudio":true,"defaultAudioLanguage":"ja","defaultAudioAccessibility":0,"defaultAudioLanguages":null,"defaultSubtitleLanguage":"en","defaultSubtitleLanguages":null,"autoSelectSubtitle":1,"defaultSubtitleAccessibility":1,"defaultSubtitleForced":1,"watchedIndicator":1,"mediaReviewsVisibility":1,"mediaReviewsLanguages":null},"protected":false,"rememberExpiresAt":1556281940,"restricted":false,"services":[],"subscription":{"active":true,"subscribedAt":"2021-04-12T18:21:12Z","status":"Inactive"},"subscriptions":[{"active":true,"subscribedAt":"2021-04-12T18:21:12Z","status":"Inactive"}],"thumb":"https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101","title":"UsernameTitle","twoFactorEnabled":false,"username":"Username","uuid":"dae343c1f45beb4f","attributionPartner":null,"pastSubscriptions":[],"trials":[]} type: simple x-speakeasy-test-group: Authentication x-speakeasy-test-rebuild: true @@ -7930,7 +7948,7 @@ workflows: parameters: - name: X-Plex-Client-Identifier in: header - value: 3381b62b-9ab7-4e37-827b-203e9809eb58 + value: abc123 - name: X-Plex-Product in: header value: Plex for Roku @@ -7939,7 +7957,7 @@ workflows: value: Roku 3 - name: X-Plex-Device-Name in: header - value: Chrome + value: Living Room TV - name: X-Plex-Version in: header value: 2.4.1 @@ -7952,8 +7970,22 @@ workflows: - name: X-Plex-Platform-Version in: header value: 4.3 build 1057 + - name: accepts + in: header + value: application/xml + - name: X-Plex-Device-Vendor + in: header + value: Roku + - name: X-Plex-Marketplace + in: header + value: googlePlay successCriteria: - condition: $statusCode == 200 + - condition: $response.header.Content-Type == application/json + - context: $response.body + condition: | + {"MediaContainer":{"friendlyName":"myPlex","identifier":"com.plexapp.plugins.myplex","machineIdentifier":"3dff4c4da3b1229a649aa574a9e2b419a684a20e","totalSize":30,"size":30,"User":[{"id":22526914,"title":"Plex User","username":"zgfuc7krcqfimrmb9lsl5j","email":"zgfuc7krcqfimrmb9lsl5j@protonmail.com","recommendationsPlaylistId":"","thumb":"https://plex.tv/users/3346028014e93acd/avatar?c=1731605021","protected":1,"home":1,"allowTuners":1,"allowSync":1,"allowCameraUpload":1,"allowChannels":1,"allowSubtitleAdmin":1,"filterAll":"","filterMovies":"","filterMusic":"","filterPhotos":"","filterTelevision":"","restricted":1,"Server":[{"id":907759180,"serverId":9999999,"machineIdentifier":"fbb8aa6be6e0c997c6268bc2b4431c8807f70a3","name":"ConnectedUserFlix","lastSeenAt":1556281940,"numLibraries":16,"allLibraries":1,"owned":1,"pending":1}]}]}} + type: simple x-speakeasy-test-group: Users x-speakeasy-test-rebuild: true - workflowId: get-server-resources @@ -7972,13 +8004,16 @@ workflows: value: 1 - name: X-Plex-Client-Identifier in: header - value: 3381b62b-9ab7-4e37-827b-203e9809eb58 + value: abc123 + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - [{"name": "", "product": "Ergonomic Plastic Hat", "productVersion": "", "platform": "", "platformVersion": "", "device": "Mobile", "clientIdentifier": "", "createdAt": "2019-06-24T11:38:02Z", "lastSeenAt": "2019-06-24T11:38:02Z", "provides": "", "ownerId": null, "sourceTitle": "", "publicAddress": "", "accessToken": "", "owned": true, "home": false, "synced": false, "relay": true, "presence": false, "httpsRequired": true, "publicAddressMatches": false, "dnsRebindingProtection": true, "natLoopbackSupported": false, "connections": [{"protocol": "http", "address": "5746 Mount Street", "port": 441996, "uri": "https://wide-kick.name/", "local": false, "relay": true, "IPv6": true}]}] + [{"name":"","product":"Ergonomic Plastic Hat","productVersion":"","platform":"","platformVersion":"","device":"Mobile","clientIdentifier":"","createdAt":"2019-06-24T11:38:02Z","lastSeenAt":"2019-06-24T11:38:02Z","provides":"","ownerId":null,"sourceTitle":"","publicAddress":"","accessToken":"","owned":true,"home":false,"synced":false,"relay":true,"presence":false,"httpsRequired":true,"publicAddressMatches":false,"dnsRebindingProtection":true,"natLoopbackSupported":false,"connections":[{"protocol":"http","address":"5746 Mount Street","port":441996,"uri":"https://wide-kick.name/","local":false,"relay":true,"IPv6":true}]}] type: simple x-speakeasy-test-group: Plex x-speakeasy-test-rebuild: true diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index bf99f268..b6568eca 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -13,7 +13,7 @@ sources: sourceBlobDigest: sha256:993bfb796a3833b0a3b813ad12469ca34db94f23c2d15ae988a26b4d1ed80fbe tags: - latest - - speakeasy-sdk-regen-1764548057 + - speakeasy-sdk-regen-1764553715 - 1.1.1 targets: plexjs: @@ -22,7 +22,7 @@ targets: sourceRevisionDigest: sha256:ace004a3b232e8ab9ca3d89f2da8e40470236e6d997073a16c3f8872d67a7383 sourceBlobDigest: sha256:993bfb796a3833b0a3b813ad12469ca34db94f23c2d15ae988a26b4d1ed80fbe codeSamplesNamespace: code-samples-typescript-plexjs - codeSamplesRevisionDigest: sha256:c53f6ae11c517b30d265b87a938e710393ce8921f2f8f5e04f73419faf2ae2f0 + codeSamplesRevisionDigest: sha256:8e6f77ee0be9e54c36682ee6244983f9a69ce9a05a6a251f64df3f5fbd5bc08a workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/FUNCTIONS.md b/FUNCTIONS.md index b717531b..0f316a54 100644 --- a/FUNCTIONS.md +++ b/FUNCTIONS.md @@ -21,8 +21,8 @@ specific category of applications. ```typescript 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 { Accepts, AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; +import { Extension, StartTranscodeSessionLocation, StartTranscodeSessionProtocol } from "@lukehagar/plexjs/models/operations"; +import { Accepts, AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. diff --git a/README.md b/README.md index 4aa933c6..099fb7b6 100644 --- a/README.md +++ b/README.md @@ -76,13 +76,13 @@ import { Extension, StartTranscodeSessionLocation, StartTranscodeSessionProtocol, -} from "@lukehagar/plexjs/sdk/models/operations"; +} from "@lukehagar/plexjs/models/operations"; import { Accepts, AdvancedSubtitles, BoolInt, TranscodeType, -} from "@lukehagar/plexjs/sdk/models/shared"; +} from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -487,7 +487,7 @@ run(); ## Error Handling -[`PlexAPIError`](./src/sdk/models/errors/plexapierror.ts) is the base class for all HTTP error responses. It has the following properties: +[`PlexAPIError`](./src/models/errors/plexapierror.ts) is the base class for all HTTP error responses. It has the following properties: | Property | Type | Description | | ------------------- | ---------- | --------------------------------------------------------------------------------------- | @@ -501,8 +501,8 @@ run(); ### Example ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import * as errors from "@lukehagar/plexjs/sdk/models/errors"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import * as errors from "@lukehagar/plexjs/models/errors"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -535,7 +535,6 @@ async function run() { // Depending on the method different errors may be thrown if (error instanceof errors.GetTokenDetailsBadRequestError) { console.log(error.data$.errors); // GetTokenDetailsBadRequestError[] - console.log(error.data$.rawResponse); // Response } } } @@ -547,29 +546,29 @@ run(); ### Error Classes **Primary error:** -* [`PlexAPIError`](./src/sdk/models/errors/plexapierror.ts): The base class for HTTP error responses. +* [`PlexAPIError`](./src/models/errors/plexapierror.ts): The base class for HTTP error responses.
Less common errors (13)
**Network errors:** -* [`ConnectionError`](./src/sdk/models/errors/httpclienterrors.ts): HTTP client was unable to make a request to a server. -* [`RequestTimeoutError`](./src/sdk/models/errors/httpclienterrors.ts): HTTP request timed out due to an AbortSignal signal. -* [`RequestAbortedError`](./src/sdk/models/errors/httpclienterrors.ts): HTTP request was aborted by the client. -* [`InvalidRequestError`](./src/sdk/models/errors/httpclienterrors.ts): Any input used to create a request is invalid. -* [`UnexpectedClientError`](./src/sdk/models/errors/httpclienterrors.ts): Unrecognised or unexpected error. +* [`ConnectionError`](./src/models/errors/httpclienterrors.ts): HTTP client was unable to make a request to a server. +* [`RequestTimeoutError`](./src/models/errors/httpclienterrors.ts): HTTP request timed out due to an AbortSignal signal. +* [`RequestAbortedError`](./src/models/errors/httpclienterrors.ts): HTTP request was aborted by the client. +* [`InvalidRequestError`](./src/models/errors/httpclienterrors.ts): Any input used to create a request is invalid. +* [`UnexpectedClientError`](./src/models/errors/httpclienterrors.ts): Unrecognised or unexpected error. -**Inherit from [`PlexAPIError`](./src/sdk/models/errors/plexapierror.ts)**: -* [`GetTokenDetailsBadRequestError`](./src/sdk/models/errors/gettokendetailsbadrequesterror.ts): Bad Request - A parameter was not specified, or was specified incorrectly. Status code `400`. Applicable to 1 of 241 methods.* -* [`PostUsersSignInDataBadRequestError`](./src/sdk/models/errors/postuserssignindatabadrequesterror.ts): Bad Request - A parameter was not specified, or was specified incorrectly. Status code `400`. Applicable to 1 of 241 methods.* -* [`GetUsersBadRequestError`](./src/sdk/models/errors/getusersbadrequesterror.ts): Bad Request - A parameter was not specified, or was specified incorrectly. Status code `400`. Applicable to 1 of 241 methods.* -* [`GetTokenDetailsUnauthorizedError`](./src/sdk/models/errors/gettokendetailsunauthorizederror.ts): Unauthorized - Returned if the X-Plex-Token is missing from the header or query. Status code `401`. Applicable to 1 of 241 methods.* -* [`PostUsersSignInDataUnauthorizedError`](./src/sdk/models/errors/postuserssignindataunauthorizederror.ts): Unauthorized - Returned if the X-Plex-Token is missing from the header or query. Status code `401`. Applicable to 1 of 241 methods.* -* [`GetUsersUnauthorizedError`](./src/sdk/models/errors/getusersunauthorizederror.ts): Unauthorized - Returned if the X-Plex-Token is missing from the header or query. Status code `401`. Applicable to 1 of 241 methods.* -* [`GetServerResourcesUnauthorizedError`](./src/sdk/models/errors/getserverresourcesunauthorizederror.ts): Unauthorized - Returned if the X-Plex-Token is missing from the header or query. Status code `401`. Applicable to 1 of 241 methods.* -* [`ResponseValidationError`](./src/sdk/models/errors/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string. +**Inherit from [`PlexAPIError`](./src/models/errors/plexapierror.ts)**: +* [`GetTokenDetailsBadRequestError`](./src/models/errors/gettokendetailsbadrequesterror.ts): Bad Request - A parameter was not specified, or was specified incorrectly. Status code `400`. Applicable to 1 of 241 methods.* +* [`PostUsersSignInDataBadRequestError`](./src/models/errors/postuserssignindatabadrequesterror.ts): Bad Request - A parameter was not specified, or was specified incorrectly. Status code `400`. Applicable to 1 of 241 methods.* +* [`GetUsersBadRequestError`](./src/models/errors/getusersbadrequesterror.ts): Bad Request - A parameter was not specified, or was specified incorrectly. Status code `400`. Applicable to 1 of 241 methods.* +* [`GetTokenDetailsUnauthorizedError`](./src/models/errors/gettokendetailsunauthorizederror.ts): Unauthorized - Returned if the X-Plex-Token is missing from the header or query. Status code `401`. Applicable to 1 of 241 methods.* +* [`PostUsersSignInDataUnauthorizedError`](./src/models/errors/postuserssignindataunauthorizederror.ts): Unauthorized - Returned if the X-Plex-Token is missing from the header or query. Status code `401`. Applicable to 1 of 241 methods.* +* [`GetUsersUnauthorizedError`](./src/models/errors/getusersunauthorizederror.ts): Unauthorized - Returned if the X-Plex-Token is missing from the header or query. Status code `401`. Applicable to 1 of 241 methods.* +* [`GetServerResourcesUnauthorizedError`](./src/models/errors/getserverresourcesunauthorizederror.ts): Unauthorized - Returned if the X-Plex-Token is missing from the header or query. Status code `401`. Applicable to 1 of 241 methods.* +* [`ResponseValidationError`](./src/models/errors/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string.
@@ -604,7 +603,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ serverIdx: 0, @@ -640,7 +639,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ serverURL: "https://http://localhost:32400", @@ -673,7 +672,7 @@ run(); The server URL can also be overridden on a per-operation basis, provided a server list was specified for the operation. For example: ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -766,7 +765,7 @@ This SDK supports the following security scheme globally: 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ token: "", @@ -1083,9 +1082,7 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.log.writeLog(await openAsBlob("example.file")); - - console.log(result); + await plexAPI.log.writeLog(await openAsBlob("example.file")); } run(); @@ -1101,7 +1098,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1142,7 +1139,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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ retryConfig: { diff --git a/RELEASES.md b/RELEASES.md index d5694d6b..71bd7d2f 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1448,4 +1448,14 @@ Based on: ### Generated - [typescript v0.44.0] . ### Releases -- [NPM v0.44.0] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.44.0 - . \ No newline at end of file +- [NPM v0.44.0] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.44.0 - . + +## 2025-12-01 01:48:15 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.665.0 (2.767.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.44.1] . +### Releases +- [NPM v0.44.1] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.44.1 - . \ No newline at end of file diff --git a/USAGE.md b/USAGE.md index 031b5c4a..6870f1d5 100644 --- a/USAGE.md +++ b/USAGE.md @@ -5,13 +5,13 @@ import { Extension, StartTranscodeSessionLocation, StartTranscodeSessionProtocol, -} from "@lukehagar/plexjs/sdk/models/operations"; +} from "@lukehagar/plexjs/models/operations"; import { Accepts, AdvancedSubtitles, BoolInt, TranscodeType, -} from "@lukehagar/plexjs/sdk/models/shared"; +} from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, diff --git a/codeSamples.yaml b/codeSamples.yaml index 8a7d23ed..d3034cb3 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -10,7 +10,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -41,7 +41,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -91,7 +91,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -109,11 +109,11 @@ actions: }); async function run() { - const result = await plexAPI.preferences.setPreferences({ + await plexAPI.preferences.setPreferences({ prefs: {}, }); - console.log(result); + } run(); @@ -124,7 +124,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -155,7 +155,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -173,13 +173,13 @@ actions: }); async function run() { - const result = await plexAPI.rate.setRating({ + await plexAPI.rate.setRating({ identifier: "", key: "", rating: 8722.46, }); - console.log(result); + } run(); @@ -190,7 +190,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -208,11 +208,11 @@ actions: }); async function run() { - const result = await plexAPI.timeline.markPlayed({ + await plexAPI.timeline.markPlayed({ identifier: "", }); - console.log(result); + } run(); @@ -223,8 +223,8 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { ReportState } from "@lukehagar/plexjs/sdk/models/operations"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { ReportState } from "@lukehagar/plexjs/models/operations"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -270,7 +270,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -288,11 +288,11 @@ actions: }); async function run() { - const result = await plexAPI.timeline.unscrobble({ + await plexAPI.timeline.unscrobble({ identifier: "", }); - console.log(result); + } run(); @@ -303,7 +303,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -353,7 +353,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -371,11 +371,11 @@ actions: }); async function run() { - const result = await plexAPI.activities.cancelActivity({ + await plexAPI.activities.cancelActivity({ activityId: "d6199ba1-fb5e-4cae-bf17-1a5369c1cf1e", }); - console.log(result); + } run(); @@ -392,9 +392,9 @@ actions: }); async function run() { - const result = await plexAPI.butler.stopTasks(); + await plexAPI.butler.stopTasks(); + - console.log(result); } run(); @@ -430,9 +430,9 @@ actions: }); async function run() { - const result = await plexAPI.butler.startTasks(); + await plexAPI.butler.startTasks(); + - console.log(result); } run(); @@ -443,8 +443,8 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { StopTaskButlerTask } from "@lukehagar/plexjs/sdk/models/operations"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { StopTaskButlerTask } from "@lukehagar/plexjs/models/operations"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -462,11 +462,11 @@ actions: }); async function run() { - const result = await plexAPI.butler.stopTask({ + await plexAPI.butler.stopTask({ butlerTask: StopTaskButlerTask.CleanOldBundles, }); - console.log(result); + } run(); @@ -477,8 +477,8 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { StartTaskButlerTask } from "@lukehagar/plexjs/sdk/models/operations"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { StartTaskButlerTask } from "@lukehagar/plexjs/models/operations"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -496,11 +496,11 @@ actions: }); async function run() { - const result = await plexAPI.butler.startTask({ + await plexAPI.butler.startTask({ butlerTask: StartTaskButlerTask.RefreshLocalMedia, }); - console.log(result); + } run(); @@ -530,7 +530,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -563,7 +563,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, AdvancedSubtitles, BoolInt, LocationParameter, ProtocolParameter } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, AdvancedSubtitles, BoolInt, LocationParameter, ProtocolParameter } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -625,7 +625,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -659,7 +659,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -693,7 +693,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -726,7 +726,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -744,7 +744,7 @@ actions: }); async function run() { - const result = await plexAPI.downloadQueue.removeDownloadQueueItems({ + await plexAPI.downloadQueue.removeDownloadQueueItems({ queueId: 946275, itemId: [ 32, @@ -753,7 +753,7 @@ actions: ], }); - console.log(result); + } run(); @@ -764,7 +764,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -802,7 +802,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -820,7 +820,7 @@ actions: }); async function run() { - const result = await plexAPI.downloadQueue.restartProcessingDownloadQueueItems({ + await plexAPI.downloadQueue.restartProcessingDownloadQueueItems({ queueId: 713001, itemId: [ 32, @@ -829,7 +829,7 @@ actions: ], }); - console.log(result); + } run(); @@ -840,7 +840,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -873,7 +873,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -904,7 +904,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -941,7 +941,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -975,7 +975,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1009,7 +1009,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1043,7 +1043,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1074,7 +1074,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1108,7 +1108,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, MediaType } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, MediaType } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1142,7 +1142,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1176,7 +1176,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1194,11 +1194,11 @@ actions: }); async function run() { - const result = await plexAPI.hubs.resetSectionDefaults({ + await plexAPI.hubs.resetSectionDefaults({ sectionId: 383022, }); - console.log(result); + } run(); @@ -1209,7 +1209,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1242,7 +1242,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1260,7 +1260,7 @@ actions: }); async function run() { - const result = await plexAPI.hubs.createCustomHub({ + await plexAPI.hubs.createCustomHub({ sectionId: 869922, metadataItemId: 703843, promotedToRecommended: BoolInt.True, @@ -1268,7 +1268,7 @@ actions: promotedToSharedHome: BoolInt.True, }); - console.log(result); + } run(); @@ -1279,7 +1279,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1313,7 +1313,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1331,12 +1331,12 @@ actions: }); async function run() { - const result = await plexAPI.hubs.deleteCustomHub({ + await plexAPI.hubs.deleteCustomHub({ sectionId: 625677, identifier: "", }); - console.log(result); + } run(); @@ -1347,7 +1347,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1365,7 +1365,7 @@ actions: }); async function run() { - const result = await plexAPI.hubs.updateHubVisibility({ + await plexAPI.hubs.updateHubVisibility({ sectionId: 341650, identifier: "", promotedToRecommended: BoolInt.True, @@ -1373,7 +1373,7 @@ actions: promotedToSharedHome: BoolInt.True, }); - console.log(result); + } run(); @@ -1403,7 +1403,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, MediaType } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, MediaType } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1446,9 +1446,9 @@ actions: }); async function run() { - const result = await plexAPI.library.deleteCaches(); + await plexAPI.library.deleteCaches(); + - console.log(result); } run(); @@ -1465,9 +1465,9 @@ actions: }); async function run() { - const result = await plexAPI.library.cleanBundles(); + await plexAPI.library.cleanBundles(); + - console.log(result); } run(); @@ -1478,7 +1478,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, MediaType } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, MediaType } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1512,7 +1512,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1546,7 +1546,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1579,7 +1579,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1613,7 +1613,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1647,7 +1647,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1681,7 +1681,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1717,7 +1717,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt, MediaType } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt, MediaType } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1753,7 +1753,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1787,7 +1787,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1805,12 +1805,12 @@ actions: }); async function run() { - const result = await plexAPI.library.getAugmentationStatus({ + await plexAPI.library.getAugmentationStatus({ augmentationId: "", wait: BoolInt.True, }); - console.log(result); + } run(); @@ -1821,7 +1821,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1839,12 +1839,12 @@ actions: }); async function run() { - const result = await plexAPI.library.deleteMetadataItem({ + await plexAPI.library.deleteMetadataItem({ ids: "", proxy: BoolInt.True, }); - console.log(result); + } run(); @@ -1855,7 +1855,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1896,7 +1896,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1914,14 +1914,14 @@ actions: }); async function run() { - const result = await plexAPI.library.editMetadataItem({ + await plexAPI.library.editMetadataItem({ ids: [ "", "", ], }); - console.log(result); + } run(); @@ -1932,7 +1932,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1950,11 +1950,11 @@ actions: }); async function run() { - const result = await plexAPI.library.detectAds({ + await plexAPI.library.detectAds({ ids: "", }); - console.log(result); + } run(); @@ -1965,7 +1965,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1998,7 +1998,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2016,11 +2016,11 @@ actions: }); async function run() { - const result = await plexAPI.library.analyzeMetadata({ + await plexAPI.library.analyzeMetadata({ ids: "", }); - console.log(result); + } run(); @@ -2031,7 +2031,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2049,12 +2049,12 @@ actions: }); async function run() { - const result = await plexAPI.library.generateThumbs({ + await plexAPI.library.generateThumbs({ ids: "", force: BoolInt.True, }); - console.log(result); + } run(); @@ -2065,7 +2065,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2083,13 +2083,13 @@ actions: }); async function run() { - const result = await plexAPI.library.detectCredits({ + await plexAPI.library.detectCredits({ ids: "", force: BoolInt.True, manual: BoolInt.True, }); - console.log(result); + } run(); @@ -2100,7 +2100,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2133,7 +2133,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2151,12 +2151,12 @@ actions: }); async function run() { - const result = await plexAPI.library.addExtras({ + await plexAPI.library.addExtras({ ids: "", url: "https://super-mortise.biz/", }); - console.log(result); + } run(); @@ -2167,7 +2167,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2200,7 +2200,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2218,12 +2218,12 @@ actions: }); async function run() { - const result = await plexAPI.library.startBifGeneration({ + await plexAPI.library.startBifGeneration({ ids: "", force: BoolInt.True, }); - console.log(result); + } run(); @@ -2234,7 +2234,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2252,12 +2252,12 @@ actions: }); async function run() { - const result = await plexAPI.library.detectIntros({ + await plexAPI.library.detectIntros({ ids: "", force: BoolInt.True, }); - console.log(result); + } run(); @@ -2268,7 +2268,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2304,7 +2304,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2322,12 +2322,12 @@ actions: }); async function run() { - const result = await plexAPI.library.deleteMarker({ + await plexAPI.library.deleteMarker({ ids: "", marker: "", }); - console.log(result); + } run(); @@ -2338,7 +2338,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2375,7 +2375,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2393,11 +2393,11 @@ actions: }); async function run() { - const result = await plexAPI.library.matchItem({ + await plexAPI.library.matchItem({ ids: "", }); - console.log(result); + } run(); @@ -2408,7 +2408,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2442,7 +2442,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2460,13 +2460,13 @@ actions: }); async function run() { - const result = await plexAPI.library.deleteMediaItem({ + await plexAPI.library.deleteMediaItem({ ids: "", mediaItem: "", proxy: BoolInt.True, }); - console.log(result); + } run(); @@ -2477,7 +2477,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2495,11 +2495,11 @@ actions: }); async function run() { - const result = await plexAPI.library.mergeItems({ + await plexAPI.library.mergeItems({ idsPathParameter: "", }); - console.log(result); + } run(); @@ -2510,7 +2510,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2543,7 +2543,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2561,11 +2561,11 @@ actions: }); async function run() { - const result = await plexAPI.library.setItemPreferences({ + await plexAPI.library.setItemPreferences({ ids: "", }); - console.log(result); + } run(); @@ -2576,7 +2576,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2594,12 +2594,12 @@ actions: }); async function run() { - const result = await plexAPI.library.refreshItemsMetadata({ + await plexAPI.library.refreshItemsMetadata({ ids: "", markUpdated: BoolInt.True, }); - console.log(result); + } run(); @@ -2610,7 +2610,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2643,7 +2643,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2676,7 +2676,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2694,11 +2694,11 @@ actions: }); async function run() { - const result = await plexAPI.library.splitItem({ + await plexAPI.library.splitItem({ ids: "", }); - console.log(result); + } run(); @@ -2709,7 +2709,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2727,13 +2727,13 @@ actions: }); async function run() { - const result = await plexAPI.library.addSubtitles({ + await plexAPI.library.addSubtitles({ ids: "", forced: BoolInt.True, hearingImpaired: BoolInt.True, }); - console.log(result); + } run(); @@ -2744,7 +2744,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2777,7 +2777,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2795,11 +2795,11 @@ actions: }); async function run() { - const result = await plexAPI.library.unmatch({ + await plexAPI.library.unmatch({ ids: "", }); - console.log(result); + } run(); @@ -2810,7 +2810,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2843,7 +2843,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2861,13 +2861,13 @@ actions: }); async function run() { - const result = await plexAPI.library.detectVoiceActivity({ + await plexAPI.library.detectVoiceActivity({ ids: "", force: BoolInt.True, manual: BoolInt.True, }); - console.log(result); + } run(); @@ -2878,8 +2878,8 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { SetItemArtworkElement } from "@lukehagar/plexjs/sdk/models/operations"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { SetItemArtworkElement } from "@lukehagar/plexjs/models/operations"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2897,12 +2897,12 @@ actions: }); async function run() { - const result = await plexAPI.library.setItemArtwork({ + await plexAPI.library.setItemArtwork({ ids: "", element: SetItemArtworkElement.Banner, }); - console.log(result); + } run(); @@ -2913,8 +2913,8 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { UpdateItemArtworkElement } from "@lukehagar/plexjs/sdk/models/operations"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { UpdateItemArtworkElement } from "@lukehagar/plexjs/models/operations"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2932,12 +2932,12 @@ actions: }); async function run() { - const result = await plexAPI.library.updateItemArtwork({ + await plexAPI.library.updateItemArtwork({ ids: "", element: UpdateItemArtworkElement.ClearLogo, }); - console.log(result); + } run(); @@ -2948,8 +2948,8 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { GetItemArtworkElement } from "@lukehagar/plexjs/sdk/models/operations"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { GetItemArtworkElement } from "@lukehagar/plexjs/models/operations"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2984,7 +2984,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -3002,11 +3002,11 @@ actions: }); async function run() { - const result = await plexAPI.library.optimizeDatabase({ + await plexAPI.library.optimizeDatabase({ async: BoolInt.True, }); - console.log(result); + } run(); @@ -3017,7 +3017,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -3035,12 +3035,12 @@ actions: }); async function run() { - const result = await plexAPI.library.setStreamSelection({ + await plexAPI.library.setStreamSelection({ partId: 360489, allParts: BoolInt.True, }); - console.log(result); + } run(); @@ -3051,8 +3051,8 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { GetPartIndexIndex } from "@lukehagar/plexjs/sdk/models/operations"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { GetPartIndexIndex } from "@lukehagar/plexjs/models/operations"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -3086,8 +3086,8 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { GetImageFromBifIndex } from "@lukehagar/plexjs/sdk/models/operations"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { GetImageFromBifIndex } from "@lukehagar/plexjs/models/operations"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -3122,7 +3122,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -3158,7 +3158,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -3191,7 +3191,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -3224,7 +3224,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -3279,7 +3279,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -3341,7 +3341,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -3374,7 +3374,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -3392,9 +3392,9 @@ actions: }); async function run() { - const result = await plexAPI.library.refreshSectionsMetadata({}); + await plexAPI.library.refreshSectionsMetadata({}); + - console.log(result); } run(); @@ -3405,7 +3405,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -3423,12 +3423,12 @@ actions: }); async function run() { - const result = await plexAPI.library.deleteLibrarySection({ + await plexAPI.library.deleteLibrarySection({ sectionId: "", async: BoolInt.True, }); - console.log(result); + } run(); @@ -3439,7 +3439,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -3473,7 +3473,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -3491,7 +3491,7 @@ actions: }); async function run() { - const result = await plexAPI.library.editSection({ + await plexAPI.library.editSection({ sectionId: "", agent: "", locations: [ @@ -3501,7 +3501,7 @@ actions: prefs: {}, }); - console.log(result); + } run(); @@ -3512,7 +3512,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -3545,7 +3545,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt, MediaType } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt, MediaType } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -3585,7 +3585,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -3603,12 +3603,12 @@ actions: }); async function run() { - const result = await plexAPI.library.updateItems({ + await plexAPI.library.updateItems({ sectionId: "", fieldLocked: BoolInt.True, }); - console.log(result); + } run(); @@ -3619,7 +3619,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -3652,7 +3652,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -3670,11 +3670,11 @@ actions: }); async function run() { - const result = await plexAPI.library.startAnalysis({ + await plexAPI.library.startAnalysis({ sectionId: 158829, }); - console.log(result); + } run(); @@ -3685,7 +3685,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -3718,7 +3718,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, MediaType } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, MediaType } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -3756,7 +3756,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -3789,7 +3789,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -3822,7 +3822,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -3840,12 +3840,12 @@ actions: }); async function run() { - const result = await plexAPI.library.deleteCollection({ + await plexAPI.library.deleteCollection({ sectionId: 283619, collectionId: 680895, }); - console.log(result); + } run(); @@ -3856,7 +3856,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, MediaType } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, MediaType } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -3894,7 +3894,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, MediaType } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, MediaType } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -3932,7 +3932,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, MediaType } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, MediaType } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -3950,7 +3950,7 @@ actions: }); async function run() { - const result = await plexAPI.library.getSectionImage({ + await plexAPI.library.getSectionImage({ sectionId: 925611, updatedAt: 117413, mediaQuery: { @@ -3960,7 +3960,7 @@ actions: }, }); - console.log(result); + } run(); @@ -3971,7 +3971,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -4006,7 +4006,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -4024,11 +4024,11 @@ actions: }); async function run() { - const result = await plexAPI.library.emptyTrash({ + await plexAPI.library.emptyTrash({ sectionId: 30052, }); - console.log(result); + } run(); @@ -4039,7 +4039,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -4072,7 +4072,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, MediaType } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, MediaType } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -4110,7 +4110,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -4128,11 +4128,11 @@ actions: }); async function run() { - const result = await plexAPI.library.deleteIndexes({ + await plexAPI.library.deleteIndexes({ sectionId: 588437, }); - console.log(result); + } run(); @@ -4143,7 +4143,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -4161,11 +4161,11 @@ actions: }); async function run() { - const result = await plexAPI.library.deleteIntros({ + await plexAPI.library.deleteIntros({ sectionId: 498656, }); - console.log(result); + } run(); @@ -4176,7 +4176,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -4209,7 +4209,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -4242,7 +4242,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -4276,7 +4276,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -4309,7 +4309,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -4327,12 +4327,12 @@ actions: }); async function run() { - const result = await plexAPI.library.setSectionPreferences({ + await plexAPI.library.setSectionPreferences({ sectionId: 349936, prefs: {}, }); - console.log(result); + } run(); @@ -4343,7 +4343,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -4361,11 +4361,11 @@ actions: }); async function run() { - const result = await plexAPI.library.cancelRefresh({ + await plexAPI.library.cancelRefresh({ sectionId: 326852, }); - console.log(result); + } run(); @@ -4376,7 +4376,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -4394,12 +4394,12 @@ actions: }); async function run() { - const result = await plexAPI.library.refreshSection({ + await plexAPI.library.refreshSection({ sectionId: 450300, force: BoolInt.True, }); - console.log(result); + } run(); @@ -4410,7 +4410,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -4443,7 +4443,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -4461,12 +4461,12 @@ actions: }); async function run() { - const result = await plexAPI.library.deleteStream({ + await plexAPI.library.deleteStream({ streamId: 841510, ext: "", }); - console.log(result); + } run(); @@ -4477,7 +4477,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -4495,13 +4495,13 @@ actions: }); async function run() { - const result = await plexAPI.library.getStream({ + await plexAPI.library.getStream({ streamId: 314506, ext: "", autoAdjustSubtitle: BoolInt.True, }); - console.log(result); + } run(); @@ -4512,7 +4512,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -4530,12 +4530,12 @@ actions: }); async function run() { - const result = await plexAPI.library.setStreamOffset({ + await plexAPI.library.setStreamOffset({ streamId: 606295, ext: "", }); - console.log(result); + } run(); @@ -4546,7 +4546,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -4579,7 +4579,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -4612,7 +4612,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, MediaType } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, MediaType } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -4664,7 +4664,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -4753,7 +4753,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -4771,11 +4771,11 @@ actions: }); async function run() { - const result = await plexAPI.dvRs.deleteDVR({ + await plexAPI.dvRs.deleteDVR({ dvrId: 855088, }); - console.log(result); + } run(); @@ -4786,7 +4786,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -4819,7 +4819,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -4853,7 +4853,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -4887,7 +4887,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -4921,7 +4921,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -4955,7 +4955,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -4989,7 +4989,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -5022,7 +5022,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -5040,11 +5040,11 @@ actions: }); async function run() { - const result = await plexAPI.dvRs.stopDVRReload({ + await plexAPI.dvRs.stopDVRReload({ dvrId: 348053, }); - console.log(result); + } run(); @@ -5055,7 +5055,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -5088,7 +5088,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -5122,7 +5122,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -5174,7 +5174,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -5208,7 +5208,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -5242,7 +5242,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -5296,7 +5296,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -5330,7 +5330,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -5385,7 +5385,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -5418,7 +5418,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -5436,12 +5436,12 @@ actions: }); async function run() { - const result = await plexAPI.liveTV.getSessionPlaylistIndex({ + await plexAPI.liveTV.getSessionPlaylistIndex({ sessionId: "", consumerId: "", }); - console.log(result); + } run(); @@ -5452,7 +5452,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -5470,13 +5470,13 @@ actions: }); async function run() { - const result = await plexAPI.liveTV.getSessionSegment({ + await plexAPI.liveTV.getSessionSegment({ sessionId: "", consumerId: "", segmentId: "", }); - console.log(result); + } run(); @@ -5494,9 +5494,9 @@ actions: }); async function run() { - const result = await plexAPI.log.writeLog(await openAsBlob("example.file")); + await plexAPI.log.writeLog(await openAsBlob("example.file")); + - console.log(result); } run(); @@ -5507,7 +5507,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -5525,9 +5525,9 @@ actions: }); async function run() { - const result = await plexAPI.log.writeMessage({}); + await plexAPI.log.writeMessage({}); + - console.log(result); } run(); @@ -5538,7 +5538,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -5556,9 +5556,9 @@ actions: }); async function run() { - const result = await plexAPI.log.enablePapertrail({}); + await plexAPI.log.enablePapertrail({}); + - console.log(result); } run(); @@ -5569,7 +5569,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -5621,7 +5621,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -5673,7 +5673,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -5706,7 +5706,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -5739,7 +5739,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -5773,7 +5773,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -5824,7 +5824,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -5857,7 +5857,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -5875,11 +5875,11 @@ actions: }); async function run() { - const result = await plexAPI.devices.setDevicePreferences({ + await plexAPI.devices.setDevicePreferences({ deviceId: 420973, }); - console.log(result); + } run(); @@ -5890,7 +5890,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -5923,7 +5923,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -5957,7 +5957,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -5975,12 +5975,12 @@ actions: }); async function run() { - const result = await plexAPI.devices.getThumb({ + await plexAPI.devices.getThumb({ deviceId: 960617, versionPathParameter: 1025, }); - console.log(result); + } run(); @@ -5991,7 +5991,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -6009,11 +6009,11 @@ actions: }); async function run() { - const result = await plexAPI.subscriptions.cancelGrab({ + await plexAPI.subscriptions.cancelGrab({ operationId: "", }); - console.log(result); + } run(); @@ -6043,7 +6043,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -6061,11 +6061,11 @@ actions: }); async function run() { - const result = await plexAPI.provider.addProvider({ + await plexAPI.provider.addProvider({ url: "https://steep-obedience.name/", }); - console.log(result); + } run(); @@ -6082,9 +6082,9 @@ actions: }); async function run() { - const result = await plexAPI.provider.refreshProviders(); + await plexAPI.provider.refreshProviders(); + - console.log(result); } run(); @@ -6095,7 +6095,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -6113,11 +6113,11 @@ actions: }); async function run() { - const result = await plexAPI.provider.deleteMediaProvider({ + await plexAPI.provider.deleteMediaProvider({ provider: "", }); - console.log(result); + } run(); @@ -6128,7 +6128,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -6162,7 +6162,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -6238,7 +6238,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -6271,7 +6271,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -6289,11 +6289,11 @@ actions: }); async function run() { - const result = await plexAPI.subscriptions.deleteSubscription({ + await plexAPI.subscriptions.deleteSubscription({ subscriptionId: 974618, }); - console.log(result); + } run(); @@ -6304,7 +6304,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -6339,7 +6339,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -6373,7 +6373,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -6406,7 +6406,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -6444,8 +6444,8 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { CreatePlayQueueType } from "@lukehagar/plexjs/sdk/models/operations"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { CreatePlayQueueType } from "@lukehagar/plexjs/models/operations"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -6483,7 +6483,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -6519,7 +6519,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -6553,7 +6553,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -6586,7 +6586,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -6620,7 +6620,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -6654,7 +6654,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -6687,7 +6687,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -6720,7 +6720,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -6753,7 +6753,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -6784,7 +6784,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -6815,7 +6815,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -6833,12 +6833,12 @@ actions: }); async function run() { - const result = await plexAPI.libraryPlaylists.uploadPlaylist({ + await plexAPI.libraryPlaylists.uploadPlaylist({ path: "/home/barkley/playlist.m3u", force: BoolInt.True, }); - console.log(result); + } run(); @@ -6849,7 +6849,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -6867,11 +6867,11 @@ actions: }); async function run() { - const result = await plexAPI.libraryPlaylists.deletePlaylist({ + await plexAPI.libraryPlaylists.deletePlaylist({ playlistId: 343293, }); - console.log(result); + } run(); @@ -6882,7 +6882,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -6915,7 +6915,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -6933,11 +6933,11 @@ actions: }); async function run() { - const result = await plexAPI.libraryPlaylists.updatePlaylist({ + await plexAPI.libraryPlaylists.updatePlaylist({ playlistId: 157966, }); - console.log(result); + } run(); @@ -6948,7 +6948,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -6981,7 +6981,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -7014,7 +7014,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -7047,7 +7047,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -7080,7 +7080,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -7114,7 +7114,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -7148,8 +7148,8 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { ModifyPlaylistGeneratorScope } from "@lukehagar/plexjs/sdk/models/operations"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { ModifyPlaylistGeneratorScope } from "@lukehagar/plexjs/models/operations"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -7196,7 +7196,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -7230,8 +7230,8 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Action } from "@lukehagar/plexjs/sdk/models/operations"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Action } from "@lukehagar/plexjs/models/operations"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -7249,14 +7249,14 @@ actions: }); async function run() { - const result = await plexAPI.libraryPlaylists.refreshPlaylist({ + await plexAPI.libraryPlaylists.refreshPlaylist({ playlistId: 895314, generatorId: 629742, metadataId: 724422, action: Action.Disable, }); - console.log(result); + } run(); @@ -7267,7 +7267,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -7301,8 +7301,8 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { IncludeHttps, IncludeIPv6, IncludeRelay } from "@lukehagar/plexjs/sdk/models/operations"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { IncludeHttps, IncludeIPv6, IncludeRelay } from "@lukehagar/plexjs/models/operations"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -7328,7 +7328,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -7362,8 +7362,8 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { GetTransientTokenScope, GetTransientTokenType } from "@lukehagar/plexjs/sdk/models/operations"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { GetTransientTokenScope, GetTransientTokenType } from "@lukehagar/plexjs/models/operations"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -7397,7 +7397,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -7430,7 +7430,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -7507,7 +7507,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -7564,7 +7564,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -7597,7 +7597,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -7630,7 +7630,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -7648,12 +7648,12 @@ actions: }); async function run() { - const result = await plexAPI.status.terminateSession({ + await plexAPI.status.terminateSession({ sessionId: "cdefghijklmnopqrstuvwxyz", reason: "Stop Playing", }); - console.log(result); + } run(); @@ -7664,7 +7664,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -7682,12 +7682,12 @@ actions: }); async function run() { - const result = await plexAPI.updater.applyUpdates({ + await plexAPI.updater.applyUpdates({ tonight: BoolInt.True, skip: BoolInt.True, }); - console.log(result); + } run(); @@ -7698,7 +7698,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -7716,11 +7716,11 @@ actions: }); async function run() { - const result = await plexAPI.updater.checkUpdates({ + await plexAPI.updater.checkUpdates({ download: BoolInt.True, }); - console.log(result); + } run(); @@ -7750,7 +7750,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -7781,7 +7781,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -7812,7 +7812,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -7848,8 +7848,8 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { MakeDecisionLocation, MakeDecisionProtocol } from "@lukehagar/plexjs/sdk/models/operations"; - import { Accepts, AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; + import { MakeDecisionLocation, MakeDecisionProtocol } from "@lukehagar/plexjs/models/operations"; + import { Accepts, AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -7909,7 +7909,7 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { Accepts, TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, TranscodeType } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -7927,11 +7927,11 @@ actions: }); async function run() { - const result = await plexAPI.transcoder.triggerFallback({ + await plexAPI.transcoder.triggerFallback({ transcodeType: TranscodeType.Audio, }); - console.log(result); + } run(); @@ -7942,8 +7942,8 @@ actions: label: PlexJS source: |- 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"; + import { Extension, StartTranscodeSessionLocation, StartTranscodeSessionProtocol } from "@lukehagar/plexjs/models/operations"; + import { Accepts, AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -8004,8 +8004,8 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { TranscodeSubtitlesLocation, TranscodeSubtitlesProtocol } from "@lukehagar/plexjs/sdk/models/operations"; - import { Accepts, AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; + import { TranscodeSubtitlesLocation, TranscodeSubtitlesProtocol } from "@lukehagar/plexjs/models/operations"; + import { Accepts, AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -8023,7 +8023,7 @@ actions: }); async function run() { - const result = await plexAPI.transcoder.transcodeSubtitles({ + await plexAPI.transcoder.transcodeSubtitles({ transcodeType: TranscodeType.Audio, advancedSubtitles: AdvancedSubtitles.Burn, audioBoost: 50, @@ -8054,7 +8054,7 @@ actions: xPlexClientProfileName: "generic", }); - console.log(result); + } run(); diff --git a/docs/models/errors/getserverresourcesunauthorizederror.md b/docs/models/errors/getserverresourcesunauthorizederror.md new file mode 100644 index 00000000..f20f9527 --- /dev/null +++ b/docs/models/errors/getserverresourcesunauthorizederror.md @@ -0,0 +1,17 @@ +# GetServerResourcesUnauthorizedError + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetServerResourcesUnauthorizedError } from "@lukehagar/plexjs/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `errors` | [operations.GetServerResourcesError](../../models/operations/getserverresourceserror.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/errors/gettokendetailsbadrequesterror.md b/docs/models/errors/gettokendetailsbadrequesterror.md new file mode 100644 index 00000000..8d4b8473 --- /dev/null +++ b/docs/models/errors/gettokendetailsbadrequesterror.md @@ -0,0 +1,17 @@ +# GetTokenDetailsBadRequestError + +Bad Request - A parameter was not specified, or was specified incorrectly. + +## Example Usage + +```typescript +import { GetTokenDetailsBadRequestError } from "@lukehagar/plexjs/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `errors` | [operations.GetTokenDetailsBadRequestError](../../models/operations/gettokendetailsbadrequesterror.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/errors/gettokendetailsunauthorizederror.md b/docs/models/errors/gettokendetailsunauthorizederror.md new file mode 100644 index 00000000..84d25cbf --- /dev/null +++ b/docs/models/errors/gettokendetailsunauthorizederror.md @@ -0,0 +1,17 @@ +# GetTokenDetailsUnauthorizedError + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetTokenDetailsUnauthorizedError } from "@lukehagar/plexjs/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | [operations.GetTokenDetailsUnauthorizedError](../../models/operations/gettokendetailsunauthorizederror.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/errors/getusersbadrequesterror.md b/docs/models/errors/getusersbadrequesterror.md new file mode 100644 index 00000000..61724d28 --- /dev/null +++ b/docs/models/errors/getusersbadrequesterror.md @@ -0,0 +1,17 @@ +# GetUsersBadRequestError + +Bad Request - A parameter was not specified, or was specified incorrectly. + +## Example Usage + +```typescript +import { GetUsersBadRequestError } from "@lukehagar/plexjs/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `errors` | [operations.GetUsersBadRequestError](../../models/operations/getusersbadrequesterror.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/errors/getusersunauthorizederror.md b/docs/models/errors/getusersunauthorizederror.md new file mode 100644 index 00000000..d78e891c --- /dev/null +++ b/docs/models/errors/getusersunauthorizederror.md @@ -0,0 +1,17 @@ +# GetUsersUnauthorizedError + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetUsersUnauthorizedError } from "@lukehagar/plexjs/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `errors` | [operations.GetUsersUnauthorizedError](../../models/operations/getusersunauthorizederror.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/errors/postuserssignindatabadrequesterror.md b/docs/models/errors/postuserssignindatabadrequesterror.md new file mode 100644 index 00000000..2daef6e2 --- /dev/null +++ b/docs/models/errors/postuserssignindatabadrequesterror.md @@ -0,0 +1,17 @@ +# PostUsersSignInDataBadRequestError + +Bad Request - A parameter was not specified, or was specified incorrectly. + +## Example Usage + +```typescript +import { PostUsersSignInDataBadRequestError } from "@lukehagar/plexjs/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `errors` | [operations.PostUsersSignInDataBadRequestError](../../models/operations/postuserssignindatabadrequesterror.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/errors/postuserssignindataunauthorizederror.md b/docs/models/errors/postuserssignindataunauthorizederror.md new file mode 100644 index 00000000..495be262 --- /dev/null +++ b/docs/models/errors/postuserssignindataunauthorizederror.md @@ -0,0 +1,17 @@ +# PostUsersSignInDataUnauthorizedError + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { PostUsersSignInDataUnauthorizedError } from "@lukehagar/plexjs/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `errors` | [operations.PostUsersSignInDataUnauthorizedError](../../models/operations/postuserssignindataunauthorizederror.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/account.md b/docs/models/operations/account.md similarity index 86% rename from docs/sdk/models/operations/account.md rename to docs/models/operations/account.md index 02991b3d..2b94a635 100644 --- a/docs/sdk/models/operations/account.md +++ b/docs/models/operations/account.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Account } from "@lukehagar/plexjs/sdk/models/operations"; +import { Account } from "@lukehagar/plexjs/models/operations"; let value: Account = {}; ``` diff --git a/docs/sdk/models/operations/action.md b/docs/models/operations/action.md similarity index 82% rename from docs/sdk/models/operations/action.md rename to docs/models/operations/action.md index 4e5f36ee..01406f81 100644 --- a/docs/sdk/models/operations/action.md +++ b/docs/models/operations/action.md @@ -5,7 +5,7 @@ The action to perform for this item on this optimizer queue ## Example Usage ```typescript -import { Action } from "@lukehagar/plexjs/sdk/models/operations"; +import { Action } from "@lukehagar/plexjs/models/operations"; let value: Action = Action.Enable; ``` diff --git a/docs/sdk/models/operations/activity.md b/docs/models/operations/activity.md similarity index 98% rename from docs/sdk/models/operations/activity.md rename to docs/models/operations/activity.md index 8f8af8f5..348bccc9 100644 --- a/docs/sdk/models/operations/activity.md +++ b/docs/models/operations/activity.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Activity } from "@lukehagar/plexjs/sdk/models/operations"; +import { Activity } from "@lukehagar/plexjs/models/operations"; let value: Activity = {}; ``` diff --git a/docs/sdk/models/operations/addcollectionitemsglobals.md b/docs/models/operations/addcollectionitemsglobals.md similarity index 96% rename from docs/sdk/models/operations/addcollectionitemsglobals.md rename to docs/models/operations/addcollectionitemsglobals.md index bdf2b373..d2908f5b 100644 --- a/docs/sdk/models/operations/addcollectionitemsglobals.md +++ b/docs/models/operations/addcollectionitemsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { AddCollectionItemsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { AddCollectionItemsGlobals } from "@lukehagar/plexjs/models/operations"; let value: AddCollectionItemsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: AddCollectionItemsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/addcollectionitemsrequest.md b/docs/models/operations/addcollectionitemsrequest.md similarity index 97% rename from docs/sdk/models/operations/addcollectionitemsrequest.md rename to docs/models/operations/addcollectionitemsrequest.md index b9c7b82d..9a5c34f6 100644 --- a/docs/sdk/models/operations/addcollectionitemsrequest.md +++ b/docs/models/operations/addcollectionitemsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { AddCollectionItemsRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { AddCollectionItemsRequest } from "@lukehagar/plexjs/models/operations"; let value: AddCollectionItemsRequest = { collectionId: 705686, @@ -15,7 +15,7 @@ let value: AddCollectionItemsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/adddeviceglobals.md b/docs/models/operations/adddeviceglobals.md similarity index 97% rename from docs/sdk/models/operations/adddeviceglobals.md rename to docs/models/operations/adddeviceglobals.md index 328fe11c..5f36f1e8 100644 --- a/docs/sdk/models/operations/adddeviceglobals.md +++ b/docs/models/operations/adddeviceglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { AddDeviceGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { AddDeviceGlobals } from "@lukehagar/plexjs/models/operations"; let value: AddDeviceGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: AddDeviceGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/adddevicerequest.md b/docs/models/operations/adddevicerequest.md similarity index 97% rename from docs/sdk/models/operations/adddevicerequest.md rename to docs/models/operations/adddevicerequest.md index 1067ec61..0b409a78 100644 --- a/docs/sdk/models/operations/adddevicerequest.md +++ b/docs/models/operations/adddevicerequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { AddDeviceRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { AddDeviceRequest } from "@lukehagar/plexjs/models/operations"; let value: AddDeviceRequest = { uri: "http://10.0.0.5", @@ -14,7 +14,7 @@ let value: AddDeviceRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/adddevicetodvrdvr.md b/docs/models/operations/adddevicetodvrdvr.md new file mode 100644 index 00000000..cd3138ef --- /dev/null +++ b/docs/models/operations/adddevicetodvrdvr.md @@ -0,0 +1,19 @@ +# AddDeviceToDVRDVR + +## Example Usage + +```typescript +import { AddDeviceToDVRDVR } from "@lukehagar/plexjs/models/operations"; + +let value: AddDeviceToDVRDVR = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | +| `device` | [shared.Device](../../models/shared/device.md)[] | :heavy_minus_sign: | N/A | +| `key` | *string* | :heavy_minus_sign: | N/A | +| `language` | *string* | :heavy_minus_sign: | N/A | +| `lineup` | *string* | :heavy_minus_sign: | N/A | +| `uuid` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/adddevicetodvrglobals.md b/docs/models/operations/adddevicetodvrglobals.md similarity index 96% rename from docs/sdk/models/operations/adddevicetodvrglobals.md rename to docs/models/operations/adddevicetodvrglobals.md index 3a3a413d..f5d2550b 100644 --- a/docs/sdk/models/operations/adddevicetodvrglobals.md +++ b/docs/models/operations/adddevicetodvrglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { AddDeviceToDVRGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { AddDeviceToDVRGlobals } from "@lukehagar/plexjs/models/operations"; let value: AddDeviceToDVRGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: AddDeviceToDVRGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/adddevicetodvrmediacontainer.md b/docs/models/operations/adddevicetodvrmediacontainer.md similarity index 56% rename from docs/sdk/models/operations/adddevicetodvrmediacontainer.md rename to docs/models/operations/adddevicetodvrmediacontainer.md index 527dea71..efda0a0c 100644 --- a/docs/sdk/models/operations/adddevicetodvrmediacontainer.md +++ b/docs/models/operations/adddevicetodvrmediacontainer.md @@ -3,14 +3,14 @@ ## Example Usage ```typescript -import { AddDeviceToDVRMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { AddDeviceToDVRMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: AddDeviceToDVRMediaContainer = {}; ``` ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.AddDeviceToDVRMediaContainerMediaContainer](../../../sdk/models/operations/adddevicetodvrmediacontainermediacontainer.md) | :heavy_minus_sign: | N/A | -| `dvr` | [operations.AddDeviceToDVRDVR](../../../sdk/models/operations/adddevicetodvrdvr.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `mediaContainer` | [operations.AddDeviceToDVRMediaContainerMediaContainer](../../models/operations/adddevicetodvrmediacontainermediacontainer.md) | :heavy_minus_sign: | N/A | +| `dvr` | [operations.AddDeviceToDVRDVR](../../models/operations/adddevicetodvrdvr.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/adddevicetodvrmediacontainermediacontainer.md b/docs/models/operations/adddevicetodvrmediacontainermediacontainer.md similarity index 99% rename from docs/sdk/models/operations/adddevicetodvrmediacontainermediacontainer.md rename to docs/models/operations/adddevicetodvrmediacontainermediacontainer.md index c37632a1..006be1a0 100644 --- a/docs/sdk/models/operations/adddevicetodvrmediacontainermediacontainer.md +++ b/docs/models/operations/adddevicetodvrmediacontainermediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { AddDeviceToDVRMediaContainerMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { AddDeviceToDVRMediaContainerMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: AddDeviceToDVRMediaContainerMediaContainer = {}; ``` diff --git a/docs/sdk/models/operations/adddevicetodvrrequest.md b/docs/models/operations/adddevicetodvrrequest.md similarity index 97% rename from docs/sdk/models/operations/adddevicetodvrrequest.md rename to docs/models/operations/adddevicetodvrrequest.md index 9f7b0a55..c0c2d4d7 100644 --- a/docs/sdk/models/operations/adddevicetodvrrequest.md +++ b/docs/models/operations/adddevicetodvrrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { AddDeviceToDVRRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { AddDeviceToDVRRequest } from "@lukehagar/plexjs/models/operations"; let value: AddDeviceToDVRRequest = { dvrId: 595771, @@ -15,7 +15,7 @@ let value: AddDeviceToDVRRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/adddevicetodvrresponse.md b/docs/models/operations/adddevicetodvrresponse.md new file mode 100644 index 00000000..54c7e150 --- /dev/null +++ b/docs/models/operations/adddevicetodvrresponse.md @@ -0,0 +1,27 @@ +# AddDeviceToDVRResponse + +## Example Usage + +```typescript +import { AddDeviceToDVRResponse } from "@lukehagar/plexjs/models/operations"; + +let value: AddDeviceToDVRResponse = { + headers: { + "key": [ + "", + ], + "key1": [ + "", + "", + ], + }, + result: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [operations.AddDeviceToDVRResponseBody](../../models/operations/adddevicetodvrresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/adddevicetodvrresponsebody.md b/docs/models/operations/adddevicetodvrresponsebody.md new file mode 100644 index 00000000..7326a11d --- /dev/null +++ b/docs/models/operations/adddevicetodvrresponsebody.md @@ -0,0 +1,17 @@ +# AddDeviceToDVRResponseBody + +OK + +## Example Usage + +```typescript +import { AddDeviceToDVRResponseBody } from "@lukehagar/plexjs/models/operations"; + +let value: AddDeviceToDVRResponseBody = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.AddDeviceToDVRMediaContainer](../../models/operations/adddevicetodvrmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/adddownloadqueueitemsglobals.md b/docs/models/operations/adddownloadqueueitemsglobals.md similarity index 98% rename from docs/sdk/models/operations/adddownloadqueueitemsglobals.md rename to docs/models/operations/adddownloadqueueitemsglobals.md index 77c6b18f..5c300a99 100644 --- a/docs/sdk/models/operations/adddownloadqueueitemsglobals.md +++ b/docs/models/operations/adddownloadqueueitemsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { AddDownloadQueueItemsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { AddDownloadQueueItemsGlobals } from "@lukehagar/plexjs/models/operations"; let value: AddDownloadQueueItemsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: AddDownloadQueueItemsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/adddownloadqueueitemsmediacontainer.md b/docs/models/operations/adddownloadqueueitemsmediacontainer.md similarity index 96% rename from docs/sdk/models/operations/adddownloadqueueitemsmediacontainer.md rename to docs/models/operations/adddownloadqueueitemsmediacontainer.md index ee3654c4..7d4715cb 100644 --- a/docs/sdk/models/operations/adddownloadqueueitemsmediacontainer.md +++ b/docs/models/operations/adddownloadqueueitemsmediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { AddDownloadQueueItemsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { AddDownloadQueueItemsMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: AddDownloadQueueItemsMediaContainer = {}; ``` @@ -21,4 +21,4 @@ let value: AddDownloadQueueItemsMediaContainer = {}; | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `addedQueueItems` | [operations.AddedQueueItem](../../../sdk/models/operations/addedqueueitem.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `addedQueueItems` | [operations.AddedQueueItem](../../models/operations/addedqueueitem.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/adddownloadqueueitemsrequest.md b/docs/models/operations/adddownloadqueueitemsrequest.md similarity index 98% rename from docs/sdk/models/operations/adddownloadqueueitemsrequest.md rename to docs/models/operations/adddownloadqueueitemsrequest.md index 45c04514..02794fef 100644 --- a/docs/sdk/models/operations/adddownloadqueueitemsrequest.md +++ b/docs/models/operations/adddownloadqueueitemsrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { AddDownloadQueueItemsRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { AdvancedSubtitles, BoolInt, LocationParameter, ProtocolParameter, Subtitles } from "@lukehagar/plexjs/sdk/models/shared"; +import { AddDownloadQueueItemsRequest } from "@lukehagar/plexjs/models/operations"; +import { AdvancedSubtitles, BoolInt, LocationParameter, ProtocolParameter, Subtitles } from "@lukehagar/plexjs/models/shared"; let value: AddDownloadQueueItemsRequest = { queueId: 44894, @@ -45,7 +45,7 @@ let value: AddDownloadQueueItemsRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -58,17 +58,17 @@ let value: AddDownloadQueueItemsRequest = { | `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 | +| `advancedSubtitles` | [shared.AdvancedSubtitles](../../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 | | `audioBoost` | *number* | :heavy_minus_sign: | Percentage of original audio loudness to use when transcoding (100 is equivalent to original volume, 50 is half, 200 is double, etc) | 50 | | `audioChannelCount` | *number* | :heavy_minus_sign: | Target video number of audio channels. | 5 | -| `autoAdjustQuality` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Indicates the client supports ABR. | 1 | -| `autoAdjustSubtitle` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Indicates if the server should adjust subtitles based on Voice Activity Data. | 1 | -| `directPlay` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Indicates the client supports direct playing the indicated content. | 1 | -| `directStream` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Indicates the client supports direct streaming the video of the indicated content. | 1 | -| `directStreamAudio` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Indicates the client supports direct streaming the audio of the indicated content. | 1 | -| `disableResolutionRotation` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Indicates if resolution should be adjusted for orientation. | 1 | -| `hasMDE` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Ignore client profiles when determining if direct play is possible. Only has an effect when directPlay=1 and both mediaIndex and partIndex are specified and neither are -1 | 1 | -| `location` | [shared.LocationParameter](../../../sdk/models/shared/locationparameter.md) | :heavy_minus_sign: | Network type of the client, can be used to help determine target bitrate. | wan | +| `autoAdjustQuality` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Indicates the client supports ABR. | 1 | +| `autoAdjustSubtitle` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Indicates if the server should adjust subtitles based on Voice Activity Data. | 1 | +| `directPlay` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Indicates the client supports direct playing the indicated content. | 1 | +| `directStream` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Indicates the client supports direct streaming the video of the indicated content. | 1 | +| `directStreamAudio` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Indicates the client supports direct streaming the audio of the indicated content. | 1 | +| `disableResolutionRotation` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Indicates if resolution should be adjusted for orientation. | 1 | +| `hasMDE` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Ignore client profiles when determining if direct play is possible. Only has an effect when directPlay=1 and both mediaIndex and partIndex are specified and neither are -1 | 1 | +| `location` | [shared.LocationParameter](../../models/shared/locationparameter.md) | :heavy_minus_sign: | Network type of the client, can be used to help determine target bitrate. | wan | | `mediaBufferSize` | *number* | :heavy_minus_sign: | Buffer size used in playback (in KB). Clients should specify a lower bound if not known exactly. This value could make the difference between transcoding and direct play on bandwidth constrained networks. | 102400 | | `mediaIndex` | *number* | :heavy_minus_sign: | Index of the media to transcode. -1 or not specified indicates let the server choose. | 0 | | `musicBitrate` | *number* | :heavy_minus_sign: | Target bitrate for audio only files (in kbps, used to transcode). | 5000 | @@ -77,10 +77,10 @@ let value: AddDownloadQueueItemsRequest = { | `path` | *string* | :heavy_minus_sign: | Internal PMS path of the media to transcode. | /library/metadata/151671 | | `peakBitrate` | *number* | :heavy_minus_sign: | Maximum bitrate (in kbps) to use in ABR. | 12000 | | `photoResolution` | *string* | :heavy_minus_sign: | Target photo resolution. | 1080x1080 | -| `protocol` | [shared.ProtocolParameter](../../../sdk/models/shared/protocolparameter.md) | :heavy_minus_sign: | Indicates the network streaming protocol to be used for the transcode session: * 'http' - include the file in the http response such as MKV streaming * 'hls' - hls stream (RFC 8216) * 'dash' - dash stream (ISO/IEC 23009-1:2022)
| dash | +| `protocol` | [shared.ProtocolParameter](../../models/shared/protocolparameter.md) | :heavy_minus_sign: | Indicates the network streaming protocol to be used for the transcode session: * 'http' - include the file in the http response such as MKV streaming * 'hls' - hls stream (RFC 8216) * 'dash' - dash stream (ISO/IEC 23009-1:2022)
| dash | | `secondsPerSegment` | *number* | :heavy_minus_sign: | Number of seconds to include in each transcoded segment | 5 | | `subtitleSize` | *number* | :heavy_minus_sign: | Percentage of original subtitle size to use when burning subtitles (100 is equivalent to original size, 50 is half, ect) | 50 | -| `subtitles` | [shared.Subtitles](../../../sdk/models/shared/subtitles.md) | :heavy_minus_sign: | Indicates how subtitles should be included: * 'auto' - Compute the appropriate subtitle setting automatically * 'burn' - Burn the selected subtitle; auto if no selected subtitle * 'none' - Ignore all subtitle streams * 'sidecar' - The selected subtitle should be provided as a sidecar * 'embedded' - The selected subtitle should be provided as an embedded stream * 'segmented' - The selected subtitle should be provided as a segmented stream
| Burn | +| `subtitles` | [shared.Subtitles](../../models/shared/subtitles.md) | :heavy_minus_sign: | Indicates how subtitles should be included: * 'auto' - Compute the appropriate subtitle setting automatically * 'burn' - Burn the selected subtitle; auto if no selected subtitle * 'none' - Ignore all subtitle streams * 'sidecar' - The selected subtitle should be provided as a sidecar * 'embedded' - The selected subtitle should be provided as an embedded stream * 'segmented' - The selected subtitle should be provided as a segmented stream
| Burn | | `videoBitrate` | *number* | :heavy_minus_sign: | Target video bitrate (in kbps). | 12000 | | `videoQuality` | *number* | :heavy_minus_sign: | Target photo quality. | 50 | | `videoResolution` | *string* | :heavy_minus_sign: | Target maximum video resolution. | 1080x1080 | \ No newline at end of file diff --git a/docs/models/operations/adddownloadqueueitemsresponse.md b/docs/models/operations/adddownloadqueueitemsresponse.md new file mode 100644 index 00000000..ca38958d --- /dev/null +++ b/docs/models/operations/adddownloadqueueitemsresponse.md @@ -0,0 +1,17 @@ +# AddDownloadQueueItemsResponse + +OK + +## Example Usage + +```typescript +import { AddDownloadQueueItemsResponse } from "@lukehagar/plexjs/models/operations"; + +let value: AddDownloadQueueItemsResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.AddDownloadQueueItemsMediaContainer](../../models/operations/adddownloadqueueitemsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/addedqueueitem.md b/docs/models/operations/addedqueueitem.md similarity index 96% rename from docs/sdk/models/operations/addedqueueitem.md rename to docs/models/operations/addedqueueitem.md index 90dc22ad..d7c0aa09 100644 --- a/docs/sdk/models/operations/addedqueueitem.md +++ b/docs/models/operations/addedqueueitem.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { AddedQueueItem } from "@lukehagar/plexjs/sdk/models/operations"; +import { AddedQueueItem } from "@lukehagar/plexjs/models/operations"; let value: AddedQueueItem = {}; ``` diff --git a/docs/sdk/models/operations/addextrasglobals.md b/docs/models/operations/addextrasglobals.md similarity index 97% rename from docs/sdk/models/operations/addextrasglobals.md rename to docs/models/operations/addextrasglobals.md index 745ded26..a7ce2841 100644 --- a/docs/sdk/models/operations/addextrasglobals.md +++ b/docs/models/operations/addextrasglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { AddExtrasGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { AddExtrasGlobals } from "@lukehagar/plexjs/models/operations"; let value: AddExtrasGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: AddExtrasGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/addextrasrequest.md b/docs/models/operations/addextrasrequest.md similarity index 97% rename from docs/sdk/models/operations/addextrasrequest.md rename to docs/models/operations/addextrasrequest.md index 6e0a89d6..c06ac7ee 100644 --- a/docs/sdk/models/operations/addextrasrequest.md +++ b/docs/models/operations/addextrasrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { AddExtrasRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { AddExtrasRequest } from "@lukehagar/plexjs/models/operations"; let value: AddExtrasRequest = { ids: "", @@ -15,7 +15,7 @@ let value: AddExtrasRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/addlineupdvr.md b/docs/models/operations/addlineupdvr.md new file mode 100644 index 00000000..e51de3f7 --- /dev/null +++ b/docs/models/operations/addlineupdvr.md @@ -0,0 +1,19 @@ +# AddLineupDVR + +## Example Usage + +```typescript +import { AddLineupDVR } from "@lukehagar/plexjs/models/operations"; + +let value: AddLineupDVR = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | +| `device` | [shared.Device](../../models/shared/device.md)[] | :heavy_minus_sign: | N/A | +| `key` | *string* | :heavy_minus_sign: | N/A | +| `language` | *string* | :heavy_minus_sign: | N/A | +| `lineup` | *string* | :heavy_minus_sign: | N/A | +| `uuid` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/addlineupglobals.md b/docs/models/operations/addlineupglobals.md similarity index 97% rename from docs/sdk/models/operations/addlineupglobals.md rename to docs/models/operations/addlineupglobals.md index cb65f38b..7269f26a 100644 --- a/docs/sdk/models/operations/addlineupglobals.md +++ b/docs/models/operations/addlineupglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { AddLineupGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { AddLineupGlobals } from "@lukehagar/plexjs/models/operations"; let value: AddLineupGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: AddLineupGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/addlineupmediacontainer.md b/docs/models/operations/addlineupmediacontainer.md new file mode 100644 index 00000000..7a4e4346 --- /dev/null +++ b/docs/models/operations/addlineupmediacontainer.md @@ -0,0 +1,16 @@ +# AddLineupMediaContainer + +## Example Usage + +```typescript +import { AddLineupMediaContainer } from "@lukehagar/plexjs/models/operations"; + +let value: AddLineupMediaContainer = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.AddLineupMediaContainerMediaContainer](../../models/operations/addlineupmediacontainermediacontainer.md) | :heavy_minus_sign: | N/A | +| `dvr` | [operations.AddLineupDVR](../../models/operations/addlineupdvr.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/addlineupmediacontainermediacontainer.md b/docs/models/operations/addlineupmediacontainermediacontainer.md similarity index 99% rename from docs/sdk/models/operations/addlineupmediacontainermediacontainer.md rename to docs/models/operations/addlineupmediacontainermediacontainer.md index 36e15c5c..f4b3ed94 100644 --- a/docs/sdk/models/operations/addlineupmediacontainermediacontainer.md +++ b/docs/models/operations/addlineupmediacontainermediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { AddLineupMediaContainerMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { AddLineupMediaContainerMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: AddLineupMediaContainerMediaContainer = {}; ``` diff --git a/docs/sdk/models/operations/addlineuprequest.md b/docs/models/operations/addlineuprequest.md similarity index 97% rename from docs/sdk/models/operations/addlineuprequest.md rename to docs/models/operations/addlineuprequest.md index 50b9095e..3ace6abd 100644 --- a/docs/sdk/models/operations/addlineuprequest.md +++ b/docs/models/operations/addlineuprequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { AddLineupRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { AddLineupRequest } from "@lukehagar/plexjs/models/operations"; let value: AddLineupRequest = { dvrId: 950730, @@ -15,7 +15,7 @@ let value: AddLineupRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/addlineupresponse.md b/docs/models/operations/addlineupresponse.md new file mode 100644 index 00000000..0a705ee1 --- /dev/null +++ b/docs/models/operations/addlineupresponse.md @@ -0,0 +1,27 @@ +# AddLineupResponse + +## Example Usage + +```typescript +import { AddLineupResponse } from "@lukehagar/plexjs/models/operations"; + +let value: AddLineupResponse = { + headers: { + "key": [ + "", + ], + "key1": [ + "", + "", + ], + }, + result: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [operations.AddLineupResponseBody](../../models/operations/addlineupresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/addlineupresponsebody.md b/docs/models/operations/addlineupresponsebody.md new file mode 100644 index 00000000..c2873ec7 --- /dev/null +++ b/docs/models/operations/addlineupresponsebody.md @@ -0,0 +1,17 @@ +# AddLineupResponseBody + +OK + +## Example Usage + +```typescript +import { AddLineupResponseBody } from "@lukehagar/plexjs/models/operations"; + +let value: AddLineupResponseBody = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.AddLineupMediaContainer](../../models/operations/addlineupmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/addplaylistitemsglobals.md b/docs/models/operations/addplaylistitemsglobals.md similarity index 96% rename from docs/sdk/models/operations/addplaylistitemsglobals.md rename to docs/models/operations/addplaylistitemsglobals.md index 24960f4d..9c098628 100644 --- a/docs/sdk/models/operations/addplaylistitemsglobals.md +++ b/docs/models/operations/addplaylistitemsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { AddPlaylistItemsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { AddPlaylistItemsGlobals } from "@lukehagar/plexjs/models/operations"; let value: AddPlaylistItemsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: AddPlaylistItemsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/addplaylistitemsrequest.md b/docs/models/operations/addplaylistitemsrequest.md similarity index 97% rename from docs/sdk/models/operations/addplaylistitemsrequest.md rename to docs/models/operations/addplaylistitemsrequest.md index f10f7d66..4af2f115 100644 --- a/docs/sdk/models/operations/addplaylistitemsrequest.md +++ b/docs/models/operations/addplaylistitemsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { AddPlaylistItemsRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { AddPlaylistItemsRequest } from "@lukehagar/plexjs/models/operations"; let value: AddPlaylistItemsRequest = { playlistId: 174404, @@ -14,7 +14,7 @@ let value: AddPlaylistItemsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/addproviderglobals.md b/docs/models/operations/addproviderglobals.md similarity index 96% rename from docs/sdk/models/operations/addproviderglobals.md rename to docs/models/operations/addproviderglobals.md index ca47ec8d..082bf0ff 100644 --- a/docs/sdk/models/operations/addproviderglobals.md +++ b/docs/models/operations/addproviderglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { AddProviderGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { AddProviderGlobals } from "@lukehagar/plexjs/models/operations"; let value: AddProviderGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: AddProviderGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/addproviderrequest.md b/docs/models/operations/addproviderrequest.md similarity index 97% rename from docs/sdk/models/operations/addproviderrequest.md rename to docs/models/operations/addproviderrequest.md index fc409e83..b8262a7f 100644 --- a/docs/sdk/models/operations/addproviderrequest.md +++ b/docs/models/operations/addproviderrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { AddProviderRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { AddProviderRequest } from "@lukehagar/plexjs/models/operations"; let value: AddProviderRequest = { url: "https://bright-unique.biz/", @@ -14,7 +14,7 @@ let value: AddProviderRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/addsectionglobals.md b/docs/models/operations/addsectionglobals.md similarity index 96% rename from docs/sdk/models/operations/addsectionglobals.md rename to docs/models/operations/addsectionglobals.md index b982033b..5af51e5d 100644 --- a/docs/sdk/models/operations/addsectionglobals.md +++ b/docs/models/operations/addsectionglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { AddSectionGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { AddSectionGlobals } from "@lukehagar/plexjs/models/operations"; let value: AddSectionGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: AddSectionGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/addsectionprefs.md b/docs/models/operations/addsectionprefs.md similarity index 76% rename from docs/sdk/models/operations/addsectionprefs.md rename to docs/models/operations/addsectionprefs.md index e1cafb2c..61672bde 100644 --- a/docs/sdk/models/operations/addsectionprefs.md +++ b/docs/models/operations/addsectionprefs.md @@ -5,7 +5,7 @@ The preferences for this section ## Example Usage ```typescript -import { AddSectionPrefs } from "@lukehagar/plexjs/sdk/models/operations"; +import { AddSectionPrefs } from "@lukehagar/plexjs/models/operations"; let value: AddSectionPrefs = {}; ``` diff --git a/docs/models/operations/addsectionrequest.md b/docs/models/operations/addsectionrequest.md new file mode 100644 index 00000000..1550f91f --- /dev/null +++ b/docs/models/operations/addsectionrequest.md @@ -0,0 +1,48 @@ +# AddSectionRequest + +## Example Usage + +```typescript +import { AddSectionRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; + +let value: AddSectionRequest = { + name: "", + type: 583726, + agent: "", + language: "", + locations: [ + "O:\fatboy\\Media\\Ripped\\Music", + "O:\fatboy\\Media\\My Music", + ], + prefs: {}, + relative: BoolInt.True, + importFromiTunes: BoolInt.True, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | 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 | | +| `agent` | *string* | :heavy_check_mark: | The agent this section should use for metadata | | +| `metadataAgentProviderGroupId` | *string* | :heavy_minus_sign: | The agent group id for this section | | +| `language` | *string* | :heavy_check_mark: | The language of this section | | +| `locations` | *string*[] | :heavy_minus_sign: | The locations on disk to add to this section | [
"O:\\fatboy\\Media\\Ripped\\Music",
"O:\\fatboy\\Media\\My Music"
] | +| `prefs` | [operations.AddSectionPrefs](../../models/operations/addsectionprefs.md) | :heavy_minus_sign: | The preferences for this section | {
"collectionMode": 2,
"hidden": 0
} | +| `relative` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | If set, paths are relative to `Media Upload` path | 1 | +| `importFromiTunes` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | If set, import media from iTunes. | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/addsubtitlesglobals.md b/docs/models/operations/addsubtitlesglobals.md similarity index 96% rename from docs/sdk/models/operations/addsubtitlesglobals.md rename to docs/models/operations/addsubtitlesglobals.md index 288338cb..8bca3874 100644 --- a/docs/sdk/models/operations/addsubtitlesglobals.md +++ b/docs/models/operations/addsubtitlesglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { AddSubtitlesGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { AddSubtitlesGlobals } from "@lukehagar/plexjs/models/operations"; let value: AddSubtitlesGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: AddSubtitlesGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/addsubtitlesrequest.md b/docs/models/operations/addsubtitlesrequest.md similarity index 95% rename from docs/sdk/models/operations/addsubtitlesrequest.md rename to docs/models/operations/addsubtitlesrequest.md index ada57788..a859e63a 100644 --- a/docs/sdk/models/operations/addsubtitlesrequest.md +++ b/docs/models/operations/addsubtitlesrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { AddSubtitlesRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { AddSubtitlesRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: AddSubtitlesRequest = { ids: "", @@ -17,7 +17,7 @@ let value: AddSubtitlesRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -34,5 +34,5 @@ let value: AddSubtitlesRequest = { | `mediaItemID` | *number* | :heavy_minus_sign: | N/A | | | `url` | *string* | :heavy_minus_sign: | The URL of the subtitle. If not provided, the contents of the subtitle must be in the post body | | | `format` | *string* | :heavy_minus_sign: | N/A | | -| `forced` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | N/A | 1 | -| `hearingImpaired` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | N/A | 1 | \ No newline at end of file +| `forced` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | N/A | 1 | +| `hearingImpaired` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | N/A | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/addtoplayqueueglobals.md b/docs/models/operations/addtoplayqueueglobals.md similarity index 96% rename from docs/sdk/models/operations/addtoplayqueueglobals.md rename to docs/models/operations/addtoplayqueueglobals.md index a391e0a4..c34aa14f 100644 --- a/docs/sdk/models/operations/addtoplayqueueglobals.md +++ b/docs/models/operations/addtoplayqueueglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { AddToPlayQueueGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { AddToPlayQueueGlobals } from "@lukehagar/plexjs/models/operations"; let value: AddToPlayQueueGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: AddToPlayQueueGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/addtoplayqueuerequest.md b/docs/models/operations/addtoplayqueuerequest.md similarity index 94% rename from docs/sdk/models/operations/addtoplayqueuerequest.md rename to docs/models/operations/addtoplayqueuerequest.md index b01f1961..7fea11fe 100644 --- a/docs/sdk/models/operations/addtoplayqueuerequest.md +++ b/docs/models/operations/addtoplayqueuerequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { AddToPlayQueueRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { AddToPlayQueueRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: AddToPlayQueueRequest = { playQueueId: 354193, @@ -16,7 +16,7 @@ let value: AddToPlayQueueRequest = { | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -30,4 +30,4 @@ let value: AddToPlayQueueRequest = { | `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. | | -| `next` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Play this item next (defaults to 0 - queueing at the end of manually queued items). | 1 | \ No newline at end of file +| `next` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Play this item next (defaults to 0 - queueing at the end of manually queued items). | 1 | \ No newline at end of file diff --git a/docs/models/operations/advancedsubtitles.md b/docs/models/operations/advancedsubtitles.md new file mode 100644 index 00000000..628846aa --- /dev/null +++ b/docs/models/operations/advancedsubtitles.md @@ -0,0 +1,23 @@ +# AdvancedSubtitles + +## Example Usage + +```typescript +import { AdvancedSubtitles } from "@lukehagar/plexjs/models/operations"; + +let value: AdvancedSubtitles = AdvancedSubtitles.Auto; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Auto` | auto | +| `Burn` | burn | +| `None` | none | +| `Sidecar` | sidecar | +| `Embedded` | embedded | +| `Segmented` | segmented | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/models/operations/alllibraries.md b/docs/models/operations/alllibraries.md new file mode 100644 index 00000000..76c99df5 --- /dev/null +++ b/docs/models/operations/alllibraries.md @@ -0,0 +1,21 @@ +# AllLibraries + +Indicates if the user has access to all libraries. + +## Example Usage + +```typescript +import { AllLibraries } from "@lukehagar/plexjs/models/operations"; + +let value: AllLibraries = AllLibraries.Enable; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Disable` | 0 | +| `Enable` | 1 | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/models/operations/allowcameraupload.md b/docs/models/operations/allowcameraupload.md new file mode 100644 index 00000000..cd7c86a3 --- /dev/null +++ b/docs/models/operations/allowcameraupload.md @@ -0,0 +1,21 @@ +# AllowCameraUpload + +Indicates if the user is allowed to upload from a camera. + +## Example Usage + +```typescript +import { AllowCameraUpload } from "@lukehagar/plexjs/models/operations"; + +let value: AllowCameraUpload = AllowCameraUpload.Enable; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Disable` | 0 | +| `Enable` | 1 | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/models/operations/allowchannels.md b/docs/models/operations/allowchannels.md new file mode 100644 index 00000000..cbe21b47 --- /dev/null +++ b/docs/models/operations/allowchannels.md @@ -0,0 +1,21 @@ +# AllowChannels + +Indicates if the user has access to channels. + +## Example Usage + +```typescript +import { AllowChannels } from "@lukehagar/plexjs/models/operations"; + +let value: AllowChannels = AllowChannels.Enable; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Disable` | 0 | +| `Enable` | 1 | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/models/operations/allowsubtitleadmin.md b/docs/models/operations/allowsubtitleadmin.md new file mode 100644 index 00000000..7e961bb1 --- /dev/null +++ b/docs/models/operations/allowsubtitleadmin.md @@ -0,0 +1,21 @@ +# AllowSubtitleAdmin + +Indicates if the user can manage subtitles. + +## Example Usage + +```typescript +import { AllowSubtitleAdmin } from "@lukehagar/plexjs/models/operations"; + +let value: AllowSubtitleAdmin = AllowSubtitleAdmin.Enable; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Disable` | 0 | +| `Enable` | 1 | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/models/operations/allowsync.md b/docs/models/operations/allowsync.md new file mode 100644 index 00000000..ec42f8be --- /dev/null +++ b/docs/models/operations/allowsync.md @@ -0,0 +1,21 @@ +# AllowSync + +Indicates if the user is allowed to sync media. + +## Example Usage + +```typescript +import { AllowSync } from "@lukehagar/plexjs/models/operations"; + +let value: AllowSync = AllowSync.Enable; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Disable` | 0 | +| `Enable` | 1 | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/models/operations/allowtuners.md b/docs/models/operations/allowtuners.md new file mode 100644 index 00000000..b3a20f0b --- /dev/null +++ b/docs/models/operations/allowtuners.md @@ -0,0 +1,21 @@ +# AllowTuners + +Indicates if the user is allowed to use tuners. + +## Example Usage + +```typescript +import { AllowTuners } from "@lukehagar/plexjs/models/operations"; + +let value: AllowTuners = AllowTuners.Enable; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Disable` | 0 | +| `Enable` | 1 | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/sdk/models/operations/analyzemetadataglobals.md b/docs/models/operations/analyzemetadataglobals.md similarity index 96% rename from docs/sdk/models/operations/analyzemetadataglobals.md rename to docs/models/operations/analyzemetadataglobals.md index 4fd03154..926fd903 100644 --- a/docs/sdk/models/operations/analyzemetadataglobals.md +++ b/docs/models/operations/analyzemetadataglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { AnalyzeMetadataGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { AnalyzeMetadataGlobals } from "@lukehagar/plexjs/models/operations"; let value: AnalyzeMetadataGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: AnalyzeMetadataGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/analyzemetadatarequest.md b/docs/models/operations/analyzemetadatarequest.md similarity index 97% rename from docs/sdk/models/operations/analyzemetadatarequest.md rename to docs/models/operations/analyzemetadatarequest.md index a67cd480..6d1a1776 100644 --- a/docs/sdk/models/operations/analyzemetadatarequest.md +++ b/docs/models/operations/analyzemetadatarequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { AnalyzeMetadataRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { AnalyzeMetadataRequest } from "@lukehagar/plexjs/models/operations"; let value: AnalyzeMetadataRequest = { ids: "", @@ -14,7 +14,7 @@ let value: AnalyzeMetadataRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/applyupdatesglobals.md b/docs/models/operations/applyupdatesglobals.md similarity index 96% rename from docs/sdk/models/operations/applyupdatesglobals.md rename to docs/models/operations/applyupdatesglobals.md index 31c4a4f2..ba141844 100644 --- a/docs/sdk/models/operations/applyupdatesglobals.md +++ b/docs/models/operations/applyupdatesglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ApplyUpdatesGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { ApplyUpdatesGlobals } from "@lukehagar/plexjs/models/operations"; let value: ApplyUpdatesGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: ApplyUpdatesGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/applyupdatesrequest.md b/docs/models/operations/applyupdatesrequest.md similarity index 97% rename from docs/sdk/models/operations/applyupdatesrequest.md rename to docs/models/operations/applyupdatesrequest.md index bf9ed6fb..b858a8f7 100644 --- a/docs/sdk/models/operations/applyupdatesrequest.md +++ b/docs/models/operations/applyupdatesrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { ApplyUpdatesRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { ApplyUpdatesRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: ApplyUpdatesRequest = { tonight: BoolInt.True, @@ -16,7 +16,7 @@ let value: ApplyUpdatesRequest = { | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -27,5 +27,5 @@ let value: ApplyUpdatesRequest = { | `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | | `deviceName` | *string* | :heavy_minus_sign: | 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 +| `tonight` | [shared.BoolInt](../../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](../../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/models/operations/autocompleteglobals.md similarity index 96% rename from docs/sdk/models/operations/autocompleteglobals.md rename to docs/models/operations/autocompleteglobals.md index 7ecb78b2..caea5db9 100644 --- a/docs/sdk/models/operations/autocompleteglobals.md +++ b/docs/models/operations/autocompleteglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { AutocompleteGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { AutocompleteGlobals } from "@lukehagar/plexjs/models/operations"; let value: AutocompleteGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: AutocompleteGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/autocompleterequest.md b/docs/models/operations/autocompleterequest.md similarity index 99% rename from docs/sdk/models/operations/autocompleterequest.md rename to docs/models/operations/autocompleterequest.md index aef832f4..45f6a34b 100644 --- a/docs/sdk/models/operations/autocompleterequest.md +++ b/docs/models/operations/autocompleterequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { AutocompleteRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { MediaType } from "@lukehagar/plexjs/sdk/models/shared"; +import { AutocompleteRequest } from "@lukehagar/plexjs/models/operations"; +import { MediaType } from "@lukehagar/plexjs/models/shared"; let value: AutocompleteRequest = { sectionId: 594987, @@ -20,7 +20,7 @@ let value: AutocompleteRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -34,4 +34,4 @@ let value: AutocompleteRequest = { | `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 | | -| `mediaQuery` | [shared.MediaQuery](../../../sdk/models/shared/mediaquery.md) | :heavy_minus_sign: | A querystring-based filtering language used to select subsets of media. Can be provided as an object with typed properties for type safety, or as a string for complex queries with operators and boolean logic.

The query supports:
- Fields: integer, boolean, tag, string, date, language
- Operators: =, !=, ==, !==, <=, >=, >>=, <<= (varies by field type)
- Boolean operators: & (AND), , (OR), push/pop (parentheses), or=1 (explicit OR)
- Sorting: sort parameter with :desc, :nullsLast modifiers
- Grouping: group parameter
- Limits: limit parameter

Examples:
- Object format: `{type: 4, sourceType: 2, title: "24"}` → `type=4&sourceType=2&title=24`
- String format: `type=4&sourceType=2&title==24` - type = 4 AND sourceType = 2 AND title = "24"
- Complex: `push=1&index=1&or=1&rating=2&pop=1&duration=10` - (index = 1 OR rating = 2) AND duration = 10

See [API Info section](#section/API-Info/Media-Queries) for detailed information on building media queries.
| {
"type": 4,
"sourceType": 2,
"sort": "duration:desc,index"
} | \ No newline at end of file +| `mediaQuery` | [shared.MediaQuery](../../models/shared/mediaquery.md) | :heavy_minus_sign: | A querystring-based filtering language used to select subsets of media. Can be provided as an object with typed properties for type safety, or as a string for complex queries with operators and boolean logic.

The query supports:
- Fields: integer, boolean, tag, string, date, language
- Operators: =, !=, ==, !==, <=, >=, >>=, <<= (varies by field type)
- Boolean operators: & (AND), , (OR), push/pop (parentheses), or=1 (explicit OR)
- Sorting: sort parameter with :desc, :nullsLast modifiers
- Grouping: group parameter
- Limits: limit parameter

Examples:
- Object format: `{type: 4, sourceType: 2, title: "24"}` → `type=4&sourceType=2&title=24`
- String format: `type=4&sourceType=2&title==24` - type = 4 AND sourceType = 2 AND title = "24"
- Complex: `push=1&index=1&or=1&rating=2&pop=1&duration=10` - (index = 1 OR rating = 2) AND duration = 10

See [API Info section](#section/API-Info/Media-Queries) for detailed information on building media queries.
| {
"type": 4,
"sourceType": 2,
"sort": "duration:desc,index"
} | \ No newline at end of file diff --git a/docs/models/operations/autocompleteresponse.md b/docs/models/operations/autocompleteresponse.md new file mode 100644 index 00000000..50754d73 --- /dev/null +++ b/docs/models/operations/autocompleteresponse.md @@ -0,0 +1,227 @@ +# AutocompleteResponse + +## Example Usage + +```typescript +import { AutocompleteResponse } from "@lukehagar/plexjs/models/operations"; + +let value: AutocompleteResponse = { + headers: { + "key": [ + "", + ], + "key1": [ + "", + ], + "key2": [ + "", + "", + ], + }, + result: { + mediaContainer: { + metadata: [ + { + title: "", + type: "", + addedAt: 29550, + art: "/library/metadata/58683/art/1703239236", + autotag: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + chapterSource: "media", + childCount: 1, + country: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + director: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + genre: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + grandparentGuid: "plex://show/5d9c081b170e24001f2a7be4", + guid: "plex://movie/5d7768ba96b655001fdc0408", + guids: [ + { + id: + "{\"imdbExample\":{\"summary\":\"IMDB example\",\"value\":\"imdb://tt13015952\"},\"tmdbExample\":{\"summary\":\"TMDB example\",\"value\":\"tmdb://2434012\"},\"tvdbExample\":{\"summary\":\"TVDB example\",\"value\":\"tvdb://7945991\"}}", + }, + ], + key: "", + lastViewedAt: 1556281940, + 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: [ + { + accessible: true, + audioProfile: "lc", + container: "mov", + duration: 150192, + exists: true, + file: "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", + has64bitOffsets: false, + id: 1, + indexes: "sd", + key: "/library/parts/1/1531779263/file.mov", + optimizedForStreaming: false, + size: 105355654, + stream: [ + { + default: true, + audioChannelLayout: "5.1(side)", + channels: 6, + bitDepth: 10, + doviblCompatID: 1, + doviblPresent: true, + dovielPresent: false, + doviLevel: 6, + doviPresent: true, + doviProfile: 8, + dovirpuPresent: true, + doviVersion: "1.0", + bitrate: 24743, + canAutoSync: false, + chromaLocation: "topleft", + chromaSubsampling: "4:2:0", + codedHeight: 1608, + codedWidth: 3840, + closedCaptions: true, + codec: "hevc", + colorPrimaries: "bt2020", + colorRange: "tv", + colorSpace: "bt2020nc", + colorTrc: "smpte2084", + displayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + extendedDisplayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + frameRate: 23.976, + hasScalingMatrix: false, + height: 1602, + id: 1002625, + index: 0, + key: "/library/streams/216389", + language: "English", + languageCode: "eng", + languageTag: "en", + format: "srt", + headerCompression: true, + level: 150, + original: true, + profile: "main 10", + refFrames: 1, + samplingRate: 48000, + scanType: "progressive", + embeddedInVideo: "progressive", + selected: true, + forced: true, + hearingImpaired: true, + dub: true, + title: "SDH", + streamIdentifier: 1, + width: 3840, + }, + ], + videoProfile: "main", + }, + ], + videoCodec: "h264", + videoFrameRate: "24p", + videoProfile: "main", + videoResolution: "720", + width: 1280, + }, + ], + originallyAvailableAt: new Date("2022-12-14"), + parentGuid: "plex://show/5d9c081b170e24001f2a7be4", + ratingArray: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + role: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + theme: "/library/metadata/1/theme/1705636920", + thumb: "/library/metadata/58683/thumb/1703239236", + writer: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [shared.MediaContainerWithMetadata](../../models/shared/mediacontainerwithmetadata.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/bandwidth.md b/docs/models/operations/bandwidth.md similarity index 94% rename from docs/sdk/models/operations/bandwidth.md rename to docs/models/operations/bandwidth.md index d931b8a8..37103add 100644 --- a/docs/sdk/models/operations/bandwidth.md +++ b/docs/models/operations/bandwidth.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Bandwidth } from "@lukehagar/plexjs/sdk/models/operations"; +import { Bandwidth } from "@lukehagar/plexjs/models/operations"; let value: Bandwidth = {}; ``` diff --git a/docs/models/operations/bandwidths.md b/docs/models/operations/bandwidths.md new file mode 100644 index 00000000..3b0771c8 --- /dev/null +++ b/docs/models/operations/bandwidths.md @@ -0,0 +1,17 @@ +# Bandwidths + +A list of media times and bandwidths when trascoding is using with auto adjustment of bandwidth + +## Example Usage + +```typescript +import { Bandwidths } from "@lukehagar/plexjs/models/operations"; + +let value: Bandwidths = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | +| `bandwidth` | [operations.Bandwidth](../../models/operations/bandwidth.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/billing.md b/docs/models/operations/billing.md new file mode 100644 index 00000000..7071330a --- /dev/null +++ b/docs/models/operations/billing.md @@ -0,0 +1,19 @@ +# Billing + +## Example Usage + +```typescript +import { Billing } from "@lukehagar/plexjs/models/operations"; + +let value: Billing = { + internalPaymentMethod: {}, + paymentMethodId: 575569, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `internalPaymentMethod` | [operations.InternalPaymentMethod](../../models/operations/internalpaymentmethod.md) | :heavy_check_mark: | N/A | +| `paymentMethodId` | *number* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/butlertasks.md b/docs/models/operations/butlertasks.md new file mode 100644 index 00000000..292e8fe2 --- /dev/null +++ b/docs/models/operations/butlertasks.md @@ -0,0 +1,15 @@ +# ButlerTasks + +## Example Usage + +```typescript +import { ButlerTasks } from "@lukehagar/plexjs/models/operations"; + +let value: ButlerTasks = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `butlerTask` | [operations.GetTasksButlerTask](../../models/operations/gettasksbutlertask.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/cancelactivityglobals.md b/docs/models/operations/cancelactivityglobals.md similarity index 96% rename from docs/sdk/models/operations/cancelactivityglobals.md rename to docs/models/operations/cancelactivityglobals.md index 0ff4892e..a1dd1d4c 100644 --- a/docs/sdk/models/operations/cancelactivityglobals.md +++ b/docs/models/operations/cancelactivityglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { CancelActivityGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { CancelActivityGlobals } from "@lukehagar/plexjs/models/operations"; let value: CancelActivityGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: CancelActivityGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/cancelactivityrequest.md b/docs/models/operations/cancelactivityrequest.md similarity index 96% rename from docs/sdk/models/operations/cancelactivityrequest.md rename to docs/models/operations/cancelactivityrequest.md index 90d4f024..ef090c62 100644 --- a/docs/sdk/models/operations/cancelactivityrequest.md +++ b/docs/models/operations/cancelactivityrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { CancelActivityRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { CancelActivityRequest } from "@lukehagar/plexjs/models/operations"; let value: CancelActivityRequest = { activityId: "d6199ba1-fb5e-4cae-bf17-1a5369c1cf1e", @@ -14,7 +14,7 @@ let value: CancelActivityRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/cancelgrabglobals.md b/docs/models/operations/cancelgrabglobals.md similarity index 96% rename from docs/sdk/models/operations/cancelgrabglobals.md rename to docs/models/operations/cancelgrabglobals.md index 6c99cbc2..17b8aca2 100644 --- a/docs/sdk/models/operations/cancelgrabglobals.md +++ b/docs/models/operations/cancelgrabglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { CancelGrabGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { CancelGrabGlobals } from "@lukehagar/plexjs/models/operations"; let value: CancelGrabGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: CancelGrabGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/cancelgrabrequest.md b/docs/models/operations/cancelgrabrequest.md similarity index 97% rename from docs/sdk/models/operations/cancelgrabrequest.md rename to docs/models/operations/cancelgrabrequest.md index ffbfd145..fb3dbc9f 100644 --- a/docs/sdk/models/operations/cancelgrabrequest.md +++ b/docs/models/operations/cancelgrabrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { CancelGrabRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { CancelGrabRequest } from "@lukehagar/plexjs/models/operations"; let value: CancelGrabRequest = { operationId: "", @@ -14,7 +14,7 @@ let value: CancelGrabRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/cancelrefreshglobals.md b/docs/models/operations/cancelrefreshglobals.md similarity index 96% rename from docs/sdk/models/operations/cancelrefreshglobals.md rename to docs/models/operations/cancelrefreshglobals.md index ad1e16a0..b3772d0e 100644 --- a/docs/sdk/models/operations/cancelrefreshglobals.md +++ b/docs/models/operations/cancelrefreshglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { CancelRefreshGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { CancelRefreshGlobals } from "@lukehagar/plexjs/models/operations"; let value: CancelRefreshGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: CancelRefreshGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/cancelrefreshrequest.md b/docs/models/operations/cancelrefreshrequest.md similarity index 96% rename from docs/sdk/models/operations/cancelrefreshrequest.md rename to docs/models/operations/cancelrefreshrequest.md index 86cc5262..a5a44cef 100644 --- a/docs/sdk/models/operations/cancelrefreshrequest.md +++ b/docs/models/operations/cancelrefreshrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { CancelRefreshRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { CancelRefreshRequest } from "@lukehagar/plexjs/models/operations"; let value: CancelRefreshRequest = { sectionId: 569134, @@ -14,7 +14,7 @@ let value: CancelRefreshRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/channelmappingbykey.md b/docs/models/operations/channelmappingbykey.md similarity index 79% rename from docs/sdk/models/operations/channelmappingbykey.md rename to docs/models/operations/channelmappingbykey.md index 525f0226..1caadb1b 100644 --- a/docs/sdk/models/operations/channelmappingbykey.md +++ b/docs/models/operations/channelmappingbykey.md @@ -5,7 +5,7 @@ The mapping of changes, passed as a map of device channel to lineup key. ## Example Usage ```typescript -import { ChannelMappingByKey } from "@lukehagar/plexjs/sdk/models/operations"; +import { ChannelMappingByKey } from "@lukehagar/plexjs/models/operations"; let value: ChannelMappingByKey = {}; ``` diff --git a/docs/sdk/models/operations/checkupdatesglobals.md b/docs/models/operations/checkupdatesglobals.md similarity index 96% rename from docs/sdk/models/operations/checkupdatesglobals.md rename to docs/models/operations/checkupdatesglobals.md index d2c1455c..e3993f0d 100644 --- a/docs/sdk/models/operations/checkupdatesglobals.md +++ b/docs/models/operations/checkupdatesglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { CheckUpdatesGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { CheckUpdatesGlobals } from "@lukehagar/plexjs/models/operations"; let value: CheckUpdatesGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: CheckUpdatesGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/checkupdatesrequest.md b/docs/models/operations/checkupdatesrequest.md similarity index 94% rename from docs/sdk/models/operations/checkupdatesrequest.md rename to docs/models/operations/checkupdatesrequest.md index 87f1aacb..fd9e3dcc 100644 --- a/docs/sdk/models/operations/checkupdatesrequest.md +++ b/docs/models/operations/checkupdatesrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { CheckUpdatesRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { CheckUpdatesRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: CheckUpdatesRequest = { download: BoolInt.True, @@ -15,7 +15,7 @@ let value: CheckUpdatesRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -26,4 +26,4 @@ let value: CheckUpdatesRequest = { | `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | | `deviceName` | *string* | :heavy_minus_sign: | 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 +| `download` | [shared.BoolInt](../../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/chromasubsampling.md b/docs/models/operations/chromasubsampling.md similarity index 82% rename from docs/sdk/models/operations/chromasubsampling.md rename to docs/models/operations/chromasubsampling.md index 7e7ec7b3..1382337c 100644 --- a/docs/sdk/models/operations/chromasubsampling.md +++ b/docs/models/operations/chromasubsampling.md @@ -10,7 +10,7 @@ Defaults to 3 (444) ## Example Usage ```typescript -import { ChromaSubsampling } from "@lukehagar/plexjs/sdk/models/operations"; +import { ChromaSubsampling } from "@lukehagar/plexjs/models/operations"; let value: ChromaSubsampling = ChromaSubsampling.Two; ``` diff --git a/docs/sdk/models/operations/clearplaylistitemsglobals.md b/docs/models/operations/clearplaylistitemsglobals.md similarity index 96% rename from docs/sdk/models/operations/clearplaylistitemsglobals.md rename to docs/models/operations/clearplaylistitemsglobals.md index 90bb275e..a05baf72 100644 --- a/docs/sdk/models/operations/clearplaylistitemsglobals.md +++ b/docs/models/operations/clearplaylistitemsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ClearPlaylistItemsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { ClearPlaylistItemsGlobals } from "@lukehagar/plexjs/models/operations"; let value: ClearPlaylistItemsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: ClearPlaylistItemsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/clearplaylistitemsrequest.md b/docs/models/operations/clearplaylistitemsrequest.md similarity index 96% rename from docs/sdk/models/operations/clearplaylistitemsrequest.md rename to docs/models/operations/clearplaylistitemsrequest.md index effb0d17..71901d68 100644 --- a/docs/sdk/models/operations/clearplaylistitemsrequest.md +++ b/docs/models/operations/clearplaylistitemsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ClearPlaylistItemsRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { ClearPlaylistItemsRequest } from "@lukehagar/plexjs/models/operations"; let value: ClearPlaylistItemsRequest = { playlistId: 236302, @@ -14,7 +14,7 @@ let value: ClearPlaylistItemsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/clearplayqueueglobals.md b/docs/models/operations/clearplayqueueglobals.md similarity index 96% rename from docs/sdk/models/operations/clearplayqueueglobals.md rename to docs/models/operations/clearplayqueueglobals.md index 36a76248..eadfc017 100644 --- a/docs/sdk/models/operations/clearplayqueueglobals.md +++ b/docs/models/operations/clearplayqueueglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ClearPlayQueueGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { ClearPlayQueueGlobals } from "@lukehagar/plexjs/models/operations"; let value: ClearPlayQueueGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: ClearPlayQueueGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/clearplayqueuerequest.md b/docs/models/operations/clearplayqueuerequest.md similarity index 96% rename from docs/sdk/models/operations/clearplayqueuerequest.md rename to docs/models/operations/clearplayqueuerequest.md index 4d81fcdb..c0d2d663 100644 --- a/docs/sdk/models/operations/clearplayqueuerequest.md +++ b/docs/models/operations/clearplayqueuerequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ClearPlayQueueRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { ClearPlayQueueRequest } from "@lukehagar/plexjs/models/operations"; let value: ClearPlayQueueRequest = { playQueueId: 442842, @@ -14,7 +14,7 @@ let value: ClearPlayQueueRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/computechannelmapchannelmapping.md b/docs/models/operations/computechannelmapchannelmapping.md similarity index 97% rename from docs/sdk/models/operations/computechannelmapchannelmapping.md rename to docs/models/operations/computechannelmapchannelmapping.md index 926b44da..6974c903 100644 --- a/docs/sdk/models/operations/computechannelmapchannelmapping.md +++ b/docs/models/operations/computechannelmapchannelmapping.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ComputeChannelMapChannelMapping } from "@lukehagar/plexjs/sdk/models/operations"; +import { ComputeChannelMapChannelMapping } from "@lukehagar/plexjs/models/operations"; let value: ComputeChannelMapChannelMapping = {}; ``` diff --git a/docs/sdk/models/operations/computechannelmapglobals.md b/docs/models/operations/computechannelmapglobals.md similarity index 96% rename from docs/sdk/models/operations/computechannelmapglobals.md rename to docs/models/operations/computechannelmapglobals.md index 71417db2..5ef90e60 100644 --- a/docs/sdk/models/operations/computechannelmapglobals.md +++ b/docs/models/operations/computechannelmapglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ComputeChannelMapGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { ComputeChannelMapGlobals } from "@lukehagar/plexjs/models/operations"; let value: ComputeChannelMapGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: ComputeChannelMapGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/computechannelmapmediacontainer.md b/docs/models/operations/computechannelmapmediacontainer.md similarity index 98% rename from docs/sdk/models/operations/computechannelmapmediacontainer.md rename to docs/models/operations/computechannelmapmediacontainer.md index dfc3f737..9ef7db86 100644 --- a/docs/sdk/models/operations/computechannelmapmediacontainer.md +++ b/docs/models/operations/computechannelmapmediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { ComputeChannelMapMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { ComputeChannelMapMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: ComputeChannelMapMediaContainer = {}; ``` @@ -21,4 +21,4 @@ let value: ComputeChannelMapMediaContainer = {}; | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `channelMapping` | [operations.ComputeChannelMapChannelMapping](../../../sdk/models/operations/computechannelmapchannelmapping.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `channelMapping` | [operations.ComputeChannelMapChannelMapping](../../models/operations/computechannelmapchannelmapping.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/computechannelmaprequest.md b/docs/models/operations/computechannelmaprequest.md similarity index 97% rename from docs/sdk/models/operations/computechannelmaprequest.md rename to docs/models/operations/computechannelmaprequest.md index 679ecec6..5df7be2c 100644 --- a/docs/sdk/models/operations/computechannelmaprequest.md +++ b/docs/models/operations/computechannelmaprequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ComputeChannelMapRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { ComputeChannelMapRequest } from "@lukehagar/plexjs/models/operations"; let value: ComputeChannelMapRequest = { deviceQueryParameter: "", @@ -15,7 +15,7 @@ let value: ComputeChannelMapRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/computechannelmapresponse.md b/docs/models/operations/computechannelmapresponse.md new file mode 100644 index 00000000..5afd4907 --- /dev/null +++ b/docs/models/operations/computechannelmapresponse.md @@ -0,0 +1,19 @@ +# ComputeChannelMapResponse + +## Example Usage + +```typescript +import { ComputeChannelMapResponse } from "@lukehagar/plexjs/models/operations"; + +let value: ComputeChannelMapResponse = { + headers: {}, + result: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [operations.ComputeChannelMapResponseBody](../../models/operations/computechannelmapresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/computechannelmapresponsebody.md b/docs/models/operations/computechannelmapresponsebody.md new file mode 100644 index 00000000..a15346e9 --- /dev/null +++ b/docs/models/operations/computechannelmapresponsebody.md @@ -0,0 +1,17 @@ +# ComputeChannelMapResponseBody + +OK + +## Example Usage + +```typescript +import { ComputeChannelMapResponseBody } from "@lukehagar/plexjs/models/operations"; + +let value: ComputeChannelMapResponseBody = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.ComputeChannelMapMediaContainer](../../models/operations/computechannelmapmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/connection.md b/docs/models/operations/connection.md similarity index 96% rename from docs/sdk/models/operations/connection.md rename to docs/models/operations/connection.md index d6fb33fb..dba0f301 100644 --- a/docs/sdk/models/operations/connection.md +++ b/docs/models/operations/connection.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Connection } from "@lukehagar/plexjs/sdk/models/operations"; +import { Connection } from "@lukehagar/plexjs/models/operations"; let value: Connection = {}; ``` diff --git a/docs/sdk/models/operations/connectwebsocketglobals.md b/docs/models/operations/connectwebsocketglobals.md similarity index 96% rename from docs/sdk/models/operations/connectwebsocketglobals.md rename to docs/models/operations/connectwebsocketglobals.md index a15bcfa7..79e683ff 100644 --- a/docs/sdk/models/operations/connectwebsocketglobals.md +++ b/docs/models/operations/connectwebsocketglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ConnectWebSocketGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { ConnectWebSocketGlobals } from "@lukehagar/plexjs/models/operations"; let value: ConnectWebSocketGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: ConnectWebSocketGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/connectwebsocketrequest.md b/docs/models/operations/connectwebsocketrequest.md similarity index 99% rename from docs/sdk/models/operations/connectwebsocketrequest.md rename to docs/models/operations/connectwebsocketrequest.md index a8b947e6..2382a6c1 100644 --- a/docs/sdk/models/operations/connectwebsocketrequest.md +++ b/docs/models/operations/connectwebsocketrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ConnectWebSocketRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { ConnectWebSocketRequest } from "@lukehagar/plexjs/models/operations"; let value: ConnectWebSocketRequest = {}; ``` @@ -12,7 +12,7 @@ let value: ConnectWebSocketRequest = {}; | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/createcollectionglobals.md b/docs/models/operations/createcollectionglobals.md similarity index 96% rename from docs/sdk/models/operations/createcollectionglobals.md rename to docs/models/operations/createcollectionglobals.md index bd1b8897..f610bf31 100644 --- a/docs/sdk/models/operations/createcollectionglobals.md +++ b/docs/models/operations/createcollectionglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { CreateCollectionGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { CreateCollectionGlobals } from "@lukehagar/plexjs/models/operations"; let value: CreateCollectionGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: CreateCollectionGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/createcollectionrequest.md b/docs/models/operations/createcollectionrequest.md similarity index 98% rename from docs/sdk/models/operations/createcollectionrequest.md rename to docs/models/operations/createcollectionrequest.md index 64ef8bf7..07c59803 100644 --- a/docs/sdk/models/operations/createcollectionrequest.md +++ b/docs/models/operations/createcollectionrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { CreateCollectionRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { MediaType } from "@lukehagar/plexjs/sdk/models/shared"; +import { CreateCollectionRequest } from "@lukehagar/plexjs/models/operations"; +import { MediaType } from "@lukehagar/plexjs/models/shared"; let value: CreateCollectionRequest = { sectionId: "", @@ -16,7 +16,7 @@ let value: CreateCollectionRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -31,4 +31,4 @@ let value: CreateCollectionRequest = { | `title` | *string* | :heavy_minus_sign: | The title to filter by or assign | | | `smart` | *boolean* | :heavy_minus_sign: | Whether this is a smart collection/playlist | | | `uri` | *string* | :heavy_minus_sign: | The URI for processing the smart collection. Required for a smart collection | | -| `type` | [shared.MediaType](../../../sdk/models/shared/mediatype.md) | :heavy_minus_sign: | The type of media to retrieve or filter by.

1 = movie
2 = show
3 = season
4 = episode
5 = artist
6 = album
7 = track
8 = photo_album
9 = photo

E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
| 2 | \ No newline at end of file +| `type` | [shared.MediaType](../../models/shared/mediatype.md) | :heavy_minus_sign: | The type of media to retrieve or filter by.

1 = movie
2 = show
3 = season
4 = episode
5 = artist
6 = album
7 = track
8 = photo_album
9 = photo

E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
| 2 | \ No newline at end of file diff --git a/docs/sdk/models/operations/createcustomhubglobals.md b/docs/models/operations/createcustomhubglobals.md similarity index 96% rename from docs/sdk/models/operations/createcustomhubglobals.md rename to docs/models/operations/createcustomhubglobals.md index bea19ac6..60cecf54 100644 --- a/docs/sdk/models/operations/createcustomhubglobals.md +++ b/docs/models/operations/createcustomhubglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { CreateCustomHubGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { CreateCustomHubGlobals } from "@lukehagar/plexjs/models/operations"; let value: CreateCustomHubGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: CreateCustomHubGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/createcustomhubrequest.md b/docs/models/operations/createcustomhubrequest.md similarity index 91% rename from docs/sdk/models/operations/createcustomhubrequest.md rename to docs/models/operations/createcustomhubrequest.md index 8405e27f..0774135f 100644 --- a/docs/sdk/models/operations/createcustomhubrequest.md +++ b/docs/models/operations/createcustomhubrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { CreateCustomHubRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { CreateCustomHubRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: CreateCustomHubRequest = { sectionId: 94028, @@ -19,7 +19,7 @@ let value: CreateCustomHubRequest = { | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -32,6 +32,6 @@ let value: CreateCustomHubRequest = { | `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 | -| `promotedToOwnHome` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Whether this hub should be displayed in admin's home | 1 | -| `promotedToSharedHome` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Whether this hub should be displayed in shared user's home | 1 | \ No newline at end of file +| `promotedToRecommended` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Whether this hub should be displayed in recommended | 1 | +| `promotedToOwnHome` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Whether this hub should be displayed in admin's home | 1 | +| `promotedToSharedHome` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Whether this hub should be displayed in shared user's home | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/createdownloadqueuedownloadqueue.md b/docs/models/operations/createdownloadqueuedownloadqueue.md similarity index 98% rename from docs/sdk/models/operations/createdownloadqueuedownloadqueue.md rename to docs/models/operations/createdownloadqueuedownloadqueue.md index b4db3c3b..c45cfcf2 100644 --- a/docs/sdk/models/operations/createdownloadqueuedownloadqueue.md +++ b/docs/models/operations/createdownloadqueuedownloadqueue.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { CreateDownloadQueueDownloadQueue } from "@lukehagar/plexjs/sdk/models/operations"; +import { CreateDownloadQueueDownloadQueue } from "@lukehagar/plexjs/models/operations"; let value: CreateDownloadQueueDownloadQueue = {}; ``` @@ -14,4 +14,4 @@ let value: CreateDownloadQueueDownloadQueue = {}; | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *number* | :heavy_minus_sign: | N/A | | `itemCount` | *number* | :heavy_minus_sign: | N/A | -| `status` | [operations.CreateDownloadQueueStatus](../../../sdk/models/operations/createdownloadqueuestatus.md) | :heavy_minus_sign: | The state of this queue
- deciding: At least one item is still being decided
- waiting: At least one item is waiting for transcode and none are currently transcoding
- processing: At least one item is being transcoded
- done: All items are available (or potentially expired)
- error: At least one item has encountered an error
| \ No newline at end of file +| `status` | [operations.CreateDownloadQueueStatus](../../models/operations/createdownloadqueuestatus.md) | :heavy_minus_sign: | The state of this queue
- deciding: At least one item is still being decided
- waiting: At least one item is waiting for transcode and none are currently transcoding
- processing: At least one item is being transcoded
- done: All items are available (or potentially expired)
- error: At least one item has encountered an error
| \ No newline at end of file diff --git a/docs/sdk/models/operations/createdownloadqueuemediacontainer.md b/docs/models/operations/createdownloadqueuemediacontainer.md similarity index 98% rename from docs/sdk/models/operations/createdownloadqueuemediacontainer.md rename to docs/models/operations/createdownloadqueuemediacontainer.md index 93ab15b0..4ab01c68 100644 --- a/docs/sdk/models/operations/createdownloadqueuemediacontainer.md +++ b/docs/models/operations/createdownloadqueuemediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { CreateDownloadQueueMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { CreateDownloadQueueMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: CreateDownloadQueueMediaContainer = {}; ``` @@ -21,4 +21,4 @@ let value: CreateDownloadQueueMediaContainer = {}; | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `downloadQueue` | [operations.CreateDownloadQueueDownloadQueue](../../../sdk/models/operations/createdownloadqueuedownloadqueue.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `downloadQueue` | [operations.CreateDownloadQueueDownloadQueue](../../models/operations/createdownloadqueuedownloadqueue.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/createdownloadqueueresponse.md b/docs/models/operations/createdownloadqueueresponse.md new file mode 100644 index 00000000..2690ac1d --- /dev/null +++ b/docs/models/operations/createdownloadqueueresponse.md @@ -0,0 +1,17 @@ +# CreateDownloadQueueResponse + +OK + +## Example Usage + +```typescript +import { CreateDownloadQueueResponse } from "@lukehagar/plexjs/models/operations"; + +let value: CreateDownloadQueueResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `mediaContainer` | [operations.CreateDownloadQueueMediaContainer](../../models/operations/createdownloadqueuemediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/createdownloadqueuestatus.md b/docs/models/operations/createdownloadqueuestatus.md new file mode 100644 index 00000000..963a4889 --- /dev/null +++ b/docs/models/operations/createdownloadqueuestatus.md @@ -0,0 +1,30 @@ +# CreateDownloadQueueStatus + +The state of this queue + - deciding: At least one item is still being decided + - waiting: At least one item is waiting for transcode and none are currently transcoding + - processing: At least one item is being transcoded + - done: All items are available (or potentially expired) + - error: At least one item has encountered an error + + +## Example Usage + +```typescript +import { CreateDownloadQueueStatus } from "@lukehagar/plexjs/models/operations"; + +let value: CreateDownloadQueueStatus = CreateDownloadQueueStatus.Error; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Deciding` | deciding | +| `Waiting` | waiting | +| `Processing` | processing | +| `Done` | done | +| `Error` | error | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/sdk/models/operations/createdvrglobals.md b/docs/models/operations/createdvrglobals.md similarity index 97% rename from docs/sdk/models/operations/createdvrglobals.md rename to docs/models/operations/createdvrglobals.md index 9df48358..79a32c84 100644 --- a/docs/sdk/models/operations/createdvrglobals.md +++ b/docs/models/operations/createdvrglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { CreateDVRGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { CreateDVRGlobals } from "@lukehagar/plexjs/models/operations"; let value: CreateDVRGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: CreateDVRGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/createdvrrequest.md b/docs/models/operations/createdvrrequest.md similarity index 97% rename from docs/sdk/models/operations/createdvrrequest.md rename to docs/models/operations/createdvrrequest.md index d705ac30..78d0aa7d 100644 --- a/docs/sdk/models/operations/createdvrrequest.md +++ b/docs/models/operations/createdvrrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { CreateDVRRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { CreateDVRRequest } from "@lukehagar/plexjs/models/operations"; let value: CreateDVRRequest = { lineup: "lineup://tv.plex.providers.epg.onconnect/USA-HI51418-DEFAULT", @@ -18,7 +18,7 @@ let value: CreateDVRRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/createdvrresponse.md b/docs/models/operations/createdvrresponse.md new file mode 100644 index 00000000..f26628f8 --- /dev/null +++ b/docs/models/operations/createdvrresponse.md @@ -0,0 +1,23 @@ +# CreateDVRResponse + +## Example Usage + +```typescript +import { CreateDVRResponse } from "@lukehagar/plexjs/models/operations"; + +let value: CreateDVRResponse = { + headers: { + "key": [ + "", + ], + }, + result: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [shared.DvrRequestHandlerSlashGetResponses200](../../models/shared/dvrrequesthandlerslashgetresponses200.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/createmarkerattributes.md b/docs/models/operations/createmarkerattributes.md similarity index 76% rename from docs/sdk/models/operations/createmarkerattributes.md rename to docs/models/operations/createmarkerattributes.md index b2430614..8145b2b4 100644 --- a/docs/sdk/models/operations/createmarkerattributes.md +++ b/docs/models/operations/createmarkerattributes.md @@ -5,7 +5,7 @@ The attributes to assign to this marker ## Example Usage ```typescript -import { CreateMarkerAttributes } from "@lukehagar/plexjs/sdk/models/operations"; +import { CreateMarkerAttributes } from "@lukehagar/plexjs/models/operations"; let value: CreateMarkerAttributes = {}; ``` diff --git a/docs/sdk/models/operations/createmarkerglobals.md b/docs/models/operations/createmarkerglobals.md similarity index 96% rename from docs/sdk/models/operations/createmarkerglobals.md rename to docs/models/operations/createmarkerglobals.md index 2545d4e4..9ef10664 100644 --- a/docs/sdk/models/operations/createmarkerglobals.md +++ b/docs/models/operations/createmarkerglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { CreateMarkerGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { CreateMarkerGlobals } from "@lukehagar/plexjs/models/operations"; let value: CreateMarkerGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: CreateMarkerGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/createmarkermediacontainer.md b/docs/models/operations/createmarkermediacontainer.md similarity index 97% rename from docs/sdk/models/operations/createmarkermediacontainer.md rename to docs/models/operations/createmarkermediacontainer.md index b93a9e64..b3a91ee6 100644 --- a/docs/sdk/models/operations/createmarkermediacontainer.md +++ b/docs/models/operations/createmarkermediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { CreateMarkerMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { CreateMarkerMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: CreateMarkerMediaContainer = {}; ``` @@ -26,5 +26,5 @@ let value: CreateMarkerMediaContainer = {}; | `id` | *number* | :heavy_minus_sign: | N/A | | `startTimeOffset` | *number* | :heavy_minus_sign: | N/A | | `title` | *string* | :heavy_minus_sign: | N/A | -| `type` | [operations.CreateMarkerType](../../../sdk/models/operations/createmarkertype.md) | :heavy_minus_sign: | N/A | +| `type` | [operations.CreateMarkerType](../../models/operations/createmarkertype.md) | :heavy_minus_sign: | N/A | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/createmarkerrequest.md b/docs/models/operations/createmarkerrequest.md new file mode 100644 index 00000000..ba10ac15 --- /dev/null +++ b/docs/models/operations/createmarkerrequest.md @@ -0,0 +1,35 @@ +# CreateMarkerRequest + +## Example Usage + +```typescript +import { CreateMarkerRequest } from "@lukehagar/plexjs/models/operations"; + +let value: CreateMarkerRequest = { + ids: "", + type: 573388, + startTimeOffset: 296852, + attributes: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | 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 | | +| `endTimeOffset` | *number* | :heavy_minus_sign: | The end time of the marker | | +| `attributes` | [operations.CreateMarkerAttributes](../../models/operations/createmarkerattributes.md) | :heavy_minus_sign: | The attributes to assign to this marker | {
"title": "My favorite spot"
} | \ No newline at end of file diff --git a/docs/models/operations/createmarkerresponse.md b/docs/models/operations/createmarkerresponse.md new file mode 100644 index 00000000..d2f2f547 --- /dev/null +++ b/docs/models/operations/createmarkerresponse.md @@ -0,0 +1,17 @@ +# CreateMarkerResponse + +OK + +## Example Usage + +```typescript +import { CreateMarkerResponse } from "@lukehagar/plexjs/models/operations"; + +let value: CreateMarkerResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.CreateMarkerMediaContainer](../../models/operations/createmarkermediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/createmarkertype.md b/docs/models/operations/createmarkertype.md new file mode 100644 index 00000000..ea2a588e --- /dev/null +++ b/docs/models/operations/createmarkertype.md @@ -0,0 +1,22 @@ +# CreateMarkerType + +## Example Usage + +```typescript +import { CreateMarkerType } from "@lukehagar/plexjs/models/operations"; + +let value: CreateMarkerType = CreateMarkerType.Intro; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Intro` | intro | +| `Commercial` | commercial | +| `Bookmark` | bookmark | +| `Resume` | resume | +| `Credit` | credit | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/sdk/models/operations/createplaylistglobals.md b/docs/models/operations/createplaylistglobals.md similarity index 96% rename from docs/sdk/models/operations/createplaylistglobals.md rename to docs/models/operations/createplaylistglobals.md index b2369004..a894c5bf 100644 --- a/docs/sdk/models/operations/createplaylistglobals.md +++ b/docs/models/operations/createplaylistglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { CreatePlaylistGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { CreatePlaylistGlobals } from "@lukehagar/plexjs/models/operations"; let value: CreatePlaylistGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: CreatePlaylistGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/createplaylistrequest.md b/docs/models/operations/createplaylistrequest.md similarity index 97% rename from docs/sdk/models/operations/createplaylistrequest.md rename to docs/models/operations/createplaylistrequest.md index 500b42db..e8edfa28 100644 --- a/docs/sdk/models/operations/createplaylistrequest.md +++ b/docs/models/operations/createplaylistrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { CreatePlaylistRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { CreatePlaylistRequest } from "@lukehagar/plexjs/models/operations"; let value: CreatePlaylistRequest = {}; ``` @@ -12,7 +12,7 @@ let value: CreatePlaylistRequest = {}; | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/createplayqueueglobals.md b/docs/models/operations/createplayqueueglobals.md similarity index 96% rename from docs/sdk/models/operations/createplayqueueglobals.md rename to docs/models/operations/createplayqueueglobals.md index 3729152e..0bb0f119 100644 --- a/docs/sdk/models/operations/createplayqueueglobals.md +++ b/docs/models/operations/createplayqueueglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { CreatePlayQueueGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { CreatePlayQueueGlobals } from "@lukehagar/plexjs/models/operations"; let value: CreatePlayQueueGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: CreatePlayQueueGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/createplayqueuemediacontainer.md b/docs/models/operations/createplayqueuemediacontainer.md similarity index 99% rename from docs/sdk/models/operations/createplayqueuemediacontainer.md rename to docs/models/operations/createplayqueuemediacontainer.md index a11f4c33..e71a58f7 100644 --- a/docs/sdk/models/operations/createplayqueuemediacontainer.md +++ b/docs/models/operations/createplayqueuemediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { CreatePlayQueueMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { CreatePlayQueueMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: CreatePlayQueueMediaContainer = {}; ``` diff --git a/docs/sdk/models/operations/createplayqueuerequest.md b/docs/models/operations/createplayqueuerequest.md similarity index 97% rename from docs/sdk/models/operations/createplayqueuerequest.md rename to docs/models/operations/createplayqueuerequest.md index 9ce64831..38ec6a82 100644 --- a/docs/sdk/models/operations/createplayqueuerequest.md +++ b/docs/models/operations/createplayqueuerequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { CreatePlayQueueRequest, CreatePlayQueueType } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { CreatePlayQueueRequest, CreatePlayQueueType } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: CreatePlayQueueRequest = { type: CreatePlayQueueType.Audio, @@ -20,7 +20,7 @@ let value: CreatePlayQueueRequest = { | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -33,11 +33,11 @@ let value: CreatePlayQueueRequest = { | `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 | | +| `type` | [operations.CreatePlayQueueType](../../models/operations/createplayqueuetype.md) | :heavy_check_mark: | The type of play queue to create | | | `key` | *string* | :heavy_minus_sign: | The key of the first item to play, defaults to the first in the play queue. | | -| `shuffle` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Whether to shuffle the playlist, defaults to 0. | 1 | -| `repeat` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | If the PQ is bigger than the window, fill any empty space with wraparound items, defaults to 0. | 1 | -| `continuous` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Whether to create a continuous play queue (e.g. from an episode), defaults to 0. | 1 | +| `shuffle` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Whether to shuffle the playlist, defaults to 0. | 1 | +| `repeat` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | If the PQ is bigger than the window, fill any empty space with wraparound items, defaults to 0. | 1 | +| `continuous` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Whether to create a continuous play queue (e.g. from an episode), defaults to 0. | 1 | | `extrasPrefixCount` | *number* | :heavy_minus_sign: | Number of trailers to prepend a movie with not including the pre-roll. If omitted the pre-roll will not be returned in the play queue. When resuming a movie `extrasPrefixCount` should be omitted as a parameter instead of passing 0. | | -| `recursive` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Only applies to queues of type photo, whether to retrieve all descendent photos from an album or section, defaults to 1. | 1 | -| `onDeck` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Only applies to queues of type show or seasons, whether to return a queue that is started on the On Deck episode if one exists. Otherwise begins the play queue on the beginning of the show or season. | 1 | \ No newline at end of file +| `recursive` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Only applies to queues of type photo, whether to retrieve all descendent photos from an album or section, defaults to 1. | 1 | +| `onDeck` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Only applies to queues of type show or seasons, whether to return a queue that is started on the On Deck episode if one exists. Otherwise begins the play queue on the beginning of the show or season. | 1 | \ No newline at end of file diff --git a/docs/models/operations/createplayqueueresponse.md b/docs/models/operations/createplayqueueresponse.md new file mode 100644 index 00000000..78f8ea16 --- /dev/null +++ b/docs/models/operations/createplayqueueresponse.md @@ -0,0 +1,29 @@ +# CreatePlayQueueResponse + +## Example Usage + +```typescript +import { CreatePlayQueueResponse } from "@lukehagar/plexjs/models/operations"; + +let value: CreatePlayQueueResponse = { + headers: { + "key": [], + "key1": [ + "", + "", + ], + "key2": [ + "", + "", + ], + }, + result: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [operations.CreatePlayQueueResponseBody](../../models/operations/createplayqueueresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/createplayqueueresponsebody.md b/docs/models/operations/createplayqueueresponsebody.md new file mode 100644 index 00000000..50abce87 --- /dev/null +++ b/docs/models/operations/createplayqueueresponsebody.md @@ -0,0 +1,17 @@ +# CreatePlayQueueResponseBody + +OK + +## Example Usage + +```typescript +import { CreatePlayQueueResponseBody } from "@lukehagar/plexjs/models/operations"; + +let value: CreatePlayQueueResponseBody = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.CreatePlayQueueMediaContainer](../../models/operations/createplayqueuemediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/createplayqueuetype.md b/docs/models/operations/createplayqueuetype.md similarity index 77% rename from docs/sdk/models/operations/createplayqueuetype.md rename to docs/models/operations/createplayqueuetype.md index 34b6b666..b0f97942 100644 --- a/docs/sdk/models/operations/createplayqueuetype.md +++ b/docs/models/operations/createplayqueuetype.md @@ -5,7 +5,7 @@ The type of play queue to create ## Example Usage ```typescript -import { CreatePlayQueueType } from "@lukehagar/plexjs/sdk/models/operations"; +import { CreatePlayQueueType } from "@lukehagar/plexjs/models/operations"; let value: CreatePlayQueueType = CreatePlayQueueType.Video; ``` diff --git a/docs/sdk/models/operations/createsubscriptionglobals.md b/docs/models/operations/createsubscriptionglobals.md similarity index 96% rename from docs/sdk/models/operations/createsubscriptionglobals.md rename to docs/models/operations/createsubscriptionglobals.md index aae9d069..6a93c537 100644 --- a/docs/sdk/models/operations/createsubscriptionglobals.md +++ b/docs/models/operations/createsubscriptionglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { CreateSubscriptionGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { CreateSubscriptionGlobals } from "@lukehagar/plexjs/models/operations"; let value: CreateSubscriptionGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: CreateSubscriptionGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/createsubscriptionmediacontainer.md b/docs/models/operations/createsubscriptionmediacontainer.md similarity index 97% rename from docs/sdk/models/operations/createsubscriptionmediacontainer.md rename to docs/models/operations/createsubscriptionmediacontainer.md index 79069e7e..110d0db4 100644 --- a/docs/sdk/models/operations/createsubscriptionmediacontainer.md +++ b/docs/models/operations/createsubscriptionmediacontainer.md @@ -8,8 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { CreateSubscriptionMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { CreateSubscriptionMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: CreateSubscriptionMediaContainer = { mediaSubscription: [ @@ -171,7 +170,7 @@ let value: CreateSubscriptionMediaContainer = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -224,4 +223,4 @@ let value: CreateSubscriptionMediaContainer = { | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `mediaSubscription` | [shared.MediaSubscription](../../../sdk/models/shared/mediasubscription.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `mediaSubscription` | [shared.MediaSubscription](../../models/shared/mediasubscription.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/createsubscriptionprefs.md b/docs/models/operations/createsubscriptionprefs.md similarity index 75% rename from docs/sdk/models/operations/createsubscriptionprefs.md rename to docs/models/operations/createsubscriptionprefs.md index 35198cc5..eb1df03d 100644 --- a/docs/sdk/models/operations/createsubscriptionprefs.md +++ b/docs/models/operations/createsubscriptionprefs.md @@ -5,7 +5,7 @@ Subscription preferences. ## Example Usage ```typescript -import { CreateSubscriptionPrefs } from "@lukehagar/plexjs/sdk/models/operations"; +import { CreateSubscriptionPrefs } from "@lukehagar/plexjs/models/operations"; let value: CreateSubscriptionPrefs = {}; ``` diff --git a/docs/sdk/models/operations/createsubscriptionrequest.md b/docs/models/operations/createsubscriptionrequest.md similarity index 97% rename from docs/sdk/models/operations/createsubscriptionrequest.md rename to docs/models/operations/createsubscriptionrequest.md index 6f9f16a4..26d47e39 100644 --- a/docs/sdk/models/operations/createsubscriptionrequest.md +++ b/docs/models/operations/createsubscriptionrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { CreateSubscriptionRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { CreateSubscriptionRequest } from "@lukehagar/plexjs/models/operations"; let value: CreateSubscriptionRequest = { targetLibrarySectionID: 1, @@ -19,7 +19,7 @@ let value: CreateSubscriptionRequest = { | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -33,6 +33,6 @@ let value: CreateSubscriptionRequest = { | `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 | -| `hints` | [operations.Hints](../../../sdk/models/operations/hints.md) | :heavy_minus_sign: | Hints describing what we're looking for. Note: The hint `ratingKey` is required for downloading from a PMS remote. | {
"title": "Family Guy"
} | -| `prefs` | [operations.CreateSubscriptionPrefs](../../../sdk/models/operations/createsubscriptionprefs.md) | :heavy_minus_sign: | Subscription preferences. | {
"minVideoQuality": 720
} | -| `params` | [operations.Params](../../../sdk/models/operations/params.md) | :heavy_minus_sign: | Subscription parameters.
- `mediaProviderID`: Required for downloads to indicate which MP the subscription will download into
- `source`: Required for downloads to indicate the source of the downloaded content.
| {
"mediaProviderID": 1
} | \ No newline at end of file +| `hints` | [operations.Hints](../../models/operations/hints.md) | :heavy_minus_sign: | Hints describing what we're looking for. Note: The hint `ratingKey` is required for downloading from a PMS remote. | {
"title": "Family Guy"
} | +| `prefs` | [operations.CreateSubscriptionPrefs](../../models/operations/createsubscriptionprefs.md) | :heavy_minus_sign: | Subscription preferences. | {
"minVideoQuality": 720
} | +| `params` | [operations.Params](../../models/operations/params.md) | :heavy_minus_sign: | Subscription parameters.
- `mediaProviderID`: Required for downloads to indicate which MP the subscription will download into
- `source`: Required for downloads to indicate the source of the downloaded content.
| {
"mediaProviderID": 1
} | \ No newline at end of file diff --git a/docs/models/operations/createsubscriptionresponse.md b/docs/models/operations/createsubscriptionresponse.md new file mode 100644 index 00000000..8c678c38 --- /dev/null +++ b/docs/models/operations/createsubscriptionresponse.md @@ -0,0 +1,224 @@ +# CreateSubscriptionResponse + +## Example Usage + +```typescript +import { CreateSubscriptionResponse } from "@lukehagar/plexjs/models/operations"; + +let value: CreateSubscriptionResponse = { + headers: {}, + result: { + mediaContainer: { + mediaSubscription: [ + { + mediaGrabOperation: [ + { + metadata: { + title: "", + type: "", + addedAt: 3539, + art: "/library/metadata/58683/art/1703239236", + autotag: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + chapterSource: "media", + childCount: 1, + country: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + director: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + genre: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + grandparentGuid: "plex://show/5d9c081b170e24001f2a7be4", + guid: "plex://movie/5d7768ba96b655001fdc0408", + guids: [ + { + id: + "{\"imdbExample\":{\"summary\":\"IMDB example\",\"value\":\"imdb://tt13015952\"},\"tmdbExample\":{\"summary\":\"TMDB example\",\"value\":\"tmdb://2434012\"},\"tvdbExample\":{\"summary\":\"TVDB example\",\"value\":\"tvdb://7945991\"}}", + }, + ], + key: "", + lastViewedAt: 1556281940, + 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: [ + { + accessible: true, + audioProfile: "lc", + container: "mov", + duration: 150192, + exists: true, + file: + "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", + has64bitOffsets: false, + id: 1, + indexes: "sd", + key: "/library/parts/1/1531779263/file.mov", + optimizedForStreaming: false, + size: 105355654, + stream: [ + { + default: true, + audioChannelLayout: "5.1(side)", + channels: 6, + bitDepth: 10, + doviblCompatID: 1, + doviblPresent: true, + dovielPresent: false, + doviLevel: 6, + doviPresent: true, + doviProfile: 8, + dovirpuPresent: true, + doviVersion: "1.0", + bitrate: 24743, + canAutoSync: false, + chromaLocation: "topleft", + chromaSubsampling: "4:2:0", + codedHeight: 1608, + codedWidth: 3840, + closedCaptions: true, + codec: "hevc", + colorPrimaries: "bt2020", + colorRange: "tv", + colorSpace: "bt2020nc", + colorTrc: "smpte2084", + displayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + extendedDisplayTitle: + "4K DoVi/HDR10 (HEVC Main 10)", + frameRate: 23.976, + hasScalingMatrix: false, + height: 1602, + id: 1002625, + index: 0, + key: "/library/streams/216389", + language: "English", + languageCode: "eng", + languageTag: "en", + format: "srt", + headerCompression: true, + level: 150, + original: true, + profile: "main 10", + refFrames: 1, + samplingRate: 48000, + scanType: "progressive", + embeddedInVideo: "progressive", + selected: true, + forced: true, + hearingImpaired: true, + dub: true, + title: "SDH", + streamIdentifier: 1, + width: 3840, + }, + ], + videoProfile: "main", + }, + ], + videoCodec: "h264", + videoFrameRate: "24p", + videoProfile: "main", + videoResolution: "720", + width: 1280, + }, + ], + originallyAvailableAt: new Date("2022-12-14"), + parentGuid: "plex://show/5d9c081b170e24001f2a7be4", + ratingArray: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + role: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + theme: "/library/metadata/1/theme/1705636920", + thumb: "/library/metadata/58683/thumb/1703239236", + writer: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + }, + }, + ], + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [operations.CreateSubscriptionResponseBody](../../models/operations/createsubscriptionresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/createsubscriptionresponsebody.md b/docs/models/operations/createsubscriptionresponsebody.md similarity index 89% rename from docs/sdk/models/operations/createsubscriptionresponsebody.md rename to docs/models/operations/createsubscriptionresponsebody.md index 9d391cbe..4feb2d46 100644 --- a/docs/sdk/models/operations/createsubscriptionresponsebody.md +++ b/docs/models/operations/createsubscriptionresponsebody.md @@ -5,8 +5,7 @@ OK ## Example Usage ```typescript -import { CreateSubscriptionResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { CreateSubscriptionResponseBody } from "@lukehagar/plexjs/models/operations"; let value: CreateSubscriptionResponseBody = { mediaContainer: { @@ -169,7 +168,7 @@ let value: CreateSubscriptionResponseBody = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -217,6 +216,6 @@ let value: CreateSubscriptionResponseBody = { ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.CreateSubscriptionMediaContainer](../../../sdk/models/operations/createsubscriptionmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.CreateSubscriptionMediaContainer](../../models/operations/createsubscriptionmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletecollectionglobals.md b/docs/models/operations/deletecollectionglobals.md similarity index 96% rename from docs/sdk/models/operations/deletecollectionglobals.md rename to docs/models/operations/deletecollectionglobals.md index 434d850e..9bfd1be2 100644 --- a/docs/sdk/models/operations/deletecollectionglobals.md +++ b/docs/models/operations/deletecollectionglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeleteCollectionGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { DeleteCollectionGlobals } from "@lukehagar/plexjs/models/operations"; let value: DeleteCollectionGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: DeleteCollectionGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/deletecollectionitemglobals.md b/docs/models/operations/deletecollectionitemglobals.md similarity index 96% rename from docs/sdk/models/operations/deletecollectionitemglobals.md rename to docs/models/operations/deletecollectionitemglobals.md index 1963bb54..9c2cc7fd 100644 --- a/docs/sdk/models/operations/deletecollectionitemglobals.md +++ b/docs/models/operations/deletecollectionitemglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeleteCollectionItemGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { DeleteCollectionItemGlobals } from "@lukehagar/plexjs/models/operations"; let value: DeleteCollectionItemGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: DeleteCollectionItemGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/deletecollectionitemrequest.md b/docs/models/operations/deletecollectionitemrequest.md similarity index 97% rename from docs/sdk/models/operations/deletecollectionitemrequest.md rename to docs/models/operations/deletecollectionitemrequest.md index 14cfa554..0932a09e 100644 --- a/docs/sdk/models/operations/deletecollectionitemrequest.md +++ b/docs/models/operations/deletecollectionitemrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeleteCollectionItemRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { DeleteCollectionItemRequest } from "@lukehagar/plexjs/models/operations"; let value: DeleteCollectionItemRequest = { collectionId: 866683, @@ -15,7 +15,7 @@ let value: DeleteCollectionItemRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/deletecollectionrequest.md b/docs/models/operations/deletecollectionrequest.md similarity index 97% rename from docs/sdk/models/operations/deletecollectionrequest.md rename to docs/models/operations/deletecollectionrequest.md index 0206f983..08004571 100644 --- a/docs/sdk/models/operations/deletecollectionrequest.md +++ b/docs/models/operations/deletecollectionrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeleteCollectionRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { DeleteCollectionRequest } from "@lukehagar/plexjs/models/operations"; let value: DeleteCollectionRequest = { sectionId: 515599, @@ -15,7 +15,7 @@ let value: DeleteCollectionRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/deletecustomhubglobals.md b/docs/models/operations/deletecustomhubglobals.md similarity index 96% rename from docs/sdk/models/operations/deletecustomhubglobals.md rename to docs/models/operations/deletecustomhubglobals.md index e227ef85..9b7b1b77 100644 --- a/docs/sdk/models/operations/deletecustomhubglobals.md +++ b/docs/models/operations/deletecustomhubglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeleteCustomHubGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { DeleteCustomHubGlobals } from "@lukehagar/plexjs/models/operations"; let value: DeleteCustomHubGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: DeleteCustomHubGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/deletecustomhubrequest.md b/docs/models/operations/deletecustomhubrequest.md similarity index 97% rename from docs/sdk/models/operations/deletecustomhubrequest.md rename to docs/models/operations/deletecustomhubrequest.md index dccfc9fb..85cf77ed 100644 --- a/docs/sdk/models/operations/deletecustomhubrequest.md +++ b/docs/models/operations/deletecustomhubrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeleteCustomHubRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { DeleteCustomHubRequest } from "@lukehagar/plexjs/models/operations"; let value: DeleteCustomHubRequest = { sectionId: 809430, @@ -15,7 +15,7 @@ let value: DeleteCustomHubRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/deletedvrglobals.md b/docs/models/operations/deletedvrglobals.md similarity index 97% rename from docs/sdk/models/operations/deletedvrglobals.md rename to docs/models/operations/deletedvrglobals.md index ce441e48..ba8e2fda 100644 --- a/docs/sdk/models/operations/deletedvrglobals.md +++ b/docs/models/operations/deletedvrglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeleteDVRGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { DeleteDVRGlobals } from "@lukehagar/plexjs/models/operations"; let value: DeleteDVRGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: DeleteDVRGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/deletedvrrequest.md b/docs/models/operations/deletedvrrequest.md similarity index 97% rename from docs/sdk/models/operations/deletedvrrequest.md rename to docs/models/operations/deletedvrrequest.md index 42989b17..fd0ece3b 100644 --- a/docs/sdk/models/operations/deletedvrrequest.md +++ b/docs/models/operations/deletedvrrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeleteDVRRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { DeleteDVRRequest } from "@lukehagar/plexjs/models/operations"; let value: DeleteDVRRequest = { dvrId: 625328, @@ -14,7 +14,7 @@ let value: DeleteDVRRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/deletehistoryglobals.md b/docs/models/operations/deletehistoryglobals.md similarity index 96% rename from docs/sdk/models/operations/deletehistoryglobals.md rename to docs/models/operations/deletehistoryglobals.md index c3add360..3c096fd8 100644 --- a/docs/sdk/models/operations/deletehistoryglobals.md +++ b/docs/models/operations/deletehistoryglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeleteHistoryGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { DeleteHistoryGlobals } from "@lukehagar/plexjs/models/operations"; let value: DeleteHistoryGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: DeleteHistoryGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/deletehistoryrequest.md b/docs/models/operations/deletehistoryrequest.md similarity index 96% rename from docs/sdk/models/operations/deletehistoryrequest.md rename to docs/models/operations/deletehistoryrequest.md index d16d96df..7687a1de 100644 --- a/docs/sdk/models/operations/deletehistoryrequest.md +++ b/docs/models/operations/deletehistoryrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeleteHistoryRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { DeleteHistoryRequest } from "@lukehagar/plexjs/models/operations"; let value: DeleteHistoryRequest = { historyId: 313730, @@ -14,7 +14,7 @@ let value: DeleteHistoryRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/deletehistoryresponse.md b/docs/models/operations/deletehistoryresponse.md new file mode 100644 index 00000000..92f9d08f --- /dev/null +++ b/docs/models/operations/deletehistoryresponse.md @@ -0,0 +1,24 @@ +# DeleteHistoryResponse + +## Example Usage + +```typescript +import { DeleteHistoryResponse } from "@lukehagar/plexjs/models/operations"; + +let value: DeleteHistoryResponse = { + headers: { + "key": [], + "key1": [ + "", + ], + }, + result: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [shared.MediaContainer](../../models/shared/mediacontainer.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/deleteindexesglobals.md b/docs/models/operations/deleteindexesglobals.md similarity index 96% rename from docs/sdk/models/operations/deleteindexesglobals.md rename to docs/models/operations/deleteindexesglobals.md index 6e9d25aa..4fe1b786 100644 --- a/docs/sdk/models/operations/deleteindexesglobals.md +++ b/docs/models/operations/deleteindexesglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeleteIndexesGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { DeleteIndexesGlobals } from "@lukehagar/plexjs/models/operations"; let value: DeleteIndexesGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: DeleteIndexesGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/deleteindexesrequest.md b/docs/models/operations/deleteindexesrequest.md similarity index 96% rename from docs/sdk/models/operations/deleteindexesrequest.md rename to docs/models/operations/deleteindexesrequest.md index 969a885d..221cb8d5 100644 --- a/docs/sdk/models/operations/deleteindexesrequest.md +++ b/docs/models/operations/deleteindexesrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeleteIndexesRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { DeleteIndexesRequest } from "@lukehagar/plexjs/models/operations"; let value: DeleteIndexesRequest = { sectionId: 895219, @@ -14,7 +14,7 @@ let value: DeleteIndexesRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/deleteintrosglobals.md b/docs/models/operations/deleteintrosglobals.md similarity index 96% rename from docs/sdk/models/operations/deleteintrosglobals.md rename to docs/models/operations/deleteintrosglobals.md index 08d27e7f..8f1d342c 100644 --- a/docs/sdk/models/operations/deleteintrosglobals.md +++ b/docs/models/operations/deleteintrosglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeleteIntrosGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { DeleteIntrosGlobals } from "@lukehagar/plexjs/models/operations"; let value: DeleteIntrosGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: DeleteIntrosGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/deleteintrosrequest.md b/docs/models/operations/deleteintrosrequest.md similarity index 97% rename from docs/sdk/models/operations/deleteintrosrequest.md rename to docs/models/operations/deleteintrosrequest.md index 27dbe587..1f3b637e 100644 --- a/docs/sdk/models/operations/deleteintrosrequest.md +++ b/docs/models/operations/deleteintrosrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeleteIntrosRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { DeleteIntrosRequest } from "@lukehagar/plexjs/models/operations"; let value: DeleteIntrosRequest = { sectionId: 509478, @@ -14,7 +14,7 @@ let value: DeleteIntrosRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/deletelibrarysectionglobals.md b/docs/models/operations/deletelibrarysectionglobals.md similarity index 96% rename from docs/sdk/models/operations/deletelibrarysectionglobals.md rename to docs/models/operations/deletelibrarysectionglobals.md index 4c63f389..09b407e8 100644 --- a/docs/sdk/models/operations/deletelibrarysectionglobals.md +++ b/docs/models/operations/deletelibrarysectionglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeleteLibrarySectionGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { DeleteLibrarySectionGlobals } from "@lukehagar/plexjs/models/operations"; let value: DeleteLibrarySectionGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: DeleteLibrarySectionGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/deletelibrarysectionrequest.md b/docs/models/operations/deletelibrarysectionrequest.md similarity index 97% rename from docs/sdk/models/operations/deletelibrarysectionrequest.md rename to docs/models/operations/deletelibrarysectionrequest.md index afd8d61c..30960a43 100644 --- a/docs/sdk/models/operations/deletelibrarysectionrequest.md +++ b/docs/models/operations/deletelibrarysectionrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { DeleteLibrarySectionRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { DeleteLibrarySectionRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: DeleteLibrarySectionRequest = { sectionId: "", @@ -16,7 +16,7 @@ let value: DeleteLibrarySectionRequest = { | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -28,4 +28,4 @@ let value: DeleteLibrarySectionRequest = { | `deviceName` | *string* | :heavy_minus_sign: | 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 +| `async` | [shared.BoolInt](../../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/models/operations/deletelineupdvr.md b/docs/models/operations/deletelineupdvr.md new file mode 100644 index 00000000..55b2c6c3 --- /dev/null +++ b/docs/models/operations/deletelineupdvr.md @@ -0,0 +1,19 @@ +# DeleteLineupDVR + +## Example Usage + +```typescript +import { DeleteLineupDVR } from "@lukehagar/plexjs/models/operations"; + +let value: DeleteLineupDVR = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | +| `device` | [shared.Device](../../models/shared/device.md)[] | :heavy_minus_sign: | N/A | +| `key` | *string* | :heavy_minus_sign: | N/A | +| `language` | *string* | :heavy_minus_sign: | N/A | +| `lineup` | *string* | :heavy_minus_sign: | N/A | +| `uuid` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletelineupglobals.md b/docs/models/operations/deletelineupglobals.md similarity index 96% rename from docs/sdk/models/operations/deletelineupglobals.md rename to docs/models/operations/deletelineupglobals.md index 508784b9..d8680182 100644 --- a/docs/sdk/models/operations/deletelineupglobals.md +++ b/docs/models/operations/deletelineupglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeleteLineupGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { DeleteLineupGlobals } from "@lukehagar/plexjs/models/operations"; let value: DeleteLineupGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: DeleteLineupGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/deletelineupmediacontainer.md b/docs/models/operations/deletelineupmediacontainer.md new file mode 100644 index 00000000..a749701c --- /dev/null +++ b/docs/models/operations/deletelineupmediacontainer.md @@ -0,0 +1,16 @@ +# DeleteLineupMediaContainer + +## Example Usage + +```typescript +import { DeleteLineupMediaContainer } from "@lukehagar/plexjs/models/operations"; + +let value: DeleteLineupMediaContainer = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.DeleteLineupMediaContainerMediaContainer](../../models/operations/deletelineupmediacontainermediacontainer.md) | :heavy_minus_sign: | N/A | +| `dvr` | [operations.DeleteLineupDVR](../../models/operations/deletelineupdvr.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletelineupmediacontainermediacontainer.md b/docs/models/operations/deletelineupmediacontainermediacontainer.md similarity index 99% rename from docs/sdk/models/operations/deletelineupmediacontainermediacontainer.md rename to docs/models/operations/deletelineupmediacontainermediacontainer.md index 1ef8566e..bba8935e 100644 --- a/docs/sdk/models/operations/deletelineupmediacontainermediacontainer.md +++ b/docs/models/operations/deletelineupmediacontainermediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { DeleteLineupMediaContainerMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { DeleteLineupMediaContainerMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: DeleteLineupMediaContainerMediaContainer = {}; ``` diff --git a/docs/sdk/models/operations/deletelineuprequest.md b/docs/models/operations/deletelineuprequest.md similarity index 97% rename from docs/sdk/models/operations/deletelineuprequest.md rename to docs/models/operations/deletelineuprequest.md index 8320f2ac..b08a879e 100644 --- a/docs/sdk/models/operations/deletelineuprequest.md +++ b/docs/models/operations/deletelineuprequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeleteLineupRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { DeleteLineupRequest } from "@lukehagar/plexjs/models/operations"; let value: DeleteLineupRequest = { dvrId: 45733, @@ -15,7 +15,7 @@ let value: DeleteLineupRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/deletelineupresponse.md b/docs/models/operations/deletelineupresponse.md new file mode 100644 index 00000000..06ba216e --- /dev/null +++ b/docs/models/operations/deletelineupresponse.md @@ -0,0 +1,19 @@ +# DeleteLineupResponse + +## Example Usage + +```typescript +import { DeleteLineupResponse } from "@lukehagar/plexjs/models/operations"; + +let value: DeleteLineupResponse = { + headers: {}, + result: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [operations.DeleteLineupResponseBody](../../models/operations/deletelineupresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/deletelineupresponsebody.md b/docs/models/operations/deletelineupresponsebody.md new file mode 100644 index 00000000..4e57db4b --- /dev/null +++ b/docs/models/operations/deletelineupresponsebody.md @@ -0,0 +1,17 @@ +# DeleteLineupResponseBody + +OK + +## Example Usage + +```typescript +import { DeleteLineupResponseBody } from "@lukehagar/plexjs/models/operations"; + +let value: DeleteLineupResponseBody = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.DeleteLineupMediaContainer](../../models/operations/deletelineupmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletemarkerglobals.md b/docs/models/operations/deletemarkerglobals.md similarity index 96% rename from docs/sdk/models/operations/deletemarkerglobals.md rename to docs/models/operations/deletemarkerglobals.md index 4acb0406..105d2f93 100644 --- a/docs/sdk/models/operations/deletemarkerglobals.md +++ b/docs/models/operations/deletemarkerglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeleteMarkerGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { DeleteMarkerGlobals } from "@lukehagar/plexjs/models/operations"; let value: DeleteMarkerGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: DeleteMarkerGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/deletemarkerrequest.md b/docs/models/operations/deletemarkerrequest.md similarity index 97% rename from docs/sdk/models/operations/deletemarkerrequest.md rename to docs/models/operations/deletemarkerrequest.md index e4976074..fe1eae9e 100644 --- a/docs/sdk/models/operations/deletemarkerrequest.md +++ b/docs/models/operations/deletemarkerrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeleteMarkerRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { DeleteMarkerRequest } from "@lukehagar/plexjs/models/operations"; let value: DeleteMarkerRequest = { ids: "", @@ -15,7 +15,7 @@ let value: DeleteMarkerRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/deletemediaitemglobals.md b/docs/models/operations/deletemediaitemglobals.md similarity index 96% rename from docs/sdk/models/operations/deletemediaitemglobals.md rename to docs/models/operations/deletemediaitemglobals.md index 4cb661e8..a66483ba 100644 --- a/docs/sdk/models/operations/deletemediaitemglobals.md +++ b/docs/models/operations/deletemediaitemglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeleteMediaItemGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { DeleteMediaItemGlobals } from "@lukehagar/plexjs/models/operations"; let value: DeleteMediaItemGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: DeleteMediaItemGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/deletemediaitemrequest.md b/docs/models/operations/deletemediaitemrequest.md similarity index 95% rename from docs/sdk/models/operations/deletemediaitemrequest.md rename to docs/models/operations/deletemediaitemrequest.md index 130c1513..bdfaad3e 100644 --- a/docs/sdk/models/operations/deletemediaitemrequest.md +++ b/docs/models/operations/deletemediaitemrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { DeleteMediaItemRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { DeleteMediaItemRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: DeleteMediaItemRequest = { ids: "", @@ -17,7 +17,7 @@ let value: DeleteMediaItemRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -30,4 +30,4 @@ let value: DeleteMediaItemRequest = { | `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 +| `proxy` | [shared.BoolInt](../../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/models/operations/deletemediaproviderglobals.md similarity index 96% rename from docs/sdk/models/operations/deletemediaproviderglobals.md rename to docs/models/operations/deletemediaproviderglobals.md index 5fe5ae19..5cb0cd90 100644 --- a/docs/sdk/models/operations/deletemediaproviderglobals.md +++ b/docs/models/operations/deletemediaproviderglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeleteMediaProviderGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { DeleteMediaProviderGlobals } from "@lukehagar/plexjs/models/operations"; let value: DeleteMediaProviderGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: DeleteMediaProviderGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/deletemediaproviderrequest.md b/docs/models/operations/deletemediaproviderrequest.md similarity index 96% rename from docs/sdk/models/operations/deletemediaproviderrequest.md rename to docs/models/operations/deletemediaproviderrequest.md index 461e0644..887e6204 100644 --- a/docs/sdk/models/operations/deletemediaproviderrequest.md +++ b/docs/models/operations/deletemediaproviderrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeleteMediaProviderRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { DeleteMediaProviderRequest } from "@lukehagar/plexjs/models/operations"; let value: DeleteMediaProviderRequest = { provider: "", @@ -14,7 +14,7 @@ let value: DeleteMediaProviderRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/deletemetadataitemglobals.md b/docs/models/operations/deletemetadataitemglobals.md similarity index 96% rename from docs/sdk/models/operations/deletemetadataitemglobals.md rename to docs/models/operations/deletemetadataitemglobals.md index 178cb164..58a4e992 100644 --- a/docs/sdk/models/operations/deletemetadataitemglobals.md +++ b/docs/models/operations/deletemetadataitemglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeleteMetadataItemGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { DeleteMetadataItemGlobals } from "@lukehagar/plexjs/models/operations"; let value: DeleteMetadataItemGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: DeleteMetadataItemGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/deletemetadataitemrequest.md b/docs/models/operations/deletemetadataitemrequest.md similarity index 94% rename from docs/sdk/models/operations/deletemetadataitemrequest.md rename to docs/models/operations/deletemetadataitemrequest.md index 593582cf..c482de5f 100644 --- a/docs/sdk/models/operations/deletemetadataitemrequest.md +++ b/docs/models/operations/deletemetadataitemrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { DeleteMetadataItemRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { DeleteMetadataItemRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: DeleteMetadataItemRequest = { ids: "", @@ -16,7 +16,7 @@ let value: DeleteMetadataItemRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -28,4 +28,4 @@ let value: DeleteMetadataItemRequest = { | `deviceName` | *string* | :heavy_minus_sign: | 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 +| `proxy` | [shared.BoolInt](../../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/models/operations/deleteplaylistglobals.md similarity index 96% rename from docs/sdk/models/operations/deleteplaylistglobals.md rename to docs/models/operations/deleteplaylistglobals.md index 82f9d5c8..8fc677bf 100644 --- a/docs/sdk/models/operations/deleteplaylistglobals.md +++ b/docs/models/operations/deleteplaylistglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeletePlaylistGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { DeletePlaylistGlobals } from "@lukehagar/plexjs/models/operations"; let value: DeletePlaylistGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: DeletePlaylistGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/deleteplaylistitemglobals.md b/docs/models/operations/deleteplaylistitemglobals.md similarity index 96% rename from docs/sdk/models/operations/deleteplaylistitemglobals.md rename to docs/models/operations/deleteplaylistitemglobals.md index 9cb9f4bd..df7865ad 100644 --- a/docs/sdk/models/operations/deleteplaylistitemglobals.md +++ b/docs/models/operations/deleteplaylistitemglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeletePlaylistItemGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { DeletePlaylistItemGlobals } from "@lukehagar/plexjs/models/operations"; let value: DeletePlaylistItemGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: DeletePlaylistItemGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/deleteplaylistitemrequest.md b/docs/models/operations/deleteplaylistitemrequest.md similarity index 97% rename from docs/sdk/models/operations/deleteplaylistitemrequest.md rename to docs/models/operations/deleteplaylistitemrequest.md index f1375aae..3b6c14e7 100644 --- a/docs/sdk/models/operations/deleteplaylistitemrequest.md +++ b/docs/models/operations/deleteplaylistitemrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeletePlaylistItemRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { DeletePlaylistItemRequest } from "@lukehagar/plexjs/models/operations"; let value: DeletePlaylistItemRequest = { playlistId: 694915, @@ -15,7 +15,7 @@ let value: DeletePlaylistItemRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/deleteplaylistrequest.md b/docs/models/operations/deleteplaylistrequest.md similarity index 96% rename from docs/sdk/models/operations/deleteplaylistrequest.md rename to docs/models/operations/deleteplaylistrequest.md index 81a77605..dd3d4314 100644 --- a/docs/sdk/models/operations/deleteplaylistrequest.md +++ b/docs/models/operations/deleteplaylistrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeletePlaylistRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { DeletePlaylistRequest } from "@lukehagar/plexjs/models/operations"; let value: DeletePlaylistRequest = { playlistId: 584032, @@ -14,7 +14,7 @@ let value: DeletePlaylistRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/deleteplayqueueitemglobals.md b/docs/models/operations/deleteplayqueueitemglobals.md similarity index 96% rename from docs/sdk/models/operations/deleteplayqueueitemglobals.md rename to docs/models/operations/deleteplayqueueitemglobals.md index 7f8faa3d..3586b621 100644 --- a/docs/sdk/models/operations/deleteplayqueueitemglobals.md +++ b/docs/models/operations/deleteplayqueueitemglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeletePlayQueueItemGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { DeletePlayQueueItemGlobals } from "@lukehagar/plexjs/models/operations"; let value: DeletePlayQueueItemGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: DeletePlayQueueItemGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/deleteplayqueueitemrequest.md b/docs/models/operations/deleteplayqueueitemrequest.md similarity index 97% rename from docs/sdk/models/operations/deleteplayqueueitemrequest.md rename to docs/models/operations/deleteplayqueueitemrequest.md index 64416ea7..677b4b19 100644 --- a/docs/sdk/models/operations/deleteplayqueueitemrequest.md +++ b/docs/models/operations/deleteplayqueueitemrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeletePlayQueueItemRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { DeletePlayQueueItemRequest } from "@lukehagar/plexjs/models/operations"; let value: DeletePlayQueueItemRequest = { playQueueId: 77655, @@ -15,7 +15,7 @@ let value: DeletePlayQueueItemRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/deletestreamglobals.md b/docs/models/operations/deletestreamglobals.md similarity index 96% rename from docs/sdk/models/operations/deletestreamglobals.md rename to docs/models/operations/deletestreamglobals.md index 51d732fa..396b7430 100644 --- a/docs/sdk/models/operations/deletestreamglobals.md +++ b/docs/models/operations/deletestreamglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeleteStreamGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { DeleteStreamGlobals } from "@lukehagar/plexjs/models/operations"; let value: DeleteStreamGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: DeleteStreamGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/deletestreamrequest.md b/docs/models/operations/deletestreamrequest.md similarity index 96% rename from docs/sdk/models/operations/deletestreamrequest.md rename to docs/models/operations/deletestreamrequest.md index 9b8fce22..f3a74b26 100644 --- a/docs/sdk/models/operations/deletestreamrequest.md +++ b/docs/models/operations/deletestreamrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeleteStreamRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { DeleteStreamRequest } from "@lukehagar/plexjs/models/operations"; let value: DeleteStreamRequest = { streamId: 323764, @@ -15,7 +15,7 @@ let value: DeleteStreamRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/deletesubscriptionglobals.md b/docs/models/operations/deletesubscriptionglobals.md similarity index 96% rename from docs/sdk/models/operations/deletesubscriptionglobals.md rename to docs/models/operations/deletesubscriptionglobals.md index 239da887..822d2f00 100644 --- a/docs/sdk/models/operations/deletesubscriptionglobals.md +++ b/docs/models/operations/deletesubscriptionglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeleteSubscriptionGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { DeleteSubscriptionGlobals } from "@lukehagar/plexjs/models/operations"; let value: DeleteSubscriptionGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: DeleteSubscriptionGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/deletesubscriptionrequest.md b/docs/models/operations/deletesubscriptionrequest.md similarity index 96% rename from docs/sdk/models/operations/deletesubscriptionrequest.md rename to docs/models/operations/deletesubscriptionrequest.md index 98117bcb..a7df97de 100644 --- a/docs/sdk/models/operations/deletesubscriptionrequest.md +++ b/docs/models/operations/deletesubscriptionrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeleteSubscriptionRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { DeleteSubscriptionRequest } from "@lukehagar/plexjs/models/operations"; let value: DeleteSubscriptionRequest = { subscriptionId: 164333, @@ -14,7 +14,7 @@ let value: DeleteSubscriptionRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/detectadsglobals.md b/docs/models/operations/detectadsglobals.md similarity index 97% rename from docs/sdk/models/operations/detectadsglobals.md rename to docs/models/operations/detectadsglobals.md index c6486ff2..b4a2095e 100644 --- a/docs/sdk/models/operations/detectadsglobals.md +++ b/docs/models/operations/detectadsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DetectAdsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { DetectAdsGlobals } from "@lukehagar/plexjs/models/operations"; let value: DetectAdsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: DetectAdsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/detectadsrequest.md b/docs/models/operations/detectadsrequest.md similarity index 97% rename from docs/sdk/models/operations/detectadsrequest.md rename to docs/models/operations/detectadsrequest.md index e3ae620b..9e1b8cea 100644 --- a/docs/sdk/models/operations/detectadsrequest.md +++ b/docs/models/operations/detectadsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DetectAdsRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { DetectAdsRequest } from "@lukehagar/plexjs/models/operations"; let value: DetectAdsRequest = { ids: "", @@ -14,7 +14,7 @@ let value: DetectAdsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/detectcreditsglobals.md b/docs/models/operations/detectcreditsglobals.md similarity index 96% rename from docs/sdk/models/operations/detectcreditsglobals.md rename to docs/models/operations/detectcreditsglobals.md index 98f14371..16efc779 100644 --- a/docs/sdk/models/operations/detectcreditsglobals.md +++ b/docs/models/operations/detectcreditsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DetectCreditsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { DetectCreditsGlobals } from "@lukehagar/plexjs/models/operations"; let value: DetectCreditsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: DetectCreditsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/detectcreditsrequest.md b/docs/models/operations/detectcreditsrequest.md similarity index 93% rename from docs/sdk/models/operations/detectcreditsrequest.md rename to docs/models/operations/detectcreditsrequest.md index e58bd528..70ee7b48 100644 --- a/docs/sdk/models/operations/detectcreditsrequest.md +++ b/docs/models/operations/detectcreditsrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { DetectCreditsRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { DetectCreditsRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: DetectCreditsRequest = { ids: "", @@ -17,7 +17,7 @@ let value: DetectCreditsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -29,5 +29,5 @@ let value: DetectCreditsRequest = { | `deviceName` | *string* | :heavy_minus_sign: | 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 +| `force` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | N/A | 1 | +| `manual` | [shared.BoolInt](../../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/models/operations/detectintrosglobals.md similarity index 96% rename from docs/sdk/models/operations/detectintrosglobals.md rename to docs/models/operations/detectintrosglobals.md index d2a1c404..97236848 100644 --- a/docs/sdk/models/operations/detectintrosglobals.md +++ b/docs/models/operations/detectintrosglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DetectIntrosGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { DetectIntrosGlobals } from "@lukehagar/plexjs/models/operations"; let value: DetectIntrosGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: DetectIntrosGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/detectintrosrequest.md b/docs/models/operations/detectintrosrequest.md similarity index 95% rename from docs/sdk/models/operations/detectintrosrequest.md rename to docs/models/operations/detectintrosrequest.md index 098114b2..e6408051 100644 --- a/docs/sdk/models/operations/detectintrosrequest.md +++ b/docs/models/operations/detectintrosrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { DetectIntrosRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { DetectIntrosRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: DetectIntrosRequest = { ids: "", @@ -16,7 +16,7 @@ let value: DetectIntrosRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -28,5 +28,5 @@ let value: DetectIntrosRequest = { | `deviceName` | *string* | :heavy_minus_sign: | 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 | +| `force` | [shared.BoolInt](../../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/models/operations/detectvoiceactivityglobals.md similarity index 96% rename from docs/sdk/models/operations/detectvoiceactivityglobals.md rename to docs/models/operations/detectvoiceactivityglobals.md index b80923fd..19326a58 100644 --- a/docs/sdk/models/operations/detectvoiceactivityglobals.md +++ b/docs/models/operations/detectvoiceactivityglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DetectVoiceActivityGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { DetectVoiceActivityGlobals } from "@lukehagar/plexjs/models/operations"; let value: DetectVoiceActivityGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: DetectVoiceActivityGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/detectvoiceactivityrequest.md b/docs/models/operations/detectvoiceactivityrequest.md similarity index 93% rename from docs/sdk/models/operations/detectvoiceactivityrequest.md rename to docs/models/operations/detectvoiceactivityrequest.md index c0aad4a6..9e1b67ef 100644 --- a/docs/sdk/models/operations/detectvoiceactivityrequest.md +++ b/docs/models/operations/detectvoiceactivityrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { DetectVoiceActivityRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { DetectVoiceActivityRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: DetectVoiceActivityRequest = { ids: "", @@ -17,7 +17,7 @@ let value: DetectVoiceActivityRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -29,5 +29,5 @@ let value: DetectVoiceActivityRequest = { | `deviceName` | *string* | :heavy_minus_sign: | 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 +| `force` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Indicate whether detection should be re-run | 1 | +| `manual` | [shared.BoolInt](../../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/devicechannel.md b/docs/models/operations/devicechannel.md similarity index 97% rename from docs/sdk/models/operations/devicechannel.md rename to docs/models/operations/devicechannel.md index 58750fcc..8a39b1bd 100644 --- a/docs/sdk/models/operations/devicechannel.md +++ b/docs/models/operations/devicechannel.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeviceChannel } from "@lukehagar/plexjs/sdk/models/operations"; +import { DeviceChannel } from "@lukehagar/plexjs/models/operations"; let value: DeviceChannel = {}; ``` diff --git a/docs/sdk/models/operations/editmarkerattributes.md b/docs/models/operations/editmarkerattributes.md similarity index 76% rename from docs/sdk/models/operations/editmarkerattributes.md rename to docs/models/operations/editmarkerattributes.md index a697f953..e84962e8 100644 --- a/docs/sdk/models/operations/editmarkerattributes.md +++ b/docs/models/operations/editmarkerattributes.md @@ -5,7 +5,7 @@ The attributes to assign to this marker ## Example Usage ```typescript -import { EditMarkerAttributes } from "@lukehagar/plexjs/sdk/models/operations"; +import { EditMarkerAttributes } from "@lukehagar/plexjs/models/operations"; let value: EditMarkerAttributes = {}; ``` diff --git a/docs/sdk/models/operations/editmarkerglobals.md b/docs/models/operations/editmarkerglobals.md similarity index 96% rename from docs/sdk/models/operations/editmarkerglobals.md rename to docs/models/operations/editmarkerglobals.md index 0d424819..e9439dd5 100644 --- a/docs/sdk/models/operations/editmarkerglobals.md +++ b/docs/models/operations/editmarkerglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { EditMarkerGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { EditMarkerGlobals } from "@lukehagar/plexjs/models/operations"; let value: EditMarkerGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: EditMarkerGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/editmarkerrequest.md b/docs/models/operations/editmarkerrequest.md new file mode 100644 index 00000000..4cbce4f8 --- /dev/null +++ b/docs/models/operations/editmarkerrequest.md @@ -0,0 +1,37 @@ +# EditMarkerRequest + +## Example Usage + +```typescript +import { EditMarkerRequest } from "@lukehagar/plexjs/models/operations"; + +let value: EditMarkerRequest = { + ids: "", + marker: "", + type: 59357, + startTimeOffset: 421778, + attributes: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | 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 | | +| `startTimeOffset` | *number* | :heavy_check_mark: | The start time of the marker | | +| `endTimeOffset` | *number* | :heavy_minus_sign: | The end time of the marker | | +| `attributes` | [operations.EditMarkerAttributes](../../models/operations/editmarkerattributes.md) | :heavy_minus_sign: | The attributes to assign to this marker | {
"title": "My favorite spot"
} | \ No newline at end of file diff --git a/docs/sdk/models/operations/editmetadataitemargs.md b/docs/models/operations/editmetadataitemargs.md similarity index 76% rename from docs/sdk/models/operations/editmetadataitemargs.md rename to docs/models/operations/editmetadataitemargs.md index 38a960f7..aa5f8233 100644 --- a/docs/sdk/models/operations/editmetadataitemargs.md +++ b/docs/models/operations/editmetadataitemargs.md @@ -5,7 +5,7 @@ The new values for the metadata item ## Example Usage ```typescript -import { EditMetadataItemArgs } from "@lukehagar/plexjs/sdk/models/operations"; +import { EditMetadataItemArgs } from "@lukehagar/plexjs/models/operations"; let value: EditMetadataItemArgs = {}; ``` diff --git a/docs/sdk/models/operations/editmetadataitemglobals.md b/docs/models/operations/editmetadataitemglobals.md similarity index 96% rename from docs/sdk/models/operations/editmetadataitemglobals.md rename to docs/models/operations/editmetadataitemglobals.md index 222f254c..1e0edb01 100644 --- a/docs/sdk/models/operations/editmetadataitemglobals.md +++ b/docs/models/operations/editmetadataitemglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { EditMetadataItemGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { EditMetadataItemGlobals } from "@lukehagar/plexjs/models/operations"; let value: EditMetadataItemGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: EditMetadataItemGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/editmetadataitemrequest.md b/docs/models/operations/editmetadataitemrequest.md new file mode 100644 index 00000000..d3206628 --- /dev/null +++ b/docs/models/operations/editmetadataitemrequest.md @@ -0,0 +1,32 @@ +# EditMetadataItemRequest + +## Example Usage + +```typescript +import { EditMetadataItemRequest } from "@lukehagar/plexjs/models/operations"; + +let value: EditMetadataItemRequest = { + ids: [ + "", + "", + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | 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](../../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/models/operations/editsectionglobals.md similarity index 96% rename from docs/sdk/models/operations/editsectionglobals.md rename to docs/models/operations/editsectionglobals.md index b226997d..7f281c44 100644 --- a/docs/sdk/models/operations/editsectionglobals.md +++ b/docs/models/operations/editsectionglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { EditSectionGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { EditSectionGlobals } from "@lukehagar/plexjs/models/operations"; let value: EditSectionGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: EditSectionGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/editsectionprefs.md b/docs/models/operations/editsectionprefs.md similarity index 76% rename from docs/sdk/models/operations/editsectionprefs.md rename to docs/models/operations/editsectionprefs.md index 75a2e882..02a7fd70 100644 --- a/docs/sdk/models/operations/editsectionprefs.md +++ b/docs/models/operations/editsectionprefs.md @@ -5,7 +5,7 @@ The preferences for this section ## Example Usage ```typescript -import { EditSectionPrefs } from "@lukehagar/plexjs/sdk/models/operations"; +import { EditSectionPrefs } from "@lukehagar/plexjs/models/operations"; let value: EditSectionPrefs = {}; ``` diff --git a/docs/models/operations/editsectionrequest.md b/docs/models/operations/editsectionrequest.md new file mode 100644 index 00000000..a0ce89be --- /dev/null +++ b/docs/models/operations/editsectionrequest.md @@ -0,0 +1,41 @@ +# EditSectionRequest + +## Example Usage + +```typescript +import { EditSectionRequest } from "@lukehagar/plexjs/models/operations"; + +let value: EditSectionRequest = { + sectionId: "", + agent: "", + locations: [ + "O:\fatboy\\Media\\Ripped\\Music", + "O:\fatboy\\Media\\My Music", + ], + prefs: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | 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 | | +| `agent` | *string* | :heavy_check_mark: | The agent this section should use for metadata | | +| `metadataAgentProviderGroupId` | *string* | :heavy_minus_sign: | The agent group id for this section | | +| `language` | *string* | :heavy_minus_sign: | The language of this section | | +| `locations` | *string*[] | :heavy_minus_sign: | The locations on disk to add to this section | [
"O:\\fatboy\\Media\\Ripped\\Music",
"O:\\fatboy\\Media\\My Music"
] | +| `prefs` | [operations.EditSectionPrefs](../../models/operations/editsectionprefs.md) | :heavy_minus_sign: | The preferences for this section | {
"collectionMode": 2,
"hidden": 0
} | \ No newline at end of file diff --git a/docs/sdk/models/operations/editsubscriptionpreferencesglobals.md b/docs/models/operations/editsubscriptionpreferencesglobals.md similarity index 98% rename from docs/sdk/models/operations/editsubscriptionpreferencesglobals.md rename to docs/models/operations/editsubscriptionpreferencesglobals.md index 059e2393..44a0e2bb 100644 --- a/docs/sdk/models/operations/editsubscriptionpreferencesglobals.md +++ b/docs/models/operations/editsubscriptionpreferencesglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { EditSubscriptionPreferencesGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { EditSubscriptionPreferencesGlobals } from "@lukehagar/plexjs/models/operations"; let value: EditSubscriptionPreferencesGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: EditSubscriptionPreferencesGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/editsubscriptionpreferencesprefs.md b/docs/models/operations/editsubscriptionpreferencesprefs.md similarity index 91% rename from docs/sdk/models/operations/editsubscriptionpreferencesprefs.md rename to docs/models/operations/editsubscriptionpreferencesprefs.md index cdf9c7e4..34e071f0 100644 --- a/docs/sdk/models/operations/editsubscriptionpreferencesprefs.md +++ b/docs/models/operations/editsubscriptionpreferencesprefs.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { EditSubscriptionPreferencesPrefs } from "@lukehagar/plexjs/sdk/models/operations"; +import { EditSubscriptionPreferencesPrefs } from "@lukehagar/plexjs/models/operations"; let value: EditSubscriptionPreferencesPrefs = {}; ``` diff --git a/docs/models/operations/editsubscriptionpreferencesrequest.md b/docs/models/operations/editsubscriptionpreferencesrequest.md new file mode 100644 index 00000000..e264d5ee --- /dev/null +++ b/docs/models/operations/editsubscriptionpreferencesrequest.md @@ -0,0 +1,30 @@ +# EditSubscriptionPreferencesRequest + +## Example Usage + +```typescript +import { EditSubscriptionPreferencesRequest } from "@lukehagar/plexjs/models/operations"; + +let value: EditSubscriptionPreferencesRequest = { + subscriptionId: 358377, + prefs: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | 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](../../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/models/operations/emptytrashglobals.md similarity index 96% rename from docs/sdk/models/operations/emptytrashglobals.md rename to docs/models/operations/emptytrashglobals.md index 1726c471..ea2a7023 100644 --- a/docs/sdk/models/operations/emptytrashglobals.md +++ b/docs/models/operations/emptytrashglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { EmptyTrashGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { EmptyTrashGlobals } from "@lukehagar/plexjs/models/operations"; let value: EmptyTrashGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: EmptyTrashGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/emptytrashrequest.md b/docs/models/operations/emptytrashrequest.md similarity index 97% rename from docs/sdk/models/operations/emptytrashrequest.md rename to docs/models/operations/emptytrashrequest.md index 6409ca2b..4a376c22 100644 --- a/docs/sdk/models/operations/emptytrashrequest.md +++ b/docs/models/operations/emptytrashrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { EmptyTrashRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { EmptyTrashRequest } from "@lukehagar/plexjs/models/operations"; let value: EmptyTrashRequest = { sectionId: 484541, @@ -14,7 +14,7 @@ let value: EmptyTrashRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/enablepapertrailglobals.md b/docs/models/operations/enablepapertrailglobals.md similarity index 96% rename from docs/sdk/models/operations/enablepapertrailglobals.md rename to docs/models/operations/enablepapertrailglobals.md index f8bb6ead..8787a708 100644 --- a/docs/sdk/models/operations/enablepapertrailglobals.md +++ b/docs/models/operations/enablepapertrailglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { EnablePapertrailGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { EnablePapertrailGlobals } from "@lukehagar/plexjs/models/operations"; let value: EnablePapertrailGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: EnablePapertrailGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/enablepapertrailrequest.md b/docs/models/operations/enablepapertrailrequest.md similarity index 96% rename from docs/sdk/models/operations/enablepapertrailrequest.md rename to docs/models/operations/enablepapertrailrequest.md index d1835793..4fb7a3ef 100644 --- a/docs/sdk/models/operations/enablepapertrailrequest.md +++ b/docs/models/operations/enablepapertrailrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { EnablePapertrailRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { EnablePapertrailRequest } from "@lukehagar/plexjs/models/operations"; let value: EnablePapertrailRequest = {}; ``` @@ -12,7 +12,7 @@ let value: EnablePapertrailRequest = {}; | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/extension.md b/docs/models/operations/extension.md similarity index 73% rename from docs/sdk/models/operations/extension.md rename to docs/models/operations/extension.md index 8d62c552..5299b0e1 100644 --- a/docs/sdk/models/operations/extension.md +++ b/docs/models/operations/extension.md @@ -6,7 +6,7 @@ Extension ## Example Usage ```typescript -import { Extension } from "@lukehagar/plexjs/sdk/models/operations"; +import { Extension } from "@lukehagar/plexjs/models/operations"; let value: Extension = Extension.Mpd; ``` diff --git a/docs/models/operations/feature.md b/docs/models/operations/feature.md new file mode 100644 index 00000000..04344f9b --- /dev/null +++ b/docs/models/operations/feature.md @@ -0,0 +1,17 @@ +# Feature + +## Example Usage + +```typescript +import { Feature } from "@lukehagar/plexjs/models/operations"; + +let value: Feature = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `directory` | [shared.Directory](../../models/shared/directory.md)[] | :heavy_minus_sign: | N/A | +| `key` | *string* | :heavy_minus_sign: | N/A | +| `type` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/flavor.md b/docs/models/operations/flavor.md new file mode 100644 index 00000000..eba33f62 --- /dev/null +++ b/docs/models/operations/flavor.md @@ -0,0 +1,25 @@ +# Flavor + +- `0`: The country is divided into regions, and following the key will lead to a list of regions. +- `1`: The county is divided by postal codes, and an example code is returned in `example`. +- `2`: The country has a single postal code, returned in `example`. + + +## Example Usage + +```typescript +import { Flavor } from "@lukehagar/plexjs/models/operations"; + +let value: Flavor = Flavor.Two; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Zero` | 0 | +| `One` | 1 | +| `Two` | 2 | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/sdk/models/operations/format.md b/docs/models/operations/format.md similarity index 79% rename from docs/sdk/models/operations/format.md rename to docs/models/operations/format.md index 9a9fa9f6..33d2c4a2 100644 --- a/docs/sdk/models/operations/format.md +++ b/docs/models/operations/format.md @@ -5,7 +5,7 @@ The output format for the image; defaults to jpg ## Example Usage ```typescript -import { Format } from "@lukehagar/plexjs/sdk/models/operations"; +import { Format } from "@lukehagar/plexjs/models/operations"; let value: Format = Format.Jpg; ``` diff --git a/docs/sdk/models/operations/generatethumbsglobals.md b/docs/models/operations/generatethumbsglobals.md similarity index 96% rename from docs/sdk/models/operations/generatethumbsglobals.md rename to docs/models/operations/generatethumbsglobals.md index 5a89a022..c324d472 100644 --- a/docs/sdk/models/operations/generatethumbsglobals.md +++ b/docs/models/operations/generatethumbsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GenerateThumbsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GenerateThumbsGlobals } from "@lukehagar/plexjs/models/operations"; let value: GenerateThumbsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GenerateThumbsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/generatethumbsrequest.md b/docs/models/operations/generatethumbsrequest.md similarity index 94% rename from docs/sdk/models/operations/generatethumbsrequest.md rename to docs/models/operations/generatethumbsrequest.md index b19aef73..c7a5e93b 100644 --- a/docs/sdk/models/operations/generatethumbsrequest.md +++ b/docs/models/operations/generatethumbsrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { GenerateThumbsRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { GenerateThumbsRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: GenerateThumbsRequest = { ids: "", @@ -16,7 +16,7 @@ let value: GenerateThumbsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -28,4 +28,4 @@ let value: GenerateThumbsRequest = { | `deviceName` | *string* | :heavy_minus_sign: | 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 +| `force` | [shared.BoolInt](../../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/models/operations/getalbumsglobals.md similarity index 97% rename from docs/sdk/models/operations/getalbumsglobals.md rename to docs/models/operations/getalbumsglobals.md index 5831aa48..7983de43 100644 --- a/docs/sdk/models/operations/getalbumsglobals.md +++ b/docs/models/operations/getalbumsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetAlbumsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetAlbumsGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetAlbumsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetAlbumsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getalbumsrequest.md b/docs/models/operations/getalbumsrequest.md similarity index 97% rename from docs/sdk/models/operations/getalbumsrequest.md rename to docs/models/operations/getalbumsrequest.md index bb61f24e..33f83217 100644 --- a/docs/sdk/models/operations/getalbumsrequest.md +++ b/docs/models/operations/getalbumsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetAlbumsRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetAlbumsRequest } from "@lukehagar/plexjs/models/operations"; let value: GetAlbumsRequest = { sectionId: 46532, @@ -14,7 +14,7 @@ let value: GetAlbumsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getallhubsglobals.md b/docs/models/operations/getallhubsglobals.md similarity index 96% rename from docs/sdk/models/operations/getallhubsglobals.md rename to docs/models/operations/getallhubsglobals.md index 52770061..923ecee4 100644 --- a/docs/sdk/models/operations/getallhubsglobals.md +++ b/docs/models/operations/getallhubsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetAllHubsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetAllHubsGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetAllHubsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetAllHubsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getallhubsmediacontainer.md b/docs/models/operations/getallhubsmediacontainer.md similarity index 97% rename from docs/sdk/models/operations/getallhubsmediacontainer.md rename to docs/models/operations/getallhubsmediacontainer.md index f160ee81..1928b5cd 100644 --- a/docs/sdk/models/operations/getallhubsmediacontainer.md +++ b/docs/models/operations/getallhubsmediacontainer.md @@ -8,8 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { GetAllHubsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { GetAllHubsMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: GetAllHubsMediaContainer = { hub: [ @@ -173,7 +172,7 @@ let value: GetAllHubsMediaContainer = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -228,4 +227,4 @@ let value: GetAllHubsMediaContainer = { | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `hub` | [shared.Hub](../../../sdk/models/shared/hub.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `hub` | [shared.Hub](../../models/shared/hub.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getallhubsrequest.md b/docs/models/operations/getallhubsrequest.md similarity index 96% rename from docs/sdk/models/operations/getallhubsrequest.md rename to docs/models/operations/getallhubsrequest.md index 6a8d1092..1efbf72a 100644 --- a/docs/sdk/models/operations/getallhubsrequest.md +++ b/docs/models/operations/getallhubsrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { GetAllHubsRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { GetAllHubsRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: GetAllHubsRequest = { onlyTransient: BoolInt.True, @@ -15,7 +15,7 @@ let value: GetAllHubsRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -27,5 +27,5 @@ let value: GetAllHubsRequest = { | `deviceName` | *string* | :heavy_minus_sign: | 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 | +| `onlyTransient` | [shared.BoolInt](../../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/models/operations/getallhubsresponse.md b/docs/models/operations/getallhubsresponse.md new file mode 100644 index 00000000..b11401b8 --- /dev/null +++ b/docs/models/operations/getallhubsresponse.md @@ -0,0 +1,228 @@ +# GetAllHubsResponse + +## Example Usage + +```typescript +import { GetAllHubsResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetAllHubsResponse = { + headers: {}, + result: { + mediaContainer: { + hub: [ + { + type: "track", + context: "hub.home.onDeck", + hubIdentifier: "home.onDeck", + key: "/hubs/sections/home/onDeck", + metadata: [ + { + title: "", + type: "", + addedAt: 29550, + art: "/library/metadata/58683/art/1703239236", + autotag: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + chapterSource: "media", + childCount: 1, + country: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + director: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + genre: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + grandparentGuid: "plex://show/5d9c081b170e24001f2a7be4", + guid: "plex://movie/5d7768ba96b655001fdc0408", + guids: [ + { + id: + "{\"imdbExample\":{\"summary\":\"IMDB example\",\"value\":\"imdb://tt13015952\"},\"tmdbExample\":{\"summary\":\"TMDB example\",\"value\":\"tmdb://2434012\"},\"tvdbExample\":{\"summary\":\"TVDB example\",\"value\":\"tvdb://7945991\"}}", + }, + ], + key: "", + lastViewedAt: 1556281940, + 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: [ + { + accessible: true, + audioProfile: "lc", + container: "mov", + duration: 150192, + exists: true, + file: + "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", + has64bitOffsets: false, + id: 1, + indexes: "sd", + key: "/library/parts/1/1531779263/file.mov", + optimizedForStreaming: false, + size: 105355654, + stream: [ + { + default: true, + audioChannelLayout: "5.1(side)", + channels: 6, + bitDepth: 10, + doviblCompatID: 1, + doviblPresent: true, + dovielPresent: false, + doviLevel: 6, + doviPresent: true, + doviProfile: 8, + dovirpuPresent: true, + doviVersion: "1.0", + bitrate: 24743, + canAutoSync: false, + chromaLocation: "topleft", + chromaSubsampling: "4:2:0", + codedHeight: 1608, + codedWidth: 3840, + closedCaptions: true, + codec: "hevc", + colorPrimaries: "bt2020", + colorRange: "tv", + colorSpace: "bt2020nc", + colorTrc: "smpte2084", + displayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + extendedDisplayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + frameRate: 23.976, + hasScalingMatrix: false, + height: 1602, + id: 1002625, + index: 0, + key: "/library/streams/216389", + language: "English", + languageCode: "eng", + languageTag: "en", + format: "srt", + headerCompression: true, + level: 150, + original: true, + profile: "main 10", + refFrames: 1, + samplingRate: 48000, + scanType: "progressive", + embeddedInVideo: "progressive", + selected: true, + forced: true, + hearingImpaired: true, + dub: true, + title: "SDH", + streamIdentifier: 1, + width: 3840, + }, + ], + videoProfile: "main", + }, + ], + videoCodec: "h264", + videoFrameRate: "24p", + videoProfile: "main", + videoResolution: "720", + width: 1280, + }, + ], + originallyAvailableAt: new Date("2022-12-14"), + parentGuid: "plex://show/5d9c081b170e24001f2a7be4", + ratingArray: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + role: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + theme: "/library/metadata/1/theme/1705636920", + thumb: "/library/metadata/58683/thumb/1703239236", + writer: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + }, + ], + size: 1, + subtype: "podcast", + totalSize: 8, + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [operations.GetAllHubsResponseBody](../../models/operations/getallhubsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getallhubsresponsebody.md b/docs/models/operations/getallhubsresponsebody.md similarity index 87% rename from docs/sdk/models/operations/getallhubsresponsebody.md rename to docs/models/operations/getallhubsresponsebody.md index 435bd553..9723ab63 100644 --- a/docs/sdk/models/operations/getallhubsresponsebody.md +++ b/docs/models/operations/getallhubsresponsebody.md @@ -5,8 +5,7 @@ OK ## Example Usage ```typescript -import { GetAllHubsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { GetAllHubsResponseBody } from "@lukehagar/plexjs/models/operations"; let value: GetAllHubsResponseBody = { mediaContainer: { @@ -172,7 +171,7 @@ let value: GetAllHubsResponseBody = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -222,6 +221,6 @@ let value: GetAllHubsResponseBody = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.GetAllHubsMediaContainer](../../../sdk/models/operations/getallhubsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `mediaContainer` | [operations.GetAllHubsMediaContainer](../../models/operations/getallhubsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getallitemleavesglobals.md b/docs/models/operations/getallitemleavesglobals.md similarity index 96% rename from docs/sdk/models/operations/getallitemleavesglobals.md rename to docs/models/operations/getallitemleavesglobals.md index d4c12b9c..fd67b33f 100644 --- a/docs/sdk/models/operations/getallitemleavesglobals.md +++ b/docs/models/operations/getallitemleavesglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetAllItemLeavesGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetAllItemLeavesGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetAllItemLeavesGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetAllItemLeavesGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getallitemleavesrequest.md b/docs/models/operations/getallitemleavesrequest.md similarity index 96% rename from docs/sdk/models/operations/getallitemleavesrequest.md rename to docs/models/operations/getallitemleavesrequest.md index 26a4d638..f54d5862 100644 --- a/docs/sdk/models/operations/getallitemleavesrequest.md +++ b/docs/models/operations/getallitemleavesrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetAllItemLeavesRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetAllItemLeavesRequest } from "@lukehagar/plexjs/models/operations"; let value: GetAllItemLeavesRequest = { ids: "", @@ -14,7 +14,7 @@ let value: GetAllItemLeavesRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/getallitemleavesresponse.md b/docs/models/operations/getallitemleavesresponse.md new file mode 100644 index 00000000..85219b23 --- /dev/null +++ b/docs/models/operations/getallitemleavesresponse.md @@ -0,0 +1,224 @@ +# GetAllItemLeavesResponse + +## Example Usage + +```typescript +import { GetAllItemLeavesResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetAllItemLeavesResponse = { + headers: { + "key": [ + "", + ], + "key1": [ + "", + ], + "key2": [], + }, + result: { + mediaContainer: { + metadata: [ + { + title: "", + type: "", + addedAt: 29550, + art: "/library/metadata/58683/art/1703239236", + autotag: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + chapterSource: "media", + childCount: 1, + country: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + director: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + genre: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + grandparentGuid: "plex://show/5d9c081b170e24001f2a7be4", + guid: "plex://movie/5d7768ba96b655001fdc0408", + guids: [ + { + id: + "{\"imdbExample\":{\"summary\":\"IMDB example\",\"value\":\"imdb://tt13015952\"},\"tmdbExample\":{\"summary\":\"TMDB example\",\"value\":\"tmdb://2434012\"},\"tvdbExample\":{\"summary\":\"TVDB example\",\"value\":\"tvdb://7945991\"}}", + }, + ], + key: "", + lastViewedAt: 1556281940, + 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: [ + { + accessible: true, + audioProfile: "lc", + container: "mov", + duration: 150192, + exists: true, + file: "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", + has64bitOffsets: false, + id: 1, + indexes: "sd", + key: "/library/parts/1/1531779263/file.mov", + optimizedForStreaming: false, + size: 105355654, + stream: [ + { + default: true, + audioChannelLayout: "5.1(side)", + channels: 6, + bitDepth: 10, + doviblCompatID: 1, + doviblPresent: true, + dovielPresent: false, + doviLevel: 6, + doviPresent: true, + doviProfile: 8, + dovirpuPresent: true, + doviVersion: "1.0", + bitrate: 24743, + canAutoSync: false, + chromaLocation: "topleft", + chromaSubsampling: "4:2:0", + codedHeight: 1608, + codedWidth: 3840, + closedCaptions: true, + codec: "hevc", + colorPrimaries: "bt2020", + colorRange: "tv", + colorSpace: "bt2020nc", + colorTrc: "smpte2084", + displayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + extendedDisplayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + frameRate: 23.976, + hasScalingMatrix: false, + height: 1602, + id: 1002625, + index: 0, + key: "/library/streams/216389", + language: "English", + languageCode: "eng", + languageTag: "en", + format: "srt", + headerCompression: true, + level: 150, + original: true, + profile: "main 10", + refFrames: 1, + samplingRate: 48000, + scanType: "progressive", + embeddedInVideo: "progressive", + selected: true, + forced: true, + hearingImpaired: true, + dub: true, + title: "SDH", + streamIdentifier: 1, + width: 3840, + }, + ], + videoProfile: "main", + }, + ], + videoCodec: "h264", + videoFrameRate: "24p", + videoProfile: "main", + videoResolution: "720", + width: 1280, + }, + ], + originallyAvailableAt: new Date("2022-12-14"), + parentGuid: "plex://show/5d9c081b170e24001f2a7be4", + ratingArray: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + role: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + theme: "/library/metadata/1/theme/1705636920", + thumb: "/library/metadata/58683/thumb/1703239236", + writer: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [shared.MediaContainerWithMetadata](../../models/shared/mediacontainerwithmetadata.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getalllanguagesmediacontainer.md b/docs/models/operations/getalllanguagesmediacontainer.md similarity index 96% rename from docs/sdk/models/operations/getalllanguagesmediacontainer.md rename to docs/models/operations/getalllanguagesmediacontainer.md index ba1a9186..af65c386 100644 --- a/docs/sdk/models/operations/getalllanguagesmediacontainer.md +++ b/docs/models/operations/getalllanguagesmediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { GetAllLanguagesMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetAllLanguagesMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: GetAllLanguagesMediaContainer = {}; ``` @@ -21,4 +21,4 @@ let value: GetAllLanguagesMediaContainer = {}; | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `language` | [operations.Language](../../../sdk/models/operations/language.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `language` | [operations.Language](../../models/operations/language.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getalllanguagesresponse.md b/docs/models/operations/getalllanguagesresponse.md new file mode 100644 index 00000000..80980e4f --- /dev/null +++ b/docs/models/operations/getalllanguagesresponse.md @@ -0,0 +1,19 @@ +# GetAllLanguagesResponse + +## Example Usage + +```typescript +import { GetAllLanguagesResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetAllLanguagesResponse = { + headers: {}, + result: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [operations.GetAllLanguagesResponseBody](../../models/operations/getalllanguagesresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getalllanguagesresponsebody.md b/docs/models/operations/getalllanguagesresponsebody.md new file mode 100644 index 00000000..e921a84b --- /dev/null +++ b/docs/models/operations/getalllanguagesresponsebody.md @@ -0,0 +1,17 @@ +# GetAllLanguagesResponseBody + +OK + +## Example Usage + +```typescript +import { GetAllLanguagesResponseBody } from "@lukehagar/plexjs/models/operations"; + +let value: GetAllLanguagesResponseBody = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetAllLanguagesMediaContainer](../../models/operations/getalllanguagesmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getallleavesglobals.md b/docs/models/operations/getallleavesglobals.md similarity index 96% rename from docs/sdk/models/operations/getallleavesglobals.md rename to docs/models/operations/getallleavesglobals.md index 278fb734..c21e229b 100644 --- a/docs/sdk/models/operations/getallleavesglobals.md +++ b/docs/models/operations/getallleavesglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetAllLeavesGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetAllLeavesGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetAllLeavesGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetAllLeavesGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getallleavesrequest.md b/docs/models/operations/getallleavesrequest.md similarity index 97% rename from docs/sdk/models/operations/getallleavesrequest.md rename to docs/models/operations/getallleavesrequest.md index 6458f4eb..ad20214f 100644 --- a/docs/sdk/models/operations/getallleavesrequest.md +++ b/docs/models/operations/getallleavesrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetAllLeavesRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetAllLeavesRequest } from "@lukehagar/plexjs/models/operations"; let value: GetAllLeavesRequest = { sectionId: 897665, @@ -14,7 +14,7 @@ let value: GetAllLeavesRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getallsubscriptionsglobals.md b/docs/models/operations/getallsubscriptionsglobals.md similarity index 96% rename from docs/sdk/models/operations/getallsubscriptionsglobals.md rename to docs/models/operations/getallsubscriptionsglobals.md index 30bbda23..ac0b9f5d 100644 --- a/docs/sdk/models/operations/getallsubscriptionsglobals.md +++ b/docs/models/operations/getallsubscriptionsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetAllSubscriptionsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetAllSubscriptionsGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetAllSubscriptionsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetAllSubscriptionsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getallsubscriptionsrequest.md b/docs/models/operations/getallsubscriptionsrequest.md similarity index 93% rename from docs/sdk/models/operations/getallsubscriptionsrequest.md rename to docs/models/operations/getallsubscriptionsrequest.md index 546b8164..443198e4 100644 --- a/docs/sdk/models/operations/getallsubscriptionsrequest.md +++ b/docs/models/operations/getallsubscriptionsrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { GetAllSubscriptionsRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { GetAllSubscriptionsRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: GetAllSubscriptionsRequest = { includeGrabs: BoolInt.True, @@ -16,7 +16,7 @@ let value: GetAllSubscriptionsRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -27,5 +27,5 @@ let value: GetAllSubscriptionsRequest = { | `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | | `deviceName` | *string* | :heavy_minus_sign: | 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 +| `includeGrabs` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Indicates whether the active grabs should be included as well | 1 | +| `includeStorage` | [shared.BoolInt](../../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/models/operations/getallsubscriptionsresponse.md b/docs/models/operations/getallsubscriptionsresponse.md new file mode 100644 index 00000000..6c71e6f9 --- /dev/null +++ b/docs/models/operations/getallsubscriptionsresponse.md @@ -0,0 +1,230 @@ +# GetAllSubscriptionsResponse + +## Example Usage + +```typescript +import { GetAllSubscriptionsResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetAllSubscriptionsResponse = { + headers: { + "key": [ + "", + "", + "", + ], + }, + result: { + mediaContainer: { + mediaSubscription: [ + { + mediaGrabOperation: [ + { + metadata: { + title: "", + type: "", + addedAt: 3539, + art: "/library/metadata/58683/art/1703239236", + autotag: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + chapterSource: "media", + childCount: 1, + country: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + director: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + genre: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + grandparentGuid: "plex://show/5d9c081b170e24001f2a7be4", + guid: "plex://movie/5d7768ba96b655001fdc0408", + guids: [ + { + id: + "{\"imdbExample\":{\"summary\":\"IMDB example\",\"value\":\"imdb://tt13015952\"},\"tmdbExample\":{\"summary\":\"TMDB example\",\"value\":\"tmdb://2434012\"},\"tvdbExample\":{\"summary\":\"TVDB example\",\"value\":\"tvdb://7945991\"}}", + }, + ], + key: "", + lastViewedAt: 1556281940, + 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: [ + { + accessible: true, + audioProfile: "lc", + container: "mov", + duration: 150192, + exists: true, + file: + "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", + has64bitOffsets: false, + id: 1, + indexes: "sd", + key: "/library/parts/1/1531779263/file.mov", + optimizedForStreaming: false, + size: 105355654, + stream: [ + { + default: true, + audioChannelLayout: "5.1(side)", + channels: 6, + bitDepth: 10, + doviblCompatID: 1, + doviblPresent: true, + dovielPresent: false, + doviLevel: 6, + doviPresent: true, + doviProfile: 8, + dovirpuPresent: true, + doviVersion: "1.0", + bitrate: 24743, + canAutoSync: false, + chromaLocation: "topleft", + chromaSubsampling: "4:2:0", + codedHeight: 1608, + codedWidth: 3840, + closedCaptions: true, + codec: "hevc", + colorPrimaries: "bt2020", + colorRange: "tv", + colorSpace: "bt2020nc", + colorTrc: "smpte2084", + displayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + extendedDisplayTitle: + "4K DoVi/HDR10 (HEVC Main 10)", + frameRate: 23.976, + hasScalingMatrix: false, + height: 1602, + id: 1002625, + index: 0, + key: "/library/streams/216389", + language: "English", + languageCode: "eng", + languageTag: "en", + format: "srt", + headerCompression: true, + level: 150, + original: true, + profile: "main 10", + refFrames: 1, + samplingRate: 48000, + scanType: "progressive", + embeddedInVideo: "progressive", + selected: true, + forced: true, + hearingImpaired: true, + dub: true, + title: "SDH", + streamIdentifier: 1, + width: 3840, + }, + ], + videoProfile: "main", + }, + ], + videoCodec: "h264", + videoFrameRate: "24p", + videoProfile: "main", + videoResolution: "720", + width: 1280, + }, + ], + originallyAvailableAt: new Date("2022-12-14"), + parentGuid: "plex://show/5d9c081b170e24001f2a7be4", + ratingArray: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + role: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + theme: "/library/metadata/1/theme/1705636920", + thumb: "/library/metadata/58683/thumb/1703239236", + writer: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + }, + }, + ], + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [shared.MediaContainerWithSubscription](../../models/shared/mediacontainerwithsubscription.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getartsglobals.md b/docs/models/operations/getartsglobals.md similarity index 97% rename from docs/sdk/models/operations/getartsglobals.md rename to docs/models/operations/getartsglobals.md index daf85609..bf2740c7 100644 --- a/docs/sdk/models/operations/getartsglobals.md +++ b/docs/models/operations/getartsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetArtsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetArtsGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetArtsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetArtsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getartsrequest.md b/docs/models/operations/getartsrequest.md similarity index 97% rename from docs/sdk/models/operations/getartsrequest.md rename to docs/models/operations/getartsrequest.md index e3ac4427..b92b18b9 100644 --- a/docs/sdk/models/operations/getartsrequest.md +++ b/docs/models/operations/getartsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetArtsRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetArtsRequest } from "@lukehagar/plexjs/models/operations"; let value: GetArtsRequest = { sectionId: 741840, @@ -14,7 +14,7 @@ let value: GetArtsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getaugmentationstatusglobals.md b/docs/models/operations/getaugmentationstatusglobals.md similarity index 98% rename from docs/sdk/models/operations/getaugmentationstatusglobals.md rename to docs/models/operations/getaugmentationstatusglobals.md index 68717820..f2beceb5 100644 --- a/docs/sdk/models/operations/getaugmentationstatusglobals.md +++ b/docs/models/operations/getaugmentationstatusglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetAugmentationStatusGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetAugmentationStatusGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetAugmentationStatusGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetAugmentationStatusGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getaugmentationstatusrequest.md b/docs/models/operations/getaugmentationstatusrequest.md similarity index 95% rename from docs/sdk/models/operations/getaugmentationstatusrequest.md rename to docs/models/operations/getaugmentationstatusrequest.md index 765178ec..b1ab24f5 100644 --- a/docs/sdk/models/operations/getaugmentationstatusrequest.md +++ b/docs/models/operations/getaugmentationstatusrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { GetAugmentationStatusRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { GetAugmentationStatusRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: GetAugmentationStatusRequest = { augmentationId: "", @@ -16,7 +16,7 @@ let value: GetAugmentationStatusRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -28,4 +28,4 @@ let value: GetAugmentationStatusRequest = { | `deviceName` | *string* | :heavy_minus_sign: | 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 +| `wait` | [shared.BoolInt](../../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/models/operations/getavailablegrabbersglobals.md similarity index 96% rename from docs/sdk/models/operations/getavailablegrabbersglobals.md rename to docs/models/operations/getavailablegrabbersglobals.md index 0c586bc1..5d7e2707 100644 --- a/docs/sdk/models/operations/getavailablegrabbersglobals.md +++ b/docs/models/operations/getavailablegrabbersglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetAvailableGrabbersGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetAvailableGrabbersGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetAvailableGrabbersGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetAvailableGrabbersGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getavailablegrabbersmediacontainer.md b/docs/models/operations/getavailablegrabbersmediacontainer.md similarity index 96% rename from docs/sdk/models/operations/getavailablegrabbersmediacontainer.md rename to docs/models/operations/getavailablegrabbersmediacontainer.md index e952b556..03e85b46 100644 --- a/docs/sdk/models/operations/getavailablegrabbersmediacontainer.md +++ b/docs/models/operations/getavailablegrabbersmediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { GetAvailableGrabbersMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetAvailableGrabbersMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: GetAvailableGrabbersMediaContainer = {}; ``` @@ -21,4 +21,4 @@ let value: GetAvailableGrabbersMediaContainer = {}; | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `mediaGrabber` | [operations.MediaGrabber](../../../sdk/models/operations/mediagrabber.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `mediaGrabber` | [operations.MediaGrabber](../../models/operations/mediagrabber.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getavailablegrabbersrequest.md b/docs/models/operations/getavailablegrabbersrequest.md similarity index 96% rename from docs/sdk/models/operations/getavailablegrabbersrequest.md rename to docs/models/operations/getavailablegrabbersrequest.md index 4e3b5283..79cdad87 100644 --- a/docs/sdk/models/operations/getavailablegrabbersrequest.md +++ b/docs/models/operations/getavailablegrabbersrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetAvailableGrabbersRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetAvailableGrabbersRequest } from "@lukehagar/plexjs/models/operations"; let value: GetAvailableGrabbersRequest = { protocol: "livetv", @@ -14,7 +14,7 @@ let value: GetAvailableGrabbersRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/getavailablegrabbersresponse.md b/docs/models/operations/getavailablegrabbersresponse.md new file mode 100644 index 00000000..b530baaa --- /dev/null +++ b/docs/models/operations/getavailablegrabbersresponse.md @@ -0,0 +1,24 @@ +# GetAvailableGrabbersResponse + +## Example Usage + +```typescript +import { GetAvailableGrabbersResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetAvailableGrabbersResponse = { + headers: { + "key": [ + "", + "", + ], + }, + result: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [operations.GetAvailableGrabbersResponseBody](../../models/operations/getavailablegrabbersresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getavailablegrabbersresponsebody.md b/docs/models/operations/getavailablegrabbersresponsebody.md similarity index 50% rename from docs/sdk/models/operations/getavailablegrabbersresponsebody.md rename to docs/models/operations/getavailablegrabbersresponsebody.md index 82312e61..804ad7fe 100644 --- a/docs/sdk/models/operations/getavailablegrabbersresponsebody.md +++ b/docs/models/operations/getavailablegrabbersresponsebody.md @@ -5,13 +5,13 @@ OK ## Example Usage ```typescript -import { GetAvailableGrabbersResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetAvailableGrabbersResponseBody } from "@lukehagar/plexjs/models/operations"; let value: GetAvailableGrabbersResponseBody = {}; ``` ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.GetAvailableGrabbersMediaContainer](../../../sdk/models/operations/getavailablegrabbersmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetAvailableGrabbersMediaContainer](../../models/operations/getavailablegrabbersmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getavailablesortsglobals.md b/docs/models/operations/getavailablesortsglobals.md similarity index 96% rename from docs/sdk/models/operations/getavailablesortsglobals.md rename to docs/models/operations/getavailablesortsglobals.md index dd2c8c44..c48366df 100644 --- a/docs/sdk/models/operations/getavailablesortsglobals.md +++ b/docs/models/operations/getavailablesortsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetAvailableSortsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetAvailableSortsGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetAvailableSortsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetAvailableSortsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getavailablesortsmediacontainer.md b/docs/models/operations/getavailablesortsmediacontainer.md similarity index 98% rename from docs/sdk/models/operations/getavailablesortsmediacontainer.md rename to docs/models/operations/getavailablesortsmediacontainer.md index 67d2ebb1..e41a6117 100644 --- a/docs/sdk/models/operations/getavailablesortsmediacontainer.md +++ b/docs/models/operations/getavailablesortsmediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { GetAvailableSortsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetAvailableSortsMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: GetAvailableSortsMediaContainer = {}; ``` @@ -21,4 +21,4 @@ let value: GetAvailableSortsMediaContainer = {}; | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `directory` | [shared.Sort](../../../sdk/models/shared/sort.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `directory` | [shared.Sort](../../models/shared/sort.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getavailablesortsrequest.md b/docs/models/operations/getavailablesortsrequest.md similarity index 96% rename from docs/sdk/models/operations/getavailablesortsrequest.md rename to docs/models/operations/getavailablesortsrequest.md index 3c3aec64..e18ba2c9 100644 --- a/docs/sdk/models/operations/getavailablesortsrequest.md +++ b/docs/models/operations/getavailablesortsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetAvailableSortsRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetAvailableSortsRequest } from "@lukehagar/plexjs/models/operations"; let value: GetAvailableSortsRequest = { sectionId: 155630, @@ -14,7 +14,7 @@ let value: GetAvailableSortsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/getavailablesortsresponse.md b/docs/models/operations/getavailablesortsresponse.md new file mode 100644 index 00000000..3b726341 --- /dev/null +++ b/docs/models/operations/getavailablesortsresponse.md @@ -0,0 +1,17 @@ +# GetAvailableSortsResponse + +OK + +## Example Usage + +```typescript +import { GetAvailableSortsResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetAvailableSortsResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetAvailableSortsMediaContainer](../../models/operations/getavailablesortsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getbackgroundtasksmediacontainer.md b/docs/models/operations/getbackgroundtasksmediacontainer.md similarity index 96% rename from docs/sdk/models/operations/getbackgroundtasksmediacontainer.md rename to docs/models/operations/getbackgroundtasksmediacontainer.md index d1f2b494..ee6c49e4 100644 --- a/docs/sdk/models/operations/getbackgroundtasksmediacontainer.md +++ b/docs/models/operations/getbackgroundtasksmediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { GetBackgroundTasksMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetBackgroundTasksMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: GetBackgroundTasksMediaContainer = {}; ``` @@ -21,4 +21,4 @@ let value: GetBackgroundTasksMediaContainer = {}; | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `transcodeJob` | [operations.TranscodeJob](../../../sdk/models/operations/transcodejob.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `transcodeJob` | [operations.TranscodeJob](../../models/operations/transcodejob.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getbackgroundtasksresponse.md b/docs/models/operations/getbackgroundtasksresponse.md new file mode 100644 index 00000000..d2dab56c --- /dev/null +++ b/docs/models/operations/getbackgroundtasksresponse.md @@ -0,0 +1,17 @@ +# GetBackgroundTasksResponse + +OK + +## Example Usage + +```typescript +import { GetBackgroundTasksResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetBackgroundTasksResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetBackgroundTasksMediaContainer](../../models/operations/getbackgroundtasksmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getbackgroundtaskstype.md b/docs/models/operations/getbackgroundtaskstype.md similarity index 74% rename from docs/sdk/models/operations/getbackgroundtaskstype.md rename to docs/models/operations/getbackgroundtaskstype.md index 975f466d..42a8e98f 100644 --- a/docs/sdk/models/operations/getbackgroundtaskstype.md +++ b/docs/models/operations/getbackgroundtaskstype.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetBackgroundTasksType } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetBackgroundTasksType } from "@lukehagar/plexjs/models/operations"; let value: GetBackgroundTasksType = GetBackgroundTasksType.Transcode; ``` diff --git a/docs/sdk/models/operations/getcategoriesglobals.md b/docs/models/operations/getcategoriesglobals.md similarity index 96% rename from docs/sdk/models/operations/getcategoriesglobals.md rename to docs/models/operations/getcategoriesglobals.md index 32347d6c..818f9888 100644 --- a/docs/sdk/models/operations/getcategoriesglobals.md +++ b/docs/models/operations/getcategoriesglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetCategoriesGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetCategoriesGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetCategoriesGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetCategoriesGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getcategoriesrequest.md b/docs/models/operations/getcategoriesrequest.md similarity index 96% rename from docs/sdk/models/operations/getcategoriesrequest.md rename to docs/models/operations/getcategoriesrequest.md index 3cca0a37..06820446 100644 --- a/docs/sdk/models/operations/getcategoriesrequest.md +++ b/docs/models/operations/getcategoriesrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetCategoriesRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetCategoriesRequest } from "@lukehagar/plexjs/models/operations"; let value: GetCategoriesRequest = { sectionId: 164120, @@ -14,7 +14,7 @@ let value: GetCategoriesRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getchannelsglobals.md b/docs/models/operations/getchannelsglobals.md similarity index 96% rename from docs/sdk/models/operations/getchannelsglobals.md rename to docs/models/operations/getchannelsglobals.md index 86205098..38cfbe4b 100644 --- a/docs/sdk/models/operations/getchannelsglobals.md +++ b/docs/models/operations/getchannelsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetChannelsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetChannelsGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetChannelsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetChannelsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getchannelsmediacontainer.md b/docs/models/operations/getchannelsmediacontainer.md similarity index 95% rename from docs/sdk/models/operations/getchannelsmediacontainer.md rename to docs/models/operations/getchannelsmediacontainer.md index 219a3691..b868cf90 100644 --- a/docs/sdk/models/operations/getchannelsmediacontainer.md +++ b/docs/models/operations/getchannelsmediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { GetChannelsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetChannelsMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: GetChannelsMediaContainer = {}; ``` @@ -21,4 +21,4 @@ let value: GetChannelsMediaContainer = {}; | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `channel` | [shared.Channel](../../../sdk/models/shared/channel.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `channel` | [shared.Channel](../../models/shared/channel.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getchannelsrequest.md b/docs/models/operations/getchannelsrequest.md similarity index 97% rename from docs/sdk/models/operations/getchannelsrequest.md rename to docs/models/operations/getchannelsrequest.md index fb9d5ecc..51a9a53c 100644 --- a/docs/sdk/models/operations/getchannelsrequest.md +++ b/docs/models/operations/getchannelsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetChannelsRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetChannelsRequest } from "@lukehagar/plexjs/models/operations"; let value: GetChannelsRequest = { lineup: "", @@ -14,7 +14,7 @@ let value: GetChannelsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/getchannelsresponse.md b/docs/models/operations/getchannelsresponse.md new file mode 100644 index 00000000..b9ffed63 --- /dev/null +++ b/docs/models/operations/getchannelsresponse.md @@ -0,0 +1,25 @@ +# GetChannelsResponse + +## Example Usage + +```typescript +import { GetChannelsResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetChannelsResponse = { + headers: { + "key": [], + "key1": [ + "", + "", + ], + }, + result: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [operations.GetChannelsResponseBody](../../models/operations/getchannelsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getchannelsresponsebody.md b/docs/models/operations/getchannelsresponsebody.md new file mode 100644 index 00000000..4f3bc90f --- /dev/null +++ b/docs/models/operations/getchannelsresponsebody.md @@ -0,0 +1,17 @@ +# GetChannelsResponseBody + +OK + +## Example Usage + +```typescript +import { GetChannelsResponseBody } from "@lukehagar/plexjs/models/operations"; + +let value: GetChannelsResponseBody = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetChannelsMediaContainer](../../models/operations/getchannelsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getchapterimageglobals.md b/docs/models/operations/getchapterimageglobals.md similarity index 96% rename from docs/sdk/models/operations/getchapterimageglobals.md rename to docs/models/operations/getchapterimageglobals.md index 7889022f..133785b1 100644 --- a/docs/sdk/models/operations/getchapterimageglobals.md +++ b/docs/models/operations/getchapterimageglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetChapterImageGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetChapterImageGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetChapterImageGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetChapterImageGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getchapterimagerequest.md b/docs/models/operations/getchapterimagerequest.md similarity index 97% rename from docs/sdk/models/operations/getchapterimagerequest.md rename to docs/models/operations/getchapterimagerequest.md index 03b01970..3d680a05 100644 --- a/docs/sdk/models/operations/getchapterimagerequest.md +++ b/docs/models/operations/getchapterimagerequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetChapterImageRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetChapterImageRequest } from "@lukehagar/plexjs/models/operations"; let value: GetChapterImageRequest = { mediaId: 366354, @@ -15,7 +15,7 @@ let value: GetChapterImageRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getclusterglobals.md b/docs/models/operations/getclusterglobals.md similarity index 96% rename from docs/sdk/models/operations/getclusterglobals.md rename to docs/models/operations/getclusterglobals.md index 98dfbcba..a5c6aa06 100644 --- a/docs/sdk/models/operations/getclusterglobals.md +++ b/docs/models/operations/getclusterglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetClusterGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetClusterGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetClusterGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetClusterGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getclusterrequest.md b/docs/models/operations/getclusterrequest.md similarity index 97% rename from docs/sdk/models/operations/getclusterrequest.md rename to docs/models/operations/getclusterrequest.md index 314576f7..46c480a7 100644 --- a/docs/sdk/models/operations/getclusterrequest.md +++ b/docs/models/operations/getclusterrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetClusterRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetClusterRequest } from "@lukehagar/plexjs/models/operations"; let value: GetClusterRequest = { sectionId: 649212, @@ -14,7 +14,7 @@ let value: GetClusterRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getcollectionimageglobals.md b/docs/models/operations/getcollectionimageglobals.md similarity index 96% rename from docs/sdk/models/operations/getcollectionimageglobals.md rename to docs/models/operations/getcollectionimageglobals.md index 2260e574..2589b9b5 100644 --- a/docs/sdk/models/operations/getcollectionimageglobals.md +++ b/docs/models/operations/getcollectionimageglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetCollectionImageGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetCollectionImageGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetCollectionImageGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetCollectionImageGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getcollectionimagerequest.md b/docs/models/operations/getcollectionimagerequest.md similarity index 96% rename from docs/sdk/models/operations/getcollectionimagerequest.md rename to docs/models/operations/getcollectionimagerequest.md index 814a29c4..e6e7766d 100644 --- a/docs/sdk/models/operations/getcollectionimagerequest.md +++ b/docs/models/operations/getcollectionimagerequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetCollectionImageRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetCollectionImageRequest } from "@lukehagar/plexjs/models/operations"; let value: GetCollectionImageRequest = { collectionId: 381528, @@ -15,7 +15,7 @@ let value: GetCollectionImageRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -28,4 +28,4 @@ let value: GetCollectionImageRequest = { | `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 +| `composite` | [shared.Composite](../../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/models/operations/getcollectionitemsglobals.md similarity index 96% rename from docs/sdk/models/operations/getcollectionitemsglobals.md rename to docs/models/operations/getcollectionitemsglobals.md index 33da2917..6daa9f00 100644 --- a/docs/sdk/models/operations/getcollectionitemsglobals.md +++ b/docs/models/operations/getcollectionitemsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetCollectionItemsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetCollectionItemsGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetCollectionItemsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetCollectionItemsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getcollectionitemsrequest.md b/docs/models/operations/getcollectionitemsrequest.md similarity index 96% rename from docs/sdk/models/operations/getcollectionitemsrequest.md rename to docs/models/operations/getcollectionitemsrequest.md index 530ee013..55c72e62 100644 --- a/docs/sdk/models/operations/getcollectionitemsrequest.md +++ b/docs/models/operations/getcollectionitemsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetCollectionItemsRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetCollectionItemsRequest } from "@lukehagar/plexjs/models/operations"; let value: GetCollectionItemsRequest = { collectionId: 398492, @@ -14,7 +14,7 @@ let value: GetCollectionItemsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getcollectionsglobals.md b/docs/models/operations/getcollectionsglobals.md similarity index 96% rename from docs/sdk/models/operations/getcollectionsglobals.md rename to docs/models/operations/getcollectionsglobals.md index 543c2592..4e9ef566 100644 --- a/docs/sdk/models/operations/getcollectionsglobals.md +++ b/docs/models/operations/getcollectionsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetCollectionsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetCollectionsGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetCollectionsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetCollectionsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getcollectionsrequest.md b/docs/models/operations/getcollectionsrequest.md similarity index 99% rename from docs/sdk/models/operations/getcollectionsrequest.md rename to docs/models/operations/getcollectionsrequest.md index 4153fa83..64b8ceae 100644 --- a/docs/sdk/models/operations/getcollectionsrequest.md +++ b/docs/models/operations/getcollectionsrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { GetCollectionsRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { MediaType } from "@lukehagar/plexjs/sdk/models/shared"; +import { GetCollectionsRequest } from "@lukehagar/plexjs/models/operations"; +import { MediaType } from "@lukehagar/plexjs/models/shared"; let value: GetCollectionsRequest = { sectionId: 298004, @@ -20,7 +20,7 @@ let value: GetCollectionsRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -32,4 +32,4 @@ let value: GetCollectionsRequest = { | `deviceName` | *string* | :heavy_minus_sign: | 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: | A querystring-based filtering language used to select subsets of media. Can be provided as an object with typed properties for type safety, or as a string for complex queries with operators and boolean logic.

The query supports:
- Fields: integer, boolean, tag, string, date, language
- Operators: =, !=, ==, !==, <=, >=, >>=, <<= (varies by field type)
- Boolean operators: & (AND), , (OR), push/pop (parentheses), or=1 (explicit OR)
- Sorting: sort parameter with :desc, :nullsLast modifiers
- Grouping: group parameter
- Limits: limit parameter

Examples:
- Object format: `{type: 4, sourceType: 2, title: "24"}` → `type=4&sourceType=2&title=24`
- String format: `type=4&sourceType=2&title==24` - type = 4 AND sourceType = 2 AND title = "24"
- Complex: `push=1&index=1&or=1&rating=2&pop=1&duration=10` - (index = 1 OR rating = 2) AND duration = 10

See [API Info section](#section/API-Info/Media-Queries) for detailed information on building media queries.
| {
"type": 4,
"sourceType": 2,
"sort": "duration:desc,index"
} | \ No newline at end of file +| `mediaQuery` | [shared.MediaQuery](../../models/shared/mediaquery.md) | :heavy_minus_sign: | A querystring-based filtering language used to select subsets of media. Can be provided as an object with typed properties for type safety, or as a string for complex queries with operators and boolean logic.

The query supports:
- Fields: integer, boolean, tag, string, date, language
- Operators: =, !=, ==, !==, <=, >=, >>=, <<= (varies by field type)
- Boolean operators: & (AND), , (OR), push/pop (parentheses), or=1 (explicit OR)
- Sorting: sort parameter with :desc, :nullsLast modifiers
- Grouping: group parameter
- Limits: limit parameter

Examples:
- Object format: `{type: 4, sourceType: 2, title: "24"}` → `type=4&sourceType=2&title=24`
- String format: `type=4&sourceType=2&title==24` - type = 4 AND sourceType = 2 AND title = "24"
- Complex: `push=1&index=1&or=1&rating=2&pop=1&duration=10` - (index = 1 OR rating = 2) AND duration = 10

See [API Info section](#section/API-Info/Media-Queries) for detailed information on building media queries.
| {
"type": 4,
"sourceType": 2,
"sort": "duration:desc,index"
} | \ No newline at end of file diff --git a/docs/models/operations/getcollectionsresponse.md b/docs/models/operations/getcollectionsresponse.md new file mode 100644 index 00000000..a734aa5d --- /dev/null +++ b/docs/models/operations/getcollectionsresponse.md @@ -0,0 +1,227 @@ +# GetCollectionsResponse + +## Example Usage + +```typescript +import { GetCollectionsResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetCollectionsResponse = { + headers: { + "key": [ + "", + "", + "", + ], + "key1": [ + "", + "", + "", + ], + }, + result: { + mediaContainer: { + metadata: [ + { + title: "", + type: "", + addedAt: 29550, + art: "/library/metadata/58683/art/1703239236", + autotag: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + chapterSource: "media", + childCount: 1, + country: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + director: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + genre: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + grandparentGuid: "plex://show/5d9c081b170e24001f2a7be4", + guid: "plex://movie/5d7768ba96b655001fdc0408", + guids: [ + { + id: + "{\"imdbExample\":{\"summary\":\"IMDB example\",\"value\":\"imdb://tt13015952\"},\"tmdbExample\":{\"summary\":\"TMDB example\",\"value\":\"tmdb://2434012\"},\"tvdbExample\":{\"summary\":\"TVDB example\",\"value\":\"tvdb://7945991\"}}", + }, + ], + key: "", + lastViewedAt: 1556281940, + 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: [ + { + accessible: true, + audioProfile: "lc", + container: "mov", + duration: 150192, + exists: true, + file: "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", + has64bitOffsets: false, + id: 1, + indexes: "sd", + key: "/library/parts/1/1531779263/file.mov", + optimizedForStreaming: false, + size: 105355654, + stream: [ + { + default: true, + audioChannelLayout: "5.1(side)", + channels: 6, + bitDepth: 10, + doviblCompatID: 1, + doviblPresent: true, + dovielPresent: false, + doviLevel: 6, + doviPresent: true, + doviProfile: 8, + dovirpuPresent: true, + doviVersion: "1.0", + bitrate: 24743, + canAutoSync: false, + chromaLocation: "topleft", + chromaSubsampling: "4:2:0", + codedHeight: 1608, + codedWidth: 3840, + closedCaptions: true, + codec: "hevc", + colorPrimaries: "bt2020", + colorRange: "tv", + colorSpace: "bt2020nc", + colorTrc: "smpte2084", + displayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + extendedDisplayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + frameRate: 23.976, + hasScalingMatrix: false, + height: 1602, + id: 1002625, + index: 0, + key: "/library/streams/216389", + language: "English", + languageCode: "eng", + languageTag: "en", + format: "srt", + headerCompression: true, + level: 150, + original: true, + profile: "main 10", + refFrames: 1, + samplingRate: 48000, + scanType: "progressive", + embeddedInVideo: "progressive", + selected: true, + forced: true, + hearingImpaired: true, + dub: true, + title: "SDH", + streamIdentifier: 1, + width: 3840, + }, + ], + videoProfile: "main", + }, + ], + videoCodec: "h264", + videoFrameRate: "24p", + videoProfile: "main", + videoResolution: "720", + width: 1280, + }, + ], + originallyAvailableAt: new Date("2022-12-14"), + parentGuid: "plex://show/5d9c081b170e24001f2a7be4", + ratingArray: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + role: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + theme: "/library/metadata/1/theme/1705636920", + thumb: "/library/metadata/58683/thumb/1703239236", + writer: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [shared.MediaContainerWithMetadata](../../models/shared/mediacontainerwithmetadata.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcolorsglobals.md b/docs/models/operations/getcolorsglobals.md similarity index 97% rename from docs/sdk/models/operations/getcolorsglobals.md rename to docs/models/operations/getcolorsglobals.md index fbb9c47d..a4c882cf 100644 --- a/docs/sdk/models/operations/getcolorsglobals.md +++ b/docs/models/operations/getcolorsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetColorsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetColorsGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetColorsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetColorsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getcolorsmediacontainer.md b/docs/models/operations/getcolorsmediacontainer.md similarity index 95% rename from docs/sdk/models/operations/getcolorsmediacontainer.md rename to docs/models/operations/getcolorsmediacontainer.md index 01eae059..fab1c815 100644 --- a/docs/sdk/models/operations/getcolorsmediacontainer.md +++ b/docs/models/operations/getcolorsmediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { GetColorsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetColorsMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: GetColorsMediaContainer = {}; ``` @@ -21,4 +21,4 @@ let value: GetColorsMediaContainer = {}; | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `ultraBlurColors` | [operations.UltraBlurColor](../../../sdk/models/operations/ultrablurcolor.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `ultraBlurColors` | [operations.UltraBlurColor](../../models/operations/ultrablurcolor.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcolorsrequest.md b/docs/models/operations/getcolorsrequest.md similarity index 97% rename from docs/sdk/models/operations/getcolorsrequest.md rename to docs/models/operations/getcolorsrequest.md index 55eae43b..78bb960b 100644 --- a/docs/sdk/models/operations/getcolorsrequest.md +++ b/docs/models/operations/getcolorsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetColorsRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetColorsRequest } from "@lukehagar/plexjs/models/operations"; let value: GetColorsRequest = { url: "/library/metadata/217745/art/1718931408", @@ -14,7 +14,7 @@ let value: GetColorsRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/getcolorsresponse.md b/docs/models/operations/getcolorsresponse.md new file mode 100644 index 00000000..e86d629f --- /dev/null +++ b/docs/models/operations/getcolorsresponse.md @@ -0,0 +1,17 @@ +# GetColorsResponse + +OK + +## Example Usage + +```typescript +import { GetColorsResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetColorsResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetColorsMediaContainer](../../models/operations/getcolorsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcommonglobals.md b/docs/models/operations/getcommonglobals.md similarity index 97% rename from docs/sdk/models/operations/getcommonglobals.md rename to docs/models/operations/getcommonglobals.md index ac218755..64926191 100644 --- a/docs/sdk/models/operations/getcommonglobals.md +++ b/docs/models/operations/getcommonglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetCommonGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetCommonGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetCommonGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetCommonGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getcommonrequest.md b/docs/models/operations/getcommonrequest.md similarity index 99% rename from docs/sdk/models/operations/getcommonrequest.md rename to docs/models/operations/getcommonrequest.md index 1c18f7d1..b7a33782 100644 --- a/docs/sdk/models/operations/getcommonrequest.md +++ b/docs/models/operations/getcommonrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { GetCommonRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { MediaType } from "@lukehagar/plexjs/sdk/models/shared"; +import { GetCommonRequest } from "@lukehagar/plexjs/models/operations"; +import { MediaType } from "@lukehagar/plexjs/models/shared"; let value: GetCommonRequest = { sectionId: 840014, @@ -20,7 +20,7 @@ let value: GetCommonRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -33,4 +33,4 @@ let value: GetCommonRequest = { | `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: | A querystring-based filtering language used to select subsets of media. Can be provided as an object with typed properties for type safety, or as a string for complex queries with operators and boolean logic.

The query supports:
- Fields: integer, boolean, tag, string, date, language
- Operators: =, !=, ==, !==, <=, >=, >>=, <<= (varies by field type)
- Boolean operators: & (AND), , (OR), push/pop (parentheses), or=1 (explicit OR)
- Sorting: sort parameter with :desc, :nullsLast modifiers
- Grouping: group parameter
- Limits: limit parameter

Examples:
- Object format: `{type: 4, sourceType: 2, title: "24"}` → `type=4&sourceType=2&title=24`
- String format: `type=4&sourceType=2&title==24` - type = 4 AND sourceType = 2 AND title = "24"
- Complex: `push=1&index=1&or=1&rating=2&pop=1&duration=10` - (index = 1 OR rating = 2) AND duration = 10

See [API Info section](#section/API-Info/Media-Queries) for detailed information on building media queries.
| {
"type": 4,
"sourceType": 2,
"sort": "duration:desc,index"
} | \ No newline at end of file +| `mediaQuery` | [shared.MediaQuery](../../models/shared/mediaquery.md) | :heavy_minus_sign: | A querystring-based filtering language used to select subsets of media. Can be provided as an object with typed properties for type safety, or as a string for complex queries with operators and boolean logic.

The query supports:
- Fields: integer, boolean, tag, string, date, language
- Operators: =, !=, ==, !==, <=, >=, >>=, <<= (varies by field type)
- Boolean operators: & (AND), , (OR), push/pop (parentheses), or=1 (explicit OR)
- Sorting: sort parameter with :desc, :nullsLast modifiers
- Grouping: group parameter
- Limits: limit parameter

Examples:
- Object format: `{type: 4, sourceType: 2, title: "24"}` → `type=4&sourceType=2&title=24`
- String format: `type=4&sourceType=2&title==24` - type = 4 AND sourceType = 2 AND title = "24"
- Complex: `push=1&index=1&or=1&rating=2&pop=1&duration=10` - (index = 1 OR rating = 2) AND duration = 10

See [API Info section](#section/API-Info/Media-Queries) for detailed information on building media queries.
| {
"type": 4,
"sourceType": 2,
"sort": "duration:desc,index"
} | \ No newline at end of file diff --git a/docs/models/operations/getcommonresponse.md b/docs/models/operations/getcommonresponse.md new file mode 100644 index 00000000..69325b53 --- /dev/null +++ b/docs/models/operations/getcommonresponse.md @@ -0,0 +1,225 @@ +# GetCommonResponse + +## Example Usage + +```typescript +import { GetCommonResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetCommonResponse = { + headers: { + "key": [ + "", + ], + "key1": [ + "", + "", + "", + ], + }, + result: { + mediaContainer: { + metadata: [ + { + title: "", + type: "", + addedAt: 29550, + art: "/library/metadata/58683/art/1703239236", + autotag: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + chapterSource: "media", + childCount: 1, + country: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + director: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + genre: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + grandparentGuid: "plex://show/5d9c081b170e24001f2a7be4", + guid: "plex://movie/5d7768ba96b655001fdc0408", + guids: [ + { + id: + "{\"imdbExample\":{\"summary\":\"IMDB example\",\"value\":\"imdb://tt13015952\"},\"tmdbExample\":{\"summary\":\"TMDB example\",\"value\":\"tmdb://2434012\"},\"tvdbExample\":{\"summary\":\"TVDB example\",\"value\":\"tvdb://7945991\"}}", + }, + ], + key: "", + lastViewedAt: 1556281940, + 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: [ + { + accessible: true, + audioProfile: "lc", + container: "mov", + duration: 150192, + exists: true, + file: "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", + has64bitOffsets: false, + id: 1, + indexes: "sd", + key: "/library/parts/1/1531779263/file.mov", + optimizedForStreaming: false, + size: 105355654, + stream: [ + { + default: true, + audioChannelLayout: "5.1(side)", + channels: 6, + bitDepth: 10, + doviblCompatID: 1, + doviblPresent: true, + dovielPresent: false, + doviLevel: 6, + doviPresent: true, + doviProfile: 8, + dovirpuPresent: true, + doviVersion: "1.0", + bitrate: 24743, + canAutoSync: false, + chromaLocation: "topleft", + chromaSubsampling: "4:2:0", + codedHeight: 1608, + codedWidth: 3840, + closedCaptions: true, + codec: "hevc", + colorPrimaries: "bt2020", + colorRange: "tv", + colorSpace: "bt2020nc", + colorTrc: "smpte2084", + displayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + extendedDisplayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + frameRate: 23.976, + hasScalingMatrix: false, + height: 1602, + id: 1002625, + index: 0, + key: "/library/streams/216389", + language: "English", + languageCode: "eng", + languageTag: "en", + format: "srt", + headerCompression: true, + level: 150, + original: true, + profile: "main 10", + refFrames: 1, + samplingRate: 48000, + scanType: "progressive", + embeddedInVideo: "progressive", + selected: true, + forced: true, + hearingImpaired: true, + dub: true, + title: "SDH", + streamIdentifier: 1, + width: 3840, + }, + ], + videoProfile: "main", + }, + ], + videoCodec: "h264", + videoFrameRate: "24p", + videoProfile: "main", + videoResolution: "720", + width: 1280, + }, + ], + originallyAvailableAt: new Date("2022-12-14"), + parentGuid: "plex://show/5d9c081b170e24001f2a7be4", + ratingArray: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + role: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + theme: "/library/metadata/1/theme/1705636920", + thumb: "/library/metadata/58683/thumb/1703239236", + writer: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [shared.MediaContainerWithMetadata](../../models/shared/mediacontainerwithmetadata.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcontinuewatchingglobals.md b/docs/models/operations/getcontinuewatchingglobals.md similarity index 96% rename from docs/sdk/models/operations/getcontinuewatchingglobals.md rename to docs/models/operations/getcontinuewatchingglobals.md index 64183f36..df0b0b86 100644 --- a/docs/sdk/models/operations/getcontinuewatchingglobals.md +++ b/docs/models/operations/getcontinuewatchingglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetContinueWatchingGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetContinueWatchingGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetContinueWatchingGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetContinueWatchingGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getcontinuewatchingmediacontainer.md b/docs/models/operations/getcontinuewatchingmediacontainer.md similarity index 98% rename from docs/sdk/models/operations/getcontinuewatchingmediacontainer.md rename to docs/models/operations/getcontinuewatchingmediacontainer.md index 1f0eedf3..ba7a948b 100644 --- a/docs/sdk/models/operations/getcontinuewatchingmediacontainer.md +++ b/docs/models/operations/getcontinuewatchingmediacontainer.md @@ -8,8 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { GetContinueWatchingMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { GetContinueWatchingMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: GetContinueWatchingMediaContainer = { hub: [ @@ -173,7 +172,7 @@ let value: GetContinueWatchingMediaContainer = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -228,4 +227,4 @@ let value: GetContinueWatchingMediaContainer = { | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `hub` | [shared.Hub](../../../sdk/models/shared/hub.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `hub` | [shared.Hub](../../models/shared/hub.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcontinuewatchingrequest.md b/docs/models/operations/getcontinuewatchingrequest.md similarity index 96% rename from docs/sdk/models/operations/getcontinuewatchingrequest.md rename to docs/models/operations/getcontinuewatchingrequest.md index 04d8d9fe..b4eb8a35 100644 --- a/docs/sdk/models/operations/getcontinuewatchingrequest.md +++ b/docs/models/operations/getcontinuewatchingrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetContinueWatchingRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetContinueWatchingRequest } from "@lukehagar/plexjs/models/operations"; let value: GetContinueWatchingRequest = {}; ``` @@ -12,7 +12,7 @@ let value: GetContinueWatchingRequest = {}; | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/getcontinuewatchingresponse.md b/docs/models/operations/getcontinuewatchingresponse.md new file mode 100644 index 00000000..237836ab --- /dev/null +++ b/docs/models/operations/getcontinuewatchingresponse.md @@ -0,0 +1,232 @@ +# GetContinueWatchingResponse + +## Example Usage + +```typescript +import { GetContinueWatchingResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetContinueWatchingResponse = { + headers: { + "key": [ + "", + ], + }, + result: { + mediaContainer: { + hub: [ + { + type: "track", + context: "hub.home.onDeck", + hubIdentifier: "home.onDeck", + key: "/hubs/sections/home/onDeck", + metadata: [ + { + title: "", + type: "", + addedAt: 29550, + art: "/library/metadata/58683/art/1703239236", + autotag: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + chapterSource: "media", + childCount: 1, + country: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + director: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + genre: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + grandparentGuid: "plex://show/5d9c081b170e24001f2a7be4", + guid: "plex://movie/5d7768ba96b655001fdc0408", + guids: [ + { + id: + "{\"imdbExample\":{\"summary\":\"IMDB example\",\"value\":\"imdb://tt13015952\"},\"tmdbExample\":{\"summary\":\"TMDB example\",\"value\":\"tmdb://2434012\"},\"tvdbExample\":{\"summary\":\"TVDB example\",\"value\":\"tvdb://7945991\"}}", + }, + ], + key: "", + lastViewedAt: 1556281940, + 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: [ + { + accessible: true, + audioProfile: "lc", + container: "mov", + duration: 150192, + exists: true, + file: + "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", + has64bitOffsets: false, + id: 1, + indexes: "sd", + key: "/library/parts/1/1531779263/file.mov", + optimizedForStreaming: false, + size: 105355654, + stream: [ + { + default: true, + audioChannelLayout: "5.1(side)", + channels: 6, + bitDepth: 10, + doviblCompatID: 1, + doviblPresent: true, + dovielPresent: false, + doviLevel: 6, + doviPresent: true, + doviProfile: 8, + dovirpuPresent: true, + doviVersion: "1.0", + bitrate: 24743, + canAutoSync: false, + chromaLocation: "topleft", + chromaSubsampling: "4:2:0", + codedHeight: 1608, + codedWidth: 3840, + closedCaptions: true, + codec: "hevc", + colorPrimaries: "bt2020", + colorRange: "tv", + colorSpace: "bt2020nc", + colorTrc: "smpte2084", + displayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + extendedDisplayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + frameRate: 23.976, + hasScalingMatrix: false, + height: 1602, + id: 1002625, + index: 0, + key: "/library/streams/216389", + language: "English", + languageCode: "eng", + languageTag: "en", + format: "srt", + headerCompression: true, + level: 150, + original: true, + profile: "main 10", + refFrames: 1, + samplingRate: 48000, + scanType: "progressive", + embeddedInVideo: "progressive", + selected: true, + forced: true, + hearingImpaired: true, + dub: true, + title: "SDH", + streamIdentifier: 1, + width: 3840, + }, + ], + videoProfile: "main", + }, + ], + videoCodec: "h264", + videoFrameRate: "24p", + videoProfile: "main", + videoResolution: "720", + width: 1280, + }, + ], + originallyAvailableAt: new Date("2022-12-14"), + parentGuid: "plex://show/5d9c081b170e24001f2a7be4", + ratingArray: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + role: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + theme: "/library/metadata/1/theme/1705636920", + thumb: "/library/metadata/58683/thumb/1703239236", + writer: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + }, + ], + size: 1, + subtype: "podcast", + totalSize: 8, + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [operations.GetContinueWatchingResponseBody](../../models/operations/getcontinuewatchingresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcontinuewatchingresponsebody.md b/docs/models/operations/getcontinuewatchingresponsebody.md similarity index 88% rename from docs/sdk/models/operations/getcontinuewatchingresponsebody.md rename to docs/models/operations/getcontinuewatchingresponsebody.md index 83bcbda7..9c2e37cc 100644 --- a/docs/sdk/models/operations/getcontinuewatchingresponsebody.md +++ b/docs/models/operations/getcontinuewatchingresponsebody.md @@ -5,8 +5,7 @@ OK ## Example Usage ```typescript -import { GetContinueWatchingResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { GetContinueWatchingResponseBody } from "@lukehagar/plexjs/models/operations"; let value: GetContinueWatchingResponseBody = { mediaContainer: { @@ -172,7 +171,7 @@ let value: GetContinueWatchingResponseBody = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -222,6 +221,6 @@ let value: GetContinueWatchingResponseBody = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.GetContinueWatchingMediaContainer](../../../sdk/models/operations/getcontinuewatchingmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `mediaContainer` | [operations.GetContinueWatchingMediaContainer](../../models/operations/getcontinuewatchingmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcountriescountry.md b/docs/models/operations/getcountriescountry.md similarity index 98% rename from docs/sdk/models/operations/getcountriescountry.md rename to docs/models/operations/getcountriescountry.md index 8e568cbd..9fe6167a 100644 --- a/docs/sdk/models/operations/getcountriescountry.md +++ b/docs/models/operations/getcountriescountry.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetCountriesCountry } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetCountriesCountry } from "@lukehagar/plexjs/models/operations"; let value: GetCountriesCountry = {}; ``` @@ -14,7 +14,7 @@ let value: GetCountriesCountry = {}; | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `code` | *string* | :heavy_minus_sign: | Three letter code | | `example` | *string* | :heavy_minus_sign: | N/A | -| `flavor` | [operations.Flavor](../../../sdk/models/operations/flavor.md) | :heavy_minus_sign: | - `0`: The country is divided into regions, and following the key will lead to a list of regions.
- `1`: The county is divided by postal codes, and an example code is returned in `example`.
- `2`: The country has a single postal code, returned in `example`.
| +| `flavor` | [operations.Flavor](../../models/operations/flavor.md) | :heavy_minus_sign: | - `0`: The country is divided into regions, and following the key will lead to a list of regions.
- `1`: The county is divided by postal codes, and an example code is returned in `example`.
- `2`: The country has a single postal code, returned in `example`.
| | `key` | *string* | :heavy_minus_sign: | N/A | | `language` | *string* | :heavy_minus_sign: | Three letter language code | | `languageTitle` | *string* | :heavy_minus_sign: | The title of the language | diff --git a/docs/sdk/models/operations/getcountrieslineupsglobals.md b/docs/models/operations/getcountrieslineupsglobals.md similarity index 96% rename from docs/sdk/models/operations/getcountrieslineupsglobals.md rename to docs/models/operations/getcountrieslineupsglobals.md index c643b947..0ed4ba05 100644 --- a/docs/sdk/models/operations/getcountrieslineupsglobals.md +++ b/docs/models/operations/getcountrieslineupsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetCountriesLineupsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetCountriesLineupsGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetCountriesLineupsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetCountriesLineupsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getcountrieslineupsrequest.md b/docs/models/operations/getcountrieslineupsrequest.md similarity index 97% rename from docs/sdk/models/operations/getcountrieslineupsrequest.md rename to docs/models/operations/getcountrieslineupsrequest.md index f67005a5..6760a573 100644 --- a/docs/sdk/models/operations/getcountrieslineupsrequest.md +++ b/docs/models/operations/getcountrieslineupsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetCountriesLineupsRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetCountriesLineupsRequest } from "@lukehagar/plexjs/models/operations"; let value: GetCountriesLineupsRequest = { country: "Eritrea", @@ -15,7 +15,7 @@ let value: GetCountriesLineupsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getcountriesmediacontainer.md b/docs/models/operations/getcountriesmediacontainer.md similarity index 95% rename from docs/sdk/models/operations/getcountriesmediacontainer.md rename to docs/models/operations/getcountriesmediacontainer.md index 32514360..bc91eeff 100644 --- a/docs/sdk/models/operations/getcountriesmediacontainer.md +++ b/docs/models/operations/getcountriesmediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { GetCountriesMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetCountriesMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: GetCountriesMediaContainer = {}; ``` @@ -21,4 +21,4 @@ let value: GetCountriesMediaContainer = {}; | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `country` | [operations.GetCountriesCountry](../../../sdk/models/operations/getcountriescountry.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `country` | [operations.GetCountriesCountry](../../models/operations/getcountriescountry.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getcountriesresponse.md b/docs/models/operations/getcountriesresponse.md new file mode 100644 index 00000000..2b6cdae1 --- /dev/null +++ b/docs/models/operations/getcountriesresponse.md @@ -0,0 +1,23 @@ +# GetCountriesResponse + +## Example Usage + +```typescript +import { GetCountriesResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetCountriesResponse = { + headers: { + "key": [ + "", + ], + }, + result: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [operations.GetCountriesResponseBody](../../models/operations/getcountriesresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getcountriesresponsebody.md b/docs/models/operations/getcountriesresponsebody.md new file mode 100644 index 00000000..c684f0a7 --- /dev/null +++ b/docs/models/operations/getcountriesresponsebody.md @@ -0,0 +1,17 @@ +# GetCountriesResponseBody + +OK + +## Example Usage + +```typescript +import { GetCountriesResponseBody } from "@lukehagar/plexjs/models/operations"; + +let value: GetCountriesResponseBody = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetCountriesMediaContainer](../../models/operations/getcountriesmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcountryregionscountry.md b/docs/models/operations/getcountryregionscountry.md similarity index 88% rename from docs/sdk/models/operations/getcountryregionscountry.md rename to docs/models/operations/getcountryregionscountry.md index e91eab6d..b915c6fb 100644 --- a/docs/sdk/models/operations/getcountryregionscountry.md +++ b/docs/models/operations/getcountryregionscountry.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetCountryRegionsCountry } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetCountryRegionsCountry } from "@lukehagar/plexjs/models/operations"; let value: GetCountryRegionsCountry = {}; ``` diff --git a/docs/sdk/models/operations/getcountryregionsglobals.md b/docs/models/operations/getcountryregionsglobals.md similarity index 96% rename from docs/sdk/models/operations/getcountryregionsglobals.md rename to docs/models/operations/getcountryregionsglobals.md index 24bf405e..93227604 100644 --- a/docs/sdk/models/operations/getcountryregionsglobals.md +++ b/docs/models/operations/getcountryregionsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetCountryRegionsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetCountryRegionsGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetCountryRegionsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetCountryRegionsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getcountryregionsmediacontainer.md b/docs/models/operations/getcountryregionsmediacontainer.md similarity index 96% rename from docs/sdk/models/operations/getcountryregionsmediacontainer.md rename to docs/models/operations/getcountryregionsmediacontainer.md index 795e822f..b578d3ed 100644 --- a/docs/sdk/models/operations/getcountryregionsmediacontainer.md +++ b/docs/models/operations/getcountryregionsmediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { GetCountryRegionsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetCountryRegionsMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: GetCountryRegionsMediaContainer = {}; ``` @@ -21,4 +21,4 @@ let value: GetCountryRegionsMediaContainer = {}; | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `country` | [operations.GetCountryRegionsCountry](../../../sdk/models/operations/getcountryregionscountry.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `country` | [operations.GetCountryRegionsCountry](../../models/operations/getcountryregionscountry.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcountryregionsrequest.md b/docs/models/operations/getcountryregionsrequest.md similarity index 97% rename from docs/sdk/models/operations/getcountryregionsrequest.md rename to docs/models/operations/getcountryregionsrequest.md index 72e15fca..e13981f4 100644 --- a/docs/sdk/models/operations/getcountryregionsrequest.md +++ b/docs/models/operations/getcountryregionsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetCountryRegionsRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetCountryRegionsRequest } from "@lukehagar/plexjs/models/operations"; let value: GetCountryRegionsRequest = { country: "American Samoa", @@ -15,7 +15,7 @@ let value: GetCountryRegionsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/getcountryregionsresponse.md b/docs/models/operations/getcountryregionsresponse.md new file mode 100644 index 00000000..2be5f0eb --- /dev/null +++ b/docs/models/operations/getcountryregionsresponse.md @@ -0,0 +1,26 @@ +# GetCountryRegionsResponse + +## Example Usage + +```typescript +import { GetCountryRegionsResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetCountryRegionsResponse = { + headers: { + "key": [ + "", + "", + "", + ], + "key1": [], + }, + result: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [operations.GetCountryRegionsResponseBody](../../models/operations/getcountryregionsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getcountryregionsresponsebody.md b/docs/models/operations/getcountryregionsresponsebody.md new file mode 100644 index 00000000..cf4df0b2 --- /dev/null +++ b/docs/models/operations/getcountryregionsresponsebody.md @@ -0,0 +1,17 @@ +# GetCountryRegionsResponseBody + +OK + +## Example Usage + +```typescript +import { GetCountryRegionsResponseBody } from "@lukehagar/plexjs/models/operations"; + +let value: GetCountryRegionsResponseBody = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetCountryRegionsMediaContainer](../../models/operations/getcountryregionsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdevicedetailsglobals.md b/docs/models/operations/getdevicedetailsglobals.md similarity index 96% rename from docs/sdk/models/operations/getdevicedetailsglobals.md rename to docs/models/operations/getdevicedetailsglobals.md index a5926579..91e1f94a 100644 --- a/docs/sdk/models/operations/getdevicedetailsglobals.md +++ b/docs/models/operations/getdevicedetailsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetDeviceDetailsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetDeviceDetailsGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetDeviceDetailsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetDeviceDetailsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getdevicedetailsrequest.md b/docs/models/operations/getdevicedetailsrequest.md similarity index 96% rename from docs/sdk/models/operations/getdevicedetailsrequest.md rename to docs/models/operations/getdevicedetailsrequest.md index 23d86ade..7695dcf6 100644 --- a/docs/sdk/models/operations/getdevicedetailsrequest.md +++ b/docs/models/operations/getdevicedetailsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetDeviceDetailsRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetDeviceDetailsRequest } from "@lukehagar/plexjs/models/operations"; let value: GetDeviceDetailsRequest = { deviceId: 307102, @@ -14,7 +14,7 @@ let value: GetDeviceDetailsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getdeviceschannelsglobals.md b/docs/models/operations/getdeviceschannelsglobals.md similarity index 96% rename from docs/sdk/models/operations/getdeviceschannelsglobals.md rename to docs/models/operations/getdeviceschannelsglobals.md index a723acb2..8283acae 100644 --- a/docs/sdk/models/operations/getdeviceschannelsglobals.md +++ b/docs/models/operations/getdeviceschannelsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetDevicesChannelsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetDevicesChannelsGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetDevicesChannelsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetDevicesChannelsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getdeviceschannelsmediacontainer.md b/docs/models/operations/getdeviceschannelsmediacontainer.md similarity index 96% rename from docs/sdk/models/operations/getdeviceschannelsmediacontainer.md rename to docs/models/operations/getdeviceschannelsmediacontainer.md index f8c7d751..9000df3c 100644 --- a/docs/sdk/models/operations/getdeviceschannelsmediacontainer.md +++ b/docs/models/operations/getdeviceschannelsmediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { GetDevicesChannelsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetDevicesChannelsMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: GetDevicesChannelsMediaContainer = {}; ``` @@ -21,4 +21,4 @@ let value: GetDevicesChannelsMediaContainer = {}; | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `deviceChannel` | [operations.DeviceChannel](../../../sdk/models/operations/devicechannel.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `deviceChannel` | [operations.DeviceChannel](../../models/operations/devicechannel.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdeviceschannelsrequest.md b/docs/models/operations/getdeviceschannelsrequest.md similarity index 96% rename from docs/sdk/models/operations/getdeviceschannelsrequest.md rename to docs/models/operations/getdeviceschannelsrequest.md index d6875740..87cd5b0e 100644 --- a/docs/sdk/models/operations/getdeviceschannelsrequest.md +++ b/docs/models/operations/getdeviceschannelsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetDevicesChannelsRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetDevicesChannelsRequest } from "@lukehagar/plexjs/models/operations"; let value: GetDevicesChannelsRequest = { deviceId: 81474, @@ -14,7 +14,7 @@ let value: GetDevicesChannelsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/getdeviceschannelsresponse.md b/docs/models/operations/getdeviceschannelsresponse.md new file mode 100644 index 00000000..57009b15 --- /dev/null +++ b/docs/models/operations/getdeviceschannelsresponse.md @@ -0,0 +1,25 @@ +# GetDevicesChannelsResponse + +## Example Usage + +```typescript +import { GetDevicesChannelsResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetDevicesChannelsResponse = { + headers: { + "key": [ + "", + "", + "", + ], + }, + result: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [operations.GetDevicesChannelsResponseBody](../../models/operations/getdeviceschannelsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getdeviceschannelsresponsebody.md b/docs/models/operations/getdeviceschannelsresponsebody.md new file mode 100644 index 00000000..06c7a601 --- /dev/null +++ b/docs/models/operations/getdeviceschannelsresponsebody.md @@ -0,0 +1,17 @@ +# GetDevicesChannelsResponseBody + +OK + +## Example Usage + +```typescript +import { GetDevicesChannelsResponseBody } from "@lukehagar/plexjs/models/operations"; + +let value: GetDevicesChannelsResponseBody = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetDevicesChannelsMediaContainer](../../models/operations/getdeviceschannelsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdownloadqueuedownloadqueue.md b/docs/models/operations/getdownloadqueuedownloadqueue.md similarity index 98% rename from docs/sdk/models/operations/getdownloadqueuedownloadqueue.md rename to docs/models/operations/getdownloadqueuedownloadqueue.md index 92af841f..c3a556fc 100644 --- a/docs/sdk/models/operations/getdownloadqueuedownloadqueue.md +++ b/docs/models/operations/getdownloadqueuedownloadqueue.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetDownloadQueueDownloadQueue } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetDownloadQueueDownloadQueue } from "@lukehagar/plexjs/models/operations"; let value: GetDownloadQueueDownloadQueue = {}; ``` @@ -14,4 +14,4 @@ let value: GetDownloadQueueDownloadQueue = {}; | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *number* | :heavy_minus_sign: | N/A | | `itemCount` | *number* | :heavy_minus_sign: | N/A | -| `status` | [operations.GetDownloadQueueStatus](../../../sdk/models/operations/getdownloadqueuestatus.md) | :heavy_minus_sign: | The state of this queue
- deciding: At least one item is still being decided
- waiting: At least one item is waiting for transcode and none are currently transcoding
- processing: At least one item is being transcoded
- done: All items are available (or potentially expired)
- error: At least one item has encountered an error
| \ No newline at end of file +| `status` | [operations.GetDownloadQueueStatus](../../models/operations/getdownloadqueuestatus.md) | :heavy_minus_sign: | The state of this queue
- deciding: At least one item is still being decided
- waiting: At least one item is waiting for transcode and none are currently transcoding
- processing: At least one item is being transcoded
- done: All items are available (or potentially expired)
- error: At least one item has encountered an error
| \ No newline at end of file diff --git a/docs/sdk/models/operations/getdownloadqueueglobals.md b/docs/models/operations/getdownloadqueueglobals.md similarity index 96% rename from docs/sdk/models/operations/getdownloadqueueglobals.md rename to docs/models/operations/getdownloadqueueglobals.md index b329c02b..cb344b18 100644 --- a/docs/sdk/models/operations/getdownloadqueueglobals.md +++ b/docs/models/operations/getdownloadqueueglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetDownloadQueueGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetDownloadQueueGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetDownloadQueueGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetDownloadQueueGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getdownloadqueueitemsdecisionresult.md b/docs/models/operations/getdownloadqueueitemsdecisionresult.md similarity index 99% rename from docs/sdk/models/operations/getdownloadqueueitemsdecisionresult.md rename to docs/models/operations/getdownloadqueueitemsdecisionresult.md index 00a9dc72..89f11dfe 100644 --- a/docs/sdk/models/operations/getdownloadqueueitemsdecisionresult.md +++ b/docs/models/operations/getdownloadqueueitemsdecisionresult.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetDownloadQueueItemsDecisionResult } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetDownloadQueueItemsDecisionResult } from "@lukehagar/plexjs/models/operations"; let value: GetDownloadQueueItemsDecisionResult = {}; ``` diff --git a/docs/sdk/models/operations/getdownloadqueueitemsdownloadqueueitem.md b/docs/models/operations/getdownloadqueueitemsdownloadqueueitem.md similarity index 96% rename from docs/sdk/models/operations/getdownloadqueueitemsdownloadqueueitem.md rename to docs/models/operations/getdownloadqueueitemsdownloadqueueitem.md index 8739b914..48169fd5 100644 --- a/docs/sdk/models/operations/getdownloadqueueitemsdownloadqueueitem.md +++ b/docs/models/operations/getdownloadqueueitemsdownloadqueueitem.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetDownloadQueueItemsDownloadQueueItem } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetDownloadQueueItemsDownloadQueueItem } from "@lukehagar/plexjs/models/operations"; let value: GetDownloadQueueItemsDownloadQueueItem = {}; ``` @@ -12,11 +12,11 @@ let value: GetDownloadQueueItemsDownloadQueueItem = {}; | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `decisionResult` | [operations.GetDownloadQueueItemsDecisionResult](../../../sdk/models/operations/getdownloadqueueitemsdecisionresult.md) | :heavy_minus_sign: | N/A | +| `decisionResult` | [operations.GetDownloadQueueItemsDecisionResult](../../models/operations/getdownloadqueueitemsdecisionresult.md) | :heavy_minus_sign: | N/A | | `error` | *string* | :heavy_minus_sign: | The error encountered in transcoding or decision | | `id` | *number* | :heavy_minus_sign: | N/A | | `key` | *string* | :heavy_minus_sign: | N/A | | `queueId` | *number* | :heavy_minus_sign: | N/A | -| `status` | [operations.GetDownloadQueueItemsStatus](../../../sdk/models/operations/getdownloadqueueitemsstatus.md) | :heavy_minus_sign: | The state of the item:
- deciding: The item decision is pending
- waiting: The item is waiting for transcode
- processing: The item is being transcoded
- available: The item is available for download
- error: The item encountered an error in the decision or transcode
- expired: The transcoded item has timed out and is no longer available
| -| `transcode` | [operations.GetDownloadQueueItemsTranscode](../../../sdk/models/operations/getdownloadqueueitemstranscode.md) | :heavy_minus_sign: | The transcode session object which is not yet documented otherwise it'd be a $ref here. | -| `transcodeSession` | [shared.TranscodeSession](../../../sdk/models/shared/transcodesession.md) | :heavy_minus_sign: | The transcode session if item is currently being transcoded | \ No newline at end of file +| `status` | [operations.GetDownloadQueueItemsStatus](../../models/operations/getdownloadqueueitemsstatus.md) | :heavy_minus_sign: | The state of the item:
- deciding: The item decision is pending
- waiting: The item is waiting for transcode
- processing: The item is being transcoded
- available: The item is available for download
- error: The item encountered an error in the decision or transcode
- expired: The transcoded item has timed out and is no longer available
| +| `transcode` | [operations.GetDownloadQueueItemsTranscode](../../models/operations/getdownloadqueueitemstranscode.md) | :heavy_minus_sign: | The transcode session object which is not yet documented otherwise it'd be a $ref here. | +| `transcodeSession` | [shared.TranscodeSession](../../models/shared/transcodesession.md) | :heavy_minus_sign: | The transcode session if item is currently being transcoded | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdownloadqueueitemsglobals.md b/docs/models/operations/getdownloadqueueitemsglobals.md similarity index 98% rename from docs/sdk/models/operations/getdownloadqueueitemsglobals.md rename to docs/models/operations/getdownloadqueueitemsglobals.md index 266e9e52..0aba4df7 100644 --- a/docs/sdk/models/operations/getdownloadqueueitemsglobals.md +++ b/docs/models/operations/getdownloadqueueitemsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetDownloadQueueItemsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetDownloadQueueItemsGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetDownloadQueueItemsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetDownloadQueueItemsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getdownloadqueueitemsmediacontainer.md b/docs/models/operations/getdownloadqueueitemsmediacontainer.md similarity index 96% rename from docs/sdk/models/operations/getdownloadqueueitemsmediacontainer.md rename to docs/models/operations/getdownloadqueueitemsmediacontainer.md index dc01e176..1b6d6361 100644 --- a/docs/sdk/models/operations/getdownloadqueueitemsmediacontainer.md +++ b/docs/models/operations/getdownloadqueueitemsmediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { GetDownloadQueueItemsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetDownloadQueueItemsMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: GetDownloadQueueItemsMediaContainer = {}; ``` @@ -21,4 +21,4 @@ let value: GetDownloadQueueItemsMediaContainer = {}; | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `downloadQueueItem` | [operations.GetDownloadQueueItemsDownloadQueueItem](../../../sdk/models/operations/getdownloadqueueitemsdownloadqueueitem.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `downloadQueueItem` | [operations.GetDownloadQueueItemsDownloadQueueItem](../../models/operations/getdownloadqueueitemsdownloadqueueitem.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdownloadqueueitemsrequest.md b/docs/models/operations/getdownloadqueueitemsrequest.md similarity index 98% rename from docs/sdk/models/operations/getdownloadqueueitemsrequest.md rename to docs/models/operations/getdownloadqueueitemsrequest.md index 20fa6f36..4063a51f 100644 --- a/docs/sdk/models/operations/getdownloadqueueitemsrequest.md +++ b/docs/models/operations/getdownloadqueueitemsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetDownloadQueueItemsRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetDownloadQueueItemsRequest } from "@lukehagar/plexjs/models/operations"; let value: GetDownloadQueueItemsRequest = { queueId: 144536, @@ -19,7 +19,7 @@ let value: GetDownloadQueueItemsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/getdownloadqueueitemsresponse.md b/docs/models/operations/getdownloadqueueitemsresponse.md new file mode 100644 index 00000000..1f02cb89 --- /dev/null +++ b/docs/models/operations/getdownloadqueueitemsresponse.md @@ -0,0 +1,17 @@ +# GetDownloadQueueItemsResponse + +OK + +## Example Usage + +```typescript +import { GetDownloadQueueItemsResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetDownloadQueueItemsResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetDownloadQueueItemsMediaContainer](../../models/operations/getdownloadqueueitemsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getdownloadqueueitemsstatus.md b/docs/models/operations/getdownloadqueueitemsstatus.md new file mode 100644 index 00000000..e17d9ce3 --- /dev/null +++ b/docs/models/operations/getdownloadqueueitemsstatus.md @@ -0,0 +1,32 @@ +# GetDownloadQueueItemsStatus + +The state of the item: + - deciding: The item decision is pending + - waiting: The item is waiting for transcode + - processing: The item is being transcoded + - available: The item is available for download + - error: The item encountered an error in the decision or transcode + - expired: The transcoded item has timed out and is no longer available + + +## Example Usage + +```typescript +import { GetDownloadQueueItemsStatus } from "@lukehagar/plexjs/models/operations"; + +let value: GetDownloadQueueItemsStatus = GetDownloadQueueItemsStatus.Processing; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Deciding` | deciding | +| `Waiting` | waiting | +| `Processing` | processing | +| `Available` | available | +| `Error` | error | +| `Expired` | expired | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdownloadqueueitemstranscode.md b/docs/models/operations/getdownloadqueueitemstranscode.md similarity index 93% rename from docs/sdk/models/operations/getdownloadqueueitemstranscode.md rename to docs/models/operations/getdownloadqueueitemstranscode.md index b5a786a8..108f5dd8 100644 --- a/docs/sdk/models/operations/getdownloadqueueitemstranscode.md +++ b/docs/models/operations/getdownloadqueueitemstranscode.md @@ -5,7 +5,7 @@ The transcode session object which is not yet documented otherwise it'd be a $re ## Example Usage ```typescript -import { GetDownloadQueueItemsTranscode } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetDownloadQueueItemsTranscode } from "@lukehagar/plexjs/models/operations"; let value: GetDownloadQueueItemsTranscode = {}; ``` diff --git a/docs/sdk/models/operations/getdownloadqueuemediacontainer.md b/docs/models/operations/getdownloadqueuemediacontainer.md similarity index 96% rename from docs/sdk/models/operations/getdownloadqueuemediacontainer.md rename to docs/models/operations/getdownloadqueuemediacontainer.md index 68300e51..3b8a8c2a 100644 --- a/docs/sdk/models/operations/getdownloadqueuemediacontainer.md +++ b/docs/models/operations/getdownloadqueuemediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { GetDownloadQueueMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetDownloadQueueMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: GetDownloadQueueMediaContainer = {}; ``` @@ -21,4 +21,4 @@ let value: GetDownloadQueueMediaContainer = {}; | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `downloadQueue` | [operations.GetDownloadQueueDownloadQueue](../../../sdk/models/operations/getdownloadqueuedownloadqueue.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `downloadQueue` | [operations.GetDownloadQueueDownloadQueue](../../models/operations/getdownloadqueuedownloadqueue.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdownloadqueuemediaglobals.md b/docs/models/operations/getdownloadqueuemediaglobals.md similarity index 98% rename from docs/sdk/models/operations/getdownloadqueuemediaglobals.md rename to docs/models/operations/getdownloadqueuemediaglobals.md index 7ddeb51b..42ebd25f 100644 --- a/docs/sdk/models/operations/getdownloadqueuemediaglobals.md +++ b/docs/models/operations/getdownloadqueuemediaglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetDownloadQueueMediaGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetDownloadQueueMediaGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetDownloadQueueMediaGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetDownloadQueueMediaGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getdownloadqueuemediarequest.md b/docs/models/operations/getdownloadqueuemediarequest.md similarity index 98% rename from docs/sdk/models/operations/getdownloadqueuemediarequest.md rename to docs/models/operations/getdownloadqueuemediarequest.md index e5b3e5b4..ee5728c1 100644 --- a/docs/sdk/models/operations/getdownloadqueuemediarequest.md +++ b/docs/models/operations/getdownloadqueuemediarequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetDownloadQueueMediaRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetDownloadQueueMediaRequest } from "@lukehagar/plexjs/models/operations"; let value: GetDownloadQueueMediaRequest = { queueId: 891615, @@ -15,7 +15,7 @@ let value: GetDownloadQueueMediaRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/getdownloadqueuemediaresponse.md b/docs/models/operations/getdownloadqueuemediaresponse.md new file mode 100644 index 00000000..bbd96a08 --- /dev/null +++ b/docs/models/operations/getdownloadqueuemediaresponse.md @@ -0,0 +1,17 @@ +# GetDownloadQueueMediaResponse + +## Example Usage + +```typescript +import { GetDownloadQueueMediaResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetDownloadQueueMediaResponse = { + headers: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------- | -------------------------- | -------------------------- | -------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdownloadqueuerequest.md b/docs/models/operations/getdownloadqueuerequest.md similarity index 96% rename from docs/sdk/models/operations/getdownloadqueuerequest.md rename to docs/models/operations/getdownloadqueuerequest.md index 018676eb..203b2139 100644 --- a/docs/sdk/models/operations/getdownloadqueuerequest.md +++ b/docs/models/operations/getdownloadqueuerequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetDownloadQueueRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetDownloadQueueRequest } from "@lukehagar/plexjs/models/operations"; let value: GetDownloadQueueRequest = { queueId: 90815, @@ -14,7 +14,7 @@ let value: GetDownloadQueueRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/getdownloadqueueresponse.md b/docs/models/operations/getdownloadqueueresponse.md new file mode 100644 index 00000000..2d5eefae --- /dev/null +++ b/docs/models/operations/getdownloadqueueresponse.md @@ -0,0 +1,17 @@ +# GetDownloadQueueResponse + +OK + +## Example Usage + +```typescript +import { GetDownloadQueueResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetDownloadQueueResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `mediaContainer` | [operations.GetDownloadQueueMediaContainer](../../models/operations/getdownloadqueuemediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getdownloadqueuestatus.md b/docs/models/operations/getdownloadqueuestatus.md new file mode 100644 index 00000000..6ab4e8b2 --- /dev/null +++ b/docs/models/operations/getdownloadqueuestatus.md @@ -0,0 +1,30 @@ +# GetDownloadQueueStatus + +The state of this queue + - deciding: At least one item is still being decided + - waiting: At least one item is waiting for transcode and none are currently transcoding + - processing: At least one item is being transcoded + - done: All items are available (or potentially expired) + - error: At least one item has encountered an error + + +## Example Usage + +```typescript +import { GetDownloadQueueStatus } from "@lukehagar/plexjs/models/operations"; + +let value: GetDownloadQueueStatus = GetDownloadQueueStatus.Done; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Deciding` | deciding | +| `Waiting` | waiting | +| `Processing` | processing | +| `Done` | done | +| `Error` | error | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/models/operations/getdvrdvr.md b/docs/models/operations/getdvrdvr.md new file mode 100644 index 00000000..04d7dad9 --- /dev/null +++ b/docs/models/operations/getdvrdvr.md @@ -0,0 +1,19 @@ +# GetDVRDVR + +## Example Usage + +```typescript +import { GetDVRDVR } from "@lukehagar/plexjs/models/operations"; + +let value: GetDVRDVR = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | +| `device` | [shared.Device](../../models/shared/device.md)[] | :heavy_minus_sign: | N/A | +| `key` | *string* | :heavy_minus_sign: | N/A | +| `language` | *string* | :heavy_minus_sign: | N/A | +| `lineup` | *string* | :heavy_minus_sign: | N/A | +| `uuid` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdvrglobals.md b/docs/models/operations/getdvrglobals.md similarity index 97% rename from docs/sdk/models/operations/getdvrglobals.md rename to docs/models/operations/getdvrglobals.md index 36e08393..2ad8f40b 100644 --- a/docs/sdk/models/operations/getdvrglobals.md +++ b/docs/models/operations/getdvrglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetDVRGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetDVRGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetDVRGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetDVRGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/getdvrmediacontainer.md b/docs/models/operations/getdvrmediacontainer.md new file mode 100644 index 00000000..012fc1c3 --- /dev/null +++ b/docs/models/operations/getdvrmediacontainer.md @@ -0,0 +1,16 @@ +# GetDVRMediaContainer + +## Example Usage + +```typescript +import { GetDVRMediaContainer } from "@lukehagar/plexjs/models/operations"; + +let value: GetDVRMediaContainer = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetDVRMediaContainerMediaContainer](../../models/operations/getdvrmediacontainermediacontainer.md) | :heavy_minus_sign: | N/A | +| `dvr` | [operations.GetDVRDVR](../../models/operations/getdvrdvr.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdvrmediacontainermediacontainer.md b/docs/models/operations/getdvrmediacontainermediacontainer.md similarity index 99% rename from docs/sdk/models/operations/getdvrmediacontainermediacontainer.md rename to docs/models/operations/getdvrmediacontainermediacontainer.md index e456b3e8..c6c5601d 100644 --- a/docs/sdk/models/operations/getdvrmediacontainermediacontainer.md +++ b/docs/models/operations/getdvrmediacontainermediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { GetDVRMediaContainerMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetDVRMediaContainerMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: GetDVRMediaContainerMediaContainer = {}; ``` diff --git a/docs/sdk/models/operations/getdvrrequest.md b/docs/models/operations/getdvrrequest.md similarity index 97% rename from docs/sdk/models/operations/getdvrrequest.md rename to docs/models/operations/getdvrrequest.md index c5b207f9..2772af05 100644 --- a/docs/sdk/models/operations/getdvrrequest.md +++ b/docs/models/operations/getdvrrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetDVRRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetDVRRequest } from "@lukehagar/plexjs/models/operations"; let value: GetDVRRequest = { dvrId: 8719, @@ -14,7 +14,7 @@ let value: GetDVRRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/getdvrresponse.md b/docs/models/operations/getdvrresponse.md new file mode 100644 index 00000000..c8790471 --- /dev/null +++ b/docs/models/operations/getdvrresponse.md @@ -0,0 +1,25 @@ +# GetDVRResponse + +## Example Usage + +```typescript +import { GetDVRResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetDVRResponse = { + headers: { + "key": [ + "", + "", + "", + ], + }, + result: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [operations.GetDVRResponseBody](../../models/operations/getdvrresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getdvrresponsebody.md b/docs/models/operations/getdvrresponsebody.md new file mode 100644 index 00000000..44f798f3 --- /dev/null +++ b/docs/models/operations/getdvrresponsebody.md @@ -0,0 +1,17 @@ +# GetDVRResponseBody + +OK + +## Example Usage + +```typescript +import { GetDVRResponseBody } from "@lukehagar/plexjs/models/operations"; + +let value: GetDVRResponseBody = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetDVRMediaContainer](../../models/operations/getdvrmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getextrasglobals.md b/docs/models/operations/getextrasglobals.md similarity index 97% rename from docs/sdk/models/operations/getextrasglobals.md rename to docs/models/operations/getextrasglobals.md index 44c38242..23c7cea9 100644 --- a/docs/sdk/models/operations/getextrasglobals.md +++ b/docs/models/operations/getextrasglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetExtrasGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetExtrasGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetExtrasGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetExtrasGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getextrasrequest.md b/docs/models/operations/getextrasrequest.md similarity index 97% rename from docs/sdk/models/operations/getextrasrequest.md rename to docs/models/operations/getextrasrequest.md index d5b4c4e2..8b91bba4 100644 --- a/docs/sdk/models/operations/getextrasrequest.md +++ b/docs/models/operations/getextrasrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetExtrasRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetExtrasRequest } from "@lukehagar/plexjs/models/operations"; let value: GetExtrasRequest = { ids: "", @@ -14,7 +14,7 @@ let value: GetExtrasRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/getextrasresponse.md b/docs/models/operations/getextrasresponse.md new file mode 100644 index 00000000..2ff27671 --- /dev/null +++ b/docs/models/operations/getextrasresponse.md @@ -0,0 +1,219 @@ +# GetExtrasResponse + +## Example Usage + +```typescript +import { GetExtrasResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetExtrasResponse = { + headers: { + "key": [], + "key1": [], + }, + result: { + mediaContainer: { + metadata: [ + { + title: "", + type: "", + addedAt: 29550, + art: "/library/metadata/58683/art/1703239236", + autotag: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + chapterSource: "media", + childCount: 1, + country: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + director: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + genre: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + grandparentGuid: "plex://show/5d9c081b170e24001f2a7be4", + guid: "plex://movie/5d7768ba96b655001fdc0408", + guids: [ + { + id: + "{\"imdbExample\":{\"summary\":\"IMDB example\",\"value\":\"imdb://tt13015952\"},\"tmdbExample\":{\"summary\":\"TMDB example\",\"value\":\"tmdb://2434012\"},\"tvdbExample\":{\"summary\":\"TVDB example\",\"value\":\"tvdb://7945991\"}}", + }, + ], + key: "", + lastViewedAt: 1556281940, + 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: [ + { + accessible: true, + audioProfile: "lc", + container: "mov", + duration: 150192, + exists: true, + file: "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", + has64bitOffsets: false, + id: 1, + indexes: "sd", + key: "/library/parts/1/1531779263/file.mov", + optimizedForStreaming: false, + size: 105355654, + stream: [ + { + default: true, + audioChannelLayout: "5.1(side)", + channels: 6, + bitDepth: 10, + doviblCompatID: 1, + doviblPresent: true, + dovielPresent: false, + doviLevel: 6, + doviPresent: true, + doviProfile: 8, + dovirpuPresent: true, + doviVersion: "1.0", + bitrate: 24743, + canAutoSync: false, + chromaLocation: "topleft", + chromaSubsampling: "4:2:0", + codedHeight: 1608, + codedWidth: 3840, + closedCaptions: true, + codec: "hevc", + colorPrimaries: "bt2020", + colorRange: "tv", + colorSpace: "bt2020nc", + colorTrc: "smpte2084", + displayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + extendedDisplayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + frameRate: 23.976, + hasScalingMatrix: false, + height: 1602, + id: 1002625, + index: 0, + key: "/library/streams/216389", + language: "English", + languageCode: "eng", + languageTag: "en", + format: "srt", + headerCompression: true, + level: 150, + original: true, + profile: "main 10", + refFrames: 1, + samplingRate: 48000, + scanType: "progressive", + embeddedInVideo: "progressive", + selected: true, + forced: true, + hearingImpaired: true, + dub: true, + title: "SDH", + streamIdentifier: 1, + width: 3840, + }, + ], + videoProfile: "main", + }, + ], + videoCodec: "h264", + videoFrameRate: "24p", + videoProfile: "main", + videoResolution: "720", + width: 1280, + }, + ], + originallyAvailableAt: new Date("2022-12-14"), + parentGuid: "plex://show/5d9c081b170e24001f2a7be4", + ratingArray: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + role: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + theme: "/library/metadata/1/theme/1705636920", + thumb: "/library/metadata/58683/thumb/1703239236", + writer: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [shared.MediaContainerWithMetadata](../../models/shared/mediacontainerwithmetadata.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getfileglobals.md b/docs/models/operations/getfileglobals.md similarity index 97% rename from docs/sdk/models/operations/getfileglobals.md rename to docs/models/operations/getfileglobals.md index 8bacf935..adf3ed44 100644 --- a/docs/sdk/models/operations/getfileglobals.md +++ b/docs/models/operations/getfileglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetFileGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetFileGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetFileGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetFileGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getfilerequest.md b/docs/models/operations/getfilerequest.md similarity index 97% rename from docs/sdk/models/operations/getfilerequest.md rename to docs/models/operations/getfilerequest.md index cf7715e5..93d04a92 100644 --- a/docs/sdk/models/operations/getfilerequest.md +++ b/docs/models/operations/getfilerequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetFileRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetFileRequest } from "@lukehagar/plexjs/models/operations"; let value: GetFileRequest = { ids: "", @@ -14,7 +14,7 @@ let value: GetFileRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/getfileresponse.md b/docs/models/operations/getfileresponse.md new file mode 100644 index 00000000..8fe73f46 --- /dev/null +++ b/docs/models/operations/getfileresponse.md @@ -0,0 +1,17 @@ +# GetFileResponse + + +## Supported Types + +### `ReadableStream` + +```typescript +const value: ReadableStream = await openAsBlob("example.file"); +``` + +### `ReadableStream` + +```typescript +const value: ReadableStream = await openAsBlob("example.file"); +``` + diff --git a/docs/sdk/models/operations/getfirstcharactersdirectory.md b/docs/models/operations/getfirstcharactersdirectory.md similarity index 92% rename from docs/sdk/models/operations/getfirstcharactersdirectory.md rename to docs/models/operations/getfirstcharactersdirectory.md index f410d33b..4358fbc3 100644 --- a/docs/sdk/models/operations/getfirstcharactersdirectory.md +++ b/docs/models/operations/getfirstcharactersdirectory.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetFirstCharactersDirectory } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetFirstCharactersDirectory } from "@lukehagar/plexjs/models/operations"; let value: GetFirstCharactersDirectory = {}; ``` diff --git a/docs/sdk/models/operations/getfirstcharactersglobals.md b/docs/models/operations/getfirstcharactersglobals.md similarity index 96% rename from docs/sdk/models/operations/getfirstcharactersglobals.md rename to docs/models/operations/getfirstcharactersglobals.md index 708b0082..bd3e2be0 100644 --- a/docs/sdk/models/operations/getfirstcharactersglobals.md +++ b/docs/models/operations/getfirstcharactersglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetFirstCharactersGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetFirstCharactersGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetFirstCharactersGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetFirstCharactersGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getfirstcharactersmediacontainer.md b/docs/models/operations/getfirstcharactersmediacontainer.md similarity index 96% rename from docs/sdk/models/operations/getfirstcharactersmediacontainer.md rename to docs/models/operations/getfirstcharactersmediacontainer.md index 266dc0ae..dd378439 100644 --- a/docs/sdk/models/operations/getfirstcharactersmediacontainer.md +++ b/docs/models/operations/getfirstcharactersmediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { GetFirstCharactersMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetFirstCharactersMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: GetFirstCharactersMediaContainer = {}; ``` @@ -21,4 +21,4 @@ let value: GetFirstCharactersMediaContainer = {}; | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `directory` | [operations.GetFirstCharactersDirectory](../../../sdk/models/operations/getfirstcharactersdirectory.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `directory` | [operations.GetFirstCharactersDirectory](../../models/operations/getfirstcharactersdirectory.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getfirstcharactersrequest.md b/docs/models/operations/getfirstcharactersrequest.md similarity index 99% rename from docs/sdk/models/operations/getfirstcharactersrequest.md rename to docs/models/operations/getfirstcharactersrequest.md index e80dd818..f976fbca 100644 --- a/docs/sdk/models/operations/getfirstcharactersrequest.md +++ b/docs/models/operations/getfirstcharactersrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { GetFirstCharactersRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { MediaType } from "@lukehagar/plexjs/sdk/models/shared"; +import { GetFirstCharactersRequest } from "@lukehagar/plexjs/models/operations"; +import { MediaType } from "@lukehagar/plexjs/models/shared"; let value: GetFirstCharactersRequest = { sectionId: 231024, @@ -20,7 +20,7 @@ let value: GetFirstCharactersRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -34,4 +34,4 @@ let value: GetFirstCharactersRequest = { | `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 | | -| `mediaQuery` | [shared.MediaQuery](../../../sdk/models/shared/mediaquery.md) | :heavy_minus_sign: | A querystring-based filtering language used to select subsets of media. Can be provided as an object with typed properties for type safety, or as a string for complex queries with operators and boolean logic.

The query supports:
- Fields: integer, boolean, tag, string, date, language
- Operators: =, !=, ==, !==, <=, >=, >>=, <<= (varies by field type)
- Boolean operators: & (AND), , (OR), push/pop (parentheses), or=1 (explicit OR)
- Sorting: sort parameter with :desc, :nullsLast modifiers
- Grouping: group parameter
- Limits: limit parameter

Examples:
- Object format: `{type: 4, sourceType: 2, title: "24"}` → `type=4&sourceType=2&title=24`
- String format: `type=4&sourceType=2&title==24` - type = 4 AND sourceType = 2 AND title = "24"
- Complex: `push=1&index=1&or=1&rating=2&pop=1&duration=10` - (index = 1 OR rating = 2) AND duration = 10

See [API Info section](#section/API-Info/Media-Queries) for detailed information on building media queries.
| {
"type": 4,
"sourceType": 2,
"sort": "duration:desc,index"
} | \ No newline at end of file +| `mediaQuery` | [shared.MediaQuery](../../models/shared/mediaquery.md) | :heavy_minus_sign: | A querystring-based filtering language used to select subsets of media. Can be provided as an object with typed properties for type safety, or as a string for complex queries with operators and boolean logic.

The query supports:
- Fields: integer, boolean, tag, string, date, language
- Operators: =, !=, ==, !==, <=, >=, >>=, <<= (varies by field type)
- Boolean operators: & (AND), , (OR), push/pop (parentheses), or=1 (explicit OR)
- Sorting: sort parameter with :desc, :nullsLast modifiers
- Grouping: group parameter
- Limits: limit parameter

Examples:
- Object format: `{type: 4, sourceType: 2, title: "24"}` → `type=4&sourceType=2&title=24`
- String format: `type=4&sourceType=2&title==24` - type = 4 AND sourceType = 2 AND title = "24"
- Complex: `push=1&index=1&or=1&rating=2&pop=1&duration=10` - (index = 1 OR rating = 2) AND duration = 10

See [API Info section](#section/API-Info/Media-Queries) for detailed information on building media queries.
| {
"type": 4,
"sourceType": 2,
"sort": "duration:desc,index"
} | \ No newline at end of file diff --git a/docs/models/operations/getfirstcharactersresponse.md b/docs/models/operations/getfirstcharactersresponse.md new file mode 100644 index 00000000..4c1779f4 --- /dev/null +++ b/docs/models/operations/getfirstcharactersresponse.md @@ -0,0 +1,17 @@ +# GetFirstCharactersResponse + +OK + +## Example Usage + +```typescript +import { GetFirstCharactersResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetFirstCharactersResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetFirstCharactersMediaContainer](../../models/operations/getfirstcharactersmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getfoldersdirectory.md b/docs/models/operations/getfoldersdirectory.md similarity index 87% rename from docs/sdk/models/operations/getfoldersdirectory.md rename to docs/models/operations/getfoldersdirectory.md index e6494f9f..b0582bda 100644 --- a/docs/sdk/models/operations/getfoldersdirectory.md +++ b/docs/models/operations/getfoldersdirectory.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetFoldersDirectory } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetFoldersDirectory } from "@lukehagar/plexjs/models/operations"; let value: GetFoldersDirectory = {}; ``` diff --git a/docs/sdk/models/operations/getfoldersglobals.md b/docs/models/operations/getfoldersglobals.md similarity index 96% rename from docs/sdk/models/operations/getfoldersglobals.md rename to docs/models/operations/getfoldersglobals.md index a2f29b05..c8eea7c1 100644 --- a/docs/sdk/models/operations/getfoldersglobals.md +++ b/docs/models/operations/getfoldersglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetFoldersGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetFoldersGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetFoldersGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetFoldersGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getfoldersmediacontainer.md b/docs/models/operations/getfoldersmediacontainer.md similarity index 95% rename from docs/sdk/models/operations/getfoldersmediacontainer.md rename to docs/models/operations/getfoldersmediacontainer.md index 748f941f..8089fb73 100644 --- a/docs/sdk/models/operations/getfoldersmediacontainer.md +++ b/docs/models/operations/getfoldersmediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { GetFoldersMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetFoldersMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: GetFoldersMediaContainer = {}; ``` @@ -21,4 +21,4 @@ let value: GetFoldersMediaContainer = {}; | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `directory` | [operations.GetFoldersDirectory](../../../sdk/models/operations/getfoldersdirectory.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `directory` | [operations.GetFoldersDirectory](../../models/operations/getfoldersdirectory.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getfoldersrequest.md b/docs/models/operations/getfoldersrequest.md similarity index 97% rename from docs/sdk/models/operations/getfoldersrequest.md rename to docs/models/operations/getfoldersrequest.md index 0774ffe7..e30821f0 100644 --- a/docs/sdk/models/operations/getfoldersrequest.md +++ b/docs/models/operations/getfoldersrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetFoldersRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetFoldersRequest } from "@lukehagar/plexjs/models/operations"; let value: GetFoldersRequest = { sectionId: 479308, @@ -14,7 +14,7 @@ let value: GetFoldersRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/getfoldersresponse.md b/docs/models/operations/getfoldersresponse.md new file mode 100644 index 00000000..0ec40901 --- /dev/null +++ b/docs/models/operations/getfoldersresponse.md @@ -0,0 +1,17 @@ +# GetFoldersResponse + +OK + +## Example Usage + +```typescript +import { GetFoldersResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetFoldersResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `mediaContainer` | [operations.GetFoldersMediaContainer](../../models/operations/getfoldersmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/gethistoryitemglobals.md b/docs/models/operations/gethistoryitemglobals.md similarity index 96% rename from docs/sdk/models/operations/gethistoryitemglobals.md rename to docs/models/operations/gethistoryitemglobals.md index 0794705d..9c554d37 100644 --- a/docs/sdk/models/operations/gethistoryitemglobals.md +++ b/docs/models/operations/gethistoryitemglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetHistoryItemGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetHistoryItemGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetHistoryItemGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetHistoryItemGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/gethistoryitemrequest.md b/docs/models/operations/gethistoryitemrequest.md similarity index 96% rename from docs/sdk/models/operations/gethistoryitemrequest.md rename to docs/models/operations/gethistoryitemrequest.md index 95c1f610..533b3366 100644 --- a/docs/sdk/models/operations/gethistoryitemrequest.md +++ b/docs/models/operations/gethistoryitemrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetHistoryItemRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetHistoryItemRequest } from "@lukehagar/plexjs/models/operations"; let value: GetHistoryItemRequest = { historyId: 892984, @@ -14,7 +14,7 @@ let value: GetHistoryItemRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/gethistoryitemresponse.md b/docs/models/operations/gethistoryitemresponse.md new file mode 100644 index 00000000..4abc557c --- /dev/null +++ b/docs/models/operations/gethistoryitemresponse.md @@ -0,0 +1,19 @@ +# GetHistoryItemResponse + +## Example Usage + +```typescript +import { GetHistoryItemResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetHistoryItemResponse = { + headers: {}, + result: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [shared.HistoryAllGetResponses200](../../models/shared/historyallgetresponses200.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/gethubitemsglobals.md b/docs/models/operations/gethubitemsglobals.md similarity index 96% rename from docs/sdk/models/operations/gethubitemsglobals.md rename to docs/models/operations/gethubitemsglobals.md index 361ec404..32480d87 100644 --- a/docs/sdk/models/operations/gethubitemsglobals.md +++ b/docs/models/operations/gethubitemsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetHubItemsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetHubItemsGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetHubItemsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetHubItemsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/gethubitemsrequest.md b/docs/models/operations/gethubitemsrequest.md similarity index 97% rename from docs/sdk/models/operations/gethubitemsrequest.md rename to docs/models/operations/gethubitemsrequest.md index 218b3f3a..c4088480 100644 --- a/docs/sdk/models/operations/gethubitemsrequest.md +++ b/docs/models/operations/gethubitemsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetHubItemsRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetHubItemsRequest } from "@lukehagar/plexjs/models/operations"; let value: GetHubItemsRequest = { identifier: [], @@ -14,7 +14,7 @@ let value: GetHubItemsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/gethubitemsresponse.md b/docs/models/operations/gethubitemsresponse.md new file mode 100644 index 00000000..85bfa2ba --- /dev/null +++ b/docs/models/operations/gethubitemsresponse.md @@ -0,0 +1,19 @@ +# GetHubItemsResponse + +## Example Usage + +```typescript +import { GetHubItemsResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetHubItemsResponse = { + headers: {}, + result: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [operations.GetHubItemsResponseBody](../../models/operations/gethubitemsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/gethubitemsresponsebody.md b/docs/models/operations/gethubitemsresponsebody.md similarity index 97% rename from docs/sdk/models/operations/gethubitemsresponsebody.md rename to docs/models/operations/gethubitemsresponsebody.md index 2215625e..2609974e 100644 --- a/docs/sdk/models/operations/gethubitemsresponsebody.md +++ b/docs/models/operations/gethubitemsresponsebody.md @@ -5,7 +5,7 @@ OK ## Example Usage ```typescript -import { GetHubItemsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetHubItemsResponseBody } from "@lukehagar/plexjs/models/operations"; let value: GetHubItemsResponseBody = {}; ``` @@ -14,4 +14,4 @@ let value: GetHubItemsResponseBody = {}; | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `mediaContainer` | [shared.MediaContainer](../../../sdk/models/shared/mediacontainer.md) | :heavy_minus_sign: | `MediaContainer` is the root element of most Plex API responses. It serves as a generic container for various types of content (Metadata, Hubs, Directories, etc.) and includes pagination information (offset, size, totalSize) when applicable.
Common attributes: - identifier: Unique identifier for this container - size: Number of items in this response page - totalSize: Total number of items available (for pagination) - offset: Starting index of this page (for pagination)
The container often "hoists" common attributes from its children. For example, if all tracks in a container share the same album title, the `parentTitle` attribute may appear on the MediaContainer rather than being repeated on each track.
| \ No newline at end of file +| `mediaContainer` | [shared.MediaContainer](../../models/shared/mediacontainer.md) | :heavy_minus_sign: | `MediaContainer` is the root element of most Plex API responses. It serves as a generic container for various types of content (Metadata, Hubs, Directories, etc.) and includes pagination information (offset, size, totalSize) when applicable.
Common attributes: - identifier: Unique identifier for this container - size: Number of items in this response page - totalSize: Total number of items available (for pagination) - offset: Starting index of this page (for pagination)
The container often "hoists" common attributes from its children. For example, if all tracks in a container share the same album title, the `parentTitle` attribute may appear on the MediaContainer rather than being repeated on each track.
| \ No newline at end of file diff --git a/docs/sdk/models/operations/getidentitymediacontainer.md b/docs/models/operations/getidentitymediacontainer.md similarity index 94% rename from docs/sdk/models/operations/getidentitymediacontainer.md rename to docs/models/operations/getidentitymediacontainer.md index be121b3a..beb3c9d6 100644 --- a/docs/sdk/models/operations/getidentitymediacontainer.md +++ b/docs/models/operations/getidentitymediacontainer.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetIdentityMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetIdentityMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: GetIdentityMediaContainer = {}; ``` diff --git a/docs/models/operations/getidentityresponse.md b/docs/models/operations/getidentityresponse.md new file mode 100644 index 00000000..d6f0ab18 --- /dev/null +++ b/docs/models/operations/getidentityresponse.md @@ -0,0 +1,17 @@ +# GetIdentityResponse + +OK + +## Example Usage + +```typescript +import { GetIdentityResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetIdentityResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetIdentityMediaContainer](../../models/operations/getidentitymediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getimagefrombifglobals.md b/docs/models/operations/getimagefrombifglobals.md similarity index 96% rename from docs/sdk/models/operations/getimagefrombifglobals.md rename to docs/models/operations/getimagefrombifglobals.md index 88982b4f..85e8817a 100644 --- a/docs/sdk/models/operations/getimagefrombifglobals.md +++ b/docs/models/operations/getimagefrombifglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetImageFromBifGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetImageFromBifGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetImageFromBifGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetImageFromBifGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getimagefrombifindex.md b/docs/models/operations/getimagefrombifindex.md similarity index 72% rename from docs/sdk/models/operations/getimagefrombifindex.md rename to docs/models/operations/getimagefrombifindex.md index f83a5f53..2aa05275 100644 --- a/docs/sdk/models/operations/getimagefrombifindex.md +++ b/docs/models/operations/getimagefrombifindex.md @@ -5,7 +5,7 @@ The type of index to grab. ## Example Usage ```typescript -import { GetImageFromBifIndex } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetImageFromBifIndex } from "@lukehagar/plexjs/models/operations"; let value: GetImageFromBifIndex = GetImageFromBifIndex.Sd; ``` diff --git a/docs/models/operations/getimagefrombifrequest.md b/docs/models/operations/getimagefrombifrequest.md new file mode 100644 index 00000000..faeadac0 --- /dev/null +++ b/docs/models/operations/getimagefrombifrequest.md @@ -0,0 +1,32 @@ +# GetImageFromBifRequest + +## Example Usage + +```typescript +import { GetImageFromBifIndex, GetImageFromBifRequest } from "@lukehagar/plexjs/models/operations"; + +let value: GetImageFromBifRequest = { + partId: 983252, + index: GetImageFromBifIndex.Sd, + offset: 221187, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | 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](../../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/models/operations/getimageglobals.md similarity index 97% rename from docs/sdk/models/operations/getimageglobals.md rename to docs/models/operations/getimageglobals.md index 4a3704ec..0dcf42a5 100644 --- a/docs/sdk/models/operations/getimageglobals.md +++ b/docs/models/operations/getimageglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetImageGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetImageGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetImageGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetImageGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getimagerequest.md b/docs/models/operations/getimagerequest.md similarity index 98% rename from docs/sdk/models/operations/getimagerequest.md rename to docs/models/operations/getimagerequest.md index 4e4953ba..672794aa 100644 --- a/docs/sdk/models/operations/getimagerequest.md +++ b/docs/models/operations/getimagerequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { GetImageRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { GetImageRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: GetImageRequest = { topLeft: "3f280a", @@ -21,7 +21,7 @@ let value: GetImageRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -38,4 +38,4 @@ let value: GetImageRequest = { | `bottomLeft` | *string* | :heavy_minus_sign: | The base color (hex) for the bottom left quadrant. | 1c425d | | `width` | *number* | :heavy_minus_sign: | Width in pixels for the image. | 1920 | | `height` | *number* | :heavy_minus_sign: | Height in pixels for the image. | 1080 | -| `noise` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Whether to add noise to the ouput image. Noise can reduce color banding with the gradients. Image sizes with noise will be larger. | 1 | \ No newline at end of file +| `noise` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Whether to add noise to the ouput image. Noise can reduce color banding with the gradients. Image sizes with noise will be larger. | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/getitemartworkelement.md b/docs/models/operations/getitemartworkelement.md similarity index 82% rename from docs/sdk/models/operations/getitemartworkelement.md rename to docs/models/operations/getitemartworkelement.md index 67af992e..c5da7890 100644 --- a/docs/sdk/models/operations/getitemartworkelement.md +++ b/docs/models/operations/getitemartworkelement.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetItemArtworkElement } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetItemArtworkElement } from "@lukehagar/plexjs/models/operations"; let value: GetItemArtworkElement = GetItemArtworkElement.ClearLogo; ``` diff --git a/docs/sdk/models/operations/getitemartworkglobals.md b/docs/models/operations/getitemartworkglobals.md similarity index 96% rename from docs/sdk/models/operations/getitemartworkglobals.md rename to docs/models/operations/getitemartworkglobals.md index 2bde4b35..ea122900 100644 --- a/docs/sdk/models/operations/getitemartworkglobals.md +++ b/docs/models/operations/getitemartworkglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetItemArtworkGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetItemArtworkGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetItemArtworkGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetItemArtworkGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/getitemartworkrequest.md b/docs/models/operations/getitemartworkrequest.md new file mode 100644 index 00000000..7a40b5b7 --- /dev/null +++ b/docs/models/operations/getitemartworkrequest.md @@ -0,0 +1,32 @@ +# GetItemArtworkRequest + +## Example Usage + +```typescript +import { GetItemArtworkElement, GetItemArtworkRequest } from "@lukehagar/plexjs/models/operations"; + +let value: GetItemArtworkRequest = { + ids: "", + element: GetItemArtworkElement.Art, + timestamp: 848928, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | 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](../../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/models/operations/getitemartworkresponse.md b/docs/models/operations/getitemartworkresponse.md new file mode 100644 index 00000000..97ef13ad --- /dev/null +++ b/docs/models/operations/getitemartworkresponse.md @@ -0,0 +1,17 @@ +# GetItemArtworkResponse + + +## Supported Types + +### `ReadableStream` + +```typescript +const value: ReadableStream = await openAsBlob("example.file"); +``` + +### `ReadableStream` + +```typescript +const value: ReadableStream = await openAsBlob("example.file"); +``` + diff --git a/docs/sdk/models/operations/getitemdecisionglobals.md b/docs/models/operations/getitemdecisionglobals.md similarity index 96% rename from docs/sdk/models/operations/getitemdecisionglobals.md rename to docs/models/operations/getitemdecisionglobals.md index 55a1327b..61329fee 100644 --- a/docs/sdk/models/operations/getitemdecisionglobals.md +++ b/docs/models/operations/getitemdecisionglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetItemDecisionGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetItemDecisionGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetItemDecisionGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetItemDecisionGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getitemdecisionrequest.md b/docs/models/operations/getitemdecisionrequest.md similarity index 97% rename from docs/sdk/models/operations/getitemdecisionrequest.md rename to docs/models/operations/getitemdecisionrequest.md index a0f91353..31fc94e3 100644 --- a/docs/sdk/models/operations/getitemdecisionrequest.md +++ b/docs/models/operations/getitemdecisionrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetItemDecisionRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetItemDecisionRequest } from "@lukehagar/plexjs/models/operations"; let value: GetItemDecisionRequest = { queueId: 304397, @@ -15,7 +15,7 @@ let value: GetItemDecisionRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getitemtreeglobals.md b/docs/models/operations/getitemtreeglobals.md similarity index 96% rename from docs/sdk/models/operations/getitemtreeglobals.md rename to docs/models/operations/getitemtreeglobals.md index e36123d8..995c2558 100644 --- a/docs/sdk/models/operations/getitemtreeglobals.md +++ b/docs/models/operations/getitemtreeglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetItemTreeGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetItemTreeGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetItemTreeGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetItemTreeGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getitemtreerequest.md b/docs/models/operations/getitemtreerequest.md similarity index 97% rename from docs/sdk/models/operations/getitemtreerequest.md rename to docs/models/operations/getitemtreerequest.md index 3a192552..4a067408 100644 --- a/docs/sdk/models/operations/getitemtreerequest.md +++ b/docs/models/operations/getitemtreerequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetItemTreeRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetItemTreeRequest } from "@lukehagar/plexjs/models/operations"; let value: GetItemTreeRequest = { ids: "", @@ -14,7 +14,7 @@ let value: GetItemTreeRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getlibrarydetailsglobals.md b/docs/models/operations/getlibrarydetailsglobals.md similarity index 96% rename from docs/sdk/models/operations/getlibrarydetailsglobals.md rename to docs/models/operations/getlibrarydetailsglobals.md index ff371756..21689116 100644 --- a/docs/sdk/models/operations/getlibrarydetailsglobals.md +++ b/docs/models/operations/getlibrarydetailsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetLibraryDetailsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetLibraryDetailsGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetLibraryDetailsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetLibraryDetailsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getlibrarydetailsmediacontainer.md b/docs/models/operations/getlibrarydetailsmediacontainer.md similarity index 99% rename from docs/sdk/models/operations/getlibrarydetailsmediacontainer.md rename to docs/models/operations/getlibrarydetailsmediacontainer.md index 69da3e15..e2c34aa0 100644 --- a/docs/sdk/models/operations/getlibrarydetailsmediacontainer.md +++ b/docs/models/operations/getlibrarydetailsmediacontainer.md @@ -3,8 +3,7 @@ ## Example Usage ```typescript -import { GetLibraryDetailsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { GetLibraryDetailsMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: GetLibraryDetailsMediaContainer = { directory: [ @@ -162,7 +161,7 @@ let value: GetLibraryDetailsMediaContainer = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -211,7 +210,7 @@ let value: GetLibraryDetailsMediaContainer = { | `content` | *string* | :heavy_minus_sign: | The flavors of directory found here:
- Primary: (e.g. all, On Deck) These are still used in some clients to provide "shortcuts" to subsets of media. However, with the exception of On Deck, all of them can be created by media queries, and the desire is to allow these to be customized by users.
- Secondary: These are marked with `"secondary": true` and were used by old clients to provide nested menus allowing for primative (but structured) navigation.
- Special: There is a By Folder entry which allows browsing the media by the underlying filesystem structure, and there's a completely obsolete entry marked `"search": true` which used to be used to allow clients to build search dialogs on the fly. | | `allowSync` | *boolean* | :heavy_minus_sign: | N/A | | `art` | *string* | :heavy_minus_sign: | N/A | -| `directory` | [shared.Metadata](../../../sdk/models/shared/metadata.md)[] | :heavy_minus_sign: | N/A | +| `directory` | [shared.Metadata](../../models/shared/metadata.md)[] | :heavy_minus_sign: | N/A | | `identifier` | *string* | :heavy_minus_sign: | N/A | | `librarySectionID` | *number* | :heavy_minus_sign: | N/A | | `mediaTagPrefix` | *string* | :heavy_minus_sign: | N/A | diff --git a/docs/sdk/models/operations/getlibrarydetailsrequest.md b/docs/models/operations/getlibrarydetailsrequest.md similarity index 98% rename from docs/sdk/models/operations/getlibrarydetailsrequest.md rename to docs/models/operations/getlibrarydetailsrequest.md index 20f57521..3a6fd999 100644 --- a/docs/sdk/models/operations/getlibrarydetailsrequest.md +++ b/docs/models/operations/getlibrarydetailsrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { GetLibraryDetailsRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { GetLibraryDetailsRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: GetLibraryDetailsRequest = { sectionId: "", @@ -16,7 +16,7 @@ let value: GetLibraryDetailsRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -28,4 +28,4 @@ let value: GetLibraryDetailsRequest = { | `deviceName` | *string* | :heavy_minus_sign: | 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 +| `includeDetails` | [shared.BoolInt](../../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/getlibrarydetailsresponsebody.md b/docs/models/operations/getlibrarydetailsresponse.md similarity index 87% rename from docs/sdk/models/operations/getlibrarydetailsresponsebody.md rename to docs/models/operations/getlibrarydetailsresponse.md index 20d429cd..0a5d992c 100644 --- a/docs/sdk/models/operations/getlibrarydetailsresponsebody.md +++ b/docs/models/operations/getlibrarydetailsresponse.md @@ -1,14 +1,13 @@ -# GetLibraryDetailsResponseBody +# GetLibraryDetailsResponse OK ## Example Usage ```typescript -import { GetLibraryDetailsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { GetLibraryDetailsResponse } from "@lukehagar/plexjs/models/operations"; -let value: GetLibraryDetailsResponseBody = { +let value: GetLibraryDetailsResponse = { mediaContainer: { directory: [ { @@ -165,7 +164,7 @@ let value: GetLibraryDetailsResponseBody = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -210,6 +209,6 @@ let value: GetLibraryDetailsResponseBody = { ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.GetLibraryDetailsMediaContainer](../../../sdk/models/operations/getlibrarydetailsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetLibraryDetailsMediaContainer](../../models/operations/getlibrarydetailsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getlibraryitemsglobals.md b/docs/models/operations/getlibraryitemsglobals.md similarity index 96% rename from docs/sdk/models/operations/getlibraryitemsglobals.md rename to docs/models/operations/getlibraryitemsglobals.md index 3ebf6ff1..37fdeaff 100644 --- a/docs/sdk/models/operations/getlibraryitemsglobals.md +++ b/docs/models/operations/getlibraryitemsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetLibraryItemsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetLibraryItemsGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetLibraryItemsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetLibraryItemsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getlibraryitemsrequest.md b/docs/models/operations/getlibraryitemsrequest.md similarity index 99% rename from docs/sdk/models/operations/getlibraryitemsrequest.md rename to docs/models/operations/getlibraryitemsrequest.md index 75e55340..974df3c2 100644 --- a/docs/sdk/models/operations/getlibraryitemsrequest.md +++ b/docs/models/operations/getlibraryitemsrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { GetLibraryItemsRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { MediaType } from "@lukehagar/plexjs/sdk/models/shared"; +import { GetLibraryItemsRequest } from "@lukehagar/plexjs/models/operations"; +import { MediaType } from "@lukehagar/plexjs/models/shared"; let value: GetLibraryItemsRequest = { mediaQuery: { @@ -19,7 +19,7 @@ let value: GetLibraryItemsRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -30,4 +30,4 @@ let value: GetLibraryItemsRequest = { | `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | | `deviceName` | *string* | :heavy_minus_sign: | 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: | A querystring-based filtering language used to select subsets of media. Can be provided as an object with typed properties for type safety, or as a string for complex queries with operators and boolean logic.

The query supports:
- Fields: integer, boolean, tag, string, date, language
- Operators: =, !=, ==, !==, <=, >=, >>=, <<= (varies by field type)
- Boolean operators: & (AND), , (OR), push/pop (parentheses), or=1 (explicit OR)
- Sorting: sort parameter with :desc, :nullsLast modifiers
- Grouping: group parameter
- Limits: limit parameter

Examples:
- Object format: `{type: 4, sourceType: 2, title: "24"}` → `type=4&sourceType=2&title=24`
- String format: `type=4&sourceType=2&title==24` - type = 4 AND sourceType = 2 AND title = "24"
- Complex: `push=1&index=1&or=1&rating=2&pop=1&duration=10` - (index = 1 OR rating = 2) AND duration = 10

See [API Info section](#section/API-Info/Media-Queries) for detailed information on building media queries.
| {
"type": 4,
"sourceType": 2,
"sort": "duration:desc,index"
} | \ No newline at end of file +| `mediaQuery` | [shared.MediaQuery](../../models/shared/mediaquery.md) | :heavy_minus_sign: | A querystring-based filtering language used to select subsets of media. Can be provided as an object with typed properties for type safety, or as a string for complex queries with operators and boolean logic.

The query supports:
- Fields: integer, boolean, tag, string, date, language
- Operators: =, !=, ==, !==, <=, >=, >>=, <<= (varies by field type)
- Boolean operators: & (AND), , (OR), push/pop (parentheses), or=1 (explicit OR)
- Sorting: sort parameter with :desc, :nullsLast modifiers
- Grouping: group parameter
- Limits: limit parameter

Examples:
- Object format: `{type: 4, sourceType: 2, title: "24"}` → `type=4&sourceType=2&title=24`
- String format: `type=4&sourceType=2&title==24` - type = 4 AND sourceType = 2 AND title = "24"
- Complex: `push=1&index=1&or=1&rating=2&pop=1&duration=10` - (index = 1 OR rating = 2) AND duration = 10

See [API Info section](#section/API-Info/Media-Queries) for detailed information on building media queries.
| {
"type": 4,
"sourceType": 2,
"sort": "duration:desc,index"
} | \ No newline at end of file diff --git a/docs/models/operations/getlibraryitemsresponse.md b/docs/models/operations/getlibraryitemsresponse.md new file mode 100644 index 00000000..9ce2e685 --- /dev/null +++ b/docs/models/operations/getlibraryitemsresponse.md @@ -0,0 +1,223 @@ +# GetLibraryItemsResponse + +## Example Usage + +```typescript +import { GetLibraryItemsResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetLibraryItemsResponse = { + headers: { + "key": [], + "key1": [ + "", + "", + "", + ], + }, + result: { + mediaContainer: { + metadata: [ + { + title: "", + type: "", + addedAt: 29550, + art: "/library/metadata/58683/art/1703239236", + autotag: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + chapterSource: "media", + childCount: 1, + country: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + director: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + genre: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + grandparentGuid: "plex://show/5d9c081b170e24001f2a7be4", + guid: "plex://movie/5d7768ba96b655001fdc0408", + guids: [ + { + id: + "{\"imdbExample\":{\"summary\":\"IMDB example\",\"value\":\"imdb://tt13015952\"},\"tmdbExample\":{\"summary\":\"TMDB example\",\"value\":\"tmdb://2434012\"},\"tvdbExample\":{\"summary\":\"TVDB example\",\"value\":\"tvdb://7945991\"}}", + }, + ], + key: "", + lastViewedAt: 1556281940, + 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: [ + { + accessible: true, + audioProfile: "lc", + container: "mov", + duration: 150192, + exists: true, + file: "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", + has64bitOffsets: false, + id: 1, + indexes: "sd", + key: "/library/parts/1/1531779263/file.mov", + optimizedForStreaming: false, + size: 105355654, + stream: [ + { + default: true, + audioChannelLayout: "5.1(side)", + channels: 6, + bitDepth: 10, + doviblCompatID: 1, + doviblPresent: true, + dovielPresent: false, + doviLevel: 6, + doviPresent: true, + doviProfile: 8, + dovirpuPresent: true, + doviVersion: "1.0", + bitrate: 24743, + canAutoSync: false, + chromaLocation: "topleft", + chromaSubsampling: "4:2:0", + codedHeight: 1608, + codedWidth: 3840, + closedCaptions: true, + codec: "hevc", + colorPrimaries: "bt2020", + colorRange: "tv", + colorSpace: "bt2020nc", + colorTrc: "smpte2084", + displayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + extendedDisplayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + frameRate: 23.976, + hasScalingMatrix: false, + height: 1602, + id: 1002625, + index: 0, + key: "/library/streams/216389", + language: "English", + languageCode: "eng", + languageTag: "en", + format: "srt", + headerCompression: true, + level: 150, + original: true, + profile: "main 10", + refFrames: 1, + samplingRate: 48000, + scanType: "progressive", + embeddedInVideo: "progressive", + selected: true, + forced: true, + hearingImpaired: true, + dub: true, + title: "SDH", + streamIdentifier: 1, + width: 3840, + }, + ], + videoProfile: "main", + }, + ], + videoCodec: "h264", + videoFrameRate: "24p", + videoProfile: "main", + videoResolution: "720", + width: 1280, + }, + ], + originallyAvailableAt: new Date("2022-12-14"), + parentGuid: "plex://show/5d9c081b170e24001f2a7be4", + ratingArray: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + role: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + theme: "/library/metadata/1/theme/1705636920", + thumb: "/library/metadata/58683/thumb/1703239236", + writer: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [shared.MediaContainerWithMetadata](../../models/shared/mediacontainerwithmetadata.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getlibrarymatchesglobals.md b/docs/models/operations/getlibrarymatchesglobals.md similarity index 96% rename from docs/sdk/models/operations/getlibrarymatchesglobals.md rename to docs/models/operations/getlibrarymatchesglobals.md index a3010fb3..a4bda200 100644 --- a/docs/sdk/models/operations/getlibrarymatchesglobals.md +++ b/docs/models/operations/getlibrarymatchesglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetLibraryMatchesGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetLibraryMatchesGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetLibraryMatchesGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetLibraryMatchesGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getlibrarymatchesrequest.md b/docs/models/operations/getlibrarymatchesrequest.md similarity index 98% rename from docs/sdk/models/operations/getlibrarymatchesrequest.md rename to docs/models/operations/getlibrarymatchesrequest.md index f4bde7ad..9ddabbc1 100644 --- a/docs/sdk/models/operations/getlibrarymatchesrequest.md +++ b/docs/models/operations/getlibrarymatchesrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { GetLibraryMatchesRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt, MediaType } from "@lukehagar/plexjs/sdk/models/shared"; +import { GetLibraryMatchesRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt, MediaType } from "@lukehagar/plexjs/models/shared"; let value: GetLibraryMatchesRequest = { type: MediaType.TvShow, @@ -18,7 +18,7 @@ let value: GetLibraryMatchesRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -29,10 +29,10 @@ let value: GetLibraryMatchesRequest = { | `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | | `deviceName` | *string* | :heavy_minus_sign: | 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` | [shared.MediaType](../../../sdk/models/shared/mediatype.md) | :heavy_minus_sign: | The type of media to retrieve or filter by.

1 = movie
2 = show
3 = season
4 = episode
5 = artist
6 = album
7 = track
8 = photo_album
9 = photo

E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
| 2 | -| `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 | -| `includeAlternateMetadataSources` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | N/A | 1 | +| `type` | [shared.MediaType](../../models/shared/mediatype.md) | :heavy_minus_sign: | The type of media to retrieve or filter by.

1 = movie
2 = show
3 = season
4 = episode
5 = artist
6 = album
7 = track
8 = photo_album
9 = photo

E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
| 2 | +| `includeFullMetadata` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | N/A | 1 | +| `includeAncestorMetadata` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | N/A | 1 | +| `includeAlternateMetadataSources` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | N/A | 1 | | `guid` | *string* | :heavy_minus_sign: | Used for movies, shows, artists, albums, and tracks. Allowed for various URI schemes, to be defined. | | | `title` | *string* | :heavy_minus_sign: | The title to filter by or assign | | | `year` | *number* | :heavy_minus_sign: | Used for movies shows, and albums. Optional. | | diff --git a/docs/models/operations/getlibrarymatchesresponse.md b/docs/models/operations/getlibrarymatchesresponse.md new file mode 100644 index 00000000..f475dad1 --- /dev/null +++ b/docs/models/operations/getlibrarymatchesresponse.md @@ -0,0 +1,220 @@ +# GetLibraryMatchesResponse + +## Example Usage + +```typescript +import { GetLibraryMatchesResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetLibraryMatchesResponse = { + headers: { + "key": [ + "", + ], + }, + result: { + mediaContainer: { + metadata: [ + { + title: "", + type: "", + addedAt: 29550, + art: "/library/metadata/58683/art/1703239236", + autotag: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + chapterSource: "media", + childCount: 1, + country: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + director: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + genre: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + grandparentGuid: "plex://show/5d9c081b170e24001f2a7be4", + guid: "plex://movie/5d7768ba96b655001fdc0408", + guids: [ + { + id: + "{\"imdbExample\":{\"summary\":\"IMDB example\",\"value\":\"imdb://tt13015952\"},\"tmdbExample\":{\"summary\":\"TMDB example\",\"value\":\"tmdb://2434012\"},\"tvdbExample\":{\"summary\":\"TVDB example\",\"value\":\"tvdb://7945991\"}}", + }, + ], + key: "", + lastViewedAt: 1556281940, + 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: [ + { + accessible: true, + audioProfile: "lc", + container: "mov", + duration: 150192, + exists: true, + file: "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", + has64bitOffsets: false, + id: 1, + indexes: "sd", + key: "/library/parts/1/1531779263/file.mov", + optimizedForStreaming: false, + size: 105355654, + stream: [ + { + default: true, + audioChannelLayout: "5.1(side)", + channels: 6, + bitDepth: 10, + doviblCompatID: 1, + doviblPresent: true, + dovielPresent: false, + doviLevel: 6, + doviPresent: true, + doviProfile: 8, + dovirpuPresent: true, + doviVersion: "1.0", + bitrate: 24743, + canAutoSync: false, + chromaLocation: "topleft", + chromaSubsampling: "4:2:0", + codedHeight: 1608, + codedWidth: 3840, + closedCaptions: true, + codec: "hevc", + colorPrimaries: "bt2020", + colorRange: "tv", + colorSpace: "bt2020nc", + colorTrc: "smpte2084", + displayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + extendedDisplayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + frameRate: 23.976, + hasScalingMatrix: false, + height: 1602, + id: 1002625, + index: 0, + key: "/library/streams/216389", + language: "English", + languageCode: "eng", + languageTag: "en", + format: "srt", + headerCompression: true, + level: 150, + original: true, + profile: "main 10", + refFrames: 1, + samplingRate: 48000, + scanType: "progressive", + embeddedInVideo: "progressive", + selected: true, + forced: true, + hearingImpaired: true, + dub: true, + title: "SDH", + streamIdentifier: 1, + width: 3840, + }, + ], + videoProfile: "main", + }, + ], + videoCodec: "h264", + videoFrameRate: "24p", + videoProfile: "main", + videoResolution: "720", + width: 1280, + }, + ], + originallyAvailableAt: new Date("2022-12-14"), + parentGuid: "plex://show/5d9c081b170e24001f2a7be4", + ratingArray: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + role: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + theme: "/library/metadata/1/theme/1705636920", + thumb: "/library/metadata/58683/thumb/1703239236", + writer: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [shared.MediaContainerWithMetadata](../../models/shared/mediacontainerwithmetadata.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getlineupchannelsglobals.md b/docs/models/operations/getlineupchannelsglobals.md similarity index 96% rename from docs/sdk/models/operations/getlineupchannelsglobals.md rename to docs/models/operations/getlineupchannelsglobals.md index 668652ca..3f9f7de4 100644 --- a/docs/sdk/models/operations/getlineupchannelsglobals.md +++ b/docs/models/operations/getlineupchannelsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetLineupChannelsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetLineupChannelsGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetLineupChannelsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetLineupChannelsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getlineupchannelsmediacontainer.md b/docs/models/operations/getlineupchannelsmediacontainer.md similarity index 96% rename from docs/sdk/models/operations/getlineupchannelsmediacontainer.md rename to docs/models/operations/getlineupchannelsmediacontainer.md index 19b348db..5f144c9e 100644 --- a/docs/sdk/models/operations/getlineupchannelsmediacontainer.md +++ b/docs/models/operations/getlineupchannelsmediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { GetLineupChannelsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetLineupChannelsMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: GetLineupChannelsMediaContainer = {}; ``` @@ -21,4 +21,4 @@ let value: GetLineupChannelsMediaContainer = {}; | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `lineup` | [operations.Lineup](../../../sdk/models/operations/lineup.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `lineup` | [operations.Lineup](../../models/operations/lineup.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getlineupchannelsrequest.md b/docs/models/operations/getlineupchannelsrequest.md similarity index 96% rename from docs/sdk/models/operations/getlineupchannelsrequest.md rename to docs/models/operations/getlineupchannelsrequest.md index e052cbe8..29c15501 100644 --- a/docs/sdk/models/operations/getlineupchannelsrequest.md +++ b/docs/models/operations/getlineupchannelsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetLineupChannelsRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetLineupChannelsRequest } from "@lukehagar/plexjs/models/operations"; let value: GetLineupChannelsRequest = { lineup: [], @@ -14,7 +14,7 @@ let value: GetLineupChannelsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/getlineupchannelsresponse.md b/docs/models/operations/getlineupchannelsresponse.md new file mode 100644 index 00000000..7b99a5cc --- /dev/null +++ b/docs/models/operations/getlineupchannelsresponse.md @@ -0,0 +1,17 @@ +# GetLineupChannelsResponse + +OK + +## Example Usage + +```typescript +import { GetLineupChannelsResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetLineupChannelsResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetLineupChannelsMediaContainer](../../models/operations/getlineupchannelsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getlineupglobals.md b/docs/models/operations/getlineupglobals.md similarity index 97% rename from docs/sdk/models/operations/getlineupglobals.md rename to docs/models/operations/getlineupglobals.md index c4ba0b82..2e0a1f66 100644 --- a/docs/sdk/models/operations/getlineupglobals.md +++ b/docs/models/operations/getlineupglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetLineupGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetLineupGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetLineupGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetLineupGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getlineuprequest.md b/docs/models/operations/getlineuprequest.md similarity index 97% rename from docs/sdk/models/operations/getlineuprequest.md rename to docs/models/operations/getlineuprequest.md index 76b68cf5..a6d4a20a 100644 --- a/docs/sdk/models/operations/getlineuprequest.md +++ b/docs/models/operations/getlineuprequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetLineupRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetLineupRequest } from "@lukehagar/plexjs/models/operations"; let value: GetLineupRequest = { deviceQueryParameter: "", @@ -15,7 +15,7 @@ let value: GetLineupRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/getlineupresponse.md b/docs/models/operations/getlineupresponse.md new file mode 100644 index 00000000..337f42c9 --- /dev/null +++ b/docs/models/operations/getlineupresponse.md @@ -0,0 +1,23 @@ +# GetLineupResponse + +## Example Usage + +```typescript +import { GetLineupResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetLineupResponse = { + headers: { + "key": [], + "key1": [ + "", + "", + ], + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------- | -------------------------- | -------------------------- | -------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getlivetvsessionglobals.md b/docs/models/operations/getlivetvsessionglobals.md similarity index 96% rename from docs/sdk/models/operations/getlivetvsessionglobals.md rename to docs/models/operations/getlivetvsessionglobals.md index 65d81fa7..afd75002 100644 --- a/docs/sdk/models/operations/getlivetvsessionglobals.md +++ b/docs/models/operations/getlivetvsessionglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetLiveTVSessionGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetLiveTVSessionGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetLiveTVSessionGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetLiveTVSessionGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getlivetvsessionrequest.md b/docs/models/operations/getlivetvsessionrequest.md similarity index 96% rename from docs/sdk/models/operations/getlivetvsessionrequest.md rename to docs/models/operations/getlivetvsessionrequest.md index 075df5bd..899c64ef 100644 --- a/docs/sdk/models/operations/getlivetvsessionrequest.md +++ b/docs/models/operations/getlivetvsessionrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetLiveTVSessionRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetLiveTVSessionRequest } from "@lukehagar/plexjs/models/operations"; let value: GetLiveTVSessionRequest = { sessionId: "", @@ -14,7 +14,7 @@ let value: GetLiveTVSessionRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/getlivetvsessionresponse.md b/docs/models/operations/getlivetvsessionresponse.md new file mode 100644 index 00000000..354fe8d9 --- /dev/null +++ b/docs/models/operations/getlivetvsessionresponse.md @@ -0,0 +1,224 @@ +# GetLiveTVSessionResponse + +## Example Usage + +```typescript +import { GetLiveTVSessionResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetLiveTVSessionResponse = { + headers: { + "key": [ + "", + ], + "key1": [ + "", + "", + ], + }, + result: { + mediaContainer: { + metadata: [ + { + title: "", + type: "", + addedAt: 29550, + art: "/library/metadata/58683/art/1703239236", + autotag: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + chapterSource: "media", + childCount: 1, + country: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + director: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + genre: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + grandparentGuid: "plex://show/5d9c081b170e24001f2a7be4", + guid: "plex://movie/5d7768ba96b655001fdc0408", + guids: [ + { + id: + "{\"imdbExample\":{\"summary\":\"IMDB example\",\"value\":\"imdb://tt13015952\"},\"tmdbExample\":{\"summary\":\"TMDB example\",\"value\":\"tmdb://2434012\"},\"tvdbExample\":{\"summary\":\"TVDB example\",\"value\":\"tvdb://7945991\"}}", + }, + ], + key: "", + lastViewedAt: 1556281940, + 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: [ + { + accessible: true, + audioProfile: "lc", + container: "mov", + duration: 150192, + exists: true, + file: "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", + has64bitOffsets: false, + id: 1, + indexes: "sd", + key: "/library/parts/1/1531779263/file.mov", + optimizedForStreaming: false, + size: 105355654, + stream: [ + { + default: true, + audioChannelLayout: "5.1(side)", + channels: 6, + bitDepth: 10, + doviblCompatID: 1, + doviblPresent: true, + dovielPresent: false, + doviLevel: 6, + doviPresent: true, + doviProfile: 8, + dovirpuPresent: true, + doviVersion: "1.0", + bitrate: 24743, + canAutoSync: false, + chromaLocation: "topleft", + chromaSubsampling: "4:2:0", + codedHeight: 1608, + codedWidth: 3840, + closedCaptions: true, + codec: "hevc", + colorPrimaries: "bt2020", + colorRange: "tv", + colorSpace: "bt2020nc", + colorTrc: "smpte2084", + displayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + extendedDisplayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + frameRate: 23.976, + hasScalingMatrix: false, + height: 1602, + id: 1002625, + index: 0, + key: "/library/streams/216389", + language: "English", + languageCode: "eng", + languageTag: "en", + format: "srt", + headerCompression: true, + level: 150, + original: true, + profile: "main 10", + refFrames: 1, + samplingRate: 48000, + scanType: "progressive", + embeddedInVideo: "progressive", + selected: true, + forced: true, + hearingImpaired: true, + dub: true, + title: "SDH", + streamIdentifier: 1, + width: 3840, + }, + ], + videoProfile: "main", + }, + ], + videoCodec: "h264", + videoFrameRate: "24p", + videoProfile: "main", + videoResolution: "720", + width: 1280, + }, + ], + originallyAvailableAt: new Date("2022-12-14"), + parentGuid: "plex://show/5d9c081b170e24001f2a7be4", + ratingArray: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + role: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + theme: "/library/metadata/1/theme/1705636920", + thumb: "/library/metadata/58683/thumb/1703239236", + writer: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [shared.MediaContainerWithMetadata](../../models/shared/mediacontainerwithmetadata.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getmediapartglobals.md b/docs/models/operations/getmediapartglobals.md similarity index 96% rename from docs/sdk/models/operations/getmediapartglobals.md rename to docs/models/operations/getmediapartglobals.md index 15a61b73..86415313 100644 --- a/docs/sdk/models/operations/getmediapartglobals.md +++ b/docs/models/operations/getmediapartglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetMediaPartGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetMediaPartGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetMediaPartGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetMediaPartGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getmediapartrequest.md b/docs/models/operations/getmediapartrequest.md similarity index 97% rename from docs/sdk/models/operations/getmediapartrequest.md rename to docs/models/operations/getmediapartrequest.md index bedf4ec9..cfcfe4de 100644 --- a/docs/sdk/models/operations/getmediapartrequest.md +++ b/docs/models/operations/getmediapartrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { GetMediaPartRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { GetMediaPartRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: GetMediaPartRequest = { partId: 488589, @@ -18,7 +18,7 @@ let value: GetMediaPartRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -32,4 +32,4 @@ let value: GetMediaPartRequest = { | `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 | | -| `download` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Whether this is a file download | 1 | \ No newline at end of file +| `download` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Whether this is a file download | 1 | \ No newline at end of file diff --git a/docs/models/operations/getmediapartresponse.md b/docs/models/operations/getmediapartresponse.md new file mode 100644 index 00000000..442d8044 --- /dev/null +++ b/docs/models/operations/getmediapartresponse.md @@ -0,0 +1,23 @@ +# GetMediaPartResponse + +## Example Usage + +```typescript +import { GetMediaPartResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetMediaPartResponse = { + headers: { + "key": [ + "", + "", + "", + ], + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------- | -------------------------- | -------------------------- | -------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getmetadatahubsglobals.md b/docs/models/operations/getmetadatahubsglobals.md similarity index 96% rename from docs/sdk/models/operations/getmetadatahubsglobals.md rename to docs/models/operations/getmetadatahubsglobals.md index 158df4c7..97498ddd 100644 --- a/docs/sdk/models/operations/getmetadatahubsglobals.md +++ b/docs/models/operations/getmetadatahubsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetMetadataHubsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetMetadataHubsGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetMetadataHubsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetMetadataHubsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getmetadatahubsrequest.md b/docs/models/operations/getmetadatahubsrequest.md similarity index 96% rename from docs/sdk/models/operations/getmetadatahubsrequest.md rename to docs/models/operations/getmetadatahubsrequest.md index 506d436b..73e49283 100644 --- a/docs/sdk/models/operations/getmetadatahubsrequest.md +++ b/docs/models/operations/getmetadatahubsrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { GetMetadataHubsRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { GetMetadataHubsRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: GetMetadataHubsRequest = { metadataId: 795565, @@ -16,7 +16,7 @@ let value: GetMetadataHubsRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -29,4 +29,4 @@ let value: GetMetadataHubsRequest = { | `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 +| `onlyTransient` | [shared.BoolInt](../../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/models/operations/getmetadatahubsresponse.md b/docs/models/operations/getmetadatahubsresponse.md new file mode 100644 index 00000000..86123115 --- /dev/null +++ b/docs/models/operations/getmetadatahubsresponse.md @@ -0,0 +1,234 @@ +# GetMetadataHubsResponse + +## Example Usage + +```typescript +import { GetMetadataHubsResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetMetadataHubsResponse = { + headers: { + "key": [], + "key1": [], + "key2": [ + "", + ], + }, + result: { + mediaContainer: { + hub: [ + { + type: "track", + context: "hub.home.onDeck", + hubIdentifier: "home.onDeck", + key: "/hubs/sections/home/onDeck", + metadata: [ + { + title: "", + type: "", + addedAt: 29550, + art: "/library/metadata/58683/art/1703239236", + autotag: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + chapterSource: "media", + childCount: 1, + country: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + director: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + genre: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + grandparentGuid: "plex://show/5d9c081b170e24001f2a7be4", + guid: "plex://movie/5d7768ba96b655001fdc0408", + guids: [ + { + id: + "{\"imdbExample\":{\"summary\":\"IMDB example\",\"value\":\"imdb://tt13015952\"},\"tmdbExample\":{\"summary\":\"TMDB example\",\"value\":\"tmdb://2434012\"},\"tvdbExample\":{\"summary\":\"TVDB example\",\"value\":\"tvdb://7945991\"}}", + }, + ], + key: "", + lastViewedAt: 1556281940, + 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: [ + { + accessible: true, + audioProfile: "lc", + container: "mov", + duration: 150192, + exists: true, + file: + "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", + has64bitOffsets: false, + id: 1, + indexes: "sd", + key: "/library/parts/1/1531779263/file.mov", + optimizedForStreaming: false, + size: 105355654, + stream: [ + { + default: true, + audioChannelLayout: "5.1(side)", + channels: 6, + bitDepth: 10, + doviblCompatID: 1, + doviblPresent: true, + dovielPresent: false, + doviLevel: 6, + doviPresent: true, + doviProfile: 8, + dovirpuPresent: true, + doviVersion: "1.0", + bitrate: 24743, + canAutoSync: false, + chromaLocation: "topleft", + chromaSubsampling: "4:2:0", + codedHeight: 1608, + codedWidth: 3840, + closedCaptions: true, + codec: "hevc", + colorPrimaries: "bt2020", + colorRange: "tv", + colorSpace: "bt2020nc", + colorTrc: "smpte2084", + displayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + extendedDisplayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + frameRate: 23.976, + hasScalingMatrix: false, + height: 1602, + id: 1002625, + index: 0, + key: "/library/streams/216389", + language: "English", + languageCode: "eng", + languageTag: "en", + format: "srt", + headerCompression: true, + level: 150, + original: true, + profile: "main 10", + refFrames: 1, + samplingRate: 48000, + scanType: "progressive", + embeddedInVideo: "progressive", + selected: true, + forced: true, + hearingImpaired: true, + dub: true, + title: "SDH", + streamIdentifier: 1, + width: 3840, + }, + ], + videoProfile: "main", + }, + ], + videoCodec: "h264", + videoFrameRate: "24p", + videoProfile: "main", + videoResolution: "720", + width: 1280, + }, + ], + originallyAvailableAt: new Date("2022-12-14"), + parentGuid: "plex://show/5d9c081b170e24001f2a7be4", + ratingArray: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + role: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + theme: "/library/metadata/1/theme/1705636920", + thumb: "/library/metadata/58683/thumb/1703239236", + writer: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + }, + ], + size: 1, + subtype: "podcast", + totalSize: 8, + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [shared.MediaContainerWithHubs](../../models/shared/mediacontainerwithhubs.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getmetadataitemglobals.md b/docs/models/operations/getmetadataitemglobals.md similarity index 96% rename from docs/sdk/models/operations/getmetadataitemglobals.md rename to docs/models/operations/getmetadataitemglobals.md index b64eee6d..6e447b2c 100644 --- a/docs/sdk/models/operations/getmetadataitemglobals.md +++ b/docs/models/operations/getmetadataitemglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetMetadataItemGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetMetadataItemGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetMetadataItemGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetMetadataItemGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getmetadataitemrequest.md b/docs/models/operations/getmetadataitemrequest.md similarity index 96% rename from docs/sdk/models/operations/getmetadataitemrequest.md rename to docs/models/operations/getmetadataitemrequest.md index e1ed451b..3b10a6db 100644 --- a/docs/sdk/models/operations/getmetadataitemrequest.md +++ b/docs/models/operations/getmetadataitemrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { GetMetadataItemRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { GetMetadataItemRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: GetMetadataItemRequest = { ids: [], @@ -23,7 +23,7 @@ let value: GetMetadataItemRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -35,11 +35,11 @@ let value: GetMetadataItemRequest = { | `deviceName` | *string* | :heavy_minus_sign: | 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 | -| `asyncRefreshAnalysis` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Determines if analysis refresh should be performed asynchronously. An activity is created to indicate progress. Default is false. | 1 | -| `checkFiles` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Determines if file check should be performed synchronously. Specifying `asyncCheckFiles` will cause this option to be ignored. Default is false. | 1 | -| `skipRefresh` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Determines if synchronous local media agent and analysis refresh should be skipped. Specifying async versions will cause synchronous versions to be skipped. Default is false. | 1 | -| `checkFileAvailability` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Determines if file existence check should be performed synchronously. Specifying `checkFiles` will imply this option. Default is false. | 1 | -| `asyncAugmentMetadata` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Add metadata augmentations. An activity is created to indicate progress. Option will be ignored if specified by non-admin or if multiple metadata items are requested. Default is false. | 1 | -| `augmentCount` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Number of augmentations to add. Requires `asyncAugmentMetadata` to be specified. | 1 | \ No newline at end of file +| `asyncCheckFiles` | [shared.BoolInt](../../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](../../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 | +| `asyncRefreshAnalysis` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Determines if analysis refresh should be performed asynchronously. An activity is created to indicate progress. Default is false. | 1 | +| `checkFiles` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Determines if file check should be performed synchronously. Specifying `asyncCheckFiles` will cause this option to be ignored. Default is false. | 1 | +| `skipRefresh` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Determines if synchronous local media agent and analysis refresh should be skipped. Specifying async versions will cause synchronous versions to be skipped. Default is false. | 1 | +| `checkFileAvailability` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Determines if file existence check should be performed synchronously. Specifying `checkFiles` will imply this option. Default is false. | 1 | +| `asyncAugmentMetadata` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Add metadata augmentations. An activity is created to indicate progress. Option will be ignored if specified by non-admin or if multiple metadata items are requested. Default is false. | 1 | +| `augmentCount` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Number of augmentations to add. Requires `asyncAugmentMetadata` to be specified. | 1 | \ No newline at end of file diff --git a/docs/models/operations/getmetadataitemresponse.md b/docs/models/operations/getmetadataitemresponse.md new file mode 100644 index 00000000..4dbe9284 --- /dev/null +++ b/docs/models/operations/getmetadataitemresponse.md @@ -0,0 +1,221 @@ +# GetMetadataItemResponse + +## Example Usage + +```typescript +import { GetMetadataItemResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetMetadataItemResponse = { + headers: { + "key": [ + "", + "", + ], + }, + result: { + mediaContainer: { + metadata: [ + { + title: "", + type: "", + addedAt: 29550, + art: "/library/metadata/58683/art/1703239236", + autotag: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + chapterSource: "media", + childCount: 1, + country: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + director: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + genre: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + grandparentGuid: "plex://show/5d9c081b170e24001f2a7be4", + guid: "plex://movie/5d7768ba96b655001fdc0408", + guids: [ + { + id: + "{\"imdbExample\":{\"summary\":\"IMDB example\",\"value\":\"imdb://tt13015952\"},\"tmdbExample\":{\"summary\":\"TMDB example\",\"value\":\"tmdb://2434012\"},\"tvdbExample\":{\"summary\":\"TVDB example\",\"value\":\"tvdb://7945991\"}}", + }, + ], + key: "", + lastViewedAt: 1556281940, + 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: [ + { + accessible: true, + audioProfile: "lc", + container: "mov", + duration: 150192, + exists: true, + file: "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", + has64bitOffsets: false, + id: 1, + indexes: "sd", + key: "/library/parts/1/1531779263/file.mov", + optimizedForStreaming: false, + size: 105355654, + stream: [ + { + default: true, + audioChannelLayout: "5.1(side)", + channels: 6, + bitDepth: 10, + doviblCompatID: 1, + doviblPresent: true, + dovielPresent: false, + doviLevel: 6, + doviPresent: true, + doviProfile: 8, + dovirpuPresent: true, + doviVersion: "1.0", + bitrate: 24743, + canAutoSync: false, + chromaLocation: "topleft", + chromaSubsampling: "4:2:0", + codedHeight: 1608, + codedWidth: 3840, + closedCaptions: true, + codec: "hevc", + colorPrimaries: "bt2020", + colorRange: "tv", + colorSpace: "bt2020nc", + colorTrc: "smpte2084", + displayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + extendedDisplayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + frameRate: 23.976, + hasScalingMatrix: false, + height: 1602, + id: 1002625, + index: 0, + key: "/library/streams/216389", + language: "English", + languageCode: "eng", + languageTag: "en", + format: "srt", + headerCompression: true, + level: 150, + original: true, + profile: "main 10", + refFrames: 1, + samplingRate: 48000, + scanType: "progressive", + embeddedInVideo: "progressive", + selected: true, + forced: true, + hearingImpaired: true, + dub: true, + title: "SDH", + streamIdentifier: 1, + width: 3840, + }, + ], + videoProfile: "main", + }, + ], + videoCodec: "h264", + videoFrameRate: "24p", + videoProfile: "main", + videoResolution: "720", + width: 1280, + }, + ], + originallyAvailableAt: new Date("2022-12-14"), + parentGuid: "plex://show/5d9c081b170e24001f2a7be4", + ratingArray: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + role: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + theme: "/library/metadata/1/theme/1705636920", + thumb: "/library/metadata/58683/thumb/1703239236", + writer: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [shared.MediaContainerWithMetadata](../../models/shared/mediacontainerwithmetadata.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getnotificationsglobals.md b/docs/models/operations/getnotificationsglobals.md similarity index 96% rename from docs/sdk/models/operations/getnotificationsglobals.md rename to docs/models/operations/getnotificationsglobals.md index e83fb924..93762394 100644 --- a/docs/sdk/models/operations/getnotificationsglobals.md +++ b/docs/models/operations/getnotificationsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetNotificationsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetNotificationsGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetNotificationsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetNotificationsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getnotificationsrequest.md b/docs/models/operations/getnotificationsrequest.md similarity index 99% rename from docs/sdk/models/operations/getnotificationsrequest.md rename to docs/models/operations/getnotificationsrequest.md index 3dd388aa..969881ad 100644 --- a/docs/sdk/models/operations/getnotificationsrequest.md +++ b/docs/models/operations/getnotificationsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetNotificationsRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetNotificationsRequest } from "@lukehagar/plexjs/models/operations"; let value: GetNotificationsRequest = {}; ``` @@ -12,7 +12,7 @@ let value: GetNotificationsRequest = {}; | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getpartindexglobals.md b/docs/models/operations/getpartindexglobals.md similarity index 96% rename from docs/sdk/models/operations/getpartindexglobals.md rename to docs/models/operations/getpartindexglobals.md index c6ee7046..af3d117a 100644 --- a/docs/sdk/models/operations/getpartindexglobals.md +++ b/docs/models/operations/getpartindexglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPartIndexGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetPartIndexGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetPartIndexGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetPartIndexGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getpartindexindex.md b/docs/models/operations/getpartindexindex.md similarity index 72% rename from docs/sdk/models/operations/getpartindexindex.md rename to docs/models/operations/getpartindexindex.md index 518e4cd0..3cfe6d14 100644 --- a/docs/sdk/models/operations/getpartindexindex.md +++ b/docs/models/operations/getpartindexindex.md @@ -5,7 +5,7 @@ The type of index to grab. ## Example Usage ```typescript -import { GetPartIndexIndex } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetPartIndexIndex } from "@lukehagar/plexjs/models/operations"; let value: GetPartIndexIndex = GetPartIndexIndex.Sd; ``` diff --git a/docs/models/operations/getpartindexrequest.md b/docs/models/operations/getpartindexrequest.md new file mode 100644 index 00000000..e4a6c465 --- /dev/null +++ b/docs/models/operations/getpartindexrequest.md @@ -0,0 +1,31 @@ +# GetPartIndexRequest + +## Example Usage + +```typescript +import { GetPartIndexIndex, GetPartIndexRequest } from "@lukehagar/plexjs/models/operations"; + +let value: GetPartIndexRequest = { + partId: 703932, + index: GetPartIndexIndex.Sd, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | 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](../../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/models/operations/getpersonglobals.md similarity index 97% rename from docs/sdk/models/operations/getpersonglobals.md rename to docs/models/operations/getpersonglobals.md index 443e98a2..b414978f 100644 --- a/docs/sdk/models/operations/getpersonglobals.md +++ b/docs/models/operations/getpersonglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPersonGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetPersonGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetPersonGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetPersonGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getpersonmediacontainer.md b/docs/models/operations/getpersonmediacontainer.md similarity index 97% rename from docs/sdk/models/operations/getpersonmediacontainer.md rename to docs/models/operations/getpersonmediacontainer.md index 97faa71a..ecd95fc4 100644 --- a/docs/sdk/models/operations/getpersonmediacontainer.md +++ b/docs/models/operations/getpersonmediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { GetPersonMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetPersonMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: GetPersonMediaContainer = { directory: [ @@ -33,4 +33,4 @@ let value: GetPersonMediaContainer = { | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `directory` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `directory` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getpersonrequest.md b/docs/models/operations/getpersonrequest.md similarity index 98% rename from docs/sdk/models/operations/getpersonrequest.md rename to docs/models/operations/getpersonrequest.md index 8c8a7657..1b6b4f60 100644 --- a/docs/sdk/models/operations/getpersonrequest.md +++ b/docs/models/operations/getpersonrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPersonRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetPersonRequest } from "@lukehagar/plexjs/models/operations"; let value: GetPersonRequest = { personId: "", @@ -14,7 +14,7 @@ let value: GetPersonRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/getpersonresponse.md b/docs/models/operations/getpersonresponse.md new file mode 100644 index 00000000..7d7c9783 --- /dev/null +++ b/docs/models/operations/getpersonresponse.md @@ -0,0 +1,31 @@ +# GetPersonResponse + +OK + +## Example Usage + +```typescript +import { GetPersonResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetPersonResponse = { + mediaContainer: { + directory: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetPersonMediaContainer](../../models/operations/getpersonmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplaylistgeneratordevice.md b/docs/models/operations/getplaylistgeneratordevice.md similarity index 81% rename from docs/sdk/models/operations/getplaylistgeneratordevice.md rename to docs/models/operations/getplaylistgeneratordevice.md index 31e171e5..0a194f18 100644 --- a/docs/sdk/models/operations/getplaylistgeneratordevice.md +++ b/docs/models/operations/getplaylistgeneratordevice.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPlaylistGeneratorDevice } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetPlaylistGeneratorDevice } from "@lukehagar/plexjs/models/operations"; let value: GetPlaylistGeneratorDevice = {}; ``` diff --git a/docs/sdk/models/operations/getplaylistgeneratorglobals.md b/docs/models/operations/getplaylistgeneratorglobals.md similarity index 96% rename from docs/sdk/models/operations/getplaylistgeneratorglobals.md rename to docs/models/operations/getplaylistgeneratorglobals.md index 08d11476..cfdcc32d 100644 --- a/docs/sdk/models/operations/getplaylistgeneratorglobals.md +++ b/docs/models/operations/getplaylistgeneratorglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPlaylistGeneratorGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetPlaylistGeneratorGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetPlaylistGeneratorGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetPlaylistGeneratorGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/getplaylistgeneratoritem.md b/docs/models/operations/getplaylistgeneratoritem.md new file mode 100644 index 00000000..eef36aa0 --- /dev/null +++ b/docs/models/operations/getplaylistgeneratoritem.md @@ -0,0 +1,25 @@ +# GetPlaylistGeneratorItem + +## Example Usage + +```typescript +import { GetPlaylistGeneratorItem } from "@lukehagar/plexjs/models/operations"; + +let value: GetPlaylistGeneratorItem = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `composite` | *string* | :heavy_minus_sign: | The composite thumbnail image path | +| `device` | [operations.GetPlaylistGeneratorDevice](../../models/operations/getplaylistgeneratordevice.md) | :heavy_minus_sign: | N/A | +| `id` | *number* | :heavy_minus_sign: | N/A | +| `location` | [operations.GetPlaylistGeneratorLocation](../../models/operations/getplaylistgeneratorlocation.md) | :heavy_minus_sign: | N/A | +| `mediaSettings` | [operations.MediaSettings](../../models/operations/mediasettings.md) | :heavy_minus_sign: | N/A | +| `policy` | [operations.GetPlaylistGeneratorPolicy](../../models/operations/getplaylistgeneratorpolicy.md) | :heavy_minus_sign: | N/A | +| `status` | [operations.GetPlaylistGeneratorStatus](../../models/operations/getplaylistgeneratorstatus.md) | :heavy_minus_sign: | N/A | +| `target` | *string* | :heavy_minus_sign: | N/A | +| `targetTagID` | *number* | :heavy_minus_sign: | The tag of this generator's settings | +| `title` | *string* | :heavy_minus_sign: | N/A | +| `type` | [operations.GetPlaylistGeneratorType](../../models/operations/getplaylistgeneratortype.md) | :heavy_minus_sign: | The type of this generator | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplaylistgeneratoritemsglobals.md b/docs/models/operations/getplaylistgeneratoritemsglobals.md similarity index 98% rename from docs/sdk/models/operations/getplaylistgeneratoritemsglobals.md rename to docs/models/operations/getplaylistgeneratoritemsglobals.md index cf65b188..b2337e8d 100644 --- a/docs/sdk/models/operations/getplaylistgeneratoritemsglobals.md +++ b/docs/models/operations/getplaylistgeneratoritemsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPlaylistGeneratorItemsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetPlaylistGeneratorItemsGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetPlaylistGeneratorItemsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetPlaylistGeneratorItemsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getplaylistgeneratoritemsguid.md b/docs/models/operations/getplaylistgeneratoritemsguid.md similarity index 99% rename from docs/sdk/models/operations/getplaylistgeneratoritemsguid.md rename to docs/models/operations/getplaylistgeneratoritemsguid.md index a616fc2d..dfd9e60b 100644 --- a/docs/sdk/models/operations/getplaylistgeneratoritemsguid.md +++ b/docs/models/operations/getplaylistgeneratoritemsguid.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPlaylistGeneratorItemsGuid } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetPlaylistGeneratorItemsGuid } from "@lukehagar/plexjs/models/operations"; let value: GetPlaylistGeneratorItemsGuid = { id: diff --git a/docs/sdk/models/operations/getplaylistgeneratoritemsmediacontainer.md b/docs/models/operations/getplaylistgeneratoritemsmediacontainer.md similarity index 97% rename from docs/sdk/models/operations/getplaylistgeneratoritemsmediacontainer.md rename to docs/models/operations/getplaylistgeneratoritemsmediacontainer.md index d7f48983..49a8fb09 100644 --- a/docs/sdk/models/operations/getplaylistgeneratoritemsmediacontainer.md +++ b/docs/models/operations/getplaylistgeneratoritemsmediacontainer.md @@ -8,8 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { GetPlaylistGeneratorItemsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { GetPlaylistGeneratorItemsMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: GetPlaylistGeneratorItemsMediaContainer = { metadata: { @@ -166,7 +165,7 @@ let value: GetPlaylistGeneratorItemsMediaContainer = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -215,4 +214,4 @@ let value: GetPlaylistGeneratorItemsMediaContainer = { | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `metadata` | [operations.Metadata](../../../sdk/models/operations/metadata.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `metadata` | [operations.Metadata](../../models/operations/metadata.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplaylistgeneratoritemsrequest.md b/docs/models/operations/getplaylistgeneratoritemsrequest.md similarity index 98% rename from docs/sdk/models/operations/getplaylistgeneratoritemsrequest.md rename to docs/models/operations/getplaylistgeneratoritemsrequest.md index 617d5acf..2bd946be 100644 --- a/docs/sdk/models/operations/getplaylistgeneratoritemsrequest.md +++ b/docs/models/operations/getplaylistgeneratoritemsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPlaylistGeneratorItemsRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetPlaylistGeneratorItemsRequest } from "@lukehagar/plexjs/models/operations"; let value: GetPlaylistGeneratorItemsRequest = { playlistId: 33913, @@ -15,7 +15,7 @@ let value: GetPlaylistGeneratorItemsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getplaylistgeneratoritemsresponsebody.md b/docs/models/operations/getplaylistgeneratoritemsresponse.md similarity index 84% rename from docs/sdk/models/operations/getplaylistgeneratoritemsresponsebody.md rename to docs/models/operations/getplaylistgeneratoritemsresponse.md index 6c07418b..420bea89 100644 --- a/docs/sdk/models/operations/getplaylistgeneratoritemsresponsebody.md +++ b/docs/models/operations/getplaylistgeneratoritemsresponse.md @@ -1,14 +1,13 @@ -# GetPlaylistGeneratorItemsResponseBody +# GetPlaylistGeneratorItemsResponse OK ## Example Usage ```typescript -import { GetPlaylistGeneratorItemsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { GetPlaylistGeneratorItemsResponse } from "@lukehagar/plexjs/models/operations"; -let value: GetPlaylistGeneratorItemsResponseBody = { +let value: GetPlaylistGeneratorItemsResponse = { mediaContainer: { metadata: { title: "", @@ -164,7 +163,7 @@ let value: GetPlaylistGeneratorItemsResponseBody = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -208,6 +207,6 @@ let value: GetPlaylistGeneratorItemsResponseBody = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.GetPlaylistGeneratorItemsMediaContainer](../../../sdk/models/operations/getplaylistgeneratoritemsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `mediaContainer` | [operations.GetPlaylistGeneratorItemsMediaContainer](../../models/operations/getplaylistgeneratoritemsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplaylistgeneratorlocation.md b/docs/models/operations/getplaylistgeneratorlocation.md similarity index 95% rename from docs/sdk/models/operations/getplaylistgeneratorlocation.md rename to docs/models/operations/getplaylistgeneratorlocation.md index 846da343..1bd264f6 100644 --- a/docs/sdk/models/operations/getplaylistgeneratorlocation.md +++ b/docs/models/operations/getplaylistgeneratorlocation.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPlaylistGeneratorLocation } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetPlaylistGeneratorLocation } from "@lukehagar/plexjs/models/operations"; let value: GetPlaylistGeneratorLocation = {}; ``` diff --git a/docs/sdk/models/operations/getplaylistgeneratormediacontainer.md b/docs/models/operations/getplaylistgeneratormediacontainer.md similarity index 96% rename from docs/sdk/models/operations/getplaylistgeneratormediacontainer.md rename to docs/models/operations/getplaylistgeneratormediacontainer.md index f1ec775d..aea77fd1 100644 --- a/docs/sdk/models/operations/getplaylistgeneratormediacontainer.md +++ b/docs/models/operations/getplaylistgeneratormediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { GetPlaylistGeneratorMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetPlaylistGeneratorMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: GetPlaylistGeneratorMediaContainer = {}; ``` @@ -21,4 +21,4 @@ let value: GetPlaylistGeneratorMediaContainer = {}; | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `item` | [operations.GetPlaylistGeneratorItem](../../../sdk/models/operations/getplaylistgeneratoritem.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `item` | [operations.GetPlaylistGeneratorItem](../../models/operations/getplaylistgeneratoritem.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getplaylistgeneratorpolicy.md b/docs/models/operations/getplaylistgeneratorpolicy.md new file mode 100644 index 00000000..a167cd9d --- /dev/null +++ b/docs/models/operations/getplaylistgeneratorpolicy.md @@ -0,0 +1,17 @@ +# GetPlaylistGeneratorPolicy + +## Example Usage + +```typescript +import { GetPlaylistGeneratorPolicy } from "@lukehagar/plexjs/models/operations"; + +let value: GetPlaylistGeneratorPolicy = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `scope` | [operations.GetPlaylistGeneratorScope](../../models/operations/getplaylistgeneratorscope.md) | :heavy_minus_sign: | N/A | +| `unwatched` | *boolean* | :heavy_minus_sign: | True if only unwatched items are optimized | +| `value` | *number* | :heavy_minus_sign: | If the scope is count, the number of items to optimize | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplaylistgeneratorrequest.md b/docs/models/operations/getplaylistgeneratorrequest.md similarity index 97% rename from docs/sdk/models/operations/getplaylistgeneratorrequest.md rename to docs/models/operations/getplaylistgeneratorrequest.md index 910d577a..f4718546 100644 --- a/docs/sdk/models/operations/getplaylistgeneratorrequest.md +++ b/docs/models/operations/getplaylistgeneratorrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPlaylistGeneratorRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetPlaylistGeneratorRequest } from "@lukehagar/plexjs/models/operations"; let value: GetPlaylistGeneratorRequest = { playlistId: 552001, @@ -15,7 +15,7 @@ let value: GetPlaylistGeneratorRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/getplaylistgeneratorresponse.md b/docs/models/operations/getplaylistgeneratorresponse.md new file mode 100644 index 00000000..efc87c62 --- /dev/null +++ b/docs/models/operations/getplaylistgeneratorresponse.md @@ -0,0 +1,17 @@ +# GetPlaylistGeneratorResponse + +OK + +## Example Usage + +```typescript +import { GetPlaylistGeneratorResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetPlaylistGeneratorResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetPlaylistGeneratorMediaContainer](../../models/operations/getplaylistgeneratormediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getplaylistgeneratorscope.md b/docs/models/operations/getplaylistgeneratorscope.md new file mode 100644 index 00000000..a152cfc4 --- /dev/null +++ b/docs/models/operations/getplaylistgeneratorscope.md @@ -0,0 +1,19 @@ +# GetPlaylistGeneratorScope + +## Example Usage + +```typescript +import { GetPlaylistGeneratorScope } from "@lukehagar/plexjs/models/operations"; + +let value: GetPlaylistGeneratorScope = GetPlaylistGeneratorScope.Count; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `All` | all | +| `Count` | count | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplaylistgeneratorsglobals.md b/docs/models/operations/getplaylistgeneratorsglobals.md similarity index 98% rename from docs/sdk/models/operations/getplaylistgeneratorsglobals.md rename to docs/models/operations/getplaylistgeneratorsglobals.md index 98bdd477..9cd64f4a 100644 --- a/docs/sdk/models/operations/getplaylistgeneratorsglobals.md +++ b/docs/models/operations/getplaylistgeneratorsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPlaylistGeneratorsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetPlaylistGeneratorsGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetPlaylistGeneratorsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetPlaylistGeneratorsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getplaylistgeneratorsmediacontainer.md b/docs/models/operations/getplaylistgeneratorsmediacontainer.md similarity index 96% rename from docs/sdk/models/operations/getplaylistgeneratorsmediacontainer.md rename to docs/models/operations/getplaylistgeneratorsmediacontainer.md index 4764f88f..d2b1aba1 100644 --- a/docs/sdk/models/operations/getplaylistgeneratorsmediacontainer.md +++ b/docs/models/operations/getplaylistgeneratorsmediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { GetPlaylistGeneratorsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetPlaylistGeneratorsMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: GetPlaylistGeneratorsMediaContainer = {}; ``` @@ -21,4 +21,4 @@ let value: GetPlaylistGeneratorsMediaContainer = {}; | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `playQueueGenerator` | [operations.PlayQueueGenerator](../../../sdk/models/operations/playqueuegenerator.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `playQueueGenerator` | [operations.PlayQueueGenerator](../../models/operations/playqueuegenerator.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplaylistgeneratorsrequest.md b/docs/models/operations/getplaylistgeneratorsrequest.md similarity index 98% rename from docs/sdk/models/operations/getplaylistgeneratorsrequest.md rename to docs/models/operations/getplaylistgeneratorsrequest.md index a98a0db4..44b28a1a 100644 --- a/docs/sdk/models/operations/getplaylistgeneratorsrequest.md +++ b/docs/models/operations/getplaylistgeneratorsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPlaylistGeneratorsRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetPlaylistGeneratorsRequest } from "@lukehagar/plexjs/models/operations"; let value: GetPlaylistGeneratorsRequest = { playlistId: 803889, @@ -14,7 +14,7 @@ let value: GetPlaylistGeneratorsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/getplaylistgeneratorsresponse.md b/docs/models/operations/getplaylistgeneratorsresponse.md new file mode 100644 index 00000000..1f4b762e --- /dev/null +++ b/docs/models/operations/getplaylistgeneratorsresponse.md @@ -0,0 +1,17 @@ +# GetPlaylistGeneratorsResponse + +OK + +## Example Usage + +```typescript +import { GetPlaylistGeneratorsResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetPlaylistGeneratorsResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetPlaylistGeneratorsMediaContainer](../../models/operations/getplaylistgeneratorsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getplaylistgeneratorstate.md b/docs/models/operations/getplaylistgeneratorstate.md new file mode 100644 index 00000000..6a87f1e2 --- /dev/null +++ b/docs/models/operations/getplaylistgeneratorstate.md @@ -0,0 +1,20 @@ +# GetPlaylistGeneratorState + +## Example Usage + +```typescript +import { GetPlaylistGeneratorState } from "@lukehagar/plexjs/models/operations"; + +let value: GetPlaylistGeneratorState = GetPlaylistGeneratorState.Failed; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Pending` | pending | +| `Complete` | complete | +| `Failed` | failed | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/models/operations/getplaylistgeneratorstatus.md b/docs/models/operations/getplaylistgeneratorstatus.md new file mode 100644 index 00000000..cceaaaf2 --- /dev/null +++ b/docs/models/operations/getplaylistgeneratorstatus.md @@ -0,0 +1,19 @@ +# GetPlaylistGeneratorStatus + +## Example Usage + +```typescript +import { GetPlaylistGeneratorStatus } from "@lukehagar/plexjs/models/operations"; + +let value: GetPlaylistGeneratorStatus = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `itemsCompleteCount` | *number* | :heavy_minus_sign: | N/A | +| `itemsCount` | *number* | :heavy_minus_sign: | N/A | +| `itemsSuccessfulCount` | *number* | :heavy_minus_sign: | N/A | +| `state` | [operations.GetPlaylistGeneratorState](../../models/operations/getplaylistgeneratorstate.md) | :heavy_minus_sign: | N/A | +| `totalSize` | *number* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getplaylistgeneratorstype.md b/docs/models/operations/getplaylistgeneratorstype.md new file mode 100644 index 00000000..47c0910e --- /dev/null +++ b/docs/models/operations/getplaylistgeneratorstype.md @@ -0,0 +1,25 @@ +# GetPlaylistGeneratorsType + +The type of playlist generator. + + - -1: A smart playlist generator + - 42: A optimized version generator + + +## Example Usage + +```typescript +import { GetPlaylistGeneratorsType } from "@lukehagar/plexjs/models/operations"; + +let value: GetPlaylistGeneratorsType = GetPlaylistGeneratorsType.FortyTwo; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Minus1` | -1 | +| `FortyTwo` | 42 | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/models/operations/getplaylistgeneratorsubtitles.md b/docs/models/operations/getplaylistgeneratorsubtitles.md new file mode 100644 index 00000000..f8057fd5 --- /dev/null +++ b/docs/models/operations/getplaylistgeneratorsubtitles.md @@ -0,0 +1,23 @@ +# GetPlaylistGeneratorSubtitles + +## Example Usage + +```typescript +import { GetPlaylistGeneratorSubtitles } from "@lukehagar/plexjs/models/operations"; + +let value: GetPlaylistGeneratorSubtitles = GetPlaylistGeneratorSubtitles.Auto; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Auto` | auto | +| `Burn` | burn | +| `None` | none | +| `Sidecar` | sidecar | +| `Embedded` | embedded | +| `Segmented` | segmented | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/models/operations/getplaylistgeneratortype.md b/docs/models/operations/getplaylistgeneratortype.md new file mode 100644 index 00000000..5a4a7b2c --- /dev/null +++ b/docs/models/operations/getplaylistgeneratortype.md @@ -0,0 +1,21 @@ +# GetPlaylistGeneratorType + +The type of this generator + +## Example Usage + +```typescript +import { GetPlaylistGeneratorType } from "@lukehagar/plexjs/models/operations"; + +let value: GetPlaylistGeneratorType = GetPlaylistGeneratorType.Minus1; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Minus1` | -1 | +| `FortyTwo` | 42 | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplaylistglobals.md b/docs/models/operations/getplaylistglobals.md similarity index 96% rename from docs/sdk/models/operations/getplaylistglobals.md rename to docs/models/operations/getplaylistglobals.md index 190fe1e0..c12642f5 100644 --- a/docs/sdk/models/operations/getplaylistglobals.md +++ b/docs/models/operations/getplaylistglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPlaylistGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetPlaylistGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetPlaylistGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetPlaylistGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getplaylistitemsglobals.md b/docs/models/operations/getplaylistitemsglobals.md similarity index 96% rename from docs/sdk/models/operations/getplaylistitemsglobals.md rename to docs/models/operations/getplaylistitemsglobals.md index 9d50d7c8..b837011f 100644 --- a/docs/sdk/models/operations/getplaylistitemsglobals.md +++ b/docs/models/operations/getplaylistitemsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPlaylistItemsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetPlaylistItemsGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetPlaylistItemsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetPlaylistItemsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getplaylistitemsrequest.md b/docs/models/operations/getplaylistitemsrequest.md similarity index 98% rename from docs/sdk/models/operations/getplaylistitemsrequest.md rename to docs/models/operations/getplaylistitemsrequest.md index 5e531de5..8b0a6a7f 100644 --- a/docs/sdk/models/operations/getplaylistitemsrequest.md +++ b/docs/models/operations/getplaylistitemsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPlaylistItemsRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetPlaylistItemsRequest } from "@lukehagar/plexjs/models/operations"; let value: GetPlaylistItemsRequest = { playlistId: 73922, @@ -14,7 +14,7 @@ let value: GetPlaylistItemsRequest = { | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/getplaylistitemsresponse.md b/docs/models/operations/getplaylistitemsresponse.md new file mode 100644 index 00000000..89cc3592 --- /dev/null +++ b/docs/models/operations/getplaylistitemsresponse.md @@ -0,0 +1,216 @@ +# GetPlaylistItemsResponse + +## Example Usage + +```typescript +import { GetPlaylistItemsResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetPlaylistItemsResponse = { + headers: {}, + result: { + mediaContainer: { + metadata: [ + { + title: "", + type: "", + addedAt: 29550, + art: "/library/metadata/58683/art/1703239236", + autotag: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + chapterSource: "media", + childCount: 1, + country: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + director: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + genre: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + grandparentGuid: "plex://show/5d9c081b170e24001f2a7be4", + guid: "plex://movie/5d7768ba96b655001fdc0408", + guids: [ + { + id: + "{\"imdbExample\":{\"summary\":\"IMDB example\",\"value\":\"imdb://tt13015952\"},\"tmdbExample\":{\"summary\":\"TMDB example\",\"value\":\"tmdb://2434012\"},\"tvdbExample\":{\"summary\":\"TVDB example\",\"value\":\"tvdb://7945991\"}}", + }, + ], + key: "", + lastViewedAt: 1556281940, + 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: [ + { + accessible: true, + audioProfile: "lc", + container: "mov", + duration: 150192, + exists: true, + file: "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", + has64bitOffsets: false, + id: 1, + indexes: "sd", + key: "/library/parts/1/1531779263/file.mov", + optimizedForStreaming: false, + size: 105355654, + stream: [ + { + default: true, + audioChannelLayout: "5.1(side)", + channels: 6, + bitDepth: 10, + doviblCompatID: 1, + doviblPresent: true, + dovielPresent: false, + doviLevel: 6, + doviPresent: true, + doviProfile: 8, + dovirpuPresent: true, + doviVersion: "1.0", + bitrate: 24743, + canAutoSync: false, + chromaLocation: "topleft", + chromaSubsampling: "4:2:0", + codedHeight: 1608, + codedWidth: 3840, + closedCaptions: true, + codec: "hevc", + colorPrimaries: "bt2020", + colorRange: "tv", + colorSpace: "bt2020nc", + colorTrc: "smpte2084", + displayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + extendedDisplayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + frameRate: 23.976, + hasScalingMatrix: false, + height: 1602, + id: 1002625, + index: 0, + key: "/library/streams/216389", + language: "English", + languageCode: "eng", + languageTag: "en", + format: "srt", + headerCompression: true, + level: 150, + original: true, + profile: "main 10", + refFrames: 1, + samplingRate: 48000, + scanType: "progressive", + embeddedInVideo: "progressive", + selected: true, + forced: true, + hearingImpaired: true, + dub: true, + title: "SDH", + streamIdentifier: 1, + width: 3840, + }, + ], + videoProfile: "main", + }, + ], + videoCodec: "h264", + videoFrameRate: "24p", + videoProfile: "main", + videoResolution: "720", + width: 1280, + }, + ], + originallyAvailableAt: new Date("2022-12-14"), + parentGuid: "plex://show/5d9c081b170e24001f2a7be4", + ratingArray: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + role: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + theme: "/library/metadata/1/theme/1705636920", + thumb: "/library/metadata/58683/thumb/1703239236", + writer: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [shared.MediaContainerWithMetadata](../../models/shared/mediacontainerwithmetadata.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplaylistrequest.md b/docs/models/operations/getplaylistrequest.md similarity index 97% rename from docs/sdk/models/operations/getplaylistrequest.md rename to docs/models/operations/getplaylistrequest.md index 0cf19383..53e97399 100644 --- a/docs/sdk/models/operations/getplaylistrequest.md +++ b/docs/models/operations/getplaylistrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPlaylistRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetPlaylistRequest } from "@lukehagar/plexjs/models/operations"; let value: GetPlaylistRequest = { playlistId: 776365, @@ -14,7 +14,7 @@ let value: GetPlaylistRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getplayqueueglobals.md b/docs/models/operations/getplayqueueglobals.md similarity index 96% rename from docs/sdk/models/operations/getplayqueueglobals.md rename to docs/models/operations/getplayqueueglobals.md index 471748e0..7219848c 100644 --- a/docs/sdk/models/operations/getplayqueueglobals.md +++ b/docs/models/operations/getplayqueueglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPlayQueueGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetPlayQueueGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetPlayQueueGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetPlayQueueGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getplayqueuerequest.md b/docs/models/operations/getplayqueuerequest.md similarity index 96% rename from docs/sdk/models/operations/getplayqueuerequest.md rename to docs/models/operations/getplayqueuerequest.md index 361afe83..5e1dffbe 100644 --- a/docs/sdk/models/operations/getplayqueuerequest.md +++ b/docs/models/operations/getplayqueuerequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { GetPlayQueueRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { GetPlayQueueRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: GetPlayQueueRequest = { playQueueId: 868034, @@ -18,7 +18,7 @@ let value: GetPlayQueueRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -30,8 +30,8 @@ let value: GetPlayQueueRequest = { | `deviceName` | *string* | :heavy_minus_sign: | 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 | +| `own` | [shared.BoolInt](../../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. | | | `window` | *number* | :heavy_minus_sign: | How many items on each side of the center of the window | | -| `includeBefore` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Whether to include the items before the center (if 0, center is not included either), defaults to 1. | 1 | -| `includeAfter` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Whether to include the items after the center (if 0, center is not included either), defaults to 1. | 1 | \ No newline at end of file +| `includeBefore` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Whether to include the items before the center (if 0, center is not included either), defaults to 1. | 1 | +| `includeAfter` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Whether to include the items after the center (if 0, center is not included either), defaults to 1. | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/getpostplayhubsglobals.md b/docs/models/operations/getpostplayhubsglobals.md similarity index 96% rename from docs/sdk/models/operations/getpostplayhubsglobals.md rename to docs/models/operations/getpostplayhubsglobals.md index f4b95440..c91dbf7b 100644 --- a/docs/sdk/models/operations/getpostplayhubsglobals.md +++ b/docs/models/operations/getpostplayhubsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPostplayHubsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetPostplayHubsGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetPostplayHubsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetPostplayHubsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getpostplayhubsrequest.md b/docs/models/operations/getpostplayhubsrequest.md similarity index 96% rename from docs/sdk/models/operations/getpostplayhubsrequest.md rename to docs/models/operations/getpostplayhubsrequest.md index 75cd16f7..a6acfe5f 100644 --- a/docs/sdk/models/operations/getpostplayhubsrequest.md +++ b/docs/models/operations/getpostplayhubsrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { GetPostplayHubsRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { GetPostplayHubsRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: GetPostplayHubsRequest = { metadataId: 202749, @@ -16,7 +16,7 @@ let value: GetPostplayHubsRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -29,4 +29,4 @@ let value: GetPostplayHubsRequest = { | `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 +| `onlyTransient` | [shared.BoolInt](../../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/models/operations/getpostplayhubsresponse.md b/docs/models/operations/getpostplayhubsresponse.md new file mode 100644 index 00000000..ab17bfd6 --- /dev/null +++ b/docs/models/operations/getpostplayhubsresponse.md @@ -0,0 +1,230 @@ +# GetPostplayHubsResponse + +## Example Usage + +```typescript +import { GetPostplayHubsResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetPostplayHubsResponse = { + headers: { + "key": [], + }, + result: { + mediaContainer: { + hub: [ + { + type: "track", + context: "hub.home.onDeck", + hubIdentifier: "home.onDeck", + key: "/hubs/sections/home/onDeck", + metadata: [ + { + title: "", + type: "", + addedAt: 29550, + art: "/library/metadata/58683/art/1703239236", + autotag: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + chapterSource: "media", + childCount: 1, + country: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + director: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + genre: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + grandparentGuid: "plex://show/5d9c081b170e24001f2a7be4", + guid: "plex://movie/5d7768ba96b655001fdc0408", + guids: [ + { + id: + "{\"imdbExample\":{\"summary\":\"IMDB example\",\"value\":\"imdb://tt13015952\"},\"tmdbExample\":{\"summary\":\"TMDB example\",\"value\":\"tmdb://2434012\"},\"tvdbExample\":{\"summary\":\"TVDB example\",\"value\":\"tvdb://7945991\"}}", + }, + ], + key: "", + lastViewedAt: 1556281940, + 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: [ + { + accessible: true, + audioProfile: "lc", + container: "mov", + duration: 150192, + exists: true, + file: + "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", + has64bitOffsets: false, + id: 1, + indexes: "sd", + key: "/library/parts/1/1531779263/file.mov", + optimizedForStreaming: false, + size: 105355654, + stream: [ + { + default: true, + audioChannelLayout: "5.1(side)", + channels: 6, + bitDepth: 10, + doviblCompatID: 1, + doviblPresent: true, + dovielPresent: false, + doviLevel: 6, + doviPresent: true, + doviProfile: 8, + dovirpuPresent: true, + doviVersion: "1.0", + bitrate: 24743, + canAutoSync: false, + chromaLocation: "topleft", + chromaSubsampling: "4:2:0", + codedHeight: 1608, + codedWidth: 3840, + closedCaptions: true, + codec: "hevc", + colorPrimaries: "bt2020", + colorRange: "tv", + colorSpace: "bt2020nc", + colorTrc: "smpte2084", + displayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + extendedDisplayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + frameRate: 23.976, + hasScalingMatrix: false, + height: 1602, + id: 1002625, + index: 0, + key: "/library/streams/216389", + language: "English", + languageCode: "eng", + languageTag: "en", + format: "srt", + headerCompression: true, + level: 150, + original: true, + profile: "main 10", + refFrames: 1, + samplingRate: 48000, + scanType: "progressive", + embeddedInVideo: "progressive", + selected: true, + forced: true, + hearingImpaired: true, + dub: true, + title: "SDH", + streamIdentifier: 1, + width: 3840, + }, + ], + videoProfile: "main", + }, + ], + videoCodec: "h264", + videoFrameRate: "24p", + videoProfile: "main", + videoResolution: "720", + width: 1280, + }, + ], + originallyAvailableAt: new Date("2022-12-14"), + parentGuid: "plex://show/5d9c081b170e24001f2a7be4", + ratingArray: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + role: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + theme: "/library/metadata/1/theme/1705636920", + thumb: "/library/metadata/58683/thumb/1703239236", + writer: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + }, + ], + size: 1, + subtype: "podcast", + totalSize: 8, + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [shared.MediaContainerWithHubs](../../models/shared/mediacontainerwithhubs.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getpreferenceglobals.md b/docs/models/operations/getpreferenceglobals.md similarity index 96% rename from docs/sdk/models/operations/getpreferenceglobals.md rename to docs/models/operations/getpreferenceglobals.md index bb0aa024..cefb8895 100644 --- a/docs/sdk/models/operations/getpreferenceglobals.md +++ b/docs/models/operations/getpreferenceglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPreferenceGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetPreferenceGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetPreferenceGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetPreferenceGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getpreferencerequest.md b/docs/models/operations/getpreferencerequest.md similarity index 96% rename from docs/sdk/models/operations/getpreferencerequest.md rename to docs/models/operations/getpreferencerequest.md index cec10342..66ad1738 100644 --- a/docs/sdk/models/operations/getpreferencerequest.md +++ b/docs/models/operations/getpreferencerequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPreferenceRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetPreferenceRequest } from "@lukehagar/plexjs/models/operations"; let value: GetPreferenceRequest = {}; ``` @@ -12,7 +12,7 @@ let value: GetPreferenceRequest = {}; | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getpromotedhubsglobals.md b/docs/models/operations/getpromotedhubsglobals.md similarity index 96% rename from docs/sdk/models/operations/getpromotedhubsglobals.md rename to docs/models/operations/getpromotedhubsglobals.md index a7a7ad5b..c0a11828 100644 --- a/docs/sdk/models/operations/getpromotedhubsglobals.md +++ b/docs/models/operations/getpromotedhubsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPromotedHubsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetPromotedHubsGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetPromotedHubsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetPromotedHubsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getpromotedhubsmediacontainer.md b/docs/models/operations/getpromotedhubsmediacontainer.md similarity index 98% rename from docs/sdk/models/operations/getpromotedhubsmediacontainer.md rename to docs/models/operations/getpromotedhubsmediacontainer.md index de4f7494..7eda726a 100644 --- a/docs/sdk/models/operations/getpromotedhubsmediacontainer.md +++ b/docs/models/operations/getpromotedhubsmediacontainer.md @@ -8,8 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { GetPromotedHubsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { GetPromotedHubsMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: GetPromotedHubsMediaContainer = { hub: [ @@ -173,7 +172,7 @@ let value: GetPromotedHubsMediaContainer = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -228,4 +227,4 @@ let value: GetPromotedHubsMediaContainer = { | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `hub` | [shared.Hub](../../../sdk/models/shared/hub.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `hub` | [shared.Hub](../../models/shared/hub.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getpromotedhubsrequest.md b/docs/models/operations/getpromotedhubsrequest.md similarity index 96% rename from docs/sdk/models/operations/getpromotedhubsrequest.md rename to docs/models/operations/getpromotedhubsrequest.md index 3bbd184f..5e1b8ab4 100644 --- a/docs/sdk/models/operations/getpromotedhubsrequest.md +++ b/docs/models/operations/getpromotedhubsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPromotedHubsRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetPromotedHubsRequest } from "@lukehagar/plexjs/models/operations"; let value: GetPromotedHubsRequest = {}; ``` @@ -12,7 +12,7 @@ let value: GetPromotedHubsRequest = {}; | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/getpromotedhubsresponse.md b/docs/models/operations/getpromotedhubsresponse.md new file mode 100644 index 00000000..52bdd994 --- /dev/null +++ b/docs/models/operations/getpromotedhubsresponse.md @@ -0,0 +1,237 @@ +# GetPromotedHubsResponse + +## Example Usage + +```typescript +import { GetPromotedHubsResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetPromotedHubsResponse = { + headers: { + "key": [ + "", + ], + "key1": [ + "", + "", + ], + "key2": [], + }, + result: { + mediaContainer: { + hub: [ + { + type: "track", + context: "hub.home.onDeck", + hubIdentifier: "home.onDeck", + key: "/hubs/sections/home/onDeck", + metadata: [ + { + title: "", + type: "", + addedAt: 29550, + art: "/library/metadata/58683/art/1703239236", + autotag: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + chapterSource: "media", + childCount: 1, + country: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + director: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + genre: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + grandparentGuid: "plex://show/5d9c081b170e24001f2a7be4", + guid: "plex://movie/5d7768ba96b655001fdc0408", + guids: [ + { + id: + "{\"imdbExample\":{\"summary\":\"IMDB example\",\"value\":\"imdb://tt13015952\"},\"tmdbExample\":{\"summary\":\"TMDB example\",\"value\":\"tmdb://2434012\"},\"tvdbExample\":{\"summary\":\"TVDB example\",\"value\":\"tvdb://7945991\"}}", + }, + ], + key: "", + lastViewedAt: 1556281940, + 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: [ + { + accessible: true, + audioProfile: "lc", + container: "mov", + duration: 150192, + exists: true, + file: + "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", + has64bitOffsets: false, + id: 1, + indexes: "sd", + key: "/library/parts/1/1531779263/file.mov", + optimizedForStreaming: false, + size: 105355654, + stream: [ + { + default: true, + audioChannelLayout: "5.1(side)", + channels: 6, + bitDepth: 10, + doviblCompatID: 1, + doviblPresent: true, + dovielPresent: false, + doviLevel: 6, + doviPresent: true, + doviProfile: 8, + dovirpuPresent: true, + doviVersion: "1.0", + bitrate: 24743, + canAutoSync: false, + chromaLocation: "topleft", + chromaSubsampling: "4:2:0", + codedHeight: 1608, + codedWidth: 3840, + closedCaptions: true, + codec: "hevc", + colorPrimaries: "bt2020", + colorRange: "tv", + colorSpace: "bt2020nc", + colorTrc: "smpte2084", + displayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + extendedDisplayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + frameRate: 23.976, + hasScalingMatrix: false, + height: 1602, + id: 1002625, + index: 0, + key: "/library/streams/216389", + language: "English", + languageCode: "eng", + languageTag: "en", + format: "srt", + headerCompression: true, + level: 150, + original: true, + profile: "main 10", + refFrames: 1, + samplingRate: 48000, + scanType: "progressive", + embeddedInVideo: "progressive", + selected: true, + forced: true, + hearingImpaired: true, + dub: true, + title: "SDH", + streamIdentifier: 1, + width: 3840, + }, + ], + videoProfile: "main", + }, + ], + videoCodec: "h264", + videoFrameRate: "24p", + videoProfile: "main", + videoResolution: "720", + width: 1280, + }, + ], + originallyAvailableAt: new Date("2022-12-14"), + parentGuid: "plex://show/5d9c081b170e24001f2a7be4", + ratingArray: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + role: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + theme: "/library/metadata/1/theme/1705636920", + thumb: "/library/metadata/58683/thumb/1703239236", + writer: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + }, + ], + size: 1, + subtype: "podcast", + totalSize: 8, + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [operations.GetPromotedHubsResponseBody](../../models/operations/getpromotedhubsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getpromotedhubsresponsebody.md b/docs/models/operations/getpromotedhubsresponsebody.md similarity index 88% rename from docs/sdk/models/operations/getpromotedhubsresponsebody.md rename to docs/models/operations/getpromotedhubsresponsebody.md index 50c07d6f..8e67d9c1 100644 --- a/docs/sdk/models/operations/getpromotedhubsresponsebody.md +++ b/docs/models/operations/getpromotedhubsresponsebody.md @@ -5,8 +5,7 @@ OK ## Example Usage ```typescript -import { GetPromotedHubsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { GetPromotedHubsResponseBody } from "@lukehagar/plexjs/models/operations"; let value: GetPromotedHubsResponseBody = { mediaContainer: { @@ -172,7 +171,7 @@ let value: GetPromotedHubsResponseBody = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -222,6 +221,6 @@ let value: GetPromotedHubsResponseBody = { ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.GetPromotedHubsMediaContainer](../../../sdk/models/operations/getpromotedhubsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetPromotedHubsMediaContainer](../../models/operations/getpromotedhubsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getrandomartworkglobals.md b/docs/models/operations/getrandomartworkglobals.md similarity index 96% rename from docs/sdk/models/operations/getrandomartworkglobals.md rename to docs/models/operations/getrandomartworkglobals.md index 0be4460a..c98ff8f5 100644 --- a/docs/sdk/models/operations/getrandomartworkglobals.md +++ b/docs/models/operations/getrandomartworkglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetRandomArtworkGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetRandomArtworkGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetRandomArtworkGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetRandomArtworkGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getrandomartworkrequest.md b/docs/models/operations/getrandomartworkrequest.md similarity index 96% rename from docs/sdk/models/operations/getrandomartworkrequest.md rename to docs/models/operations/getrandomartworkrequest.md index 682ace05..8d488b31 100644 --- a/docs/sdk/models/operations/getrandomartworkrequest.md +++ b/docs/models/operations/getrandomartworkrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetRandomArtworkRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetRandomArtworkRequest } from "@lukehagar/plexjs/models/operations"; let value: GetRandomArtworkRequest = { sections: [ @@ -17,7 +17,7 @@ let value: GetRandomArtworkRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getrelatedhubsglobals.md b/docs/models/operations/getrelatedhubsglobals.md similarity index 96% rename from docs/sdk/models/operations/getrelatedhubsglobals.md rename to docs/models/operations/getrelatedhubsglobals.md index e4863401..1d1d7ad8 100644 --- a/docs/sdk/models/operations/getrelatedhubsglobals.md +++ b/docs/models/operations/getrelatedhubsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetRelatedHubsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetRelatedHubsGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetRelatedHubsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetRelatedHubsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getrelatedhubsrequest.md b/docs/models/operations/getrelatedhubsrequest.md similarity index 96% rename from docs/sdk/models/operations/getrelatedhubsrequest.md rename to docs/models/operations/getrelatedhubsrequest.md index f6e795ba..573ff8c0 100644 --- a/docs/sdk/models/operations/getrelatedhubsrequest.md +++ b/docs/models/operations/getrelatedhubsrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { GetRelatedHubsRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { GetRelatedHubsRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: GetRelatedHubsRequest = { metadataId: 344420, @@ -16,7 +16,7 @@ let value: GetRelatedHubsRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -29,4 +29,4 @@ let value: GetRelatedHubsRequest = { | `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 +| `onlyTransient` | [shared.BoolInt](../../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/models/operations/getrelatedhubsresponse.md b/docs/models/operations/getrelatedhubsresponse.md new file mode 100644 index 00000000..82ee34f2 --- /dev/null +++ b/docs/models/operations/getrelatedhubsresponse.md @@ -0,0 +1,239 @@ +# GetRelatedHubsResponse + +## Example Usage + +```typescript +import { GetRelatedHubsResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetRelatedHubsResponse = { + headers: { + "key": [ + "", + "", + ], + "key1": [], + "key2": [ + "", + "", + "", + ], + }, + result: { + mediaContainer: { + hub: [ + { + type: "track", + context: "hub.home.onDeck", + hubIdentifier: "home.onDeck", + key: "/hubs/sections/home/onDeck", + metadata: [ + { + title: "", + type: "", + addedAt: 29550, + art: "/library/metadata/58683/art/1703239236", + autotag: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + chapterSource: "media", + childCount: 1, + country: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + director: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + genre: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + grandparentGuid: "plex://show/5d9c081b170e24001f2a7be4", + guid: "plex://movie/5d7768ba96b655001fdc0408", + guids: [ + { + id: + "{\"imdbExample\":{\"summary\":\"IMDB example\",\"value\":\"imdb://tt13015952\"},\"tmdbExample\":{\"summary\":\"TMDB example\",\"value\":\"tmdb://2434012\"},\"tvdbExample\":{\"summary\":\"TVDB example\",\"value\":\"tvdb://7945991\"}}", + }, + ], + key: "", + lastViewedAt: 1556281940, + 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: [ + { + accessible: true, + audioProfile: "lc", + container: "mov", + duration: 150192, + exists: true, + file: + "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", + has64bitOffsets: false, + id: 1, + indexes: "sd", + key: "/library/parts/1/1531779263/file.mov", + optimizedForStreaming: false, + size: 105355654, + stream: [ + { + default: true, + audioChannelLayout: "5.1(side)", + channels: 6, + bitDepth: 10, + doviblCompatID: 1, + doviblPresent: true, + dovielPresent: false, + doviLevel: 6, + doviPresent: true, + doviProfile: 8, + dovirpuPresent: true, + doviVersion: "1.0", + bitrate: 24743, + canAutoSync: false, + chromaLocation: "topleft", + chromaSubsampling: "4:2:0", + codedHeight: 1608, + codedWidth: 3840, + closedCaptions: true, + codec: "hevc", + colorPrimaries: "bt2020", + colorRange: "tv", + colorSpace: "bt2020nc", + colorTrc: "smpte2084", + displayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + extendedDisplayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + frameRate: 23.976, + hasScalingMatrix: false, + height: 1602, + id: 1002625, + index: 0, + key: "/library/streams/216389", + language: "English", + languageCode: "eng", + languageTag: "en", + format: "srt", + headerCompression: true, + level: 150, + original: true, + profile: "main 10", + refFrames: 1, + samplingRate: 48000, + scanType: "progressive", + embeddedInVideo: "progressive", + selected: true, + forced: true, + hearingImpaired: true, + dub: true, + title: "SDH", + streamIdentifier: 1, + width: 3840, + }, + ], + videoProfile: "main", + }, + ], + videoCodec: "h264", + videoFrameRate: "24p", + videoProfile: "main", + videoResolution: "720", + width: 1280, + }, + ], + originallyAvailableAt: new Date("2022-12-14"), + parentGuid: "plex://show/5d9c081b170e24001f2a7be4", + ratingArray: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + role: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + theme: "/library/metadata/1/theme/1705636920", + thumb: "/library/metadata/58683/thumb/1703239236", + writer: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + }, + ], + size: 1, + subtype: "podcast", + totalSize: 8, + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [shared.MediaContainerWithHubs](../../models/shared/mediacontainerwithhubs.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getrelateditemsglobals.md b/docs/models/operations/getrelateditemsglobals.md similarity index 96% rename from docs/sdk/models/operations/getrelateditemsglobals.md rename to docs/models/operations/getrelateditemsglobals.md index 7992d065..aedd9ea7 100644 --- a/docs/sdk/models/operations/getrelateditemsglobals.md +++ b/docs/models/operations/getrelateditemsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetRelatedItemsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetRelatedItemsGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetRelatedItemsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetRelatedItemsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getrelateditemsmediacontainer.md b/docs/models/operations/getrelateditemsmediacontainer.md similarity index 98% rename from docs/sdk/models/operations/getrelateditemsmediacontainer.md rename to docs/models/operations/getrelateditemsmediacontainer.md index f59bed4a..7d9ae050 100644 --- a/docs/sdk/models/operations/getrelateditemsmediacontainer.md +++ b/docs/models/operations/getrelateditemsmediacontainer.md @@ -8,8 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { GetRelatedItemsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { GetRelatedItemsMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: GetRelatedItemsMediaContainer = { hub: [ @@ -173,7 +172,7 @@ let value: GetRelatedItemsMediaContainer = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -228,4 +227,4 @@ let value: GetRelatedItemsMediaContainer = { | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `hub` | [shared.Hub](../../../sdk/models/shared/hub.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `hub` | [shared.Hub](../../models/shared/hub.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getrelateditemsrequest.md b/docs/models/operations/getrelateditemsrequest.md similarity index 96% rename from docs/sdk/models/operations/getrelateditemsrequest.md rename to docs/models/operations/getrelateditemsrequest.md index 889939b4..a606cfc6 100644 --- a/docs/sdk/models/operations/getrelateditemsrequest.md +++ b/docs/models/operations/getrelateditemsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetRelatedItemsRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetRelatedItemsRequest } from "@lukehagar/plexjs/models/operations"; let value: GetRelatedItemsRequest = { ids: "", @@ -14,7 +14,7 @@ let value: GetRelatedItemsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getrelateditemsresponsebody.md b/docs/models/operations/getrelateditemsresponse.md similarity index 87% rename from docs/sdk/models/operations/getrelateditemsresponsebody.md rename to docs/models/operations/getrelateditemsresponse.md index 7e888f71..51ef732b 100644 --- a/docs/sdk/models/operations/getrelateditemsresponsebody.md +++ b/docs/models/operations/getrelateditemsresponse.md @@ -1,14 +1,13 @@ -# GetRelatedItemsResponseBody +# GetRelatedItemsResponse OK ## Example Usage ```typescript -import { GetRelatedItemsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { GetRelatedItemsResponse } from "@lukehagar/plexjs/models/operations"; -let value: GetRelatedItemsResponseBody = { +let value: GetRelatedItemsResponse = { mediaContainer: { hub: [ { @@ -172,7 +171,7 @@ let value: GetRelatedItemsResponseBody = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -222,6 +221,6 @@ let value: GetRelatedItemsResponseBody = { ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.GetRelatedItemsMediaContainer](../../../sdk/models/operations/getrelateditemsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetRelatedItemsMediaContainer](../../models/operations/getrelateditemsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getscheduledrecordingsmediacontainer.md b/docs/models/operations/getscheduledrecordingsmediacontainer.md similarity index 97% rename from docs/sdk/models/operations/getscheduledrecordingsmediacontainer.md rename to docs/models/operations/getscheduledrecordingsmediacontainer.md index 876f7d9d..50143cdf 100644 --- a/docs/sdk/models/operations/getscheduledrecordingsmediacontainer.md +++ b/docs/models/operations/getscheduledrecordingsmediacontainer.md @@ -8,8 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { GetScheduledRecordingsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { GetScheduledRecordingsMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: GetScheduledRecordingsMediaContainer = { mediaGrabOperation: [ @@ -168,7 +167,7 @@ let value: GetScheduledRecordingsMediaContainer = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -219,4 +218,4 @@ let value: GetScheduledRecordingsMediaContainer = { | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `mediaGrabOperation` | [shared.MediaGrabOperation](../../../sdk/models/shared/mediagraboperation.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `mediaGrabOperation` | [shared.MediaGrabOperation](../../models/shared/mediagraboperation.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getscheduledrecordingsresponse.md b/docs/models/operations/getscheduledrecordingsresponse.md new file mode 100644 index 00000000..18575556 --- /dev/null +++ b/docs/models/operations/getscheduledrecordingsresponse.md @@ -0,0 +1,224 @@ +# GetScheduledRecordingsResponse + +## Example Usage + +```typescript +import { GetScheduledRecordingsResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetScheduledRecordingsResponse = { + headers: { + "key": [ + "", + "", + ], + }, + result: { + mediaContainer: { + mediaGrabOperation: [ + { + metadata: { + title: "", + type: "", + addedAt: 3539, + art: "/library/metadata/58683/art/1703239236", + autotag: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + chapterSource: "media", + childCount: 1, + country: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + director: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + genre: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + grandparentGuid: "plex://show/5d9c081b170e24001f2a7be4", + guid: "plex://movie/5d7768ba96b655001fdc0408", + guids: [ + { + id: + "{\"imdbExample\":{\"summary\":\"IMDB example\",\"value\":\"imdb://tt13015952\"},\"tmdbExample\":{\"summary\":\"TMDB example\",\"value\":\"tmdb://2434012\"},\"tvdbExample\":{\"summary\":\"TVDB example\",\"value\":\"tvdb://7945991\"}}", + }, + ], + key: "", + lastViewedAt: 1556281940, + 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: [ + { + accessible: true, + audioProfile: "lc", + container: "mov", + duration: 150192, + exists: true, + file: + "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", + has64bitOffsets: false, + id: 1, + indexes: "sd", + key: "/library/parts/1/1531779263/file.mov", + optimizedForStreaming: false, + size: 105355654, + stream: [ + { + default: true, + audioChannelLayout: "5.1(side)", + channels: 6, + bitDepth: 10, + doviblCompatID: 1, + doviblPresent: true, + dovielPresent: false, + doviLevel: 6, + doviPresent: true, + doviProfile: 8, + dovirpuPresent: true, + doviVersion: "1.0", + bitrate: 24743, + canAutoSync: false, + chromaLocation: "topleft", + chromaSubsampling: "4:2:0", + codedHeight: 1608, + codedWidth: 3840, + closedCaptions: true, + codec: "hevc", + colorPrimaries: "bt2020", + colorRange: "tv", + colorSpace: "bt2020nc", + colorTrc: "smpte2084", + displayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + extendedDisplayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + frameRate: 23.976, + hasScalingMatrix: false, + height: 1602, + id: 1002625, + index: 0, + key: "/library/streams/216389", + language: "English", + languageCode: "eng", + languageTag: "en", + format: "srt", + headerCompression: true, + level: 150, + original: true, + profile: "main 10", + refFrames: 1, + samplingRate: 48000, + scanType: "progressive", + embeddedInVideo: "progressive", + selected: true, + forced: true, + hearingImpaired: true, + dub: true, + title: "SDH", + streamIdentifier: 1, + width: 3840, + }, + ], + videoProfile: "main", + }, + ], + videoCodec: "h264", + videoFrameRate: "24p", + videoProfile: "main", + videoResolution: "720", + width: 1280, + }, + ], + originallyAvailableAt: new Date("2022-12-14"), + parentGuid: "plex://show/5d9c081b170e24001f2a7be4", + ratingArray: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + role: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + theme: "/library/metadata/1/theme/1705636920", + thumb: "/library/metadata/58683/thumb/1703239236", + writer: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + }, + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [operations.GetScheduledRecordingsResponseBody](../../models/operations/getscheduledrecordingsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getscheduledrecordingsresponsebody.md b/docs/models/operations/getscheduledrecordingsresponsebody.md similarity index 86% rename from docs/sdk/models/operations/getscheduledrecordingsresponsebody.md rename to docs/models/operations/getscheduledrecordingsresponsebody.md index 163e3437..67b083e0 100644 --- a/docs/sdk/models/operations/getscheduledrecordingsresponsebody.md +++ b/docs/models/operations/getscheduledrecordingsresponsebody.md @@ -5,8 +5,7 @@ OK ## Example Usage ```typescript -import { GetScheduledRecordingsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { GetScheduledRecordingsResponseBody } from "@lukehagar/plexjs/models/operations"; let value: GetScheduledRecordingsResponseBody = { mediaContainer: { @@ -166,7 +165,7 @@ let value: GetScheduledRecordingsResponseBody = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -212,6 +211,6 @@ let value: GetScheduledRecordingsResponseBody = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.GetScheduledRecordingsMediaContainer](../../../sdk/models/operations/getscheduledrecordingsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `mediaContainer` | [operations.GetScheduledRecordingsMediaContainer](../../models/operations/getscheduledrecordingsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsectionfiltersglobals.md b/docs/models/operations/getsectionfiltersglobals.md similarity index 96% rename from docs/sdk/models/operations/getsectionfiltersglobals.md rename to docs/models/operations/getsectionfiltersglobals.md index 5e569b92..37448ef1 100644 --- a/docs/sdk/models/operations/getsectionfiltersglobals.md +++ b/docs/models/operations/getsectionfiltersglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSectionFiltersGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetSectionFiltersGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetSectionFiltersGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetSectionFiltersGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getsectionfiltersmediacontainer.md b/docs/models/operations/getsectionfiltersmediacontainer.md similarity index 96% rename from docs/sdk/models/operations/getsectionfiltersmediacontainer.md rename to docs/models/operations/getsectionfiltersmediacontainer.md index 831a45d3..56ab32a5 100644 --- a/docs/sdk/models/operations/getsectionfiltersmediacontainer.md +++ b/docs/models/operations/getsectionfiltersmediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { GetSectionFiltersMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetSectionFiltersMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: GetSectionFiltersMediaContainer = {}; ``` @@ -21,4 +21,4 @@ let value: GetSectionFiltersMediaContainer = {}; | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `directory` | [shared.Directory](../../../sdk/models/shared/directory.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `directory` | [shared.Directory](../../models/shared/directory.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsectionfiltersrequest.md b/docs/models/operations/getsectionfiltersrequest.md similarity index 96% rename from docs/sdk/models/operations/getsectionfiltersrequest.md rename to docs/models/operations/getsectionfiltersrequest.md index 4f96ba1b..3c8e342a 100644 --- a/docs/sdk/models/operations/getsectionfiltersrequest.md +++ b/docs/models/operations/getsectionfiltersrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSectionFiltersRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetSectionFiltersRequest } from "@lukehagar/plexjs/models/operations"; let value: GetSectionFiltersRequest = { sectionId: 949072, @@ -14,7 +14,7 @@ let value: GetSectionFiltersRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/getsectionfiltersresponse.md b/docs/models/operations/getsectionfiltersresponse.md new file mode 100644 index 00000000..ea4b8edd --- /dev/null +++ b/docs/models/operations/getsectionfiltersresponse.md @@ -0,0 +1,17 @@ +# GetSectionFiltersResponse + +The filters on the section + +## Example Usage + +```typescript +import { GetSectionFiltersResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetSectionFiltersResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetSectionFiltersMediaContainer](../../models/operations/getsectionfiltersmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsectionhubsglobals.md b/docs/models/operations/getsectionhubsglobals.md similarity index 96% rename from docs/sdk/models/operations/getsectionhubsglobals.md rename to docs/models/operations/getsectionhubsglobals.md index 095fe5fe..0799fcce 100644 --- a/docs/sdk/models/operations/getsectionhubsglobals.md +++ b/docs/models/operations/getsectionhubsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSectionHubsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetSectionHubsGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetSectionHubsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetSectionHubsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getsectionhubsmediacontainer.md b/docs/models/operations/getsectionhubsmediacontainer.md similarity index 98% rename from docs/sdk/models/operations/getsectionhubsmediacontainer.md rename to docs/models/operations/getsectionhubsmediacontainer.md index 0f6e3e41..c4ebc5a7 100644 --- a/docs/sdk/models/operations/getsectionhubsmediacontainer.md +++ b/docs/models/operations/getsectionhubsmediacontainer.md @@ -8,8 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { GetSectionHubsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { GetSectionHubsMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: GetSectionHubsMediaContainer = { hub: [ @@ -173,7 +172,7 @@ let value: GetSectionHubsMediaContainer = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -228,4 +227,4 @@ let value: GetSectionHubsMediaContainer = { | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `hub` | [shared.Hub](../../../sdk/models/shared/hub.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `hub` | [shared.Hub](../../models/shared/hub.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsectionhubsrequest.md b/docs/models/operations/getsectionhubsrequest.md similarity index 96% rename from docs/sdk/models/operations/getsectionhubsrequest.md rename to docs/models/operations/getsectionhubsrequest.md index 02a20ef1..e9981d49 100644 --- a/docs/sdk/models/operations/getsectionhubsrequest.md +++ b/docs/models/operations/getsectionhubsrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { GetSectionHubsRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { GetSectionHubsRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: GetSectionHubsRequest = { sectionId: 905423, @@ -16,7 +16,7 @@ let value: GetSectionHubsRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -29,4 +29,4 @@ let value: GetSectionHubsRequest = { | `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 +| `onlyTransient` | [shared.BoolInt](../../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/models/operations/getsectionhubsresponse.md b/docs/models/operations/getsectionhubsresponse.md new file mode 100644 index 00000000..2acdaa82 --- /dev/null +++ b/docs/models/operations/getsectionhubsresponse.md @@ -0,0 +1,237 @@ +# GetSectionHubsResponse + +## Example Usage + +```typescript +import { GetSectionHubsResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetSectionHubsResponse = { + headers: { + "key": [ + "", + "", + ], + "key1": [ + "", + "", + ], + }, + result: { + mediaContainer: { + hub: [ + { + type: "track", + context: "hub.home.onDeck", + hubIdentifier: "home.onDeck", + key: "/hubs/sections/home/onDeck", + metadata: [ + { + title: "", + type: "", + addedAt: 29550, + art: "/library/metadata/58683/art/1703239236", + autotag: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + chapterSource: "media", + childCount: 1, + country: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + director: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + genre: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + grandparentGuid: "plex://show/5d9c081b170e24001f2a7be4", + guid: "plex://movie/5d7768ba96b655001fdc0408", + guids: [ + { + id: + "{\"imdbExample\":{\"summary\":\"IMDB example\",\"value\":\"imdb://tt13015952\"},\"tmdbExample\":{\"summary\":\"TMDB example\",\"value\":\"tmdb://2434012\"},\"tvdbExample\":{\"summary\":\"TVDB example\",\"value\":\"tvdb://7945991\"}}", + }, + ], + key: "", + lastViewedAt: 1556281940, + 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: [ + { + accessible: true, + audioProfile: "lc", + container: "mov", + duration: 150192, + exists: true, + file: + "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", + has64bitOffsets: false, + id: 1, + indexes: "sd", + key: "/library/parts/1/1531779263/file.mov", + optimizedForStreaming: false, + size: 105355654, + stream: [ + { + default: true, + audioChannelLayout: "5.1(side)", + channels: 6, + bitDepth: 10, + doviblCompatID: 1, + doviblPresent: true, + dovielPresent: false, + doviLevel: 6, + doviPresent: true, + doviProfile: 8, + dovirpuPresent: true, + doviVersion: "1.0", + bitrate: 24743, + canAutoSync: false, + chromaLocation: "topleft", + chromaSubsampling: "4:2:0", + codedHeight: 1608, + codedWidth: 3840, + closedCaptions: true, + codec: "hevc", + colorPrimaries: "bt2020", + colorRange: "tv", + colorSpace: "bt2020nc", + colorTrc: "smpte2084", + displayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + extendedDisplayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + frameRate: 23.976, + hasScalingMatrix: false, + height: 1602, + id: 1002625, + index: 0, + key: "/library/streams/216389", + language: "English", + languageCode: "eng", + languageTag: "en", + format: "srt", + headerCompression: true, + level: 150, + original: true, + profile: "main 10", + refFrames: 1, + samplingRate: 48000, + scanType: "progressive", + embeddedInVideo: "progressive", + selected: true, + forced: true, + hearingImpaired: true, + dub: true, + title: "SDH", + streamIdentifier: 1, + width: 3840, + }, + ], + videoProfile: "main", + }, + ], + videoCodec: "h264", + videoFrameRate: "24p", + videoProfile: "main", + videoResolution: "720", + width: 1280, + }, + ], + originallyAvailableAt: new Date("2022-12-14"), + parentGuid: "plex://show/5d9c081b170e24001f2a7be4", + ratingArray: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + role: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + theme: "/library/metadata/1/theme/1705636920", + thumb: "/library/metadata/58683/thumb/1703239236", + writer: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + }, + ], + size: 1, + subtype: "podcast", + totalSize: 8, + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [operations.GetSectionHubsResponseBody](../../models/operations/getsectionhubsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsectionhubsresponsebody.md b/docs/models/operations/getsectionhubsresponsebody.md similarity index 89% rename from docs/sdk/models/operations/getsectionhubsresponsebody.md rename to docs/models/operations/getsectionhubsresponsebody.md index d14f7664..0edeb878 100644 --- a/docs/sdk/models/operations/getsectionhubsresponsebody.md +++ b/docs/models/operations/getsectionhubsresponsebody.md @@ -5,8 +5,7 @@ OK ## Example Usage ```typescript -import { GetSectionHubsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { GetSectionHubsResponseBody } from "@lukehagar/plexjs/models/operations"; let value: GetSectionHubsResponseBody = { mediaContainer: { @@ -172,7 +171,7 @@ let value: GetSectionHubsResponseBody = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -222,6 +221,6 @@ let value: GetSectionHubsResponseBody = { ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.GetSectionHubsMediaContainer](../../../sdk/models/operations/getsectionhubsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetSectionHubsMediaContainer](../../models/operations/getsectionhubsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsectionimageglobals.md b/docs/models/operations/getsectionimageglobals.md similarity index 96% rename from docs/sdk/models/operations/getsectionimageglobals.md rename to docs/models/operations/getsectionimageglobals.md index b8f2bb40..a31dc20f 100644 --- a/docs/sdk/models/operations/getsectionimageglobals.md +++ b/docs/models/operations/getsectionimageglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSectionImageGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetSectionImageGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetSectionImageGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetSectionImageGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getsectionimagerequest.md b/docs/models/operations/getsectionimagerequest.md similarity index 99% rename from docs/sdk/models/operations/getsectionimagerequest.md rename to docs/models/operations/getsectionimagerequest.md index fbfb8be0..9dc6b84c 100644 --- a/docs/sdk/models/operations/getsectionimagerequest.md +++ b/docs/models/operations/getsectionimagerequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { GetSectionImageRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { MediaType } from "@lukehagar/plexjs/sdk/models/shared"; +import { GetSectionImageRequest } from "@lukehagar/plexjs/models/operations"; +import { MediaType } from "@lukehagar/plexjs/models/shared"; let value: GetSectionImageRequest = { sectionId: 16951, @@ -21,7 +21,7 @@ let value: GetSectionImageRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -34,5 +34,5 @@ let value: GetSectionImageRequest = { | `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: | A querystring-based filtering language used to select subsets of media. Can be provided as an object with typed properties for type safety, or as a string for complex queries with operators and boolean logic.

The query supports:
- Fields: integer, boolean, tag, string, date, language
- Operators: =, !=, ==, !==, <=, >=, >>=, <<= (varies by field type)
- Boolean operators: & (AND), , (OR), push/pop (parentheses), or=1 (explicit OR)
- Sorting: sort parameter with :desc, :nullsLast modifiers
- Grouping: group parameter
- Limits: limit parameter

Examples:
- Object format: `{type: 4, sourceType: 2, title: "24"}` → `type=4&sourceType=2&title=24`
- String format: `type=4&sourceType=2&title==24` - type = 4 AND sourceType = 2 AND title = "24"
- Complex: `push=1&index=1&or=1&rating=2&pop=1&duration=10` - (index = 1 OR rating = 2) AND duration = 10

See [API Info section](#section/API-Info/Media-Queries) for detailed information on building media queries.
| {
"type": 4,
"sourceType": 2,
"sort": "duration:desc,index"
} | -| `composite` | [shared.Composite](../../../sdk/models/shared/composite.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `mediaQuery` | [shared.MediaQuery](../../models/shared/mediaquery.md) | :heavy_minus_sign: | A querystring-based filtering language used to select subsets of media. Can be provided as an object with typed properties for type safety, or as a string for complex queries with operators and boolean logic.

The query supports:
- Fields: integer, boolean, tag, string, date, language
- Operators: =, !=, ==, !==, <=, >=, >>=, <<= (varies by field type)
- Boolean operators: & (AND), , (OR), push/pop (parentheses), or=1 (explicit OR)
- Sorting: sort parameter with :desc, :nullsLast modifiers
- Grouping: group parameter
- Limits: limit parameter

Examples:
- Object format: `{type: 4, sourceType: 2, title: "24"}` → `type=4&sourceType=2&title=24`
- String format: `type=4&sourceType=2&title==24` - type = 4 AND sourceType = 2 AND title = "24"
- Complex: `push=1&index=1&or=1&rating=2&pop=1&duration=10` - (index = 1 OR rating = 2) AND duration = 10

See [API Info section](#section/API-Info/Media-Queries) for detailed information on building media queries.
| {
"type": 4,
"sourceType": 2,
"sort": "duration:desc,index"
} | +| `composite` | [shared.Composite](../../models/shared/composite.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsectionpreferencesglobals.md b/docs/models/operations/getsectionpreferencesglobals.md similarity index 98% rename from docs/sdk/models/operations/getsectionpreferencesglobals.md rename to docs/models/operations/getsectionpreferencesglobals.md index 39cf2253..e92d0bb2 100644 --- a/docs/sdk/models/operations/getsectionpreferencesglobals.md +++ b/docs/models/operations/getsectionpreferencesglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSectionPreferencesGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetSectionPreferencesGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetSectionPreferencesGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetSectionPreferencesGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getsectionpreferencesrequest.md b/docs/models/operations/getsectionpreferencesrequest.md similarity index 98% rename from docs/sdk/models/operations/getsectionpreferencesrequest.md rename to docs/models/operations/getsectionpreferencesrequest.md index 0947c0ed..17c0097a 100644 --- a/docs/sdk/models/operations/getsectionpreferencesrequest.md +++ b/docs/models/operations/getsectionpreferencesrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSectionPreferencesRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetSectionPreferencesRequest } from "@lukehagar/plexjs/models/operations"; let value: GetSectionPreferencesRequest = { sectionId: 949128, @@ -14,7 +14,7 @@ let value: GetSectionPreferencesRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getsectionsmediacontainer.md b/docs/models/operations/getsectionsmediacontainer.md similarity index 95% rename from docs/sdk/models/operations/getsectionsmediacontainer.md rename to docs/models/operations/getsectionsmediacontainer.md index 9af5c020..6660b905 100644 --- a/docs/sdk/models/operations/getsectionsmediacontainer.md +++ b/docs/models/operations/getsectionsmediacontainer.md @@ -8,8 +8,8 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { GetSectionsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; -import { MediaTypeString } from "@lukehagar/plexjs/sdk/models/shared"; +import { GetSectionsMediaContainer } from "@lukehagar/plexjs/models/operations"; +import { MediaTypeString } from "@lukehagar/plexjs/models/shared"; let value: GetSectionsMediaContainer = { directory: [ @@ -36,5 +36,5 @@ let value: GetSectionsMediaContainer = { | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| | `allowSync` | *boolean* | :heavy_minus_sign: | N/A | -| `directory` | [shared.LibrarySection](../../../sdk/models/shared/librarysection.md)[] | :heavy_minus_sign: | N/A | +| `directory` | [shared.LibrarySection](../../models/shared/librarysection.md)[] | :heavy_minus_sign: | N/A | | `title1` | *string* | :heavy_minus_sign: | Typically just "Plex Library" | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsectionsprefsglobals.md b/docs/models/operations/getsectionsprefsglobals.md similarity index 96% rename from docs/sdk/models/operations/getsectionsprefsglobals.md rename to docs/models/operations/getsectionsprefsglobals.md index 95b1926d..4df44367 100644 --- a/docs/sdk/models/operations/getsectionsprefsglobals.md +++ b/docs/models/operations/getsectionsprefsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSectionsPrefsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetSectionsPrefsGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetSectionsPrefsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetSectionsPrefsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getsectionsprefsrequest.md b/docs/models/operations/getsectionsprefsrequest.md similarity index 97% rename from docs/sdk/models/operations/getsectionsprefsrequest.md rename to docs/models/operations/getsectionsprefsrequest.md index ed65cc57..622aa011 100644 --- a/docs/sdk/models/operations/getsectionsprefsrequest.md +++ b/docs/models/operations/getsectionsprefsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSectionsPrefsRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetSectionsPrefsRequest } from "@lukehagar/plexjs/models/operations"; let value: GetSectionsPrefsRequest = { type: 934408, @@ -14,7 +14,7 @@ let value: GetSectionsPrefsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/getsectionsresponse.md b/docs/models/operations/getsectionsresponse.md new file mode 100644 index 00000000..ec8a2ee4 --- /dev/null +++ b/docs/models/operations/getsectionsresponse.md @@ -0,0 +1,35 @@ +# GetSectionsResponse + +## Example Usage + +```typescript +import { GetSectionsResponse } from "@lukehagar/plexjs/models/operations"; +import { MediaTypeString } from "@lukehagar/plexjs/models/shared"; + +let value: GetSectionsResponse = { + headers: {}, + result: { + mediaContainer: { + directory: [ + { + title: "Movies", + type: MediaTypeString.Movie, + contentChangedAt: 1556281940, + createdAt: 1556281940, + language: "", + uuid: "e69655a2-ef48-4aba-bb19-d3cc3401e7d6", + scannedAt: 1556281940, + updatedAt: 1556281940, + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [operations.GetSectionsResponseBody](../../models/operations/getsectionsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getsectionsresponsebody.md b/docs/models/operations/getsectionsresponsebody.md new file mode 100644 index 00000000..519c3f0b --- /dev/null +++ b/docs/models/operations/getsectionsresponsebody.md @@ -0,0 +1,33 @@ +# GetSectionsResponseBody + +OK + +## Example Usage + +```typescript +import { GetSectionsResponseBody } from "@lukehagar/plexjs/models/operations"; +import { MediaTypeString } from "@lukehagar/plexjs/models/shared"; + +let value: GetSectionsResponseBody = { + mediaContainer: { + directory: [ + { + title: "Movies", + type: MediaTypeString.Movie, + contentChangedAt: 1556281940, + createdAt: 1556281940, + language: "", + uuid: "e69655a2-ef48-4aba-bb19-d3cc3401e7d6", + scannedAt: 1556281940, + updatedAt: 1556281940, + }, + ], + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetSectionsMediaContainer](../../models/operations/getsectionsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getserverinfoglobals.md b/docs/models/operations/getserverinfoglobals.md similarity index 96% rename from docs/sdk/models/operations/getserverinfoglobals.md rename to docs/models/operations/getserverinfoglobals.md index 564ea3a6..f43ffcb8 100644 --- a/docs/sdk/models/operations/getserverinfoglobals.md +++ b/docs/models/operations/getserverinfoglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetServerInfoGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetServerInfoGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetServerInfoGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetServerInfoGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getserverinforequest.md b/docs/models/operations/getserverinforequest.md similarity index 96% rename from docs/sdk/models/operations/getserverinforequest.md rename to docs/models/operations/getserverinforequest.md index 3e7e7035..b7d4d972 100644 --- a/docs/sdk/models/operations/getserverinforequest.md +++ b/docs/models/operations/getserverinforequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetServerInfoRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetServerInfoRequest } from "@lukehagar/plexjs/models/operations"; let value: GetServerInfoRequest = {}; ``` @@ -12,7 +12,7 @@ let value: GetServerInfoRequest = {}; | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getserverresourceserror.md b/docs/models/operations/getserverresourceserror.md similarity index 92% rename from docs/sdk/models/operations/getserverresourceserror.md rename to docs/models/operations/getserverresourceserror.md index eb9b5c0e..0359a17d 100644 --- a/docs/sdk/models/operations/getserverresourceserror.md +++ b/docs/models/operations/getserverresourceserror.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetServerResourcesError } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetServerResourcesError } from "@lukehagar/plexjs/models/operations"; let value: GetServerResourcesError = { code: 1001, diff --git a/docs/models/operations/getserverresourcesglobals.md b/docs/models/operations/getserverresourcesglobals.md new file mode 100644 index 00000000..1a0b6492 --- /dev/null +++ b/docs/models/operations/getserverresourcesglobals.md @@ -0,0 +1,18 @@ +# GetServerResourcesGlobals + +## Example Usage + +```typescript +import { GetServerResourcesGlobals } from "@lukehagar/plexjs/models/operations"; + +let value: GetServerResourcesGlobals = { + clientIdentifier: "abc123", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | \ No newline at end of file diff --git a/docs/sdk/models/operations/getserverresourcesrequest.md b/docs/models/operations/getserverresourcesrequest.md similarity index 92% rename from docs/sdk/models/operations/getserverresourcesrequest.md rename to docs/models/operations/getserverresourcesrequest.md index 59655449..d218e2b6 100644 --- a/docs/sdk/models/operations/getserverresourcesrequest.md +++ b/docs/models/operations/getserverresourcesrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetServerResourcesRequest, IncludeHttps, IncludeIPv6, IncludeRelay } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetServerResourcesRequest, IncludeHttps, IncludeIPv6, IncludeRelay } from "@lukehagar/plexjs/models/operations"; let value: GetServerResourcesRequest = { includeHttps: IncludeHttps.True, @@ -16,8 +16,8 @@ let value: GetServerResourcesRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `includeHttps` | [operations.IncludeHttps](../../../sdk/models/operations/includehttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 | -| `includeRelay` | [operations.IncludeRelay](../../../sdk/models/operations/includerelay.md) | :heavy_minus_sign: | Include Relay addresses in the results
E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400
| 1 | -| `includeIPv6` | [operations.IncludeIPv6](../../../sdk/models/operations/includeipv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 | \ No newline at end of file +| `includeHttps` | [operations.IncludeHttps](../../models/operations/includehttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 | +| `includeRelay` | [operations.IncludeRelay](../../models/operations/includerelay.md) | :heavy_minus_sign: | Include Relay addresses in the results
E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400
| 1 | +| `includeIPv6` | [operations.IncludeIPv6](../../models/operations/includeipv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsessionplaylistindexglobals.md b/docs/models/operations/getsessionplaylistindexglobals.md similarity index 98% rename from docs/sdk/models/operations/getsessionplaylistindexglobals.md rename to docs/models/operations/getsessionplaylistindexglobals.md index d1f60b42..2f151278 100644 --- a/docs/sdk/models/operations/getsessionplaylistindexglobals.md +++ b/docs/models/operations/getsessionplaylistindexglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSessionPlaylistIndexGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetSessionPlaylistIndexGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetSessionPlaylistIndexGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetSessionPlaylistIndexGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getsessionplaylistindexrequest.md b/docs/models/operations/getsessionplaylistindexrequest.md similarity index 98% rename from docs/sdk/models/operations/getsessionplaylistindexrequest.md rename to docs/models/operations/getsessionplaylistindexrequest.md index eaf8f1a1..d475f471 100644 --- a/docs/sdk/models/operations/getsessionplaylistindexrequest.md +++ b/docs/models/operations/getsessionplaylistindexrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSessionPlaylistIndexRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetSessionPlaylistIndexRequest } from "@lukehagar/plexjs/models/operations"; let value: GetSessionPlaylistIndexRequest = { sessionId: "", @@ -15,7 +15,7 @@ let value: GetSessionPlaylistIndexRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getsessionsegmentglobals.md b/docs/models/operations/getsessionsegmentglobals.md similarity index 96% rename from docs/sdk/models/operations/getsessionsegmentglobals.md rename to docs/models/operations/getsessionsegmentglobals.md index 1cde3e91..5fcfd25f 100644 --- a/docs/sdk/models/operations/getsessionsegmentglobals.md +++ b/docs/models/operations/getsessionsegmentglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSessionSegmentGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetSessionSegmentGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetSessionSegmentGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetSessionSegmentGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getsessionsegmentrequest.md b/docs/models/operations/getsessionsegmentrequest.md similarity index 97% rename from docs/sdk/models/operations/getsessionsegmentrequest.md rename to docs/models/operations/getsessionsegmentrequest.md index 1206e5a9..e6d418d4 100644 --- a/docs/sdk/models/operations/getsessionsegmentrequest.md +++ b/docs/models/operations/getsessionsegmentrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSessionSegmentRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetSessionSegmentRequest } from "@lukehagar/plexjs/models/operations"; let value: GetSessionSegmentRequest = { sessionId: "", @@ -16,7 +16,7 @@ let value: GetSessionSegmentRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/getsessionsresponse.md b/docs/models/operations/getsessionsresponse.md new file mode 100644 index 00000000..b4d197bc --- /dev/null +++ b/docs/models/operations/getsessionsresponse.md @@ -0,0 +1,220 @@ +# GetSessionsResponse + +## Example Usage + +```typescript +import { GetSessionsResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetSessionsResponse = { + headers: { + "key": [ + "", + ], + }, + result: { + mediaContainer: { + metadata: [ + { + title: "", + type: "", + addedAt: 29550, + art: "/library/metadata/58683/art/1703239236", + autotag: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + chapterSource: "media", + childCount: 1, + country: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + director: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + genre: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + grandparentGuid: "plex://show/5d9c081b170e24001f2a7be4", + guid: "plex://movie/5d7768ba96b655001fdc0408", + guids: [ + { + id: + "{\"imdbExample\":{\"summary\":\"IMDB example\",\"value\":\"imdb://tt13015952\"},\"tmdbExample\":{\"summary\":\"TMDB example\",\"value\":\"tmdb://2434012\"},\"tvdbExample\":{\"summary\":\"TVDB example\",\"value\":\"tvdb://7945991\"}}", + }, + ], + key: "", + lastViewedAt: 1556281940, + 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: [ + { + accessible: true, + audioProfile: "lc", + container: "mov", + duration: 150192, + exists: true, + file: "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", + has64bitOffsets: false, + id: 1, + indexes: "sd", + key: "/library/parts/1/1531779263/file.mov", + optimizedForStreaming: false, + size: 105355654, + stream: [ + { + default: true, + audioChannelLayout: "5.1(side)", + channels: 6, + bitDepth: 10, + doviblCompatID: 1, + doviblPresent: true, + dovielPresent: false, + doviLevel: 6, + doviPresent: true, + doviProfile: 8, + dovirpuPresent: true, + doviVersion: "1.0", + bitrate: 24743, + canAutoSync: false, + chromaLocation: "topleft", + chromaSubsampling: "4:2:0", + codedHeight: 1608, + codedWidth: 3840, + closedCaptions: true, + codec: "hevc", + colorPrimaries: "bt2020", + colorRange: "tv", + colorSpace: "bt2020nc", + colorTrc: "smpte2084", + displayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + extendedDisplayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + frameRate: 23.976, + hasScalingMatrix: false, + height: 1602, + id: 1002625, + index: 0, + key: "/library/streams/216389", + language: "English", + languageCode: "eng", + languageTag: "en", + format: "srt", + headerCompression: true, + level: 150, + original: true, + profile: "main 10", + refFrames: 1, + samplingRate: 48000, + scanType: "progressive", + embeddedInVideo: "progressive", + selected: true, + forced: true, + hearingImpaired: true, + dub: true, + title: "SDH", + streamIdentifier: 1, + width: 3840, + }, + ], + videoProfile: "main", + }, + ], + videoCodec: "h264", + videoFrameRate: "24p", + videoProfile: "main", + videoResolution: "720", + width: 1280, + }, + ], + originallyAvailableAt: new Date("2022-12-14"), + parentGuid: "plex://show/5d9c081b170e24001f2a7be4", + ratingArray: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + role: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + theme: "/library/metadata/1/theme/1705636920", + thumb: "/library/metadata/58683/thumb/1703239236", + writer: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [shared.MediaContainerWithMetadata](../../models/shared/mediacontainerwithmetadata.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsonicallysimilarglobals.md b/docs/models/operations/getsonicallysimilarglobals.md similarity index 96% rename from docs/sdk/models/operations/getsonicallysimilarglobals.md rename to docs/models/operations/getsonicallysimilarglobals.md index c512ac0f..95932a92 100644 --- a/docs/sdk/models/operations/getsonicallysimilarglobals.md +++ b/docs/models/operations/getsonicallysimilarglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSonicallySimilarGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetSonicallySimilarGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetSonicallySimilarGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetSonicallySimilarGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getsonicallysimilarrequest.md b/docs/models/operations/getsonicallysimilarrequest.md similarity index 97% rename from docs/sdk/models/operations/getsonicallysimilarrequest.md rename to docs/models/operations/getsonicallysimilarrequest.md index 883f0a6b..72d1fd6d 100644 --- a/docs/sdk/models/operations/getsonicallysimilarrequest.md +++ b/docs/models/operations/getsonicallysimilarrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSonicallySimilarRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetSonicallySimilarRequest } from "@lukehagar/plexjs/models/operations"; let value: GetSonicallySimilarRequest = { sectionId: 363501, @@ -17,7 +17,7 @@ let value: GetSonicallySimilarRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getsonicpathglobals.md b/docs/models/operations/getsonicpathglobals.md similarity index 96% rename from docs/sdk/models/operations/getsonicpathglobals.md rename to docs/models/operations/getsonicpathglobals.md index b75e55bf..548f376d 100644 --- a/docs/sdk/models/operations/getsonicpathglobals.md +++ b/docs/models/operations/getsonicpathglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSonicPathGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetSonicPathGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetSonicPathGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetSonicPathGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getsonicpathrequest.md b/docs/models/operations/getsonicpathrequest.md similarity index 97% rename from docs/sdk/models/operations/getsonicpathrequest.md rename to docs/models/operations/getsonicpathrequest.md index 89a593d3..bbadd860 100644 --- a/docs/sdk/models/operations/getsonicpathrequest.md +++ b/docs/models/operations/getsonicpathrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSonicPathRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetSonicPathRequest } from "@lukehagar/plexjs/models/operations"; let value: GetSonicPathRequest = { sectionId: 683613, @@ -16,7 +16,7 @@ let value: GetSonicPathRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/getsourceconnectioninformationdevice.md b/docs/models/operations/getsourceconnectioninformationdevice.md new file mode 100644 index 00000000..18dd220d --- /dev/null +++ b/docs/models/operations/getsourceconnectioninformationdevice.md @@ -0,0 +1,18 @@ +# GetSourceConnectionInformationDevice + +## Example Usage + +```typescript +import { GetSourceConnectionInformationDevice } from "@lukehagar/plexjs/models/operations"; + +let value: GetSourceConnectionInformationDevice = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | +| `accessToken` | *string* | :heavy_minus_sign: | N/A | +| `clientIdentifier` | *string* | :heavy_minus_sign: | N/A | +| `connection` | [operations.Connection](../../models/operations/connection.md)[] | :heavy_minus_sign: | N/A | +| `name` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsourceconnectioninformationglobals.md b/docs/models/operations/getsourceconnectioninformationglobals.md similarity index 97% rename from docs/sdk/models/operations/getsourceconnectioninformationglobals.md rename to docs/models/operations/getsourceconnectioninformationglobals.md index 4176c46e..5add63ad 100644 --- a/docs/sdk/models/operations/getsourceconnectioninformationglobals.md +++ b/docs/models/operations/getsourceconnectioninformationglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSourceConnectionInformationGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetSourceConnectionInformationGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetSourceConnectionInformationGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetSourceConnectionInformationGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getsourceconnectioninformationmediacontainer.md b/docs/models/operations/getsourceconnectioninformationmediacontainer.md similarity index 96% rename from docs/sdk/models/operations/getsourceconnectioninformationmediacontainer.md rename to docs/models/operations/getsourceconnectioninformationmediacontainer.md index 0057f411..51c903c6 100644 --- a/docs/sdk/models/operations/getsourceconnectioninformationmediacontainer.md +++ b/docs/models/operations/getsourceconnectioninformationmediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { GetSourceConnectionInformationMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetSourceConnectionInformationMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: GetSourceConnectionInformationMediaContainer = {}; ``` @@ -21,4 +21,4 @@ let value: GetSourceConnectionInformationMediaContainer = {}; | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `device` | [operations.GetSourceConnectionInformationDevice](../../../sdk/models/operations/getsourceconnectioninformationdevice.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `device` | [operations.GetSourceConnectionInformationDevice](../../models/operations/getsourceconnectioninformationdevice.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsourceconnectioninformationrequest.md b/docs/models/operations/getsourceconnectioninformationrequest.md similarity index 95% rename from docs/sdk/models/operations/getsourceconnectioninformationrequest.md rename to docs/models/operations/getsourceconnectioninformationrequest.md index 235b5683..9934ebcd 100644 --- a/docs/sdk/models/operations/getsourceconnectioninformationrequest.md +++ b/docs/models/operations/getsourceconnectioninformationrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { GetSourceConnectionInformationRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { GetSourceConnectionInformationRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: GetSourceConnectionInformationRequest = { source: "", @@ -16,7 +16,7 @@ let value: GetSourceConnectionInformationRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -28,4 +28,4 @@ let value: GetSourceConnectionInformationRequest = { | `deviceName` | *string* | :heavy_minus_sign: | 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 +| `refresh` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Force refresh | 1 | \ No newline at end of file diff --git a/docs/models/operations/getsourceconnectioninformationresponse.md b/docs/models/operations/getsourceconnectioninformationresponse.md new file mode 100644 index 00000000..e15f9f9d --- /dev/null +++ b/docs/models/operations/getsourceconnectioninformationresponse.md @@ -0,0 +1,17 @@ +# GetSourceConnectionInformationResponse + +OK + +## Example Usage + +```typescript +import { GetSourceConnectionInformationResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetSourceConnectionInformationResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetSourceConnectionInformationMediaContainer](../../models/operations/getsourceconnectioninformationmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getstreamglobals.md b/docs/models/operations/getstreamglobals.md similarity index 97% rename from docs/sdk/models/operations/getstreamglobals.md rename to docs/models/operations/getstreamglobals.md index 8e66a270..25e61f15 100644 --- a/docs/sdk/models/operations/getstreamglobals.md +++ b/docs/models/operations/getstreamglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetStreamGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetStreamGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetStreamGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetStreamGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getstreamlevelsglobals.md b/docs/models/operations/getstreamlevelsglobals.md similarity index 96% rename from docs/sdk/models/operations/getstreamlevelsglobals.md rename to docs/models/operations/getstreamlevelsglobals.md index 076a1ca2..245de56e 100644 --- a/docs/sdk/models/operations/getstreamlevelsglobals.md +++ b/docs/models/operations/getstreamlevelsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetStreamLevelsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetStreamLevelsGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetStreamLevelsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetStreamLevelsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getstreamlevelslevel.md b/docs/models/operations/getstreamlevelslevel.md similarity index 82% rename from docs/sdk/models/operations/getstreamlevelslevel.md rename to docs/models/operations/getstreamlevelslevel.md index 05fea71d..1513d671 100644 --- a/docs/sdk/models/operations/getstreamlevelslevel.md +++ b/docs/models/operations/getstreamlevelslevel.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetStreamLevelsLevel } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetStreamLevelsLevel } from "@lukehagar/plexjs/models/operations"; let value: GetStreamLevelsLevel = {}; ``` diff --git a/docs/sdk/models/operations/getstreamlevelsmediacontainer.md b/docs/models/operations/getstreamlevelsmediacontainer.md similarity index 97% rename from docs/sdk/models/operations/getstreamlevelsmediacontainer.md rename to docs/models/operations/getstreamlevelsmediacontainer.md index 560fa3cb..2f065ca7 100644 --- a/docs/sdk/models/operations/getstreamlevelsmediacontainer.md +++ b/docs/models/operations/getstreamlevelsmediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { GetStreamLevelsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetStreamLevelsMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: GetStreamLevelsMediaContainer = {}; ``` @@ -21,5 +21,5 @@ let value: GetStreamLevelsMediaContainer = {}; | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `level` | [operations.GetStreamLevelsLevel](../../../sdk/models/operations/getstreamlevelslevel.md)[] | :heavy_minus_sign: | N/A | +| `level` | [operations.GetStreamLevelsLevel](../../models/operations/getstreamlevelslevel.md)[] | :heavy_minus_sign: | N/A | | `totalSamples` | *string* | :heavy_minus_sign: | The total number of samples (as a string) | \ No newline at end of file diff --git a/docs/sdk/models/operations/getstreamlevelsrequest.md b/docs/models/operations/getstreamlevelsrequest.md similarity index 97% rename from docs/sdk/models/operations/getstreamlevelsrequest.md rename to docs/models/operations/getstreamlevelsrequest.md index 5c948bf9..a070579c 100644 --- a/docs/sdk/models/operations/getstreamlevelsrequest.md +++ b/docs/models/operations/getstreamlevelsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetStreamLevelsRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetStreamLevelsRequest } from "@lukehagar/plexjs/models/operations"; let value: GetStreamLevelsRequest = { streamId: 474264, @@ -14,7 +14,7 @@ let value: GetStreamLevelsRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/getstreamlevelsresponse.md b/docs/models/operations/getstreamlevelsresponse.md new file mode 100644 index 00000000..e60f254c --- /dev/null +++ b/docs/models/operations/getstreamlevelsresponse.md @@ -0,0 +1,17 @@ +# GetStreamLevelsResponse + +OK + +## Example Usage + +```typescript +import { GetStreamLevelsResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetStreamLevelsResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetStreamLevelsMediaContainer](../../models/operations/getstreamlevelsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getstreamloudnessglobals.md b/docs/models/operations/getstreamloudnessglobals.md similarity index 96% rename from docs/sdk/models/operations/getstreamloudnessglobals.md rename to docs/models/operations/getstreamloudnessglobals.md index fe6f5434..a91ef8f6 100644 --- a/docs/sdk/models/operations/getstreamloudnessglobals.md +++ b/docs/models/operations/getstreamloudnessglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetStreamLoudnessGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetStreamLoudnessGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetStreamLoudnessGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetStreamLoudnessGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getstreamloudnessrequest.md b/docs/models/operations/getstreamloudnessrequest.md similarity index 97% rename from docs/sdk/models/operations/getstreamloudnessrequest.md rename to docs/models/operations/getstreamloudnessrequest.md index a5678473..2def9f16 100644 --- a/docs/sdk/models/operations/getstreamloudnessrequest.md +++ b/docs/models/operations/getstreamloudnessrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetStreamLoudnessRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetStreamLoudnessRequest } from "@lukehagar/plexjs/models/operations"; let value: GetStreamLoudnessRequest = { streamId: 811213, @@ -14,7 +14,7 @@ let value: GetStreamLoudnessRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getstreamrequest.md b/docs/models/operations/getstreamrequest.md similarity index 97% rename from docs/sdk/models/operations/getstreamrequest.md rename to docs/models/operations/getstreamrequest.md index d264d87f..8b53e37e 100644 --- a/docs/sdk/models/operations/getstreamrequest.md +++ b/docs/models/operations/getstreamrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { GetStreamRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { GetStreamRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: GetStreamRequest = { streamId: 471434, @@ -17,7 +17,7 @@ let value: GetStreamRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -32,4 +32,4 @@ let value: GetStreamRequest = { | `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) | | | `format` | *string* | :heavy_minus_sign: | The requested format for the subtitle to convert the subtitles to (only used for text subtitles) | | -| `autoAdjustSubtitle` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Whether the server should attempt to automatically adjust the subtitle timestamps to match the media | 1 | \ No newline at end of file +| `autoAdjustSubtitle` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Whether the server should attempt to automatically adjust the subtitle timestamps to match the media | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsubscriptionglobals.md b/docs/models/operations/getsubscriptionglobals.md similarity index 96% rename from docs/sdk/models/operations/getsubscriptionglobals.md rename to docs/models/operations/getsubscriptionglobals.md index 06088feb..5d221c9c 100644 --- a/docs/sdk/models/operations/getsubscriptionglobals.md +++ b/docs/models/operations/getsubscriptionglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSubscriptionGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetSubscriptionGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetSubscriptionGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetSubscriptionGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getsubscriptionrequest.md b/docs/models/operations/getsubscriptionrequest.md similarity index 94% rename from docs/sdk/models/operations/getsubscriptionrequest.md rename to docs/models/operations/getsubscriptionrequest.md index 02dfb739..a8ec9e92 100644 --- a/docs/sdk/models/operations/getsubscriptionrequest.md +++ b/docs/models/operations/getsubscriptionrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { GetSubscriptionRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { GetSubscriptionRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: GetSubscriptionRequest = { subscriptionId: 533467, @@ -17,7 +17,7 @@ let value: GetSubscriptionRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -29,5 +29,5 @@ let value: GetSubscriptionRequest = { | `deviceName` | *string* | :heavy_minus_sign: | 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 +| `includeGrabs` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Indicates whether the active grabs should be included as well | 1 | +| `includeStorage` | [shared.BoolInt](../../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/gettagsdirectory.md b/docs/models/operations/gettagsdirectory.md similarity index 97% rename from docs/sdk/models/operations/gettagsdirectory.md rename to docs/models/operations/gettagsdirectory.md index aef6c40c..1c9a6518 100644 --- a/docs/sdk/models/operations/gettagsdirectory.md +++ b/docs/models/operations/gettagsdirectory.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTagsDirectory } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetTagsDirectory } from "@lukehagar/plexjs/models/operations"; let value: GetTagsDirectory = {}; ``` diff --git a/docs/sdk/models/operations/gettagsglobals.md b/docs/models/operations/gettagsglobals.md similarity index 97% rename from docs/sdk/models/operations/gettagsglobals.md rename to docs/models/operations/gettagsglobals.md index 0be494f0..b1954ddc 100644 --- a/docs/sdk/models/operations/gettagsglobals.md +++ b/docs/models/operations/gettagsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTagsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetTagsGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetTagsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetTagsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/gettagsmediacontainer.md b/docs/models/operations/gettagsmediacontainer.md similarity index 95% rename from docs/sdk/models/operations/gettagsmediacontainer.md rename to docs/models/operations/gettagsmediacontainer.md index 1d4c0a18..47cf19c2 100644 --- a/docs/sdk/models/operations/gettagsmediacontainer.md +++ b/docs/models/operations/gettagsmediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { GetTagsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetTagsMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: GetTagsMediaContainer = {}; ``` @@ -21,4 +21,4 @@ let value: GetTagsMediaContainer = {}; | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `directory` | [operations.GetTagsDirectory](../../../sdk/models/operations/gettagsdirectory.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `directory` | [operations.GetTagsDirectory](../../models/operations/gettagsdirectory.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/gettagsrequest.md b/docs/models/operations/gettagsrequest.md similarity index 98% rename from docs/sdk/models/operations/gettagsrequest.md rename to docs/models/operations/gettagsrequest.md index 2553a5fb..f560a0bb 100644 --- a/docs/sdk/models/operations/gettagsrequest.md +++ b/docs/models/operations/gettagsrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { GetTagsRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { MediaType } from "@lukehagar/plexjs/sdk/models/shared"; +import { GetTagsRequest } from "@lukehagar/plexjs/models/operations"; +import { MediaType } from "@lukehagar/plexjs/models/shared"; let value: GetTagsRequest = { type: MediaType.TvShow, @@ -15,7 +15,7 @@ let value: GetTagsRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -26,4 +26,4 @@ let value: GetTagsRequest = { | `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | | `deviceName` | *string* | :heavy_minus_sign: | 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` | [shared.MediaType](../../../sdk/models/shared/mediatype.md) | :heavy_minus_sign: | The type of media to retrieve or filter by.

1 = movie
2 = show
3 = season
4 = episode
5 = artist
6 = album
7 = track
8 = photo_album
9 = photo

E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
| 2 | \ No newline at end of file +| `type` | [shared.MediaType](../../models/shared/mediatype.md) | :heavy_minus_sign: | The type of media to retrieve or filter by.

1 = movie
2 = show
3 = season
4 = episode
5 = artist
6 = album
7 = track
8 = photo_album
9 = photo

E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
| 2 | \ No newline at end of file diff --git a/docs/models/operations/gettagsresponse.md b/docs/models/operations/gettagsresponse.md new file mode 100644 index 00000000..13b79799 --- /dev/null +++ b/docs/models/operations/gettagsresponse.md @@ -0,0 +1,17 @@ +# GetTagsResponse + +OK + +## Example Usage + +```typescript +import { GetTagsResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetTagsResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `mediaContainer` | [operations.GetTagsMediaContainer](../../models/operations/gettagsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/gettasksbutlertask.md b/docs/models/operations/gettasksbutlertask.md similarity index 97% rename from docs/sdk/models/operations/gettasksbutlertask.md rename to docs/models/operations/gettasksbutlertask.md index 43b978bb..fccfba16 100644 --- a/docs/sdk/models/operations/gettasksbutlertask.md +++ b/docs/models/operations/gettasksbutlertask.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTasksButlerTask } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetTasksButlerTask } from "@lukehagar/plexjs/models/operations"; let value: GetTasksButlerTask = {}; ``` diff --git a/docs/models/operations/gettasksresponse.md b/docs/models/operations/gettasksresponse.md new file mode 100644 index 00000000..d72344fe --- /dev/null +++ b/docs/models/operations/gettasksresponse.md @@ -0,0 +1,17 @@ +# GetTasksResponse + +Butler tasks + +## Example Usage + +```typescript +import { GetTasksResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetTasksResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | +| `butlerTasks` | [operations.ButlerTasks](../../models/operations/butlertasks.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/gettemplateglobals.md b/docs/models/operations/gettemplateglobals.md similarity index 96% rename from docs/sdk/models/operations/gettemplateglobals.md rename to docs/models/operations/gettemplateglobals.md index aad2d734..f189d6b1 100644 --- a/docs/sdk/models/operations/gettemplateglobals.md +++ b/docs/models/operations/gettemplateglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTemplateGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetTemplateGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetTemplateGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetTemplateGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/gettemplatemediacontainer.md b/docs/models/operations/gettemplatemediacontainer.md similarity index 97% rename from docs/sdk/models/operations/gettemplatemediacontainer.md rename to docs/models/operations/gettemplatemediacontainer.md index c98fc135..af707708 100644 --- a/docs/sdk/models/operations/gettemplatemediacontainer.md +++ b/docs/models/operations/gettemplatemediacontainer.md @@ -8,8 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { GetTemplateMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { GetTemplateMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: GetTemplateMediaContainer = { subscriptionTemplate: [ @@ -175,7 +174,7 @@ let value: GetTemplateMediaContainer = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -230,4 +229,4 @@ let value: GetTemplateMediaContainer = { | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `subscriptionTemplate` | [operations.SubscriptionTemplate](../../../sdk/models/operations/subscriptiontemplate.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `subscriptionTemplate` | [operations.SubscriptionTemplate](../../models/operations/subscriptiontemplate.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/gettemplaterequest.md b/docs/models/operations/gettemplaterequest.md similarity index 97% rename from docs/sdk/models/operations/gettemplaterequest.md rename to docs/models/operations/gettemplaterequest.md index 53afbe54..3b4b18da 100644 --- a/docs/sdk/models/operations/gettemplaterequest.md +++ b/docs/models/operations/gettemplaterequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTemplateRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetTemplateRequest } from "@lukehagar/plexjs/models/operations"; let value: GetTemplateRequest = { guid: "plex://episode/5fc70265c40548002d539d23", @@ -14,7 +14,7 @@ let value: GetTemplateRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/gettemplateresponse.md b/docs/models/operations/gettemplateresponse.md new file mode 100644 index 00000000..da751717 --- /dev/null +++ b/docs/models/operations/gettemplateresponse.md @@ -0,0 +1,229 @@ +# GetTemplateResponse + +## Example Usage + +```typescript +import { GetTemplateResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetTemplateResponse = { + headers: {}, + result: { + mediaContainer: { + subscriptionTemplate: [ + { + mediaSubscription: [ + { + title: "This Episode", + mediaGrabOperation: [ + { + metadata: { + title: "", + type: "", + addedAt: 3539, + art: "/library/metadata/58683/art/1703239236", + autotag: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + chapterSource: "media", + childCount: 1, + country: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + director: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + genre: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + grandparentGuid: "plex://show/5d9c081b170e24001f2a7be4", + guid: "plex://movie/5d7768ba96b655001fdc0408", + guids: [ + { + id: + "{\"imdbExample\":{\"summary\":\"IMDB example\",\"value\":\"imdb://tt13015952\"},\"tmdbExample\":{\"summary\":\"TMDB example\",\"value\":\"tmdb://2434012\"},\"tvdbExample\":{\"summary\":\"TVDB example\",\"value\":\"tvdb://7945991\"}}", + }, + ], + key: "", + lastViewedAt: 1556281940, + 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: [ + { + accessible: true, + audioProfile: "lc", + container: "mov", + duration: 150192, + exists: true, + file: + "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", + has64bitOffsets: false, + id: 1, + indexes: "sd", + key: "/library/parts/1/1531779263/file.mov", + optimizedForStreaming: false, + size: 105355654, + stream: [ + { + default: true, + audioChannelLayout: "5.1(side)", + channels: 6, + bitDepth: 10, + doviblCompatID: 1, + doviblPresent: true, + dovielPresent: false, + doviLevel: 6, + doviPresent: true, + doviProfile: 8, + dovirpuPresent: true, + doviVersion: "1.0", + bitrate: 24743, + canAutoSync: false, + chromaLocation: "topleft", + chromaSubsampling: "4:2:0", + codedHeight: 1608, + codedWidth: 3840, + closedCaptions: true, + codec: "hevc", + colorPrimaries: "bt2020", + colorRange: "tv", + colorSpace: "bt2020nc", + colorTrc: "smpte2084", + displayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + extendedDisplayTitle: + "4K DoVi/HDR10 (HEVC Main 10)", + frameRate: 23.976, + hasScalingMatrix: false, + height: 1602, + id: 1002625, + index: 0, + key: "/library/streams/216389", + language: "English", + languageCode: "eng", + languageTag: "en", + format: "srt", + headerCompression: true, + level: 150, + original: true, + profile: "main 10", + refFrames: 1, + samplingRate: 48000, + scanType: "progressive", + embeddedInVideo: "progressive", + selected: true, + forced: true, + hearingImpaired: true, + dub: true, + title: "SDH", + streamIdentifier: 1, + width: 3840, + }, + ], + videoProfile: "main", + }, + ], + videoCodec: "h264", + videoFrameRate: "24p", + videoProfile: "main", + videoResolution: "720", + width: 1280, + }, + ], + originallyAvailableAt: new Date("2022-12-14"), + parentGuid: "plex://show/5d9c081b170e24001f2a7be4", + ratingArray: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + role: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + theme: "/library/metadata/1/theme/1705636920", + thumb: "/library/metadata/58683/thumb/1703239236", + writer: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + }, + }, + ], + }, + ], + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [operations.GetTemplateResponseBody](../../models/operations/gettemplateresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/gettemplateresponsebody.md b/docs/models/operations/gettemplateresponsebody.md similarity index 88% rename from docs/sdk/models/operations/gettemplateresponsebody.md rename to docs/models/operations/gettemplateresponsebody.md index 7c096160..1fd31b62 100644 --- a/docs/sdk/models/operations/gettemplateresponsebody.md +++ b/docs/models/operations/gettemplateresponsebody.md @@ -5,8 +5,7 @@ OK ## Example Usage ```typescript -import { GetTemplateResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { GetTemplateResponseBody } from "@lukehagar/plexjs/models/operations"; let value: GetTemplateResponseBody = { mediaContainer: { @@ -173,7 +172,7 @@ let value: GetTemplateResponseBody = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -223,6 +222,6 @@ let value: GetTemplateResponseBody = { ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.GetTemplateMediaContainer](../../../sdk/models/operations/gettemplatemediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetTemplateMediaContainer](../../models/operations/gettemplatemediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getthumbglobals.md b/docs/models/operations/getthumbglobals.md similarity index 97% rename from docs/sdk/models/operations/getthumbglobals.md rename to docs/models/operations/getthumbglobals.md index 17aefac1..e6749b4c 100644 --- a/docs/sdk/models/operations/getthumbglobals.md +++ b/docs/models/operations/getthumbglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetThumbGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetThumbGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetThumbGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetThumbGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/getthumbrequest.md b/docs/models/operations/getthumbrequest.md similarity index 97% rename from docs/sdk/models/operations/getthumbrequest.md rename to docs/models/operations/getthumbrequest.md index a63794a5..4cce7ee6 100644 --- a/docs/sdk/models/operations/getthumbrequest.md +++ b/docs/models/operations/getthumbrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetThumbRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetThumbRequest } from "@lukehagar/plexjs/models/operations"; let value: GetThumbRequest = { deviceId: 689308, @@ -15,7 +15,7 @@ let value: GetThumbRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/gettokendetailsbadrequesterror.md b/docs/models/operations/gettokendetailsbadrequesterror.md similarity index 97% rename from docs/sdk/models/operations/gettokendetailsbadrequesterror.md rename to docs/models/operations/gettokendetailsbadrequesterror.md index e6eceafb..c229b354 100644 --- a/docs/sdk/models/operations/gettokendetailsbadrequesterror.md +++ b/docs/models/operations/gettokendetailsbadrequesterror.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTokenDetailsBadRequestError } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetTokenDetailsBadRequestError } from "@lukehagar/plexjs/models/operations"; let value: GetTokenDetailsBadRequestError = { code: 1000, diff --git a/docs/sdk/models/operations/gettokendetailsglobals.md b/docs/models/operations/gettokendetailsglobals.md similarity index 96% rename from docs/sdk/models/operations/gettokendetailsglobals.md rename to docs/models/operations/gettokendetailsglobals.md index dad9fda7..eb2984aa 100644 --- a/docs/sdk/models/operations/gettokendetailsglobals.md +++ b/docs/models/operations/gettokendetailsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTokenDetailsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetTokenDetailsGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetTokenDetailsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetTokenDetailsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/gettokendetailsrequest.md b/docs/models/operations/gettokendetailsrequest.md similarity index 96% rename from docs/sdk/models/operations/gettokendetailsrequest.md rename to docs/models/operations/gettokendetailsrequest.md index 97b20462..185d63a4 100644 --- a/docs/sdk/models/operations/gettokendetailsrequest.md +++ b/docs/models/operations/gettokendetailsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTokenDetailsRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetTokenDetailsRequest } from "@lukehagar/plexjs/models/operations"; let value: GetTokenDetailsRequest = {}; ``` @@ -12,7 +12,7 @@ let value: GetTokenDetailsRequest = {}; | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/gettokendetailsunauthorizederror.md b/docs/models/operations/gettokendetailsunauthorizederror.md similarity index 97% rename from docs/sdk/models/operations/gettokendetailsunauthorizederror.md rename to docs/models/operations/gettokendetailsunauthorizederror.md index 7edfd987..59dc5094 100644 --- a/docs/sdk/models/operations/gettokendetailsunauthorizederror.md +++ b/docs/models/operations/gettokendetailsunauthorizederror.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTokenDetailsUnauthorizedError } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetTokenDetailsUnauthorizedError } from "@lukehagar/plexjs/models/operations"; let value: GetTokenDetailsUnauthorizedError = { code: 1001, diff --git a/docs/sdk/models/operations/gettransienttokenglobals.md b/docs/models/operations/gettransienttokenglobals.md similarity index 96% rename from docs/sdk/models/operations/gettransienttokenglobals.md rename to docs/models/operations/gettransienttokenglobals.md index 8f2ec139..78c64767 100644 --- a/docs/sdk/models/operations/gettransienttokenglobals.md +++ b/docs/models/operations/gettransienttokenglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTransientTokenGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetTransientTokenGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetTransientTokenGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetTransientTokenGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/gettransienttokenmediacontainer.md b/docs/models/operations/gettransienttokenmediacontainer.md similarity index 99% rename from docs/sdk/models/operations/gettransienttokenmediacontainer.md rename to docs/models/operations/gettransienttokenmediacontainer.md index 6656929f..aecafedd 100644 --- a/docs/sdk/models/operations/gettransienttokenmediacontainer.md +++ b/docs/models/operations/gettransienttokenmediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { GetTransientTokenMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetTransientTokenMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: GetTransientTokenMediaContainer = {}; ``` diff --git a/docs/models/operations/gettransienttokenrequest.md b/docs/models/operations/gettransienttokenrequest.md new file mode 100644 index 00000000..2f920025 --- /dev/null +++ b/docs/models/operations/gettransienttokenrequest.md @@ -0,0 +1,30 @@ +# GetTransientTokenRequest + +## Example Usage + +```typescript +import { GetTransientTokenRequest, GetTransientTokenScope, GetTransientTokenType } from "@lukehagar/plexjs/models/operations"; + +let value: GetTransientTokenRequest = { + type: GetTransientTokenType.Delegation, + scope: GetTransientTokenScope.All, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | 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](../../models/operations/gettransienttokentype.md) | :heavy_check_mark: | The value `delegation` is the only supported `type` parameter. | | +| `scope` | [operations.GetTransientTokenScope](../../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/models/operations/gettransienttokenresponse.md b/docs/models/operations/gettransienttokenresponse.md new file mode 100644 index 00000000..14e765d4 --- /dev/null +++ b/docs/models/operations/gettransienttokenresponse.md @@ -0,0 +1,17 @@ +# GetTransientTokenResponse + +OK + +## Example Usage + +```typescript +import { GetTransientTokenResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetTransientTokenResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetTransientTokenMediaContainer](../../models/operations/gettransienttokenmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/gettransienttokenscope.md b/docs/models/operations/gettransienttokenscope.md similarity index 75% rename from docs/sdk/models/operations/gettransienttokenscope.md rename to docs/models/operations/gettransienttokenscope.md index 2fc4b850..e9fbdf3b 100644 --- a/docs/sdk/models/operations/gettransienttokenscope.md +++ b/docs/models/operations/gettransienttokenscope.md @@ -5,7 +5,7 @@ The value `all` is the only supported `scope` parameter. ## Example Usage ```typescript -import { GetTransientTokenScope } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetTransientTokenScope } from "@lukehagar/plexjs/models/operations"; let value: GetTransientTokenScope = GetTransientTokenScope.All; ``` diff --git a/docs/sdk/models/operations/gettransienttokentype.md b/docs/models/operations/gettransienttokentype.md similarity index 78% rename from docs/sdk/models/operations/gettransienttokentype.md rename to docs/models/operations/gettransienttokentype.md index 7ed4afbf..fc6e602b 100644 --- a/docs/sdk/models/operations/gettransienttokentype.md +++ b/docs/models/operations/gettransienttokentype.md @@ -5,7 +5,7 @@ The value `delegation` is the only supported `type` parameter. ## Example Usage ```typescript -import { GetTransientTokenType } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetTransientTokenType } from "@lukehagar/plexjs/models/operations"; let value: GetTransientTokenType = GetTransientTokenType.Delegation; ``` diff --git a/docs/sdk/models/operations/getupdatesstatusmediacontainer.md b/docs/models/operations/getupdatesstatusmediacontainer.md similarity index 97% rename from docs/sdk/models/operations/getupdatesstatusmediacontainer.md rename to docs/models/operations/getupdatesstatusmediacontainer.md index 4391c730..36c143da 100644 --- a/docs/sdk/models/operations/getupdatesstatusmediacontainer.md +++ b/docs/models/operations/getupdatesstatusmediacontainer.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetUpdatesStatusMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetUpdatesStatusMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: GetUpdatesStatusMediaContainer = {}; ``` @@ -16,5 +16,5 @@ let value: GetUpdatesStatusMediaContainer = {}; | `canInstall` | *boolean* | :heavy_minus_sign: | Indicates whether this install can be updated through these endpoints (typically only on MacOS and Windows) | | `checkedAt` | *number* | :heavy_minus_sign: | The last time a check for updates was performed | | `downloadURL` | *string* | :heavy_minus_sign: | The URL where the update is available | -| `release` | [operations.Release](../../../sdk/models/operations/release.md)[] | :heavy_minus_sign: | N/A | +| `release` | [operations.Release](../../models/operations/release.md)[] | :heavy_minus_sign: | N/A | | `status` | *number* | :heavy_minus_sign: | The current error code (`0` means no error) | \ No newline at end of file diff --git a/docs/models/operations/getupdatesstatusresponse.md b/docs/models/operations/getupdatesstatusresponse.md new file mode 100644 index 00000000..7de0ab4a --- /dev/null +++ b/docs/models/operations/getupdatesstatusresponse.md @@ -0,0 +1,17 @@ +# GetUpdatesStatusResponse + +OK + +## Example Usage + +```typescript +import { GetUpdatesStatusResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetUpdatesStatusResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `mediaContainer` | [operations.GetUpdatesStatusMediaContainer](../../models/operations/getupdatesstatusmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getupdatesstatusstate.md b/docs/models/operations/getupdatesstatusstate.md new file mode 100644 index 00000000..cb46af26 --- /dev/null +++ b/docs/models/operations/getupdatesstatusstate.md @@ -0,0 +1,39 @@ +# GetUpdatesStatusState + +The status of this update. + +- available - This release is available +- downloading - This release is downloading +- downloaded - This release has been downloaded +- installing - This release is installing +- tonight - This release will be installed tonight +- skipped - This release has been skipped +- error - This release has an error +- notify - This release is only notifying it is available (typically because it cannot be installed on this setup) +- done - This release is complete + + +## Example Usage + +```typescript +import { GetUpdatesStatusState } from "@lukehagar/plexjs/models/operations"; + +let value: GetUpdatesStatusState = GetUpdatesStatusState.Done; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Available` | available | +| `Downloading` | downloading | +| `Downloaded` | downloaded | +| `Installing` | installing | +| `Tonight` | tonight | +| `Skipped` | skipped | +| `Error` | error | +| `Notify` | notify | +| `Done` | done | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/sdk/models/operations/getusersbadrequesterror.md b/docs/models/operations/getusersbadrequesterror.md similarity index 93% rename from docs/sdk/models/operations/getusersbadrequesterror.md rename to docs/models/operations/getusersbadrequesterror.md index e690e5cc..d82c46c9 100644 --- a/docs/sdk/models/operations/getusersbadrequesterror.md +++ b/docs/models/operations/getusersbadrequesterror.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetUsersBadRequestError } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetUsersBadRequestError } from "@lukehagar/plexjs/models/operations"; let value: GetUsersBadRequestError = { code: 1000, diff --git a/docs/sdk/models/operations/getusersglobals.md b/docs/models/operations/getusersglobals.md similarity index 97% rename from docs/sdk/models/operations/getusersglobals.md rename to docs/models/operations/getusersglobals.md index cc6c15d6..5ac88fc7 100644 --- a/docs/sdk/models/operations/getusersglobals.md +++ b/docs/models/operations/getusersglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetUsersGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetUsersGlobals } from "@lukehagar/plexjs/models/operations"; let value: GetUsersGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: GetUsersGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/getusersmediacontainer.md b/docs/models/operations/getusersmediacontainer.md new file mode 100644 index 00000000..4582fe1d --- /dev/null +++ b/docs/models/operations/getusersmediacontainer.md @@ -0,0 +1,29 @@ +# GetUsersMediaContainer + +Container holding user and server details. + +## Example Usage + +```typescript +import { GetUsersMediaContainer } from "@lukehagar/plexjs/models/operations"; + +let value: GetUsersMediaContainer = { + friendlyName: "myPlex", + identifier: "com.plexapp.plugins.myplex", + machineIdentifier: "3dff4c4da3b1229a649aa574a9e2b419a684a20e", + totalSize: 30, + size: 30, + user: [], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | +| `friendlyName` | *string* | :heavy_check_mark: | The friendly name of the Plex instance. | myPlex | +| `identifier` | *string* | :heavy_check_mark: | N/A | com.plexapp.plugins.myplex | +| `machineIdentifier` | *string* | :heavy_check_mark: | Unique Machine identifier of the Plex server. | 3dff4c4da3b1229a649aa574a9e2b419a684a20e | +| `totalSize` | *number* | :heavy_check_mark: | Total number of users. | 30 | +| `size` | *number* | :heavy_check_mark: | Number of users in the current response. | 30 | +| `user` | [operations.User](../../models/operations/user.md)[] | :heavy_check_mark: | List of users with access to the Plex server. | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getusersrequest.md b/docs/models/operations/getusersrequest.md similarity index 96% rename from docs/sdk/models/operations/getusersrequest.md rename to docs/models/operations/getusersrequest.md index 2280937c..9a755702 100644 --- a/docs/sdk/models/operations/getusersrequest.md +++ b/docs/models/operations/getusersrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetUsersRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetUsersRequest } from "@lukehagar/plexjs/models/operations"; let value: GetUsersRequest = {}; ``` @@ -12,7 +12,7 @@ let value: GetUsersRequest = {}; | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/getusersresponse.md b/docs/models/operations/getusersresponse.md new file mode 100644 index 00000000..f10828bd --- /dev/null +++ b/docs/models/operations/getusersresponse.md @@ -0,0 +1,26 @@ +# GetUsersResponse + +Successful response with media container data in JSON + +## Example Usage + +```typescript +import { GetUsersResponse } from "@lukehagar/plexjs/models/operations"; + +let value: GetUsersResponse = { + mediaContainer: { + friendlyName: "myPlex", + identifier: "com.plexapp.plugins.myplex", + machineIdentifier: "3dff4c4da3b1229a649aa574a9e2b419a684a20e", + totalSize: 30, + size: 30, + user: [], + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetUsersMediaContainer](../../models/operations/getusersmediacontainer.md) | :heavy_minus_sign: | Container holding user and server details. | \ No newline at end of file diff --git a/docs/sdk/models/operations/getusersunauthorizederror.md b/docs/models/operations/getusersunauthorizederror.md similarity index 92% rename from docs/sdk/models/operations/getusersunauthorizederror.md rename to docs/models/operations/getusersunauthorizederror.md index 00457075..8a448e73 100644 --- a/docs/sdk/models/operations/getusersunauthorizederror.md +++ b/docs/models/operations/getusersunauthorizederror.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetUsersUnauthorizedError } from "@lukehagar/plexjs/sdk/models/operations"; +import { GetUsersUnauthorizedError } from "@lukehagar/plexjs/models/operations"; let value: GetUsersUnauthorizedError = { code: 1001, diff --git a/docs/sdk/models/operations/hints.md b/docs/models/operations/hints.md similarity index 82% rename from docs/sdk/models/operations/hints.md rename to docs/models/operations/hints.md index da6bae17..6fdff619 100644 --- a/docs/sdk/models/operations/hints.md +++ b/docs/models/operations/hints.md @@ -5,7 +5,7 @@ Hints describing what we're looking for. Note: The hint `ratingKey` is required ## Example Usage ```typescript -import { Hints } from "@lukehagar/plexjs/sdk/models/operations"; +import { Hints } from "@lukehagar/plexjs/models/operations"; let value: Hints = {}; ``` diff --git a/docs/models/operations/home.md b/docs/models/operations/home.md new file mode 100644 index 00000000..98b75ea2 --- /dev/null +++ b/docs/models/operations/home.md @@ -0,0 +1,21 @@ +# Home + +Indicates if the user is part of a home group. + +## Example Usage + +```typescript +import { Home } from "@lukehagar/plexjs/models/operations"; + +let value: Home = Home.Enable; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Disable` | 0 | +| `Enable` | 1 | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/models/operations/homevisibility.md b/docs/models/operations/homevisibility.md new file mode 100644 index 00000000..980fbe11 --- /dev/null +++ b/docs/models/operations/homevisibility.md @@ -0,0 +1,28 @@ +# HomeVisibility + +Whether this hub is visible on the home screen + - all: Visible to all users + - none: Visible to no users + - admin: Visible to only admin users + - shared: Visible to shared users + + +## Example Usage + +```typescript +import { HomeVisibility } from "@lukehagar/plexjs/models/operations"; + +let value: HomeVisibility = HomeVisibility.All; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `All` | all | +| `None` | none | +| `Admin` | admin | +| `Shared` | shared | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/sdk/models/operations/hub.md b/docs/models/operations/hub.md similarity index 95% rename from docs/sdk/models/operations/hub.md rename to docs/models/operations/hub.md index 6062cdad..911b694e 100644 --- a/docs/sdk/models/operations/hub.md +++ b/docs/models/operations/hub.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Hub } from "@lukehagar/plexjs/sdk/models/operations"; +import { Hub } from "@lukehagar/plexjs/models/operations"; let value: Hub = {}; ``` @@ -12,10 +12,10 @@ let value: Hub = {}; | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `homeVisibility` | [operations.HomeVisibility](../../../sdk/models/operations/homevisibility.md) | :heavy_minus_sign: | Whether this hub is visible on the home screen
- all: Visible to all users
- none: Visible to no users
- admin: Visible to only admin users
- shared: Visible to shared users
| +| `homeVisibility` | [operations.HomeVisibility](../../models/operations/homevisibility.md) | :heavy_minus_sign: | Whether this hub is visible on the home screen
- all: Visible to all users
- none: Visible to no users
- admin: Visible to only admin users
- shared: Visible to shared users
| | `identifier` | *string* | :heavy_minus_sign: | The identifier for this hub | | `promotedToOwnHome` | *boolean* | :heavy_minus_sign: | Whether this hub is visible to admin user home | | `promotedToRecommended` | *boolean* | :heavy_minus_sign: | Whether this hub is promoted to all for recommendations | | `promotedToSharedHome` | *boolean* | :heavy_minus_sign: | Whether this hub is visible to shared user's home | -| `recommendationsVisibility` | [operations.RecommendationsVisibility](../../../sdk/models/operations/recommendationsvisibility.md) | :heavy_minus_sign: | The visibility of this hub in recommendations:
- all: Visible to all users
- none: Visible to no users
- admin: Visible to only admin users
- shared: Visible to shared users
| +| `recommendationsVisibility` | [operations.RecommendationsVisibility](../../models/operations/recommendationsvisibility.md) | :heavy_minus_sign: | The visibility of this hub in recommendations:
- all: Visible to all users
- none: Visible to no users
- admin: Visible to only admin users
- shared: Visible to shared users
| | `title` | *string* | :heavy_minus_sign: | The title of this hub | \ No newline at end of file diff --git a/docs/sdk/models/operations/includehttps.md b/docs/models/operations/includehttps.md similarity index 76% rename from docs/sdk/models/operations/includehttps.md rename to docs/models/operations/includehttps.md index daee3a0b..85c06280 100644 --- a/docs/sdk/models/operations/includehttps.md +++ b/docs/models/operations/includehttps.md @@ -5,7 +5,7 @@ Include Https entries in the results ## Example Usage ```typescript -import { IncludeHttps } from "@lukehagar/plexjs/sdk/models/operations"; +import { IncludeHttps } from "@lukehagar/plexjs/models/operations"; let value: IncludeHttps = IncludeHttps.True; ``` diff --git a/docs/sdk/models/operations/includeipv6.md b/docs/models/operations/includeipv6.md similarity index 76% rename from docs/sdk/models/operations/includeipv6.md rename to docs/models/operations/includeipv6.md index d6ebeab2..e90494d9 100644 --- a/docs/sdk/models/operations/includeipv6.md +++ b/docs/models/operations/includeipv6.md @@ -5,7 +5,7 @@ Include IPv6 entries in the results ## Example Usage ```typescript -import { IncludeIPv6 } from "@lukehagar/plexjs/sdk/models/operations"; +import { IncludeIPv6 } from "@lukehagar/plexjs/models/operations"; let value: IncludeIPv6 = IncludeIPv6.True; ``` diff --git a/docs/sdk/models/operations/includerelay.md b/docs/models/operations/includerelay.md similarity index 81% rename from docs/sdk/models/operations/includerelay.md rename to docs/models/operations/includerelay.md index 7970c646..4007da22 100644 --- a/docs/sdk/models/operations/includerelay.md +++ b/docs/models/operations/includerelay.md @@ -7,7 +7,7 @@ E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400 ## Example Usage ```typescript -import { IncludeRelay } from "@lukehagar/plexjs/sdk/models/operations"; +import { IncludeRelay } from "@lukehagar/plexjs/models/operations"; let value: IncludeRelay = IncludeRelay.True; ``` diff --git a/docs/sdk/models/operations/ingesttransientitemglobals.md b/docs/models/operations/ingesttransientitemglobals.md similarity index 96% rename from docs/sdk/models/operations/ingesttransientitemglobals.md rename to docs/models/operations/ingesttransientitemglobals.md index bf8fedaf..11d08e1e 100644 --- a/docs/sdk/models/operations/ingesttransientitemglobals.md +++ b/docs/models/operations/ingesttransientitemglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { IngestTransientItemGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { IngestTransientItemGlobals } from "@lukehagar/plexjs/models/operations"; let value: IngestTransientItemGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: IngestTransientItemGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/ingesttransientitemrequest.md b/docs/models/operations/ingesttransientitemrequest.md similarity index 93% rename from docs/sdk/models/operations/ingesttransientitemrequest.md rename to docs/models/operations/ingesttransientitemrequest.md index e15b07a3..b8658b1e 100644 --- a/docs/sdk/models/operations/ingesttransientitemrequest.md +++ b/docs/models/operations/ingesttransientitemrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { IngestTransientItemRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { IngestTransientItemRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: IngestTransientItemRequest = { url: "file:///storage%2Femulated%2F0%2FArcher-S01E01.mkv", @@ -18,7 +18,7 @@ let value: IngestTransientItemRequest = { | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -31,5 +31,5 @@ let value: IngestTransientItemRequest = { | `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 | -| `ingestNonMatches` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Whether or not non matching media should be stored. Defaults to 0. | 1 | \ No newline at end of file +| `computeHashes` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Whether or not to compute Plex and OpenSubtitle hashes for the file. Defaults to 0. | 1 | +| `ingestNonMatches` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Whether or not non matching media should be stored. Defaults to 0. | 1 | \ No newline at end of file diff --git a/docs/models/operations/ingesttransientitemresponse.md b/docs/models/operations/ingesttransientitemresponse.md new file mode 100644 index 00000000..b4540940 --- /dev/null +++ b/docs/models/operations/ingesttransientitemresponse.md @@ -0,0 +1,224 @@ +# IngestTransientItemResponse + +## Example Usage + +```typescript +import { IngestTransientItemResponse } from "@lukehagar/plexjs/models/operations"; + +let value: IngestTransientItemResponse = { + headers: { + "key": [ + "", + ], + "key1": [ + "", + "", + ], + }, + result: { + mediaContainer: { + metadata: [ + { + title: "", + type: "", + addedAt: 29550, + art: "/library/metadata/58683/art/1703239236", + autotag: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + chapterSource: "media", + childCount: 1, + country: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + director: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + genre: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + grandparentGuid: "plex://show/5d9c081b170e24001f2a7be4", + guid: "plex://movie/5d7768ba96b655001fdc0408", + guids: [ + { + id: + "{\"imdbExample\":{\"summary\":\"IMDB example\",\"value\":\"imdb://tt13015952\"},\"tmdbExample\":{\"summary\":\"TMDB example\",\"value\":\"tmdb://2434012\"},\"tvdbExample\":{\"summary\":\"TVDB example\",\"value\":\"tvdb://7945991\"}}", + }, + ], + key: "", + lastViewedAt: 1556281940, + 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: [ + { + accessible: true, + audioProfile: "lc", + container: "mov", + duration: 150192, + exists: true, + file: "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", + has64bitOffsets: false, + id: 1, + indexes: "sd", + key: "/library/parts/1/1531779263/file.mov", + optimizedForStreaming: false, + size: 105355654, + stream: [ + { + default: true, + audioChannelLayout: "5.1(side)", + channels: 6, + bitDepth: 10, + doviblCompatID: 1, + doviblPresent: true, + dovielPresent: false, + doviLevel: 6, + doviPresent: true, + doviProfile: 8, + dovirpuPresent: true, + doviVersion: "1.0", + bitrate: 24743, + canAutoSync: false, + chromaLocation: "topleft", + chromaSubsampling: "4:2:0", + codedHeight: 1608, + codedWidth: 3840, + closedCaptions: true, + codec: "hevc", + colorPrimaries: "bt2020", + colorRange: "tv", + colorSpace: "bt2020nc", + colorTrc: "smpte2084", + displayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + extendedDisplayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + frameRate: 23.976, + hasScalingMatrix: false, + height: 1602, + id: 1002625, + index: 0, + key: "/library/streams/216389", + language: "English", + languageCode: "eng", + languageTag: "en", + format: "srt", + headerCompression: true, + level: 150, + original: true, + profile: "main 10", + refFrames: 1, + samplingRate: 48000, + scanType: "progressive", + embeddedInVideo: "progressive", + selected: true, + forced: true, + hearingImpaired: true, + dub: true, + title: "SDH", + streamIdentifier: 1, + width: 3840, + }, + ], + videoProfile: "main", + }, + ], + videoCodec: "h264", + videoFrameRate: "24p", + videoProfile: "main", + videoResolution: "720", + width: 1280, + }, + ], + originallyAvailableAt: new Date("2022-12-14"), + parentGuid: "plex://show/5d9c081b170e24001f2a7be4", + ratingArray: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + role: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + theme: "/library/metadata/1/theme/1705636920", + thumb: "/library/metadata/58683/thumb/1703239236", + writer: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [shared.MediaContainerWithMetadata](../../models/shared/mediacontainerwithmetadata.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/internalpaymentmethod.md b/docs/models/operations/internalpaymentmethod.md similarity index 73% rename from docs/sdk/models/operations/internalpaymentmethod.md rename to docs/models/operations/internalpaymentmethod.md index d01a125c..60d57f4e 100644 --- a/docs/sdk/models/operations/internalpaymentmethod.md +++ b/docs/models/operations/internalpaymentmethod.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { InternalPaymentMethod } from "@lukehagar/plexjs/sdk/models/operations"; +import { InternalPaymentMethod } from "@lukehagar/plexjs/models/operations"; let value: InternalPaymentMethod = {}; ``` diff --git a/docs/sdk/models/operations/language.md b/docs/models/operations/language.md similarity index 87% rename from docs/sdk/models/operations/language.md rename to docs/models/operations/language.md index 58c8b23b..0bebfc53 100644 --- a/docs/sdk/models/operations/language.md +++ b/docs/models/operations/language.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Language } from "@lukehagar/plexjs/sdk/models/operations"; +import { Language } from "@lukehagar/plexjs/models/operations"; let value: Language = {}; ``` diff --git a/docs/sdk/models/operations/lineup.md b/docs/models/operations/lineup.md similarity index 89% rename from docs/sdk/models/operations/lineup.md rename to docs/models/operations/lineup.md index 29f3e740..812afdec 100644 --- a/docs/sdk/models/operations/lineup.md +++ b/docs/models/operations/lineup.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Lineup } from "@lukehagar/plexjs/sdk/models/operations"; +import { Lineup } from "@lukehagar/plexjs/models/operations"; let value: Lineup = {}; ``` @@ -14,7 +14,7 @@ let value: Lineup = {}; | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | | `title` | *string* | :heavy_minus_sign: | N/A | | `type` | *string* | :heavy_minus_sign: | The type of this object (`lineup` in this case) | -| `lineupType` | [operations.LineupType](../../../sdk/models/operations/lineuptype.md) | :heavy_minus_sign: | - `-1`: N/A
- `0`: Over the air
- `1`: Cable
- `2`: Satellite
- `3`: IPTV
- `4`: Virtual
| +| `lineupType` | [operations.LineupType](../../models/operations/lineuptype.md) | :heavy_minus_sign: | - `-1`: N/A
- `0`: Over the air
- `1`: Cable
- `2`: Satellite
- `3`: IPTV
- `4`: Virtual
| | `location` | *string* | :heavy_minus_sign: | N/A | | `uuid` | *string* | :heavy_minus_sign: | The uuid of this lineup | -| `channel` | [shared.Channel](../../../sdk/models/shared/channel.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `channel` | [shared.Channel](../../models/shared/channel.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/lineuptype.md b/docs/models/operations/lineuptype.md new file mode 100644 index 00000000..ca0bd164 --- /dev/null +++ b/docs/models/operations/lineuptype.md @@ -0,0 +1,31 @@ +# LineupType + +- `-1`: N/A +- `0`: Over the air +- `1`: Cable +- `2`: Satellite +- `3`: IPTV +- `4`: Virtual + + +## Example Usage + +```typescript +import { LineupType } from "@lukehagar/plexjs/models/operations"; + +let value: LineupType = LineupType.Two; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Minus1` | -1 | +| `Zero` | 0 | +| `One` | 1 | +| `Two` | 2 | +| `Three` | 3 | +| `Four` | 4 | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/models/operations/listactivitiesmediacontainer.md b/docs/models/operations/listactivitiesmediacontainer.md new file mode 100644 index 00000000..65986da3 --- /dev/null +++ b/docs/models/operations/listactivitiesmediacontainer.md @@ -0,0 +1,15 @@ +# ListActivitiesMediaContainer + +## Example Usage + +```typescript +import { ListActivitiesMediaContainer } from "@lukehagar/plexjs/models/operations"; + +let value: ListActivitiesMediaContainer = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | +| `activity` | [operations.Activity](../../models/operations/activity.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listactivitiesresponse.md b/docs/models/operations/listactivitiesresponse.md new file mode 100644 index 00000000..1a852ad6 --- /dev/null +++ b/docs/models/operations/listactivitiesresponse.md @@ -0,0 +1,17 @@ +# ListActivitiesResponse + +OK + +## Example Usage + +```typescript +import { ListActivitiesResponse } from "@lukehagar/plexjs/models/operations"; + +let value: ListActivitiesResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.ListActivitiesMediaContainer](../../models/operations/listactivitiesmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/listcontentglobals.md b/docs/models/operations/listcontentglobals.md similarity index 96% rename from docs/sdk/models/operations/listcontentglobals.md rename to docs/models/operations/listcontentglobals.md index a00435c2..d9cdfc40 100644 --- a/docs/sdk/models/operations/listcontentglobals.md +++ b/docs/models/operations/listcontentglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListContentGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { ListContentGlobals } from "@lukehagar/plexjs/models/operations"; let value: ListContentGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: ListContentGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/listcontentrequest.md b/docs/models/operations/listcontentrequest.md similarity index 99% rename from docs/sdk/models/operations/listcontentrequest.md rename to docs/models/operations/listcontentrequest.md index 0989496e..beb81af0 100644 --- a/docs/sdk/models/operations/listcontentrequest.md +++ b/docs/models/operations/listcontentrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { ListContentRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt, MediaType } from "@lukehagar/plexjs/sdk/models/shared"; +import { ListContentRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt, MediaType } from "@lukehagar/plexjs/models/shared"; let value: ListContentRequest = { mediaQuery: { @@ -22,7 +22,7 @@ let value: ListContentRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -35,7 +35,7 @@ let value: ListContentRequest = { | `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `xPlexContainerStart` | *number* | :heavy_minus_sign: | The index of the first item to return. If not specified, the first item will be returned.
If the number of items exceeds the limit, the response will be paginated.
By default this is 0
| 0 | | `xPlexContainerSize` | *number* | :heavy_minus_sign: | The number of items to return. If not specified, all items will be returned.
If the number of items exceeds the limit, the response will be paginated.
By default this is 50
| 50 | -| `mediaQuery` | [shared.MediaQuery](../../../sdk/models/shared/mediaquery.md) | :heavy_minus_sign: | A querystring-based filtering language used to select subsets of media. Can be provided as an object with typed properties for type safety, or as a string for complex queries with operators and boolean logic.

The query supports:
- Fields: integer, boolean, tag, string, date, language
- Operators: =, !=, ==, !==, <=, >=, >>=, <<= (varies by field type)
- Boolean operators: & (AND), , (OR), push/pop (parentheses), or=1 (explicit OR)
- Sorting: sort parameter with :desc, :nullsLast modifiers
- Grouping: group parameter
- Limits: limit parameter

Examples:
- Object format: `{type: 4, sourceType: 2, title: "24"}` → `type=4&sourceType=2&title=24`
- String format: `type=4&sourceType=2&title==24` - type = 4 AND sourceType = 2 AND title = "24"
- Complex: `push=1&index=1&or=1&rating=2&pop=1&duration=10` - (index = 1 OR rating = 2) AND duration = 10

See [API Info section](#section/API-Info/Media-Queries) for detailed information on building media queries.
| {
"type": 4,
"sourceType": 2,
"sort": "duration:desc,index"
} | -| `includeMeta` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Adds the Meta object to the response
| 1 | -| `includeGuids` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Adds the Guid object to the response
| 1 | +| `mediaQuery` | [shared.MediaQuery](../../models/shared/mediaquery.md) | :heavy_minus_sign: | A querystring-based filtering language used to select subsets of media. Can be provided as an object with typed properties for type safety, or as a string for complex queries with operators and boolean logic.

The query supports:
- Fields: integer, boolean, tag, string, date, language
- Operators: =, !=, ==, !==, <=, >=, >>=, <<= (varies by field type)
- Boolean operators: & (AND), , (OR), push/pop (parentheses), or=1 (explicit OR)
- Sorting: sort parameter with :desc, :nullsLast modifiers
- Grouping: group parameter
- Limits: limit parameter

Examples:
- Object format: `{type: 4, sourceType: 2, title: "24"}` → `type=4&sourceType=2&title=24`
- String format: `type=4&sourceType=2&title==24` - type = 4 AND sourceType = 2 AND title = "24"
- Complex: `push=1&index=1&or=1&rating=2&pop=1&duration=10` - (index = 1 OR rating = 2) AND duration = 10

See [API Info section](#section/API-Info/Media-Queries) for detailed information on building media queries.
| {
"type": 4,
"sourceType": 2,
"sort": "duration:desc,index"
} | +| `includeMeta` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Adds the Meta object to the response
| 1 | +| `includeGuids` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Adds the Guid object to the response
| 1 | | `sectionId` | *string* | :heavy_check_mark: | The id of the section | | \ No newline at end of file diff --git a/docs/models/operations/listcontentresponse.md b/docs/models/operations/listcontentresponse.md new file mode 100644 index 00000000..3957f401 --- /dev/null +++ b/docs/models/operations/listcontentresponse.md @@ -0,0 +1,221 @@ +# ListContentResponse + +## Example Usage + +```typescript +import { ListContentResponse } from "@lukehagar/plexjs/models/operations"; + +let value: ListContentResponse = { + headers: { + "key": [ + "", + "", + ], + }, + result: { + mediaContainer: { + metadata: [ + { + title: "", + type: "", + addedAt: 29550, + art: "/library/metadata/58683/art/1703239236", + autotag: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + chapterSource: "media", + childCount: 1, + country: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + director: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + genre: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + grandparentGuid: "plex://show/5d9c081b170e24001f2a7be4", + guid: "plex://movie/5d7768ba96b655001fdc0408", + guids: [ + { + id: + "{\"imdbExample\":{\"summary\":\"IMDB example\",\"value\":\"imdb://tt13015952\"},\"tmdbExample\":{\"summary\":\"TMDB example\",\"value\":\"tmdb://2434012\"},\"tvdbExample\":{\"summary\":\"TVDB example\",\"value\":\"tvdb://7945991\"}}", + }, + ], + key: "", + lastViewedAt: 1556281940, + 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: [ + { + accessible: true, + audioProfile: "lc", + container: "mov", + duration: 150192, + exists: true, + file: "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", + has64bitOffsets: false, + id: 1, + indexes: "sd", + key: "/library/parts/1/1531779263/file.mov", + optimizedForStreaming: false, + size: 105355654, + stream: [ + { + default: true, + audioChannelLayout: "5.1(side)", + channels: 6, + bitDepth: 10, + doviblCompatID: 1, + doviblPresent: true, + dovielPresent: false, + doviLevel: 6, + doviPresent: true, + doviProfile: 8, + dovirpuPresent: true, + doviVersion: "1.0", + bitrate: 24743, + canAutoSync: false, + chromaLocation: "topleft", + chromaSubsampling: "4:2:0", + codedHeight: 1608, + codedWidth: 3840, + closedCaptions: true, + codec: "hevc", + colorPrimaries: "bt2020", + colorRange: "tv", + colorSpace: "bt2020nc", + colorTrc: "smpte2084", + displayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + extendedDisplayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + frameRate: 23.976, + hasScalingMatrix: false, + height: 1602, + id: 1002625, + index: 0, + key: "/library/streams/216389", + language: "English", + languageCode: "eng", + languageTag: "en", + format: "srt", + headerCompression: true, + level: 150, + original: true, + profile: "main 10", + refFrames: 1, + samplingRate: 48000, + scanType: "progressive", + embeddedInVideo: "progressive", + selected: true, + forced: true, + hearingImpaired: true, + dub: true, + title: "SDH", + streamIdentifier: 1, + width: 3840, + }, + ], + videoProfile: "main", + }, + ], + videoCodec: "h264", + videoFrameRate: "24p", + videoProfile: "main", + videoResolution: "720", + width: 1280, + }, + ], + originallyAvailableAt: new Date("2022-12-14"), + parentGuid: "plex://show/5d9c081b170e24001f2a7be4", + ratingArray: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + role: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + theme: "/library/metadata/1/theme/1705636920", + thumb: "/library/metadata/58683/thumb/1703239236", + writer: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [shared.MediaContainerWithMetadata](../../models/shared/mediacontainerwithmetadata.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listdevicesresponse.md b/docs/models/operations/listdevicesresponse.md new file mode 100644 index 00000000..7d97370b --- /dev/null +++ b/docs/models/operations/listdevicesresponse.md @@ -0,0 +1,19 @@ +# ListDevicesResponse + +## Example Usage + +```typescript +import { ListDevicesResponse } from "@lukehagar/plexjs/models/operations"; + +let value: ListDevicesResponse = { + headers: {}, + result: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [shared.MediaContainerWithDevice](../../models/shared/mediacontainerwithdevice.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/listdownloadqueueitemsdecisionresult.md b/docs/models/operations/listdownloadqueueitemsdecisionresult.md similarity index 99% rename from docs/sdk/models/operations/listdownloadqueueitemsdecisionresult.md rename to docs/models/operations/listdownloadqueueitemsdecisionresult.md index 57a381f6..feab1348 100644 --- a/docs/sdk/models/operations/listdownloadqueueitemsdecisionresult.md +++ b/docs/models/operations/listdownloadqueueitemsdecisionresult.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListDownloadQueueItemsDecisionResult } from "@lukehagar/plexjs/sdk/models/operations"; +import { ListDownloadQueueItemsDecisionResult } from "@lukehagar/plexjs/models/operations"; let value: ListDownloadQueueItemsDecisionResult = {}; ``` diff --git a/docs/sdk/models/operations/listdownloadqueueitemsdownloadqueueitem.md b/docs/models/operations/listdownloadqueueitemsdownloadqueueitem.md similarity index 96% rename from docs/sdk/models/operations/listdownloadqueueitemsdownloadqueueitem.md rename to docs/models/operations/listdownloadqueueitemsdownloadqueueitem.md index 51f0b11d..5481295a 100644 --- a/docs/sdk/models/operations/listdownloadqueueitemsdownloadqueueitem.md +++ b/docs/models/operations/listdownloadqueueitemsdownloadqueueitem.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListDownloadQueueItemsDownloadQueueItem } from "@lukehagar/plexjs/sdk/models/operations"; +import { ListDownloadQueueItemsDownloadQueueItem } from "@lukehagar/plexjs/models/operations"; let value: ListDownloadQueueItemsDownloadQueueItem = {}; ``` @@ -12,11 +12,11 @@ let value: ListDownloadQueueItemsDownloadQueueItem = {}; | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `decisionResult` | [operations.ListDownloadQueueItemsDecisionResult](../../../sdk/models/operations/listdownloadqueueitemsdecisionresult.md) | :heavy_minus_sign: | N/A | +| `decisionResult` | [operations.ListDownloadQueueItemsDecisionResult](../../models/operations/listdownloadqueueitemsdecisionresult.md) | :heavy_minus_sign: | N/A | | `error` | *string* | :heavy_minus_sign: | The error encountered in transcoding or decision | | `id` | *number* | :heavy_minus_sign: | N/A | | `key` | *string* | :heavy_minus_sign: | N/A | | `queueId` | *number* | :heavy_minus_sign: | N/A | -| `status` | [operations.ListDownloadQueueItemsStatus](../../../sdk/models/operations/listdownloadqueueitemsstatus.md) | :heavy_minus_sign: | The state of the item:
- deciding: The item decision is pending
- waiting: The item is waiting for transcode
- processing: The item is being transcoded
- available: The item is available for download
- error: The item encountered an error in the decision or transcode
- expired: The transcoded item has timed out and is no longer available
| -| `transcode` | [operations.ListDownloadQueueItemsTranscode](../../../sdk/models/operations/listdownloadqueueitemstranscode.md) | :heavy_minus_sign: | The transcode session object which is not yet documented otherwise it'd be a $ref here. | -| `transcodeSession` | [shared.TranscodeSession](../../../sdk/models/shared/transcodesession.md) | :heavy_minus_sign: | The transcode session if item is currently being transcoded | \ No newline at end of file +| `status` | [operations.ListDownloadQueueItemsStatus](../../models/operations/listdownloadqueueitemsstatus.md) | :heavy_minus_sign: | The state of the item:
- deciding: The item decision is pending
- waiting: The item is waiting for transcode
- processing: The item is being transcoded
- available: The item is available for download
- error: The item encountered an error in the decision or transcode
- expired: The transcoded item has timed out and is no longer available
| +| `transcode` | [operations.ListDownloadQueueItemsTranscode](../../models/operations/listdownloadqueueitemstranscode.md) | :heavy_minus_sign: | The transcode session object which is not yet documented otherwise it'd be a $ref here. | +| `transcodeSession` | [shared.TranscodeSession](../../models/shared/transcodesession.md) | :heavy_minus_sign: | The transcode session if item is currently being transcoded | \ No newline at end of file diff --git a/docs/sdk/models/operations/listdownloadqueueitemsglobals.md b/docs/models/operations/listdownloadqueueitemsglobals.md similarity index 98% rename from docs/sdk/models/operations/listdownloadqueueitemsglobals.md rename to docs/models/operations/listdownloadqueueitemsglobals.md index 0dead492..d23112b3 100644 --- a/docs/sdk/models/operations/listdownloadqueueitemsglobals.md +++ b/docs/models/operations/listdownloadqueueitemsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListDownloadQueueItemsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { ListDownloadQueueItemsGlobals } from "@lukehagar/plexjs/models/operations"; let value: ListDownloadQueueItemsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: ListDownloadQueueItemsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/listdownloadqueueitemsmediacontainer.md b/docs/models/operations/listdownloadqueueitemsmediacontainer.md similarity index 96% rename from docs/sdk/models/operations/listdownloadqueueitemsmediacontainer.md rename to docs/models/operations/listdownloadqueueitemsmediacontainer.md index 03ec00bc..7a6aa2d0 100644 --- a/docs/sdk/models/operations/listdownloadqueueitemsmediacontainer.md +++ b/docs/models/operations/listdownloadqueueitemsmediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { ListDownloadQueueItemsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { ListDownloadQueueItemsMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: ListDownloadQueueItemsMediaContainer = {}; ``` @@ -21,4 +21,4 @@ let value: ListDownloadQueueItemsMediaContainer = {}; | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `downloadQueueItem` | [operations.ListDownloadQueueItemsDownloadQueueItem](../../../sdk/models/operations/listdownloadqueueitemsdownloadqueueitem.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `downloadQueueItem` | [operations.ListDownloadQueueItemsDownloadQueueItem](../../models/operations/listdownloadqueueitemsdownloadqueueitem.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/listdownloadqueueitemsrequest.md b/docs/models/operations/listdownloadqueueitemsrequest.md similarity index 98% rename from docs/sdk/models/operations/listdownloadqueueitemsrequest.md rename to docs/models/operations/listdownloadqueueitemsrequest.md index c07aa4aa..0c82d205 100644 --- a/docs/sdk/models/operations/listdownloadqueueitemsrequest.md +++ b/docs/models/operations/listdownloadqueueitemsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListDownloadQueueItemsRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { ListDownloadQueueItemsRequest } from "@lukehagar/plexjs/models/operations"; let value: ListDownloadQueueItemsRequest = { queueId: 434783, @@ -14,7 +14,7 @@ let value: ListDownloadQueueItemsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/listdownloadqueueitemsresponse.md b/docs/models/operations/listdownloadqueueitemsresponse.md new file mode 100644 index 00000000..413122f5 --- /dev/null +++ b/docs/models/operations/listdownloadqueueitemsresponse.md @@ -0,0 +1,17 @@ +# ListDownloadQueueItemsResponse + +OK + +## Example Usage + +```typescript +import { ListDownloadQueueItemsResponse } from "@lukehagar/plexjs/models/operations"; + +let value: ListDownloadQueueItemsResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `mediaContainer` | [operations.ListDownloadQueueItemsMediaContainer](../../models/operations/listdownloadqueueitemsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listdownloadqueueitemsstatus.md b/docs/models/operations/listdownloadqueueitemsstatus.md new file mode 100644 index 00000000..e7aa4925 --- /dev/null +++ b/docs/models/operations/listdownloadqueueitemsstatus.md @@ -0,0 +1,33 @@ +# ListDownloadQueueItemsStatus + +The state of the item: + - deciding: The item decision is pending + - waiting: The item is waiting for transcode + - processing: The item is being transcoded + - available: The item is available for download + - error: The item encountered an error in the decision or transcode + - expired: The transcoded item has timed out and is no longer available + + +## Example Usage + +```typescript +import { ListDownloadQueueItemsStatus } from "@lukehagar/plexjs/models/operations"; + +let value: ListDownloadQueueItemsStatus = + ListDownloadQueueItemsStatus.Processing; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Deciding` | deciding | +| `Waiting` | waiting | +| `Processing` | processing | +| `Available` | available | +| `Error` | error | +| `Expired` | expired | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/sdk/models/operations/listdownloadqueueitemstranscode.md b/docs/models/operations/listdownloadqueueitemstranscode.md similarity index 93% rename from docs/sdk/models/operations/listdownloadqueueitemstranscode.md rename to docs/models/operations/listdownloadqueueitemstranscode.md index 2051835f..3fb0d1a6 100644 --- a/docs/sdk/models/operations/listdownloadqueueitemstranscode.md +++ b/docs/models/operations/listdownloadqueueitemstranscode.md @@ -5,7 +5,7 @@ The transcode session object which is not yet documented otherwise it'd be a $re ## Example Usage ```typescript -import { ListDownloadQueueItemsTranscode } from "@lukehagar/plexjs/sdk/models/operations"; +import { ListDownloadQueueItemsTranscode } from "@lukehagar/plexjs/models/operations"; let value: ListDownloadQueueItemsTranscode = {}; ``` diff --git a/docs/models/operations/listdvrsdvr.md b/docs/models/operations/listdvrsdvr.md new file mode 100644 index 00000000..8a26de45 --- /dev/null +++ b/docs/models/operations/listdvrsdvr.md @@ -0,0 +1,19 @@ +# ListDVRsDVR + +## Example Usage + +```typescript +import { ListDVRsDVR } from "@lukehagar/plexjs/models/operations"; + +let value: ListDVRsDVR = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | +| `device` | [shared.Device](../../models/shared/device.md)[] | :heavy_minus_sign: | N/A | +| `key` | *string* | :heavy_minus_sign: | N/A | +| `language` | *string* | :heavy_minus_sign: | N/A | +| `lineup` | *string* | :heavy_minus_sign: | N/A | +| `uuid` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listdvrsmediacontainer.md b/docs/models/operations/listdvrsmediacontainer.md new file mode 100644 index 00000000..f4db872a --- /dev/null +++ b/docs/models/operations/listdvrsmediacontainer.md @@ -0,0 +1,16 @@ +# ListDVRsMediaContainer + +## Example Usage + +```typescript +import { ListDVRsMediaContainer } from "@lukehagar/plexjs/models/operations"; + +let value: ListDVRsMediaContainer = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `mediaContainer` | [operations.ListDVRsMediaContainerMediaContainer](../../models/operations/listdvrsmediacontainermediacontainer.md) | :heavy_minus_sign: | N/A | +| `dvr` | [operations.ListDVRsDVR](../../models/operations/listdvrsdvr.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/listdvrsmediacontainermediacontainer.md b/docs/models/operations/listdvrsmediacontainermediacontainer.md similarity index 99% rename from docs/sdk/models/operations/listdvrsmediacontainermediacontainer.md rename to docs/models/operations/listdvrsmediacontainermediacontainer.md index 75018700..d24f1cfc 100644 --- a/docs/sdk/models/operations/listdvrsmediacontainermediacontainer.md +++ b/docs/models/operations/listdvrsmediacontainermediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { ListDVRsMediaContainerMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { ListDVRsMediaContainerMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: ListDVRsMediaContainerMediaContainer = {}; ``` diff --git a/docs/models/operations/listdvrsresponse.md b/docs/models/operations/listdvrsresponse.md new file mode 100644 index 00000000..ef773a3f --- /dev/null +++ b/docs/models/operations/listdvrsresponse.md @@ -0,0 +1,21 @@ +# ListDVRsResponse + +## Example Usage + +```typescript +import { ListDVRsResponse } from "@lukehagar/plexjs/models/operations"; + +let value: ListDVRsResponse = { + headers: { + "key": [], + }, + result: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [operations.ListDVRsResponseBody](../../models/operations/listdvrsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listdvrsresponsebody.md b/docs/models/operations/listdvrsresponsebody.md new file mode 100644 index 00000000..41a296dd --- /dev/null +++ b/docs/models/operations/listdvrsresponsebody.md @@ -0,0 +1,17 @@ +# ListDVRsResponseBody + +OK + +## Example Usage + +```typescript +import { ListDVRsResponseBody } from "@lukehagar/plexjs/models/operations"; + +let value: ListDVRsResponseBody = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.ListDVRsMediaContainer](../../models/operations/listdvrsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/listhubsglobals.md b/docs/models/operations/listhubsglobals.md similarity index 97% rename from docs/sdk/models/operations/listhubsglobals.md rename to docs/models/operations/listhubsglobals.md index 27a5fd52..2c805108 100644 --- a/docs/sdk/models/operations/listhubsglobals.md +++ b/docs/models/operations/listhubsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListHubsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { ListHubsGlobals } from "@lukehagar/plexjs/models/operations"; let value: ListHubsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: ListHubsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/listhubsmediacontainer.md b/docs/models/operations/listhubsmediacontainer.md similarity index 95% rename from docs/sdk/models/operations/listhubsmediacontainer.md rename to docs/models/operations/listhubsmediacontainer.md index 26b5ebe1..d492c98c 100644 --- a/docs/sdk/models/operations/listhubsmediacontainer.md +++ b/docs/models/operations/listhubsmediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { ListHubsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { ListHubsMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: ListHubsMediaContainer = {}; ``` @@ -21,4 +21,4 @@ let value: ListHubsMediaContainer = {}; | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `hub` | [operations.Hub](../../../sdk/models/operations/hub.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `hub` | [operations.Hub](../../models/operations/hub.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/listhubsrequest.md b/docs/models/operations/listhubsrequest.md similarity index 97% rename from docs/sdk/models/operations/listhubsrequest.md rename to docs/models/operations/listhubsrequest.md index 4171b0c0..b603bb64 100644 --- a/docs/sdk/models/operations/listhubsrequest.md +++ b/docs/models/operations/listhubsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListHubsRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { ListHubsRequest } from "@lukehagar/plexjs/models/operations"; let value: ListHubsRequest = { sectionId: 893324, @@ -14,7 +14,7 @@ let value: ListHubsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/listhubsresponse.md b/docs/models/operations/listhubsresponse.md new file mode 100644 index 00000000..08b3b7fe --- /dev/null +++ b/docs/models/operations/listhubsresponse.md @@ -0,0 +1,31 @@ +# ListHubsResponse + +## Example Usage + +```typescript +import { ListHubsResponse } from "@lukehagar/plexjs/models/operations"; + +let value: ListHubsResponse = { + headers: { + "key": [ + "", + ], + "key1": [ + "", + ], + "key2": [ + "", + "", + "", + ], + }, + result: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [operations.ListHubsResponseBody](../../models/operations/listhubsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listhubsresponsebody.md b/docs/models/operations/listhubsresponsebody.md new file mode 100644 index 00000000..9b19903a --- /dev/null +++ b/docs/models/operations/listhubsresponsebody.md @@ -0,0 +1,17 @@ +# ListHubsResponseBody + +OK + +## Example Usage + +```typescript +import { ListHubsResponseBody } from "@lukehagar/plexjs/models/operations"; + +let value: ListHubsResponseBody = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.ListHubsMediaContainer](../../models/operations/listhubsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/listlineupsglobals.md b/docs/models/operations/listlineupsglobals.md similarity index 96% rename from docs/sdk/models/operations/listlineupsglobals.md rename to docs/models/operations/listlineupsglobals.md index 3be9e892..8fc99003 100644 --- a/docs/sdk/models/operations/listlineupsglobals.md +++ b/docs/models/operations/listlineupsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListLineupsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { ListLineupsGlobals } from "@lukehagar/plexjs/models/operations"; let value: ListLineupsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: ListLineupsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/listlineupsrequest.md b/docs/models/operations/listlineupsrequest.md similarity index 97% rename from docs/sdk/models/operations/listlineupsrequest.md rename to docs/models/operations/listlineupsrequest.md index 8a167fa1..b122f178 100644 --- a/docs/sdk/models/operations/listlineupsrequest.md +++ b/docs/models/operations/listlineupsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListLineupsRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { ListLineupsRequest } from "@lukehagar/plexjs/models/operations"; let value: ListLineupsRequest = { country: "Reunion", @@ -16,7 +16,7 @@ let value: ListLineupsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/listlineupsresponse.md b/docs/models/operations/listlineupsresponse.md new file mode 100644 index 00000000..80259417 --- /dev/null +++ b/docs/models/operations/listlineupsresponse.md @@ -0,0 +1,24 @@ +# ListLineupsResponse + +## Example Usage + +```typescript +import { ListLineupsResponse } from "@lukehagar/plexjs/models/operations"; + +let value: ListLineupsResponse = { + headers: { + "key": [ + "", + "", + ], + }, + result: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [shared.MediaContainerWithLineup](../../models/shared/mediacontainerwithlineup.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/listmatchesglobals.md b/docs/models/operations/listmatchesglobals.md similarity index 96% rename from docs/sdk/models/operations/listmatchesglobals.md rename to docs/models/operations/listmatchesglobals.md index cf5c5a55..a2519af7 100644 --- a/docs/sdk/models/operations/listmatchesglobals.md +++ b/docs/models/operations/listmatchesglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListMatchesGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { ListMatchesGlobals } from "@lukehagar/plexjs/models/operations"; let value: ListMatchesGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: ListMatchesGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/listmatchesrequest.md b/docs/models/operations/listmatchesrequest.md similarity index 96% rename from docs/sdk/models/operations/listmatchesrequest.md rename to docs/models/operations/listmatchesrequest.md index 331ec3b1..f9366fe6 100644 --- a/docs/sdk/models/operations/listmatchesrequest.md +++ b/docs/models/operations/listmatchesrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { ListMatchesRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { ListMatchesRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: ListMatchesRequest = { ids: "", @@ -16,7 +16,7 @@ let value: ListMatchesRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -33,4 +33,4 @@ let value: ListMatchesRequest = { | `agent` | *string* | :heavy_minus_sign: | N/A | | | `language` | *string* | :heavy_minus_sign: | N/A | | | `year` | *number* | :heavy_minus_sign: | N/A | | -| `manual` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | N/A | 1 | \ No newline at end of file +| `manual` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | N/A | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/listmomentsglobals.md b/docs/models/operations/listmomentsglobals.md similarity index 96% rename from docs/sdk/models/operations/listmomentsglobals.md rename to docs/models/operations/listmomentsglobals.md index f3e95252..3abaf673 100644 --- a/docs/sdk/models/operations/listmomentsglobals.md +++ b/docs/models/operations/listmomentsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListMomentsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { ListMomentsGlobals } from "@lukehagar/plexjs/models/operations"; let value: ListMomentsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: ListMomentsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/listmomentsrequest.md b/docs/models/operations/listmomentsrequest.md similarity index 97% rename from docs/sdk/models/operations/listmomentsrequest.md rename to docs/models/operations/listmomentsrequest.md index 517ab86f..9ade6bb0 100644 --- a/docs/sdk/models/operations/listmomentsrequest.md +++ b/docs/models/operations/listmomentsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListMomentsRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { ListMomentsRequest } from "@lukehagar/plexjs/models/operations"; let value: ListMomentsRequest = { sectionId: 711707, @@ -14,7 +14,7 @@ let value: ListMomentsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/listpersonmediaglobals.md b/docs/models/operations/listpersonmediaglobals.md similarity index 96% rename from docs/sdk/models/operations/listpersonmediaglobals.md rename to docs/models/operations/listpersonmediaglobals.md index a43c9e25..44a466c4 100644 --- a/docs/sdk/models/operations/listpersonmediaglobals.md +++ b/docs/models/operations/listpersonmediaglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListPersonMediaGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { ListPersonMediaGlobals } from "@lukehagar/plexjs/models/operations"; let value: ListPersonMediaGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: ListPersonMediaGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/listpersonmediarequest.md b/docs/models/operations/listpersonmediarequest.md similarity index 98% rename from docs/sdk/models/operations/listpersonmediarequest.md rename to docs/models/operations/listpersonmediarequest.md index ff018eb3..f0d3b529 100644 --- a/docs/sdk/models/operations/listpersonmediarequest.md +++ b/docs/models/operations/listpersonmediarequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListPersonMediaRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { ListPersonMediaRequest } from "@lukehagar/plexjs/models/operations"; let value: ListPersonMediaRequest = { personId: "", @@ -14,7 +14,7 @@ let value: ListPersonMediaRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/listplaybackhistoryglobals.md b/docs/models/operations/listplaybackhistoryglobals.md similarity index 96% rename from docs/sdk/models/operations/listplaybackhistoryglobals.md rename to docs/models/operations/listplaybackhistoryglobals.md index 8afa59a3..bb3d78b9 100644 --- a/docs/sdk/models/operations/listplaybackhistoryglobals.md +++ b/docs/models/operations/listplaybackhistoryglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListPlaybackHistoryGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { ListPlaybackHistoryGlobals } from "@lukehagar/plexjs/models/operations"; let value: ListPlaybackHistoryGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: ListPlaybackHistoryGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/listplaybackhistorymediacontainer.md b/docs/models/operations/listplaybackhistorymediacontainer.md similarity index 96% rename from docs/sdk/models/operations/listplaybackhistorymediacontainer.md rename to docs/models/operations/listplaybackhistorymediacontainer.md index 2af08fce..f4ba3eb1 100644 --- a/docs/sdk/models/operations/listplaybackhistorymediacontainer.md +++ b/docs/models/operations/listplaybackhistorymediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { ListPlaybackHistoryMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { ListPlaybackHistoryMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: ListPlaybackHistoryMediaContainer = {}; ``` @@ -21,4 +21,4 @@ let value: ListPlaybackHistoryMediaContainer = {}; | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `metadata` | [operations.ListPlaybackHistoryMetadatum](../../../sdk/models/operations/listplaybackhistorymetadatum.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `metadata` | [operations.ListPlaybackHistoryMetadatum](../../models/operations/listplaybackhistorymetadatum.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/listplaybackhistorymetadatum.md b/docs/models/operations/listplaybackhistorymetadatum.md similarity index 99% rename from docs/sdk/models/operations/listplaybackhistorymetadatum.md rename to docs/models/operations/listplaybackhistorymetadatum.md index 76ec42ad..aff6b5af 100644 --- a/docs/sdk/models/operations/listplaybackhistorymetadatum.md +++ b/docs/models/operations/listplaybackhistorymetadatum.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListPlaybackHistoryMetadatum } from "@lukehagar/plexjs/sdk/models/operations"; +import { ListPlaybackHistoryMetadatum } from "@lukehagar/plexjs/models/operations"; let value: ListPlaybackHistoryMetadatum = {}; ``` diff --git a/docs/sdk/models/operations/listplaybackhistoryrequest.md b/docs/models/operations/listplaybackhistoryrequest.md similarity index 99% rename from docs/sdk/models/operations/listplaybackhistoryrequest.md rename to docs/models/operations/listplaybackhistoryrequest.md index b58767b3..df26bf2a 100644 --- a/docs/sdk/models/operations/listplaybackhistoryrequest.md +++ b/docs/models/operations/listplaybackhistoryrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListPlaybackHistoryRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { ListPlaybackHistoryRequest } from "@lukehagar/plexjs/models/operations"; let value: ListPlaybackHistoryRequest = { sort: [ @@ -16,7 +16,7 @@ let value: ListPlaybackHistoryRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/listplaybackhistoryresponse.md b/docs/models/operations/listplaybackhistoryresponse.md new file mode 100644 index 00000000..433c4ccb --- /dev/null +++ b/docs/models/operations/listplaybackhistoryresponse.md @@ -0,0 +1,19 @@ +# ListPlaybackHistoryResponse + +## Example Usage + +```typescript +import { ListPlaybackHistoryResponse } from "@lukehagar/plexjs/models/operations"; + +let value: ListPlaybackHistoryResponse = { + headers: {}, + result: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [operations.ListPlaybackHistoryResponseBody](../../models/operations/listplaybackhistoryresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listplaybackhistoryresponsebody.md b/docs/models/operations/listplaybackhistoryresponsebody.md new file mode 100644 index 00000000..9e0edc55 --- /dev/null +++ b/docs/models/operations/listplaybackhistoryresponsebody.md @@ -0,0 +1,17 @@ +# ListPlaybackHistoryResponseBody + +OK + +## Example Usage + +```typescript +import { ListPlaybackHistoryResponseBody } from "@lukehagar/plexjs/models/operations"; + +let value: ListPlaybackHistoryResponseBody = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `mediaContainer` | [operations.ListPlaybackHistoryMediaContainer](../../models/operations/listplaybackhistorymediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/listplaylistsglobals.md b/docs/models/operations/listplaylistsglobals.md similarity index 96% rename from docs/sdk/models/operations/listplaylistsglobals.md rename to docs/models/operations/listplaylistsglobals.md index bf6ab6bb..dcdcf925 100644 --- a/docs/sdk/models/operations/listplaylistsglobals.md +++ b/docs/models/operations/listplaylistsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListPlaylistsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { ListPlaylistsGlobals } from "@lukehagar/plexjs/models/operations"; let value: ListPlaylistsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: ListPlaylistsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/listplaylistsrequest.md b/docs/models/operations/listplaylistsrequest.md new file mode 100644 index 00000000..59d12079 --- /dev/null +++ b/docs/models/operations/listplaylistsrequest.md @@ -0,0 +1,27 @@ +# ListPlaylistsRequest + +## Example Usage + +```typescript +import { ListPlaylistsRequest } from "@lukehagar/plexjs/models/operations"; + +let value: ListPlaylistsRequest = {}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | 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](../../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/models/operations/listplaylistsresponse.md b/docs/models/operations/listplaylistsresponse.md new file mode 100644 index 00000000..21d46c3d --- /dev/null +++ b/docs/models/operations/listplaylistsresponse.md @@ -0,0 +1,216 @@ +# ListPlaylistsResponse + +## Example Usage + +```typescript +import { ListPlaylistsResponse } from "@lukehagar/plexjs/models/operations"; + +let value: ListPlaylistsResponse = { + headers: {}, + result: { + mediaContainer: { + metadata: [ + { + key: "", + title: "", + type: "", + addedAt: 465462, + art: "/library/metadata/58683/art/1703239236", + autotag: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + chapterSource: "media", + childCount: 1, + country: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + director: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + genre: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + grandparentGuid: "plex://show/5d9c081b170e24001f2a7be4", + guid: "plex://movie/5d7768ba96b655001fdc0408", + guids: [ + { + id: + "{\"imdbExample\":{\"summary\":\"IMDB example\",\"value\":\"imdb://tt13015952\"},\"tmdbExample\":{\"summary\":\"TMDB example\",\"value\":\"tmdb://2434012\"},\"tvdbExample\":{\"summary\":\"TVDB example\",\"value\":\"tvdb://7945991\"}}", + }, + ], + lastViewedAt: 1556281940, + 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: [ + { + accessible: true, + audioProfile: "lc", + container: "mov", + duration: 150192, + exists: true, + file: "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", + has64bitOffsets: false, + id: 1, + indexes: "sd", + key: "/library/parts/1/1531779263/file.mov", + optimizedForStreaming: false, + size: 105355654, + stream: [ + { + default: true, + audioChannelLayout: "5.1(side)", + channels: 6, + bitDepth: 10, + doviblCompatID: 1, + doviblPresent: true, + dovielPresent: false, + doviLevel: 6, + doviPresent: true, + doviProfile: 8, + dovirpuPresent: true, + doviVersion: "1.0", + bitrate: 24743, + canAutoSync: false, + chromaLocation: "topleft", + chromaSubsampling: "4:2:0", + codedHeight: 1608, + codedWidth: 3840, + closedCaptions: true, + codec: "hevc", + colorPrimaries: "bt2020", + colorRange: "tv", + colorSpace: "bt2020nc", + colorTrc: "smpte2084", + displayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + extendedDisplayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + frameRate: 23.976, + hasScalingMatrix: false, + height: 1602, + id: 1002625, + index: 0, + key: "/library/streams/216389", + language: "English", + languageCode: "eng", + languageTag: "en", + format: "srt", + headerCompression: true, + level: 150, + original: true, + profile: "main 10", + refFrames: 1, + samplingRate: 48000, + scanType: "progressive", + embeddedInVideo: "progressive", + selected: true, + forced: true, + hearingImpaired: true, + dub: true, + title: "SDH", + streamIdentifier: 1, + width: 3840, + }, + ], + videoProfile: "main", + }, + ], + videoCodec: "h264", + videoFrameRate: "24p", + videoProfile: "main", + videoResolution: "720", + width: 1280, + }, + ], + originallyAvailableAt: new Date("2022-12-14"), + parentGuid: "plex://show/5d9c081b170e24001f2a7be4", + ratingArray: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + role: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + theme: "/library/metadata/1/theme/1705636920", + thumb: "/library/metadata/58683/thumb/1703239236", + writer: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [shared.MediaContainerWithPlaylistMetadata](../../models/shared/mediacontainerwithplaylistmetadata.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/listprovidersmediacontainer.md b/docs/models/operations/listprovidersmediacontainer.md similarity index 99% rename from docs/sdk/models/operations/listprovidersmediacontainer.md rename to docs/models/operations/listprovidersmediacontainer.md index 53ef32c7..2d37059b 100644 --- a/docs/sdk/models/operations/listprovidersmediacontainer.md +++ b/docs/models/operations/listprovidersmediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { ListProvidersMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { ListProvidersMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: ListProvidersMediaContainer = { livetv: 7, @@ -76,7 +76,7 @@ let value: ListProvidersMediaContainer = { | `updater` | *boolean* | :heavy_minus_sign: | N/A | | | `version` | *string* | :heavy_minus_sign: | N/A | | | `voiceSearch` | *boolean* | :heavy_minus_sign: | N/A | | -| `feature` | [operations.Feature](../../../sdk/models/operations/feature.md)[] | :heavy_minus_sign: | N/A | | +| `feature` | [operations.Feature](../../models/operations/feature.md)[] | :heavy_minus_sign: | N/A | | | `protocols` | *string* | :heavy_minus_sign: | A comma-separated list of default protocols for the provider, which can be:
- `stream`: The provider allows streaming media directly from the provider (e.g. for Vimeo). - `download`: The provider allows downloading media for offline storage, sync, etc. (e.g. Podcasts). - `livetv`: The provider provides live content which is only available on a schedule basis. | | | `title` | *string* | :heavy_minus_sign: | The title of the provider. | | | `types` | *string* | :heavy_minus_sign: | This attribute contains a comma-separated list of the media types exposed by the provider (e.g. `video, audio`). | | \ No newline at end of file diff --git a/docs/models/operations/listprovidersresponse.md b/docs/models/operations/listprovidersresponse.md new file mode 100644 index 00000000..a2d2f3e4 --- /dev/null +++ b/docs/models/operations/listprovidersresponse.md @@ -0,0 +1,26 @@ +# ListProvidersResponse + +OK + +## Example Usage + +```typescript +import { ListProvidersResponse } from "@lukehagar/plexjs/models/operations"; + +let value: ListProvidersResponse = { + mediaContainer: { + livetv: 7, + machineIdentifier: "0123456789abcdef0123456789abcdef012345678", + musicAnalysis: 2, + myPlexMappingState: "mapped", + myPlexSigninState: "ok", + offlineTranscode: 1, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `mediaContainer` | [operations.ListProvidersMediaContainer](../../models/operations/listprovidersmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/listsessionsguid.md b/docs/models/operations/listsessionsguid.md similarity index 98% rename from docs/sdk/models/operations/listsessionsguid.md rename to docs/models/operations/listsessionsguid.md index bab1eb7c..848f9153 100644 --- a/docs/sdk/models/operations/listsessionsguid.md +++ b/docs/models/operations/listsessionsguid.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListSessionsGuid } from "@lukehagar/plexjs/sdk/models/operations"; +import { ListSessionsGuid } from "@lukehagar/plexjs/models/operations"; let value: ListSessionsGuid = { id: diff --git a/docs/sdk/models/operations/listsessionsmediacontainer.md b/docs/models/operations/listsessionsmediacontainer.md similarity index 97% rename from docs/sdk/models/operations/listsessionsmediacontainer.md rename to docs/models/operations/listsessionsmediacontainer.md index caf29081..8e1bc0fa 100644 --- a/docs/sdk/models/operations/listsessionsmediacontainer.md +++ b/docs/models/operations/listsessionsmediacontainer.md @@ -8,8 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { ListSessionsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { ListSessionsMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: ListSessionsMediaContainer = { metadata: [ @@ -167,7 +166,7 @@ let value: ListSessionsMediaContainer = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -217,4 +216,4 @@ let value: ListSessionsMediaContainer = { | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `metadata` | [operations.ListSessionsMetadatum](../../../sdk/models/operations/listsessionsmetadatum.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `metadata` | [operations.ListSessionsMetadatum](../../models/operations/listsessionsmetadatum.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/listsessionsmetadatum.md b/docs/models/operations/listsessionsmetadatum.md similarity index 99% rename from docs/sdk/models/operations/listsessionsmetadatum.md rename to docs/models/operations/listsessionsmetadatum.md index ac90af91..062805ea 100644 --- a/docs/sdk/models/operations/listsessionsmetadatum.md +++ b/docs/models/operations/listsessionsmetadatum.md @@ -10,8 +10,7 @@ Metadata items can often live in a hierarchy with relationships between them. F ## Example Usage ```typescript -import { ListSessionsMetadatum } from "@lukehagar/plexjs/sdk/models/operations"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { ListSessionsMetadatum } from "@lukehagar/plexjs/models/operations"; let value: ListSessionsMetadatum = { title: "", @@ -167,7 +166,7 @@ let value: ListSessionsMetadatum = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -211,9 +210,9 @@ let value: ListSessionsMetadatum = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `player` | [shared.Player](../../../sdk/models/shared/player.md) | :heavy_minus_sign: | Information about the player being used for playback | | -| `session` | [shared.Session](../../../sdk/models/shared/session.md) | :heavy_minus_sign: | Information about the playback session | | -| `user` | [shared.User](../../../sdk/models/shared/user.md) | :heavy_minus_sign: | The user playing the content | | +| `player` | [shared.Player](../../models/shared/player.md) | :heavy_minus_sign: | Information about the player being used for playback | | +| `session` | [shared.Session](../../models/shared/session.md) | :heavy_minus_sign: | Information about the playback session | | +| `user` | [shared.User](../../models/shared/user.md) | :heavy_minus_sign: | The user playing the content | | | `title` | *string* | :heavy_check_mark: | The title of the item (e.g. “300” or “The Simpsons”) | | | `type` | *string* | :heavy_check_mark: | The type of the video item, such as `movie`, `episode`, or `clip`. | | | `absoluteIndex` | *number* | :heavy_minus_sign: | When present, contains the disc number for a track on multi-disc albums. | | @@ -221,17 +220,17 @@ let value: ListSessionsMetadatum = { | `art` | *string* | :heavy_minus_sign: | When present, the URL for the background artwork for the item. | /library/metadata/58683/art/1703239236 | | `audienceRating` | *number* | :heavy_minus_sign: | Some rating systems separate reviewer ratings from audience ratings | | | `audienceRatingImage` | *string* | :heavy_minus_sign: | A URI representing the image to be shown with the audience rating (e.g. rottentomatoes://image.rating.spilled). | | -| `autotag` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `autotag` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `banner` | *string* | :heavy_minus_sign: | When present, the URL for a banner graphic for the item. | | | `chapterSource` | *string* | :heavy_minus_sign: | When present, indicates the source for the chapters in the media file. Can be media (the chapters were embedded in the media itself), agent (a metadata agent computed them), or mixed (a combination of the two). | media | | `childCount` | *number* | :heavy_minus_sign: | The number of child items associated with this media item. | 1 | | `composite` | *string* | :heavy_minus_sign: | When present, the URL for a composite image for descendent items (e.g. photo albums or playlists). | | | `contentRating` | *string* | :heavy_minus_sign: | If known, the content rating (e.g. MPAA) for an item. | | -| `country` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | -| `director` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `country` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `director` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `duration` | *number* | :heavy_minus_sign: | When present, the duration for the item, in units of milliseconds. | | -| `filter` | [shared.Filter](../../../sdk/models/shared/filter.md)[] | :heavy_minus_sign: | Typically only seen in metadata at a library's top level | | -| `genre` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `filter` | [shared.Filter](../../models/shared/filter.md)[] | :heavy_minus_sign: | Typically only seen in metadata at a library's top level | | +| `genre` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `grandparentArt` | *string* | :heavy_minus_sign: | The `art` of the grandparent | | | `grandparentGuid` | *string* | :heavy_minus_sign: | The GUID of the grandparent media item. | plex://show/5d9c081b170e24001f2a7be4 | | `grandparentHero` | *string* | :heavy_minus_sign: | The `hero` of the grandparent | | @@ -241,15 +240,15 @@ let value: ListSessionsMetadatum = { | `grandparentThumb` | *string* | :heavy_minus_sign: | The `thumb` of the grandparent | | | `grandparentTitle` | *string* | :heavy_minus_sign: | The `title` of the grandparent | | | `guid` | *string* | :heavy_minus_sign: | The globally unique identifier for the media item. | plex://movie/5d7768ba96b655001fdc0408 | -| `guids` | [operations.ListSessionsGuid](../../../sdk/models/operations/listsessionsguid.md)[] | :heavy_minus_sign: | N/A | | +| `guids` | [operations.ListSessionsGuid](../../models/operations/listsessionsguid.md)[] | :heavy_minus_sign: | N/A | | | `hero` | *string* | :heavy_minus_sign: | When present, the URL for a hero image for the item. | | -| `image` | [shared.Image](../../../sdk/models/shared/image.md)[] | :heavy_minus_sign: | N/A | | +| `image` | [shared.Image](../../models/shared/image.md)[] | :heavy_minus_sign: | N/A | | | `index` | *number* | :heavy_minus_sign: | When present, this represents the episode number for episodes, season number for seasons, or track number for audio tracks. | | | `key` | *string* | :heavy_check_mark: | The key at which the item's details can be fetched. In many cases a metadata item may be passed without all the details (such as in a hub) and this key corresponds to the endpoint to fetch additional details. | | | `lastViewedAt` | *number* | :heavy_minus_sign: | N/A | 1556281940 | | `leafCount` | *number* | :heavy_minus_sign: | For shows and seasons, contains the number of total episodes. | | -| `media` | [shared.Media](../../../sdk/models/shared/media.md)[] | :heavy_minus_sign: | N/A | | -| `originallyAvailableAt` | [RFCDate](../../../types/rfcdate.md) | :heavy_minus_sign: | When present, in the format YYYY-MM-DD [HH:MM:SS] (the hours/minutes/seconds part is not always present). The air date, or a higher resolution release date for an item, depending on type. For example, episodes usually have air date like 1979-08-10 (we don't use epoch seconds because media existed prior to 1970). In some cases, recorded over-the-air content has higher resolution air date which includes a time component. Albums and movies may have day-resolution release dates as well. | 2022-12-14 | +| `media` | [shared.Media](../../models/shared/media.md)[] | :heavy_minus_sign: | N/A | | +| `originallyAvailableAt` | [Date](../../types/rfcdate.md) | :heavy_minus_sign: | When present, in the format YYYY-MM-DD [HH:MM:SS] (the hours/minutes/seconds part is not always present). The air date, or a higher resolution release date for an item, depending on type. For example, episodes usually have air date like 1979-08-10 (we don't use epoch seconds because media existed prior to 1970). In some cases, recorded over-the-air content has higher resolution air date which includes a time component. Albums and movies may have day-resolution release dates as well. | 2022-12-14 | | `originalTitle` | *string* | :heavy_minus_sign: | When present, used to indicate an item's original title, e.g. a movie's foreign title. | | | `parentGuid` | *string* | :heavy_minus_sign: | The GUID of the parent media item. | plex://show/5d9c081b170e24001f2a7be4 | | `parentHero` | *string* | :heavy_minus_sign: | The `hero` of the parent | | @@ -261,16 +260,16 @@ let value: ListSessionsMetadatum = { | `primaryExtraKey` | *string* | :heavy_minus_sign: | Indicates that the item has a primary extra; for a movie, this is a trailer, and for a music track it is a music video. The URL points to the metadata details endpoint for the item. | | | `prompt` | *string* | :heavy_minus_sign: | Prompt to give the user for this directory (such as `Search Movies`) | | | `rating` | *number* | :heavy_minus_sign: | When present, the rating for the item. The exact meaning and representation depends on where the rating was sourced from. | | -| `ratingArray` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `ratingArray` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `ratingCount` | *number* | :heavy_minus_sign: | Number of ratings under this metadata | | | `ratingImage` | *string* | :heavy_minus_sign: | When present, indicates an image to be shown with the rating. This is passed back as a small set of defined URI values, e.g. rottentomatoes://image.rating.rotten. | | | `ratingKey` | *string* | :heavy_minus_sign: | This is the opaque string to be passed into timeline, scrobble, and rating endpoints to identify them. While it often appears to be numeric, this is not guaranteed. | | -| `role` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `role` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `search` | *boolean* | :heavy_minus_sign: | Indicates this is a search directory | | | `secondary` | *boolean* | :heavy_minus_sign: | Used by old clients to provide nested menus allowing for primative (but structured) navigation. | | | `skipChildren` | *boolean* | :heavy_minus_sign: | When found on a show item, indicates that the children (seasons) should be skipped in favor of the grandchildren (episodes). Useful for mini-series, etc. | | | `skipParent` | *boolean* | :heavy_minus_sign: | When present on an episode or track item, indicates parent should be skipped in favor of grandparent (show). | | -| `sort` | [shared.Sort](../../../sdk/models/shared/sort.md)[] | :heavy_minus_sign: | Typically only seen in metadata at a library's top level | | +| `sort` | [shared.Sort](../../models/shared/sort.md)[] | :heavy_minus_sign: | Typically only seen in metadata at a library's top level | | | `studio` | *string* | :heavy_minus_sign: | When present, the studio or label which produced an item (e.g. movie studio for movies, record label for albums). | | | `subtype` | *string* | :heavy_minus_sign: | The subtype of the video item, such as `photo` when the video item is in a photo library | | | `summary` | *string* | :heavy_minus_sign: | When present, the extended textual information about the item (e.g. movie plot, artist biography, album review). | | @@ -283,6 +282,6 @@ let value: ListSessionsMetadatum = { | `viewCount` | *number* | :heavy_minus_sign: | When a users has completed watched or listened to an item, this attribute contains the number of consumptions. | | | `viewedLeafCount` | *number* | :heavy_minus_sign: | For shows and seasons, contains the number of viewed episodes. | | | `viewOffset` | *number* | :heavy_minus_sign: | When a user is in the process of viewing or listening to this item, this attribute contains the current offset, in units of milliseconds. | | -| `writer` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `writer` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `year` | *number* | :heavy_minus_sign: | When present, the year associated with the item's release (e.g. release year for a movie). | | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/listsessionsresponse.md b/docs/models/operations/listsessionsresponse.md new file mode 100644 index 00000000..22636ee9 --- /dev/null +++ b/docs/models/operations/listsessionsresponse.md @@ -0,0 +1,216 @@ +# ListSessionsResponse + +## Example Usage + +```typescript +import { ListSessionsResponse } from "@lukehagar/plexjs/models/operations"; + +let value: ListSessionsResponse = { + headers: {}, + result: { + mediaContainer: { + metadata: [ + { + title: "", + type: "", + addedAt: 135107, + art: "/library/metadata/58683/art/1703239236", + autotag: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + chapterSource: "media", + childCount: 1, + country: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + director: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + genre: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + grandparentGuid: "plex://show/5d9c081b170e24001f2a7be4", + guid: "plex://movie/5d7768ba96b655001fdc0408", + guids: [ + { + id: + "{\"imdbExample\":{\"summary\":\"IMDB example\",\"value\":\"imdb://tt13015952\"},\"tmdbExample\":{\"summary\":\"TMDB example\",\"value\":\"tmdb://2434012\"},\"tvdbExample\":{\"summary\":\"TVDB example\",\"value\":\"tvdb://7945991\"}}", + }, + ], + key: "", + lastViewedAt: 1556281940, + 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: [ + { + accessible: true, + audioProfile: "lc", + container: "mov", + duration: 150192, + exists: true, + file: "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", + has64bitOffsets: false, + id: 1, + indexes: "sd", + key: "/library/parts/1/1531779263/file.mov", + optimizedForStreaming: false, + size: 105355654, + stream: [ + { + default: true, + audioChannelLayout: "5.1(side)", + channels: 6, + bitDepth: 10, + doviblCompatID: 1, + doviblPresent: true, + dovielPresent: false, + doviLevel: 6, + doviPresent: true, + doviProfile: 8, + dovirpuPresent: true, + doviVersion: "1.0", + bitrate: 24743, + canAutoSync: false, + chromaLocation: "topleft", + chromaSubsampling: "4:2:0", + codedHeight: 1608, + codedWidth: 3840, + closedCaptions: true, + codec: "hevc", + colorPrimaries: "bt2020", + colorRange: "tv", + colorSpace: "bt2020nc", + colorTrc: "smpte2084", + displayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + extendedDisplayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + frameRate: 23.976, + hasScalingMatrix: false, + height: 1602, + id: 1002625, + index: 0, + key: "/library/streams/216389", + language: "English", + languageCode: "eng", + languageTag: "en", + format: "srt", + headerCompression: true, + level: 150, + original: true, + profile: "main 10", + refFrames: 1, + samplingRate: 48000, + scanType: "progressive", + embeddedInVideo: "progressive", + selected: true, + forced: true, + hearingImpaired: true, + dub: true, + title: "SDH", + streamIdentifier: 1, + width: 3840, + }, + ], + videoProfile: "main", + }, + ], + videoCodec: "h264", + videoFrameRate: "24p", + videoProfile: "main", + videoResolution: "720", + width: 1280, + }, + ], + originallyAvailableAt: new Date("2022-12-14"), + parentGuid: "plex://show/5d9c081b170e24001f2a7be4", + ratingArray: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + role: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + theme: "/library/metadata/1/theme/1705636920", + thumb: "/library/metadata/58683/thumb/1703239236", + writer: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [operations.ListSessionsResponseBody](../../models/operations/listsessionsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/listsessionsresponsebody.md b/docs/models/operations/listsessionsresponsebody.md similarity index 87% rename from docs/sdk/models/operations/listsessionsresponsebody.md rename to docs/models/operations/listsessionsresponsebody.md index a77c8623..e6522abd 100644 --- a/docs/sdk/models/operations/listsessionsresponsebody.md +++ b/docs/models/operations/listsessionsresponsebody.md @@ -5,8 +5,7 @@ OK ## Example Usage ```typescript -import { ListSessionsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { ListSessionsResponseBody } from "@lukehagar/plexjs/models/operations"; let value: ListSessionsResponseBody = { mediaContainer: { @@ -165,7 +164,7 @@ let value: ListSessionsResponseBody = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -210,6 +209,6 @@ let value: ListSessionsResponseBody = { ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.ListSessionsMediaContainer](../../../sdk/models/operations/listsessionsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.ListSessionsMediaContainer](../../models/operations/listsessionsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/listsimilarglobals.md b/docs/models/operations/listsimilarglobals.md similarity index 96% rename from docs/sdk/models/operations/listsimilarglobals.md rename to docs/models/operations/listsimilarglobals.md index 92b45126..687e80a1 100644 --- a/docs/sdk/models/operations/listsimilarglobals.md +++ b/docs/models/operations/listsimilarglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListSimilarGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { ListSimilarGlobals } from "@lukehagar/plexjs/models/operations"; let value: ListSimilarGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: ListSimilarGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/listsimilarrequest.md b/docs/models/operations/listsimilarrequest.md similarity index 97% rename from docs/sdk/models/operations/listsimilarrequest.md rename to docs/models/operations/listsimilarrequest.md index f2b79cb2..84197d09 100644 --- a/docs/sdk/models/operations/listsimilarrequest.md +++ b/docs/models/operations/listsimilarrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListSimilarRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { ListSimilarRequest } from "@lukehagar/plexjs/models/operations"; let value: ListSimilarRequest = { ids: "", @@ -14,7 +14,7 @@ let value: ListSimilarRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/listsonicallysimilarglobals.md b/docs/models/operations/listsonicallysimilarglobals.md similarity index 96% rename from docs/sdk/models/operations/listsonicallysimilarglobals.md rename to docs/models/operations/listsonicallysimilarglobals.md index c8959d4a..a3b61149 100644 --- a/docs/sdk/models/operations/listsonicallysimilarglobals.md +++ b/docs/models/operations/listsonicallysimilarglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListSonicallySimilarGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { ListSonicallySimilarGlobals } from "@lukehagar/plexjs/models/operations"; let value: ListSonicallySimilarGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: ListSonicallySimilarGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/listsonicallysimilarrequest.md b/docs/models/operations/listsonicallysimilarrequest.md similarity index 97% rename from docs/sdk/models/operations/listsonicallysimilarrequest.md rename to docs/models/operations/listsonicallysimilarrequest.md index 9708ba81..f8b63bf3 100644 --- a/docs/sdk/models/operations/listsonicallysimilarrequest.md +++ b/docs/models/operations/listsonicallysimilarrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListSonicallySimilarRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { ListSonicallySimilarRequest } from "@lukehagar/plexjs/models/operations"; let value: ListSonicallySimilarRequest = { ids: "", @@ -14,7 +14,7 @@ let value: ListSonicallySimilarRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/listtopusersglobals.md b/docs/models/operations/listtopusersglobals.md similarity index 96% rename from docs/sdk/models/operations/listtopusersglobals.md rename to docs/models/operations/listtopusersglobals.md index 3622d9d5..f58178a3 100644 --- a/docs/sdk/models/operations/listtopusersglobals.md +++ b/docs/models/operations/listtopusersglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListTopUsersGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { ListTopUsersGlobals } from "@lukehagar/plexjs/models/operations"; let value: ListTopUsersGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: ListTopUsersGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/listtopusersmediacontainer.md b/docs/models/operations/listtopusersmediacontainer.md similarity index 95% rename from docs/sdk/models/operations/listtopusersmediacontainer.md rename to docs/models/operations/listtopusersmediacontainer.md index 9832b9fb..1d8ffb81 100644 --- a/docs/sdk/models/operations/listtopusersmediacontainer.md +++ b/docs/models/operations/listtopusersmediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { ListTopUsersMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { ListTopUsersMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: ListTopUsersMediaContainer = {}; ``` @@ -21,4 +21,4 @@ let value: ListTopUsersMediaContainer = {}; | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `account` | [operations.Account](../../../sdk/models/operations/account.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `account` | [operations.Account](../../models/operations/account.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/listtopusersrequest.md b/docs/models/operations/listtopusersrequest.md similarity index 97% rename from docs/sdk/models/operations/listtopusersrequest.md rename to docs/models/operations/listtopusersrequest.md index 8ff5cf53..cfcd1b41 100644 --- a/docs/sdk/models/operations/listtopusersrequest.md +++ b/docs/models/operations/listtopusersrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListTopUsersRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { ListTopUsersRequest } from "@lukehagar/plexjs/models/operations"; let value: ListTopUsersRequest = { ids: "", @@ -14,7 +14,7 @@ let value: ListTopUsersRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/listtopusersresponse.md b/docs/models/operations/listtopusersresponse.md new file mode 100644 index 00000000..209a40de --- /dev/null +++ b/docs/models/operations/listtopusersresponse.md @@ -0,0 +1,17 @@ +# ListTopUsersResponse + +OK + +## Example Usage + +```typescript +import { ListTopUsersResponse } from "@lukehagar/plexjs/models/operations"; + +let value: ListTopUsersResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.ListTopUsersMediaContainer](../../models/operations/listtopusersmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/mailingliststatus.md b/docs/models/operations/mailingliststatus.md new file mode 100644 index 00000000..a1b74d30 --- /dev/null +++ b/docs/models/operations/mailingliststatus.md @@ -0,0 +1,22 @@ +# MailingListStatus + +Your current mailing list status + +## Example Usage + +```typescript +import { MailingListStatus } from "@lukehagar/plexjs/models/operations"; + +let value: MailingListStatus = MailingListStatus.Active; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Active` | active | +| `Unsubscribed` | unsubscribed | +| `Removed` | removed | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/sdk/models/operations/makedecisionglobals.md b/docs/models/operations/makedecisionglobals.md similarity index 96% rename from docs/sdk/models/operations/makedecisionglobals.md rename to docs/models/operations/makedecisionglobals.md index 271fe141..7dddd1ff 100644 --- a/docs/sdk/models/operations/makedecisionglobals.md +++ b/docs/models/operations/makedecisionglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { MakeDecisionGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { MakeDecisionGlobals } from "@lukehagar/plexjs/models/operations"; let value: MakeDecisionGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: MakeDecisionGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/makedecisionlocation.md b/docs/models/operations/makedecisionlocation.md similarity index 81% rename from docs/sdk/models/operations/makedecisionlocation.md rename to docs/models/operations/makedecisionlocation.md index b1daf5fa..b89bbe63 100644 --- a/docs/sdk/models/operations/makedecisionlocation.md +++ b/docs/models/operations/makedecisionlocation.md @@ -5,7 +5,7 @@ Network type of the client, can be used to help determine target bitrate. ## Example Usage ```typescript -import { MakeDecisionLocation } from "@lukehagar/plexjs/sdk/models/operations"; +import { MakeDecisionLocation } from "@lukehagar/plexjs/models/operations"; let value: MakeDecisionLocation = MakeDecisionLocation.Wan; ``` diff --git a/docs/sdk/models/operations/makedecisionprotocol.md b/docs/models/operations/makedecisionprotocol.md similarity index 85% rename from docs/sdk/models/operations/makedecisionprotocol.md rename to docs/models/operations/makedecisionprotocol.md index 0f1abb1b..022b8bd0 100644 --- a/docs/sdk/models/operations/makedecisionprotocol.md +++ b/docs/models/operations/makedecisionprotocol.md @@ -6,7 +6,7 @@ Indicates the network streaming protocol to be used for the transcode session: * ## Example Usage ```typescript -import { MakeDecisionProtocol } from "@lukehagar/plexjs/sdk/models/operations"; +import { MakeDecisionProtocol } from "@lukehagar/plexjs/models/operations"; let value: MakeDecisionProtocol = MakeDecisionProtocol.Dash; ``` diff --git a/docs/sdk/models/operations/makedecisionrequest.md b/docs/models/operations/makedecisionrequest.md similarity index 98% rename from docs/sdk/models/operations/makedecisionrequest.md rename to docs/models/operations/makedecisionrequest.md index cf7480b1..b41c1b6c 100644 --- a/docs/sdk/models/operations/makedecisionrequest.md +++ b/docs/models/operations/makedecisionrequest.md @@ -8,8 +8,8 @@ import { MakeDecisionProtocol, MakeDecisionRequest, MakeDecisionSubtitles, -} from "@lukehagar/plexjs/sdk/models/operations"; -import { AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; +} from "@lukehagar/plexjs/models/operations"; +import { AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/models/shared"; let value: MakeDecisionRequest = { transcodeType: TranscodeType.Audio, @@ -49,7 +49,7 @@ let value: MakeDecisionRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -60,19 +60,19 @@ let value: MakeDecisionRequest = { | `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | | `deviceName` | *string* | :heavy_minus_sign: | 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 | | +| `transcodeType` | [shared.TranscodeType](../../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 | +| `advancedSubtitles` | [shared.AdvancedSubtitles](../../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 | | `audioBoost` | *number* | :heavy_minus_sign: | Percentage of original audio loudness to use when transcoding (100 is equivalent to original volume, 50 is half, 200 is double, etc) | 50 | | `audioChannelCount` | *number* | :heavy_minus_sign: | Target video number of audio channels. | 5 | -| `autoAdjustQuality` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Indicates the client supports ABR. | 1 | -| `autoAdjustSubtitle` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Indicates if the server should adjust subtitles based on Voice Activity Data. | 1 | -| `directPlay` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Indicates the client supports direct playing the indicated content. | 1 | -| `directStream` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Indicates the client supports direct streaming the video of the indicated content. | 1 | -| `directStreamAudio` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Indicates the client supports direct streaming the audio of the indicated content. | 1 | -| `disableResolutionRotation` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Indicates if resolution should be adjusted for orientation. | 1 | -| `hasMDE` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Ignore client profiles when determining if direct play is possible. Only has an effect when directPlay=1 and both mediaIndex and partIndex are specified and neither are -1 | 1 | -| `location` | [operations.MakeDecisionLocation](../../../sdk/models/operations/makedecisionlocation.md) | :heavy_minus_sign: | Network type of the client, can be used to help determine target bitrate. | wan | +| `autoAdjustQuality` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Indicates the client supports ABR. | 1 | +| `autoAdjustSubtitle` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Indicates if the server should adjust subtitles based on Voice Activity Data. | 1 | +| `directPlay` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Indicates the client supports direct playing the indicated content. | 1 | +| `directStream` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Indicates the client supports direct streaming the video of the indicated content. | 1 | +| `directStreamAudio` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Indicates the client supports direct streaming the audio of the indicated content. | 1 | +| `disableResolutionRotation` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Indicates if resolution should be adjusted for orientation. | 1 | +| `hasMDE` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Ignore client profiles when determining if direct play is possible. Only has an effect when directPlay=1 and both mediaIndex and partIndex are specified and neither are -1 | 1 | +| `location` | [operations.MakeDecisionLocation](../../models/operations/makedecisionlocation.md) | :heavy_minus_sign: | Network type of the client, can be used to help determine target bitrate. | wan | | `mediaBufferSize` | *number* | :heavy_minus_sign: | Buffer size used in playback (in KB). Clients should specify a lower bound if not known exactly. This value could make the difference between transcoding and direct play on bandwidth constrained networks. | 102400 | | `mediaIndex` | *number* | :heavy_minus_sign: | Index of the media to transcode. -1 or not specified indicates let the server choose. | 0 | | `musicBitrate` | *number* | :heavy_minus_sign: | Target bitrate for audio only files (in kbps, used to transcode). | 5000 | @@ -81,10 +81,10 @@ let value: MakeDecisionRequest = { | `path` | *string* | :heavy_minus_sign: | Internal PMS path of the media to transcode. | /library/metadata/151671 | | `peakBitrate` | *number* | :heavy_minus_sign: | Maximum bitrate (in kbps) to use in ABR. | 12000 | | `photoResolution` | *string* | :heavy_minus_sign: | Target photo resolution. | 1080x1080 | -| `protocol` | [operations.MakeDecisionProtocol](../../../sdk/models/operations/makedecisionprotocol.md) | :heavy_minus_sign: | Indicates the network streaming protocol to be used for the transcode session: * 'http' - include the file in the http response such as MKV streaming * 'hls' - hls stream (RFC 8216) * 'dash' - dash stream (ISO/IEC 23009-1:2022)
| dash | +| `protocol` | [operations.MakeDecisionProtocol](../../models/operations/makedecisionprotocol.md) | :heavy_minus_sign: | Indicates the network streaming protocol to be used for the transcode session: * 'http' - include the file in the http response such as MKV streaming * 'hls' - hls stream (RFC 8216) * 'dash' - dash stream (ISO/IEC 23009-1:2022)
| dash | | `secondsPerSegment` | *number* | :heavy_minus_sign: | Number of seconds to include in each transcoded segment | 5 | | `subtitleSize` | *number* | :heavy_minus_sign: | Percentage of original subtitle size to use when burning subtitles (100 is equivalent to original size, 50 is half, ect) | 50 | -| `subtitles` | [operations.MakeDecisionSubtitles](../../../sdk/models/operations/makedecisionsubtitles.md) | :heavy_minus_sign: | Indicates how subtitles should be included: * 'auto' - Compute the appropriate subtitle setting automatically * 'burn' - Burn the selected subtitle; auto if no selected subtitle * 'none' - Ignore all subtitle streams * 'sidecar' - The selected subtitle should be provided as a sidecar * 'embedded' - The selected subtitle should be provided as an embedded stream * 'segmented' - The selected subtitle should be provided as a segmented stream
| Burn | +| `subtitles` | [operations.MakeDecisionSubtitles](../../models/operations/makedecisionsubtitles.md) | :heavy_minus_sign: | Indicates how subtitles should be included: * 'auto' - Compute the appropriate subtitle setting automatically * 'burn' - Burn the selected subtitle; auto if no selected subtitle * 'none' - Ignore all subtitle streams * 'sidecar' - The selected subtitle should be provided as a sidecar * 'embedded' - The selected subtitle should be provided as an embedded stream * 'segmented' - The selected subtitle should be provided as a segmented stream
| Burn | | `videoBitrate` | *number* | :heavy_minus_sign: | Target video bitrate (in kbps). | 12000 | | `videoQuality` | *number* | :heavy_minus_sign: | Target photo quality. | 50 | | `videoResolution` | *string* | :heavy_minus_sign: | Target maximum video resolution. | 1080x1080 | diff --git a/docs/sdk/models/operations/makedecisionsubtitles.md b/docs/models/operations/makedecisionsubtitles.md similarity index 91% rename from docs/sdk/models/operations/makedecisionsubtitles.md rename to docs/models/operations/makedecisionsubtitles.md index 55258d57..2f8ba123 100644 --- a/docs/sdk/models/operations/makedecisionsubtitles.md +++ b/docs/models/operations/makedecisionsubtitles.md @@ -6,7 +6,7 @@ Indicates how subtitles should be included: * 'auto' - Compute the appropriate s ## Example Usage ```typescript -import { MakeDecisionSubtitles } from "@lukehagar/plexjs/sdk/models/operations"; +import { MakeDecisionSubtitles } from "@lukehagar/plexjs/models/operations"; let value: MakeDecisionSubtitles = MakeDecisionSubtitles.Auto; ``` diff --git a/docs/sdk/models/operations/markplayedglobals.md b/docs/models/operations/markplayedglobals.md similarity index 96% rename from docs/sdk/models/operations/markplayedglobals.md rename to docs/models/operations/markplayedglobals.md index fd2c7145..974753e5 100644 --- a/docs/sdk/models/operations/markplayedglobals.md +++ b/docs/models/operations/markplayedglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { MarkPlayedGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { MarkPlayedGlobals } from "@lukehagar/plexjs/models/operations"; let value: MarkPlayedGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: MarkPlayedGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/markplayedrequest.md b/docs/models/operations/markplayedrequest.md similarity index 98% rename from docs/sdk/models/operations/markplayedrequest.md rename to docs/models/operations/markplayedrequest.md index 436d35d7..ae4ee1b4 100644 --- a/docs/sdk/models/operations/markplayedrequest.md +++ b/docs/models/operations/markplayedrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { MarkPlayedRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { MarkPlayedRequest } from "@lukehagar/plexjs/models/operations"; let value: MarkPlayedRequest = { identifier: "", @@ -14,7 +14,7 @@ let value: MarkPlayedRequest = { | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/matchitemglobals.md b/docs/models/operations/matchitemglobals.md similarity index 97% rename from docs/sdk/models/operations/matchitemglobals.md rename to docs/models/operations/matchitemglobals.md index 5baf8152..1ab4d383 100644 --- a/docs/sdk/models/operations/matchitemglobals.md +++ b/docs/models/operations/matchitemglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { MatchItemGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { MatchItemGlobals } from "@lukehagar/plexjs/models/operations"; let value: MatchItemGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: MatchItemGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/matchitemrequest.md b/docs/models/operations/matchitemrequest.md similarity index 97% rename from docs/sdk/models/operations/matchitemrequest.md rename to docs/models/operations/matchitemrequest.md index a518b10a..5ad7d671 100644 --- a/docs/sdk/models/operations/matchitemrequest.md +++ b/docs/models/operations/matchitemrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { MatchItemRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { MatchItemRequest } from "@lukehagar/plexjs/models/operations"; let value: MatchItemRequest = { ids: "", @@ -14,7 +14,7 @@ let value: MatchItemRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/mediagrabber.md b/docs/models/operations/mediagrabber.md similarity index 87% rename from docs/sdk/models/operations/mediagrabber.md rename to docs/models/operations/mediagrabber.md index 5fcf9d6c..6db3401b 100644 --- a/docs/sdk/models/operations/mediagrabber.md +++ b/docs/models/operations/mediagrabber.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { MediaGrabber } from "@lukehagar/plexjs/sdk/models/operations"; +import { MediaGrabber } from "@lukehagar/plexjs/models/operations"; let value: MediaGrabber = {}; ``` diff --git a/docs/models/operations/mediasettings.md b/docs/models/operations/mediasettings.md new file mode 100644 index 00000000..02278b18 --- /dev/null +++ b/docs/models/operations/mediasettings.md @@ -0,0 +1,34 @@ +# MediaSettings + +## Example Usage + +```typescript +import { MediaSettings } from "@lukehagar/plexjs/models/operations"; + +let value: MediaSettings = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `advancedSubtitles` | [operations.AdvancedSubtitles](../../models/operations/advancedsubtitles.md) | :heavy_minus_sign: | N/A | +| `audioBoost` | *number* | :heavy_minus_sign: | N/A | +| `audioChannelCount` | *number* | :heavy_minus_sign: | N/A | +| `autoAdjustQuality` | *boolean* | :heavy_minus_sign: | N/A | +| `autoAdjustSubtitle` | *boolean* | :heavy_minus_sign: | N/A | +| `directPlay` | *boolean* | :heavy_minus_sign: | N/A | +| `directStream` | *boolean* | :heavy_minus_sign: | N/A | +| `directStreamAudio` | *boolean* | :heavy_minus_sign: | N/A | +| `disableResolutionRotation` | *boolean* | :heavy_minus_sign: | N/A | +| `maxVideoBitrate` | *number* | :heavy_minus_sign: | N/A | +| `musicBitrate` | *number* | :heavy_minus_sign: | N/A | +| `peakBitrate` | *number* | :heavy_minus_sign: | N/A | +| `photoQuality` | *number* | :heavy_minus_sign: | N/A | +| `photoResolution` | *string* | :heavy_minus_sign: | N/A | +| `secondsPerSegment` | *number* | :heavy_minus_sign: | N/A | +| `subtitles` | [operations.GetPlaylistGeneratorSubtitles](../../models/operations/getplaylistgeneratorsubtitles.md) | :heavy_minus_sign: | N/A | +| `subtitleSize` | *number* | :heavy_minus_sign: | N/A | +| `videoBitrate` | *number* | :heavy_minus_sign: | N/A | +| `videoQuality` | *number* | :heavy_minus_sign: | N/A | +| `videoResolution` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/mediasubscription.md b/docs/models/operations/mediasubscription.md similarity index 53% rename from docs/sdk/models/operations/mediasubscription.md rename to docs/models/operations/mediasubscription.md index 265cd1d9..1ef0c03c 100644 --- a/docs/sdk/models/operations/mediasubscription.md +++ b/docs/models/operations/mediasubscription.md @@ -6,8 +6,7 @@ A media subscription contains a representation of metadata desired to be recorde ## Example Usage ```typescript -import { MediaSubscription } from "@lukehagar/plexjs/sdk/models/operations"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { MediaSubscription } from "@lukehagar/plexjs/models/operations"; let value: MediaSubscription = { title: "This Episode", @@ -167,7 +166,7 @@ let value: MediaSubscription = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -212,23 +211,23 @@ let value: MediaSubscription = { ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | -| `title` | *string* | :heavy_minus_sign: | The title of this subscription type | This Episode | -| `type` | *number* | :heavy_minus_sign: | Metadata type number | | -| `airingsType` | *string* | :heavy_minus_sign: | N/A | | -| `createdAt` | *number* | :heavy_minus_sign: | N/A | | -| `directory` | Record | :heavy_minus_sign: | Media Matching Hints | | -| `durationTotal` | *number* | :heavy_minus_sign: | Only included if `includeStorage` is specified | | -| `key` | *string* | :heavy_minus_sign: | N/A | | -| `librarySectionTitle` | *string* | :heavy_minus_sign: | N/A | | -| `locationPath` | *string* | :heavy_minus_sign: | N/A | | -| `mediaGrabOperation` | [shared.MediaGrabOperation](../../../sdk/models/shared/mediagraboperation.md)[] | :heavy_minus_sign: | N/A | | -| `playlist` | Record | :heavy_minus_sign: | Media Matching Hints | | -| `setting` | [shared.Setting](../../../sdk/models/shared/setting.md)[] | :heavy_minus_sign: | N/A | | -| `storageTotal` | *number* | :heavy_minus_sign: | Only included if `includeStorage` is specified | | -| `targetLibrarySectionID` | *number* | :heavy_minus_sign: | Where this subscription will record to | | -| `targetSectionLocationID` | *number* | :heavy_minus_sign: | The library section location id for where the item is to be recorded | | -| `video` | Record | :heavy_minus_sign: | Media Matching Hints | | -| `parameters` | *string* | :heavy_minus_sign: | Parameter string for creating this subscription | | -| `selected` | *boolean* | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `title` | *string* | :heavy_minus_sign: | The title of this subscription type | This Episode | +| `type` | *number* | :heavy_minus_sign: | Metadata type number | | +| `airingsType` | *string* | :heavy_minus_sign: | N/A | | +| `createdAt` | *number* | :heavy_minus_sign: | N/A | | +| `directory` | Record | :heavy_minus_sign: | Media Matching Hints | | +| `durationTotal` | *number* | :heavy_minus_sign: | Only included if `includeStorage` is specified | | +| `key` | *string* | :heavy_minus_sign: | N/A | | +| `librarySectionTitle` | *string* | :heavy_minus_sign: | N/A | | +| `locationPath` | *string* | :heavy_minus_sign: | N/A | | +| `mediaGrabOperation` | [shared.MediaGrabOperation](../../models/shared/mediagraboperation.md)[] | :heavy_minus_sign: | N/A | | +| `playlist` | Record | :heavy_minus_sign: | Media Matching Hints | | +| `setting` | [shared.Setting](../../models/shared/setting.md)[] | :heavy_minus_sign: | N/A | | +| `storageTotal` | *number* | :heavy_minus_sign: | Only included if `includeStorage` is specified | | +| `targetLibrarySectionID` | *number* | :heavy_minus_sign: | Where this subscription will record to | | +| `targetSectionLocationID` | *number* | :heavy_minus_sign: | The library section location id for where the item is to be recorded | | +| `video` | Record | :heavy_minus_sign: | Media Matching Hints | | +| `parameters` | *string* | :heavy_minus_sign: | Parameter string for creating this subscription | | +| `selected` | *boolean* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/operations/mergeitemsglobals.md b/docs/models/operations/mergeitemsglobals.md similarity index 96% rename from docs/sdk/models/operations/mergeitemsglobals.md rename to docs/models/operations/mergeitemsglobals.md index 5c571fa0..48b838bc 100644 --- a/docs/sdk/models/operations/mergeitemsglobals.md +++ b/docs/models/operations/mergeitemsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { MergeItemsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { MergeItemsGlobals } from "@lukehagar/plexjs/models/operations"; let value: MergeItemsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: MergeItemsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/mergeitemsrequest.md b/docs/models/operations/mergeitemsrequest.md similarity index 97% rename from docs/sdk/models/operations/mergeitemsrequest.md rename to docs/models/operations/mergeitemsrequest.md index 4c2f45b3..9f0969fb 100644 --- a/docs/sdk/models/operations/mergeitemsrequest.md +++ b/docs/models/operations/mergeitemsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { MergeItemsRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { MergeItemsRequest } from "@lukehagar/plexjs/models/operations"; let value: MergeItemsRequest = { idsPathParameter: "", @@ -14,7 +14,7 @@ let value: MergeItemsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/metadata.md b/docs/models/operations/metadata.md similarity index 99% rename from docs/sdk/models/operations/metadata.md rename to docs/models/operations/metadata.md index e2374b56..177fe2f6 100644 --- a/docs/sdk/models/operations/metadata.md +++ b/docs/models/operations/metadata.md @@ -10,8 +10,7 @@ Metadata items can often live in a hierarchy with relationships between them. F ## Example Usage ```typescript -import { Metadata } from "@lukehagar/plexjs/sdk/models/operations"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { Metadata } from "@lukehagar/plexjs/models/operations"; let value: Metadata = { title: "", @@ -167,7 +166,7 @@ let value: Metadata = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -218,17 +217,17 @@ let value: Metadata = { | `art` | *string* | :heavy_minus_sign: | When present, the URL for the background artwork for the item. | /library/metadata/58683/art/1703239236 | | `audienceRating` | *number* | :heavy_minus_sign: | Some rating systems separate reviewer ratings from audience ratings | | | `audienceRatingImage` | *string* | :heavy_minus_sign: | A URI representing the image to be shown with the audience rating (e.g. rottentomatoes://image.rating.spilled). | | -| `autotag` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `autotag` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `banner` | *string* | :heavy_minus_sign: | When present, the URL for a banner graphic for the item. | | | `chapterSource` | *string* | :heavy_minus_sign: | When present, indicates the source for the chapters in the media file. Can be media (the chapters were embedded in the media itself), agent (a metadata agent computed them), or mixed (a combination of the two). | media | | `childCount` | *number* | :heavy_minus_sign: | The number of child items associated with this media item. | 1 | | `composite` | *string* | :heavy_minus_sign: | When present, the URL for a composite image for descendent items (e.g. photo albums or playlists). | | | `contentRating` | *string* | :heavy_minus_sign: | If known, the content rating (e.g. MPAA) for an item. | | -| `country` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | -| `director` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `country` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `director` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `duration` | *number* | :heavy_minus_sign: | When present, the duration for the item, in units of milliseconds. | | -| `filter` | [shared.Filter](../../../sdk/models/shared/filter.md)[] | :heavy_minus_sign: | Typically only seen in metadata at a library's top level | | -| `genre` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `filter` | [shared.Filter](../../models/shared/filter.md)[] | :heavy_minus_sign: | Typically only seen in metadata at a library's top level | | +| `genre` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `grandparentArt` | *string* | :heavy_minus_sign: | The `art` of the grandparent | | | `grandparentGuid` | *string* | :heavy_minus_sign: | The GUID of the grandparent media item. | plex://show/5d9c081b170e24001f2a7be4 | | `grandparentHero` | *string* | :heavy_minus_sign: | The `hero` of the grandparent | | @@ -238,15 +237,15 @@ let value: Metadata = { | `grandparentThumb` | *string* | :heavy_minus_sign: | The `thumb` of the grandparent | | | `grandparentTitle` | *string* | :heavy_minus_sign: | The `title` of the grandparent | | | `guid` | *string* | :heavy_minus_sign: | The globally unique identifier for the media item. | plex://movie/5d7768ba96b655001fdc0408 | -| `guids` | [operations.GetPlaylistGeneratorItemsGuid](../../../sdk/models/operations/getplaylistgeneratoritemsguid.md)[] | :heavy_minus_sign: | N/A | | +| `guids` | [operations.GetPlaylistGeneratorItemsGuid](../../models/operations/getplaylistgeneratoritemsguid.md)[] | :heavy_minus_sign: | N/A | | | `hero` | *string* | :heavy_minus_sign: | When present, the URL for a hero image for the item. | | -| `image` | [shared.Image](../../../sdk/models/shared/image.md)[] | :heavy_minus_sign: | N/A | | +| `image` | [shared.Image](../../models/shared/image.md)[] | :heavy_minus_sign: | N/A | | | `index` | *number* | :heavy_minus_sign: | When present, this represents the episode number for episodes, season number for seasons, or track number for audio tracks. | | | `key` | *string* | :heavy_check_mark: | The key at which the item's details can be fetched. In many cases a metadata item may be passed without all the details (such as in a hub) and this key corresponds to the endpoint to fetch additional details. | | | `lastViewedAt` | *number* | :heavy_minus_sign: | N/A | 1556281940 | | `leafCount` | *number* | :heavy_minus_sign: | For shows and seasons, contains the number of total episodes. | | -| `media` | [shared.Media](../../../sdk/models/shared/media.md)[] | :heavy_minus_sign: | N/A | | -| `originallyAvailableAt` | [RFCDate](../../../types/rfcdate.md) | :heavy_minus_sign: | When present, in the format YYYY-MM-DD [HH:MM:SS] (the hours/minutes/seconds part is not always present). The air date, or a higher resolution release date for an item, depending on type. For example, episodes usually have air date like 1979-08-10 (we don't use epoch seconds because media existed prior to 1970). In some cases, recorded over-the-air content has higher resolution air date which includes a time component. Albums and movies may have day-resolution release dates as well. | 2022-12-14 | +| `media` | [shared.Media](../../models/shared/media.md)[] | :heavy_minus_sign: | N/A | | +| `originallyAvailableAt` | [Date](../../types/rfcdate.md) | :heavy_minus_sign: | When present, in the format YYYY-MM-DD [HH:MM:SS] (the hours/minutes/seconds part is not always present). The air date, or a higher resolution release date for an item, depending on type. For example, episodes usually have air date like 1979-08-10 (we don't use epoch seconds because media existed prior to 1970). In some cases, recorded over-the-air content has higher resolution air date which includes a time component. Albums and movies may have day-resolution release dates as well. | 2022-12-14 | | `originalTitle` | *string* | :heavy_minus_sign: | When present, used to indicate an item's original title, e.g. a movie's foreign title. | | | `parentGuid` | *string* | :heavy_minus_sign: | The GUID of the parent media item. | plex://show/5d9c081b170e24001f2a7be4 | | `parentHero` | *string* | :heavy_minus_sign: | The `hero` of the parent | | @@ -258,16 +257,16 @@ let value: Metadata = { | `primaryExtraKey` | *string* | :heavy_minus_sign: | Indicates that the item has a primary extra; for a movie, this is a trailer, and for a music track it is a music video. The URL points to the metadata details endpoint for the item. | | | `prompt` | *string* | :heavy_minus_sign: | Prompt to give the user for this directory (such as `Search Movies`) | | | `rating` | *number* | :heavy_minus_sign: | When present, the rating for the item. The exact meaning and representation depends on where the rating was sourced from. | | -| `ratingArray` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `ratingArray` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `ratingCount` | *number* | :heavy_minus_sign: | Number of ratings under this metadata | | | `ratingImage` | *string* | :heavy_minus_sign: | When present, indicates an image to be shown with the rating. This is passed back as a small set of defined URI values, e.g. rottentomatoes://image.rating.rotten. | | | `ratingKey` | *string* | :heavy_minus_sign: | This is the opaque string to be passed into timeline, scrobble, and rating endpoints to identify them. While it often appears to be numeric, this is not guaranteed. | | -| `role` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `role` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `search` | *boolean* | :heavy_minus_sign: | Indicates this is a search directory | | | `secondary` | *boolean* | :heavy_minus_sign: | Used by old clients to provide nested menus allowing for primative (but structured) navigation. | | | `skipChildren` | *boolean* | :heavy_minus_sign: | When found on a show item, indicates that the children (seasons) should be skipped in favor of the grandchildren (episodes). Useful for mini-series, etc. | | | `skipParent` | *boolean* | :heavy_minus_sign: | When present on an episode or track item, indicates parent should be skipped in favor of grandparent (show). | | -| `sort` | [shared.Sort](../../../sdk/models/shared/sort.md)[] | :heavy_minus_sign: | Typically only seen in metadata at a library's top level | | +| `sort` | [shared.Sort](../../models/shared/sort.md)[] | :heavy_minus_sign: | Typically only seen in metadata at a library's top level | | | `studio` | *string* | :heavy_minus_sign: | When present, the studio or label which produced an item (e.g. movie studio for movies, record label for albums). | | | `subtype` | *string* | :heavy_minus_sign: | The subtype of the video item, such as `photo` when the video item is in a photo library | | | `summary` | *string* | :heavy_minus_sign: | When present, the extended textual information about the item (e.g. movie plot, artist biography, album review). | | @@ -280,8 +279,8 @@ let value: Metadata = { | `viewCount` | *number* | :heavy_minus_sign: | When a users has completed watched or listened to an item, this attribute contains the number of consumptions. | | | `viewedLeafCount` | *number* | :heavy_minus_sign: | For shows and seasons, contains the number of viewed episodes. | | | `viewOffset` | *number* | :heavy_minus_sign: | When a user is in the process of viewing or listening to this item, this attribute contains the current offset, in units of milliseconds. | | -| `writer` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `writer` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `year` | *number* | :heavy_minus_sign: | When present, the year associated with the item's release (e.g. release year for a movie). | | -| `processingState` | [operations.ProcessingState](../../../sdk/models/operations/processingstate.md) | :heavy_minus_sign: | The state of processing if this generator is part of an optimizer playlist | | -| `processingStateContext` | [operations.ProcessingStateContext](../../../sdk/models/operations/processingstatecontext.md) | :heavy_minus_sign: | The error which could have occurred (or `good`) | | +| `processingState` | [operations.ProcessingState](../../models/operations/processingstate.md) | :heavy_minus_sign: | The state of processing if this generator is part of an optimizer playlist | | +| `processingStateContext` | [operations.ProcessingStateContext](../../models/operations/processingstatecontext.md) | :heavy_minus_sign: | The error which could have occurred (or `good`) | | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/operations/modifydeviceglobals.md b/docs/models/operations/modifydeviceglobals.md similarity index 96% rename from docs/sdk/models/operations/modifydeviceglobals.md rename to docs/models/operations/modifydeviceglobals.md index fdeadcf9..96277dd4 100644 --- a/docs/sdk/models/operations/modifydeviceglobals.md +++ b/docs/models/operations/modifydeviceglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ModifyDeviceGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { ModifyDeviceGlobals } from "@lukehagar/plexjs/models/operations"; let value: ModifyDeviceGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: ModifyDeviceGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/modifydevicemediacontainer.md b/docs/models/operations/modifydevicemediacontainer.md similarity index 98% rename from docs/sdk/models/operations/modifydevicemediacontainer.md rename to docs/models/operations/modifydevicemediacontainer.md index d701c153..d9c4f1f0 100644 --- a/docs/sdk/models/operations/modifydevicemediacontainer.md +++ b/docs/models/operations/modifydevicemediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { ModifyDeviceMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { ModifyDeviceMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: ModifyDeviceMediaContainer = {}; ``` diff --git a/docs/sdk/models/operations/modifydevicerequest.md b/docs/models/operations/modifydevicerequest.md similarity index 94% rename from docs/sdk/models/operations/modifydevicerequest.md rename to docs/models/operations/modifydevicerequest.md index fa732f9b..37a7f4d9 100644 --- a/docs/sdk/models/operations/modifydevicerequest.md +++ b/docs/models/operations/modifydevicerequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { ModifyDeviceRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { ModifyDeviceRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: ModifyDeviceRequest = { deviceId: 809966, @@ -16,7 +16,7 @@ let value: ModifyDeviceRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -28,4 +28,4 @@ let value: ModifyDeviceRequest = { | `deviceName` | *string* | :heavy_minus_sign: | 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 +| `enabled` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Whether to enable the device | 1 | \ No newline at end of file diff --git a/docs/models/operations/modifydeviceresponse.md b/docs/models/operations/modifydeviceresponse.md new file mode 100644 index 00000000..8c500ce2 --- /dev/null +++ b/docs/models/operations/modifydeviceresponse.md @@ -0,0 +1,30 @@ +# ModifyDeviceResponse + +## Example Usage + +```typescript +import { ModifyDeviceResponse } from "@lukehagar/plexjs/models/operations"; + +let value: ModifyDeviceResponse = { + headers: { + "key": [ + "", + ], + "key1": [ + "", + "", + ], + "key2": [ + "", + ], + }, + result: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [operations.ModifyDeviceResponseBody](../../models/operations/modifydeviceresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/modifydeviceresponsebody.md b/docs/models/operations/modifydeviceresponsebody.md new file mode 100644 index 00000000..5bfaae70 --- /dev/null +++ b/docs/models/operations/modifydeviceresponsebody.md @@ -0,0 +1,17 @@ +# ModifyDeviceResponseBody + +OK + +## Example Usage + +```typescript +import { ModifyDeviceResponseBody } from "@lukehagar/plexjs/models/operations"; + +let value: ModifyDeviceResponseBody = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.ModifyDeviceMediaContainer](../../models/operations/modifydevicemediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/modifyplaylistgeneratorglobals.md b/docs/models/operations/modifyplaylistgeneratorglobals.md similarity index 98% rename from docs/sdk/models/operations/modifyplaylistgeneratorglobals.md rename to docs/models/operations/modifyplaylistgeneratorglobals.md index 7943d97b..fa1c20ce 100644 --- a/docs/sdk/models/operations/modifyplaylistgeneratorglobals.md +++ b/docs/models/operations/modifyplaylistgeneratorglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ModifyPlaylistGeneratorGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { ModifyPlaylistGeneratorGlobals } from "@lukehagar/plexjs/models/operations"; let value: ModifyPlaylistGeneratorGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: ModifyPlaylistGeneratorGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/modifyplaylistgeneratoritem.md b/docs/models/operations/modifyplaylistgeneratoritem.md similarity index 50% rename from docs/sdk/models/operations/modifyplaylistgeneratoritem.md rename to docs/models/operations/modifyplaylistgeneratoritem.md index 9e342ee2..b7e32beb 100644 --- a/docs/sdk/models/operations/modifyplaylistgeneratoritem.md +++ b/docs/models/operations/modifyplaylistgeneratoritem.md @@ -8,7 +8,7 @@ Item[type]=42&Item[title]=Jack-Jack Attack&Item[target]=&Item[targetTagID]=1&Ite ## Example Usage ```typescript -import { ModifyPlaylistGeneratorItem, ModifyPlaylistGeneratorScope } from "@lukehagar/plexjs/sdk/models/operations"; +import { ModifyPlaylistGeneratorItem, ModifyPlaylistGeneratorScope } from "@lukehagar/plexjs/models/operations"; let value: ModifyPlaylistGeneratorItem = { location: { @@ -29,12 +29,12 @@ let value: ModifyPlaylistGeneratorItem = { ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | -| `location` | [operations.ModifyPlaylistGeneratorLocation](../../../sdk/models/operations/modifyplaylistgeneratorlocation.md) | :heavy_minus_sign: | N/A | -| `locationID` | *number* | :heavy_minus_sign: | N/A | -| `policy` | [operations.ModifyPlaylistGeneratorPolicy](../../../sdk/models/operations/modifyplaylistgeneratorpolicy.md) | :heavy_minus_sign: | N/A | -| `target` | *string* | :heavy_minus_sign: | N/A | -| `targetTagID` | *number* | :heavy_minus_sign: | N/A | -| `title` | *string* | :heavy_minus_sign: | N/A | -| `type` | *number* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `location` | [operations.ModifyPlaylistGeneratorLocation](../../models/operations/modifyplaylistgeneratorlocation.md) | :heavy_minus_sign: | N/A | +| `locationID` | *number* | :heavy_minus_sign: | N/A | +| `policy` | [operations.ModifyPlaylistGeneratorPolicy](../../models/operations/modifyplaylistgeneratorpolicy.md) | :heavy_minus_sign: | N/A | +| `target` | *string* | :heavy_minus_sign: | N/A | +| `targetTagID` | *number* | :heavy_minus_sign: | N/A | +| `title` | *string* | :heavy_minus_sign: | N/A | +| `type` | *number* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/modifyplaylistgeneratorlocation.md b/docs/models/operations/modifyplaylistgeneratorlocation.md similarity index 94% rename from docs/sdk/models/operations/modifyplaylistgeneratorlocation.md rename to docs/models/operations/modifyplaylistgeneratorlocation.md index 6982db32..c44d4a95 100644 --- a/docs/sdk/models/operations/modifyplaylistgeneratorlocation.md +++ b/docs/models/operations/modifyplaylistgeneratorlocation.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ModifyPlaylistGeneratorLocation } from "@lukehagar/plexjs/sdk/models/operations"; +import { ModifyPlaylistGeneratorLocation } from "@lukehagar/plexjs/models/operations"; let value: ModifyPlaylistGeneratorLocation = {}; ``` diff --git a/docs/models/operations/modifyplaylistgeneratorpolicy.md b/docs/models/operations/modifyplaylistgeneratorpolicy.md new file mode 100644 index 00000000..5d321a65 --- /dev/null +++ b/docs/models/operations/modifyplaylistgeneratorpolicy.md @@ -0,0 +1,20 @@ +# ModifyPlaylistGeneratorPolicy + +## Example Usage + +```typescript +import { ModifyPlaylistGeneratorPolicy } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; + +let value: ModifyPlaylistGeneratorPolicy = { + unwatched: BoolInt.True, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `value` | *number* | :heavy_minus_sign: | N/A | | +| `scope` | [operations.ModifyPlaylistGeneratorScope](../../models/operations/modifyplaylistgeneratorscope.md) | :heavy_minus_sign: | N/A | | +| `unwatched` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | N/A | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/modifyplaylistgeneratorrequest.md b/docs/models/operations/modifyplaylistgeneratorrequest.md similarity index 99% rename from docs/sdk/models/operations/modifyplaylistgeneratorrequest.md rename to docs/models/operations/modifyplaylistgeneratorrequest.md index 3ebebeda..36831728 100644 --- a/docs/sdk/models/operations/modifyplaylistgeneratorrequest.md +++ b/docs/models/operations/modifyplaylistgeneratorrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ModifyPlaylistGeneratorRequest, ModifyPlaylistGeneratorScope } from "@lukehagar/plexjs/sdk/models/operations"; +import { ModifyPlaylistGeneratorRequest, ModifyPlaylistGeneratorScope } from "@lukehagar/plexjs/models/operations"; let value: ModifyPlaylistGeneratorRequest = { playlistId: 314072, @@ -30,7 +30,7 @@ let value: ModifyPlaylistGeneratorRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -43,4 +43,4 @@ let value: ModifyPlaylistGeneratorRequest = { | `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 +| `item` | [operations.ModifyPlaylistGeneratorItem](../../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/modifyplaylistgeneratorscope.md b/docs/models/operations/modifyplaylistgeneratorscope.md similarity index 92% rename from docs/sdk/models/operations/modifyplaylistgeneratorscope.md rename to docs/models/operations/modifyplaylistgeneratorscope.md index 9b84537a..dcbf3963 100644 --- a/docs/sdk/models/operations/modifyplaylistgeneratorscope.md +++ b/docs/models/operations/modifyplaylistgeneratorscope.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ModifyPlaylistGeneratorScope } from "@lukehagar/plexjs/sdk/models/operations"; +import { ModifyPlaylistGeneratorScope } from "@lukehagar/plexjs/models/operations"; let value: ModifyPlaylistGeneratorScope = ModifyPlaylistGeneratorScope.All; ``` diff --git a/docs/sdk/models/operations/movecollectionitemglobals.md b/docs/models/operations/movecollectionitemglobals.md similarity index 96% rename from docs/sdk/models/operations/movecollectionitemglobals.md rename to docs/models/operations/movecollectionitemglobals.md index fe68fb96..3d2ae860 100644 --- a/docs/sdk/models/operations/movecollectionitemglobals.md +++ b/docs/models/operations/movecollectionitemglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { MoveCollectionItemGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { MoveCollectionItemGlobals } from "@lukehagar/plexjs/models/operations"; let value: MoveCollectionItemGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: MoveCollectionItemGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/movecollectionitemrequest.md b/docs/models/operations/movecollectionitemrequest.md similarity index 97% rename from docs/sdk/models/operations/movecollectionitemrequest.md rename to docs/models/operations/movecollectionitemrequest.md index 1bb4ee75..69bc0da7 100644 --- a/docs/sdk/models/operations/movecollectionitemrequest.md +++ b/docs/models/operations/movecollectionitemrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { MoveCollectionItemRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { MoveCollectionItemRequest } from "@lukehagar/plexjs/models/operations"; let value: MoveCollectionItemRequest = { collectionId: 681558, @@ -15,7 +15,7 @@ let value: MoveCollectionItemRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/movehubglobals.md b/docs/models/operations/movehubglobals.md similarity index 97% rename from docs/sdk/models/operations/movehubglobals.md rename to docs/models/operations/movehubglobals.md index 4506b784..61b1e992 100644 --- a/docs/sdk/models/operations/movehubglobals.md +++ b/docs/models/operations/movehubglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { MoveHubGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { MoveHubGlobals } from "@lukehagar/plexjs/models/operations"; let value: MoveHubGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: MoveHubGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/movehubrequest.md b/docs/models/operations/movehubrequest.md similarity index 97% rename from docs/sdk/models/operations/movehubrequest.md rename to docs/models/operations/movehubrequest.md index aefb1c81..8c165563 100644 --- a/docs/sdk/models/operations/movehubrequest.md +++ b/docs/models/operations/movehubrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { MoveHubRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { MoveHubRequest } from "@lukehagar/plexjs/models/operations"; let value: MoveHubRequest = { sectionId: 417654, @@ -15,7 +15,7 @@ let value: MoveHubRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/movehubresponse.md b/docs/models/operations/movehubresponse.md new file mode 100644 index 00000000..02b636c8 --- /dev/null +++ b/docs/models/operations/movehubresponse.md @@ -0,0 +1,30 @@ +# MoveHubResponse + +## Example Usage + +```typescript +import { MoveHubResponse } from "@lukehagar/plexjs/models/operations"; + +let value: MoveHubResponse = { + headers: { + "key": [ + "", + "", + "", + ], + "key1": [ + "", + "", + "", + ], + }, + result: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [shared.GetResponses200](../../models/shared/getresponses200.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/moveplaylistitemglobals.md b/docs/models/operations/moveplaylistitemglobals.md similarity index 96% rename from docs/sdk/models/operations/moveplaylistitemglobals.md rename to docs/models/operations/moveplaylistitemglobals.md index 3d54a305..e351d224 100644 --- a/docs/sdk/models/operations/moveplaylistitemglobals.md +++ b/docs/models/operations/moveplaylistitemglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { MovePlaylistItemGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { MovePlaylistItemGlobals } from "@lukehagar/plexjs/models/operations"; let value: MovePlaylistItemGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: MovePlaylistItemGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/moveplaylistitemrequest.md b/docs/models/operations/moveplaylistitemrequest.md similarity index 98% rename from docs/sdk/models/operations/moveplaylistitemrequest.md rename to docs/models/operations/moveplaylistitemrequest.md index 03a91301..cdce1f1c 100644 --- a/docs/sdk/models/operations/moveplaylistitemrequest.md +++ b/docs/models/operations/moveplaylistitemrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { MovePlaylistItemRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { MovePlaylistItemRequest } from "@lukehagar/plexjs/models/operations"; let value: MovePlaylistItemRequest = { playlistId: 132421, @@ -15,7 +15,7 @@ let value: MovePlaylistItemRequest = { | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/moveplayqueueitemglobals.md b/docs/models/operations/moveplayqueueitemglobals.md similarity index 96% rename from docs/sdk/models/operations/moveplayqueueitemglobals.md rename to docs/models/operations/moveplayqueueitemglobals.md index 3d368297..ae500e7f 100644 --- a/docs/sdk/models/operations/moveplayqueueitemglobals.md +++ b/docs/models/operations/moveplayqueueitemglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { MovePlayQueueItemGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { MovePlayQueueItemGlobals } from "@lukehagar/plexjs/models/operations"; let value: MovePlayQueueItemGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: MovePlayQueueItemGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/moveplayqueueitemrequest.md b/docs/models/operations/moveplayqueueitemrequest.md similarity index 97% rename from docs/sdk/models/operations/moveplayqueueitemrequest.md rename to docs/models/operations/moveplayqueueitemrequest.md index 44837d05..69b7c449 100644 --- a/docs/sdk/models/operations/moveplayqueueitemrequest.md +++ b/docs/models/operations/moveplayqueueitemrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { MovePlayQueueItemRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { MovePlayQueueItemRequest } from "@lukehagar/plexjs/models/operations"; let value: MovePlayQueueItemRequest = { playQueueId: 852964, @@ -15,7 +15,7 @@ let value: MovePlayQueueItemRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/optimizedatabaseglobals.md b/docs/models/operations/optimizedatabaseglobals.md similarity index 96% rename from docs/sdk/models/operations/optimizedatabaseglobals.md rename to docs/models/operations/optimizedatabaseglobals.md index d24a70a0..0337466b 100644 --- a/docs/sdk/models/operations/optimizedatabaseglobals.md +++ b/docs/models/operations/optimizedatabaseglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { OptimizeDatabaseGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { OptimizeDatabaseGlobals } from "@lukehagar/plexjs/models/operations"; let value: OptimizeDatabaseGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: OptimizeDatabaseGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/optimizedatabaserequest.md b/docs/models/operations/optimizedatabaserequest.md similarity index 94% rename from docs/sdk/models/operations/optimizedatabaserequest.md rename to docs/models/operations/optimizedatabaserequest.md index 89568254..db709b49 100644 --- a/docs/sdk/models/operations/optimizedatabaserequest.md +++ b/docs/models/operations/optimizedatabaserequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { OptimizeDatabaseRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { OptimizeDatabaseRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: OptimizeDatabaseRequest = { async: BoolInt.True, @@ -15,7 +15,7 @@ let value: OptimizeDatabaseRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -26,4 +26,4 @@ let value: OptimizeDatabaseRequest = { | `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | | `deviceName` | *string* | :heavy_minus_sign: | 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 +| `async` | [shared.BoolInt](../../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/models/operations/owned.md b/docs/models/operations/owned.md new file mode 100644 index 00000000..178d8087 --- /dev/null +++ b/docs/models/operations/owned.md @@ -0,0 +1,21 @@ +# Owned + +Indicates if the user owns the server. + +## Example Usage + +```typescript +import { Owned } from "@lukehagar/plexjs/models/operations"; + +let value: Owned = Owned.Enable; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Disable` | 0 | +| `Enable` | 1 | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/sdk/models/operations/params.md b/docs/models/operations/params.md similarity index 86% rename from docs/sdk/models/operations/params.md rename to docs/models/operations/params.md index 9e07dede..ff6f9282 100644 --- a/docs/sdk/models/operations/params.md +++ b/docs/models/operations/params.md @@ -8,7 +8,7 @@ Subscription parameters. ## Example Usage ```typescript -import { Params } from "@lukehagar/plexjs/sdk/models/operations"; +import { Params } from "@lukehagar/plexjs/models/operations"; let value: Params = {}; ``` diff --git a/docs/models/operations/pastsubscription.md b/docs/models/operations/pastsubscription.md new file mode 100644 index 00000000..3c3b27c4 --- /dev/null +++ b/docs/models/operations/pastsubscription.md @@ -0,0 +1,41 @@ +# PastSubscription + +## Example Usage + +```typescript +import { PastSubscription, PostUsersSignInDataState } from "@lukehagar/plexjs/models/operations"; + +let value: PastSubscription = { + id: "", + mode: "", + renewsAt: 1556281940, + endsAt: 1556281940, + type: "plexpass", + transfer: "", + state: PostUsersSignInDataState.Ended, + billing: { + internalPaymentMethod: {}, + paymentMethodId: 793427, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `id` | *string* | :heavy_check_mark: | N/A | | +| `mode` | *string* | :heavy_check_mark: | N/A | | +| `renewsAt` | *number* | :heavy_check_mark: | N/A | 1556281940 | +| `endsAt` | *number* | :heavy_check_mark: | N/A | 1556281940 | +| `canceled` | *boolean* | :heavy_minus_sign: | N/A | false | +| `gracePeriod` | *boolean* | :heavy_minus_sign: | N/A | false | +| `onHold` | *boolean* | :heavy_minus_sign: | N/A | false | +| `canReactivate` | *boolean* | :heavy_minus_sign: | N/A | false | +| `canUpgrade` | *boolean* | :heavy_minus_sign: | N/A | false | +| `canDowngrade` | *boolean* | :heavy_minus_sign: | N/A | false | +| `canConvert` | *boolean* | :heavy_minus_sign: | N/A | false | +| `type` | *string* | :heavy_check_mark: | N/A | plexpass | +| `transfer` | *string* | :heavy_check_mark: | N/A | | +| `state` | [operations.PostUsersSignInDataState](../../models/operations/postuserssignindatastate.md) | :heavy_check_mark: | N/A | ended | +| `billing` | [operations.Billing](../../models/operations/billing.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/pending.md b/docs/models/operations/pending.md new file mode 100644 index 00000000..81d540c4 --- /dev/null +++ b/docs/models/operations/pending.md @@ -0,0 +1,21 @@ +# Pending + +Indicates if the server is pending approval. + +## Example Usage + +```typescript +import { Pending } from "@lukehagar/plexjs/models/operations"; + +let value: Pending = Pending.Enable; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Disable` | 0 | +| `Enable` | 1 | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/sdk/models/operations/playlisttype.md b/docs/models/operations/playlisttype.md similarity index 77% rename from docs/sdk/models/operations/playlisttype.md rename to docs/models/operations/playlisttype.md index 8534d3d6..836e0c60 100644 --- a/docs/sdk/models/operations/playlisttype.md +++ b/docs/models/operations/playlisttype.md @@ -5,7 +5,7 @@ Limit to a type of playlist ## Example Usage ```typescript -import { PlaylistType } from "@lukehagar/plexjs/sdk/models/operations"; +import { PlaylistType } from "@lukehagar/plexjs/models/operations"; let value: PlaylistType = PlaylistType.Video; ``` diff --git a/docs/sdk/models/operations/playqueuegenerator.md b/docs/models/operations/playqueuegenerator.md similarity index 95% rename from docs/sdk/models/operations/playqueuegenerator.md rename to docs/models/operations/playqueuegenerator.md index 63466f3a..e8cb04a0 100644 --- a/docs/sdk/models/operations/playqueuegenerator.md +++ b/docs/models/operations/playqueuegenerator.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PlayQueueGenerator } from "@lukehagar/plexjs/sdk/models/operations"; +import { PlayQueueGenerator } from "@lukehagar/plexjs/models/operations"; let value: PlayQueueGenerator = {}; ``` @@ -16,6 +16,6 @@ let value: PlayQueueGenerator = {}; | `createdAt` | *number* | :heavy_minus_sign: | N/A | | `id` | *number* | :heavy_minus_sign: | N/A | | `playlistID` | *number* | :heavy_minus_sign: | N/A | -| `type` | [operations.GetPlaylistGeneratorsType](../../../sdk/models/operations/getplaylistgeneratorstype.md) | :heavy_minus_sign: | The type of playlist generator.

- -1: A smart playlist generator
- 42: A optimized version generator
| +| `type` | [operations.GetPlaylistGeneratorsType](../../models/operations/getplaylistgeneratorstype.md) | :heavy_minus_sign: | The type of playlist generator.

- -1: A smart playlist generator
- 42: A optimized version generator
| | `updatedAt` | *number* | :heavy_minus_sign: | N/A | | `uri` | *string* | :heavy_minus_sign: | The URI indicating the search for this generator | \ No newline at end of file diff --git a/docs/sdk/models/operations/postuserssignindatabadrequesterror.md b/docs/models/operations/postuserssignindatabadrequesterror.md similarity index 97% rename from docs/sdk/models/operations/postuserssignindatabadrequesterror.md rename to docs/models/operations/postuserssignindatabadrequesterror.md index c4bf735b..9f9beffa 100644 --- a/docs/sdk/models/operations/postuserssignindatabadrequesterror.md +++ b/docs/models/operations/postuserssignindatabadrequesterror.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PostUsersSignInDataBadRequestError } from "@lukehagar/plexjs/sdk/models/operations"; +import { PostUsersSignInDataBadRequestError } from "@lukehagar/plexjs/models/operations"; let value: PostUsersSignInDataBadRequestError = { code: 1000, diff --git a/docs/sdk/models/operations/postuserssignindataglobals.md b/docs/models/operations/postuserssignindataglobals.md similarity index 96% rename from docs/sdk/models/operations/postuserssignindataglobals.md rename to docs/models/operations/postuserssignindataglobals.md index 9b033650..c03ffbd8 100644 --- a/docs/sdk/models/operations/postuserssignindataglobals.md +++ b/docs/models/operations/postuserssignindataglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PostUsersSignInDataGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { PostUsersSignInDataGlobals } from "@lukehagar/plexjs/models/operations"; let value: PostUsersSignInDataGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: PostUsersSignInDataGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/postuserssignindatarequest.md b/docs/models/operations/postuserssignindatarequest.md new file mode 100644 index 00000000..4db28025 --- /dev/null +++ b/docs/models/operations/postuserssignindatarequest.md @@ -0,0 +1,26 @@ +# PostUsersSignInDataRequest + +## Example Usage + +```typescript +import { PostUsersSignInDataRequest } from "@lukehagar/plexjs/models/operations"; + +let value: PostUsersSignInDataRequest = {}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `requestBody` | [operations.PostUsersSignInDataRequestBody](../../models/operations/postuserssignindatarequestbody.md) | :heavy_minus_sign: | Login credentials | | \ No newline at end of file diff --git a/docs/sdk/models/operations/postuserssignindatarequestbody.md b/docs/models/operations/postuserssignindatarequestbody.md similarity index 97% rename from docs/sdk/models/operations/postuserssignindatarequestbody.md rename to docs/models/operations/postuserssignindatarequestbody.md index 2cdb434b..83c8ce4d 100644 --- a/docs/sdk/models/operations/postuserssignindatarequestbody.md +++ b/docs/models/operations/postuserssignindatarequestbody.md @@ -5,7 +5,7 @@ Login credentials ## Example Usage ```typescript -import { PostUsersSignInDataRequestBody } from "@lukehagar/plexjs/sdk/models/operations"; +import { PostUsersSignInDataRequestBody } from "@lukehagar/plexjs/models/operations"; let value: PostUsersSignInDataRequestBody = { login: "username@email.com", diff --git a/docs/sdk/models/operations/postuserssignindatastate.md b/docs/models/operations/postuserssignindatastate.md similarity index 84% rename from docs/sdk/models/operations/postuserssignindatastate.md rename to docs/models/operations/postuserssignindatastate.md index 33aed12a..cebcfaae 100644 --- a/docs/sdk/models/operations/postuserssignindatastate.md +++ b/docs/models/operations/postuserssignindatastate.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PostUsersSignInDataState } from "@lukehagar/plexjs/sdk/models/operations"; +import { PostUsersSignInDataState } from "@lukehagar/plexjs/models/operations"; let value: PostUsersSignInDataState = PostUsersSignInDataState.Ended; ``` diff --git a/docs/sdk/models/operations/postuserssignindataunauthorizederror.md b/docs/models/operations/postuserssignindataunauthorizederror.md similarity index 97% rename from docs/sdk/models/operations/postuserssignindataunauthorizederror.md rename to docs/models/operations/postuserssignindataunauthorizederror.md index 6dc5eab0..564d8905 100644 --- a/docs/sdk/models/operations/postuserssignindataunauthorizederror.md +++ b/docs/models/operations/postuserssignindataunauthorizederror.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PostUsersSignInDataUnauthorizedError } from "@lukehagar/plexjs/sdk/models/operations"; +import { PostUsersSignInDataUnauthorizedError } from "@lukehagar/plexjs/models/operations"; let value: PostUsersSignInDataUnauthorizedError = { code: 1001, diff --git a/docs/models/operations/processingstate.md b/docs/models/operations/processingstate.md new file mode 100644 index 00000000..f7335e52 --- /dev/null +++ b/docs/models/operations/processingstate.md @@ -0,0 +1,25 @@ +# ProcessingState + +The state of processing if this generator is part of an optimizer playlist + +## Example Usage + +```typescript +import { ProcessingState } from "@lukehagar/plexjs/models/operations"; + +let value: ProcessingState = ProcessingState.Disabled; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Processed` | processed | +| `Completed` | completed | +| `Tombstoned` | tombstoned | +| `Disabled` | disabled | +| `Error` | error | +| `Pending` | pending | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/sdk/models/operations/processingstatecontext.md b/docs/models/operations/processingstatecontext.md similarity index 76% rename from docs/sdk/models/operations/processingstatecontext.md rename to docs/models/operations/processingstatecontext.md index 1c477779..b12e155e 100644 --- a/docs/sdk/models/operations/processingstatecontext.md +++ b/docs/models/operations/processingstatecontext.md @@ -5,13 +5,15 @@ The error which could have occurred (or `good`) ## Example Usage ```typescript -import { ProcessingStateContext } from "@lukehagar/plexjs/sdk/models/operations"; +import { ProcessingStateContext } from "@lukehagar/plexjs/models/operations"; let value: ProcessingStateContext = ProcessingStateContext.Good; ``` ## Values +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + | Name | Value | | ------------------------- | ------------------------- | | `Good` | good | @@ -25,4 +27,5 @@ let value: ProcessingStateContext = ProcessingStateContext.Good; | `DownloadFailed` | downloadFailed | | `AccessDenied` | accessDenied | | `CannotTranscode` | cannotTranscode | -| `CodecInstallError` | codecInstallError | \ No newline at end of file +| `CodecInstallError` | codecInstallError | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/models/operations/processsubscriptionsresponse.md b/docs/models/operations/processsubscriptionsresponse.md new file mode 100644 index 00000000..1e6f3ed7 --- /dev/null +++ b/docs/models/operations/processsubscriptionsresponse.md @@ -0,0 +1,24 @@ +# ProcessSubscriptionsResponse + +## Example Usage + +```typescript +import { ProcessSubscriptionsResponse } from "@lukehagar/plexjs/models/operations"; + +let value: ProcessSubscriptionsResponse = { + headers: { + "key": [], + "key1": [ + "", + "", + "", + ], + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------- | -------------------------- | -------------------------- | -------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/protected.md b/docs/models/operations/protected.md new file mode 100644 index 00000000..d485943b --- /dev/null +++ b/docs/models/operations/protected.md @@ -0,0 +1,21 @@ +# Protected + +Indicates whether the account is protected. + +## Example Usage + +```typescript +import { Protected } from "@lukehagar/plexjs/models/operations"; + +let value: Protected = Protected.Enable; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Disable` | 0 | +| `Enable` | 1 | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/models/operations/recommendationsvisibility.md b/docs/models/operations/recommendationsvisibility.md new file mode 100644 index 00000000..b859892d --- /dev/null +++ b/docs/models/operations/recommendationsvisibility.md @@ -0,0 +1,28 @@ +# RecommendationsVisibility + +The visibility of this hub in recommendations: + - all: Visible to all users + - none: Visible to no users + - admin: Visible to only admin users + - shared: Visible to shared users + + +## Example Usage + +```typescript +import { RecommendationsVisibility } from "@lukehagar/plexjs/models/operations"; + +let value: RecommendationsVisibility = RecommendationsVisibility.Admin; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `All` | all | +| `None` | none | +| `Admin` | admin | +| `Shared` | shared | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/sdk/models/operations/refreshitemsmetadataglobals.md b/docs/models/operations/refreshitemsmetadataglobals.md similarity index 96% rename from docs/sdk/models/operations/refreshitemsmetadataglobals.md rename to docs/models/operations/refreshitemsmetadataglobals.md index 66ad7e90..b7aa7407 100644 --- a/docs/sdk/models/operations/refreshitemsmetadataglobals.md +++ b/docs/models/operations/refreshitemsmetadataglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { RefreshItemsMetadataGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { RefreshItemsMetadataGlobals } from "@lukehagar/plexjs/models/operations"; let value: RefreshItemsMetadataGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: RefreshItemsMetadataGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/refreshitemsmetadatarequest.md b/docs/models/operations/refreshitemsmetadatarequest.md similarity index 94% rename from docs/sdk/models/operations/refreshitemsmetadatarequest.md rename to docs/models/operations/refreshitemsmetadatarequest.md index 28abc3a7..1c5c4565 100644 --- a/docs/sdk/models/operations/refreshitemsmetadatarequest.md +++ b/docs/models/operations/refreshitemsmetadatarequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { RefreshItemsMetadataRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { RefreshItemsMetadataRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: RefreshItemsMetadataRequest = { ids: "", @@ -16,7 +16,7 @@ let value: RefreshItemsMetadataRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -29,4 +29,4 @@ let value: RefreshItemsMetadataRequest = { | `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 +| `markUpdated` | [shared.BoolInt](../../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/models/operations/refreshplaylistglobals.md similarity index 96% rename from docs/sdk/models/operations/refreshplaylistglobals.md rename to docs/models/operations/refreshplaylistglobals.md index a6e5560a..5fbb6c67 100644 --- a/docs/sdk/models/operations/refreshplaylistglobals.md +++ b/docs/models/operations/refreshplaylistglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { RefreshPlaylistGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { RefreshPlaylistGlobals } from "@lukehagar/plexjs/models/operations"; let value: RefreshPlaylistGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: RefreshPlaylistGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/refreshplaylistrequest.md b/docs/models/operations/refreshplaylistrequest.md similarity index 97% rename from docs/sdk/models/operations/refreshplaylistrequest.md rename to docs/models/operations/refreshplaylistrequest.md index bef5ad90..91046720 100644 --- a/docs/sdk/models/operations/refreshplaylistrequest.md +++ b/docs/models/operations/refreshplaylistrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Action, RefreshPlaylistRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { Action, RefreshPlaylistRequest } from "@lukehagar/plexjs/models/operations"; let value: RefreshPlaylistRequest = { playlistId: 711896, @@ -17,7 +17,7 @@ let value: RefreshPlaylistRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -31,4 +31,4 @@ let value: RefreshPlaylistRequest = { | `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 | | -| `action` | [operations.Action](../../../sdk/models/operations/action.md) | :heavy_check_mark: | The action to perform for this item on this optimizer queue | | \ No newline at end of file +| `action` | [operations.Action](../../models/operations/action.md) | :heavy_check_mark: | The action to perform for this item on this optimizer queue | | \ No newline at end of file diff --git a/docs/sdk/models/operations/refreshsectionglobals.md b/docs/models/operations/refreshsectionglobals.md similarity index 96% rename from docs/sdk/models/operations/refreshsectionglobals.md rename to docs/models/operations/refreshsectionglobals.md index 36672e7d..dbff9d7a 100644 --- a/docs/sdk/models/operations/refreshsectionglobals.md +++ b/docs/models/operations/refreshsectionglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { RefreshSectionGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { RefreshSectionGlobals } from "@lukehagar/plexjs/models/operations"; let value: RefreshSectionGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: RefreshSectionGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/refreshsectionrequest.md b/docs/models/operations/refreshsectionrequest.md similarity index 97% rename from docs/sdk/models/operations/refreshsectionrequest.md rename to docs/models/operations/refreshsectionrequest.md index 0377560e..f35ef212 100644 --- a/docs/sdk/models/operations/refreshsectionrequest.md +++ b/docs/models/operations/refreshsectionrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { RefreshSectionRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { RefreshSectionRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: RefreshSectionRequest = { sectionId: 201663, @@ -16,7 +16,7 @@ let value: RefreshSectionRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -28,5 +28,5 @@ let value: RefreshSectionRequest = { | `deviceName` | *string* | :heavy_minus_sign: | 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 | +| `force` | [shared.BoolInt](../../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/models/operations/refreshsectionsmetadataglobals.md similarity index 98% rename from docs/sdk/models/operations/refreshsectionsmetadataglobals.md rename to docs/models/operations/refreshsectionsmetadataglobals.md index a2c5f5de..f1918dc0 100644 --- a/docs/sdk/models/operations/refreshsectionsmetadataglobals.md +++ b/docs/models/operations/refreshsectionsmetadataglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { RefreshSectionsMetadataGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { RefreshSectionsMetadataGlobals } from "@lukehagar/plexjs/models/operations"; let value: RefreshSectionsMetadataGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: RefreshSectionsMetadataGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/refreshsectionsmetadatarequest.md b/docs/models/operations/refreshsectionsmetadatarequest.md similarity index 98% rename from docs/sdk/models/operations/refreshsectionsmetadatarequest.md rename to docs/models/operations/refreshsectionsmetadatarequest.md index 86d2731b..650ce238 100644 --- a/docs/sdk/models/operations/refreshsectionsmetadatarequest.md +++ b/docs/models/operations/refreshsectionsmetadatarequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { RefreshSectionsMetadataRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { RefreshSectionsMetadataRequest } from "@lukehagar/plexjs/models/operations"; let value: RefreshSectionsMetadataRequest = {}; ``` @@ -12,7 +12,7 @@ let value: RefreshSectionsMetadataRequest = {}; | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/release.md b/docs/models/operations/release.md similarity index 99% rename from docs/sdk/models/operations/release.md rename to docs/models/operations/release.md index 478d2869..c85e0321 100644 --- a/docs/sdk/models/operations/release.md +++ b/docs/models/operations/release.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Release } from "@lukehagar/plexjs/sdk/models/operations"; +import { Release } from "@lukehagar/plexjs/models/operations"; let value: Release = {}; ``` @@ -16,5 +16,5 @@ let value: Release = {}; | `downloadURL` | *string* | :heavy_minus_sign: | The URL of where this update is available | | `fixed` | *string* | :heavy_minus_sign: | A list of what has been fixed in this version | | `key` | *string* | :heavy_minus_sign: | The URL key of the update | -| `state` | [operations.GetUpdatesStatusState](../../../sdk/models/operations/getupdatesstatusstate.md) | :heavy_minus_sign: | The status of this update.

- available - This release is available
- downloading - This release is downloading
- downloaded - This release has been downloaded
- installing - This release is installing
- tonight - This release will be installed tonight
- skipped - This release has been skipped
- error - This release has an error
- notify - This release is only notifying it is available (typically because it cannot be installed on this setup)
- done - This release is complete
| +| `state` | [operations.GetUpdatesStatusState](../../models/operations/getupdatesstatusstate.md) | :heavy_minus_sign: | The status of this update.

- available - This release is available
- downloading - This release is downloading
- downloaded - This release has been downloaded
- installing - This release is installing
- tonight - This release will be installed tonight
- skipped - This release has been skipped
- error - This release has an error
- notify - This release is only notifying it is available (typically because it cannot be installed on this setup)
- done - This release is complete
| | `version` | *string* | :heavy_minus_sign: | The version available | \ No newline at end of file diff --git a/docs/sdk/models/operations/reloadguideglobals.md b/docs/models/operations/reloadguideglobals.md similarity index 96% rename from docs/sdk/models/operations/reloadguideglobals.md rename to docs/models/operations/reloadguideglobals.md index c86a8ca0..bb314bb6 100644 --- a/docs/sdk/models/operations/reloadguideglobals.md +++ b/docs/models/operations/reloadguideglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ReloadGuideGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { ReloadGuideGlobals } from "@lukehagar/plexjs/models/operations"; let value: ReloadGuideGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: ReloadGuideGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/reloadguiderequest.md b/docs/models/operations/reloadguiderequest.md similarity index 97% rename from docs/sdk/models/operations/reloadguiderequest.md rename to docs/models/operations/reloadguiderequest.md index ac37318f..69a37a97 100644 --- a/docs/sdk/models/operations/reloadguiderequest.md +++ b/docs/models/operations/reloadguiderequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ReloadGuideRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { ReloadGuideRequest } from "@lukehagar/plexjs/models/operations"; let value: ReloadGuideRequest = { dvrId: 734107, @@ -14,7 +14,7 @@ let value: ReloadGuideRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/reloadguideresponse.md b/docs/models/operations/reloadguideresponse.md new file mode 100644 index 00000000..78160292 --- /dev/null +++ b/docs/models/operations/reloadguideresponse.md @@ -0,0 +1,23 @@ +# ReloadGuideResponse + +## Example Usage + +```typescript +import { ReloadGuideResponse } from "@lukehagar/plexjs/models/operations"; + +let value: ReloadGuideResponse = { + headers: { + "key": [ + "", + "", + "", + ], + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------- | -------------------------- | -------------------------- | -------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/removedevicefromdvrdvr.md b/docs/models/operations/removedevicefromdvrdvr.md new file mode 100644 index 00000000..6755904c --- /dev/null +++ b/docs/models/operations/removedevicefromdvrdvr.md @@ -0,0 +1,19 @@ +# RemoveDeviceFromDVRDVR + +## Example Usage + +```typescript +import { RemoveDeviceFromDVRDVR } from "@lukehagar/plexjs/models/operations"; + +let value: RemoveDeviceFromDVRDVR = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | +| `device` | [shared.Device](../../models/shared/device.md)[] | :heavy_minus_sign: | N/A | +| `key` | *string* | :heavy_minus_sign: | N/A | +| `language` | *string* | :heavy_minus_sign: | N/A | +| `lineup` | *string* | :heavy_minus_sign: | N/A | +| `uuid` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/removedevicefromdvrglobals.md b/docs/models/operations/removedevicefromdvrglobals.md similarity index 96% rename from docs/sdk/models/operations/removedevicefromdvrglobals.md rename to docs/models/operations/removedevicefromdvrglobals.md index be007b8e..ce82920d 100644 --- a/docs/sdk/models/operations/removedevicefromdvrglobals.md +++ b/docs/models/operations/removedevicefromdvrglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { RemoveDeviceFromDVRGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { RemoveDeviceFromDVRGlobals } from "@lukehagar/plexjs/models/operations"; let value: RemoveDeviceFromDVRGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: RemoveDeviceFromDVRGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/removedevicefromdvrmediacontainer.md b/docs/models/operations/removedevicefromdvrmediacontainer.md similarity index 52% rename from docs/sdk/models/operations/removedevicefromdvrmediacontainer.md rename to docs/models/operations/removedevicefromdvrmediacontainer.md index e0bd3a4e..1fb74d5c 100644 --- a/docs/sdk/models/operations/removedevicefromdvrmediacontainer.md +++ b/docs/models/operations/removedevicefromdvrmediacontainer.md @@ -3,14 +3,14 @@ ## Example Usage ```typescript -import { RemoveDeviceFromDVRMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { RemoveDeviceFromDVRMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: RemoveDeviceFromDVRMediaContainer = {}; ``` ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.RemoveDeviceFromDVRMediaContainerMediaContainer](../../../sdk/models/operations/removedevicefromdvrmediacontainermediacontainer.md) | :heavy_minus_sign: | N/A | -| `dvr` | [operations.RemoveDeviceFromDVRDVR](../../../sdk/models/operations/removedevicefromdvrdvr.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.RemoveDeviceFromDVRMediaContainerMediaContainer](../../models/operations/removedevicefromdvrmediacontainermediacontainer.md) | :heavy_minus_sign: | N/A | +| `dvr` | [operations.RemoveDeviceFromDVRDVR](../../models/operations/removedevicefromdvrdvr.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/removedevicefromdvrmediacontainermediacontainer.md b/docs/models/operations/removedevicefromdvrmediacontainermediacontainer.md similarity index 99% rename from docs/sdk/models/operations/removedevicefromdvrmediacontainermediacontainer.md rename to docs/models/operations/removedevicefromdvrmediacontainermediacontainer.md index 39ac2dd6..7330f318 100644 --- a/docs/sdk/models/operations/removedevicefromdvrmediacontainermediacontainer.md +++ b/docs/models/operations/removedevicefromdvrmediacontainermediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { RemoveDeviceFromDVRMediaContainerMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { RemoveDeviceFromDVRMediaContainerMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: RemoveDeviceFromDVRMediaContainerMediaContainer = {}; ``` diff --git a/docs/sdk/models/operations/removedevicefromdvrrequest.md b/docs/models/operations/removedevicefromdvrrequest.md similarity index 97% rename from docs/sdk/models/operations/removedevicefromdvrrequest.md rename to docs/models/operations/removedevicefromdvrrequest.md index df5f6e4e..fa27e368 100644 --- a/docs/sdk/models/operations/removedevicefromdvrrequest.md +++ b/docs/models/operations/removedevicefromdvrrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { RemoveDeviceFromDVRRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { RemoveDeviceFromDVRRequest } from "@lukehagar/plexjs/models/operations"; let value: RemoveDeviceFromDVRRequest = { dvrId: 754262, @@ -15,7 +15,7 @@ let value: RemoveDeviceFromDVRRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/removedevicefromdvrresponse.md b/docs/models/operations/removedevicefromdvrresponse.md new file mode 100644 index 00000000..a4d37487 --- /dev/null +++ b/docs/models/operations/removedevicefromdvrresponse.md @@ -0,0 +1,25 @@ +# RemoveDeviceFromDVRResponse + +## Example Usage + +```typescript +import { RemoveDeviceFromDVRResponse } from "@lukehagar/plexjs/models/operations"; + +let value: RemoveDeviceFromDVRResponse = { + headers: { + "key": [], + "key1": [], + "key2": [ + "", + ], + }, + result: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [operations.RemoveDeviceFromDVRResponseBody](../../models/operations/removedevicefromdvrresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/removedevicefromdvrresponsebody.md b/docs/models/operations/removedevicefromdvrresponsebody.md new file mode 100644 index 00000000..bdfe3c99 --- /dev/null +++ b/docs/models/operations/removedevicefromdvrresponsebody.md @@ -0,0 +1,17 @@ +# RemoveDeviceFromDVRResponseBody + +OK + +## Example Usage + +```typescript +import { RemoveDeviceFromDVRResponseBody } from "@lukehagar/plexjs/models/operations"; + +let value: RemoveDeviceFromDVRResponseBody = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `mediaContainer` | [operations.RemoveDeviceFromDVRMediaContainer](../../models/operations/removedevicefromdvrmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/removedeviceglobals.md b/docs/models/operations/removedeviceglobals.md similarity index 96% rename from docs/sdk/models/operations/removedeviceglobals.md rename to docs/models/operations/removedeviceglobals.md index 6214088f..66972efd 100644 --- a/docs/sdk/models/operations/removedeviceglobals.md +++ b/docs/models/operations/removedeviceglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { RemoveDeviceGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { RemoveDeviceGlobals } from "@lukehagar/plexjs/models/operations"; let value: RemoveDeviceGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: RemoveDeviceGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/removedevicemediacontainer.md b/docs/models/operations/removedevicemediacontainer.md similarity index 98% rename from docs/sdk/models/operations/removedevicemediacontainer.md rename to docs/models/operations/removedevicemediacontainer.md index 338c190e..06c588c3 100644 --- a/docs/sdk/models/operations/removedevicemediacontainer.md +++ b/docs/models/operations/removedevicemediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { RemoveDeviceMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { RemoveDeviceMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: RemoveDeviceMediaContainer = {}; ``` diff --git a/docs/sdk/models/operations/removedevicerequest.md b/docs/models/operations/removedevicerequest.md similarity index 97% rename from docs/sdk/models/operations/removedevicerequest.md rename to docs/models/operations/removedevicerequest.md index f578b809..de20aaa7 100644 --- a/docs/sdk/models/operations/removedevicerequest.md +++ b/docs/models/operations/removedevicerequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { RemoveDeviceRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { RemoveDeviceRequest } from "@lukehagar/plexjs/models/operations"; let value: RemoveDeviceRequest = { deviceId: 671967, @@ -14,7 +14,7 @@ let value: RemoveDeviceRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/removedeviceresponse.md b/docs/models/operations/removedeviceresponse.md new file mode 100644 index 00000000..067ddd16 --- /dev/null +++ b/docs/models/operations/removedeviceresponse.md @@ -0,0 +1,19 @@ +# RemoveDeviceResponse + +## Example Usage + +```typescript +import { RemoveDeviceResponse } from "@lukehagar/plexjs/models/operations"; + +let value: RemoveDeviceResponse = { + headers: {}, + result: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [operations.RemoveDeviceResponseBody](../../models/operations/removedeviceresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/removedeviceresponsebody.md b/docs/models/operations/removedeviceresponsebody.md new file mode 100644 index 00000000..67efd47f --- /dev/null +++ b/docs/models/operations/removedeviceresponsebody.md @@ -0,0 +1,17 @@ +# RemoveDeviceResponseBody + +OK + +## Example Usage + +```typescript +import { RemoveDeviceResponseBody } from "@lukehagar/plexjs/models/operations"; + +let value: RemoveDeviceResponseBody = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.RemoveDeviceMediaContainer](../../models/operations/removedevicemediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/removedownloadqueueitemsglobals.md b/docs/models/operations/removedownloadqueueitemsglobals.md similarity index 98% rename from docs/sdk/models/operations/removedownloadqueueitemsglobals.md rename to docs/models/operations/removedownloadqueueitemsglobals.md index e685d006..168d985a 100644 --- a/docs/sdk/models/operations/removedownloadqueueitemsglobals.md +++ b/docs/models/operations/removedownloadqueueitemsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { RemoveDownloadQueueItemsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { RemoveDownloadQueueItemsGlobals } from "@lukehagar/plexjs/models/operations"; let value: RemoveDownloadQueueItemsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: RemoveDownloadQueueItemsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/removedownloadqueueitemsrequest.md b/docs/models/operations/removedownloadqueueitemsrequest.md similarity index 98% rename from docs/sdk/models/operations/removedownloadqueueitemsrequest.md rename to docs/models/operations/removedownloadqueueitemsrequest.md index 26fda0e3..21be7442 100644 --- a/docs/sdk/models/operations/removedownloadqueueitemsrequest.md +++ b/docs/models/operations/removedownloadqueueitemsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { RemoveDownloadQueueItemsRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { RemoveDownloadQueueItemsRequest } from "@lukehagar/plexjs/models/operations"; let value: RemoveDownloadQueueItemsRequest = { queueId: 666393, @@ -19,7 +19,7 @@ let value: RemoveDownloadQueueItemsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/reordersubscriptionglobals.md b/docs/models/operations/reordersubscriptionglobals.md similarity index 96% rename from docs/sdk/models/operations/reordersubscriptionglobals.md rename to docs/models/operations/reordersubscriptionglobals.md index 0c94930e..b8957455 100644 --- a/docs/sdk/models/operations/reordersubscriptionglobals.md +++ b/docs/models/operations/reordersubscriptionglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ReorderSubscriptionGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { ReorderSubscriptionGlobals } from "@lukehagar/plexjs/models/operations"; let value: ReorderSubscriptionGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: ReorderSubscriptionGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/reordersubscriptionrequest.md b/docs/models/operations/reordersubscriptionrequest.md similarity index 97% rename from docs/sdk/models/operations/reordersubscriptionrequest.md rename to docs/models/operations/reordersubscriptionrequest.md index a47f553a..1d55c9f2 100644 --- a/docs/sdk/models/operations/reordersubscriptionrequest.md +++ b/docs/models/operations/reordersubscriptionrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ReorderSubscriptionRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { ReorderSubscriptionRequest } from "@lukehagar/plexjs/models/operations"; let value: ReorderSubscriptionRequest = { subscriptionId: 473541, @@ -14,7 +14,7 @@ let value: ReorderSubscriptionRequest = { | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/reportglobals.md b/docs/models/operations/reportglobals.md similarity index 97% rename from docs/sdk/models/operations/reportglobals.md rename to docs/models/operations/reportglobals.md index 85b93c6f..3134ad7e 100644 --- a/docs/sdk/models/operations/reportglobals.md +++ b/docs/models/operations/reportglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ReportGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { ReportGlobals } from "@lukehagar/plexjs/models/operations"; let value: ReportGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: ReportGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/reportmediacontainer.md b/docs/models/operations/reportmediacontainer.md similarity index 99% rename from docs/sdk/models/operations/reportmediacontainer.md rename to docs/models/operations/reportmediacontainer.md index cdbc7f0b..6b1ec6c2 100644 --- a/docs/sdk/models/operations/reportmediacontainer.md +++ b/docs/models/operations/reportmediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { ReportMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { ReportMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: ReportMediaContainer = { livetv: 7, @@ -76,6 +76,6 @@ let value: ReportMediaContainer = { | `updater` | *boolean* | :heavy_minus_sign: | N/A | | | `version` | *string* | :heavy_minus_sign: | N/A | | | `voiceSearch` | *boolean* | :heavy_minus_sign: | N/A | | -| `bandwidths` | [operations.Bandwidths](../../../sdk/models/operations/bandwidths.md) | :heavy_minus_sign: | A list of media times and bandwidths when trascoding is using with auto adjustment of bandwidth | | +| `bandwidths` | [operations.Bandwidths](../../models/operations/bandwidths.md) | :heavy_minus_sign: | A list of media times and bandwidths when trascoding is using with auto adjustment of bandwidth | | | `terminationCode` | *number* | :heavy_minus_sign: | A code describing why the session was terminated by the server. | | | `terminationText` | *string* | :heavy_minus_sign: | A user friendly and localized text describing why the session was terminated by the server. | | \ No newline at end of file diff --git a/docs/sdk/models/operations/reportrequest.md b/docs/models/operations/reportrequest.md similarity index 97% rename from docs/sdk/models/operations/reportrequest.md rename to docs/models/operations/reportrequest.md index b67777a3..df12cf0d 100644 --- a/docs/sdk/models/operations/reportrequest.md +++ b/docs/models/operations/reportrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { ReportRequest, ReportState } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { ReportRequest, ReportState } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: ReportRequest = { key: "/foo", @@ -28,7 +28,7 @@ let value: ReportRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -41,13 +41,13 @@ let value: ReportRequest = { | `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 | +| `state` | [operations.ReportState](../../models/operations/reportstate.md) | :heavy_minus_sign: | The current state of the media. | playing | | `playQueueItemID` | *string* | :heavy_minus_sign: | If playing media from a play queue, the play queue's ID. | 123 | | `time` | *number* | :heavy_minus_sign: | The current time offset of playback in ms. | 0 | | `duration` | *number* | :heavy_minus_sign: | The total duration of the item in ms. | 10000 | -| `continuing` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | When state is `stopped`, a flag indicating whether or not the client is going to continue playing anothe item. | 1 | +| `continuing` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | When state is `stopped`, a flag indicating whether or not the client is going to continue playing anothe item. | 1 | | `updated` | *number* | :heavy_minus_sign: | Used when a sync client comes online and is syncing media timelines, holds the time at which the playback state was last updated. | 14200000 | -| `offline` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Also used by sync clients, used to indicate that a timeline is being synced from being offline, as opposed to being "live". | 1 | +| `offline` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Also used by sync clients, used to indicate that a timeline is being synced from being offline, as opposed to being "live". | 1 | | `timeToFirstFrame` | *number* | :heavy_minus_sign: | Time in seconds till first frame is displayed. Sent only on the first playing timeline request. | 1000 | | `timeStalled` | *number* | :heavy_minus_sign: | Time in seconds spent buffering since last request. | 1000 | | `bandwidth` | *number* | :heavy_minus_sign: | Bandwidth in kbps as estimated by the client. | 100 | diff --git a/docs/models/operations/reportresponse.md b/docs/models/operations/reportresponse.md new file mode 100644 index 00000000..b9a8796c --- /dev/null +++ b/docs/models/operations/reportresponse.md @@ -0,0 +1,26 @@ +# ReportResponse + +OK + +## Example Usage + +```typescript +import { ReportResponse } from "@lukehagar/plexjs/models/operations"; + +let value: ReportResponse = { + mediaContainer: { + livetv: 7, + machineIdentifier: "0123456789abcdef0123456789abcdef012345678", + musicAnalysis: 2, + myPlexMappingState: "mapped", + myPlexSigninState: "ok", + offlineTranscode: 1, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.ReportMediaContainer](../../models/operations/reportmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/reportstate.md b/docs/models/operations/reportstate.md similarity index 81% rename from docs/sdk/models/operations/reportstate.md rename to docs/models/operations/reportstate.md index 2e1bb05a..3db406aa 100644 --- a/docs/sdk/models/operations/reportstate.md +++ b/docs/models/operations/reportstate.md @@ -5,7 +5,7 @@ The current state of the media. ## Example Usage ```typescript -import { ReportState } from "@lukehagar/plexjs/sdk/models/operations"; +import { ReportState } from "@lukehagar/plexjs/models/operations"; let value: ReportState = ReportState.Playing; ``` diff --git a/docs/sdk/models/operations/resetplayqueueglobals.md b/docs/models/operations/resetplayqueueglobals.md similarity index 96% rename from docs/sdk/models/operations/resetplayqueueglobals.md rename to docs/models/operations/resetplayqueueglobals.md index e96825e0..6ff6ed75 100644 --- a/docs/sdk/models/operations/resetplayqueueglobals.md +++ b/docs/models/operations/resetplayqueueglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ResetPlayQueueGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { ResetPlayQueueGlobals } from "@lukehagar/plexjs/models/operations"; let value: ResetPlayQueueGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: ResetPlayQueueGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/resetplayqueuerequest.md b/docs/models/operations/resetplayqueuerequest.md similarity index 96% rename from docs/sdk/models/operations/resetplayqueuerequest.md rename to docs/models/operations/resetplayqueuerequest.md index cd9c2632..5a442caf 100644 --- a/docs/sdk/models/operations/resetplayqueuerequest.md +++ b/docs/models/operations/resetplayqueuerequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ResetPlayQueueRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { ResetPlayQueueRequest } from "@lukehagar/plexjs/models/operations"; let value: ResetPlayQueueRequest = { playQueueId: 916973, @@ -14,7 +14,7 @@ let value: ResetPlayQueueRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/resetsectiondefaultsglobals.md b/docs/models/operations/resetsectiondefaultsglobals.md similarity index 96% rename from docs/sdk/models/operations/resetsectiondefaultsglobals.md rename to docs/models/operations/resetsectiondefaultsglobals.md index 3eb539b2..de516343 100644 --- a/docs/sdk/models/operations/resetsectiondefaultsglobals.md +++ b/docs/models/operations/resetsectiondefaultsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ResetSectionDefaultsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { ResetSectionDefaultsGlobals } from "@lukehagar/plexjs/models/operations"; let value: ResetSectionDefaultsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: ResetSectionDefaultsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/resetsectiondefaultsrequest.md b/docs/models/operations/resetsectiondefaultsrequest.md similarity index 96% rename from docs/sdk/models/operations/resetsectiondefaultsrequest.md rename to docs/models/operations/resetsectiondefaultsrequest.md index ed754cb0..94a25046 100644 --- a/docs/sdk/models/operations/resetsectiondefaultsrequest.md +++ b/docs/models/operations/resetsectiondefaultsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ResetSectionDefaultsRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { ResetSectionDefaultsRequest } from "@lukehagar/plexjs/models/operations"; let value: ResetSectionDefaultsRequest = { sectionId: 506157, @@ -14,7 +14,7 @@ let value: ResetSectionDefaultsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/restartprocessingdownloadqueueitemsglobals.md b/docs/models/operations/restartprocessingdownloadqueueitemsglobals.md similarity index 97% rename from docs/sdk/models/operations/restartprocessingdownloadqueueitemsglobals.md rename to docs/models/operations/restartprocessingdownloadqueueitemsglobals.md index b18b984c..79a4dcea 100644 --- a/docs/sdk/models/operations/restartprocessingdownloadqueueitemsglobals.md +++ b/docs/models/operations/restartprocessingdownloadqueueitemsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { RestartProcessingDownloadQueueItemsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { RestartProcessingDownloadQueueItemsGlobals } from "@lukehagar/plexjs/models/operations"; let value: RestartProcessingDownloadQueueItemsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: RestartProcessingDownloadQueueItemsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/restartprocessingdownloadqueueitemsrequest.md b/docs/models/operations/restartprocessingdownloadqueueitemsrequest.md similarity index 98% rename from docs/sdk/models/operations/restartprocessingdownloadqueueitemsrequest.md rename to docs/models/operations/restartprocessingdownloadqueueitemsrequest.md index 89deca60..1390354a 100644 --- a/docs/sdk/models/operations/restartprocessingdownloadqueueitemsrequest.md +++ b/docs/models/operations/restartprocessingdownloadqueueitemsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { RestartProcessingDownloadQueueItemsRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { RestartProcessingDownloadQueueItemsRequest } from "@lukehagar/plexjs/models/operations"; let value: RestartProcessingDownloadQueueItemsRequest = { queueId: 578962, @@ -19,7 +19,7 @@ let value: RestartProcessingDownloadQueueItemsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/restricted.md b/docs/models/operations/restricted.md new file mode 100644 index 00000000..abeb178f --- /dev/null +++ b/docs/models/operations/restricted.md @@ -0,0 +1,21 @@ +# Restricted + +Indicates if the user has restricted access. + +## Example Usage + +```typescript +import { Restricted } from "@lukehagar/plexjs/models/operations"; + +let value: Restricted = Restricted.Enable; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Disable` | 0 | +| `Enable` | 1 | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/sdk/models/operations/scanglobals.md b/docs/models/operations/scanglobals.md similarity index 97% rename from docs/sdk/models/operations/scanglobals.md rename to docs/models/operations/scanglobals.md index 287bbbc1..5ae793b1 100644 --- a/docs/sdk/models/operations/scanglobals.md +++ b/docs/models/operations/scanglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ScanGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { ScanGlobals } from "@lukehagar/plexjs/models/operations"; let value: ScanGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: ScanGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/scanrequest.md b/docs/models/operations/scanrequest.md similarity index 97% rename from docs/sdk/models/operations/scanrequest.md rename to docs/models/operations/scanrequest.md index 10b1d943..85cded7c 100644 --- a/docs/sdk/models/operations/scanrequest.md +++ b/docs/models/operations/scanrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ScanRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { ScanRequest } from "@lukehagar/plexjs/models/operations"; let value: ScanRequest = { deviceId: 137776, @@ -15,7 +15,7 @@ let value: ScanRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/scanresponse.md b/docs/models/operations/scanresponse.md new file mode 100644 index 00000000..1cc12bf4 --- /dev/null +++ b/docs/models/operations/scanresponse.md @@ -0,0 +1,28 @@ +# ScanResponse + +## Example Usage + +```typescript +import { ScanResponse } from "@lukehagar/plexjs/models/operations"; + +let value: ScanResponse = { + headers: { + "key": [ + "", + ], + "key1": [ + "", + "", + "", + ], + }, + result: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [shared.MediaContainerWithDevice](../../models/shared/mediacontainerwithdevice.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/searchhubsglobals.md b/docs/models/operations/searchhubsglobals.md similarity index 96% rename from docs/sdk/models/operations/searchhubsglobals.md rename to docs/models/operations/searchhubsglobals.md index 5e5b1143..8e3bbf82 100644 --- a/docs/sdk/models/operations/searchhubsglobals.md +++ b/docs/models/operations/searchhubsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { SearchHubsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { SearchHubsGlobals } from "@lukehagar/plexjs/models/operations"; let value: SearchHubsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: SearchHubsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/searchhubsmediacontainer.md b/docs/models/operations/searchhubsmediacontainer.md similarity index 97% rename from docs/sdk/models/operations/searchhubsmediacontainer.md rename to docs/models/operations/searchhubsmediacontainer.md index 94c778bf..6e01635a 100644 --- a/docs/sdk/models/operations/searchhubsmediacontainer.md +++ b/docs/models/operations/searchhubsmediacontainer.md @@ -8,8 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { SearchHubsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { SearchHubsMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: SearchHubsMediaContainer = { hub: [ @@ -173,7 +172,7 @@ let value: SearchHubsMediaContainer = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -228,4 +227,4 @@ let value: SearchHubsMediaContainer = { | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `hub` | [shared.Hub](../../../sdk/models/shared/hub.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `hub` | [shared.Hub](../../models/shared/hub.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/searchhubsrequest.md b/docs/models/operations/searchhubsrequest.md similarity index 97% rename from docs/sdk/models/operations/searchhubsrequest.md rename to docs/models/operations/searchhubsrequest.md index e04a6daa..93fe40c3 100644 --- a/docs/sdk/models/operations/searchhubsrequest.md +++ b/docs/models/operations/searchhubsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { SearchHubsRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { SearchHubsRequest } from "@lukehagar/plexjs/models/operations"; let value: SearchHubsRequest = { query: "", @@ -15,7 +15,7 @@ let value: SearchHubsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/searchhubsresponse.md b/docs/models/operations/searchhubsresponse.md new file mode 100644 index 00000000..d68201a8 --- /dev/null +++ b/docs/models/operations/searchhubsresponse.md @@ -0,0 +1,228 @@ +# SearchHubsResponse + +## Example Usage + +```typescript +import { SearchHubsResponse } from "@lukehagar/plexjs/models/operations"; + +let value: SearchHubsResponse = { + headers: {}, + result: { + mediaContainer: { + hub: [ + { + type: "track", + context: "hub.home.onDeck", + hubIdentifier: "home.onDeck", + key: "/hubs/sections/home/onDeck", + metadata: [ + { + title: "", + type: "", + addedAt: 29550, + art: "/library/metadata/58683/art/1703239236", + autotag: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + chapterSource: "media", + childCount: 1, + country: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + director: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + genre: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + grandparentGuid: "plex://show/5d9c081b170e24001f2a7be4", + guid: "plex://movie/5d7768ba96b655001fdc0408", + guids: [ + { + id: + "{\"imdbExample\":{\"summary\":\"IMDB example\",\"value\":\"imdb://tt13015952\"},\"tmdbExample\":{\"summary\":\"TMDB example\",\"value\":\"tmdb://2434012\"},\"tvdbExample\":{\"summary\":\"TVDB example\",\"value\":\"tvdb://7945991\"}}", + }, + ], + key: "", + lastViewedAt: 1556281940, + 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: [ + { + accessible: true, + audioProfile: "lc", + container: "mov", + duration: 150192, + exists: true, + file: + "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", + has64bitOffsets: false, + id: 1, + indexes: "sd", + key: "/library/parts/1/1531779263/file.mov", + optimizedForStreaming: false, + size: 105355654, + stream: [ + { + default: true, + audioChannelLayout: "5.1(side)", + channels: 6, + bitDepth: 10, + doviblCompatID: 1, + doviblPresent: true, + dovielPresent: false, + doviLevel: 6, + doviPresent: true, + doviProfile: 8, + dovirpuPresent: true, + doviVersion: "1.0", + bitrate: 24743, + canAutoSync: false, + chromaLocation: "topleft", + chromaSubsampling: "4:2:0", + codedHeight: 1608, + codedWidth: 3840, + closedCaptions: true, + codec: "hevc", + colorPrimaries: "bt2020", + colorRange: "tv", + colorSpace: "bt2020nc", + colorTrc: "smpte2084", + displayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + extendedDisplayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + frameRate: 23.976, + hasScalingMatrix: false, + height: 1602, + id: 1002625, + index: 0, + key: "/library/streams/216389", + language: "English", + languageCode: "eng", + languageTag: "en", + format: "srt", + headerCompression: true, + level: 150, + original: true, + profile: "main 10", + refFrames: 1, + samplingRate: 48000, + scanType: "progressive", + embeddedInVideo: "progressive", + selected: true, + forced: true, + hearingImpaired: true, + dub: true, + title: "SDH", + streamIdentifier: 1, + width: 3840, + }, + ], + videoProfile: "main", + }, + ], + videoCodec: "h264", + videoFrameRate: "24p", + videoProfile: "main", + videoResolution: "720", + width: 1280, + }, + ], + originallyAvailableAt: new Date("2022-12-14"), + parentGuid: "plex://show/5d9c081b170e24001f2a7be4", + ratingArray: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + role: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + theme: "/library/metadata/1/theme/1705636920", + thumb: "/library/metadata/58683/thumb/1703239236", + writer: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + }, + ], + size: 1, + subtype: "podcast", + totalSize: 8, + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [operations.SearchHubsResponseBody](../../models/operations/searchhubsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/searchhubsresponsebody.md b/docs/models/operations/searchhubsresponsebody.md similarity index 87% rename from docs/sdk/models/operations/searchhubsresponsebody.md rename to docs/models/operations/searchhubsresponsebody.md index 880467ca..19962277 100644 --- a/docs/sdk/models/operations/searchhubsresponsebody.md +++ b/docs/models/operations/searchhubsresponsebody.md @@ -5,8 +5,7 @@ OK ## Example Usage ```typescript -import { SearchHubsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { SearchHubsResponseBody } from "@lukehagar/plexjs/models/operations"; let value: SearchHubsResponseBody = { mediaContainer: { @@ -172,7 +171,7 @@ let value: SearchHubsResponseBody = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -222,6 +221,6 @@ let value: SearchHubsResponseBody = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.SearchHubsMediaContainer](../../../sdk/models/operations/searchhubsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `mediaContainer` | [operations.SearchHubsMediaContainer](../../models/operations/searchhubsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/server.md b/docs/models/operations/server.md new file mode 100644 index 00000000..44d2c245 --- /dev/null +++ b/docs/models/operations/server.md @@ -0,0 +1,33 @@ +# Server + +## Example Usage + +```typescript +import { AllLibraries, Owned, Pending, Server } from "@lukehagar/plexjs/models/operations"; + +let value: Server = { + id: 907759180, + serverId: 9999999, + machineIdentifier: "fbb8aa6be6e0c997c6268bc2b4431c8807f70a3", + name: "ConnectedUserFlix", + lastSeenAt: 1556281940, + numLibraries: 16, + allLibraries: AllLibraries.Enable, + owned: Owned.Enable, + pending: Pending.Enable, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `id` | *number* | :heavy_check_mark: | Unique ID of the server of the connected user | 907759180 | +| `serverId` | *number* | :heavy_check_mark: | ID of the actual Plex server. | 9999999 | +| `machineIdentifier` | *string* | :heavy_check_mark: | Machine identifier of the Plex server. | fbb8aa6be6e0c997c6268bc2b4431c8807f70a3 | +| `name` | *string* | :heavy_check_mark: | Name of the Plex server of the connected user. | ConnectedUserFlix | +| `lastSeenAt` | *number* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 | +| `numLibraries` | *number* | :heavy_check_mark: | Number of libraries in the server this user has access to. | 16 | +| `allLibraries` | [operations.AllLibraries](../../models/operations/alllibraries.md) | :heavy_minus_sign: | N/A | 1 | +| `owned` | [operations.Owned](../../models/operations/owned.md) | :heavy_minus_sign: | N/A | 1 | +| `pending` | [operations.Pending](../../models/operations/pending.md) | :heavy_minus_sign: | N/A | 1 | \ No newline at end of file diff --git a/docs/models/operations/service.md b/docs/models/operations/service.md new file mode 100644 index 00000000..ddec0360 --- /dev/null +++ b/docs/models/operations/service.md @@ -0,0 +1,25 @@ +# Service + +## Example Usage + +```typescript +import { Service, ServiceStatus } from "@lukehagar/plexjs/models/operations"; + +let value: Service = { + identifier: "metadata-dev", + endpoint: "https://epg.provider.plex.tv", + token: "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv", + secret: "", + status: ServiceStatus.Online, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `identifier` | *string* | :heavy_check_mark: | N/A | metadata-dev | +| `endpoint` | *string* | :heavy_check_mark: | N/A | https://epg.provider.plex.tv | +| `token` | *string* | :heavy_check_mark: | N/A | DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv | +| `secret` | *string* | :heavy_check_mark: | N/A | | +| `status` | [operations.ServiceStatus](../../models/operations/servicestatus.md) | :heavy_check_mark: | N/A | online | \ No newline at end of file diff --git a/docs/sdk/models/shared/servicestatus.md b/docs/models/operations/servicestatus.md similarity index 87% rename from docs/sdk/models/shared/servicestatus.md rename to docs/models/operations/servicestatus.md index 5b46b2e6..c82ca1f0 100644 --- a/docs/sdk/models/shared/servicestatus.md +++ b/docs/models/operations/servicestatus.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ServiceStatus } from "@lukehagar/plexjs/sdk/models/shared"; +import { ServiceStatus } from "@lukehagar/plexjs/models/operations"; let value: ServiceStatus = ServiceStatus.Online; ``` diff --git a/docs/sdk/models/operations/setchannelmapchannelmapping.md b/docs/models/operations/setchannelmapchannelmapping.md similarity index 78% rename from docs/sdk/models/operations/setchannelmapchannelmapping.md rename to docs/models/operations/setchannelmapchannelmapping.md index 6a022075..ca541d6c 100644 --- a/docs/sdk/models/operations/setchannelmapchannelmapping.md +++ b/docs/models/operations/setchannelmapchannelmapping.md @@ -5,7 +5,7 @@ The mapping of changes, passed as a map of device channel to lineup VCN. ## Example Usage ```typescript -import { SetChannelmapChannelMapping } from "@lukehagar/plexjs/sdk/models/operations"; +import { SetChannelmapChannelMapping } from "@lukehagar/plexjs/models/operations"; let value: SetChannelmapChannelMapping = {}; ``` diff --git a/docs/sdk/models/operations/setchannelmapglobals.md b/docs/models/operations/setchannelmapglobals.md similarity index 96% rename from docs/sdk/models/operations/setchannelmapglobals.md rename to docs/models/operations/setchannelmapglobals.md index c8559af9..d2cd7e4a 100644 --- a/docs/sdk/models/operations/setchannelmapglobals.md +++ b/docs/models/operations/setchannelmapglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { SetChannelmapGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { SetChannelmapGlobals } from "@lukehagar/plexjs/models/operations"; let value: SetChannelmapGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: SetChannelmapGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/setchannelmaprequest.md b/docs/models/operations/setchannelmaprequest.md similarity index 96% rename from docs/sdk/models/operations/setchannelmaprequest.md rename to docs/models/operations/setchannelmaprequest.md index abfecc29..2731e33b 100644 --- a/docs/sdk/models/operations/setchannelmaprequest.md +++ b/docs/models/operations/setchannelmaprequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { SetChannelmapRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { SetChannelmapRequest } from "@lukehagar/plexjs/models/operations"; let value: SetChannelmapRequest = { deviceId: 185948, @@ -19,7 +19,7 @@ let value: SetChannelmapRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -31,6 +31,6 @@ let value: SetChannelmapRequest = { | `deviceName` | *string* | :heavy_minus_sign: | 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"
} | +| `channelMapping` | [operations.SetChannelmapChannelMapping](../../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](../../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"
} | | `channelsEnabled` | *string*[] | :heavy_minus_sign: | The channels which are enabled. | 46.1,44.1,45.1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/setdevicepreferencesglobals.md b/docs/models/operations/setdevicepreferencesglobals.md similarity index 96% rename from docs/sdk/models/operations/setdevicepreferencesglobals.md rename to docs/models/operations/setdevicepreferencesglobals.md index 8ac3573e..59e817e0 100644 --- a/docs/sdk/models/operations/setdevicepreferencesglobals.md +++ b/docs/models/operations/setdevicepreferencesglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { SetDevicePreferencesGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { SetDevicePreferencesGlobals } from "@lukehagar/plexjs/models/operations"; let value: SetDevicePreferencesGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: SetDevicePreferencesGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/setdevicepreferencesrequest.md b/docs/models/operations/setdevicepreferencesrequest.md similarity index 97% rename from docs/sdk/models/operations/setdevicepreferencesrequest.md rename to docs/models/operations/setdevicepreferencesrequest.md index 33265b21..94dc628c 100644 --- a/docs/sdk/models/operations/setdevicepreferencesrequest.md +++ b/docs/models/operations/setdevicepreferencesrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { SetDevicePreferencesRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { SetDevicePreferencesRequest } from "@lukehagar/plexjs/models/operations"; let value: SetDevicePreferencesRequest = { deviceId: 413939, @@ -14,7 +14,7 @@ let value: SetDevicePreferencesRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/setdvrpreferencesdvr.md b/docs/models/operations/setdvrpreferencesdvr.md new file mode 100644 index 00000000..ef746a56 --- /dev/null +++ b/docs/models/operations/setdvrpreferencesdvr.md @@ -0,0 +1,19 @@ +# SetDVRPreferencesDVR + +## Example Usage + +```typescript +import { SetDVRPreferencesDVR } from "@lukehagar/plexjs/models/operations"; + +let value: SetDVRPreferencesDVR = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | +| `device` | [shared.Device](../../models/shared/device.md)[] | :heavy_minus_sign: | N/A | +| `key` | *string* | :heavy_minus_sign: | N/A | +| `language` | *string* | :heavy_minus_sign: | N/A | +| `lineup` | *string* | :heavy_minus_sign: | N/A | +| `uuid` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/setdvrpreferencesglobals.md b/docs/models/operations/setdvrpreferencesglobals.md similarity index 96% rename from docs/sdk/models/operations/setdvrpreferencesglobals.md rename to docs/models/operations/setdvrpreferencesglobals.md index c8ffe1e1..d43f6655 100644 --- a/docs/sdk/models/operations/setdvrpreferencesglobals.md +++ b/docs/models/operations/setdvrpreferencesglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { SetDVRPreferencesGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { SetDVRPreferencesGlobals } from "@lukehagar/plexjs/models/operations"; let value: SetDVRPreferencesGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: SetDVRPreferencesGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/setdvrpreferencesmediacontainer.md b/docs/models/operations/setdvrpreferencesmediacontainer.md similarity index 56% rename from docs/sdk/models/operations/setdvrpreferencesmediacontainer.md rename to docs/models/operations/setdvrpreferencesmediacontainer.md index 2064c81f..684f6c5a 100644 --- a/docs/sdk/models/operations/setdvrpreferencesmediacontainer.md +++ b/docs/models/operations/setdvrpreferencesmediacontainer.md @@ -3,14 +3,14 @@ ## Example Usage ```typescript -import { SetDVRPreferencesMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { SetDVRPreferencesMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: SetDVRPreferencesMediaContainer = {}; ``` ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.SetDVRPreferencesMediaContainerMediaContainer](../../../sdk/models/operations/setdvrpreferencesmediacontainermediacontainer.md) | :heavy_minus_sign: | N/A | -| `dvr` | [operations.SetDVRPreferencesDVR](../../../sdk/models/operations/setdvrpreferencesdvr.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | +| `mediaContainer` | [operations.SetDVRPreferencesMediaContainerMediaContainer](../../models/operations/setdvrpreferencesmediacontainermediacontainer.md) | :heavy_minus_sign: | N/A | +| `dvr` | [operations.SetDVRPreferencesDVR](../../models/operations/setdvrpreferencesdvr.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/setdvrpreferencesmediacontainermediacontainer.md b/docs/models/operations/setdvrpreferencesmediacontainermediacontainer.md similarity index 99% rename from docs/sdk/models/operations/setdvrpreferencesmediacontainermediacontainer.md rename to docs/models/operations/setdvrpreferencesmediacontainermediacontainer.md index 1acdfbdd..06d555ae 100644 --- a/docs/sdk/models/operations/setdvrpreferencesmediacontainermediacontainer.md +++ b/docs/models/operations/setdvrpreferencesmediacontainermediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { SetDVRPreferencesMediaContainerMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { SetDVRPreferencesMediaContainerMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: SetDVRPreferencesMediaContainerMediaContainer = {}; ``` diff --git a/docs/sdk/models/operations/setdvrpreferencesrequest.md b/docs/models/operations/setdvrpreferencesrequest.md similarity index 97% rename from docs/sdk/models/operations/setdvrpreferencesrequest.md rename to docs/models/operations/setdvrpreferencesrequest.md index b8366480..7d8d482d 100644 --- a/docs/sdk/models/operations/setdvrpreferencesrequest.md +++ b/docs/models/operations/setdvrpreferencesrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { SetDVRPreferencesRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { SetDVRPreferencesRequest } from "@lukehagar/plexjs/models/operations"; let value: SetDVRPreferencesRequest = { dvrId: 740002, @@ -14,7 +14,7 @@ let value: SetDVRPreferencesRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/setdvrpreferencesresponse.md b/docs/models/operations/setdvrpreferencesresponse.md new file mode 100644 index 00000000..0b8b28a2 --- /dev/null +++ b/docs/models/operations/setdvrpreferencesresponse.md @@ -0,0 +1,26 @@ +# SetDVRPreferencesResponse + +## Example Usage + +```typescript +import { SetDVRPreferencesResponse } from "@lukehagar/plexjs/models/operations"; + +let value: SetDVRPreferencesResponse = { + headers: { + "key": [ + "", + ], + "key1": [ + "", + ], + }, + result: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [operations.SetDVRPreferencesResponseBody](../../models/operations/setdvrpreferencesresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/setdvrpreferencesresponsebody.md b/docs/models/operations/setdvrpreferencesresponsebody.md new file mode 100644 index 00000000..bee0258a --- /dev/null +++ b/docs/models/operations/setdvrpreferencesresponsebody.md @@ -0,0 +1,17 @@ +# SetDVRPreferencesResponseBody + +OK + +## Example Usage + +```typescript +import { SetDVRPreferencesResponseBody } from "@lukehagar/plexjs/models/operations"; + +let value: SetDVRPreferencesResponseBody = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.SetDVRPreferencesMediaContainer](../../models/operations/setdvrpreferencesmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/setitemartworkelement.md b/docs/models/operations/setitemartworkelement.md similarity index 82% rename from docs/sdk/models/operations/setitemartworkelement.md rename to docs/models/operations/setitemartworkelement.md index f6e2fd30..e23d2b60 100644 --- a/docs/sdk/models/operations/setitemartworkelement.md +++ b/docs/models/operations/setitemartworkelement.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { SetItemArtworkElement } from "@lukehagar/plexjs/sdk/models/operations"; +import { SetItemArtworkElement } from "@lukehagar/plexjs/models/operations"; let value: SetItemArtworkElement = SetItemArtworkElement.Banner; ``` diff --git a/docs/sdk/models/operations/setitemartworkglobals.md b/docs/models/operations/setitemartworkglobals.md similarity index 96% rename from docs/sdk/models/operations/setitemartworkglobals.md rename to docs/models/operations/setitemartworkglobals.md index e8c7f913..eb4f4f8a 100644 --- a/docs/sdk/models/operations/setitemartworkglobals.md +++ b/docs/models/operations/setitemartworkglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { SetItemArtworkGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { SetItemArtworkGlobals } from "@lukehagar/plexjs/models/operations"; let value: SetItemArtworkGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: SetItemArtworkGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/setitemartworkrequest.md b/docs/models/operations/setitemartworkrequest.md similarity index 97% rename from docs/sdk/models/operations/setitemartworkrequest.md rename to docs/models/operations/setitemartworkrequest.md index 4d993fb9..63d60d8f 100644 --- a/docs/sdk/models/operations/setitemartworkrequest.md +++ b/docs/models/operations/setitemartworkrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { SetItemArtworkElement, SetItemArtworkRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { SetItemArtworkElement, SetItemArtworkRequest } from "@lukehagar/plexjs/models/operations"; let value: SetItemArtworkRequest = { ids: "", @@ -15,7 +15,7 @@ let value: SetItemArtworkRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -27,5 +27,5 @@ let value: SetItemArtworkRequest = { | `deviceName` | *string* | :heavy_minus_sign: | 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 | | +| `element` | [operations.SetItemArtworkElement](../../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/setitempreferencesargs.md b/docs/models/operations/setitempreferencesargs.md similarity index 73% rename from docs/sdk/models/operations/setitempreferencesargs.md rename to docs/models/operations/setitempreferencesargs.md index 3cbaf5b7..91932697 100644 --- a/docs/sdk/models/operations/setitempreferencesargs.md +++ b/docs/models/operations/setitempreferencesargs.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { SetItemPreferencesArgs } from "@lukehagar/plexjs/sdk/models/operations"; +import { SetItemPreferencesArgs } from "@lukehagar/plexjs/models/operations"; let value: SetItemPreferencesArgs = {}; ``` diff --git a/docs/sdk/models/operations/setitempreferencesglobals.md b/docs/models/operations/setitempreferencesglobals.md similarity index 96% rename from docs/sdk/models/operations/setitempreferencesglobals.md rename to docs/models/operations/setitempreferencesglobals.md index 88f7f149..64bf6944 100644 --- a/docs/sdk/models/operations/setitempreferencesglobals.md +++ b/docs/models/operations/setitempreferencesglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { SetItemPreferencesGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { SetItemPreferencesGlobals } from "@lukehagar/plexjs/models/operations"; let value: SetItemPreferencesGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: SetItemPreferencesGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/setitempreferencesrequest.md b/docs/models/operations/setitempreferencesrequest.md new file mode 100644 index 00000000..bb358150 --- /dev/null +++ b/docs/models/operations/setitempreferencesrequest.md @@ -0,0 +1,29 @@ +# SetItemPreferencesRequest + +## Example Usage + +```typescript +import { SetItemPreferencesRequest } from "@lukehagar/plexjs/models/operations"; + +let value: SetItemPreferencesRequest = { + ids: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | 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](../../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/models/operations/setpreferencesglobals.md similarity index 96% rename from docs/sdk/models/operations/setpreferencesglobals.md rename to docs/models/operations/setpreferencesglobals.md index fb1007df..21339331 100644 --- a/docs/sdk/models/operations/setpreferencesglobals.md +++ b/docs/models/operations/setpreferencesglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { SetPreferencesGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { SetPreferencesGlobals } from "@lukehagar/plexjs/models/operations"; let value: SetPreferencesGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: SetPreferencesGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/setpreferencesprefs.md b/docs/models/operations/setpreferencesprefs.md similarity index 73% rename from docs/sdk/models/operations/setpreferencesprefs.md rename to docs/models/operations/setpreferencesprefs.md index 81650a8c..cf41874b 100644 --- a/docs/sdk/models/operations/setpreferencesprefs.md +++ b/docs/models/operations/setpreferencesprefs.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { SetPreferencesPrefs } from "@lukehagar/plexjs/sdk/models/operations"; +import { SetPreferencesPrefs } from "@lukehagar/plexjs/models/operations"; let value: SetPreferencesPrefs = {}; ``` diff --git a/docs/sdk/models/operations/setpreferencesrequest.md b/docs/models/operations/setpreferencesrequest.md similarity index 96% rename from docs/sdk/models/operations/setpreferencesrequest.md rename to docs/models/operations/setpreferencesrequest.md index 67161279..b00d3749 100644 --- a/docs/sdk/models/operations/setpreferencesrequest.md +++ b/docs/models/operations/setpreferencesrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { SetPreferencesRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { SetPreferencesRequest } from "@lukehagar/plexjs/models/operations"; let value: SetPreferencesRequest = { prefs: {}, @@ -14,7 +14,7 @@ let value: SetPreferencesRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -25,4 +25,4 @@ let value: SetPreferencesRequest = { | `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | | `deviceName` | *string* | :heavy_minus_sign: | 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 +| `prefs` | [operations.SetPreferencesPrefs](../../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/models/operations/setratingglobals.md similarity index 97% rename from docs/sdk/models/operations/setratingglobals.md rename to docs/models/operations/setratingglobals.md index f047d4a0..2595a310 100644 --- a/docs/sdk/models/operations/setratingglobals.md +++ b/docs/models/operations/setratingglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { SetRatingGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { SetRatingGlobals } from "@lukehagar/plexjs/models/operations"; let value: SetRatingGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: SetRatingGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/setratingrequest.md b/docs/models/operations/setratingrequest.md similarity index 98% rename from docs/sdk/models/operations/setratingrequest.md rename to docs/models/operations/setratingrequest.md index ca525862..9865e2d4 100644 --- a/docs/sdk/models/operations/setratingrequest.md +++ b/docs/models/operations/setratingrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { SetRatingRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { SetRatingRequest } from "@lukehagar/plexjs/models/operations"; let value: SetRatingRequest = { identifier: "", @@ -16,7 +16,7 @@ let value: SetRatingRequest = { | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/setsectionpreferencesglobals.md b/docs/models/operations/setsectionpreferencesglobals.md similarity index 98% rename from docs/sdk/models/operations/setsectionpreferencesglobals.md rename to docs/models/operations/setsectionpreferencesglobals.md index 93526cb9..0f7bcdb9 100644 --- a/docs/sdk/models/operations/setsectionpreferencesglobals.md +++ b/docs/models/operations/setsectionpreferencesglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { SetSectionPreferencesGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { SetSectionPreferencesGlobals } from "@lukehagar/plexjs/models/operations"; let value: SetSectionPreferencesGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: SetSectionPreferencesGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/setsectionpreferencesprefs.md b/docs/models/operations/setsectionpreferencesprefs.md similarity index 73% rename from docs/sdk/models/operations/setsectionpreferencesprefs.md rename to docs/models/operations/setsectionpreferencesprefs.md index f775781b..04fdd214 100644 --- a/docs/sdk/models/operations/setsectionpreferencesprefs.md +++ b/docs/models/operations/setsectionpreferencesprefs.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { SetSectionPreferencesPrefs } from "@lukehagar/plexjs/sdk/models/operations"; +import { SetSectionPreferencesPrefs } from "@lukehagar/plexjs/models/operations"; let value: SetSectionPreferencesPrefs = {}; ``` diff --git a/docs/models/operations/setsectionpreferencesrequest.md b/docs/models/operations/setsectionpreferencesrequest.md new file mode 100644 index 00000000..fcfa1131 --- /dev/null +++ b/docs/models/operations/setsectionpreferencesrequest.md @@ -0,0 +1,30 @@ +# SetSectionPreferencesRequest + +## Example Usage + +```typescript +import { SetSectionPreferencesRequest } from "@lukehagar/plexjs/models/operations"; + +let value: SetSectionPreferencesRequest = { + sectionId: 607596, + prefs: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | 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](../../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/models/operations/setstreamoffsetglobals.md similarity index 96% rename from docs/sdk/models/operations/setstreamoffsetglobals.md rename to docs/models/operations/setstreamoffsetglobals.md index cc646fb8..6e37d8d0 100644 --- a/docs/sdk/models/operations/setstreamoffsetglobals.md +++ b/docs/models/operations/setstreamoffsetglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { SetStreamOffsetGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { SetStreamOffsetGlobals } from "@lukehagar/plexjs/models/operations"; let value: SetStreamOffsetGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: SetStreamOffsetGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/setstreamoffsetrequest.md b/docs/models/operations/setstreamoffsetrequest.md similarity index 96% rename from docs/sdk/models/operations/setstreamoffsetrequest.md rename to docs/models/operations/setstreamoffsetrequest.md index fdfe8f11..8a7809be 100644 --- a/docs/sdk/models/operations/setstreamoffsetrequest.md +++ b/docs/models/operations/setstreamoffsetrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { SetStreamOffsetRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { SetStreamOffsetRequest } from "@lukehagar/plexjs/models/operations"; let value: SetStreamOffsetRequest = { streamId: 848059, @@ -15,7 +15,7 @@ let value: SetStreamOffsetRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/setstreamselectionglobals.md b/docs/models/operations/setstreamselectionglobals.md similarity index 96% rename from docs/sdk/models/operations/setstreamselectionglobals.md rename to docs/models/operations/setstreamselectionglobals.md index f3e53d73..f7032eb0 100644 --- a/docs/sdk/models/operations/setstreamselectionglobals.md +++ b/docs/models/operations/setstreamselectionglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { SetStreamSelectionGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { SetStreamSelectionGlobals } from "@lukehagar/plexjs/models/operations"; let value: SetStreamSelectionGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: SetStreamSelectionGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/setstreamselectionrequest.md b/docs/models/operations/setstreamselectionrequest.md similarity index 94% rename from docs/sdk/models/operations/setstreamselectionrequest.md rename to docs/models/operations/setstreamselectionrequest.md index 090142c9..09a6cf6a 100644 --- a/docs/sdk/models/operations/setstreamselectionrequest.md +++ b/docs/models/operations/setstreamselectionrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { SetStreamSelectionRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { SetStreamSelectionRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: SetStreamSelectionRequest = { partId: 960612, @@ -16,7 +16,7 @@ let value: SetStreamSelectionRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -30,4 +30,4 @@ let value: SetStreamSelectionRequest = { | `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 | | -| `allParts` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Perform the same for all parts of this media selecting similar streams in each | 1 | \ No newline at end of file +| `allParts` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Perform the same for all parts of this media selecting similar streams in each | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/shuffleglobals.md b/docs/models/operations/shuffleglobals.md similarity index 97% rename from docs/sdk/models/operations/shuffleglobals.md rename to docs/models/operations/shuffleglobals.md index 5d34c716..584e1757 100644 --- a/docs/sdk/models/operations/shuffleglobals.md +++ b/docs/models/operations/shuffleglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ShuffleGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { ShuffleGlobals } from "@lukehagar/plexjs/models/operations"; let value: ShuffleGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: ShuffleGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/shufflerequest.md b/docs/models/operations/shufflerequest.md similarity index 97% rename from docs/sdk/models/operations/shufflerequest.md rename to docs/models/operations/shufflerequest.md index f18b045a..cb0cf6c9 100644 --- a/docs/sdk/models/operations/shufflerequest.md +++ b/docs/models/operations/shufflerequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ShuffleRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { ShuffleRequest } from "@lukehagar/plexjs/models/operations"; let value: ShuffleRequest = { playQueueId: 307817, @@ -14,7 +14,7 @@ let value: ShuffleRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/splititemglobals.md b/docs/models/operations/splititemglobals.md similarity index 97% rename from docs/sdk/models/operations/splititemglobals.md rename to docs/models/operations/splititemglobals.md index 38d3fd7e..aec5909e 100644 --- a/docs/sdk/models/operations/splititemglobals.md +++ b/docs/models/operations/splititemglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { SplitItemGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { SplitItemGlobals } from "@lukehagar/plexjs/models/operations"; let value: SplitItemGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: SplitItemGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/splititemrequest.md b/docs/models/operations/splititemrequest.md similarity index 97% rename from docs/sdk/models/operations/splititemrequest.md rename to docs/models/operations/splititemrequest.md index 8df7094e..eb88fccd 100644 --- a/docs/sdk/models/operations/splititemrequest.md +++ b/docs/models/operations/splititemrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { SplitItemRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { SplitItemRequest } from "@lukehagar/plexjs/models/operations"; let value: SplitItemRequest = { ids: "", @@ -14,7 +14,7 @@ let value: SplitItemRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/startanalysisglobals.md b/docs/models/operations/startanalysisglobals.md similarity index 96% rename from docs/sdk/models/operations/startanalysisglobals.md rename to docs/models/operations/startanalysisglobals.md index 108b93af..75bded52 100644 --- a/docs/sdk/models/operations/startanalysisglobals.md +++ b/docs/models/operations/startanalysisglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { StartAnalysisGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { StartAnalysisGlobals } from "@lukehagar/plexjs/models/operations"; let value: StartAnalysisGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: StartAnalysisGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/startanalysisrequest.md b/docs/models/operations/startanalysisrequest.md similarity index 96% rename from docs/sdk/models/operations/startanalysisrequest.md rename to docs/models/operations/startanalysisrequest.md index 3089ae8c..fb800d9e 100644 --- a/docs/sdk/models/operations/startanalysisrequest.md +++ b/docs/models/operations/startanalysisrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { StartAnalysisRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { StartAnalysisRequest } from "@lukehagar/plexjs/models/operations"; let value: StartAnalysisRequest = { sectionId: 986000, @@ -14,7 +14,7 @@ let value: StartAnalysisRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/startbifgenerationglobals.md b/docs/models/operations/startbifgenerationglobals.md similarity index 96% rename from docs/sdk/models/operations/startbifgenerationglobals.md rename to docs/models/operations/startbifgenerationglobals.md index e408474b..1c9b0b44 100644 --- a/docs/sdk/models/operations/startbifgenerationglobals.md +++ b/docs/models/operations/startbifgenerationglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { StartBifGenerationGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { StartBifGenerationGlobals } from "@lukehagar/plexjs/models/operations"; let value: StartBifGenerationGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: StartBifGenerationGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/startbifgenerationrequest.md b/docs/models/operations/startbifgenerationrequest.md similarity index 94% rename from docs/sdk/models/operations/startbifgenerationrequest.md rename to docs/models/operations/startbifgenerationrequest.md index 35cc981f..069dabdc 100644 --- a/docs/sdk/models/operations/startbifgenerationrequest.md +++ b/docs/models/operations/startbifgenerationrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { StartBifGenerationRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { StartBifGenerationRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: StartBifGenerationRequest = { ids: "", @@ -16,7 +16,7 @@ let value: StartBifGenerationRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -28,4 +28,4 @@ let value: StartBifGenerationRequest = { | `deviceName` | *string* | :heavy_minus_sign: | 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 +| `force` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | N/A | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/starttaskbutlertask.md b/docs/models/operations/starttaskbutlertask.md similarity index 96% rename from docs/sdk/models/operations/starttaskbutlertask.md rename to docs/models/operations/starttaskbutlertask.md index 7ad59c7e..6447d38f 100644 --- a/docs/sdk/models/operations/starttaskbutlertask.md +++ b/docs/models/operations/starttaskbutlertask.md @@ -5,7 +5,7 @@ The task name ## Example Usage ```typescript -import { StartTaskButlerTask } from "@lukehagar/plexjs/sdk/models/operations"; +import { StartTaskButlerTask } from "@lukehagar/plexjs/models/operations"; let value: StartTaskButlerTask = StartTaskButlerTask.ButlerTaskGenerateVoiceActivity; diff --git a/docs/sdk/models/operations/starttaskglobals.md b/docs/models/operations/starttaskglobals.md similarity index 97% rename from docs/sdk/models/operations/starttaskglobals.md rename to docs/models/operations/starttaskglobals.md index 05e902e8..4713b8cd 100644 --- a/docs/sdk/models/operations/starttaskglobals.md +++ b/docs/models/operations/starttaskglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { StartTaskGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { StartTaskGlobals } from "@lukehagar/plexjs/models/operations"; let value: StartTaskGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: StartTaskGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/starttaskrequest.md b/docs/models/operations/starttaskrequest.md new file mode 100644 index 00000000..4619d479 --- /dev/null +++ b/docs/models/operations/starttaskrequest.md @@ -0,0 +1,28 @@ +# StartTaskRequest + +## Example Usage + +```typescript +import { StartTaskButlerTask, StartTaskRequest } from "@lukehagar/plexjs/models/operations"; + +let value: StartTaskRequest = { + butlerTask: StartTaskButlerTask.ButlerTaskGenerateIntroMarkers, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `butlerTask` | [operations.StartTaskButlerTask](../../models/operations/starttaskbutlertask.md) | :heavy_check_mark: | The task name | | \ No newline at end of file diff --git a/docs/sdk/models/operations/starttranscodesessionglobals.md b/docs/models/operations/starttranscodesessionglobals.md similarity index 98% rename from docs/sdk/models/operations/starttranscodesessionglobals.md rename to docs/models/operations/starttranscodesessionglobals.md index af3358b2..6d257948 100644 --- a/docs/sdk/models/operations/starttranscodesessionglobals.md +++ b/docs/models/operations/starttranscodesessionglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { StartTranscodeSessionGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { StartTranscodeSessionGlobals } from "@lukehagar/plexjs/models/operations"; let value: StartTranscodeSessionGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: StartTranscodeSessionGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/starttranscodesessionlocation.md b/docs/models/operations/starttranscodesessionlocation.md similarity index 94% rename from docs/sdk/models/operations/starttranscodesessionlocation.md rename to docs/models/operations/starttranscodesessionlocation.md index d46bf9f2..5cd4b879 100644 --- a/docs/sdk/models/operations/starttranscodesessionlocation.md +++ b/docs/models/operations/starttranscodesessionlocation.md @@ -5,7 +5,7 @@ Network type of the client, can be used to help determine target bitrate. ## Example Usage ```typescript -import { StartTranscodeSessionLocation } from "@lukehagar/plexjs/sdk/models/operations"; +import { StartTranscodeSessionLocation } from "@lukehagar/plexjs/models/operations"; let value: StartTranscodeSessionLocation = StartTranscodeSessionLocation.Wan; ``` diff --git a/docs/sdk/models/operations/starttranscodesessionprotocol.md b/docs/models/operations/starttranscodesessionprotocol.md similarity index 95% rename from docs/sdk/models/operations/starttranscodesessionprotocol.md rename to docs/models/operations/starttranscodesessionprotocol.md index 0e1cdc97..234f69e3 100644 --- a/docs/sdk/models/operations/starttranscodesessionprotocol.md +++ b/docs/models/operations/starttranscodesessionprotocol.md @@ -6,7 +6,7 @@ Indicates the network streaming protocol to be used for the transcode session: * ## Example Usage ```typescript -import { StartTranscodeSessionProtocol } from "@lukehagar/plexjs/sdk/models/operations"; +import { StartTranscodeSessionProtocol } from "@lukehagar/plexjs/models/operations"; let value: StartTranscodeSessionProtocol = StartTranscodeSessionProtocol.Dash; ``` diff --git a/docs/sdk/models/operations/starttranscodesessionrequest.md b/docs/models/operations/starttranscodesessionrequest.md similarity index 98% rename from docs/sdk/models/operations/starttranscodesessionrequest.md rename to docs/models/operations/starttranscodesessionrequest.md index 20ec30dd..ce5b1627 100644 --- a/docs/sdk/models/operations/starttranscodesessionrequest.md +++ b/docs/models/operations/starttranscodesessionrequest.md @@ -9,8 +9,8 @@ import { StartTranscodeSessionProtocol, StartTranscodeSessionRequest, StartTranscodeSessionSubtitles, -} from "@lukehagar/plexjs/sdk/models/operations"; -import { AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; +} from "@lukehagar/plexjs/models/operations"; +import { AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/models/shared"; let value: StartTranscodeSessionRequest = { transcodeType: TranscodeType.Video, @@ -51,7 +51,7 @@ let value: StartTranscodeSessionRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -62,20 +62,20 @@ let value: StartTranscodeSessionRequest = { | `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | | `deviceName` | *string* | :heavy_minus_sign: | 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 | | +| `transcodeType` | [shared.TranscodeType](../../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
| | -| `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 | +| `extension` | [operations.Extension](../../models/operations/extension.md) | :heavy_check_mark: | Extension
| | +| `advancedSubtitles` | [shared.AdvancedSubtitles](../../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 | | `audioBoost` | *number* | :heavy_minus_sign: | Percentage of original audio loudness to use when transcoding (100 is equivalent to original volume, 50 is half, 200 is double, etc) | 50 | | `audioChannelCount` | *number* | :heavy_minus_sign: | Target video number of audio channels. | 5 | -| `autoAdjustQuality` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Indicates the client supports ABR. | 1 | -| `autoAdjustSubtitle` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Indicates if the server should adjust subtitles based on Voice Activity Data. | 1 | -| `directPlay` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Indicates the client supports direct playing the indicated content. | 1 | -| `directStream` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Indicates the client supports direct streaming the video of the indicated content. | 1 | -| `directStreamAudio` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Indicates the client supports direct streaming the audio of the indicated content. | 1 | -| `disableResolutionRotation` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Indicates if resolution should be adjusted for orientation. | 1 | -| `hasMDE` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Ignore client profiles when determining if direct play is possible. Only has an effect when directPlay=1 and both mediaIndex and partIndex are specified and neither are -1 | 1 | -| `location` | [operations.StartTranscodeSessionLocation](../../../sdk/models/operations/starttranscodesessionlocation.md) | :heavy_minus_sign: | Network type of the client, can be used to help determine target bitrate. | wan | +| `autoAdjustQuality` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Indicates the client supports ABR. | 1 | +| `autoAdjustSubtitle` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Indicates if the server should adjust subtitles based on Voice Activity Data. | 1 | +| `directPlay` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Indicates the client supports direct playing the indicated content. | 1 | +| `directStream` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Indicates the client supports direct streaming the video of the indicated content. | 1 | +| `directStreamAudio` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Indicates the client supports direct streaming the audio of the indicated content. | 1 | +| `disableResolutionRotation` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Indicates if resolution should be adjusted for orientation. | 1 | +| `hasMDE` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Ignore client profiles when determining if direct play is possible. Only has an effect when directPlay=1 and both mediaIndex and partIndex are specified and neither are -1 | 1 | +| `location` | [operations.StartTranscodeSessionLocation](../../models/operations/starttranscodesessionlocation.md) | :heavy_minus_sign: | Network type of the client, can be used to help determine target bitrate. | wan | | `mediaBufferSize` | *number* | :heavy_minus_sign: | Buffer size used in playback (in KB). Clients should specify a lower bound if not known exactly. This value could make the difference between transcoding and direct play on bandwidth constrained networks. | 102400 | | `mediaIndex` | *number* | :heavy_minus_sign: | Index of the media to transcode. -1 or not specified indicates let the server choose. | 0 | | `musicBitrate` | *number* | :heavy_minus_sign: | Target bitrate for audio only files (in kbps, used to transcode). | 5000 | @@ -84,10 +84,10 @@ let value: StartTranscodeSessionRequest = { | `path` | *string* | :heavy_minus_sign: | Internal PMS path of the media to transcode. | /library/metadata/151671 | | `peakBitrate` | *number* | :heavy_minus_sign: | Maximum bitrate (in kbps) to use in ABR. | 12000 | | `photoResolution` | *string* | :heavy_minus_sign: | Target photo resolution. | 1080x1080 | -| `protocol` | [operations.StartTranscodeSessionProtocol](../../../sdk/models/operations/starttranscodesessionprotocol.md) | :heavy_minus_sign: | Indicates the network streaming protocol to be used for the transcode session: * 'http' - include the file in the http response such as MKV streaming * 'hls' - hls stream (RFC 8216) * 'dash' - dash stream (ISO/IEC 23009-1:2022)
| dash | +| `protocol` | [operations.StartTranscodeSessionProtocol](../../models/operations/starttranscodesessionprotocol.md) | :heavy_minus_sign: | Indicates the network streaming protocol to be used for the transcode session: * 'http' - include the file in the http response such as MKV streaming * 'hls' - hls stream (RFC 8216) * 'dash' - dash stream (ISO/IEC 23009-1:2022)
| dash | | `secondsPerSegment` | *number* | :heavy_minus_sign: | Number of seconds to include in each transcoded segment | 5 | | `subtitleSize` | *number* | :heavy_minus_sign: | Percentage of original subtitle size to use when burning subtitles (100 is equivalent to original size, 50 is half, ect) | 50 | -| `subtitles` | [operations.StartTranscodeSessionSubtitles](../../../sdk/models/operations/starttranscodesessionsubtitles.md) | :heavy_minus_sign: | Indicates how subtitles should be included: * 'auto' - Compute the appropriate subtitle setting automatically * 'burn' - Burn the selected subtitle; auto if no selected subtitle * 'none' - Ignore all subtitle streams * 'sidecar' - The selected subtitle should be provided as a sidecar * 'embedded' - The selected subtitle should be provided as an embedded stream * 'segmented' - The selected subtitle should be provided as a segmented stream
| Burn | +| `subtitles` | [operations.StartTranscodeSessionSubtitles](../../models/operations/starttranscodesessionsubtitles.md) | :heavy_minus_sign: | Indicates how subtitles should be included: * 'auto' - Compute the appropriate subtitle setting automatically * 'burn' - Burn the selected subtitle; auto if no selected subtitle * 'none' - Ignore all subtitle streams * 'sidecar' - The selected subtitle should be provided as a sidecar * 'embedded' - The selected subtitle should be provided as an embedded stream * 'segmented' - The selected subtitle should be provided as a segmented stream
| Burn | | `videoBitrate` | *number* | :heavy_minus_sign: | Target video bitrate (in kbps). | 12000 | | `videoQuality` | *number* | :heavy_minus_sign: | Target photo quality. | 50 | | `videoResolution` | *string* | :heavy_minus_sign: | Target maximum video resolution. | 1080x1080 | diff --git a/docs/sdk/models/operations/starttranscodesessionsubtitles.md b/docs/models/operations/starttranscodesessionsubtitles.md similarity index 97% rename from docs/sdk/models/operations/starttranscodesessionsubtitles.md rename to docs/models/operations/starttranscodesessionsubtitles.md index a67c5da6..4962991d 100644 --- a/docs/sdk/models/operations/starttranscodesessionsubtitles.md +++ b/docs/models/operations/starttranscodesessionsubtitles.md @@ -6,7 +6,7 @@ Indicates how subtitles should be included: * 'auto' - Compute the appropriate s ## Example Usage ```typescript -import { StartTranscodeSessionSubtitles } from "@lukehagar/plexjs/sdk/models/operations"; +import { StartTranscodeSessionSubtitles } from "@lukehagar/plexjs/models/operations"; let value: StartTranscodeSessionSubtitles = StartTranscodeSessionSubtitles.Segmented; diff --git a/docs/sdk/models/operations/stopdvrreloadglobals.md b/docs/models/operations/stopdvrreloadglobals.md similarity index 96% rename from docs/sdk/models/operations/stopdvrreloadglobals.md rename to docs/models/operations/stopdvrreloadglobals.md index dc9fbcfd..40541a72 100644 --- a/docs/sdk/models/operations/stopdvrreloadglobals.md +++ b/docs/models/operations/stopdvrreloadglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { StopDVRReloadGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { StopDVRReloadGlobals } from "@lukehagar/plexjs/models/operations"; let value: StopDVRReloadGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: StopDVRReloadGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/stopdvrreloadrequest.md b/docs/models/operations/stopdvrreloadrequest.md similarity index 96% rename from docs/sdk/models/operations/stopdvrreloadrequest.md rename to docs/models/operations/stopdvrreloadrequest.md index 3f2a93c7..3b3ec50d 100644 --- a/docs/sdk/models/operations/stopdvrreloadrequest.md +++ b/docs/models/operations/stopdvrreloadrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { StopDVRReloadRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { StopDVRReloadRequest } from "@lukehagar/plexjs/models/operations"; let value: StopDVRReloadRequest = { dvrId: 243259, @@ -14,7 +14,7 @@ let value: StopDVRReloadRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/stopscanglobals.md b/docs/models/operations/stopscanglobals.md similarity index 97% rename from docs/sdk/models/operations/stopscanglobals.md rename to docs/models/operations/stopscanglobals.md index 8fb5f44b..4385d542 100644 --- a/docs/sdk/models/operations/stopscanglobals.md +++ b/docs/models/operations/stopscanglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { StopScanGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { StopScanGlobals } from "@lukehagar/plexjs/models/operations"; let value: StopScanGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: StopScanGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/stopscanrequest.md b/docs/models/operations/stopscanrequest.md similarity index 97% rename from docs/sdk/models/operations/stopscanrequest.md rename to docs/models/operations/stopscanrequest.md index 9efb1f09..2ad1ea96 100644 --- a/docs/sdk/models/operations/stopscanrequest.md +++ b/docs/models/operations/stopscanrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { StopScanRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { StopScanRequest } from "@lukehagar/plexjs/models/operations"; let value: StopScanRequest = { deviceId: 972435, @@ -14,7 +14,7 @@ let value: StopScanRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/stoptaskbutlertask.md b/docs/models/operations/stoptaskbutlertask.md similarity index 96% rename from docs/sdk/models/operations/stoptaskbutlertask.md rename to docs/models/operations/stoptaskbutlertask.md index 3001d06c..994baa62 100644 --- a/docs/sdk/models/operations/stoptaskbutlertask.md +++ b/docs/models/operations/stoptaskbutlertask.md @@ -5,7 +5,7 @@ The task name ## Example Usage ```typescript -import { StopTaskButlerTask } from "@lukehagar/plexjs/sdk/models/operations"; +import { StopTaskButlerTask } from "@lukehagar/plexjs/models/operations"; let value: StopTaskButlerTask = StopTaskButlerTask.ButlerTaskGenerateCreditsMarkers; diff --git a/docs/sdk/models/operations/stoptaskglobals.md b/docs/models/operations/stoptaskglobals.md similarity index 97% rename from docs/sdk/models/operations/stoptaskglobals.md rename to docs/models/operations/stoptaskglobals.md index bdd581e7..af246781 100644 --- a/docs/sdk/models/operations/stoptaskglobals.md +++ b/docs/models/operations/stoptaskglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { StopTaskGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { StopTaskGlobals } from "@lukehagar/plexjs/models/operations"; let value: StopTaskGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: StopTaskGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/stoptaskrequest.md b/docs/models/operations/stoptaskrequest.md new file mode 100644 index 00000000..97b96802 --- /dev/null +++ b/docs/models/operations/stoptaskrequest.md @@ -0,0 +1,28 @@ +# StopTaskRequest + +## Example Usage + +```typescript +import { StopTaskButlerTask, StopTaskRequest } from "@lukehagar/plexjs/models/operations"; + +let value: StopTaskRequest = { + butlerTask: StopTaskButlerTask.RefreshPeriodicMetadata, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `butlerTask` | [operations.StopTaskButlerTask](../../models/operations/stoptaskbutlertask.md) | :heavy_check_mark: | The task name | | \ No newline at end of file diff --git a/docs/models/operations/subscription1.md b/docs/models/operations/subscription1.md new file mode 100644 index 00000000..dd04e9c0 --- /dev/null +++ b/docs/models/operations/subscription1.md @@ -0,0 +1,26 @@ +# Subscription1 + +If the account's Plex Pass subscription is active + +## Example Usage + +```typescript +import { Subscription1, SubscriptionStatus1 } from "@lukehagar/plexjs/models/operations"; + +let value: Subscription1 = { + active: true, + subscribedAt: "2021-04-12T18:21:12Z", + status: SubscriptionStatus1.Inactive, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `features` | *string*[] | :heavy_minus_sign: | List of features allowed on your Plex Pass subscription | | +| `active` | *boolean* | :heavy_minus_sign: | If the account's Plex Pass subscription is active | true | +| `subscribedAt` | *string* | :heavy_minus_sign: | Date the account subscribed to Plex Pass | 2021-04-12T18:21:12Z | +| `status` | [operations.SubscriptionStatus1](../../models/operations/subscriptionstatus1.md) | :heavy_minus_sign: | String representation of subscriptionActive | Inactive | +| `paymentService` | *string* | :heavy_minus_sign: | Payment service used for your Plex Pass subscription | | +| `plan` | *string* | :heavy_minus_sign: | Name of Plex Pass subscription plan | | \ No newline at end of file diff --git a/docs/models/operations/subscription2.md b/docs/models/operations/subscription2.md new file mode 100644 index 00000000..5460a0c3 --- /dev/null +++ b/docs/models/operations/subscription2.md @@ -0,0 +1,24 @@ +# Subscription2 + +## Example Usage + +```typescript +import { Subscription2, SubscriptionStatus2 } from "@lukehagar/plexjs/models/operations"; + +let value: Subscription2 = { + active: true, + subscribedAt: "2021-04-12T18:21:12Z", + status: SubscriptionStatus2.Inactive, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `features` | *string*[] | :heavy_minus_sign: | List of features allowed on your Plex Pass subscription | | +| `active` | *boolean* | :heavy_minus_sign: | If the account's Plex Pass subscription is active | true | +| `subscribedAt` | *string* | :heavy_minus_sign: | Date the account subscribed to Plex Pass | 2021-04-12T18:21:12Z | +| `status` | [operations.SubscriptionStatus2](../../models/operations/subscriptionstatus2.md) | :heavy_minus_sign: | String representation of subscriptionActive | Inactive | +| `paymentService` | *string* | :heavy_minus_sign: | Payment service used for your Plex Pass subscription | | +| `plan` | *string* | :heavy_minus_sign: | Name of Plex Pass subscription plan | | \ No newline at end of file diff --git a/docs/sdk/models/shared/subscriptionstatus1.md b/docs/models/operations/subscriptionstatus1.md similarity index 87% rename from docs/sdk/models/shared/subscriptionstatus1.md rename to docs/models/operations/subscriptionstatus1.md index 30616c41..8aba8039 100644 --- a/docs/sdk/models/shared/subscriptionstatus1.md +++ b/docs/models/operations/subscriptionstatus1.md @@ -5,7 +5,7 @@ String representation of subscriptionActive ## Example Usage ```typescript -import { SubscriptionStatus1 } from "@lukehagar/plexjs/sdk/models/shared"; +import { SubscriptionStatus1 } from "@lukehagar/plexjs/models/operations"; let value: SubscriptionStatus1 = SubscriptionStatus1.Inactive; ``` diff --git a/docs/sdk/models/shared/subscriptionstatus2.md b/docs/models/operations/subscriptionstatus2.md similarity index 87% rename from docs/sdk/models/shared/subscriptionstatus2.md rename to docs/models/operations/subscriptionstatus2.md index a7e92c6b..4a751b21 100644 --- a/docs/sdk/models/shared/subscriptionstatus2.md +++ b/docs/models/operations/subscriptionstatus2.md @@ -5,7 +5,7 @@ String representation of subscriptionActive ## Example Usage ```typescript -import { SubscriptionStatus2 } from "@lukehagar/plexjs/sdk/models/shared"; +import { SubscriptionStatus2 } from "@lukehagar/plexjs/models/operations"; let value: SubscriptionStatus2 = SubscriptionStatus2.Inactive; ``` diff --git a/docs/sdk/models/operations/subscriptiontemplate.md b/docs/models/operations/subscriptiontemplate.md similarity index 89% rename from docs/sdk/models/operations/subscriptiontemplate.md rename to docs/models/operations/subscriptiontemplate.md index f52badc5..17139173 100644 --- a/docs/sdk/models/operations/subscriptiontemplate.md +++ b/docs/models/operations/subscriptiontemplate.md @@ -3,8 +3,7 @@ ## Example Usage ```typescript -import { SubscriptionTemplate } from "@lukehagar/plexjs/sdk/models/operations"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { SubscriptionTemplate } from "@lukehagar/plexjs/models/operations"; let value: SubscriptionTemplate = { mediaSubscription: [ @@ -167,7 +166,7 @@ let value: SubscriptionTemplate = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -214,6 +213,6 @@ let value: SubscriptionTemplate = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `mediaSubscription` | [operations.MediaSubscription](../../../sdk/models/operations/mediasubscription.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `mediaSubscription` | [operations.MediaSubscription](../../models/operations/mediasubscription.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/terminatesessionglobals.md b/docs/models/operations/terminatesessionglobals.md similarity index 96% rename from docs/sdk/models/operations/terminatesessionglobals.md rename to docs/models/operations/terminatesessionglobals.md index 856ca0e6..2a05d537 100644 --- a/docs/sdk/models/operations/terminatesessionglobals.md +++ b/docs/models/operations/terminatesessionglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { TerminateSessionGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { TerminateSessionGlobals } from "@lukehagar/plexjs/models/operations"; let value: TerminateSessionGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: TerminateSessionGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/terminatesessionrequest.md b/docs/models/operations/terminatesessionrequest.md similarity index 98% rename from docs/sdk/models/operations/terminatesessionrequest.md rename to docs/models/operations/terminatesessionrequest.md index b4316684..b5218644 100644 --- a/docs/sdk/models/operations/terminatesessionrequest.md +++ b/docs/models/operations/terminatesessionrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { TerminateSessionRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { TerminateSessionRequest } from "@lukehagar/plexjs/models/operations"; let value: TerminateSessionRequest = { sessionId: "cdefghijklmnopqrstuvwxyz", @@ -15,7 +15,7 @@ let value: TerminateSessionRequest = { | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/transcodeimageglobals.md b/docs/models/operations/transcodeimageglobals.md similarity index 96% rename from docs/sdk/models/operations/transcodeimageglobals.md rename to docs/models/operations/transcodeimageglobals.md index c71699f3..443883be 100644 --- a/docs/sdk/models/operations/transcodeimageglobals.md +++ b/docs/models/operations/transcodeimageglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { TranscodeImageGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { TranscodeImageGlobals } from "@lukehagar/plexjs/models/operations"; let value: TranscodeImageGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: TranscodeImageGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/transcodeimagerequest.md b/docs/models/operations/transcodeimagerequest.md similarity index 98% rename from docs/sdk/models/operations/transcodeimagerequest.md rename to docs/models/operations/transcodeimagerequest.md index b0e0bbff..9d1f3d43 100644 --- a/docs/sdk/models/operations/transcodeimagerequest.md +++ b/docs/models/operations/transcodeimagerequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { TranscodeImageRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { TranscodeImageRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: TranscodeImageRequest = { url: "/library/metadata/265/thumb/1715112705", @@ -20,7 +20,7 @@ let value: TranscodeImageRequest = { | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -32,16 +32,16 @@ let value: TranscodeImageRequest = { | `deviceName` | *string* | :heavy_minus_sign: | 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 | | +| `format` | [operations.Format](../../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 | | | `height` | *number* | :heavy_minus_sign: | The desired height of the output image | | | `quality` | *number* | :heavy_minus_sign: | The desired quality of the output. -1 means the highest quality. Defaults to -1 | | | `background` | *string* | :heavy_minus_sign: | The background color to apply before painting the image. Only really applicable if image has transparency. Defaults to none | #ff5522 | -| `upscale` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Indicates if image should be upscaled to the desired width/height. Defaults to false | 1 | -| `minSize` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Indicates if image should be scaled to fit the smaller dimension. By default (false) the image is scaled to fit within the width/height specified but if this parameter is true, it will allow overflowing one dimension to fit the other. Essentially it is making the width/height minimum sizes of the image or sizing the image to fill the entire width/height even if it overflows one dimension. | 1 | -| `rotate` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Obey the rotation values specified in EXIF data. Defaults to true. | 1 | +| `upscale` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Indicates if image should be upscaled to the desired width/height. Defaults to false | 1 | +| `minSize` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Indicates if image should be scaled to fit the smaller dimension. By default (false) the image is scaled to fit within the width/height specified but if this parameter is true, it will allow overflowing one dimension to fit the other. Essentially it is making the width/height minimum sizes of the image or sizing the image to fill the entire width/height even if it overflows one dimension. | 1 | +| `rotate` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Obey the rotation values specified in EXIF data. Defaults to true. | 1 | | `blur` | *number* | :heavy_minus_sign: | Apply a blur to the image, Defaults to 0 (none) | | | `saturation` | *number* | :heavy_minus_sign: | Scale the image saturation by the specified percentage. Defaults to 100 | | | `opacity` | *number* | :heavy_minus_sign: | Render the image at the specified opacity percentage. Defaults to 100 | | -| `chromaSubsampling` | [operations.ChromaSubsampling](../../../sdk/models/operations/chromasubsampling.md) | :heavy_minus_sign: | Use the specified chroma subsambling.
- 0: 411
- 1: 420
- 2: 422
- 3: 444
Defaults to 3 (444) | | +| `chromaSubsampling` | [operations.ChromaSubsampling](../../models/operations/chromasubsampling.md) | :heavy_minus_sign: | Use the specified chroma subsambling.
- 0: 411
- 1: 420
- 2: 422
- 3: 444
Defaults to 3 (444) | | | `blendColor` | *string* | :heavy_minus_sign: | The color to blend with the image. Defaults to none | #ff5522 | \ No newline at end of file diff --git a/docs/models/operations/transcodeimageresponse.md b/docs/models/operations/transcodeimageresponse.md new file mode 100644 index 00000000..473acde6 --- /dev/null +++ b/docs/models/operations/transcodeimageresponse.md @@ -0,0 +1,23 @@ +# TranscodeImageResponse + + +## Supported Types + +### `ReadableStream` + +```typescript +const value: ReadableStream = await openAsBlob("example.file"); +``` + +### `ReadableStream` + +```typescript +const value: ReadableStream = await openAsBlob("example.file"); +``` + +### `ReadableStream` + +```typescript +const value: ReadableStream = await openAsBlob("example.file"); +``` + diff --git a/docs/models/operations/transcodejob.md b/docs/models/operations/transcodejob.md new file mode 100644 index 00000000..ff1428c1 --- /dev/null +++ b/docs/models/operations/transcodejob.md @@ -0,0 +1,25 @@ +# TranscodeJob + +## Example Usage + +```typescript +import { TranscodeJob } from "@lukehagar/plexjs/models/operations"; + +let value: TranscodeJob = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `generatorID` | *number* | :heavy_minus_sign: | N/A | +| `key` | *string* | :heavy_minus_sign: | N/A | +| `progress` | *number* | :heavy_minus_sign: | N/A | +| `ratingKey` | *string* | :heavy_minus_sign: | N/A | +| `remaining` | *number* | :heavy_minus_sign: | The number of seconds remaining in this job | +| `size` | *number* | :heavy_minus_sign: | The size of the result so far | +| `speed` | *number* | :heavy_minus_sign: | The speed of the transcode; 1.0 means real-time | +| `targetTagID` | *number* | :heavy_minus_sign: | The tag associated with the job. This could be the tag containing the optimizer settings. | +| `thumb` | *string* | :heavy_minus_sign: | N/A | +| `title` | *string* | :heavy_minus_sign: | N/A | +| `type` | [operations.GetBackgroundTasksType](../../models/operations/getbackgroundtaskstype.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/transcodesubtitlesglobals.md b/docs/models/operations/transcodesubtitlesglobals.md similarity index 96% rename from docs/sdk/models/operations/transcodesubtitlesglobals.md rename to docs/models/operations/transcodesubtitlesglobals.md index 28ac6743..9f3c53bb 100644 --- a/docs/sdk/models/operations/transcodesubtitlesglobals.md +++ b/docs/models/operations/transcodesubtitlesglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { TranscodeSubtitlesGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { TranscodeSubtitlesGlobals } from "@lukehagar/plexjs/models/operations"; let value: TranscodeSubtitlesGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: TranscodeSubtitlesGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/transcodesubtitleslocation.md b/docs/models/operations/transcodesubtitleslocation.md similarity index 80% rename from docs/sdk/models/operations/transcodesubtitleslocation.md rename to docs/models/operations/transcodesubtitleslocation.md index 9cb862c8..cc28699b 100644 --- a/docs/sdk/models/operations/transcodesubtitleslocation.md +++ b/docs/models/operations/transcodesubtitleslocation.md @@ -5,7 +5,7 @@ Network type of the client, can be used to help determine target bitrate. ## Example Usage ```typescript -import { TranscodeSubtitlesLocation } from "@lukehagar/plexjs/sdk/models/operations"; +import { TranscodeSubtitlesLocation } from "@lukehagar/plexjs/models/operations"; let value: TranscodeSubtitlesLocation = TranscodeSubtitlesLocation.Wan; ``` diff --git a/docs/sdk/models/operations/transcodesubtitlesprotocol.md b/docs/models/operations/transcodesubtitlesprotocol.md similarity index 84% rename from docs/sdk/models/operations/transcodesubtitlesprotocol.md rename to docs/models/operations/transcodesubtitlesprotocol.md index f0c4991e..3c0f6e19 100644 --- a/docs/sdk/models/operations/transcodesubtitlesprotocol.md +++ b/docs/models/operations/transcodesubtitlesprotocol.md @@ -6,7 +6,7 @@ Indicates the network streaming protocol to be used for the transcode session: * ## Example Usage ```typescript -import { TranscodeSubtitlesProtocol } from "@lukehagar/plexjs/sdk/models/operations"; +import { TranscodeSubtitlesProtocol } from "@lukehagar/plexjs/models/operations"; let value: TranscodeSubtitlesProtocol = TranscodeSubtitlesProtocol.Dash; ``` diff --git a/docs/sdk/models/operations/transcodesubtitlesrequest.md b/docs/models/operations/transcodesubtitlesrequest.md similarity index 98% rename from docs/sdk/models/operations/transcodesubtitlesrequest.md rename to docs/models/operations/transcodesubtitlesrequest.md index f3cdfbec..687f3fff 100644 --- a/docs/sdk/models/operations/transcodesubtitlesrequest.md +++ b/docs/models/operations/transcodesubtitlesrequest.md @@ -8,8 +8,8 @@ import { TranscodeSubtitlesProtocol, TranscodeSubtitlesRequest, TranscodeSubtitlesSubtitles, -} from "@lukehagar/plexjs/sdk/models/operations"; -import { AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; +} from "@lukehagar/plexjs/models/operations"; +import { AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/models/shared"; let value: TranscodeSubtitlesRequest = { transcodeType: TranscodeType.Video, @@ -49,7 +49,7 @@ let value: TranscodeSubtitlesRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -60,19 +60,19 @@ let value: TranscodeSubtitlesRequest = { | `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | | `deviceName` | *string* | :heavy_minus_sign: | 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 | | +| `transcodeType` | [shared.TranscodeType](../../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 | +| `advancedSubtitles` | [shared.AdvancedSubtitles](../../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 | | `audioBoost` | *number* | :heavy_minus_sign: | Percentage of original audio loudness to use when transcoding (100 is equivalent to original volume, 50 is half, 200 is double, etc) | 50 | | `audioChannelCount` | *number* | :heavy_minus_sign: | Target video number of audio channels. | 5 | -| `autoAdjustQuality` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Indicates the client supports ABR. | 1 | -| `autoAdjustSubtitle` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Indicates if the server should adjust subtitles based on Voice Activity Data. | 1 | -| `directPlay` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Indicates the client supports direct playing the indicated content. | 1 | -| `directStream` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Indicates the client supports direct streaming the video of the indicated content. | 1 | -| `directStreamAudio` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Indicates the client supports direct streaming the audio of the indicated content. | 1 | -| `disableResolutionRotation` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Indicates if resolution should be adjusted for orientation. | 1 | -| `hasMDE` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Ignore client profiles when determining if direct play is possible. Only has an effect when directPlay=1 and both mediaIndex and partIndex are specified and neither are -1 | 1 | -| `location` | [operations.TranscodeSubtitlesLocation](../../../sdk/models/operations/transcodesubtitleslocation.md) | :heavy_minus_sign: | Network type of the client, can be used to help determine target bitrate. | wan | +| `autoAdjustQuality` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Indicates the client supports ABR. | 1 | +| `autoAdjustSubtitle` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Indicates if the server should adjust subtitles based on Voice Activity Data. | 1 | +| `directPlay` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Indicates the client supports direct playing the indicated content. | 1 | +| `directStream` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Indicates the client supports direct streaming the video of the indicated content. | 1 | +| `directStreamAudio` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Indicates the client supports direct streaming the audio of the indicated content. | 1 | +| `disableResolutionRotation` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Indicates if resolution should be adjusted for orientation. | 1 | +| `hasMDE` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Ignore client profiles when determining if direct play is possible. Only has an effect when directPlay=1 and both mediaIndex and partIndex are specified and neither are -1 | 1 | +| `location` | [operations.TranscodeSubtitlesLocation](../../models/operations/transcodesubtitleslocation.md) | :heavy_minus_sign: | Network type of the client, can be used to help determine target bitrate. | wan | | `mediaBufferSize` | *number* | :heavy_minus_sign: | Buffer size used in playback (in KB). Clients should specify a lower bound if not known exactly. This value could make the difference between transcoding and direct play on bandwidth constrained networks. | 102400 | | `mediaIndex` | *number* | :heavy_minus_sign: | Index of the media to transcode. -1 or not specified indicates let the server choose. | 0 | | `musicBitrate` | *number* | :heavy_minus_sign: | Target bitrate for audio only files (in kbps, used to transcode). | 5000 | @@ -81,10 +81,10 @@ let value: TranscodeSubtitlesRequest = { | `path` | *string* | :heavy_minus_sign: | Internal PMS path of the media to transcode. | /library/metadata/151671 | | `peakBitrate` | *number* | :heavy_minus_sign: | Maximum bitrate (in kbps) to use in ABR. | 12000 | | `photoResolution` | *string* | :heavy_minus_sign: | Target photo resolution. | 1080x1080 | -| `protocol` | [operations.TranscodeSubtitlesProtocol](../../../sdk/models/operations/transcodesubtitlesprotocol.md) | :heavy_minus_sign: | Indicates the network streaming protocol to be used for the transcode session: * 'http' - include the file in the http response such as MKV streaming * 'hls' - hls stream (RFC 8216) * 'dash' - dash stream (ISO/IEC 23009-1:2022)
| dash | +| `protocol` | [operations.TranscodeSubtitlesProtocol](../../models/operations/transcodesubtitlesprotocol.md) | :heavy_minus_sign: | Indicates the network streaming protocol to be used for the transcode session: * 'http' - include the file in the http response such as MKV streaming * 'hls' - hls stream (RFC 8216) * 'dash' - dash stream (ISO/IEC 23009-1:2022)
| dash | | `secondsPerSegment` | *number* | :heavy_minus_sign: | Number of seconds to include in each transcoded segment | 5 | | `subtitleSize` | *number* | :heavy_minus_sign: | Percentage of original subtitle size to use when burning subtitles (100 is equivalent to original size, 50 is half, ect) | 50 | -| `subtitles` | [operations.TranscodeSubtitlesSubtitles](../../../sdk/models/operations/transcodesubtitlessubtitles.md) | :heavy_minus_sign: | Indicates how subtitles should be included: * 'auto' - Compute the appropriate subtitle setting automatically * 'burn' - Burn the selected subtitle; auto if no selected subtitle * 'none' - Ignore all subtitle streams * 'sidecar' - The selected subtitle should be provided as a sidecar * 'embedded' - The selected subtitle should be provided as an embedded stream * 'segmented' - The selected subtitle should be provided as a segmented stream
| Burn | +| `subtitles` | [operations.TranscodeSubtitlesSubtitles](../../models/operations/transcodesubtitlessubtitles.md) | :heavy_minus_sign: | Indicates how subtitles should be included: * 'auto' - Compute the appropriate subtitle setting automatically * 'burn' - Burn the selected subtitle; auto if no selected subtitle * 'none' - Ignore all subtitle streams * 'sidecar' - The selected subtitle should be provided as a sidecar * 'embedded' - The selected subtitle should be provided as an embedded stream * 'segmented' - The selected subtitle should be provided as a segmented stream
| Burn | | `videoBitrate` | *number* | :heavy_minus_sign: | Target video bitrate (in kbps). | 12000 | | `videoQuality` | *number* | :heavy_minus_sign: | Target photo quality. | 50 | | `videoResolution` | *string* | :heavy_minus_sign: | Target maximum video resolution. | 1080x1080 | diff --git a/docs/sdk/models/operations/transcodesubtitlessubtitles.md b/docs/models/operations/transcodesubtitlessubtitles.md similarity index 90% rename from docs/sdk/models/operations/transcodesubtitlessubtitles.md rename to docs/models/operations/transcodesubtitlessubtitles.md index efc9c100..823b2af5 100644 --- a/docs/sdk/models/operations/transcodesubtitlessubtitles.md +++ b/docs/models/operations/transcodesubtitlessubtitles.md @@ -6,7 +6,7 @@ Indicates how subtitles should be included: * 'auto' - Compute the appropriate s ## Example Usage ```typescript -import { TranscodeSubtitlesSubtitles } from "@lukehagar/plexjs/sdk/models/operations"; +import { TranscodeSubtitlesSubtitles } from "@lukehagar/plexjs/models/operations"; let value: TranscodeSubtitlesSubtitles = TranscodeSubtitlesSubtitles.Burn; ``` diff --git a/docs/sdk/models/operations/trial.md b/docs/models/operations/trial.md similarity index 75% rename from docs/sdk/models/operations/trial.md rename to docs/models/operations/trial.md index 0564aae0..8af7a0f6 100644 --- a/docs/sdk/models/operations/trial.md +++ b/docs/models/operations/trial.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Trial } from "@lukehagar/plexjs/sdk/models/operations"; +import { Trial } from "@lukehagar/plexjs/models/operations"; let value: Trial = {}; ``` diff --git a/docs/sdk/models/operations/triggerfallbackglobals.md b/docs/models/operations/triggerfallbackglobals.md similarity index 96% rename from docs/sdk/models/operations/triggerfallbackglobals.md rename to docs/models/operations/triggerfallbackglobals.md index 550bf63e..3d0541d9 100644 --- a/docs/sdk/models/operations/triggerfallbackglobals.md +++ b/docs/models/operations/triggerfallbackglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { TriggerFallbackGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { TriggerFallbackGlobals } from "@lukehagar/plexjs/models/operations"; let value: TriggerFallbackGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: TriggerFallbackGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/triggerfallbackrequest.md b/docs/models/operations/triggerfallbackrequest.md new file mode 100644 index 00000000..2602fa69 --- /dev/null +++ b/docs/models/operations/triggerfallbackrequest.md @@ -0,0 +1,30 @@ +# TriggerFallbackRequest + +## Example Usage + +```typescript +import { TriggerFallbackRequest } from "@lukehagar/plexjs/models/operations"; +import { TranscodeType } from "@lukehagar/plexjs/models/shared"; + +let value: TriggerFallbackRequest = { + transcodeType: TranscodeType.Video, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | 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](../../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/models/operations/tunechannelglobals.md similarity index 96% rename from docs/sdk/models/operations/tunechannelglobals.md rename to docs/models/operations/tunechannelglobals.md index 1cac4fce..5308b54c 100644 --- a/docs/sdk/models/operations/tunechannelglobals.md +++ b/docs/models/operations/tunechannelglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { TuneChannelGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { TuneChannelGlobals } from "@lukehagar/plexjs/models/operations"; let value: TuneChannelGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: TuneChannelGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/tunechannelrequest.md b/docs/models/operations/tunechannelrequest.md similarity index 97% rename from docs/sdk/models/operations/tunechannelrequest.md rename to docs/models/operations/tunechannelrequest.md index 02e21974..ce562598 100644 --- a/docs/sdk/models/operations/tunechannelrequest.md +++ b/docs/models/operations/tunechannelrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { TuneChannelRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { TuneChannelRequest } from "@lukehagar/plexjs/models/operations"; let value: TuneChannelRequest = { dvrId: 557918, @@ -15,7 +15,7 @@ let value: TuneChannelRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/tunechannelresponse.md b/docs/models/operations/tunechannelresponse.md new file mode 100644 index 00000000..7a3ef2a7 --- /dev/null +++ b/docs/models/operations/tunechannelresponse.md @@ -0,0 +1,224 @@ +# TuneChannelResponse + +## Example Usage + +```typescript +import { TuneChannelResponse } from "@lukehagar/plexjs/models/operations"; + +let value: TuneChannelResponse = { + headers: { + "key": [], + "key1": [ + "", + "", + "", + ], + "key2": [], + }, + result: { + mediaContainer: { + metadata: [ + { + title: "", + type: "", + addedAt: 29550, + art: "/library/metadata/58683/art/1703239236", + autotag: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + chapterSource: "media", + childCount: 1, + country: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + director: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + genre: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + grandparentGuid: "plex://show/5d9c081b170e24001f2a7be4", + guid: "plex://movie/5d7768ba96b655001fdc0408", + guids: [ + { + id: + "{\"imdbExample\":{\"summary\":\"IMDB example\",\"value\":\"imdb://tt13015952\"},\"tmdbExample\":{\"summary\":\"TMDB example\",\"value\":\"tmdb://2434012\"},\"tvdbExample\":{\"summary\":\"TVDB example\",\"value\":\"tvdb://7945991\"}}", + }, + ], + key: "", + lastViewedAt: 1556281940, + 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: [ + { + accessible: true, + audioProfile: "lc", + container: "mov", + duration: 150192, + exists: true, + file: "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", + has64bitOffsets: false, + id: 1, + indexes: "sd", + key: "/library/parts/1/1531779263/file.mov", + optimizedForStreaming: false, + size: 105355654, + stream: [ + { + default: true, + audioChannelLayout: "5.1(side)", + channels: 6, + bitDepth: 10, + doviblCompatID: 1, + doviblPresent: true, + dovielPresent: false, + doviLevel: 6, + doviPresent: true, + doviProfile: 8, + dovirpuPresent: true, + doviVersion: "1.0", + bitrate: 24743, + canAutoSync: false, + chromaLocation: "topleft", + chromaSubsampling: "4:2:0", + codedHeight: 1608, + codedWidth: 3840, + closedCaptions: true, + codec: "hevc", + colorPrimaries: "bt2020", + colorRange: "tv", + colorSpace: "bt2020nc", + colorTrc: "smpte2084", + displayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + extendedDisplayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + frameRate: 23.976, + hasScalingMatrix: false, + height: 1602, + id: 1002625, + index: 0, + key: "/library/streams/216389", + language: "English", + languageCode: "eng", + languageTag: "en", + format: "srt", + headerCompression: true, + level: 150, + original: true, + profile: "main 10", + refFrames: 1, + samplingRate: 48000, + scanType: "progressive", + embeddedInVideo: "progressive", + selected: true, + forced: true, + hearingImpaired: true, + dub: true, + title: "SDH", + streamIdentifier: 1, + width: 3840, + }, + ], + videoProfile: "main", + }, + ], + videoCodec: "h264", + videoFrameRate: "24p", + videoProfile: "main", + videoResolution: "720", + width: 1280, + }, + ], + originallyAvailableAt: new Date("2022-12-14"), + parentGuid: "plex://show/5d9c081b170e24001f2a7be4", + ratingArray: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + role: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + theme: "/library/metadata/1/theme/1705636920", + thumb: "/library/metadata/58683/thumb/1703239236", + writer: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [shared.MediaContainerWithMetadata](../../models/shared/mediacontainerwithmetadata.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/ultrablurcolor.md b/docs/models/operations/ultrablurcolor.md similarity index 94% rename from docs/sdk/models/operations/ultrablurcolor.md rename to docs/models/operations/ultrablurcolor.md index f9a96424..ffb659e9 100644 --- a/docs/sdk/models/operations/ultrablurcolor.md +++ b/docs/models/operations/ultrablurcolor.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { UltraBlurColor } from "@lukehagar/plexjs/sdk/models/operations"; +import { UltraBlurColor } from "@lukehagar/plexjs/models/operations"; let value: UltraBlurColor = {}; ``` diff --git a/docs/sdk/models/operations/unmatchglobals.md b/docs/models/operations/unmatchglobals.md similarity index 97% rename from docs/sdk/models/operations/unmatchglobals.md rename to docs/models/operations/unmatchglobals.md index a6f038bd..9b210acb 100644 --- a/docs/sdk/models/operations/unmatchglobals.md +++ b/docs/models/operations/unmatchglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { UnmatchGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { UnmatchGlobals } from "@lukehagar/plexjs/models/operations"; let value: UnmatchGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: UnmatchGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/unmatchrequest.md b/docs/models/operations/unmatchrequest.md similarity index 97% rename from docs/sdk/models/operations/unmatchrequest.md rename to docs/models/operations/unmatchrequest.md index 6bc5dd1d..a313f7b9 100644 --- a/docs/sdk/models/operations/unmatchrequest.md +++ b/docs/models/operations/unmatchrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { UnmatchRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { UnmatchRequest } from "@lukehagar/plexjs/models/operations"; let value: UnmatchRequest = { ids: "", @@ -14,7 +14,7 @@ let value: UnmatchRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/unscrobbleglobals.md b/docs/models/operations/unscrobbleglobals.md similarity index 96% rename from docs/sdk/models/operations/unscrobbleglobals.md rename to docs/models/operations/unscrobbleglobals.md index 8e8d7814..1054e153 100644 --- a/docs/sdk/models/operations/unscrobbleglobals.md +++ b/docs/models/operations/unscrobbleglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { UnscrobbleGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { UnscrobbleGlobals } from "@lukehagar/plexjs/models/operations"; let value: UnscrobbleGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: UnscrobbleGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/unscrobblerequest.md b/docs/models/operations/unscrobblerequest.md similarity index 98% rename from docs/sdk/models/operations/unscrobblerequest.md rename to docs/models/operations/unscrobblerequest.md index 7fd0636e..4042ef6c 100644 --- a/docs/sdk/models/operations/unscrobblerequest.md +++ b/docs/models/operations/unscrobblerequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { UnscrobbleRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { UnscrobbleRequest } from "@lukehagar/plexjs/models/operations"; let value: UnscrobbleRequest = { identifier: "", @@ -14,7 +14,7 @@ let value: UnscrobbleRequest = { | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/unshuffleglobals.md b/docs/models/operations/unshuffleglobals.md similarity index 97% rename from docs/sdk/models/operations/unshuffleglobals.md rename to docs/models/operations/unshuffleglobals.md index 0c9690c7..538a4d01 100644 --- a/docs/sdk/models/operations/unshuffleglobals.md +++ b/docs/models/operations/unshuffleglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { UnshuffleGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { UnshuffleGlobals } from "@lukehagar/plexjs/models/operations"; let value: UnshuffleGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: UnshuffleGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/unshufflerequest.md b/docs/models/operations/unshufflerequest.md similarity index 97% rename from docs/sdk/models/operations/unshufflerequest.md rename to docs/models/operations/unshufflerequest.md index 9184db48..55ebc731 100644 --- a/docs/sdk/models/operations/unshufflerequest.md +++ b/docs/models/operations/unshufflerequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { UnshuffleRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { UnshuffleRequest } from "@lukehagar/plexjs/models/operations"; let value: UnshuffleRequest = { playQueueId: 419403, @@ -14,7 +14,7 @@ let value: UnshuffleRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/updatehubvisibilityglobals.md b/docs/models/operations/updatehubvisibilityglobals.md similarity index 96% rename from docs/sdk/models/operations/updatehubvisibilityglobals.md rename to docs/models/operations/updatehubvisibilityglobals.md index 134de9a9..20009068 100644 --- a/docs/sdk/models/operations/updatehubvisibilityglobals.md +++ b/docs/models/operations/updatehubvisibilityglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { UpdateHubVisibilityGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { UpdateHubVisibilityGlobals } from "@lukehagar/plexjs/models/operations"; let value: UpdateHubVisibilityGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: UpdateHubVisibilityGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/updatehubvisibilityrequest.md b/docs/models/operations/updatehubvisibilityrequest.md similarity index 93% rename from docs/sdk/models/operations/updatehubvisibilityrequest.md rename to docs/models/operations/updatehubvisibilityrequest.md index a8dcbc29..09507bc6 100644 --- a/docs/sdk/models/operations/updatehubvisibilityrequest.md +++ b/docs/models/operations/updatehubvisibilityrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { UpdateHubVisibilityRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { UpdateHubVisibilityRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: UpdateHubVisibilityRequest = { sectionId: 174620, @@ -19,7 +19,7 @@ let value: UpdateHubVisibilityRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -32,6 +32,6 @@ let value: UpdateHubVisibilityRequest = { | `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 | -| `promotedToOwnHome` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Whether this hub should be displayed in admin's home | 1 | -| `promotedToSharedHome` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Whether this hub should be displayed in shared user's home | 1 | \ No newline at end of file +| `promotedToRecommended` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Whether this hub should be displayed in recommended | 1 | +| `promotedToOwnHome` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Whether this hub should be displayed in admin's home | 1 | +| `promotedToSharedHome` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Whether this hub should be displayed in shared user's home | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/updateitemartworkelement.md b/docs/models/operations/updateitemartworkelement.md similarity index 82% rename from docs/sdk/models/operations/updateitemartworkelement.md rename to docs/models/operations/updateitemartworkelement.md index 33ee698a..a67308ae 100644 --- a/docs/sdk/models/operations/updateitemartworkelement.md +++ b/docs/models/operations/updateitemartworkelement.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { UpdateItemArtworkElement } from "@lukehagar/plexjs/sdk/models/operations"; +import { UpdateItemArtworkElement } from "@lukehagar/plexjs/models/operations"; let value: UpdateItemArtworkElement = UpdateItemArtworkElement.Banner; ``` diff --git a/docs/sdk/models/operations/updateitemartworkglobals.md b/docs/models/operations/updateitemartworkglobals.md similarity index 96% rename from docs/sdk/models/operations/updateitemartworkglobals.md rename to docs/models/operations/updateitemartworkglobals.md index 261152ad..83332a0e 100644 --- a/docs/sdk/models/operations/updateitemartworkglobals.md +++ b/docs/models/operations/updateitemartworkglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { UpdateItemArtworkGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { UpdateItemArtworkGlobals } from "@lukehagar/plexjs/models/operations"; let value: UpdateItemArtworkGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: UpdateItemArtworkGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/models/operations/updateitemartworkrequest.md b/docs/models/operations/updateitemartworkrequest.md new file mode 100644 index 00000000..7cd984c2 --- /dev/null +++ b/docs/models/operations/updateitemartworkrequest.md @@ -0,0 +1,31 @@ +# UpdateItemArtworkRequest + +## Example Usage + +```typescript +import { UpdateItemArtworkElement, UpdateItemArtworkRequest } from "@lukehagar/plexjs/models/operations"; + +let value: UpdateItemArtworkRequest = { + ids: "", + element: UpdateItemArtworkElement.Art, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | 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](../../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/models/operations/updateitemsglobals.md similarity index 96% rename from docs/sdk/models/operations/updateitemsglobals.md rename to docs/models/operations/updateitemsglobals.md index e96a1e10..177fda90 100644 --- a/docs/sdk/models/operations/updateitemsglobals.md +++ b/docs/models/operations/updateitemsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { UpdateItemsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { UpdateItemsGlobals } from "@lukehagar/plexjs/models/operations"; let value: UpdateItemsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: UpdateItemsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/updateitemsrequest.md b/docs/models/operations/updateitemsrequest.md similarity index 98% rename from docs/sdk/models/operations/updateitemsrequest.md rename to docs/models/operations/updateitemsrequest.md index c2e7c6b6..efd9486f 100644 --- a/docs/sdk/models/operations/updateitemsrequest.md +++ b/docs/models/operations/updateitemsrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { UpdateItemsRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { UpdateItemsRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: UpdateItemsRequest = { sectionId: "", @@ -16,7 +16,7 @@ let value: UpdateItemsRequest = { | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -31,7 +31,7 @@ let value: UpdateItemsRequest = { | `type` | *string* | :heavy_minus_sign: | N/A | | | `filters` | *string* | :heavy_minus_sign: | The filters to apply to determine which items should be modified | | | `fieldValue` | *string* | :heavy_minus_sign: | Set the specified field to a new value | | -| `fieldLocked` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Set the specified field to locked (or unlocked if set to 0) | 1 | +| `fieldLocked` | [shared.BoolInt](../../models/shared/boolint.md) | :heavy_minus_sign: | Set the specified field to locked (or unlocked if set to 0) | 1 | | `titleValue` | *string* | :heavy_minus_sign: | This field is treated specially by albums or artists and may be used for implicit reparenting. | | | `artistTitleValue` | *string* | :heavy_minus_sign: | Reparents set of Tracks or Albums - used with album.title.* in the case of tracks | | | `artistTitleId` | *string* | :heavy_minus_sign: | Reparents set of Tracks or Albums - used with album.title.* in the case of tracks | | diff --git a/docs/sdk/models/operations/updateplaylistglobals.md b/docs/models/operations/updateplaylistglobals.md similarity index 96% rename from docs/sdk/models/operations/updateplaylistglobals.md rename to docs/models/operations/updateplaylistglobals.md index 62a06638..b208c40c 100644 --- a/docs/sdk/models/operations/updateplaylistglobals.md +++ b/docs/models/operations/updateplaylistglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { UpdatePlaylistGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { UpdatePlaylistGlobals } from "@lukehagar/plexjs/models/operations"; let value: UpdatePlaylistGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: UpdatePlaylistGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/updateplaylistrequest.md b/docs/models/operations/updateplaylistrequest.md similarity index 96% rename from docs/sdk/models/operations/updateplaylistrequest.md rename to docs/models/operations/updateplaylistrequest.md index b21a8123..ec490cfa 100644 --- a/docs/sdk/models/operations/updateplaylistrequest.md +++ b/docs/models/operations/updateplaylistrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { UpdatePlaylistRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { UpdatePlaylistRequest } from "@lukehagar/plexjs/models/operations"; let value: UpdatePlaylistRequest = { playlistId: 534323, @@ -14,7 +14,7 @@ let value: UpdatePlaylistRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/uploadplaylistglobals.md b/docs/models/operations/uploadplaylistglobals.md similarity index 96% rename from docs/sdk/models/operations/uploadplaylistglobals.md rename to docs/models/operations/uploadplaylistglobals.md index c18126bb..bb0d3c4b 100644 --- a/docs/sdk/models/operations/uploadplaylistglobals.md +++ b/docs/models/operations/uploadplaylistglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { UploadPlaylistGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { UploadPlaylistGlobals } from "@lukehagar/plexjs/models/operations"; let value: UploadPlaylistGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: UploadPlaylistGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/uploadplaylistrequest.md b/docs/models/operations/uploadplaylistrequest.md similarity index 99% rename from docs/sdk/models/operations/uploadplaylistrequest.md rename to docs/models/operations/uploadplaylistrequest.md index 29884428..79e60264 100644 --- a/docs/sdk/models/operations/uploadplaylistrequest.md +++ b/docs/models/operations/uploadplaylistrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { UploadPlaylistRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { UploadPlaylistRequest } from "@lukehagar/plexjs/models/operations"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: UploadPlaylistRequest = { path: "/home/barkley/playlist.m3u", @@ -16,7 +16,7 @@ let value: UploadPlaylistRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -28,4 +28,4 @@ let value: UploadPlaylistRequest = { | `deviceName` | *string* | :heavy_minus_sign: | 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 +| `force` | [shared.BoolInt](../../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/models/operations/user.md b/docs/models/operations/user.md new file mode 100644 index 00000000..34236b62 --- /dev/null +++ b/docs/models/operations/user.md @@ -0,0 +1,80 @@ +# User + +## Example Usage + +```typescript +import { + AllLibraries, + AllowCameraUpload, + AllowChannels, + AllowSubtitleAdmin, + AllowSync, + AllowTuners, + Home, + Owned, + Pending, + Protected, + Restricted, + User, +} from "@lukehagar/plexjs/models/operations"; + +let value: User = { + id: 22526914, + title: "Plex User", + username: "zgfuc7krcqfimrmb9lsl5j", + email: "zgfuc7krcqfimrmb9lsl5j@protonmail.com", + recommendationsPlaylistId: "", + thumb: "https://plex.tv/users/3346028014e93acd/avatar?c=1731605021", + protected: Protected.Enable, + home: Home.Enable, + allowTuners: AllowTuners.Enable, + allowSync: AllowSync.Enable, + allowCameraUpload: AllowCameraUpload.Enable, + allowChannels: AllowChannels.Enable, + allowSubtitleAdmin: AllowSubtitleAdmin.Enable, + filterAll: "", + filterMovies: "", + filterMusic: "", + filterPhotos: "", + filterTelevision: "", + restricted: Restricted.Enable, + server: [ + { + id: 907759180, + serverId: 9999999, + machineIdentifier: "fbb8aa6be6e0c997c6268bc2b4431c8807f70a3", + name: "ConnectedUserFlix", + lastSeenAt: 1556281940, + numLibraries: 16, + allLibraries: AllLibraries.Enable, + owned: Owned.Enable, + pending: Pending.Enable, + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `id` | *number* | :heavy_check_mark: | User's unique ID. | 22526914 | +| `title` | *string* | :heavy_check_mark: | User's display name. | Plex User | +| `username` | *string* | :heavy_check_mark: | User's username. | zgfuc7krcqfimrmb9lsl5j | +| `email` | *string* | :heavy_check_mark: | User's email address. | zgfuc7krcqfimrmb9lsl5j@protonmail.com | +| `recommendationsPlaylistId` | *string* | :heavy_minus_sign: | ID of the user's recommendation playlist. | | +| `thumb` | *string* | :heavy_check_mark: | URL to the user's avatar image. | https://plex.tv/users/3346028014e93acd/avatar?c=1731605021 | +| `protected` | [operations.Protected](../../models/operations/protected.md) | :heavy_minus_sign: | N/A | 1 | +| `home` | [operations.Home](../../models/operations/home.md) | :heavy_minus_sign: | N/A | 1 | +| `allowTuners` | [operations.AllowTuners](../../models/operations/allowtuners.md) | :heavy_minus_sign: | N/A | 1 | +| `allowSync` | [operations.AllowSync](../../models/operations/allowsync.md) | :heavy_minus_sign: | N/A | 1 | +| `allowCameraUpload` | [operations.AllowCameraUpload](../../models/operations/allowcameraupload.md) | :heavy_minus_sign: | N/A | 1 | +| `allowChannels` | [operations.AllowChannels](../../models/operations/allowchannels.md) | :heavy_minus_sign: | N/A | 1 | +| `allowSubtitleAdmin` | [operations.AllowSubtitleAdmin](../../models/operations/allowsubtitleadmin.md) | :heavy_minus_sign: | N/A | 1 | +| `filterAll` | *string* | :heavy_minus_sign: | Filters applied for all content. | | +| `filterMovies` | *string* | :heavy_minus_sign: | Filters applied for movies. | | +| `filterMusic` | *string* | :heavy_minus_sign: | Filters applied for music. | | +| `filterPhotos` | *string* | :heavy_minus_sign: | Filters applied for photos. | | +| `filterTelevision` | *string* | :heavy_minus_sign: | Filters applied for television. | | +| `restricted` | [operations.Restricted](../../models/operations/restricted.md) | :heavy_minus_sign: | N/A | 1 | +| `server` | [operations.Server](../../models/operations/server.md)[] | :heavy_check_mark: | List of servers owned by the user. | | \ No newline at end of file diff --git a/docs/sdk/models/operations/userplexaccount.md b/docs/models/operations/userplexaccount.md similarity index 98% rename from docs/sdk/models/operations/userplexaccount.md rename to docs/models/operations/userplexaccount.md index 1fbe28a7..eea7937d 100644 --- a/docs/sdk/models/operations/userplexaccount.md +++ b/docs/models/operations/userplexaccount.md @@ -11,14 +11,14 @@ import { SubscriptionStatus1, SubscriptionStatus2, UserPlexAccount, -} from "@lukehagar/plexjs/sdk/models/operations"; +} from "@lukehagar/plexjs/models/operations"; import { AutoSelectSubtitle, DefaultSubtitleAccessibility, DefaultSubtitleForced, MediaReviewsVisibility, WatchedIndicator, -} from "@lukehagar/plexjs/sdk/models/shared"; +} from "@lukehagar/plexjs/models/shared"; let value: UserPlexAccount = { adsConsentReminderAt: 1556281940, @@ -103,24 +103,24 @@ let value: UserPlexAccount = { | `joinedAt` | *number* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 | | `locale` | *string* | :heavy_minus_sign: | The account locale | | | `mailingListActive` | *boolean* | :heavy_minus_sign: | If you are subscribed to the Plex newsletter | | -| `mailingListStatus` | [operations.MailingListStatus](../../../sdk/models/operations/mailingliststatus.md) | :heavy_minus_sign: | Your current mailing list status | active | +| `mailingListStatus` | [operations.MailingListStatus](../../models/operations/mailingliststatus.md) | :heavy_minus_sign: | Your current mailing list status | active | | `maxHomeSize` | *number* | :heavy_minus_sign: | The maximum number of accounts allowed in the Plex Home | 15 | | ~~`pin`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

[Might be removed] The hashed Plex Home PIN | | -| `profile` | [shared.UserProfile](../../../sdk/models/shared/userprofile.md) | :heavy_minus_sign: | N/A | | +| `profile` | [shared.UserProfile](../../models/shared/userprofile.md) | :heavy_minus_sign: | N/A | | | `protected` | *boolean* | :heavy_minus_sign: | If the account has a Plex Home PIN enabled | | | `rememberExpiresAt` | *number* | :heavy_minus_sign: | Unix epoch datetime in seconds | 1556281940 | | `restricted` | *boolean* | :heavy_minus_sign: | If the account is a Plex Home managed user | | | `roles` | *string*[] | :heavy_minus_sign: | [Might be removed] List of account roles. Plexpass membership listed here | | | `scrobbleTypes` | *string* | :heavy_minus_sign: | Unknown | | -| `services` | [operations.Service](../../../sdk/models/operations/service.md)[] | :heavy_minus_sign: | N/A | | -| `subscription` | [operations.Subscription1](../../../sdk/models/operations/subscription1.md) | :heavy_minus_sign: | If the account's Plex Pass subscription is active | | +| `services` | [operations.Service](../../models/operations/service.md)[] | :heavy_minus_sign: | N/A | | +| `subscription` | [operations.Subscription1](../../models/operations/subscription1.md) | :heavy_minus_sign: | If the account's Plex Pass subscription is active | | | `subscriptionDescription` | *string* | :heavy_minus_sign: | Description of the Plex Pass subscription | | -| `subscriptions` | [operations.Subscription2](../../../sdk/models/operations/subscription2.md)[] | :heavy_minus_sign: | N/A | | +| `subscriptions` | [operations.Subscription2](../../models/operations/subscription2.md)[] | :heavy_minus_sign: | N/A | | | `thumb` | *string* | :heavy_minus_sign: | URL of the account thumbnail | https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101 | | `title` | *string* | :heavy_check_mark: | The title of the account (username or friendly name) | UsernameTitle | | `twoFactorEnabled` | *boolean* | :heavy_minus_sign: | If two-factor authentication is enabled | | | `username` | *string* | :heavy_check_mark: | The account username | Username | | `uuid` | *string* | :heavy_check_mark: | The account UUID | dae343c1f45beb4f | | `attributionPartner` | *string* | :heavy_minus_sign: | N/A | | -| `pastSubscriptions` | [operations.PastSubscription](../../../sdk/models/operations/pastsubscription.md)[] | :heavy_check_mark: | N/A | | -| `trials` | [operations.Trial](../../../sdk/models/operations/trial.md)[] | :heavy_check_mark: | N/A | | \ No newline at end of file +| `pastSubscriptions` | [operations.PastSubscription](../../models/operations/pastsubscription.md)[] | :heavy_check_mark: | N/A | | +| `trials` | [operations.Trial](../../models/operations/trial.md)[] | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/operations/voicesearchhubsglobals.md b/docs/models/operations/voicesearchhubsglobals.md similarity index 96% rename from docs/sdk/models/operations/voicesearchhubsglobals.md rename to docs/models/operations/voicesearchhubsglobals.md index 1e2e7f7a..ab893fe7 100644 --- a/docs/sdk/models/operations/voicesearchhubsglobals.md +++ b/docs/models/operations/voicesearchhubsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { VoiceSearchHubsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { VoiceSearchHubsGlobals } from "@lukehagar/plexjs/models/operations"; let value: VoiceSearchHubsGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: VoiceSearchHubsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/voicesearchhubsmediacontainer.md b/docs/models/operations/voicesearchhubsmediacontainer.md similarity index 98% rename from docs/sdk/models/operations/voicesearchhubsmediacontainer.md rename to docs/models/operations/voicesearchhubsmediacontainer.md index 5865aacb..fc1b6a02 100644 --- a/docs/sdk/models/operations/voicesearchhubsmediacontainer.md +++ b/docs/models/operations/voicesearchhubsmediacontainer.md @@ -8,8 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { VoiceSearchHubsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { VoiceSearchHubsMediaContainer } from "@lukehagar/plexjs/models/operations"; let value: VoiceSearchHubsMediaContainer = { hub: [ @@ -173,7 +172,7 @@ let value: VoiceSearchHubsMediaContainer = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -228,4 +227,4 @@ let value: VoiceSearchHubsMediaContainer = { | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `hub` | [shared.Hub](../../../sdk/models/shared/hub.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `hub` | [shared.Hub](../../models/shared/hub.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/voicesearchhubsrequest.md b/docs/models/operations/voicesearchhubsrequest.md similarity index 98% rename from docs/sdk/models/operations/voicesearchhubsrequest.md rename to docs/models/operations/voicesearchhubsrequest.md index 63944725..ebfb7895 100644 --- a/docs/sdk/models/operations/voicesearchhubsrequest.md +++ b/docs/models/operations/voicesearchhubsrequest.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { VoiceSearchHubsRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { MediaType } from "@lukehagar/plexjs/sdk/models/shared"; +import { VoiceSearchHubsRequest } from "@lukehagar/plexjs/models/operations"; +import { MediaType } from "@lukehagar/plexjs/models/shared"; let value: VoiceSearchHubsRequest = { query: "", @@ -16,7 +16,7 @@ let value: VoiceSearchHubsRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -28,5 +28,5 @@ let value: VoiceSearchHubsRequest = { | `deviceName` | *string* | :heavy_minus_sign: | 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` | [shared.MediaType](../../../sdk/models/shared/mediatype.md) | :heavy_minus_sign: | The type of media to retrieve or filter by.

1 = movie
2 = show
3 = season
4 = episode
5 = artist
6 = album
7 = track
8 = photo_album
9 = photo

E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
| 2 | +| `type` | [shared.MediaType](../../models/shared/mediatype.md) | :heavy_minus_sign: | The type of media to retrieve or filter by.

1 = movie
2 = show
3 = season
4 = episode
5 = artist
6 = album
7 = track
8 = photo_album
9 = photo

E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
| 2 | | `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/models/operations/voicesearchhubsresponse.md b/docs/models/operations/voicesearchhubsresponse.md new file mode 100644 index 00000000..a3fd31b3 --- /dev/null +++ b/docs/models/operations/voicesearchhubsresponse.md @@ -0,0 +1,235 @@ +# VoiceSearchHubsResponse + +## Example Usage + +```typescript +import { VoiceSearchHubsResponse } from "@lukehagar/plexjs/models/operations"; + +let value: VoiceSearchHubsResponse = { + headers: { + "key": [ + "", + ], + "key1": [ + "", + ], + }, + result: { + mediaContainer: { + hub: [ + { + type: "track", + context: "hub.home.onDeck", + hubIdentifier: "home.onDeck", + key: "/hubs/sections/home/onDeck", + metadata: [ + { + title: "", + type: "", + addedAt: 29550, + art: "/library/metadata/58683/art/1703239236", + autotag: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + chapterSource: "media", + childCount: 1, + country: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + director: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + genre: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + grandparentGuid: "plex://show/5d9c081b170e24001f2a7be4", + guid: "plex://movie/5d7768ba96b655001fdc0408", + guids: [ + { + id: + "{\"imdbExample\":{\"summary\":\"IMDB example\",\"value\":\"imdb://tt13015952\"},\"tmdbExample\":{\"summary\":\"TMDB example\",\"value\":\"tmdb://2434012\"},\"tvdbExample\":{\"summary\":\"TVDB example\",\"value\":\"tvdb://7945991\"}}", + }, + ], + key: "", + lastViewedAt: 1556281940, + 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: [ + { + accessible: true, + audioProfile: "lc", + container: "mov", + duration: 150192, + exists: true, + file: + "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", + has64bitOffsets: false, + id: 1, + indexes: "sd", + key: "/library/parts/1/1531779263/file.mov", + optimizedForStreaming: false, + size: 105355654, + stream: [ + { + default: true, + audioChannelLayout: "5.1(side)", + channels: 6, + bitDepth: 10, + doviblCompatID: 1, + doviblPresent: true, + dovielPresent: false, + doviLevel: 6, + doviPresent: true, + doviProfile: 8, + dovirpuPresent: true, + doviVersion: "1.0", + bitrate: 24743, + canAutoSync: false, + chromaLocation: "topleft", + chromaSubsampling: "4:2:0", + codedHeight: 1608, + codedWidth: 3840, + closedCaptions: true, + codec: "hevc", + colorPrimaries: "bt2020", + colorRange: "tv", + colorSpace: "bt2020nc", + colorTrc: "smpte2084", + displayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + extendedDisplayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + frameRate: 23.976, + hasScalingMatrix: false, + height: 1602, + id: 1002625, + index: 0, + key: "/library/streams/216389", + language: "English", + languageCode: "eng", + languageTag: "en", + format: "srt", + headerCompression: true, + level: 150, + original: true, + profile: "main 10", + refFrames: 1, + samplingRate: 48000, + scanType: "progressive", + embeddedInVideo: "progressive", + selected: true, + forced: true, + hearingImpaired: true, + dub: true, + title: "SDH", + streamIdentifier: 1, + width: 3840, + }, + ], + videoProfile: "main", + }, + ], + videoCodec: "h264", + videoFrameRate: "24p", + videoProfile: "main", + videoResolution: "720", + width: 1280, + }, + ], + originallyAvailableAt: new Date("2022-12-14"), + parentGuid: "plex://show/5d9c081b170e24001f2a7be4", + ratingArray: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + role: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + theme: "/library/metadata/1/theme/1705636920", + thumb: "/library/metadata/58683/thumb/1703239236", + writer: [ + { + filter: "actor=49", + ratingKey: "58683", + role: "Secretary", + tag: "Shaun Lawton", + tagKey: "5d3ee12c4cde6a001c3e0b27", + thumb: + "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", + }, + ], + }, + ], + size: 1, + subtype: "podcast", + totalSize: 8, + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | [operations.VoiceSearchHubsResponseBody](../../models/operations/voicesearchhubsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/voicesearchhubsresponsebody.md b/docs/models/operations/voicesearchhubsresponsebody.md similarity index 88% rename from docs/sdk/models/operations/voicesearchhubsresponsebody.md rename to docs/models/operations/voicesearchhubsresponsebody.md index 8357cabe..64220482 100644 --- a/docs/sdk/models/operations/voicesearchhubsresponsebody.md +++ b/docs/models/operations/voicesearchhubsresponsebody.md @@ -5,8 +5,7 @@ OK ## Example Usage ```typescript -import { VoiceSearchHubsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { VoiceSearchHubsResponseBody } from "@lukehagar/plexjs/models/operations"; let value: VoiceSearchHubsResponseBody = { mediaContainer: { @@ -172,7 +171,7 @@ let value: VoiceSearchHubsResponseBody = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -222,6 +221,6 @@ let value: VoiceSearchHubsResponseBody = { ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.VoiceSearchHubsMediaContainer](../../../sdk/models/operations/voicesearchhubsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.VoiceSearchHubsMediaContainer](../../models/operations/voicesearchhubsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/writemessageglobals.md b/docs/models/operations/writemessageglobals.md similarity index 96% rename from docs/sdk/models/operations/writemessageglobals.md rename to docs/models/operations/writemessageglobals.md index 0efade09..808e2f7b 100644 --- a/docs/sdk/models/operations/writemessageglobals.md +++ b/docs/models/operations/writemessageglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { WriteMessageGlobals } from "@lukehagar/plexjs/sdk/models/operations"; +import { WriteMessageGlobals } from "@lukehagar/plexjs/models/operations"; let value: WriteMessageGlobals = { clientIdentifier: "abc123", @@ -23,7 +23,7 @@ let value: WriteMessageGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | diff --git a/docs/sdk/models/operations/writemessagelevel.md b/docs/models/operations/writemessagelevel.md similarity index 83% rename from docs/sdk/models/operations/writemessagelevel.md rename to docs/models/operations/writemessagelevel.md index 87c20e14..9c9273f4 100644 --- a/docs/sdk/models/operations/writemessagelevel.md +++ b/docs/models/operations/writemessagelevel.md @@ -11,7 +11,7 @@ An integer log level to write to the PMS log with. ## Example Usage ```typescript -import { WriteMessageLevel } from "@lukehagar/plexjs/sdk/models/operations"; +import { WriteMessageLevel } from "@lukehagar/plexjs/models/operations"; let value: WriteMessageLevel = WriteMessageLevel.Four; ``` diff --git a/docs/sdk/models/operations/writemessagerequest.md b/docs/models/operations/writemessagerequest.md similarity index 97% rename from docs/sdk/models/operations/writemessagerequest.md rename to docs/models/operations/writemessagerequest.md index ea8c7e5a..bcd2fe42 100644 --- a/docs/sdk/models/operations/writemessagerequest.md +++ b/docs/models/operations/writemessagerequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { WriteMessageRequest } from "@lukehagar/plexjs/sdk/models/operations"; +import { WriteMessageRequest } from "@lukehagar/plexjs/models/operations"; let value: WriteMessageRequest = {}; ``` @@ -12,7 +12,7 @@ let value: WriteMessageRequest = {}; | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `accepts` | [shared.Accepts](../../models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | | `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | | `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | | `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | @@ -23,6 +23,6 @@ let value: WriteMessageRequest = {}; | `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | | `deviceName` | *string* | :heavy_minus_sign: | 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
| | +| `level` | [operations.WriteMessageLevel](../../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/models/shared/accepts.md similarity index 81% rename from docs/sdk/models/shared/accepts.md rename to docs/models/shared/accepts.md index b9f1a59d..619ad117 100644 --- a/docs/sdk/models/shared/accepts.md +++ b/docs/models/shared/accepts.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; let value: Accepts = Accepts.ApplicationXml; ``` diff --git a/docs/sdk/models/shared/advancedsubtitles.md b/docs/models/shared/advancedsubtitles.md similarity index 77% rename from docs/sdk/models/shared/advancedsubtitles.md rename to docs/models/shared/advancedsubtitles.md index d548ff59..eb40c55f 100644 --- a/docs/sdk/models/shared/advancedsubtitles.md +++ b/docs/models/shared/advancedsubtitles.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { AdvancedSubtitles } from "@lukehagar/plexjs/sdk/models/shared"; +import { AdvancedSubtitles } from "@lukehagar/plexjs/models/shared"; let value: AdvancedSubtitles = AdvancedSubtitles.Burn; ``` diff --git a/docs/sdk/models/shared/airingstype.md b/docs/models/shared/airingstype.md similarity index 50% rename from docs/sdk/models/shared/airingstype.md rename to docs/models/shared/airingstype.md index 876e9d41..9e7fbdd3 100644 --- a/docs/sdk/models/shared/airingstype.md +++ b/docs/models/shared/airingstype.md @@ -3,14 +3,17 @@ ## Example Usage ```typescript -import { AiringsType } from "@lukehagar/plexjs/sdk/models/shared"; +import { AiringsType } from "@lukehagar/plexjs/models/shared"; let value: AiringsType = AiringsType.NewAndRepeatAirings; ``` ## Values +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + | Name | Value | | ---------------------- | ---------------------- | | `NewAiringsOnly` | New Airings Only | -| `NewAndRepeatAirings` | New and Repeat Airings | \ No newline at end of file +| `NewAndRepeatAirings` | New and Repeat Airings | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/sdk/models/shared/autoselectsubtitle.md b/docs/models/shared/autoselectsubtitle.md similarity index 62% rename from docs/sdk/models/shared/autoselectsubtitle.md rename to docs/models/shared/autoselectsubtitle.md index 34272fb0..91d9beba 100644 --- a/docs/sdk/models/shared/autoselectsubtitle.md +++ b/docs/models/shared/autoselectsubtitle.md @@ -5,15 +5,18 @@ The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign aud ## Example Usage ```typescript -import { AutoSelectSubtitle } from "@lukehagar/plexjs/sdk/models/shared"; +import { AutoSelectSubtitle } from "@lukehagar/plexjs/models/shared"; let value: AutoSelectSubtitle = AutoSelectSubtitle.ShownWithForeignAudio; ``` ## Values +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + | Name | Value | | ----------------------- | ----------------------- | | `ManuallySelected` | 0 | | `ShownWithForeignAudio` | 1 | -| `AlwaysEnabled` | 2 | \ No newline at end of file +| `AlwaysEnabled` | 2 | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/sdk/models/shared/boolint.md b/docs/models/shared/boolint.md similarity index 74% rename from docs/sdk/models/shared/boolint.md rename to docs/models/shared/boolint.md index 74b7becc..dcd47acb 100644 --- a/docs/sdk/models/shared/boolint.md +++ b/docs/models/shared/boolint.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { BoolInt } from "@lukehagar/plexjs/models/shared"; let value: BoolInt = BoolInt.True; ``` diff --git a/docs/sdk/models/shared/channel.md b/docs/models/shared/channel.md similarity index 93% rename from docs/sdk/models/shared/channel.md rename to docs/models/shared/channel.md index 246bfb7d..0d3f0e88 100644 --- a/docs/sdk/models/shared/channel.md +++ b/docs/models/shared/channel.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Channel } from "@lukehagar/plexjs/sdk/models/shared"; +import { Channel } from "@lukehagar/plexjs/models/shared"; let value: Channel = {}; ``` diff --git a/docs/sdk/models/shared/channelmapping.md b/docs/models/shared/channelmapping.md similarity index 89% rename from docs/sdk/models/shared/channelmapping.md rename to docs/models/shared/channelmapping.md index 8e9ea5c5..59890818 100644 --- a/docs/sdk/models/shared/channelmapping.md +++ b/docs/models/shared/channelmapping.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ChannelMapping } from "@lukehagar/plexjs/sdk/models/shared"; +import { ChannelMapping } from "@lukehagar/plexjs/models/shared"; let value: ChannelMapping = {}; ``` diff --git a/docs/sdk/models/shared/composite.md b/docs/models/shared/composite.md similarity index 89% rename from docs/sdk/models/shared/composite.md rename to docs/models/shared/composite.md index b64423a0..1815e4e2 100644 --- a/docs/sdk/models/shared/composite.md +++ b/docs/models/shared/composite.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Composite } from "@lukehagar/plexjs/sdk/models/shared"; +import { Composite } from "@lukehagar/plexjs/models/shared"; let value: Composite = {}; ``` @@ -13,13 +13,13 @@ let value: Composite = {}; | Field | Type | Required | Description | | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | | `type` | *number* | :heavy_minus_sign: | Limit composite to specified metadata types | -| `format` | [shared.Format](../../../sdk/models/shared/format.md) | :heavy_minus_sign: | The image type | +| `format` | [shared.Format](../../models/shared/format.md) | :heavy_minus_sign: | The image type | | `backgroundColor` | *string* | :heavy_minus_sign: | 6 character hex RGB value for background color for image | | `border` | *number* | :heavy_minus_sign: | The width of the intra-image border | | `cols` | *number* | :heavy_minus_sign: | Number of columns to construct in the composite image | -| `crop` | [shared.Crop](../../../sdk/models/shared/crop.md) | :heavy_minus_sign: | Where to crop source images to fit into composite image proportions | +| `crop` | [shared.Crop](../../models/shared/crop.md) | :heavy_minus_sign: | Where to crop source images to fit into composite image proportions | | `height` | *number* | :heavy_minus_sign: | The height of the image | -| `media` | [shared.MediaEnum](../../../sdk/models/shared/mediaenum.md) | :heavy_minus_sign: | The default image type to use as the sources | +| `media` | [shared.MediaEnum](../../models/shared/mediaenum.md) | :heavy_minus_sign: | The default image type to use as the sources | | `repeat` | *boolean* | :heavy_minus_sign: | Allow repetion of images if there are not enough source images to fill grid | | `rows` | *number* | :heavy_minus_sign: | Number of rows to construct in the composite image | | `width` | *number* | :heavy_minus_sign: | The width of the image | \ No newline at end of file diff --git a/docs/models/shared/connection.md b/docs/models/shared/connection.md new file mode 100644 index 00000000..7e21ece4 --- /dev/null +++ b/docs/models/shared/connection.md @@ -0,0 +1,29 @@ +# Connection + +## Example Usage + +```typescript +import { Connection, PlexDeviceProtocol } from "@lukehagar/plexjs/models/shared"; + +let value: Connection = { + protocol: PlexDeviceProtocol.Http, + address: "4285 E Central Avenue", + port: 663268, + uri: "https://decent-hippodrome.org/", + local: false, + relay: true, + iPv6: false, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `protocol` | [shared.PlexDeviceProtocol](../../models/shared/plexdeviceprotocol.md) | :heavy_check_mark: | The protocol used for the connection (http, https, etc) | http | +| `address` | *string* | :heavy_check_mark: | The (ip) address or domain name used for the connection | | +| `port` | *number* | :heavy_check_mark: | The port used for the connection | | +| `uri` | *string* | :heavy_check_mark: | The full URI of the connection | | +| `local` | *boolean* | :heavy_check_mark: | If the connection is local address | | +| `relay` | *boolean* | :heavy_check_mark: | If the connection is relayed through plex.direct | | +| `iPv6` | *boolean* | :heavy_check_mark: | If the connection is using IPv6 | | \ No newline at end of file diff --git a/docs/sdk/models/shared/crop.md b/docs/models/shared/crop.md similarity index 80% rename from docs/sdk/models/shared/crop.md rename to docs/models/shared/crop.md index 2c6a68b8..59b4185e 100644 --- a/docs/sdk/models/shared/crop.md +++ b/docs/models/shared/crop.md @@ -5,7 +5,7 @@ Where to crop source images to fit into composite image proportions ## Example Usage ```typescript -import { Crop } from "@lukehagar/plexjs/sdk/models/shared"; +import { Crop } from "@lukehagar/plexjs/models/shared"; let value: Crop = Crop.Center; ``` diff --git a/docs/models/shared/decision.md b/docs/models/shared/decision.md new file mode 100644 index 00000000..91672594 --- /dev/null +++ b/docs/models/shared/decision.md @@ -0,0 +1,20 @@ +# Decision + +## Example Usage + +```typescript +import { Decision } from "@lukehagar/plexjs/models/shared"; + +let value: Decision = Decision.Directplay; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Directplay` | directplay | +| `Transcode` | transcode | +| `None` | none | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/sdk/models/shared/default.md b/docs/models/shared/default.md similarity index 100% rename from docs/sdk/models/shared/default.md rename to docs/models/shared/default.md diff --git a/docs/sdk/models/shared/defaultaudioaccessibility.md b/docs/models/shared/defaultaudioaccessibility.md similarity index 68% rename from docs/sdk/models/shared/defaultaudioaccessibility.md rename to docs/models/shared/defaultaudioaccessibility.md index 7be977fd..e4063e62 100644 --- a/docs/sdk/models/shared/defaultaudioaccessibility.md +++ b/docs/models/shared/defaultaudioaccessibility.md @@ -5,7 +5,7 @@ The audio accessibility mode (0 = Prefer non-accessibility audio, 1 = Prefer acc ## Example Usage ```typescript -import { DefaultAudioAccessibility } from "@lukehagar/plexjs/sdk/models/shared"; +import { DefaultAudioAccessibility } from "@lukehagar/plexjs/models/shared"; let value: DefaultAudioAccessibility = DefaultAudioAccessibility.PreferNonAccessibility; @@ -13,9 +13,12 @@ let value: DefaultAudioAccessibility = ## Values +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + | Name | Value | | ------------------------ | ------------------------ | | `PreferNonAccessibility` | 0 | | `PreferAccessibility` | 1 | | `OnlyAccessibility` | 2 | -| `OnlyNonAccessibility` | 3 | \ No newline at end of file +| `OnlyNonAccessibility` | 3 | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/models/shared/defaultdirection.md b/docs/models/shared/defaultdirection.md new file mode 100644 index 00000000..2051170c --- /dev/null +++ b/docs/models/shared/defaultdirection.md @@ -0,0 +1,21 @@ +# DefaultDirection + +This default diction of this sort + +## Example Usage + +```typescript +import { DefaultDirection } from "@lukehagar/plexjs/models/shared"; + +let value: DefaultDirection = DefaultDirection.Desc; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Asc` | asc | +| `Desc` | desc | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/models/shared/defaultenum.md b/docs/models/shared/defaultenum.md new file mode 100644 index 00000000..e3f1f897 --- /dev/null +++ b/docs/models/shared/defaultenum.md @@ -0,0 +1,21 @@ +# DefaultEnum + +If present, this sort is the default and in this direction + +## Example Usage + +```typescript +import { DefaultEnum } from "@lukehagar/plexjs/models/shared"; + +let value: DefaultEnum = DefaultEnum.Asc; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Asc` | asc | +| `Desc` | desc | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/models/shared/defaultsubtitleaccessibility.md b/docs/models/shared/defaultsubtitleaccessibility.md new file mode 100644 index 00000000..4307d953 --- /dev/null +++ b/docs/models/shared/defaultsubtitleaccessibility.md @@ -0,0 +1,24 @@ +# DefaultSubtitleAccessibility + +The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only show non-SDH subtitles) + +## Example Usage + +```typescript +import { DefaultSubtitleAccessibility } from "@lukehagar/plexjs/models/shared"; + +let value: DefaultSubtitleAccessibility = + DefaultSubtitleAccessibility.PreferSdh; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `PreferNonSdh` | 0 | +| `PreferSdh` | 1 | +| `OnlySdh` | 2 | +| `OnlyNonSdh` | 3 | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/models/shared/defaultsubtitleforced.md b/docs/models/shared/defaultsubtitleforced.md new file mode 100644 index 00000000..5de88b34 --- /dev/null +++ b/docs/models/shared/defaultsubtitleforced.md @@ -0,0 +1,23 @@ +# DefaultSubtitleForced + +The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) + +## Example Usage + +```typescript +import { DefaultSubtitleForced } from "@lukehagar/plexjs/models/shared"; + +let value: DefaultSubtitleForced = DefaultSubtitleForced.PreferForced; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `PreferNonForced` | 0 | +| `PreferForced` | 1 | +| `OnlyForced` | 2 | +| `OnlyNonForced` | 3 | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/models/shared/device.md b/docs/models/shared/device.md new file mode 100644 index 00000000..5918a5db --- /dev/null +++ b/docs/models/shared/device.md @@ -0,0 +1,27 @@ +# Device + +## Example Usage + +```typescript +import { Device } from "@lukehagar/plexjs/models/shared"; + +let value: Device = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | +| `channelMapping` | [shared.ChannelMapping](../../models/shared/channelmapping.md)[] | :heavy_minus_sign: | N/A | +| `key` | *string* | :heavy_minus_sign: | N/A | +| `lastSeenAt` | *number* | :heavy_minus_sign: | N/A | +| `make` | *string* | :heavy_minus_sign: | N/A | +| `model` | *string* | :heavy_minus_sign: | N/A | +| `modelNumber` | *string* | :heavy_minus_sign: | N/A | +| `protocol` | *string* | :heavy_minus_sign: | N/A | +| `sources` | *string* | :heavy_minus_sign: | N/A | +| `state` | *string* | :heavy_minus_sign: | N/A | +| `status` | *string* | :heavy_minus_sign: | N/A | +| `tuners` | *string* | :heavy_minus_sign: | N/A | +| `uri` | *string* | :heavy_minus_sign: | N/A | +| `uuid` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/directory.md b/docs/models/shared/directory.md new file mode 100644 index 00000000..c5fb6586 --- /dev/null +++ b/docs/models/shared/directory.md @@ -0,0 +1,30 @@ +# Directory + +## Example Usage + +```typescript +import { Directory } from "@lukehagar/plexjs/models/shared"; + +let value: Directory = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | +| `title` | *string* | :heavy_minus_sign: | N/A | +| `type` | *string* | :heavy_minus_sign: | N/A | +| `art` | *string* | :heavy_minus_sign: | N/A | +| `content` | *boolean* | :heavy_minus_sign: | N/A | +| `filter` | *string* | :heavy_minus_sign: | N/A | +| `hasPrefs` | *boolean* | :heavy_minus_sign: | N/A | +| `hasStoreServices` | *boolean* | :heavy_minus_sign: | N/A | +| `hubKey` | *string* | :heavy_minus_sign: | N/A | +| `identifier` | *string* | :heavy_minus_sign: | N/A | +| `key` | *string* | :heavy_minus_sign: | N/A | +| `lastAccessedAt` | *number* | :heavy_minus_sign: | N/A | +| `pivot` | [shared.DirectoryPivot](../../models/shared/directorypivot.md)[] | :heavy_minus_sign: | N/A | +| `share` | *number* | :heavy_minus_sign: | N/A | +| `thumb` | *string* | :heavy_minus_sign: | N/A | +| `titleBar` | *string* | :heavy_minus_sign: | N/A | +| `additionalProperties` | Record | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/directorypivot.md b/docs/models/shared/directorypivot.md similarity index 91% rename from docs/sdk/models/shared/directorypivot.md rename to docs/models/shared/directorypivot.md index b7d7f274..014f2fcb 100644 --- a/docs/sdk/models/shared/directorypivot.md +++ b/docs/models/shared/directorypivot.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DirectoryPivot } from "@lukehagar/plexjs/sdk/models/shared"; +import { DirectoryPivot } from "@lukehagar/plexjs/models/shared"; let value: DirectoryPivot = {}; ``` diff --git a/docs/sdk/models/shared/directoryresponse.md b/docs/models/shared/directoryresponse.md similarity index 92% rename from docs/sdk/models/shared/directoryresponse.md rename to docs/models/shared/directoryresponse.md index a6542bdc..ae65d2bb 100644 --- a/docs/sdk/models/shared/directoryresponse.md +++ b/docs/models/shared/directoryresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DirectoryResponse } from "@lukehagar/plexjs/sdk/models/shared"; +import { DirectoryResponse } from "@lukehagar/plexjs/models/shared"; let value: DirectoryResponse = {}; ``` diff --git a/docs/models/shared/dvr.md b/docs/models/shared/dvr.md new file mode 100644 index 00000000..eecf9d01 --- /dev/null +++ b/docs/models/shared/dvr.md @@ -0,0 +1,19 @@ +# Dvr + +## Example Usage + +```typescript +import { Dvr } from "@lukehagar/plexjs/models/shared"; + +let value: Dvr = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | +| `device` | [shared.Device](../../models/shared/device.md)[] | :heavy_minus_sign: | N/A | +| `key` | *string* | :heavy_minus_sign: | N/A | +| `language` | *string* | :heavy_minus_sign: | N/A | +| `lineup` | *string* | :heavy_minus_sign: | N/A | +| `uuid` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/dvrrequesthandlerslashgetresponses200.md b/docs/models/shared/dvrrequesthandlerslashgetresponses200.md similarity index 55% rename from docs/sdk/models/shared/dvrrequesthandlerslashgetresponses200.md rename to docs/models/shared/dvrrequesthandlerslashgetresponses200.md index 50a0e7a0..1fe6f38e 100644 --- a/docs/sdk/models/shared/dvrrequesthandlerslashgetresponses200.md +++ b/docs/models/shared/dvrrequesthandlerslashgetresponses200.md @@ -5,13 +5,13 @@ OK ## Example Usage ```typescript -import { DvrRequestHandlerSlashGetResponses200 } from "@lukehagar/plexjs/sdk/models/shared"; +import { DvrRequestHandlerSlashGetResponses200 } from "@lukehagar/plexjs/models/shared"; let value: DvrRequestHandlerSlashGetResponses200 = {}; ``` ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [shared.DvrRequestHandlerSlashGetResponses200MediaContainer](../../../sdk/models/shared/dvrrequesthandlerslashgetresponses200mediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [shared.DvrRequestHandlerSlashGetResponses200MediaContainer](../../models/shared/dvrrequesthandlerslashgetresponses200mediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/dvrrequesthandlerslashgetresponses200mediacontainer.md b/docs/models/shared/dvrrequesthandlerslashgetresponses200mediacontainer.md similarity index 57% rename from docs/sdk/models/shared/dvrrequesthandlerslashgetresponses200mediacontainer.md rename to docs/models/shared/dvrrequesthandlerslashgetresponses200mediacontainer.md index 6e055fba..3d3a03b3 100644 --- a/docs/sdk/models/shared/dvrrequesthandlerslashgetresponses200mediacontainer.md +++ b/docs/models/shared/dvrrequesthandlerslashgetresponses200mediacontainer.md @@ -3,14 +3,14 @@ ## Example Usage ```typescript -import { DvrRequestHandlerSlashGetResponses200MediaContainer } from "@lukehagar/plexjs/sdk/models/shared"; +import { DvrRequestHandlerSlashGetResponses200MediaContainer } from "@lukehagar/plexjs/models/shared"; let value: DvrRequestHandlerSlashGetResponses200MediaContainer = {}; ``` ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [shared.DvrRequestHandlerSlashGetResponses200MediaContainerMediaContainer](../../../sdk/models/shared/dvrrequesthandlerslashgetresponses200mediacontainermediacontainer.md) | :heavy_minus_sign: | N/A | -| `dvr` | [shared.Dvr](../../../sdk/models/shared/dvr.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [shared.DvrRequestHandlerSlashGetResponses200MediaContainerMediaContainer](../../models/shared/dvrrequesthandlerslashgetresponses200mediacontainermediacontainer.md) | :heavy_minus_sign: | N/A | +| `dvr` | [shared.Dvr](../../models/shared/dvr.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/dvrrequesthandlerslashgetresponses200mediacontainermediacontainer.md b/docs/models/shared/dvrrequesthandlerslashgetresponses200mediacontainermediacontainer.md similarity index 98% rename from docs/sdk/models/shared/dvrrequesthandlerslashgetresponses200mediacontainermediacontainer.md rename to docs/models/shared/dvrrequesthandlerslashgetresponses200mediacontainermediacontainer.md index 8161fe6a..a21d547b 100644 --- a/docs/sdk/models/shared/dvrrequesthandlerslashgetresponses200mediacontainermediacontainer.md +++ b/docs/models/shared/dvrrequesthandlerslashgetresponses200mediacontainermediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { DvrRequestHandlerSlashGetResponses200MediaContainerMediaContainer } from "@lukehagar/plexjs/sdk/models/shared"; +import { DvrRequestHandlerSlashGetResponses200MediaContainerMediaContainer } from "@lukehagar/plexjs/models/shared"; let value: DvrRequestHandlerSlashGetResponses200MediaContainerMediaContainer = {}; diff --git a/docs/sdk/models/shared/filter.md b/docs/models/shared/filter.md similarity index 99% rename from docs/sdk/models/shared/filter.md rename to docs/models/shared/filter.md index 8069d678..e15b48cb 100644 --- a/docs/sdk/models/shared/filter.md +++ b/docs/models/shared/filter.md @@ -6,7 +6,7 @@ Each `Filter` object contains a description of the filter. Note that it is not a ## Example Usage ```typescript -import { Filter } from "@lukehagar/plexjs/sdk/models/shared"; +import { Filter } from "@lukehagar/plexjs/models/shared"; let value: Filter = {}; ``` @@ -26,7 +26,7 @@ let value: Filter = {}; | `identifier` | *string* | :heavy_minus_sign: | N/A | | `key` | *string* | :heavy_minus_sign: | This provides the endpoint where the possible range of values for the filter can be retrieved (e.g. for a "Genre" filter, it returns a list of all the genres in the library). This will include a `type` argument that matches the metadata type of the Type element. | | `lastAccessedAt` | *number* | :heavy_minus_sign: | N/A | -| `pivot` | [shared.FilterPivot](../../../sdk/models/shared/filterpivot.md)[] | :heavy_minus_sign: | N/A | +| `pivot` | [shared.FilterPivot](../../models/shared/filterpivot.md)[] | :heavy_minus_sign: | N/A | | `share` | *number* | :heavy_minus_sign: | N/A | | `thumb` | *string* | :heavy_minus_sign: | N/A | | `titleBar` | *string* | :heavy_minus_sign: | N/A | diff --git a/docs/sdk/models/shared/filterpivot.md b/docs/models/shared/filterpivot.md similarity index 92% rename from docs/sdk/models/shared/filterpivot.md rename to docs/models/shared/filterpivot.md index c491b0d2..47fd2ec1 100644 --- a/docs/sdk/models/shared/filterpivot.md +++ b/docs/models/shared/filterpivot.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { FilterPivot } from "@lukehagar/plexjs/sdk/models/shared"; +import { FilterPivot } from "@lukehagar/plexjs/models/shared"; let value: FilterPivot = {}; ``` diff --git a/docs/sdk/models/shared/format.md b/docs/models/shared/format.md similarity index 74% rename from docs/sdk/models/shared/format.md rename to docs/models/shared/format.md index 5e226d30..004237b2 100644 --- a/docs/sdk/models/shared/format.md +++ b/docs/models/shared/format.md @@ -5,7 +5,7 @@ The image type ## Example Usage ```typescript -import { Format } from "@lukehagar/plexjs/sdk/models/shared"; +import { Format } from "@lukehagar/plexjs/models/shared"; let value: Format = Format.Jpg; ``` diff --git a/docs/models/shared/getresponses200.md b/docs/models/shared/getresponses200.md new file mode 100644 index 00000000..f4c5e94f --- /dev/null +++ b/docs/models/shared/getresponses200.md @@ -0,0 +1,17 @@ +# GetResponses200 + +OK + +## Example Usage + +```typescript +import { GetResponses200 } from "@lukehagar/plexjs/models/shared"; + +let value: GetResponses200 = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `mediaContainer` | [shared.GetResponses200MediaContainer](../../models/shared/getresponses200mediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/getresponses200mediacontainer.md b/docs/models/shared/getresponses200mediacontainer.md similarity index 96% rename from docs/sdk/models/shared/getresponses200mediacontainer.md rename to docs/models/shared/getresponses200mediacontainer.md index b8826661..78b15da5 100644 --- a/docs/sdk/models/shared/getresponses200mediacontainer.md +++ b/docs/models/shared/getresponses200mediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { GetResponses200MediaContainer } from "@lukehagar/plexjs/sdk/models/shared"; +import { GetResponses200MediaContainer } from "@lukehagar/plexjs/models/shared"; let value: GetResponses200MediaContainer = {}; ``` @@ -21,4 +21,4 @@ let value: GetResponses200MediaContainer = {}; | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `hub` | [shared.HubResponse](../../../sdk/models/shared/hubresponse.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `hub` | [shared.HubResponse](../../models/shared/hubresponse.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/historyallgetresponses200.md b/docs/models/shared/historyallgetresponses200.md new file mode 100644 index 00000000..91ab0531 --- /dev/null +++ b/docs/models/shared/historyallgetresponses200.md @@ -0,0 +1,17 @@ +# HistoryAllGetResponses200 + +OK + +## Example Usage + +```typescript +import { HistoryAllGetResponses200 } from "@lukehagar/plexjs/models/shared"; + +let value: HistoryAllGetResponses200 = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [shared.HistoryAllGetResponses200MediaContainer](../../models/shared/historyallgetresponses200mediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/historyallgetresponses200mediacontainer.md b/docs/models/shared/historyallgetresponses200mediacontainer.md similarity index 96% rename from docs/sdk/models/shared/historyallgetresponses200mediacontainer.md rename to docs/models/shared/historyallgetresponses200mediacontainer.md index 6d298772..0f0a671c 100644 --- a/docs/sdk/models/shared/historyallgetresponses200mediacontainer.md +++ b/docs/models/shared/historyallgetresponses200mediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { HistoryAllGetResponses200MediaContainer } from "@lukehagar/plexjs/sdk/models/shared"; +import { HistoryAllGetResponses200MediaContainer } from "@lukehagar/plexjs/models/shared"; let value: HistoryAllGetResponses200MediaContainer = {}; ``` @@ -21,4 +21,4 @@ let value: HistoryAllGetResponses200MediaContainer = {}; | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `metadata` | [shared.MetadatumResponse](../../../sdk/models/shared/metadatumresponse.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `metadata` | [shared.MetadatumResponse](../../models/shared/metadatumresponse.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/homevisibility.md b/docs/models/shared/homevisibility.md new file mode 100644 index 00000000..31e933be --- /dev/null +++ b/docs/models/shared/homevisibility.md @@ -0,0 +1,28 @@ +# HomeVisibility + +Whether this hub is visible on the home screen + - all: Visible to all users + - none: Visible to no users + - admin: Visible to only admin users + - shared: Visible to shared users + + +## Example Usage + +```typescript +import { HomeVisibility } from "@lukehagar/plexjs/models/shared"; + +let value: HomeVisibility = HomeVisibility.All; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `All` | all | +| `None` | none | +| `Admin` | admin | +| `Shared` | shared | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/sdk/models/shared/hub.md b/docs/models/shared/hub.md similarity index 98% rename from docs/sdk/models/shared/hub.md rename to docs/models/shared/hub.md index e89fc0a2..824b9187 100644 --- a/docs/sdk/models/shared/hub.md +++ b/docs/models/shared/hub.md @@ -3,8 +3,7 @@ ## Example Usage ```typescript -import { Hub } from "@lukehagar/plexjs/sdk/models/shared"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { Hub } from "@lukehagar/plexjs/models/shared"; let value: Hub = { type: "track", @@ -166,7 +165,7 @@ let value: Hub = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -221,7 +220,7 @@ let value: Hub = { | `hubIdentifier` | *string* | :heavy_minus_sign: | A unique identifier for the hub | home.onDeck | | `hubKey` | *string* | :heavy_minus_sign: | A key at which the exact content currently displayed can be fetched again. This is particularly important when a hub is marked as random and requesting the `key` may get different results. It's otherwise optional.
| | | `key` | *string* | :heavy_minus_sign: | The key at which all of the content for this hub can be retrieved | /hubs/sections/home/onDeck | -| `metadata` | [shared.Metadata](../../../sdk/models/shared/metadata.md)[] | :heavy_minus_sign: | N/A | | +| `metadata` | [shared.Metadata](../../models/shared/metadata.md)[] | :heavy_minus_sign: | N/A | | | `more` | *boolean* | :heavy_minus_sign: | "A boolean indicating that the hub contains more than what's included in the current response."
| | | `promoted` | *boolean* | :heavy_minus_sign: | Indicating if the hub should be promoted to the user's homescreen | | | `random` | *boolean* | :heavy_minus_sign: | Indicating that the contents of the hub may change on each request | | diff --git a/docs/sdk/models/shared/hubresponse.md b/docs/models/shared/hubresponse.md similarity index 96% rename from docs/sdk/models/shared/hubresponse.md rename to docs/models/shared/hubresponse.md index 82667ed1..3bf9ba31 100644 --- a/docs/sdk/models/shared/hubresponse.md +++ b/docs/models/shared/hubresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { HubResponse } from "@lukehagar/plexjs/sdk/models/shared"; +import { HubResponse } from "@lukehagar/plexjs/models/shared"; let value: HubResponse = {}; ``` @@ -12,10 +12,10 @@ let value: HubResponse = {}; | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `homeVisibility` | [shared.HomeVisibility](../../../sdk/models/shared/homevisibility.md) | :heavy_minus_sign: | Whether this hub is visible on the home screen
- all: Visible to all users
- none: Visible to no users
- admin: Visible to only admin users
- shared: Visible to shared users
| +| `homeVisibility` | [shared.HomeVisibility](../../models/shared/homevisibility.md) | :heavy_minus_sign: | Whether this hub is visible on the home screen
- all: Visible to all users
- none: Visible to no users
- admin: Visible to only admin users
- shared: Visible to shared users
| | `identifier` | *string* | :heavy_minus_sign: | The identifier for this hub | | `promotedToOwnHome` | *boolean* | :heavy_minus_sign: | Whether this hub is visible to admin user home | | `promotedToRecommended` | *boolean* | :heavy_minus_sign: | Whether this hub is promoted to all for recommendations | | `promotedToSharedHome` | *boolean* | :heavy_minus_sign: | Whether this hub is visible to shared user's home | -| `recommendationsVisibility` | [shared.RecommendationsVisibility](../../../sdk/models/shared/recommendationsvisibility.md) | :heavy_minus_sign: | The visibility of this hub in recommendations:
- all: Visible to all users
- none: Visible to no users
- admin: Visible to only admin users
- shared: Visible to shared users
| +| `recommendationsVisibility` | [shared.RecommendationsVisibility](../../models/shared/recommendationsvisibility.md) | :heavy_minus_sign: | The visibility of this hub in recommendations:
- all: Visible to all users
- none: Visible to no users
- admin: Visible to only admin users
- shared: Visible to shared users
| | `title` | *string* | :heavy_minus_sign: | The title of this hub | \ No newline at end of file diff --git a/docs/sdk/models/shared/image.md b/docs/models/shared/image.md similarity index 88% rename from docs/sdk/models/shared/image.md rename to docs/models/shared/image.md index a8c6e510..32bb2216 100644 --- a/docs/sdk/models/shared/image.md +++ b/docs/models/shared/image.md @@ -6,7 +6,7 @@ Images such as movie posters and background artwork are represented by Image ele ## Example Usage ```typescript -import { Image } from "@lukehagar/plexjs/sdk/models/shared"; +import { Image } from "@lukehagar/plexjs/models/shared"; let value: Image = {}; ``` @@ -15,6 +15,6 @@ let value: Image = {}; | Field | Type | Required | Description | | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `type` | [shared.ImageType](../../../sdk/models/shared/imagetype.md) | :heavy_minus_sign: | Describes both the purpose and intended presentation of the image. | +| `type` | [shared.ImageType](../../models/shared/imagetype.md) | :heavy_minus_sign: | Describes both the purpose and intended presentation of the image. | | `alt` | *string* | :heavy_minus_sign: | Title to use for accessibility. | | `url` | *string* | :heavy_minus_sign: | The relative path or absolute url for the image. | \ No newline at end of file diff --git a/docs/models/shared/imagetype.md b/docs/models/shared/imagetype.md new file mode 100644 index 00000000..f4a08007 --- /dev/null +++ b/docs/models/shared/imagetype.md @@ -0,0 +1,24 @@ +# ImageType + +Describes both the purpose and intended presentation of the image. + +## Example Usage + +```typescript +import { ImageType } from "@lukehagar/plexjs/models/shared"; + +let value: ImageType = ImageType.ClearLogo; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Background` | background | +| `Banner` | banner | +| `ClearLogo` | clearLogo | +| `CoverPoster` | coverPoster | +| `Snapshot` | snapshot | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/sdk/models/shared/items.md b/docs/models/shared/items.md similarity index 99% rename from docs/sdk/models/shared/items.md rename to docs/models/shared/items.md index 0478af69..a0837e18 100644 --- a/docs/sdk/models/shared/items.md +++ b/docs/models/shared/items.md @@ -10,8 +10,7 @@ Metadata items can often live in a hierarchy with relationships between them. F ## Example Usage ```typescript -import { Items } from "@lukehagar/plexjs/sdk/models/shared"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { Items } from "@lukehagar/plexjs/models/shared"; let value: Items = { title: "", @@ -167,7 +166,7 @@ let value: Items = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -359,7 +358,7 @@ let value: Items = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -412,17 +411,17 @@ let value: Items = { | `art` | *string* | :heavy_minus_sign: | When present, the URL for the background artwork for the item. | /library/metadata/58683/art/1703239236 | | `audienceRating` | *number* | :heavy_minus_sign: | Some rating systems separate reviewer ratings from audience ratings | | | `audienceRatingImage` | *string* | :heavy_minus_sign: | A URI representing the image to be shown with the audience rating (e.g. rottentomatoes://image.rating.spilled). | | -| `autotag` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `autotag` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `banner` | *string* | :heavy_minus_sign: | When present, the URL for a banner graphic for the item. | | | `chapterSource` | *string* | :heavy_minus_sign: | When present, indicates the source for the chapters in the media file. Can be media (the chapters were embedded in the media itself), agent (a metadata agent computed them), or mixed (a combination of the two). | media | | `childCount` | *number* | :heavy_minus_sign: | The number of child items associated with this media item. | 1 | | `composite` | *string* | :heavy_minus_sign: | When present, the URL for a composite image for descendent items (e.g. photo albums or playlists). | | | `contentRating` | *string* | :heavy_minus_sign: | If known, the content rating (e.g. MPAA) for an item. | | -| `country` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | -| `director` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `country` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `director` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `duration` | *number* | :heavy_minus_sign: | When present, the duration for the item, in units of milliseconds. | | -| `filter` | [shared.Filter](../../../sdk/models/shared/filter.md)[] | :heavy_minus_sign: | Typically only seen in metadata at a library's top level | | -| `genre` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `filter` | [shared.Filter](../../models/shared/filter.md)[] | :heavy_minus_sign: | Typically only seen in metadata at a library's top level | | +| `genre` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `grandparentArt` | *string* | :heavy_minus_sign: | The `art` of the grandparent | | | `grandparentGuid` | *string* | :heavy_minus_sign: | The GUID of the grandparent media item. | plex://show/5d9c081b170e24001f2a7be4 | | `grandparentHero` | *string* | :heavy_minus_sign: | The `hero` of the grandparent | | @@ -432,15 +431,15 @@ let value: Items = { | `grandparentThumb` | *string* | :heavy_minus_sign: | The `thumb` of the grandparent | | | `grandparentTitle` | *string* | :heavy_minus_sign: | The `title` of the grandparent | | | `guid` | *string* | :heavy_minus_sign: | The globally unique identifier for the media item. | plex://movie/5d7768ba96b655001fdc0408 | -| `guids` | [shared.ItemsGuid](../../../sdk/models/shared/itemsguid.md)[] | :heavy_minus_sign: | N/A | | +| `guids` | [shared.ItemsGuid](../../models/shared/itemsguid.md)[] | :heavy_minus_sign: | N/A | | | `hero` | *string* | :heavy_minus_sign: | When present, the URL for a hero image for the item. | | -| `image` | [shared.Image](../../../sdk/models/shared/image.md)[] | :heavy_minus_sign: | N/A | | +| `image` | [shared.Image](../../models/shared/image.md)[] | :heavy_minus_sign: | N/A | | | `index` | *number* | :heavy_minus_sign: | When present, this represents the episode number for episodes, season number for seasons, or track number for audio tracks. | | | `key` | *string* | :heavy_check_mark: | The key at which the item's details can be fetched. In many cases a metadata item may be passed without all the details (such as in a hub) and this key corresponds to the endpoint to fetch additional details. | | | `lastViewedAt` | *number* | :heavy_minus_sign: | N/A | 1556281940 | | `leafCount` | *number* | :heavy_minus_sign: | For shows and seasons, contains the number of total episodes. | | -| `media` | [shared.Media](../../../sdk/models/shared/media.md)[] | :heavy_minus_sign: | N/A | | -| `originallyAvailableAt` | [RFCDate](../../../types/rfcdate.md) | :heavy_minus_sign: | When present, in the format YYYY-MM-DD [HH:MM:SS] (the hours/minutes/seconds part is not always present). The air date, or a higher resolution release date for an item, depending on type. For example, episodes usually have air date like 1979-08-10 (we don't use epoch seconds because media existed prior to 1970). In some cases, recorded over-the-air content has higher resolution air date which includes a time component. Albums and movies may have day-resolution release dates as well. | 2022-12-14 | +| `media` | [shared.Media](../../models/shared/media.md)[] | :heavy_minus_sign: | N/A | | +| `originallyAvailableAt` | [Date](../../types/rfcdate.md) | :heavy_minus_sign: | When present, in the format YYYY-MM-DD [HH:MM:SS] (the hours/minutes/seconds part is not always present). The air date, or a higher resolution release date for an item, depending on type. For example, episodes usually have air date like 1979-08-10 (we don't use epoch seconds because media existed prior to 1970). In some cases, recorded over-the-air content has higher resolution air date which includes a time component. Albums and movies may have day-resolution release dates as well. | 2022-12-14 | | `originalTitle` | *string* | :heavy_minus_sign: | When present, used to indicate an item's original title, e.g. a movie's foreign title. | | | `parentGuid` | *string* | :heavy_minus_sign: | The GUID of the parent media item. | plex://show/5d9c081b170e24001f2a7be4 | | `parentHero` | *string* | :heavy_minus_sign: | The `hero` of the parent | | @@ -452,16 +451,16 @@ let value: Items = { | `primaryExtraKey` | *string* | :heavy_minus_sign: | Indicates that the item has a primary extra; for a movie, this is a trailer, and for a music track it is a music video. The URL points to the metadata details endpoint for the item. | | | `prompt` | *string* | :heavy_minus_sign: | Prompt to give the user for this directory (such as `Search Movies`) | | | `rating` | *number* | :heavy_minus_sign: | When present, the rating for the item. The exact meaning and representation depends on where the rating was sourced from. | | -| `ratingArray` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `ratingArray` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `ratingCount` | *number* | :heavy_minus_sign: | Number of ratings under this metadata | | | `ratingImage` | *string* | :heavy_minus_sign: | When present, indicates an image to be shown with the rating. This is passed back as a small set of defined URI values, e.g. rottentomatoes://image.rating.rotten. | | | `ratingKey` | *string* | :heavy_minus_sign: | This is the opaque string to be passed into timeline, scrobble, and rating endpoints to identify them. While it often appears to be numeric, this is not guaranteed. | | -| `role` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `role` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `search` | *boolean* | :heavy_minus_sign: | Indicates this is a search directory | | | `secondary` | *boolean* | :heavy_minus_sign: | Used by old clients to provide nested menus allowing for primative (but structured) navigation. | | | `skipChildren` | *boolean* | :heavy_minus_sign: | When found on a show item, indicates that the children (seasons) should be skipped in favor of the grandchildren (episodes). Useful for mini-series, etc. | | | `skipParent` | *boolean* | :heavy_minus_sign: | When present on an episode or track item, indicates parent should be skipped in favor of grandparent (show). | | -| `sort` | [shared.Sort](../../../sdk/models/shared/sort.md)[] | :heavy_minus_sign: | Typically only seen in metadata at a library's top level | | +| `sort` | [shared.Sort](../../models/shared/sort.md)[] | :heavy_minus_sign: | Typically only seen in metadata at a library's top level | | | `studio` | *string* | :heavy_minus_sign: | When present, the studio or label which produced an item (e.g. movie studio for movies, record label for albums). | | | `subtype` | *string* | :heavy_minus_sign: | The subtype of the video item, such as `photo` when the video item is in a photo library | | | `summary` | *string* | :heavy_minus_sign: | When present, the extended textual information about the item (e.g. movie plot, artist biography, album review). | | @@ -474,7 +473,7 @@ let value: Items = { | `viewCount` | *number* | :heavy_minus_sign: | When a users has completed watched or listened to an item, this attribute contains the number of consumptions. | | | `viewedLeafCount` | *number* | :heavy_minus_sign: | For shows and seasons, contains the number of viewed episodes. | | | `viewOffset` | *number* | :heavy_minus_sign: | When a user is in the process of viewing or listening to this item, this attribute contains the current offset, in units of milliseconds. | | -| `writer` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `writer` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `year` | *number* | :heavy_minus_sign: | When present, the year associated with the item's release (e.g. release year for a movie). | | -| `metadataItem` | [shared.Items](../../../sdk/models/shared/items.md)[] | :heavy_minus_sign: | N/A | | +| `metadataItem` | [shared.Items](../../models/shared/items.md)[] | :heavy_minus_sign: | N/A | | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/shared/itemsguid.md b/docs/models/shared/itemsguid.md similarity index 98% rename from docs/sdk/models/shared/itemsguid.md rename to docs/models/shared/itemsguid.md index aa696ab7..8f69f8c1 100644 --- a/docs/sdk/models/shared/itemsguid.md +++ b/docs/models/shared/itemsguid.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ItemsGuid } from "@lukehagar/plexjs/sdk/models/shared"; +import { ItemsGuid } from "@lukehagar/plexjs/models/shared"; let value: ItemsGuid = { id: diff --git a/docs/sdk/models/shared/librarysection.md b/docs/models/shared/librarysection.md similarity index 98% rename from docs/sdk/models/shared/librarysection.md rename to docs/models/shared/librarysection.md index bcc90fcb..67ad0d79 100644 --- a/docs/sdk/models/shared/librarysection.md +++ b/docs/models/shared/librarysection.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { LibrarySection, MediaTypeString } from "@lukehagar/plexjs/sdk/models/shared"; +import { LibrarySection, MediaTypeString } from "@lukehagar/plexjs/models/shared"; let value: LibrarySection = { title: "Movies", @@ -22,7 +22,7 @@ let value: LibrarySection = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | | `title` | *string* | :heavy_minus_sign: | The title of the library | Movies | -| `type` | [shared.MediaTypeString](../../../sdk/models/shared/mediatypestring.md) | :heavy_check_mark: | The type of media content in the Plex library. This can represent videos, music, or photos.
| movie | +| `type` | [shared.MediaTypeString](../../models/shared/mediatypestring.md) | :heavy_check_mark: | The type of media content in the Plex library. This can represent videos, music, or photos.
| movie | | `agent` | *string* | :heavy_minus_sign: | N/A | | | `allowSync` | *boolean* | :heavy_minus_sign: | N/A | | | `art` | *string* | :heavy_minus_sign: | N/A | | @@ -36,7 +36,7 @@ let value: LibrarySection = { | `key` | *string* | :heavy_minus_sign: | N/A | | | `language` | *string* | :heavy_check_mark: | N/A | | | `uuid` | *string* | :heavy_check_mark: | The universally unique identifier for the library. | e69655a2-ef48-4aba-bb19-d3cc3401e7d6 | -| `location` | [shared.LibrarySectionLocation](../../../sdk/models/shared/librarysectionlocation.md)[] | :heavy_minus_sign: | N/A | | +| `location` | [shared.LibrarySectionLocation](../../models/shared/librarysectionlocation.md)[] | :heavy_minus_sign: | N/A | | | `refreshing` | *boolean* | :heavy_minus_sign: | Indicates whether this library section is currently scanning | | | `scannedAt` | *number* | :heavy_minus_sign: | N/A | 1556281940 | | `scanner` | *string* | :heavy_minus_sign: | N/A | | diff --git a/docs/sdk/models/shared/librarysectionlocation.md b/docs/models/shared/librarysectionlocation.md similarity index 92% rename from docs/sdk/models/shared/librarysectionlocation.md rename to docs/models/shared/librarysectionlocation.md index 359ee5f7..b5ae4bc0 100644 --- a/docs/sdk/models/shared/librarysectionlocation.md +++ b/docs/models/shared/librarysectionlocation.md @@ -5,7 +5,7 @@ Represents a top-level location on disk where media in this library section is s ## Example Usage ```typescript -import { LibrarySectionLocation } from "@lukehagar/plexjs/sdk/models/shared"; +import { LibrarySectionLocation } from "@lukehagar/plexjs/models/shared"; let value: LibrarySectionLocation = {}; ``` diff --git a/docs/models/shared/librarysections.md b/docs/models/shared/librarysections.md new file mode 100644 index 00000000..c4160c7d --- /dev/null +++ b/docs/models/shared/librarysections.md @@ -0,0 +1,26 @@ +# LibrarySections + +OK + +## Example Usage + +```typescript +import { LibrarySections } from "@lukehagar/plexjs/models/shared"; + +let value: LibrarySections = { + mediaContainer: { + livetv: 7, + machineIdentifier: "0123456789abcdef0123456789abcdef012345678", + musicAnalysis: 2, + myPlexMappingState: "mapped", + myPlexSigninState: "ok", + offlineTranscode: 1, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `mediaContainer` | [shared.LibrarySectionsMediaContainer](../../models/shared/librarysectionsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/librarysectionsmediacontainer.md b/docs/models/shared/librarysectionsmediacontainer.md similarity index 99% rename from docs/sdk/models/shared/librarysectionsmediacontainer.md rename to docs/models/shared/librarysectionsmediacontainer.md index 25100ff1..4c0de279 100644 --- a/docs/sdk/models/shared/librarysectionsmediacontainer.md +++ b/docs/models/shared/librarysectionsmediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { LibrarySectionsMediaContainer } from "@lukehagar/plexjs/sdk/models/shared"; +import { LibrarySectionsMediaContainer } from "@lukehagar/plexjs/models/shared"; let value: LibrarySectionsMediaContainer = { livetv: 7, @@ -76,4 +76,4 @@ let value: LibrarySectionsMediaContainer = { | `updater` | *boolean* | :heavy_minus_sign: | N/A | | | `version` | *string* | :heavy_minus_sign: | N/A | | | `voiceSearch` | *boolean* | :heavy_minus_sign: | N/A | | -| `directory` | [shared.DirectoryResponse](../../../sdk/models/shared/directoryresponse.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `directory` | [shared.DirectoryResponse](../../models/shared/directoryresponse.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/shared/lineup.md b/docs/models/shared/lineup.md similarity index 93% rename from docs/sdk/models/shared/lineup.md rename to docs/models/shared/lineup.md index a2f6cff8..aed1ef3c 100644 --- a/docs/sdk/models/shared/lineup.md +++ b/docs/models/shared/lineup.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Lineup } from "@lukehagar/plexjs/sdk/models/shared"; +import { Lineup } from "@lukehagar/plexjs/models/shared"; let value: Lineup = {}; ``` @@ -14,6 +14,6 @@ let value: Lineup = {}; | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | | `title` | *string* | :heavy_minus_sign: | N/A | | `type` | *string* | :heavy_minus_sign: | The type of this object (`lineup` in this case) | -| `lineupType` | [shared.LineupType](../../../sdk/models/shared/lineuptype.md) | :heavy_minus_sign: | - `-1`: N/A
- `0`: Over the air
- `1`: Cable
- `2`: Satellite
- `3`: IPTV
- `4`: Virtual
| +| `lineupType` | [shared.LineupType](../../models/shared/lineuptype.md) | :heavy_minus_sign: | - `-1`: N/A
- `0`: Over the air
- `1`: Cable
- `2`: Satellite
- `3`: IPTV
- `4`: Virtual
| | `location` | *string* | :heavy_minus_sign: | N/A | | `uuid` | *string* | :heavy_minus_sign: | The uuid of this lineup | \ No newline at end of file diff --git a/docs/models/shared/lineuptype.md b/docs/models/shared/lineuptype.md new file mode 100644 index 00000000..d2dd8e44 --- /dev/null +++ b/docs/models/shared/lineuptype.md @@ -0,0 +1,31 @@ +# LineupType + +- `-1`: N/A +- `0`: Over the air +- `1`: Cable +- `2`: Satellite +- `3`: IPTV +- `4`: Virtual + + +## Example Usage + +```typescript +import { LineupType } from "@lukehagar/plexjs/models/shared"; + +let value: LineupType = LineupType.Two; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Minus1` | -1 | +| `Zero` | 0 | +| `One` | 1 | +| `Two` | 2 | +| `Three` | 3 | +| `Four` | 4 | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/sdk/models/shared/locationparameter.md b/docs/models/shared/locationparameter.md similarity index 78% rename from docs/sdk/models/shared/locationparameter.md rename to docs/models/shared/locationparameter.md index 9a25e983..ca5f8a55 100644 --- a/docs/sdk/models/shared/locationparameter.md +++ b/docs/models/shared/locationparameter.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { LocationParameter } from "@lukehagar/plexjs/sdk/models/shared"; +import { LocationParameter } from "@lukehagar/plexjs/models/shared"; let value: LocationParameter = LocationParameter.Wan; ``` diff --git a/docs/models/shared/mailingliststatus.md b/docs/models/shared/mailingliststatus.md new file mode 100644 index 00000000..eac930f8 --- /dev/null +++ b/docs/models/shared/mailingliststatus.md @@ -0,0 +1,22 @@ +# MailingListStatus + +Your current mailing list status + +## Example Usage + +```typescript +import { MailingListStatus } from "@lukehagar/plexjs/models/shared"; + +let value: MailingListStatus = MailingListStatus.Active; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Active` | active | +| `Unsubscribed` | unsubscribed | +| `Removed` | removed | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/models/shared/media.md b/docs/models/shared/media.md new file mode 100644 index 00000000..e797f37c --- /dev/null +++ b/docs/models/shared/media.md @@ -0,0 +1,126 @@ +# Media + +`Media` represents an one or more media files (parts) and is a child of a metadata item. There aren't necessarily any guaranteed attributes on media elements since the attributes will vary based on the type. The possible attributes are not documented here, but they typically have self-evident names. High-level media information that can be used for badging and flagging, such as `videoResolution` and codecs, is included on the media element. + + +## Example Usage + +```typescript +import { Media } from "@lukehagar/plexjs/models/shared"; + +let value: 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: [ + { + accessible: true, + audioProfile: "lc", + container: "mov", + duration: 150192, + exists: true, + file: "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", + has64bitOffsets: false, + id: 1, + indexes: "sd", + key: "/library/parts/1/1531779263/file.mov", + optimizedForStreaming: false, + size: 105355654, + stream: [ + { + default: true, + audioChannelLayout: "5.1(side)", + channels: 6, + bitDepth: 10, + doviblCompatID: 1, + doviblPresent: true, + dovielPresent: false, + doviLevel: 6, + doviPresent: true, + doviProfile: 8, + dovirpuPresent: true, + doviVersion: "1.0", + bitrate: 24743, + canAutoSync: false, + chromaLocation: "topleft", + chromaSubsampling: "4:2:0", + codedHeight: 1608, + codedWidth: 3840, + closedCaptions: true, + codec: "hevc", + colorPrimaries: "bt2020", + colorRange: "tv", + colorSpace: "bt2020nc", + colorTrc: "smpte2084", + displayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + extendedDisplayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + frameRate: 23.976, + hasScalingMatrix: false, + height: 1602, + id: 1002625, + index: 0, + key: "/library/streams/216389", + language: "English", + languageCode: "eng", + languageTag: "en", + format: "srt", + headerCompression: true, + level: 150, + original: true, + profile: "main 10", + refFrames: 1, + samplingRate: 48000, + scanType: "progressive", + embeddedInVideo: "progressive", + selected: true, + forced: true, + hearingImpaired: true, + dub: true, + title: "SDH", + streamIdentifier: 1, + width: 3840, + }, + ], + videoProfile: "main", + }, + ], + videoCodec: "h264", + videoFrameRate: "24p", + videoProfile: "main", + videoResolution: "720", + width: 1280, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | +| `aspectRatio` | *number* | :heavy_minus_sign: | N/A | 2.35 | +| `audioChannels` | *number* | :heavy_minus_sign: | N/A | 2 | +| `audioCodec` | *string* | :heavy_minus_sign: | N/A | aac | +| `audioProfile` | *string* | :heavy_minus_sign: | N/A | lc | +| `bitrate` | *number* | :heavy_minus_sign: | N/A | 5612 | +| `container` | *string* | :heavy_minus_sign: | N/A | mov | +| `duration` | *number* | :heavy_minus_sign: | N/A | 150192 | +| `has64bitOffsets` | *boolean* | :heavy_minus_sign: | N/A | false | +| `hasVoiceActivity` | *boolean* | :heavy_minus_sign: | N/A | true | +| `height` | *number* | :heavy_minus_sign: | N/A | 544 | +| `id` | *number* | :heavy_check_mark: | N/A | 1 | +| `optimizedForStreaming` | *boolean* | :heavy_minus_sign: | N/A | false | +| `part` | [shared.Part](../../models/shared/part.md)[] | :heavy_minus_sign: | N/A | | +| `videoCodec` | *string* | :heavy_minus_sign: | N/A | h264 | +| `videoFrameRate` | *string* | :heavy_minus_sign: | N/A | 24p | +| `videoProfile` | *string* | :heavy_minus_sign: | N/A | main | +| `videoResolution` | *string* | :heavy_minus_sign: | N/A | 720 | +| `width` | *number* | :heavy_minus_sign: | N/A | 1280 | +| `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediacontainer.md b/docs/models/shared/mediacontainer.md similarity index 98% rename from docs/sdk/models/shared/mediacontainer.md rename to docs/models/shared/mediacontainer.md index c1909bfb..0ca67d31 100644 --- a/docs/sdk/models/shared/mediacontainer.md +++ b/docs/models/shared/mediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { MediaContainer } from "@lukehagar/plexjs/sdk/models/shared"; +import { MediaContainer } from "@lukehagar/plexjs/models/shared"; let value: MediaContainer = {}; ``` diff --git a/docs/models/shared/mediacontainerwithartwork.md b/docs/models/shared/mediacontainerwithartwork.md new file mode 100644 index 00000000..28440e60 --- /dev/null +++ b/docs/models/shared/mediacontainerwithartwork.md @@ -0,0 +1,15 @@ +# MediaContainerWithArtwork + +## Example Usage + +```typescript +import { MediaContainerWithArtwork } from "@lukehagar/plexjs/models/shared"; + +let value: MediaContainerWithArtwork = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [shared.MediaContainerWithArtworkMediaContainer](../../models/shared/mediacontainerwithartworkmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediacontainerwithartworkmediacontainer.md b/docs/models/shared/mediacontainerwithartworkmediacontainer.md similarity index 96% rename from docs/sdk/models/shared/mediacontainerwithartworkmediacontainer.md rename to docs/models/shared/mediacontainerwithartworkmediacontainer.md index 7caa508f..65db2db5 100644 --- a/docs/sdk/models/shared/mediacontainerwithartworkmediacontainer.md +++ b/docs/models/shared/mediacontainerwithartworkmediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { MediaContainerWithArtworkMediaContainer } from "@lukehagar/plexjs/sdk/models/shared"; +import { MediaContainerWithArtworkMediaContainer } from "@lukehagar/plexjs/models/shared"; let value: MediaContainerWithArtworkMediaContainer = {}; ``` @@ -21,4 +21,4 @@ let value: MediaContainerWithArtworkMediaContainer = {}; | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `metadata` | [shared.MediaContainerWithArtworkMetadatum](../../../sdk/models/shared/mediacontainerwithartworkmetadatum.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `metadata` | [shared.MediaContainerWithArtworkMetadatum](../../models/shared/mediacontainerwithartworkmetadatum.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/mediacontainerwithartworkmetadatum.md b/docs/models/shared/mediacontainerwithartworkmetadatum.md new file mode 100644 index 00000000..f7846c94 --- /dev/null +++ b/docs/models/shared/mediacontainerwithartworkmetadatum.md @@ -0,0 +1,18 @@ +# MediaContainerWithArtworkMetadatum + +## Example Usage + +```typescript +import { MediaContainerWithArtworkMetadatum } from "@lukehagar/plexjs/models/shared"; + +let value: MediaContainerWithArtworkMetadatum = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `title` | *string* | :heavy_minus_sign: | The title of the item | +| `type` | [shared.MediaContainerWithArtworkType](../../models/shared/mediacontainerwithartworktype.md) | :heavy_minus_sign: | N/A | +| `key` | *string* | :heavy_minus_sign: | The path to the artwork | +| `additionalProperties` | Record | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediacontainerwithartworktype.md b/docs/models/shared/mediacontainerwithartworktype.md similarity index 93% rename from docs/sdk/models/shared/mediacontainerwithartworktype.md rename to docs/models/shared/mediacontainerwithartworktype.md index f8ebc519..9ff03fd0 100644 --- a/docs/sdk/models/shared/mediacontainerwithartworktype.md +++ b/docs/models/shared/mediacontainerwithartworktype.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { MediaContainerWithArtworkType } from "@lukehagar/plexjs/sdk/models/shared"; +import { MediaContainerWithArtworkType } from "@lukehagar/plexjs/models/shared"; let value: MediaContainerWithArtworkType = MediaContainerWithArtworkType.Image; ``` diff --git a/docs/sdk/models/shared/mediacontainerwithdecision.md b/docs/models/shared/mediacontainerwithdecision.md similarity index 86% rename from docs/sdk/models/shared/mediacontainerwithdecision.md rename to docs/models/shared/mediacontainerwithdecision.md index f1d8a8fd..f67e3418 100644 --- a/docs/sdk/models/shared/mediacontainerwithdecision.md +++ b/docs/models/shared/mediacontainerwithdecision.md @@ -8,8 +8,7 @@ It is also common for a `MediaContainer` to contain attributes "hoisted" from it ## Example Usage ```typescript -import { MediaContainerWithDecision } from "@lukehagar/plexjs/sdk/models/shared"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { MediaContainerWithDecision } from "@lukehagar/plexjs/models/shared"; let value: MediaContainerWithDecision = { mediaContainer: { @@ -168,7 +167,7 @@ let value: MediaContainerWithDecision = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -213,6 +212,6 @@ let value: MediaContainerWithDecision = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [shared.MediaContainerWithDecisionMediaContainer](../../../sdk/models/shared/mediacontainerwithdecisionmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `mediaContainer` | [shared.MediaContainerWithDecisionMediaContainer](../../models/shared/mediacontainerwithdecisionmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediacontainerwithdecisionguid.md b/docs/models/shared/mediacontainerwithdecisionguid.md similarity index 99% rename from docs/sdk/models/shared/mediacontainerwithdecisionguid.md rename to docs/models/shared/mediacontainerwithdecisionguid.md index 9718fc55..b22596b5 100644 --- a/docs/sdk/models/shared/mediacontainerwithdecisionguid.md +++ b/docs/models/shared/mediacontainerwithdecisionguid.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { MediaContainerWithDecisionGuid } from "@lukehagar/plexjs/sdk/models/shared"; +import { MediaContainerWithDecisionGuid } from "@lukehagar/plexjs/models/shared"; let value: MediaContainerWithDecisionGuid = { id: diff --git a/docs/models/shared/mediacontainerwithdecisionlocation.md b/docs/models/shared/mediacontainerwithdecisionlocation.md new file mode 100644 index 00000000..284eecac --- /dev/null +++ b/docs/models/shared/mediacontainerwithdecisionlocation.md @@ -0,0 +1,26 @@ +# MediaContainerWithDecisionLocation + +## Example Usage + +```typescript +import { MediaContainerWithDecisionLocation } from "@lukehagar/plexjs/models/shared"; + +let value: MediaContainerWithDecisionLocation = + MediaContainerWithDecisionLocation.SidecarSubs; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Direct` | direct | +| `SidecarSubs` | sidecar-subs | +| `SegmentsVideo` | segments-video | +| `SegmentsAudio` | segments-audio | +| `SegmentsAv` | segments-av | +| `SegmentsSubs` | segments-subs | +| `Embedded` | embedded | +| `Sidecar` | sidecar | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/models/shared/mediacontainerwithdecisionmedia.md b/docs/models/shared/mediacontainerwithdecisionmedia.md new file mode 100644 index 00000000..508c8608 --- /dev/null +++ b/docs/models/shared/mediacontainerwithdecisionmedia.md @@ -0,0 +1,129 @@ +# MediaContainerWithDecisionMedia + +`Media` represents an one or more media files (parts) and is a child of a metadata item. There aren't necessarily any guaranteed attributes on media elements since the attributes will vary based on the type. The possible attributes are not documented here, but they typically have self-evident names. High-level media information that can be used for badging and flagging, such as `videoResolution` and codecs, is included on the media element. + + +## Example Usage + +```typescript +import { MediaContainerWithDecisionMedia } from "@lukehagar/plexjs/models/shared"; + +let value: MediaContainerWithDecisionMedia = { + 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: [ + { + accessible: true, + audioProfile: "lc", + container: "mov", + duration: 150192, + exists: true, + file: "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", + has64bitOffsets: false, + id: 1, + indexes: "sd", + key: "/library/parts/1/1531779263/file.mov", + optimizedForStreaming: false, + size: 105355654, + stream: [ + { + default: true, + audioChannelLayout: "5.1(side)", + channels: 6, + bitDepth: 10, + doviblCompatID: 1, + doviblPresent: true, + dovielPresent: false, + doviLevel: 6, + doviPresent: true, + doviProfile: 8, + dovirpuPresent: true, + doviVersion: "1.0", + bitrate: 24743, + canAutoSync: false, + chromaLocation: "topleft", + chromaSubsampling: "4:2:0", + codedHeight: 1608, + codedWidth: 3840, + closedCaptions: true, + codec: "hevc", + colorPrimaries: "bt2020", + colorRange: "tv", + colorSpace: "bt2020nc", + colorTrc: "smpte2084", + displayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + extendedDisplayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + frameRate: 23.976, + hasScalingMatrix: false, + height: 1602, + id: 1002625, + index: 0, + key: "/library/streams/216389", + language: "English", + languageCode: "eng", + languageTag: "en", + format: "srt", + headerCompression: true, + level: 150, + original: true, + profile: "main 10", + refFrames: 1, + samplingRate: 48000, + scanType: "progressive", + embeddedInVideo: "progressive", + selected: true, + forced: true, + hearingImpaired: true, + dub: true, + title: "SDH", + streamIdentifier: 1, + width: 3840, + }, + ], + videoProfile: "main", + }, + ], + videoCodec: "h264", + videoFrameRate: "24p", + videoProfile: "main", + videoResolution: "720", + width: 1280, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `aspectRatio` | *number* | :heavy_minus_sign: | N/A | 2.35 | +| `audioChannels` | *number* | :heavy_minus_sign: | N/A | 2 | +| `audioCodec` | *string* | :heavy_minus_sign: | N/A | aac | +| `audioProfile` | *string* | :heavy_minus_sign: | N/A | lc | +| `bitrate` | *number* | :heavy_minus_sign: | N/A | 5612 | +| `container` | *string* | :heavy_minus_sign: | N/A | mov | +| `duration` | *number* | :heavy_minus_sign: | N/A | 150192 | +| `has64bitOffsets` | *boolean* | :heavy_minus_sign: | N/A | false | +| `hasVoiceActivity` | *boolean* | :heavy_minus_sign: | N/A | true | +| `height` | *number* | :heavy_minus_sign: | N/A | 544 | +| `id` | *number* | :heavy_check_mark: | N/A | 1 | +| `optimizedForStreaming` | *boolean* | :heavy_minus_sign: | N/A | false | +| `part` | [shared.MediaContainerWithDecisionPart](../../models/shared/mediacontainerwithdecisionpart.md)[] | :heavy_minus_sign: | N/A | | +| `videoCodec` | *string* | :heavy_minus_sign: | N/A | h264 | +| `videoFrameRate` | *string* | :heavy_minus_sign: | N/A | 24p | +| `videoProfile` | *string* | :heavy_minus_sign: | N/A | main | +| `videoResolution` | *string* | :heavy_minus_sign: | N/A | 720 | +| `width` | *number* | :heavy_minus_sign: | N/A | 1280 | +| `abr` | *boolean* | :heavy_minus_sign: | N/A | | +| `resourceSession` | *string* | :heavy_minus_sign: | N/A | | +| `selected` | *boolean* | :heavy_minus_sign: | N/A | | +| `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediacontainerwithdecisionmediacontainer.md b/docs/models/shared/mediacontainerwithdecisionmediacontainer.md similarity index 98% rename from docs/sdk/models/shared/mediacontainerwithdecisionmediacontainer.md rename to docs/models/shared/mediacontainerwithdecisionmediacontainer.md index a00c05a7..26372bb6 100644 --- a/docs/sdk/models/shared/mediacontainerwithdecisionmediacontainer.md +++ b/docs/models/shared/mediacontainerwithdecisionmediacontainer.md @@ -8,8 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { MediaContainerWithDecisionMediaContainer } from "@lukehagar/plexjs/sdk/models/shared"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { MediaContainerWithDecisionMediaContainer } from "@lukehagar/plexjs/models/shared"; let value: MediaContainerWithDecisionMediaContainer = { metadata: [ @@ -167,7 +166,7 @@ let value: MediaContainerWithDecisionMediaContainer = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -224,6 +223,6 @@ let value: MediaContainerWithDecisionMediaContainer = { | `generalDecisionText` | *string* | :heavy_minus_sign: | N/A | | `mdeDecisionCode` | *number* | :heavy_minus_sign: | The code indicating the status of evaluation of playback when client indicates `hasMDE=1` | | `mdeDecisionText` | *string* | :heavy_minus_sign: | Descriptive text for the above code | -| `metadata` | [shared.MediaContainerWithDecisionMetadatum](../../../sdk/models/shared/mediacontainerwithdecisionmetadatum.md)[] | :heavy_minus_sign: | N/A | +| `metadata` | [shared.MediaContainerWithDecisionMetadatum](../../models/shared/mediacontainerwithdecisionmetadatum.md)[] | :heavy_minus_sign: | N/A | | `transcodeDecisionCode` | *number* | :heavy_minus_sign: | N/A | | `transcodeDecisionText` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediacontainerwithdecisionmetadatum.md b/docs/models/shared/mediacontainerwithdecisionmetadatum.md similarity index 99% rename from docs/sdk/models/shared/mediacontainerwithdecisionmetadatum.md rename to docs/models/shared/mediacontainerwithdecisionmetadatum.md index e7c0305b..765d9e03 100644 --- a/docs/sdk/models/shared/mediacontainerwithdecisionmetadatum.md +++ b/docs/models/shared/mediacontainerwithdecisionmetadatum.md @@ -10,8 +10,7 @@ Metadata items can often live in a hierarchy with relationships between them. F ## Example Usage ```typescript -import { MediaContainerWithDecisionMetadatum } from "@lukehagar/plexjs/sdk/models/shared"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { MediaContainerWithDecisionMetadatum } from "@lukehagar/plexjs/models/shared"; let value: MediaContainerWithDecisionMetadatum = { title: "", @@ -167,7 +166,7 @@ let value: MediaContainerWithDecisionMetadatum = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -218,17 +217,17 @@ let value: MediaContainerWithDecisionMetadatum = { | `art` | *string* | :heavy_minus_sign: | When present, the URL for the background artwork for the item. | /library/metadata/58683/art/1703239236 | | `audienceRating` | *number* | :heavy_minus_sign: | Some rating systems separate reviewer ratings from audience ratings | | | `audienceRatingImage` | *string* | :heavy_minus_sign: | A URI representing the image to be shown with the audience rating (e.g. rottentomatoes://image.rating.spilled). | | -| `autotag` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `autotag` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `banner` | *string* | :heavy_minus_sign: | When present, the URL for a banner graphic for the item. | | | `chapterSource` | *string* | :heavy_minus_sign: | When present, indicates the source for the chapters in the media file. Can be media (the chapters were embedded in the media itself), agent (a metadata agent computed them), or mixed (a combination of the two). | media | | `childCount` | *number* | :heavy_minus_sign: | The number of child items associated with this media item. | 1 | | `composite` | *string* | :heavy_minus_sign: | When present, the URL for a composite image for descendent items (e.g. photo albums or playlists). | | | `contentRating` | *string* | :heavy_minus_sign: | If known, the content rating (e.g. MPAA) for an item. | | -| `country` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | -| `director` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `country` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `director` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `duration` | *number* | :heavy_minus_sign: | When present, the duration for the item, in units of milliseconds. | | -| `filter` | [shared.Filter](../../../sdk/models/shared/filter.md)[] | :heavy_minus_sign: | Typically only seen in metadata at a library's top level | | -| `genre` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `filter` | [shared.Filter](../../models/shared/filter.md)[] | :heavy_minus_sign: | Typically only seen in metadata at a library's top level | | +| `genre` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `grandparentArt` | *string* | :heavy_minus_sign: | The `art` of the grandparent | | | `grandparentGuid` | *string* | :heavy_minus_sign: | The GUID of the grandparent media item. | plex://show/5d9c081b170e24001f2a7be4 | | `grandparentHero` | *string* | :heavy_minus_sign: | The `hero` of the grandparent | | @@ -238,15 +237,15 @@ let value: MediaContainerWithDecisionMetadatum = { | `grandparentThumb` | *string* | :heavy_minus_sign: | The `thumb` of the grandparent | | | `grandparentTitle` | *string* | :heavy_minus_sign: | The `title` of the grandparent | | | `guid` | *string* | :heavy_minus_sign: | The globally unique identifier for the media item. | plex://movie/5d7768ba96b655001fdc0408 | -| `guids` | [shared.MediaContainerWithDecisionGuid](../../../sdk/models/shared/mediacontainerwithdecisionguid.md)[] | :heavy_minus_sign: | N/A | | +| `guids` | [shared.MediaContainerWithDecisionGuid](../../models/shared/mediacontainerwithdecisionguid.md)[] | :heavy_minus_sign: | N/A | | | `hero` | *string* | :heavy_minus_sign: | When present, the URL for a hero image for the item. | | -| `image` | [shared.Image](../../../sdk/models/shared/image.md)[] | :heavy_minus_sign: | N/A | | +| `image` | [shared.Image](../../models/shared/image.md)[] | :heavy_minus_sign: | N/A | | | `index` | *number* | :heavy_minus_sign: | When present, this represents the episode number for episodes, season number for seasons, or track number for audio tracks. | | | `key` | *string* | :heavy_check_mark: | The key at which the item's details can be fetched. In many cases a metadata item may be passed without all the details (such as in a hub) and this key corresponds to the endpoint to fetch additional details. | | | `lastViewedAt` | *number* | :heavy_minus_sign: | N/A | 1556281940 | | `leafCount` | *number* | :heavy_minus_sign: | For shows and seasons, contains the number of total episodes. | | -| `media` | [shared.MediaContainerWithDecisionMedia](../../../sdk/models/shared/mediacontainerwithdecisionmedia.md)[] | :heavy_minus_sign: | N/A | | -| `originallyAvailableAt` | [RFCDate](../../../types/rfcdate.md) | :heavy_minus_sign: | When present, in the format YYYY-MM-DD [HH:MM:SS] (the hours/minutes/seconds part is not always present). The air date, or a higher resolution release date for an item, depending on type. For example, episodes usually have air date like 1979-08-10 (we don't use epoch seconds because media existed prior to 1970). In some cases, recorded over-the-air content has higher resolution air date which includes a time component. Albums and movies may have day-resolution release dates as well. | 2022-12-14 | +| `media` | [shared.MediaContainerWithDecisionMedia](../../models/shared/mediacontainerwithdecisionmedia.md)[] | :heavy_minus_sign: | N/A | | +| `originallyAvailableAt` | [Date](../../types/rfcdate.md) | :heavy_minus_sign: | When present, in the format YYYY-MM-DD [HH:MM:SS] (the hours/minutes/seconds part is not always present). The air date, or a higher resolution release date for an item, depending on type. For example, episodes usually have air date like 1979-08-10 (we don't use epoch seconds because media existed prior to 1970). In some cases, recorded over-the-air content has higher resolution air date which includes a time component. Albums and movies may have day-resolution release dates as well. | 2022-12-14 | | `originalTitle` | *string* | :heavy_minus_sign: | When present, used to indicate an item's original title, e.g. a movie's foreign title. | | | `parentGuid` | *string* | :heavy_minus_sign: | The GUID of the parent media item. | plex://show/5d9c081b170e24001f2a7be4 | | `parentHero` | *string* | :heavy_minus_sign: | The `hero` of the parent | | @@ -258,16 +257,16 @@ let value: MediaContainerWithDecisionMetadatum = { | `primaryExtraKey` | *string* | :heavy_minus_sign: | Indicates that the item has a primary extra; for a movie, this is a trailer, and for a music track it is a music video. The URL points to the metadata details endpoint for the item. | | | `prompt` | *string* | :heavy_minus_sign: | Prompt to give the user for this directory (such as `Search Movies`) | | | `rating` | *number* | :heavy_minus_sign: | When present, the rating for the item. The exact meaning and representation depends on where the rating was sourced from. | | -| `ratingArray` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `ratingArray` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `ratingCount` | *number* | :heavy_minus_sign: | Number of ratings under this metadata | | | `ratingImage` | *string* | :heavy_minus_sign: | When present, indicates an image to be shown with the rating. This is passed back as a small set of defined URI values, e.g. rottentomatoes://image.rating.rotten. | | | `ratingKey` | *string* | :heavy_minus_sign: | This is the opaque string to be passed into timeline, scrobble, and rating endpoints to identify them. While it often appears to be numeric, this is not guaranteed. | | -| `role` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `role` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `search` | *boolean* | :heavy_minus_sign: | Indicates this is a search directory | | | `secondary` | *boolean* | :heavy_minus_sign: | Used by old clients to provide nested menus allowing for primative (but structured) navigation. | | | `skipChildren` | *boolean* | :heavy_minus_sign: | When found on a show item, indicates that the children (seasons) should be skipped in favor of the grandchildren (episodes). Useful for mini-series, etc. | | | `skipParent` | *boolean* | :heavy_minus_sign: | When present on an episode or track item, indicates parent should be skipped in favor of grandparent (show). | | -| `sort` | [shared.Sort](../../../sdk/models/shared/sort.md)[] | :heavy_minus_sign: | Typically only seen in metadata at a library's top level | | +| `sort` | [shared.Sort](../../models/shared/sort.md)[] | :heavy_minus_sign: | Typically only seen in metadata at a library's top level | | | `studio` | *string* | :heavy_minus_sign: | When present, the studio or label which produced an item (e.g. movie studio for movies, record label for albums). | | | `subtype` | *string* | :heavy_minus_sign: | The subtype of the video item, such as `photo` when the video item is in a photo library | | | `summary` | *string* | :heavy_minus_sign: | When present, the extended textual information about the item (e.g. movie plot, artist biography, album review). | | @@ -280,6 +279,6 @@ let value: MediaContainerWithDecisionMetadatum = { | `viewCount` | *number* | :heavy_minus_sign: | When a users has completed watched or listened to an item, this attribute contains the number of consumptions. | | | `viewedLeafCount` | *number* | :heavy_minus_sign: | For shows and seasons, contains the number of viewed episodes. | | | `viewOffset` | *number* | :heavy_minus_sign: | When a user is in the process of viewing or listening to this item, this attribute contains the current offset, in units of milliseconds. | | -| `writer` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `writer` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `year` | *number* | :heavy_minus_sign: | When present, the year associated with the item's release (e.g. release year for a movie). | | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediacontainerwithdecisionpart.md b/docs/models/shared/mediacontainerwithdecisionpart.md similarity index 51% rename from docs/sdk/models/shared/mediacontainerwithdecisionpart.md rename to docs/models/shared/mediacontainerwithdecisionpart.md index b479a773..5b525527 100644 --- a/docs/sdk/models/shared/mediacontainerwithdecisionpart.md +++ b/docs/models/shared/mediacontainerwithdecisionpart.md @@ -6,7 +6,7 @@ ## Example Usage ```typescript -import { MediaContainerWithDecisionPart } from "@lukehagar/plexjs/sdk/models/shared"; +import { MediaContainerWithDecisionPart } from "@lukehagar/plexjs/models/shared"; let value: MediaContainerWithDecisionPart = { accessible: true, @@ -82,22 +82,22 @@ let value: MediaContainerWithDecisionPart = { ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `accessible` | *boolean* | :heavy_minus_sign: | Indicates if the part is accessible. | true | -| `audioProfile` | *string* | :heavy_minus_sign: | N/A | lc | -| `container` | *string* | :heavy_minus_sign: | The container of the media file, such as `mp4` or `mkv` | mov | -| `duration` | *number* | :heavy_minus_sign: | The duration of the media item, in milliseconds | 150192 | -| `exists` | *boolean* | :heavy_minus_sign: | Indicates if the part exists. | true | -| `file` | *string* | :heavy_minus_sign: | The local file path at which the part is stored on the server | /home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov | -| `has64bitOffsets` | *boolean* | :heavy_minus_sign: | N/A | false | -| `id` | *number* | :heavy_check_mark: | N/A | 1 | -| `indexes` | *string* | :heavy_minus_sign: | N/A | sd | -| `key` | *string* | :heavy_check_mark: | The key from which the media can be streamed | /library/parts/1/1531779263/file.mov | -| `optimizedForStreaming` | *boolean* | :heavy_minus_sign: | N/A | false | -| `size` | *number* | :heavy_minus_sign: | The size of the media, in bytes | 105355654 | -| `stream` | [shared.MediaContainerWithDecisionStream](../../../sdk/models/shared/mediacontainerwithdecisionstream.md)[] | :heavy_minus_sign: | N/A | | -| `videoProfile` | *string* | :heavy_minus_sign: | N/A | main | -| `decision` | [shared.Decision](../../../sdk/models/shared/decision.md) | :heavy_minus_sign: | N/A | | -| `selected` | *boolean* | :heavy_minus_sign: | N/A | | -| `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `accessible` | *boolean* | :heavy_minus_sign: | Indicates if the part is accessible. | true | +| `audioProfile` | *string* | :heavy_minus_sign: | N/A | lc | +| `container` | *string* | :heavy_minus_sign: | The container of the media file, such as `mp4` or `mkv` | mov | +| `duration` | *number* | :heavy_minus_sign: | The duration of the media item, in milliseconds | 150192 | +| `exists` | *boolean* | :heavy_minus_sign: | Indicates if the part exists. | true | +| `file` | *string* | :heavy_minus_sign: | The local file path at which the part is stored on the server | /home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov | +| `has64bitOffsets` | *boolean* | :heavy_minus_sign: | N/A | false | +| `id` | *number* | :heavy_check_mark: | N/A | 1 | +| `indexes` | *string* | :heavy_minus_sign: | N/A | sd | +| `key` | *string* | :heavy_check_mark: | The key from which the media can be streamed | /library/parts/1/1531779263/file.mov | +| `optimizedForStreaming` | *boolean* | :heavy_minus_sign: | N/A | false | +| `size` | *number* | :heavy_minus_sign: | The size of the media, in bytes | 105355654 | +| `stream` | [shared.MediaContainerWithDecisionStream](../../models/shared/mediacontainerwithdecisionstream.md)[] | :heavy_minus_sign: | N/A | | +| `videoProfile` | *string* | :heavy_minus_sign: | N/A | main | +| `decision` | [shared.Decision](../../models/shared/decision.md) | :heavy_minus_sign: | N/A | | +| `selected` | *boolean* | :heavy_minus_sign: | N/A | | +| `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/mediacontainerwithdecisionstream.md b/docs/models/shared/mediacontainerwithdecisionstream.md new file mode 100644 index 00000000..dfaf700d --- /dev/null +++ b/docs/models/shared/mediacontainerwithdecisionstream.md @@ -0,0 +1,124 @@ +# MediaContainerWithDecisionStream + +`Stream` represents a particular stream from a media item, such as the video stream, audio stream, or subtitle stream. The stream may either be part of the file represented by the parent `Part` or, especially for subtitles, an external file. The stream contains more detailed information about the specific stream. For example, a video may include the `aspectRatio` at the `Media` level, but detailed information about the video stream like the color space will be included on the `Stream` for the video stream. Note that photos do not have streams (mostly as an optimization). + + +## Example Usage + +```typescript +import { MediaContainerWithDecisionStream } from "@lukehagar/plexjs/models/shared"; + +let value: MediaContainerWithDecisionStream = { + default: true, + audioChannelLayout: "5.1(side)", + channels: 6, + bitDepth: 10, + doviblCompatID: 1, + doviblPresent: true, + dovielPresent: false, + doviLevel: 6, + doviPresent: true, + doviProfile: 8, + dovirpuPresent: true, + doviVersion: "1.0", + bitrate: 24743, + canAutoSync: false, + chromaLocation: "topleft", + chromaSubsampling: "4:2:0", + codedHeight: 1608, + codedWidth: 3840, + closedCaptions: true, + codec: "hevc", + colorPrimaries: "bt2020", + colorRange: "tv", + colorSpace: "bt2020nc", + colorTrc: "smpte2084", + displayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + extendedDisplayTitle: "4K DoVi/HDR10 (HEVC Main 10)", + frameRate: 23.976, + hasScalingMatrix: false, + height: 1602, + id: 1002625, + index: 0, + key: "/library/streams/216389", + language: "English", + languageCode: "eng", + languageTag: "en", + format: "srt", + headerCompression: true, + level: 150, + original: true, + profile: "main 10", + refFrames: 1, + samplingRate: 48000, + scanType: "progressive", + embeddedInVideo: "progressive", + selected: true, + forced: true, + hearingImpaired: true, + dub: true, + title: "SDH", + streamIdentifier: 1, + width: 3840, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `default` | *boolean* | :heavy_minus_sign: | Indicates if this stream is default. | true | +| `audioChannelLayout` | *string* | :heavy_minus_sign: | Audio channel layout. | 5.1(side) | +| `channels` | *number* | :heavy_minus_sign: | Number of audio channels (for audio streams). | 6 | +| `bitDepth` | *number* | :heavy_minus_sign: | Bit depth of the video stream. | 10 | +| `doviblCompatID` | *number* | :heavy_minus_sign: | Dolby Vision BL compatibility ID. | 1 | +| `doviblPresent` | *boolean* | :heavy_minus_sign: | Indicates if Dolby Vision BL is present. | true | +| `dovielPresent` | *boolean* | :heavy_minus_sign: | Indicates if Dolby Vision EL is present. | false | +| `doviLevel` | *number* | :heavy_minus_sign: | Dolby Vision level. | 6 | +| `doviPresent` | *boolean* | :heavy_minus_sign: | Indicates if Dolby Vision is present. | true | +| `doviProfile` | *number* | :heavy_minus_sign: | Dolby Vision profile. | 8 | +| `dovirpuPresent` | *boolean* | :heavy_minus_sign: | Indicates if Dolby Vision RPU is present. | true | +| `doviVersion` | *string* | :heavy_minus_sign: | Dolby Vision version. | 1.0 | +| `bitrate` | *number* | :heavy_minus_sign: | Bitrate of the stream. | 24743 | +| `canAutoSync` | *boolean* | :heavy_minus_sign: | Indicates if the stream can auto-sync. | false | +| `chromaLocation` | *string* | :heavy_minus_sign: | Chroma sample location. | topleft | +| `chromaSubsampling` | *string* | :heavy_minus_sign: | Chroma subsampling format. | 4:2:0 | +| `codedHeight` | *number* | :heavy_minus_sign: | Coded video height. | 1608 | +| `codedWidth` | *number* | :heavy_minus_sign: | Coded video width. | 3840 | +| `closedCaptions` | *boolean* | :heavy_minus_sign: | N/A | true | +| `codec` | *string* | :heavy_check_mark: | Codec used by the stream. | hevc | +| `colorPrimaries` | *string* | :heavy_minus_sign: | Color primaries used. | bt2020 | +| `colorRange` | *string* | :heavy_minus_sign: | Color range (e.g., tv). | tv | +| `colorSpace` | *string* | :heavy_minus_sign: | Color space. | bt2020nc | +| `colorTrc` | *string* | :heavy_minus_sign: | Color transfer characteristics. | smpte2084 | +| `displayTitle` | *string* | :heavy_check_mark: | Display title for the stream. | 4K DoVi/HDR10 (HEVC Main 10) | +| `extendedDisplayTitle` | *string* | :heavy_minus_sign: | Extended display title for the stream. | 4K DoVi/HDR10 (HEVC Main 10) | +| `frameRate` | *number* | :heavy_minus_sign: | Frame rate of the stream. | 23.976 | +| `hasScalingMatrix` | *boolean* | :heavy_minus_sign: | N/A | false | +| `height` | *number* | :heavy_minus_sign: | Height of the video stream. | 1602 | +| `id` | *number* | :heavy_check_mark: | Unique stream identifier. | 1002625 | +| `index` | *number* | :heavy_minus_sign: | Index of the stream. | 0 | +| `key` | *string* | :heavy_check_mark: | Key to access this stream part. | /library/streams/216389 | +| `language` | *string* | :heavy_minus_sign: | Language of the stream. | English | +| `languageCode` | *string* | :heavy_minus_sign: | ISO language code. | eng | +| `languageTag` | *string* | :heavy_minus_sign: | Language tag (e.g., en). | en | +| `format` | *string* | :heavy_minus_sign: | Format of the stream (e.g., srt). | srt | +| `headerCompression` | *boolean* | :heavy_minus_sign: | Indicates whether header compression is enabled. | true | +| `level` | *number* | :heavy_minus_sign: | Video level. | 150 | +| `original` | *boolean* | :heavy_minus_sign: | Indicates if this is the original stream. | true | +| `profile` | *string* | :heavy_minus_sign: | Video profile. | main 10 | +| `refFrames` | *number* | :heavy_minus_sign: | Number of reference frames. | 1 | +| `samplingRate` | *number* | :heavy_minus_sign: | Sampling rate for the audio stream. | 48000 | +| `scanType` | *string* | :heavy_minus_sign: | N/A | progressive | +| `embeddedInVideo` | *string* | :heavy_minus_sign: | N/A | progressive | +| `selected` | *boolean* | :heavy_minus_sign: | Indicates if this stream is selected (applicable for audio streams). | true | +| `forced` | *boolean* | :heavy_minus_sign: | N/A | true | +| `hearingImpaired` | *boolean* | :heavy_minus_sign: | Indicates if the stream is for the hearing impaired. | true | +| `dub` | *boolean* | :heavy_minus_sign: | Indicates if the stream is a dub. | true | +| `title` | *string* | :heavy_minus_sign: | Optional title for the stream (e.g., language variant). | SDH | +| `streamIdentifier` | *number* | :heavy_minus_sign: | N/A | 1 | +| `streamType` | *number* | :heavy_check_mark: | Stream type:
- VIDEO = 1
- AUDIO = 2
- SUBTITLE = 3
| | +| `width` | *number* | :heavy_minus_sign: | Width of the video stream. | 3840 | +| `decision` | [shared.StreamDecision](../../models/shared/streamdecision.md) | :heavy_minus_sign: | N/A | | +| `location` | [shared.MediaContainerWithDecisionLocation](../../models/shared/mediacontainerwithdecisionlocation.md) | :heavy_minus_sign: | N/A | | +| `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/mediacontainerwithdevice.md b/docs/models/shared/mediacontainerwithdevice.md new file mode 100644 index 00000000..19e9b07f --- /dev/null +++ b/docs/models/shared/mediacontainerwithdevice.md @@ -0,0 +1,15 @@ +# MediaContainerWithDevice + +## Example Usage + +```typescript +import { MediaContainerWithDevice } from "@lukehagar/plexjs/models/shared"; + +let value: MediaContainerWithDevice = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [shared.MediaContainerWithDeviceMediaContainer](../../models/shared/mediacontainerwithdevicemediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/mediacontainerwithdevicedevice.md b/docs/models/shared/mediacontainerwithdevicedevice.md new file mode 100644 index 00000000..9cf96484 --- /dev/null +++ b/docs/models/shared/mediacontainerwithdevicedevice.md @@ -0,0 +1,27 @@ +# MediaContainerWithDeviceDevice + +## Example Usage + +```typescript +import { MediaContainerWithDeviceDevice } from "@lukehagar/plexjs/models/shared"; + +let value: MediaContainerWithDeviceDevice = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | +| `channelMapping` | [shared.ChannelMapping](../../models/shared/channelmapping.md)[] | :heavy_minus_sign: | N/A | +| `key` | *string* | :heavy_minus_sign: | N/A | +| `lastSeenAt` | *number* | :heavy_minus_sign: | N/A | +| `make` | *string* | :heavy_minus_sign: | N/A | +| `model` | *string* | :heavy_minus_sign: | N/A | +| `modelNumber` | *string* | :heavy_minus_sign: | N/A | +| `protocol` | *string* | :heavy_minus_sign: | N/A | +| `sources` | *string* | :heavy_minus_sign: | N/A | +| `state` | *string* | :heavy_minus_sign: | N/A | +| `status` | *string* | :heavy_minus_sign: | N/A | +| `tuners` | *string* | :heavy_minus_sign: | N/A | +| `uri` | *string* | :heavy_minus_sign: | N/A | +| `uuid` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediacontainerwithdevicemediacontainer.md b/docs/models/shared/mediacontainerwithdevicemediacontainer.md similarity index 96% rename from docs/sdk/models/shared/mediacontainerwithdevicemediacontainer.md rename to docs/models/shared/mediacontainerwithdevicemediacontainer.md index b63a77d3..b449226a 100644 --- a/docs/sdk/models/shared/mediacontainerwithdevicemediacontainer.md +++ b/docs/models/shared/mediacontainerwithdevicemediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { MediaContainerWithDeviceMediaContainer } from "@lukehagar/plexjs/sdk/models/shared"; +import { MediaContainerWithDeviceMediaContainer } from "@lukehagar/plexjs/models/shared"; let value: MediaContainerWithDeviceMediaContainer = {}; ``` @@ -21,4 +21,4 @@ let value: MediaContainerWithDeviceMediaContainer = {}; | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `device` | [shared.MediaContainerWithDeviceDevice](../../../sdk/models/shared/mediacontainerwithdevicedevice.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `device` | [shared.MediaContainerWithDeviceDevice](../../models/shared/mediacontainerwithdevicedevice.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/mediacontainerwithdirectory.md b/docs/models/shared/mediacontainerwithdirectory.md new file mode 100644 index 00000000..6ff82968 --- /dev/null +++ b/docs/models/shared/mediacontainerwithdirectory.md @@ -0,0 +1,15 @@ +# MediaContainerWithDirectory + +## Example Usage + +```typescript +import { MediaContainerWithDirectory } from "@lukehagar/plexjs/models/shared"; + +let value: MediaContainerWithDirectory = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [shared.MediaContainerWithDirectoryMediaContainer](../../models/shared/mediacontainerwithdirectorymediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediacontainerwithdirectorymediacontainer.md b/docs/models/shared/mediacontainerwithdirectorymediacontainer.md similarity index 96% rename from docs/sdk/models/shared/mediacontainerwithdirectorymediacontainer.md rename to docs/models/shared/mediacontainerwithdirectorymediacontainer.md index 334aa328..7e95574a 100644 --- a/docs/sdk/models/shared/mediacontainerwithdirectorymediacontainer.md +++ b/docs/models/shared/mediacontainerwithdirectorymediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { MediaContainerWithDirectoryMediaContainer } from "@lukehagar/plexjs/sdk/models/shared"; +import { MediaContainerWithDirectoryMediaContainer } from "@lukehagar/plexjs/models/shared"; let value: MediaContainerWithDirectoryMediaContainer = {}; ``` @@ -21,4 +21,4 @@ let value: MediaContainerWithDirectoryMediaContainer = {}; | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `directory` | [shared.Directory](../../../sdk/models/shared/directory.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `directory` | [shared.Directory](../../models/shared/directory.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediacontainerwithhubs.md b/docs/models/shared/mediacontainerwithhubs.md similarity index 88% rename from docs/sdk/models/shared/mediacontainerwithhubs.md rename to docs/models/shared/mediacontainerwithhubs.md index 7f6609cc..02848858 100644 --- a/docs/sdk/models/shared/mediacontainerwithhubs.md +++ b/docs/models/shared/mediacontainerwithhubs.md @@ -5,8 +5,7 @@ OK ## Example Usage ```typescript -import { MediaContainerWithHubs } from "@lukehagar/plexjs/sdk/models/shared"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { MediaContainerWithHubs } from "@lukehagar/plexjs/models/shared"; let value: MediaContainerWithHubs = { mediaContainer: { @@ -172,7 +171,7 @@ let value: MediaContainerWithHubs = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -222,6 +221,6 @@ let value: MediaContainerWithHubs = { ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [shared.MediaContainerWithHubsMediaContainer](../../../sdk/models/shared/mediacontainerwithhubsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [shared.MediaContainerWithHubsMediaContainer](../../models/shared/mediacontainerwithhubsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediacontainerwithhubsmediacontainer.md b/docs/models/shared/mediacontainerwithhubsmediacontainer.md similarity index 98% rename from docs/sdk/models/shared/mediacontainerwithhubsmediacontainer.md rename to docs/models/shared/mediacontainerwithhubsmediacontainer.md index a96e24e8..25bc88db 100644 --- a/docs/sdk/models/shared/mediacontainerwithhubsmediacontainer.md +++ b/docs/models/shared/mediacontainerwithhubsmediacontainer.md @@ -8,8 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { MediaContainerWithHubsMediaContainer } from "@lukehagar/plexjs/sdk/models/shared"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { MediaContainerWithHubsMediaContainer } from "@lukehagar/plexjs/models/shared"; let value: MediaContainerWithHubsMediaContainer = { hub: [ @@ -173,7 +172,7 @@ let value: MediaContainerWithHubsMediaContainer = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -228,4 +227,4 @@ let value: MediaContainerWithHubsMediaContainer = { | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `hub` | [shared.Hub](../../../sdk/models/shared/hub.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `hub` | [shared.Hub](../../models/shared/hub.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/mediacontainerwithlineup.md b/docs/models/shared/mediacontainerwithlineup.md new file mode 100644 index 00000000..82c653e7 --- /dev/null +++ b/docs/models/shared/mediacontainerwithlineup.md @@ -0,0 +1,15 @@ +# MediaContainerWithLineup + +## Example Usage + +```typescript +import { MediaContainerWithLineup } from "@lukehagar/plexjs/models/shared"; + +let value: MediaContainerWithLineup = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [shared.MediaContainerWithLineupMediaContainer](../../models/shared/mediacontainerwithlineupmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediacontainerwithlineupmediacontainer.md b/docs/models/shared/mediacontainerwithlineupmediacontainer.md similarity index 97% rename from docs/sdk/models/shared/mediacontainerwithlineupmediacontainer.md rename to docs/models/shared/mediacontainerwithlineupmediacontainer.md index 6e695894..fb695054 100644 --- a/docs/sdk/models/shared/mediacontainerwithlineupmediacontainer.md +++ b/docs/models/shared/mediacontainerwithlineupmediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { MediaContainerWithLineupMediaContainer } from "@lukehagar/plexjs/sdk/models/shared"; +import { MediaContainerWithLineupMediaContainer } from "@lukehagar/plexjs/models/shared"; let value: MediaContainerWithLineupMediaContainer = {}; ``` @@ -21,5 +21,5 @@ let value: MediaContainerWithLineupMediaContainer = {}; | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `lineup` | [shared.Lineup](../../../sdk/models/shared/lineup.md)[] | :heavy_minus_sign: | N/A | +| `lineup` | [shared.Lineup](../../models/shared/lineup.md)[] | :heavy_minus_sign: | N/A | | `uuid` | *string* | :heavy_minus_sign: | The UUID of this set lineups | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediacontainerwithmetadata.md b/docs/models/shared/mediacontainerwithmetadata.md similarity index 85% rename from docs/sdk/models/shared/mediacontainerwithmetadata.md rename to docs/models/shared/mediacontainerwithmetadata.md index 1f6d423f..2bceff36 100644 --- a/docs/sdk/models/shared/mediacontainerwithmetadata.md +++ b/docs/models/shared/mediacontainerwithmetadata.md @@ -3,8 +3,7 @@ ## Example Usage ```typescript -import { MediaContainerWithMetadata } from "@lukehagar/plexjs/sdk/models/shared"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { MediaContainerWithMetadata } from "@lukehagar/plexjs/models/shared"; let value: MediaContainerWithMetadata = { mediaContainer: { @@ -163,7 +162,7 @@ let value: MediaContainerWithMetadata = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -208,6 +207,6 @@ let value: MediaContainerWithMetadata = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [shared.MediaContainerWithMetadataMediaContainer](../../../sdk/models/shared/mediacontainerwithmetadatamediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `mediaContainer` | [shared.MediaContainerWithMetadataMediaContainer](../../models/shared/mediacontainerwithmetadatamediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediacontainerwithmetadatamediacontainer.md b/docs/models/shared/mediacontainerwithmetadatamediacontainer.md similarity index 97% rename from docs/sdk/models/shared/mediacontainerwithmetadatamediacontainer.md rename to docs/models/shared/mediacontainerwithmetadatamediacontainer.md index 906c836f..37aaf3ac 100644 --- a/docs/sdk/models/shared/mediacontainerwithmetadatamediacontainer.md +++ b/docs/models/shared/mediacontainerwithmetadatamediacontainer.md @@ -8,8 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { MediaContainerWithMetadataMediaContainer } from "@lukehagar/plexjs/sdk/models/shared"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { MediaContainerWithMetadataMediaContainer } from "@lukehagar/plexjs/models/shared"; let value: MediaContainerWithMetadataMediaContainer = { metadata: [ @@ -167,7 +166,7 @@ let value: MediaContainerWithMetadataMediaContainer = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -217,4 +216,4 @@ let value: MediaContainerWithMetadataMediaContainer = { | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `metadata` | [shared.Metadata](../../../sdk/models/shared/metadata.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `metadata` | [shared.Metadata](../../models/shared/metadata.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediacontainerwithnestedmetadata.md b/docs/models/shared/mediacontainerwithnestedmetadata.md similarity index 94% rename from docs/sdk/models/shared/mediacontainerwithnestedmetadata.md rename to docs/models/shared/mediacontainerwithnestedmetadata.md index 1a92ad6b..6852fb91 100644 --- a/docs/sdk/models/shared/mediacontainerwithnestedmetadata.md +++ b/docs/models/shared/mediacontainerwithnestedmetadata.md @@ -3,8 +3,7 @@ ## Example Usage ```typescript -import { MediaContainerWithNestedMetadata } from "@lukehagar/plexjs/sdk/models/shared"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { MediaContainerWithNestedMetadata } from "@lukehagar/plexjs/models/shared"; let value: MediaContainerWithNestedMetadata = { mediaContainer: { @@ -163,7 +162,7 @@ let value: MediaContainerWithNestedMetadata = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -356,7 +355,7 @@ let value: MediaContainerWithNestedMetadata = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -403,6 +402,6 @@ let value: MediaContainerWithNestedMetadata = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [shared.MediaContainerWithNestedMetadataMediaContainer](../../../sdk/models/shared/mediacontainerwithnestedmetadatamediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `mediaContainer` | [shared.MediaContainerWithNestedMetadataMediaContainer](../../models/shared/mediacontainerwithnestedmetadatamediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediacontainerwithnestedmetadataguid.md b/docs/models/shared/mediacontainerwithnestedmetadataguid.md similarity index 99% rename from docs/sdk/models/shared/mediacontainerwithnestedmetadataguid.md rename to docs/models/shared/mediacontainerwithnestedmetadataguid.md index c6a9f049..9965982a 100644 --- a/docs/sdk/models/shared/mediacontainerwithnestedmetadataguid.md +++ b/docs/models/shared/mediacontainerwithnestedmetadataguid.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { MediaContainerWithNestedMetadataGuid } from "@lukehagar/plexjs/sdk/models/shared"; +import { MediaContainerWithNestedMetadataGuid } from "@lukehagar/plexjs/models/shared"; let value: MediaContainerWithNestedMetadataGuid = { id: diff --git a/docs/sdk/models/shared/mediacontainerwithnestedmetadatamediacontainer.md b/docs/models/shared/mediacontainerwithnestedmetadatamediacontainer.md similarity index 98% rename from docs/sdk/models/shared/mediacontainerwithnestedmetadatamediacontainer.md rename to docs/models/shared/mediacontainerwithnestedmetadatamediacontainer.md index 69f4b798..2c8cafdc 100644 --- a/docs/sdk/models/shared/mediacontainerwithnestedmetadatamediacontainer.md +++ b/docs/models/shared/mediacontainerwithnestedmetadatamediacontainer.md @@ -8,8 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { MediaContainerWithNestedMetadataMediaContainer } from "@lukehagar/plexjs/sdk/models/shared"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { MediaContainerWithNestedMetadataMediaContainer } from "@lukehagar/plexjs/models/shared"; let value: MediaContainerWithNestedMetadataMediaContainer = { metadataItem: [ @@ -167,7 +166,7 @@ let value: MediaContainerWithNestedMetadataMediaContainer = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -359,7 +358,7 @@ let value: MediaContainerWithNestedMetadataMediaContainer = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -411,4 +410,4 @@ let value: MediaContainerWithNestedMetadataMediaContainer = { | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `metadataItem` | [shared.MetadataItem](../../../sdk/models/shared/metadataitem.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `metadataItem` | [shared.MetadataItem](../../models/shared/metadataitem.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediacontainerwithplaylistmetadata.md b/docs/models/shared/mediacontainerwithplaylistmetadata.md similarity index 89% rename from docs/sdk/models/shared/mediacontainerwithplaylistmetadata.md rename to docs/models/shared/mediacontainerwithplaylistmetadata.md index 0b971b4c..c55088ff 100644 --- a/docs/sdk/models/shared/mediacontainerwithplaylistmetadata.md +++ b/docs/models/shared/mediacontainerwithplaylistmetadata.md @@ -3,8 +3,7 @@ ## Example Usage ```typescript -import { MediaContainerWithPlaylistMetadata } from "@lukehagar/plexjs/sdk/models/shared"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { MediaContainerWithPlaylistMetadata } from "@lukehagar/plexjs/models/shared"; let value: MediaContainerWithPlaylistMetadata = { mediaContainer: { @@ -163,7 +162,7 @@ let value: MediaContainerWithPlaylistMetadata = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -208,6 +207,6 @@ let value: MediaContainerWithPlaylistMetadata = { ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [shared.MediaContainerWithPlaylistMetadataMediaContainer](../../../sdk/models/shared/mediacontainerwithplaylistmetadatamediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [shared.MediaContainerWithPlaylistMetadataMediaContainer](../../models/shared/mediacontainerwithplaylistmetadatamediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediacontainerwithplaylistmetadataguid.md b/docs/models/shared/mediacontainerwithplaylistmetadataguid.md similarity index 99% rename from docs/sdk/models/shared/mediacontainerwithplaylistmetadataguid.md rename to docs/models/shared/mediacontainerwithplaylistmetadataguid.md index 6c19fa72..33708ff7 100644 --- a/docs/sdk/models/shared/mediacontainerwithplaylistmetadataguid.md +++ b/docs/models/shared/mediacontainerwithplaylistmetadataguid.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { MediaContainerWithPlaylistMetadataGuid } from "@lukehagar/plexjs/sdk/models/shared"; +import { MediaContainerWithPlaylistMetadataGuid } from "@lukehagar/plexjs/models/shared"; let value: MediaContainerWithPlaylistMetadataGuid = { id: diff --git a/docs/sdk/models/shared/mediacontainerwithplaylistmetadatamediacontainer.md b/docs/models/shared/mediacontainerwithplaylistmetadatamediacontainer.md similarity index 97% rename from docs/sdk/models/shared/mediacontainerwithplaylistmetadatamediacontainer.md rename to docs/models/shared/mediacontainerwithplaylistmetadatamediacontainer.md index f923909c..309f2497 100644 --- a/docs/sdk/models/shared/mediacontainerwithplaylistmetadatamediacontainer.md +++ b/docs/models/shared/mediacontainerwithplaylistmetadatamediacontainer.md @@ -8,8 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { MediaContainerWithPlaylistMetadataMediaContainer } from "@lukehagar/plexjs/sdk/models/shared"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { MediaContainerWithPlaylistMetadataMediaContainer } from "@lukehagar/plexjs/models/shared"; let value: MediaContainerWithPlaylistMetadataMediaContainer = { metadata: [ @@ -167,7 +166,7 @@ let value: MediaContainerWithPlaylistMetadataMediaContainer = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -217,4 +216,4 @@ let value: MediaContainerWithPlaylistMetadataMediaContainer = { | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `metadata` | [shared.MediaContainerWithPlaylistMetadataMetadatum](../../../sdk/models/shared/mediacontainerwithplaylistmetadatametadatum.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `metadata` | [shared.MediaContainerWithPlaylistMetadataMetadatum](../../models/shared/mediacontainerwithplaylistmetadatametadatum.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediacontainerwithplaylistmetadatametadatum.md b/docs/models/shared/mediacontainerwithplaylistmetadatametadatum.md similarity index 99% rename from docs/sdk/models/shared/mediacontainerwithplaylistmetadatametadatum.md rename to docs/models/shared/mediacontainerwithplaylistmetadatametadatum.md index 333ace95..47d88861 100644 --- a/docs/sdk/models/shared/mediacontainerwithplaylistmetadatametadatum.md +++ b/docs/models/shared/mediacontainerwithplaylistmetadatametadatum.md @@ -10,8 +10,7 @@ Metadata items can often live in a hierarchy with relationships between them. F ## Example Usage ```typescript -import { MediaContainerWithPlaylistMetadataMetadatum } from "@lukehagar/plexjs/sdk/models/shared"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { MediaContainerWithPlaylistMetadataMetadatum } from "@lukehagar/plexjs/models/shared"; let value: MediaContainerWithPlaylistMetadataMetadatum = { key: "", @@ -167,7 +166,7 @@ let value: MediaContainerWithPlaylistMetadataMetadatum = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -216,7 +215,7 @@ let value: MediaContainerWithPlaylistMetadataMetadatum = { | `duration` | *number* | :heavy_minus_sign: | When present, the duration for the item, in units of milliseconds. | | | `key` | *string* | :heavy_check_mark: | The key at which the item's details can be fetched. In many cases a metadata item may be passed without all the details (such as in a hub) and this key corresponds to the endpoint to fetch additional details. | | | `leafCount` | *number* | :heavy_minus_sign: | For shows and seasons, contains the number of total episodes. | | -| `playlistType` | [shared.PlaylistType](../../../sdk/models/shared/playlisttype.md) | :heavy_minus_sign: | The type of the playlist. | | +| `playlistType` | [shared.PlaylistType](../../models/shared/playlisttype.md) | :heavy_minus_sign: | The type of the playlist. | | | `smart` | *boolean* | :heavy_minus_sign: | Whether or not the playlist is smart. | | | `specialPlaylistType` | *string* | :heavy_minus_sign: | If this is a special playlist, this returns its type (e.g. favorites). | | | `title` | *string* | :heavy_check_mark: | The title of the item (e.g. “300” or “The Simpsons”) | | @@ -226,15 +225,15 @@ let value: MediaContainerWithPlaylistMetadataMetadatum = { | `art` | *string* | :heavy_minus_sign: | When present, the URL for the background artwork for the item. | /library/metadata/58683/art/1703239236 | | `audienceRating` | *number* | :heavy_minus_sign: | Some rating systems separate reviewer ratings from audience ratings | | | `audienceRatingImage` | *string* | :heavy_minus_sign: | A URI representing the image to be shown with the audience rating (e.g. rottentomatoes://image.rating.spilled). | | -| `autotag` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `autotag` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `banner` | *string* | :heavy_minus_sign: | When present, the URL for a banner graphic for the item. | | | `chapterSource` | *string* | :heavy_minus_sign: | When present, indicates the source for the chapters in the media file. Can be media (the chapters were embedded in the media itself), agent (a metadata agent computed them), or mixed (a combination of the two). | media | | `childCount` | *number* | :heavy_minus_sign: | The number of child items associated with this media item. | 1 | | `contentRating` | *string* | :heavy_minus_sign: | If known, the content rating (e.g. MPAA) for an item. | | -| `country` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | -| `director` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | -| `filter` | [shared.Filter](../../../sdk/models/shared/filter.md)[] | :heavy_minus_sign: | Typically only seen in metadata at a library's top level | | -| `genre` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `country` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `director` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `filter` | [shared.Filter](../../models/shared/filter.md)[] | :heavy_minus_sign: | Typically only seen in metadata at a library's top level | | +| `genre` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `grandparentArt` | *string* | :heavy_minus_sign: | The `art` of the grandparent | | | `grandparentGuid` | *string* | :heavy_minus_sign: | The GUID of the grandparent media item. | plex://show/5d9c081b170e24001f2a7be4 | | `grandparentHero` | *string* | :heavy_minus_sign: | The `hero` of the grandparent | | @@ -244,13 +243,13 @@ let value: MediaContainerWithPlaylistMetadataMetadatum = { | `grandparentThumb` | *string* | :heavy_minus_sign: | The `thumb` of the grandparent | | | `grandparentTitle` | *string* | :heavy_minus_sign: | The `title` of the grandparent | | | `guid` | *string* | :heavy_minus_sign: | The globally unique identifier for the media item. | plex://movie/5d7768ba96b655001fdc0408 | -| `guids` | [shared.MediaContainerWithPlaylistMetadataGuid](../../../sdk/models/shared/mediacontainerwithplaylistmetadataguid.md)[] | :heavy_minus_sign: | N/A | | +| `guids` | [shared.MediaContainerWithPlaylistMetadataGuid](../../models/shared/mediacontainerwithplaylistmetadataguid.md)[] | :heavy_minus_sign: | N/A | | | `hero` | *string* | :heavy_minus_sign: | When present, the URL for a hero image for the item. | | -| `image` | [shared.Image](../../../sdk/models/shared/image.md)[] | :heavy_minus_sign: | N/A | | +| `image` | [shared.Image](../../models/shared/image.md)[] | :heavy_minus_sign: | N/A | | | `index` | *number* | :heavy_minus_sign: | When present, this represents the episode number for episodes, season number for seasons, or track number for audio tracks. | | | `lastViewedAt` | *number* | :heavy_minus_sign: | N/A | 1556281940 | -| `media` | [shared.Media](../../../sdk/models/shared/media.md)[] | :heavy_minus_sign: | N/A | | -| `originallyAvailableAt` | [RFCDate](../../../types/rfcdate.md) | :heavy_minus_sign: | When present, in the format YYYY-MM-DD [HH:MM:SS] (the hours/minutes/seconds part is not always present). The air date, or a higher resolution release date for an item, depending on type. For example, episodes usually have air date like 1979-08-10 (we don't use epoch seconds because media existed prior to 1970). In some cases, recorded over-the-air content has higher resolution air date which includes a time component. Albums and movies may have day-resolution release dates as well. | 2022-12-14 | +| `media` | [shared.Media](../../models/shared/media.md)[] | :heavy_minus_sign: | N/A | | +| `originallyAvailableAt` | [Date](../../types/rfcdate.md) | :heavy_minus_sign: | When present, in the format YYYY-MM-DD [HH:MM:SS] (the hours/minutes/seconds part is not always present). The air date, or a higher resolution release date for an item, depending on type. For example, episodes usually have air date like 1979-08-10 (we don't use epoch seconds because media existed prior to 1970). In some cases, recorded over-the-air content has higher resolution air date which includes a time component. Albums and movies may have day-resolution release dates as well. | 2022-12-14 | | `originalTitle` | *string* | :heavy_minus_sign: | When present, used to indicate an item's original title, e.g. a movie's foreign title. | | | `parentGuid` | *string* | :heavy_minus_sign: | The GUID of the parent media item. | plex://show/5d9c081b170e24001f2a7be4 | | `parentHero` | *string* | :heavy_minus_sign: | The `hero` of the parent | | @@ -262,16 +261,16 @@ let value: MediaContainerWithPlaylistMetadataMetadatum = { | `primaryExtraKey` | *string* | :heavy_minus_sign: | Indicates that the item has a primary extra; for a movie, this is a trailer, and for a music track it is a music video. The URL points to the metadata details endpoint for the item. | | | `prompt` | *string* | :heavy_minus_sign: | Prompt to give the user for this directory (such as `Search Movies`) | | | `rating` | *number* | :heavy_minus_sign: | When present, the rating for the item. The exact meaning and representation depends on where the rating was sourced from. | | -| `ratingArray` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `ratingArray` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `ratingCount` | *number* | :heavy_minus_sign: | Number of ratings under this metadata | | | `ratingImage` | *string* | :heavy_minus_sign: | When present, indicates an image to be shown with the rating. This is passed back as a small set of defined URI values, e.g. rottentomatoes://image.rating.rotten. | | | `ratingKey` | *string* | :heavy_minus_sign: | This is the opaque string to be passed into timeline, scrobble, and rating endpoints to identify them. While it often appears to be numeric, this is not guaranteed. | | -| `role` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `role` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `search` | *boolean* | :heavy_minus_sign: | Indicates this is a search directory | | | `secondary` | *boolean* | :heavy_minus_sign: | Used by old clients to provide nested menus allowing for primative (but structured) navigation. | | | `skipChildren` | *boolean* | :heavy_minus_sign: | When found on a show item, indicates that the children (seasons) should be skipped in favor of the grandchildren (episodes). Useful for mini-series, etc. | | | `skipParent` | *boolean* | :heavy_minus_sign: | When present on an episode or track item, indicates parent should be skipped in favor of grandparent (show). | | -| `sort` | [shared.Sort](../../../sdk/models/shared/sort.md)[] | :heavy_minus_sign: | Typically only seen in metadata at a library's top level | | +| `sort` | [shared.Sort](../../models/shared/sort.md)[] | :heavy_minus_sign: | Typically only seen in metadata at a library's top level | | | `studio` | *string* | :heavy_minus_sign: | When present, the studio or label which produced an item (e.g. movie studio for movies, record label for albums). | | | `subtype` | *string* | :heavy_minus_sign: | The subtype of the video item, such as `photo` when the video item is in a photo library | | | `summary` | *string* | :heavy_minus_sign: | When present, the extended textual information about the item (e.g. movie plot, artist biography, album review). | | @@ -284,6 +283,6 @@ let value: MediaContainerWithPlaylistMetadataMetadatum = { | `viewCount` | *number* | :heavy_minus_sign: | When a users has completed watched or listened to an item, this attribute contains the number of consumptions. | | | `viewedLeafCount` | *number* | :heavy_minus_sign: | For shows and seasons, contains the number of viewed episodes. | | | `viewOffset` | *number* | :heavy_minus_sign: | When a user is in the process of viewing or listening to this item, this attribute contains the current offset, in units of milliseconds. | | -| `writer` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `writer` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `year` | *number* | :heavy_minus_sign: | When present, the year associated with the item's release (e.g. release year for a movie). | | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/mediacontainerwithsettings.md b/docs/models/shared/mediacontainerwithsettings.md new file mode 100644 index 00000000..bc6d1ea2 --- /dev/null +++ b/docs/models/shared/mediacontainerwithsettings.md @@ -0,0 +1,15 @@ +# MediaContainerWithSettings + +## Example Usage + +```typescript +import { MediaContainerWithSettings } from "@lukehagar/plexjs/models/shared"; + +let value: MediaContainerWithSettings = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `mediaContainer` | [shared.MediaContainerWithSettingsMediaContainer](../../models/shared/mediacontainerwithsettingsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediacontainerwithsettingsmediacontainer.md b/docs/models/shared/mediacontainerwithsettingsmediacontainer.md similarity index 96% rename from docs/sdk/models/shared/mediacontainerwithsettingsmediacontainer.md rename to docs/models/shared/mediacontainerwithsettingsmediacontainer.md index 7f46ab3b..919dee02 100644 --- a/docs/sdk/models/shared/mediacontainerwithsettingsmediacontainer.md +++ b/docs/models/shared/mediacontainerwithsettingsmediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { MediaContainerWithSettingsMediaContainer } from "@lukehagar/plexjs/sdk/models/shared"; +import { MediaContainerWithSettingsMediaContainer } from "@lukehagar/plexjs/models/shared"; let value: MediaContainerWithSettingsMediaContainer = {}; ``` @@ -21,4 +21,4 @@ let value: MediaContainerWithSettingsMediaContainer = {}; | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `setting` | [shared.Setting](../../../sdk/models/shared/setting.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `setting` | [shared.Setting](../../models/shared/setting.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediacontainerwithsubscription.md b/docs/models/shared/mediacontainerwithsubscription.md similarity index 86% rename from docs/sdk/models/shared/mediacontainerwithsubscription.md rename to docs/models/shared/mediacontainerwithsubscription.md index 9335a134..dd791ae2 100644 --- a/docs/sdk/models/shared/mediacontainerwithsubscription.md +++ b/docs/models/shared/mediacontainerwithsubscription.md @@ -3,8 +3,7 @@ ## Example Usage ```typescript -import { MediaContainerWithSubscription } from "@lukehagar/plexjs/sdk/models/shared"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { MediaContainerWithSubscription } from "@lukehagar/plexjs/models/shared"; let value: MediaContainerWithSubscription = { mediaContainer: { @@ -167,7 +166,7 @@ let value: MediaContainerWithSubscription = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -215,6 +214,6 @@ let value: MediaContainerWithSubscription = { ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [shared.MediaContainerWithSubscriptionMediaContainer](../../../sdk/models/shared/mediacontainerwithsubscriptionmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [shared.MediaContainerWithSubscriptionMediaContainer](../../models/shared/mediacontainerwithsubscriptionmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediacontainerwithsubscriptionmediacontainer.md b/docs/models/shared/mediacontainerwithsubscriptionmediacontainer.md similarity index 97% rename from docs/sdk/models/shared/mediacontainerwithsubscriptionmediacontainer.md rename to docs/models/shared/mediacontainerwithsubscriptionmediacontainer.md index 8268b63a..99a39fcb 100644 --- a/docs/sdk/models/shared/mediacontainerwithsubscriptionmediacontainer.md +++ b/docs/models/shared/mediacontainerwithsubscriptionmediacontainer.md @@ -8,8 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { MediaContainerWithSubscriptionMediaContainer } from "@lukehagar/plexjs/sdk/models/shared"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { MediaContainerWithSubscriptionMediaContainer } from "@lukehagar/plexjs/models/shared"; let value: MediaContainerWithSubscriptionMediaContainer = { mediaSubscription: [ @@ -171,7 +170,7 @@ let value: MediaContainerWithSubscriptionMediaContainer = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -224,4 +223,4 @@ let value: MediaContainerWithSubscriptionMediaContainer = { | `offset` | *number* | :heavy_minus_sign: | The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
| | `size` | *number* | :heavy_minus_sign: | N/A | | `totalSize` | *number* | :heavy_minus_sign: | The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
| -| `mediaSubscription` | [shared.MediaSubscription](../../../sdk/models/shared/mediasubscription.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `mediaSubscription` | [shared.MediaSubscription](../../models/shared/mediasubscription.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediaenum.md b/docs/models/shared/mediaenum.md similarity index 80% rename from docs/sdk/models/shared/mediaenum.md rename to docs/models/shared/mediaenum.md index 58c4b88f..10483a6e 100644 --- a/docs/sdk/models/shared/mediaenum.md +++ b/docs/models/shared/mediaenum.md @@ -5,7 +5,7 @@ The default image type to use as the sources ## Example Usage ```typescript -import { MediaEnum } from "@lukehagar/plexjs/sdk/models/shared"; +import { MediaEnum } from "@lukehagar/plexjs/models/shared"; let value: MediaEnum = MediaEnum.Banner; ``` diff --git a/docs/sdk/models/shared/mediagraboperation.md b/docs/models/shared/mediagraboperation.md similarity index 99% rename from docs/sdk/models/shared/mediagraboperation.md rename to docs/models/shared/mediagraboperation.md index 27194011..99f0b00d 100644 --- a/docs/sdk/models/shared/mediagraboperation.md +++ b/docs/models/shared/mediagraboperation.md @@ -6,8 +6,7 @@ A media grab opration represents a scheduled or active recording of media ## Example Usage ```typescript -import { MediaGrabOperation } from "@lukehagar/plexjs/sdk/models/shared"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { MediaGrabOperation } from "@lukehagar/plexjs/models/shared"; let value: MediaGrabOperation = { metadata: { @@ -164,7 +163,7 @@ let value: MediaGrabOperation = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -216,7 +215,7 @@ let value: MediaGrabOperation = { | `key` | *string* | :heavy_minus_sign: | N/A | | `mediaIndex` | *number* | :heavy_minus_sign: | N/A | | `mediaSubscriptionID` | *number* | :heavy_minus_sign: | N/A | -| `metadata` | [shared.Metadata](../../../sdk/models/shared/metadata.md) | :heavy_minus_sign: | Items in a library are referred to as "metadata items." These metadata items are distinct from "media items" which represent actual instances of media that can be consumed. Consider a TV library that has a single video file in it for a particular episode of a show. The library has a single media item, but it has three metadata items: one for the show, one for the season, and one for the episode. Consider a movie library that has two video files in it: the same movie, but two different resolutions. The library has a single metadata item for the movie, but that metadata item has two media items, one for each resolution. Additionally a "media item" will have one or more "media parts" where the the parts are intended to be watched together, such as a CD1 and CD2 parts of the same movie.

Note that when a metadata item has multiple media items, those media items should be isomorphic. That is, a 4K version and 1080p version of a movie are different versions of the same movie. They have the same duration, same summary, same rating, etc. and they can generally be considered interchangeable. A theatrical release vs. director's cut vs. unrated version on the other hand would be separate metadata items.

Metadata items can often live in a hierarchy with relationships between them. For example, the metadata item for an episodes is associated with a season metadata item which is associated with a show metadata item. A similar hierarchy exists with track, album, and artist and photos and photo album. The relationships may be expressed via relative terms and absolute terms. For example, "leaves" refer to metadata items which has associated media (there is no media for a season nor show). A show will have "children" in the form of seasons and a season will have "children" in the form of episodes and episodes have "parent" in the form of a season which has a "parent" in the form of a show. Similarly, a show has "grandchildren" in the form of episodse and an episode has a "grandparent" in the form of a show.
| +| `metadata` | [shared.Metadata](../../models/shared/metadata.md) | :heavy_minus_sign: | Items in a library are referred to as "metadata items." These metadata items are distinct from "media items" which represent actual instances of media that can be consumed. Consider a TV library that has a single video file in it for a particular episode of a show. The library has a single media item, but it has three metadata items: one for the show, one for the season, and one for the episode. Consider a movie library that has two video files in it: the same movie, but two different resolutions. The library has a single metadata item for the movie, but that metadata item has two media items, one for each resolution. Additionally a "media item" will have one or more "media parts" where the the parts are intended to be watched together, such as a CD1 and CD2 parts of the same movie.

Note that when a metadata item has multiple media items, those media items should be isomorphic. That is, a 4K version and 1080p version of a movie are different versions of the same movie. They have the same duration, same summary, same rating, etc. and they can generally be considered interchangeable. A theatrical release vs. director's cut vs. unrated version on the other hand would be separate metadata items.

Metadata items can often live in a hierarchy with relationships between them. For example, the metadata item for an episodes is associated with a season metadata item which is associated with a show metadata item. A similar hierarchy exists with track, album, and artist and photos and photo album. The relationships may be expressed via relative terms and absolute terms. For example, "leaves" refer to metadata items which has associated media (there is no media for a season nor show). A show will have "children" in the form of seasons and a season will have "children" in the form of episodes and episodes have "parent" in the form of a season which has a "parent" in the form of a show. Similarly, a show has "grandchildren" in the form of episodse and an episode has a "grandparent" in the form of a show.
| | `percent` | *number* | :heavy_minus_sign: | N/A | | `provider` | *string* | :heavy_minus_sign: | N/A | -| `status` | [shared.MediaGrabOperationStatus](../../../sdk/models/shared/mediagraboperationstatus.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `status` | [shared.MediaGrabOperationStatus](../../models/shared/mediagraboperationstatus.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/mediagraboperationstatus.md b/docs/models/shared/mediagraboperationstatus.md new file mode 100644 index 00000000..6b671747 --- /dev/null +++ b/docs/models/shared/mediagraboperationstatus.md @@ -0,0 +1,25 @@ +# MediaGrabOperationStatus + +## Example Usage + +```typescript +import { MediaGrabOperationStatus } from "@lukehagar/plexjs/models/shared"; + +let value: MediaGrabOperationStatus = MediaGrabOperationStatus.Error; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Inactive` | inactive | +| `Scheduled` | scheduled | +| `Inprogress` | inprogress | +| `Complete` | complete | +| `Cancelled` | cancelled | +| `Error` | error | +| `Postprocessing` | postprocessing | +| `Paused` | paused | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediaquery.md b/docs/models/shared/mediaquery.md similarity index 98% rename from docs/sdk/models/shared/mediaquery.md rename to docs/models/shared/mediaquery.md index ada25943..7c1d755c 100644 --- a/docs/sdk/models/shared/mediaquery.md +++ b/docs/models/shared/mediaquery.md @@ -8,7 +8,7 @@ Only the defined properties below are allowed. The object serializes to a querys ## Example Usage ```typescript -import { MediaQuery, MediaType } from "@lukehagar/plexjs/sdk/models/shared"; +import { MediaQuery, MediaType } from "@lukehagar/plexjs/models/shared"; let value: MediaQuery = { type: MediaType.Episode, @@ -21,7 +21,7 @@ let value: MediaQuery = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [shared.MediaType](../../../sdk/models/shared/mediatype.md) | :heavy_minus_sign: | The type of media to retrieve or filter by.

1 = movie
2 = show
3 = season
4 = episode
5 = artist
6 = album
7 = track
8 = photo_album
9 = photo

E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
| 2 | +| `type` | [shared.MediaType](../../models/shared/mediatype.md) | :heavy_minus_sign: | The type of media to retrieve or filter by.

1 = movie
2 = show
3 = season
4 = episode
5 = artist
6 = album
7 = track
8 = photo_album
9 = photo

E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
| 2 | | `sourceType` | *number* | :heavy_minus_sign: | Change the default level to which fields refer (used with type for hierarchical queries) | | | `sort` | *string* | :heavy_minus_sign: | Field(s) to sort by, with optional modifiers. Use comma to separate multiple fields, and :desc or :nullsLast for modifiers (e.g., "duration:desc,index") | | | `group` | *string* | :heavy_minus_sign: | Field to group results by (similar to SQL GROUP BY) | | diff --git a/docs/models/shared/mediareviewsvisibility.md b/docs/models/shared/mediareviewsvisibility.md new file mode 100644 index 00000000..ba879b3d --- /dev/null +++ b/docs/models/shared/mediareviewsvisibility.md @@ -0,0 +1,23 @@ +# MediaReviewsVisibility + +Whether or not the account has media reviews visibility enabled + +## Example Usage + +```typescript +import { MediaReviewsVisibility } from "@lukehagar/plexjs/models/shared"; + +let value: MediaReviewsVisibility = MediaReviewsVisibility.CriticsOnly; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `NoOne` | 0 | +| `CriticsOnly` | 1 | +| `PlexUsersOnly` | 2 | +| `PlexUsersAndCritics` | 3 | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediasubscription.md b/docs/models/shared/mediasubscription.md similarity index 61% rename from docs/sdk/models/shared/mediasubscription.md rename to docs/models/shared/mediasubscription.md index 19a6ec32..113c967b 100644 --- a/docs/sdk/models/shared/mediasubscription.md +++ b/docs/models/shared/mediasubscription.md @@ -6,8 +6,7 @@ A media subscription contains a representation of metadata desired to be recorde ## Example Usage ```typescript -import { MediaSubscription } from "@lukehagar/plexjs/sdk/models/shared"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { MediaSubscription } from "@lukehagar/plexjs/models/shared"; let value: MediaSubscription = { mediaGrabOperation: [ @@ -166,7 +165,7 @@ let value: MediaSubscription = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -211,21 +210,21 @@ let value: MediaSubscription = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | -| `title` | *string* | :heavy_minus_sign: | N/A | -| `type` | *number* | :heavy_minus_sign: | The metadata type of the root item of the subscription | -| `airingsType` | [shared.AiringsType](../../../sdk/models/shared/airingstype.md) | :heavy_minus_sign: | N/A | -| `createdAt` | *number* | :heavy_minus_sign: | N/A | -| `directory` | Record | :heavy_minus_sign: | Media Matching Hints | -| `durationTotal` | *number* | :heavy_minus_sign: | Only included if `includeStorage` is specified | -| `key` | *string* | :heavy_minus_sign: | N/A | -| `librarySectionTitle` | *string* | :heavy_minus_sign: | N/A | -| `locationPath` | *string* | :heavy_minus_sign: | N/A | -| `mediaGrabOperation` | [shared.MediaGrabOperation](../../../sdk/models/shared/mediagraboperation.md)[] | :heavy_minus_sign: | N/A | -| `playlist` | Record | :heavy_minus_sign: | Media Matching Hints | -| `setting` | [shared.Setting](../../../sdk/models/shared/setting.md)[] | :heavy_minus_sign: | N/A | -| `storageTotal` | *number* | :heavy_minus_sign: | Only included if `includeStorage` is specified | -| `targetLibrarySectionID` | *number* | :heavy_minus_sign: | The library section id for where the item is to be recorded | -| `targetSectionLocationID` | *number* | :heavy_minus_sign: | The library section location id for where the item is to be recorded | -| `video` | Record | :heavy_minus_sign: | Media Matching Hints | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `title` | *string* | :heavy_minus_sign: | N/A | +| `type` | *number* | :heavy_minus_sign: | The metadata type of the root item of the subscription | +| `airingsType` | [shared.AiringsType](../../models/shared/airingstype.md) | :heavy_minus_sign: | N/A | +| `createdAt` | *number* | :heavy_minus_sign: | N/A | +| `directory` | Record | :heavy_minus_sign: | Media Matching Hints | +| `durationTotal` | *number* | :heavy_minus_sign: | Only included if `includeStorage` is specified | +| `key` | *string* | :heavy_minus_sign: | N/A | +| `librarySectionTitle` | *string* | :heavy_minus_sign: | N/A | +| `locationPath` | *string* | :heavy_minus_sign: | N/A | +| `mediaGrabOperation` | [shared.MediaGrabOperation](../../models/shared/mediagraboperation.md)[] | :heavy_minus_sign: | N/A | +| `playlist` | Record | :heavy_minus_sign: | Media Matching Hints | +| `setting` | [shared.Setting](../../models/shared/setting.md)[] | :heavy_minus_sign: | N/A | +| `storageTotal` | *number* | :heavy_minus_sign: | Only included if `includeStorage` is specified | +| `targetLibrarySectionID` | *number* | :heavy_minus_sign: | The library section id for where the item is to be recorded | +| `targetSectionLocationID` | *number* | :heavy_minus_sign: | The library section location id for where the item is to be recorded | +| `video` | Record | :heavy_minus_sign: | Media Matching Hints | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediatype.md b/docs/models/shared/mediatype.md similarity index 91% rename from docs/sdk/models/shared/mediatype.md rename to docs/models/shared/mediatype.md index 6a7e94a8..87cd690c 100644 --- a/docs/sdk/models/shared/mediatype.md +++ b/docs/models/shared/mediatype.md @@ -18,7 +18,7 @@ E.g. A movie library will not return anything with type 3 as there are no season ## Example Usage ```typescript -import { MediaType } from "@lukehagar/plexjs/sdk/models/shared"; +import { MediaType } from "@lukehagar/plexjs/models/shared"; let value: MediaType = MediaType.TvShow; ``` diff --git a/docs/models/shared/mediatypestring.md b/docs/models/shared/mediatypestring.md new file mode 100644 index 00000000..6d6b3329 --- /dev/null +++ b/docs/models/shared/mediatypestring.md @@ -0,0 +1,30 @@ +# MediaTypeString + +The type of media content in the Plex library. This can represent videos, music, or photos. + + +## Example Usage + +```typescript +import { MediaTypeString } from "@lukehagar/plexjs/models/shared"; + +let value: MediaTypeString = MediaTypeString.Movie; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Movie` | movie | +| `TvShow` | show | +| `Season` | season | +| `Episode` | episode | +| `Artist` | artist | +| `Album` | album | +| `Track` | track | +| `PhotoAlbum` | photoalbum | +| `Photo` | photo | +| `Collection` | collection | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/sdk/models/shared/metadata.md b/docs/models/shared/metadata.md similarity index 99% rename from docs/sdk/models/shared/metadata.md rename to docs/models/shared/metadata.md index aeb12f72..87999c35 100644 --- a/docs/sdk/models/shared/metadata.md +++ b/docs/models/shared/metadata.md @@ -10,8 +10,7 @@ Metadata items can often live in a hierarchy with relationships between them. F ## Example Usage ```typescript -import { Metadata } from "@lukehagar/plexjs/sdk/models/shared"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { Metadata } from "@lukehagar/plexjs/models/shared"; let value: Metadata = { title: "", @@ -167,7 +166,7 @@ let value: Metadata = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -218,17 +217,17 @@ let value: Metadata = { | `art` | *string* | :heavy_minus_sign: | When present, the URL for the background artwork for the item. | /library/metadata/58683/art/1703239236 | | `audienceRating` | *number* | :heavy_minus_sign: | Some rating systems separate reviewer ratings from audience ratings | | | `audienceRatingImage` | *string* | :heavy_minus_sign: | A URI representing the image to be shown with the audience rating (e.g. rottentomatoes://image.rating.spilled). | | -| `autotag` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `autotag` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `banner` | *string* | :heavy_minus_sign: | When present, the URL for a banner graphic for the item. | | | `chapterSource` | *string* | :heavy_minus_sign: | When present, indicates the source for the chapters in the media file. Can be media (the chapters were embedded in the media itself), agent (a metadata agent computed them), or mixed (a combination of the two). | media | | `childCount` | *number* | :heavy_minus_sign: | The number of child items associated with this media item. | 1 | | `composite` | *string* | :heavy_minus_sign: | When present, the URL for a composite image for descendent items (e.g. photo albums or playlists). | | | `contentRating` | *string* | :heavy_minus_sign: | If known, the content rating (e.g. MPAA) for an item. | | -| `country` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | -| `director` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `country` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `director` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `duration` | *number* | :heavy_minus_sign: | When present, the duration for the item, in units of milliseconds. | | -| `filter` | [shared.Filter](../../../sdk/models/shared/filter.md)[] | :heavy_minus_sign: | Typically only seen in metadata at a library's top level | | -| `genre` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `filter` | [shared.Filter](../../models/shared/filter.md)[] | :heavy_minus_sign: | Typically only seen in metadata at a library's top level | | +| `genre` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `grandparentArt` | *string* | :heavy_minus_sign: | The `art` of the grandparent | | | `grandparentGuid` | *string* | :heavy_minus_sign: | The GUID of the grandparent media item. | plex://show/5d9c081b170e24001f2a7be4 | | `grandparentHero` | *string* | :heavy_minus_sign: | The `hero` of the grandparent | | @@ -238,15 +237,15 @@ let value: Metadata = { | `grandparentThumb` | *string* | :heavy_minus_sign: | The `thumb` of the grandparent | | | `grandparentTitle` | *string* | :heavy_minus_sign: | The `title` of the grandparent | | | `guid` | *string* | :heavy_minus_sign: | The globally unique identifier for the media item. | plex://movie/5d7768ba96b655001fdc0408 | -| `guids` | [shared.MetadataGuid](../../../sdk/models/shared/metadataguid.md)[] | :heavy_minus_sign: | N/A | | +| `guids` | [shared.MetadataGuid](../../models/shared/metadataguid.md)[] | :heavy_minus_sign: | N/A | | | `hero` | *string* | :heavy_minus_sign: | When present, the URL for a hero image for the item. | | -| `image` | [shared.Image](../../../sdk/models/shared/image.md)[] | :heavy_minus_sign: | N/A | | +| `image` | [shared.Image](../../models/shared/image.md)[] | :heavy_minus_sign: | N/A | | | `index` | *number* | :heavy_minus_sign: | When present, this represents the episode number for episodes, season number for seasons, or track number for audio tracks. | | | `key` | *string* | :heavy_check_mark: | The key at which the item's details can be fetched. In many cases a metadata item may be passed without all the details (such as in a hub) and this key corresponds to the endpoint to fetch additional details. | | | `lastViewedAt` | *number* | :heavy_minus_sign: | N/A | 1556281940 | | `leafCount` | *number* | :heavy_minus_sign: | For shows and seasons, contains the number of total episodes. | | -| `media` | [shared.Media](../../../sdk/models/shared/media.md)[] | :heavy_minus_sign: | N/A | | -| `originallyAvailableAt` | [RFCDate](../../../types/rfcdate.md) | :heavy_minus_sign: | When present, in the format YYYY-MM-DD [HH:MM:SS] (the hours/minutes/seconds part is not always present). The air date, or a higher resolution release date for an item, depending on type. For example, episodes usually have air date like 1979-08-10 (we don't use epoch seconds because media existed prior to 1970). In some cases, recorded over-the-air content has higher resolution air date which includes a time component. Albums and movies may have day-resolution release dates as well. | 2022-12-14 | +| `media` | [shared.Media](../../models/shared/media.md)[] | :heavy_minus_sign: | N/A | | +| `originallyAvailableAt` | [Date](../../types/rfcdate.md) | :heavy_minus_sign: | When present, in the format YYYY-MM-DD [HH:MM:SS] (the hours/minutes/seconds part is not always present). The air date, or a higher resolution release date for an item, depending on type. For example, episodes usually have air date like 1979-08-10 (we don't use epoch seconds because media existed prior to 1970). In some cases, recorded over-the-air content has higher resolution air date which includes a time component. Albums and movies may have day-resolution release dates as well. | 2022-12-14 | | `originalTitle` | *string* | :heavy_minus_sign: | When present, used to indicate an item's original title, e.g. a movie's foreign title. | | | `parentGuid` | *string* | :heavy_minus_sign: | The GUID of the parent media item. | plex://show/5d9c081b170e24001f2a7be4 | | `parentHero` | *string* | :heavy_minus_sign: | The `hero` of the parent | | @@ -258,16 +257,16 @@ let value: Metadata = { | `primaryExtraKey` | *string* | :heavy_minus_sign: | Indicates that the item has a primary extra; for a movie, this is a trailer, and for a music track it is a music video. The URL points to the metadata details endpoint for the item. | | | `prompt` | *string* | :heavy_minus_sign: | Prompt to give the user for this directory (such as `Search Movies`) | | | `rating` | *number* | :heavy_minus_sign: | When present, the rating for the item. The exact meaning and representation depends on where the rating was sourced from. | | -| `ratingArray` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `ratingArray` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `ratingCount` | *number* | :heavy_minus_sign: | Number of ratings under this metadata | | | `ratingImage` | *string* | :heavy_minus_sign: | When present, indicates an image to be shown with the rating. This is passed back as a small set of defined URI values, e.g. rottentomatoes://image.rating.rotten. | | | `ratingKey` | *string* | :heavy_minus_sign: | This is the opaque string to be passed into timeline, scrobble, and rating endpoints to identify them. While it often appears to be numeric, this is not guaranteed. | | -| `role` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `role` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `search` | *boolean* | :heavy_minus_sign: | Indicates this is a search directory | | | `secondary` | *boolean* | :heavy_minus_sign: | Used by old clients to provide nested menus allowing for primative (but structured) navigation. | | | `skipChildren` | *boolean* | :heavy_minus_sign: | When found on a show item, indicates that the children (seasons) should be skipped in favor of the grandchildren (episodes). Useful for mini-series, etc. | | | `skipParent` | *boolean* | :heavy_minus_sign: | When present on an episode or track item, indicates parent should be skipped in favor of grandparent (show). | | -| `sort` | [shared.Sort](../../../sdk/models/shared/sort.md)[] | :heavy_minus_sign: | Typically only seen in metadata at a library's top level | | +| `sort` | [shared.Sort](../../models/shared/sort.md)[] | :heavy_minus_sign: | Typically only seen in metadata at a library's top level | | | `studio` | *string* | :heavy_minus_sign: | When present, the studio or label which produced an item (e.g. movie studio for movies, record label for albums). | | | `subtype` | *string* | :heavy_minus_sign: | The subtype of the video item, such as `photo` when the video item is in a photo library | | | `summary` | *string* | :heavy_minus_sign: | When present, the extended textual information about the item (e.g. movie plot, artist biography, album review). | | @@ -280,6 +279,6 @@ let value: Metadata = { | `viewCount` | *number* | :heavy_minus_sign: | When a users has completed watched or listened to an item, this attribute contains the number of consumptions. | | | `viewedLeafCount` | *number* | :heavy_minus_sign: | For shows and seasons, contains the number of viewed episodes. | | | `viewOffset` | *number* | :heavy_minus_sign: | When a user is in the process of viewing or listening to this item, this attribute contains the current offset, in units of milliseconds. | | -| `writer` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `writer` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `year` | *number* | :heavy_minus_sign: | When present, the year associated with the item's release (e.g. release year for a movie). | | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/shared/metadataguid.md b/docs/models/shared/metadataguid.md similarity index 98% rename from docs/sdk/models/shared/metadataguid.md rename to docs/models/shared/metadataguid.md index d2311792..e05b7e59 100644 --- a/docs/sdk/models/shared/metadataguid.md +++ b/docs/models/shared/metadataguid.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { MetadataGuid } from "@lukehagar/plexjs/sdk/models/shared"; +import { MetadataGuid } from "@lukehagar/plexjs/models/shared"; let value: MetadataGuid = { id: diff --git a/docs/sdk/models/shared/metadataitem.md b/docs/models/shared/metadataitem.md similarity index 99% rename from docs/sdk/models/shared/metadataitem.md rename to docs/models/shared/metadataitem.md index a77615a3..f1e51fd8 100644 --- a/docs/sdk/models/shared/metadataitem.md +++ b/docs/models/shared/metadataitem.md @@ -10,8 +10,7 @@ Metadata items can often live in a hierarchy with relationships between them. F ## Example Usage ```typescript -import { MetadataItem } from "@lukehagar/plexjs/sdk/models/shared"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { MetadataItem } from "@lukehagar/plexjs/models/shared"; let value: MetadataItem = { title: "", @@ -167,7 +166,7 @@ let value: MetadataItem = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -359,7 +358,7 @@ let value: MetadataItem = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -412,17 +411,17 @@ let value: MetadataItem = { | `art` | *string* | :heavy_minus_sign: | When present, the URL for the background artwork for the item. | /library/metadata/58683/art/1703239236 | | `audienceRating` | *number* | :heavy_minus_sign: | Some rating systems separate reviewer ratings from audience ratings | | | `audienceRatingImage` | *string* | :heavy_minus_sign: | A URI representing the image to be shown with the audience rating (e.g. rottentomatoes://image.rating.spilled). | | -| `autotag` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `autotag` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `banner` | *string* | :heavy_minus_sign: | When present, the URL for a banner graphic for the item. | | | `chapterSource` | *string* | :heavy_minus_sign: | When present, indicates the source for the chapters in the media file. Can be media (the chapters were embedded in the media itself), agent (a metadata agent computed them), or mixed (a combination of the two). | media | | `childCount` | *number* | :heavy_minus_sign: | The number of child items associated with this media item. | 1 | | `composite` | *string* | :heavy_minus_sign: | When present, the URL for a composite image for descendent items (e.g. photo albums or playlists). | | | `contentRating` | *string* | :heavy_minus_sign: | If known, the content rating (e.g. MPAA) for an item. | | -| `country` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | -| `director` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `country` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `director` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `duration` | *number* | :heavy_minus_sign: | When present, the duration for the item, in units of milliseconds. | | -| `filter` | [shared.Filter](../../../sdk/models/shared/filter.md)[] | :heavy_minus_sign: | Typically only seen in metadata at a library's top level | | -| `genre` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `filter` | [shared.Filter](../../models/shared/filter.md)[] | :heavy_minus_sign: | Typically only seen in metadata at a library's top level | | +| `genre` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `grandparentArt` | *string* | :heavy_minus_sign: | The `art` of the grandparent | | | `grandparentGuid` | *string* | :heavy_minus_sign: | The GUID of the grandparent media item. | plex://show/5d9c081b170e24001f2a7be4 | | `grandparentHero` | *string* | :heavy_minus_sign: | The `hero` of the grandparent | | @@ -432,15 +431,15 @@ let value: MetadataItem = { | `grandparentThumb` | *string* | :heavy_minus_sign: | The `thumb` of the grandparent | | | `grandparentTitle` | *string* | :heavy_minus_sign: | The `title` of the grandparent | | | `guid` | *string* | :heavy_minus_sign: | The globally unique identifier for the media item. | plex://movie/5d7768ba96b655001fdc0408 | -| `guids` | [shared.MediaContainerWithNestedMetadataGuid](../../../sdk/models/shared/mediacontainerwithnestedmetadataguid.md)[] | :heavy_minus_sign: | N/A | | +| `guids` | [shared.MediaContainerWithNestedMetadataGuid](../../models/shared/mediacontainerwithnestedmetadataguid.md)[] | :heavy_minus_sign: | N/A | | | `hero` | *string* | :heavy_minus_sign: | When present, the URL for a hero image for the item. | | -| `image` | [shared.Image](../../../sdk/models/shared/image.md)[] | :heavy_minus_sign: | N/A | | +| `image` | [shared.Image](../../models/shared/image.md)[] | :heavy_minus_sign: | N/A | | | `index` | *number* | :heavy_minus_sign: | When present, this represents the episode number for episodes, season number for seasons, or track number for audio tracks. | | | `key` | *string* | :heavy_check_mark: | The key at which the item's details can be fetched. In many cases a metadata item may be passed without all the details (such as in a hub) and this key corresponds to the endpoint to fetch additional details. | | | `lastViewedAt` | *number* | :heavy_minus_sign: | N/A | 1556281940 | | `leafCount` | *number* | :heavy_minus_sign: | For shows and seasons, contains the number of total episodes. | | -| `media` | [shared.Media](../../../sdk/models/shared/media.md)[] | :heavy_minus_sign: | N/A | | -| `originallyAvailableAt` | [RFCDate](../../../types/rfcdate.md) | :heavy_minus_sign: | When present, in the format YYYY-MM-DD [HH:MM:SS] (the hours/minutes/seconds part is not always present). The air date, or a higher resolution release date for an item, depending on type. For example, episodes usually have air date like 1979-08-10 (we don't use epoch seconds because media existed prior to 1970). In some cases, recorded over-the-air content has higher resolution air date which includes a time component. Albums and movies may have day-resolution release dates as well. | 2022-12-14 | +| `media` | [shared.Media](../../models/shared/media.md)[] | :heavy_minus_sign: | N/A | | +| `originallyAvailableAt` | [Date](../../types/rfcdate.md) | :heavy_minus_sign: | When present, in the format YYYY-MM-DD [HH:MM:SS] (the hours/minutes/seconds part is not always present). The air date, or a higher resolution release date for an item, depending on type. For example, episodes usually have air date like 1979-08-10 (we don't use epoch seconds because media existed prior to 1970). In some cases, recorded over-the-air content has higher resolution air date which includes a time component. Albums and movies may have day-resolution release dates as well. | 2022-12-14 | | `originalTitle` | *string* | :heavy_minus_sign: | When present, used to indicate an item's original title, e.g. a movie's foreign title. | | | `parentGuid` | *string* | :heavy_minus_sign: | The GUID of the parent media item. | plex://show/5d9c081b170e24001f2a7be4 | | `parentHero` | *string* | :heavy_minus_sign: | The `hero` of the parent | | @@ -452,16 +451,16 @@ let value: MetadataItem = { | `primaryExtraKey` | *string* | :heavy_minus_sign: | Indicates that the item has a primary extra; for a movie, this is a trailer, and for a music track it is a music video. The URL points to the metadata details endpoint for the item. | | | `prompt` | *string* | :heavy_minus_sign: | Prompt to give the user for this directory (such as `Search Movies`) | | | `rating` | *number* | :heavy_minus_sign: | When present, the rating for the item. The exact meaning and representation depends on where the rating was sourced from. | | -| `ratingArray` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `ratingArray` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `ratingCount` | *number* | :heavy_minus_sign: | Number of ratings under this metadata | | | `ratingImage` | *string* | :heavy_minus_sign: | When present, indicates an image to be shown with the rating. This is passed back as a small set of defined URI values, e.g. rottentomatoes://image.rating.rotten. | | | `ratingKey` | *string* | :heavy_minus_sign: | This is the opaque string to be passed into timeline, scrobble, and rating endpoints to identify them. While it often appears to be numeric, this is not guaranteed. | | -| `role` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `role` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `search` | *boolean* | :heavy_minus_sign: | Indicates this is a search directory | | | `secondary` | *boolean* | :heavy_minus_sign: | Used by old clients to provide nested menus allowing for primative (but structured) navigation. | | | `skipChildren` | *boolean* | :heavy_minus_sign: | When found on a show item, indicates that the children (seasons) should be skipped in favor of the grandchildren (episodes). Useful for mini-series, etc. | | | `skipParent` | *boolean* | :heavy_minus_sign: | When present on an episode or track item, indicates parent should be skipped in favor of grandparent (show). | | -| `sort` | [shared.Sort](../../../sdk/models/shared/sort.md)[] | :heavy_minus_sign: | Typically only seen in metadata at a library's top level | | +| `sort` | [shared.Sort](../../models/shared/sort.md)[] | :heavy_minus_sign: | Typically only seen in metadata at a library's top level | | | `studio` | *string* | :heavy_minus_sign: | When present, the studio or label which produced an item (e.g. movie studio for movies, record label for albums). | | | `subtype` | *string* | :heavy_minus_sign: | The subtype of the video item, such as `photo` when the video item is in a photo library | | | `summary` | *string* | :heavy_minus_sign: | When present, the extended textual information about the item (e.g. movie plot, artist biography, album review). | | @@ -474,7 +473,7 @@ let value: MetadataItem = { | `viewCount` | *number* | :heavy_minus_sign: | When a users has completed watched or listened to an item, this attribute contains the number of consumptions. | | | `viewedLeafCount` | *number* | :heavy_minus_sign: | For shows and seasons, contains the number of viewed episodes. | | | `viewOffset` | *number* | :heavy_minus_sign: | When a user is in the process of viewing or listening to this item, this attribute contains the current offset, in units of milliseconds. | | -| `writer` | [shared.Tag](../../../sdk/models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | +| `writer` | [shared.Tag](../../models/shared/tag.md)[] | :heavy_minus_sign: | N/A | | | `year` | *number* | :heavy_minus_sign: | When present, the year associated with the item's release (e.g. release year for a movie). | | -| `metadataItem` | [shared.Items](../../../sdk/models/shared/items.md)[] | :heavy_minus_sign: | N/A | | +| `metadataItem` | [shared.Items](../../models/shared/items.md)[] | :heavy_minus_sign: | N/A | | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/shared/metadatumresponse.md b/docs/models/shared/metadatumresponse.md similarity index 97% rename from docs/sdk/models/shared/metadatumresponse.md rename to docs/models/shared/metadatumresponse.md index 840f6df9..2dd5c1db 100644 --- a/docs/sdk/models/shared/metadatumresponse.md +++ b/docs/models/shared/metadatumresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { MetadatumResponse } from "@lukehagar/plexjs/sdk/models/shared"; +import { MetadatumResponse } from "@lukehagar/plexjs/models/shared"; let value: MetadatumResponse = {}; ``` diff --git a/docs/sdk/models/shared/part.md b/docs/models/shared/part.md similarity index 98% rename from docs/sdk/models/shared/part.md rename to docs/models/shared/part.md index 29448d0a..57918791 100644 --- a/docs/sdk/models/shared/part.md +++ b/docs/models/shared/part.md @@ -6,7 +6,7 @@ ## Example Usage ```typescript -import { Part } from "@lukehagar/plexjs/sdk/models/shared"; +import { Part } from "@lukehagar/plexjs/models/shared"; let value: Part = { accessible: true, @@ -96,6 +96,6 @@ let value: Part = { | `key` | *string* | :heavy_check_mark: | The key from which the media can be streamed | /library/parts/1/1531779263/file.mov | | `optimizedForStreaming` | *boolean* | :heavy_minus_sign: | N/A | false | | `size` | *number* | :heavy_minus_sign: | The size of the media, in bytes | 105355654 | -| `stream` | [shared.Stream](../../../sdk/models/shared/stream.md)[] | :heavy_minus_sign: | N/A | | +| `stream` | [shared.Stream](../../models/shared/stream.md)[] | :heavy_minus_sign: | N/A | | | `videoProfile` | *string* | :heavy_minus_sign: | N/A | main | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/shared/player.md b/docs/models/shared/player.md similarity index 98% rename from docs/sdk/models/shared/player.md rename to docs/models/shared/player.md index f84b4ffe..a07ae93b 100644 --- a/docs/sdk/models/shared/player.md +++ b/docs/models/shared/player.md @@ -5,7 +5,7 @@ Information about the player being used for playback ## Example Usage ```typescript -import { Player } from "@lukehagar/plexjs/sdk/models/shared"; +import { Player } from "@lukehagar/plexjs/models/shared"; let value: Player = {}; ``` diff --git a/docs/models/shared/playlisttype.md b/docs/models/shared/playlisttype.md new file mode 100644 index 00000000..4c6af4aa --- /dev/null +++ b/docs/models/shared/playlisttype.md @@ -0,0 +1,22 @@ +# PlaylistType + +The type of the playlist. + +## Example Usage + +```typescript +import { PlaylistType } from "@lukehagar/plexjs/models/shared"; + +let value: PlaylistType = PlaylistType.Video; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Audio` | audio | +| `Video` | video | +| `Photo` | photo | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/sdk/models/shared/plexdevice.md b/docs/models/shared/plexdevice.md similarity index 98% rename from docs/sdk/models/shared/plexdevice.md rename to docs/models/shared/plexdevice.md index 2d057cf4..0cb8b95b 100644 --- a/docs/sdk/models/shared/plexdevice.md +++ b/docs/models/shared/plexdevice.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PlexDevice, PlexDeviceProtocol } from "@lukehagar/plexjs/sdk/models/shared"; +import { PlexDevice, PlexDeviceProtocol } from "@lukehagar/plexjs/models/shared"; let value: PlexDevice = { name: "", @@ -70,4 +70,4 @@ let value: PlexDevice = { | `publicAddressMatches` | *boolean* | :heavy_check_mark: | N/A | | | `dnsRebindingProtection` | *boolean* | :heavy_check_mark: | N/A | | | `natLoopbackSupported` | *boolean* | :heavy_check_mark: | N/A | | -| `connections` | [shared.Connection](../../../sdk/models/shared/connection.md)[] | :heavy_check_mark: | N/A | | \ No newline at end of file +| `connections` | [shared.Connection](../../models/shared/connection.md)[] | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/plexdeviceprotocol.md b/docs/models/shared/plexdeviceprotocol.md new file mode 100644 index 00000000..f6455105 --- /dev/null +++ b/docs/models/shared/plexdeviceprotocol.md @@ -0,0 +1,21 @@ +# PlexDeviceProtocol + +The protocol used for the connection (http, https, etc) + +## Example Usage + +```typescript +import { PlexDeviceProtocol } from "@lukehagar/plexjs/models/shared"; + +let value: PlexDeviceProtocol = PlexDeviceProtocol.Http; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Http` | http | +| `Https` | https | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/models/shared/postresponses200.md b/docs/models/shared/postresponses200.md new file mode 100644 index 00000000..f1fab6fa --- /dev/null +++ b/docs/models/shared/postresponses200.md @@ -0,0 +1,17 @@ +# PostResponses200 + +OK + +## Example Usage + +```typescript +import { PostResponses200 } from "@lukehagar/plexjs/models/shared"; + +let value: PostResponses200 = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `mediaContainer` | [shared.PostResponses200MediaContainer](../../models/shared/postresponses200mediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/postresponses200mediacontainer.md b/docs/models/shared/postresponses200mediacontainer.md similarity index 98% rename from docs/sdk/models/shared/postresponses200mediacontainer.md rename to docs/models/shared/postresponses200mediacontainer.md index d5ce0f51..3ec36e0c 100644 --- a/docs/sdk/models/shared/postresponses200mediacontainer.md +++ b/docs/models/shared/postresponses200mediacontainer.md @@ -8,7 +8,7 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { PostResponses200MediaContainer } from "@lukehagar/plexjs/sdk/models/shared"; +import { PostResponses200MediaContainer } from "@lukehagar/plexjs/models/shared"; let value: PostResponses200MediaContainer = {}; ``` @@ -26,5 +26,5 @@ let value: PostResponses200MediaContainer = {}; | `id` | *number* | :heavy_minus_sign: | N/A | | `startTimeOffset` | *number* | :heavy_minus_sign: | N/A | | `title` | *string* | :heavy_minus_sign: | N/A | -| `type` | [shared.TypeResponse](../../../sdk/models/shared/typeresponse.md) | :heavy_minus_sign: | N/A | +| `type` | [shared.TypeResponse](../../models/shared/typeresponse.md) | :heavy_minus_sign: | N/A | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/protocolparameter.md b/docs/models/shared/protocolparameter.md similarity index 75% rename from docs/sdk/models/shared/protocolparameter.md rename to docs/models/shared/protocolparameter.md index 60ddea2a..044d7333 100644 --- a/docs/sdk/models/shared/protocolparameter.md +++ b/docs/models/shared/protocolparameter.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ProtocolParameter } from "@lukehagar/plexjs/sdk/models/shared"; +import { ProtocolParameter } from "@lukehagar/plexjs/models/shared"; let value: ProtocolParameter = ProtocolParameter.Dash; ``` diff --git a/docs/models/shared/recommendationsvisibility.md b/docs/models/shared/recommendationsvisibility.md new file mode 100644 index 00000000..228e4869 --- /dev/null +++ b/docs/models/shared/recommendationsvisibility.md @@ -0,0 +1,28 @@ +# RecommendationsVisibility + +The visibility of this hub in recommendations: + - all: Visible to all users + - none: Visible to no users + - admin: Visible to only admin users + - shared: Visible to shared users + + +## Example Usage + +```typescript +import { RecommendationsVisibility } from "@lukehagar/plexjs/models/shared"; + +let value: RecommendationsVisibility = RecommendationsVisibility.Admin; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `All` | all | +| `None` | none | +| `Admin` | admin | +| `Shared` | shared | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/sdk/models/shared/security.md b/docs/models/shared/security.md similarity index 84% rename from docs/sdk/models/shared/security.md rename to docs/models/shared/security.md index c4bdd82e..a5e70d6d 100644 --- a/docs/sdk/models/shared/security.md +++ b/docs/models/shared/security.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Security } from "@lukehagar/plexjs/sdk/models/shared"; +import { Security } from "@lukehagar/plexjs/models/shared"; let value: Security = {}; ``` diff --git a/docs/models/shared/service.md b/docs/models/shared/service.md new file mode 100644 index 00000000..18766611 --- /dev/null +++ b/docs/models/shared/service.md @@ -0,0 +1,25 @@ +# Service + +## Example Usage + +```typescript +import { Service, ServiceStatus } from "@lukehagar/plexjs/models/shared"; + +let value: Service = { + identifier: "metadata-dev", + endpoint: "https://epg.provider.plex.tv", + token: "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv", + secret: "", + status: ServiceStatus.Online, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | +| `identifier` | *string* | :heavy_check_mark: | N/A | metadata-dev | +| `endpoint` | *string* | :heavy_check_mark: | N/A | https://epg.provider.plex.tv | +| `token` | *string* | :heavy_check_mark: | N/A | DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv | +| `secret` | *string* | :heavy_check_mark: | N/A | | +| `status` | [shared.ServiceStatus](../../models/shared/servicestatus.md) | :heavy_check_mark: | N/A | online | \ No newline at end of file diff --git a/docs/sdk/models/operations/servicestatus.md b/docs/models/shared/servicestatus.md similarity index 86% rename from docs/sdk/models/operations/servicestatus.md rename to docs/models/shared/servicestatus.md index 85ca1e87..b09be1b0 100644 --- a/docs/sdk/models/operations/servicestatus.md +++ b/docs/models/shared/servicestatus.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ServiceStatus } from "@lukehagar/plexjs/sdk/models/operations"; +import { ServiceStatus } from "@lukehagar/plexjs/models/shared"; let value: ServiceStatus = ServiceStatus.Online; ``` diff --git a/docs/models/shared/session.md b/docs/models/shared/session.md new file mode 100644 index 00000000..b8a394b7 --- /dev/null +++ b/docs/models/shared/session.md @@ -0,0 +1,19 @@ +# Session + +Information about the playback session + +## Example Usage + +```typescript +import { Session } from "@lukehagar/plexjs/models/shared"; + +let value: Session = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | +| `bandwidth` | *number* | :heavy_minus_sign: | The bandwidth used by this client's playback in kbps | +| `id` | *string* | :heavy_minus_sign: | The id of the playback session | +| `location` | [shared.SessionLocation](../../models/shared/sessionlocation.md) | :heavy_minus_sign: | The location of the client | \ No newline at end of file diff --git a/docs/models/shared/sessionlocation.md b/docs/models/shared/sessionlocation.md new file mode 100644 index 00000000..5c97c275 --- /dev/null +++ b/docs/models/shared/sessionlocation.md @@ -0,0 +1,21 @@ +# SessionLocation + +The location of the client + +## Example Usage + +```typescript +import { SessionLocation } from "@lukehagar/plexjs/models/shared"; + +let value: SessionLocation = SessionLocation.Wan; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Lan` | lan | +| `Wan` | wan | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/sdk/models/shared/setting.md b/docs/models/shared/setting.md similarity index 97% rename from docs/sdk/models/shared/setting.md rename to docs/models/shared/setting.md index af8c2721..27213de3 100644 --- a/docs/sdk/models/shared/setting.md +++ b/docs/models/shared/setting.md @@ -5,7 +5,7 @@ A configuration setting or preference ## Example Usage ```typescript -import { Setting } from "@lukehagar/plexjs/sdk/models/shared"; +import { Setting } from "@lukehagar/plexjs/models/shared"; let value: Setting = {}; ``` @@ -14,7 +14,7 @@ let value: Setting = {}; | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `type` | [shared.SettingType](../../../sdk/models/shared/settingtype.md) | :heavy_minus_sign: | The type of the value of this setting | +| `type` | [shared.SettingType](../../models/shared/settingtype.md) | :heavy_minus_sign: | The type of the value of this setting | | `default` | *shared.Default* | :heavy_minus_sign: | The default value of this setting | | `advanced` | *boolean* | :heavy_minus_sign: | Whether the setting is considered advanced and normally hidden from the user | | `enumValues` | *string* | :heavy_minus_sign: | The possible values for this setting if restricted. The list is `\|` separated with `value:name` entries. | diff --git a/docs/models/shared/settingtype.md b/docs/models/shared/settingtype.md new file mode 100644 index 00000000..6ae60f98 --- /dev/null +++ b/docs/models/shared/settingtype.md @@ -0,0 +1,23 @@ +# SettingType + +The type of the value of this setting + +## Example Usage + +```typescript +import { SettingType } from "@lukehagar/plexjs/models/shared"; + +let value: SettingType = SettingType.Double; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Bool` | bool | +| `Int` | int | +| `Text` | text | +| `Double` | double | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/sdk/models/shared/slashgetresponses200.md b/docs/models/shared/slashgetresponses200.md similarity index 86% rename from docs/sdk/models/shared/slashgetresponses200.md rename to docs/models/shared/slashgetresponses200.md index 5d8873c4..023338ae 100644 --- a/docs/sdk/models/shared/slashgetresponses200.md +++ b/docs/models/shared/slashgetresponses200.md @@ -5,8 +5,7 @@ OK ## Example Usage ```typescript -import { SlashGetResponses200 } from "@lukehagar/plexjs/sdk/models/shared"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { SlashGetResponses200 } from "@lukehagar/plexjs/models/shared"; let value: SlashGetResponses200 = { mediaContainer: { @@ -165,7 +164,7 @@ let value: SlashGetResponses200 = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -210,6 +209,6 @@ let value: SlashGetResponses200 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [shared.SlashGetResponses200MediaContainer](../../../sdk/models/shared/slashgetresponses200mediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `mediaContainer` | [shared.SlashGetResponses200MediaContainer](../../models/shared/slashgetresponses200mediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/slashgetresponses200mediacontainer.md b/docs/models/shared/slashgetresponses200mediacontainer.md similarity index 99% rename from docs/sdk/models/shared/slashgetresponses200mediacontainer.md rename to docs/models/shared/slashgetresponses200mediacontainer.md index 1af9b6b8..c63c03f7 100644 --- a/docs/sdk/models/shared/slashgetresponses200mediacontainer.md +++ b/docs/models/shared/slashgetresponses200mediacontainer.md @@ -3,8 +3,7 @@ ## Example Usage ```typescript -import { SlashGetResponses200MediaContainer } from "@lukehagar/plexjs/sdk/models/shared"; -import { RFCDate } from "@lukehagar/plexjs/sdk/types"; +import { SlashGetResponses200MediaContainer } from "@lukehagar/plexjs/models/shared"; let value: SlashGetResponses200MediaContainer = { directory: [ @@ -162,7 +161,7 @@ let value: SlashGetResponses200MediaContainer = { width: 1280, }, ], - originallyAvailableAt: new RFCDate("2022-12-14"), + originallyAvailableAt: new Date("2022-12-14"), parentGuid: "plex://show/5d9c081b170e24001f2a7be4", ratingArray: [ { @@ -211,7 +210,7 @@ let value: SlashGetResponses200MediaContainer = { | `content` | *string* | :heavy_minus_sign: | The flavors of directory found here:
- Primary: (e.g. all, On Deck) These are still used in some clients to provide "shortcuts" to subsets of media. However, with the exception of On Deck, all of them can be created by media queries, and the desire is to allow these to be customized by users.
- Secondary: These are marked with `"secondary": true` and were used by old clients to provide nested menus allowing for primative (but structured) navigation.
- Special: There is a By Folder entry which allows browsing the media by the underlying filesystem structure, and there's a completely obsolete entry marked `"search": true` which used to be used to allow clients to build search dialogs on the fly. | | `allowSync` | *boolean* | :heavy_minus_sign: | N/A | | `art` | *string* | :heavy_minus_sign: | N/A | -| `directory` | [shared.Metadata](../../../sdk/models/shared/metadata.md)[] | :heavy_minus_sign: | N/A | +| `directory` | [shared.Metadata](../../models/shared/metadata.md)[] | :heavy_minus_sign: | N/A | | `identifier` | *string* | :heavy_minus_sign: | N/A | | `librarySectionID` | *number* | :heavy_minus_sign: | N/A | | `mediaTagPrefix` | *string* | :heavy_minus_sign: | N/A | diff --git a/docs/sdk/models/shared/sort.md b/docs/models/shared/sort.md similarity index 94% rename from docs/sdk/models/shared/sort.md rename to docs/models/shared/sort.md index 7c183d84..745446df 100644 --- a/docs/sdk/models/shared/sort.md +++ b/docs/models/shared/sort.md @@ -6,7 +6,7 @@ Each `Sort` object contains a description of the sort field. ## Example Usage ```typescript -import { Sort } from "@lukehagar/plexjs/sdk/models/shared"; +import { Sort } from "@lukehagar/plexjs/models/shared"; let value: Sort = {}; ``` @@ -26,12 +26,12 @@ let value: Sort = {}; | `identifier` | *string* | :heavy_minus_sign: | N/A | | `key` | *string* | :heavy_minus_sign: | The key to use in the sort field to make items sort by this item | | `lastAccessedAt` | *number* | :heavy_minus_sign: | N/A | -| `pivot` | [shared.SortPivot](../../../sdk/models/shared/sortpivot.md)[] | :heavy_minus_sign: | N/A | +| `pivot` | [shared.SortPivot](../../models/shared/sortpivot.md)[] | :heavy_minus_sign: | N/A | | `share` | *number* | :heavy_minus_sign: | N/A | | `thumb` | *string* | :heavy_minus_sign: | N/A | | `titleBar` | *string* | :heavy_minus_sign: | N/A | -| `default` | [shared.DefaultEnum](../../../sdk/models/shared/defaultenum.md) | :heavy_minus_sign: | If present, this sort is the default and in this direction | -| `defaultDirection` | [shared.DefaultDirection](../../../sdk/models/shared/defaultdirection.md) | :heavy_minus_sign: | This default diction of this sort | +| `default` | [shared.DefaultEnum](../../models/shared/defaultenum.md) | :heavy_minus_sign: | If present, this sort is the default and in this direction | +| `defaultDirection` | [shared.DefaultDirection](../../models/shared/defaultdirection.md) | :heavy_minus_sign: | This default diction of this sort | | `descKey` | *string* | :heavy_minus_sign: | The key for sorting this field in reverse order | | `firstCharacterKey` | *string* | :heavy_minus_sign: | The key to use to get items sorted by this field and indexed by the first character | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/sortpivot.md b/docs/models/shared/sortpivot.md similarity index 92% rename from docs/sdk/models/shared/sortpivot.md rename to docs/models/shared/sortpivot.md index 0cd0fa8b..ce2e4318 100644 --- a/docs/sdk/models/shared/sortpivot.md +++ b/docs/models/shared/sortpivot.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { SortPivot } from "@lukehagar/plexjs/sdk/models/shared"; +import { SortPivot } from "@lukehagar/plexjs/models/shared"; let value: SortPivot = {}; ``` diff --git a/docs/sdk/models/shared/stream.md b/docs/models/shared/stream.md similarity index 99% rename from docs/sdk/models/shared/stream.md rename to docs/models/shared/stream.md index 3344f81e..41c13b0b 100644 --- a/docs/sdk/models/shared/stream.md +++ b/docs/models/shared/stream.md @@ -6,7 +6,7 @@ ## Example Usage ```typescript -import { Stream } from "@lukehagar/plexjs/sdk/models/shared"; +import { Stream } from "@lukehagar/plexjs/models/shared"; let value: Stream = { default: true, diff --git a/docs/models/shared/streamdecision.md b/docs/models/shared/streamdecision.md new file mode 100644 index 00000000..373a345c --- /dev/null +++ b/docs/models/shared/streamdecision.md @@ -0,0 +1,23 @@ +# StreamDecision + +## Example Usage + +```typescript +import { StreamDecision } from "@lukehagar/plexjs/models/shared"; + +let value: StreamDecision = StreamDecision.Unavailable; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Copy` | copy | +| `Transcode` | transcode | +| `Burn` | burn | +| `Unavailable` | unavailable | +| `Ignore` | ignore | +| `None` | none | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/models/shared/subscription1.md b/docs/models/shared/subscription1.md new file mode 100644 index 00000000..d9e551ea --- /dev/null +++ b/docs/models/shared/subscription1.md @@ -0,0 +1,26 @@ +# Subscription1 + +If the account's Plex Pass subscription is active + +## Example Usage + +```typescript +import { Subscription1, SubscriptionStatus1 } from "@lukehagar/plexjs/models/shared"; + +let value: Subscription1 = { + active: true, + subscribedAt: "2021-04-12T18:21:12Z", + status: SubscriptionStatus1.Inactive, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `features` | *string*[] | :heavy_minus_sign: | List of features allowed on your Plex Pass subscription | | +| `active` | *boolean* | :heavy_minus_sign: | If the account's Plex Pass subscription is active | true | +| `subscribedAt` | *string* | :heavy_minus_sign: | Date the account subscribed to Plex Pass | 2021-04-12T18:21:12Z | +| `status` | [shared.SubscriptionStatus1](../../models/shared/subscriptionstatus1.md) | :heavy_minus_sign: | String representation of subscriptionActive | Inactive | +| `paymentService` | *string* | :heavy_minus_sign: | Payment service used for your Plex Pass subscription | | +| `plan` | *string* | :heavy_minus_sign: | Name of Plex Pass subscription plan | | \ No newline at end of file diff --git a/docs/models/shared/subscription2.md b/docs/models/shared/subscription2.md new file mode 100644 index 00000000..9ce43fbb --- /dev/null +++ b/docs/models/shared/subscription2.md @@ -0,0 +1,24 @@ +# Subscription2 + +## Example Usage + +```typescript +import { Subscription2, SubscriptionStatus2 } from "@lukehagar/plexjs/models/shared"; + +let value: Subscription2 = { + active: true, + subscribedAt: "2021-04-12T18:21:12Z", + status: SubscriptionStatus2.Inactive, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `features` | *string*[] | :heavy_minus_sign: | List of features allowed on your Plex Pass subscription | | +| `active` | *boolean* | :heavy_minus_sign: | If the account's Plex Pass subscription is active | true | +| `subscribedAt` | *string* | :heavy_minus_sign: | Date the account subscribed to Plex Pass | 2021-04-12T18:21:12Z | +| `status` | [shared.SubscriptionStatus2](../../models/shared/subscriptionstatus2.md) | :heavy_minus_sign: | String representation of subscriptionActive | Inactive | +| `paymentService` | *string* | :heavy_minus_sign: | Payment service used for your Plex Pass subscription | | +| `plan` | *string* | :heavy_minus_sign: | Name of Plex Pass subscription plan | | \ No newline at end of file diff --git a/docs/sdk/models/operations/subscriptionstatus1.md b/docs/models/shared/subscriptionstatus1.md similarity index 87% rename from docs/sdk/models/operations/subscriptionstatus1.md rename to docs/models/shared/subscriptionstatus1.md index acc1a0eb..1c1e00a2 100644 --- a/docs/sdk/models/operations/subscriptionstatus1.md +++ b/docs/models/shared/subscriptionstatus1.md @@ -5,7 +5,7 @@ String representation of subscriptionActive ## Example Usage ```typescript -import { SubscriptionStatus1 } from "@lukehagar/plexjs/sdk/models/operations"; +import { SubscriptionStatus1 } from "@lukehagar/plexjs/models/shared"; let value: SubscriptionStatus1 = SubscriptionStatus1.Inactive; ``` diff --git a/docs/sdk/models/operations/subscriptionstatus2.md b/docs/models/shared/subscriptionstatus2.md similarity index 87% rename from docs/sdk/models/operations/subscriptionstatus2.md rename to docs/models/shared/subscriptionstatus2.md index b551c337..b8ee2612 100644 --- a/docs/sdk/models/operations/subscriptionstatus2.md +++ b/docs/models/shared/subscriptionstatus2.md @@ -5,7 +5,7 @@ String representation of subscriptionActive ## Example Usage ```typescript -import { SubscriptionStatus2 } from "@lukehagar/plexjs/sdk/models/operations"; +import { SubscriptionStatus2 } from "@lukehagar/plexjs/models/shared"; let value: SubscriptionStatus2 = SubscriptionStatus2.Inactive; ``` diff --git a/docs/sdk/models/shared/subtitles.md b/docs/models/shared/subtitles.md similarity index 85% rename from docs/sdk/models/shared/subtitles.md rename to docs/models/shared/subtitles.md index 96d5fdad..c9b29988 100644 --- a/docs/sdk/models/shared/subtitles.md +++ b/docs/models/shared/subtitles.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Subtitles } from "@lukehagar/plexjs/sdk/models/shared"; +import { Subtitles } from "@lukehagar/plexjs/models/shared"; let value: Subtitles = Subtitles.Embedded; ``` diff --git a/docs/sdk/models/shared/tag.md b/docs/models/shared/tag.md similarity index 99% rename from docs/sdk/models/shared/tag.md rename to docs/models/shared/tag.md index 2ef2301c..352db0a4 100644 --- a/docs/sdk/models/shared/tag.md +++ b/docs/models/shared/tag.md @@ -6,7 +6,7 @@ A variety of extra information about a metadata item is included as tags. These ## Example Usage ```typescript -import { Tag } from "@lukehagar/plexjs/sdk/models/shared"; +import { Tag } from "@lukehagar/plexjs/models/shared"; let value: Tag = { filter: "actor=49", diff --git a/docs/sdk/models/shared/transcodesession.md b/docs/models/shared/transcodesession.md similarity index 96% rename from docs/sdk/models/shared/transcodesession.md rename to docs/models/shared/transcodesession.md index 2caacbf2..d1a113ec 100644 --- a/docs/sdk/models/shared/transcodesession.md +++ b/docs/models/shared/transcodesession.md @@ -5,7 +5,7 @@ The transcode session if item is currently being transcoded ## Example Usage ```typescript -import { TranscodeSession } from "@lukehagar/plexjs/sdk/models/shared"; +import { TranscodeSession } from "@lukehagar/plexjs/models/shared"; let value: TranscodeSession = {}; ``` diff --git a/docs/sdk/models/shared/transcodetype.md b/docs/models/shared/transcodetype.md similarity index 80% rename from docs/sdk/models/shared/transcodetype.md rename to docs/models/shared/transcodetype.md index 6b3a1364..03951dc7 100644 --- a/docs/sdk/models/shared/transcodetype.md +++ b/docs/models/shared/transcodetype.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; +import { TranscodeType } from "@lukehagar/plexjs/models/shared"; let value: TranscodeType = TranscodeType.Video; ``` diff --git a/docs/models/shared/typeresponse.md b/docs/models/shared/typeresponse.md new file mode 100644 index 00000000..7a673f55 --- /dev/null +++ b/docs/models/shared/typeresponse.md @@ -0,0 +1,22 @@ +# TypeResponse + +## Example Usage + +```typescript +import { TypeResponse } from "@lukehagar/plexjs/models/shared"; + +let value: TypeResponse = TypeResponse.Bookmark; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `Intro` | intro | +| `Commercial` | commercial | +| `Bookmark` | bookmark | +| `Resume` | resume | +| `Credit` | credit | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/sdk/models/shared/user.md b/docs/models/shared/user.md similarity index 93% rename from docs/sdk/models/shared/user.md rename to docs/models/shared/user.md index bb8311a8..04089697 100644 --- a/docs/sdk/models/shared/user.md +++ b/docs/models/shared/user.md @@ -5,7 +5,7 @@ The user playing the content ## Example Usage ```typescript -import { User } from "@lukehagar/plexjs/sdk/models/shared"; +import { User } from "@lukehagar/plexjs/models/shared"; let value: User = {}; ``` diff --git a/docs/sdk/models/shared/userplexaccount.md b/docs/models/shared/userplexaccount.md similarity index 99% rename from docs/sdk/models/shared/userplexaccount.md rename to docs/models/shared/userplexaccount.md index 6a6a1c17..4c904dce 100644 --- a/docs/sdk/models/shared/userplexaccount.md +++ b/docs/models/shared/userplexaccount.md @@ -14,7 +14,7 @@ import { SubscriptionStatus2, UserPlexAccount, WatchedIndicator, -} from "@lukehagar/plexjs/sdk/models/shared"; +} from "@lukehagar/plexjs/models/shared"; let value: UserPlexAccount = { adsConsentReminderAt: 1556281940, @@ -97,19 +97,19 @@ let value: UserPlexAccount = { | `joinedAt` | *number* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 | | `locale` | *string* | :heavy_minus_sign: | The account locale | | | `mailingListActive` | *boolean* | :heavy_minus_sign: | If you are subscribed to the Plex newsletter | | -| `mailingListStatus` | [shared.MailingListStatus](../../../sdk/models/shared/mailingliststatus.md) | :heavy_minus_sign: | Your current mailing list status | active | +| `mailingListStatus` | [shared.MailingListStatus](../../models/shared/mailingliststatus.md) | :heavy_minus_sign: | Your current mailing list status | active | | `maxHomeSize` | *number* | :heavy_minus_sign: | The maximum number of accounts allowed in the Plex Home | 15 | | ~~`pin`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

[Might be removed] The hashed Plex Home PIN | | -| `profile` | [shared.UserProfile](../../../sdk/models/shared/userprofile.md) | :heavy_minus_sign: | N/A | | +| `profile` | [shared.UserProfile](../../models/shared/userprofile.md) | :heavy_minus_sign: | N/A | | | `protected` | *boolean* | :heavy_minus_sign: | If the account has a Plex Home PIN enabled | | | `rememberExpiresAt` | *number* | :heavy_minus_sign: | Unix epoch datetime in seconds | 1556281940 | | `restricted` | *boolean* | :heavy_minus_sign: | If the account is a Plex Home managed user | | | `roles` | *string*[] | :heavy_minus_sign: | [Might be removed] List of account roles. Plexpass membership listed here | | | `scrobbleTypes` | *string* | :heavy_minus_sign: | Unknown | | -| `services` | [shared.Service](../../../sdk/models/shared/service.md)[] | :heavy_minus_sign: | N/A | | -| `subscription` | [shared.Subscription1](../../../sdk/models/shared/subscription1.md) | :heavy_minus_sign: | If the account's Plex Pass subscription is active | | +| `services` | [shared.Service](../../models/shared/service.md)[] | :heavy_minus_sign: | N/A | | +| `subscription` | [shared.Subscription1](../../models/shared/subscription1.md) | :heavy_minus_sign: | If the account's Plex Pass subscription is active | | | `subscriptionDescription` | *string* | :heavy_minus_sign: | Description of the Plex Pass subscription | | -| `subscriptions` | [shared.Subscription2](../../../sdk/models/shared/subscription2.md)[] | :heavy_minus_sign: | N/A | | +| `subscriptions` | [shared.Subscription2](../../models/shared/subscription2.md)[] | :heavy_minus_sign: | N/A | | | `thumb` | *string* | :heavy_minus_sign: | URL of the account thumbnail | https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101 | | `title` | *string* | :heavy_check_mark: | The title of the account (username or friendly name) | UsernameTitle | | `twoFactorEnabled` | *boolean* | :heavy_minus_sign: | If two-factor authentication is enabled | | diff --git a/docs/models/shared/userprofile.md b/docs/models/shared/userprofile.md new file mode 100644 index 00000000..de54defe --- /dev/null +++ b/docs/models/shared/userprofile.md @@ -0,0 +1,44 @@ +# UserProfile + +## Example Usage + +```typescript +import { + AutoSelectSubtitle, + DefaultSubtitleAccessibility, + DefaultSubtitleForced, + MediaReviewsVisibility, + UserProfile, + WatchedIndicator, +} from "@lukehagar/plexjs/models/shared"; + +let value: UserProfile = { + defaultAudioLanguage: "ja", + defaultAudioLanguages: null, + defaultSubtitleLanguage: "en", + defaultSubtitleLanguages: null, + autoSelectSubtitle: AutoSelectSubtitle.ShownWithForeignAudio, + defaultSubtitleAccessibility: DefaultSubtitleAccessibility.PreferSdh, + defaultSubtitleForced: DefaultSubtitleForced.PreferForced, + watchedIndicator: WatchedIndicator.MoviesAndTvShows, + mediaReviewsVisibility: MediaReviewsVisibility.CriticsOnly, + mediaReviewsLanguages: null, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `autoSelectAudio` | *boolean* | :heavy_minus_sign: | If the account has automatically select audio and subtitle tracks enabled | true | +| `defaultAudioLanguage` | *string* | :heavy_check_mark: | The preferred audio language for the account | ja | +| `defaultAudioAccessibility` | [shared.DefaultAudioAccessibility](../../models/shared/defaultaudioaccessibility.md) | :heavy_minus_sign: | N/A | 0 | +| `defaultAudioLanguages` | *string*[] | :heavy_minus_sign: | The preferred audio languages for the account | | +| `defaultSubtitleLanguage` | *string* | :heavy_check_mark: | The preferred subtitle language for the account | en | +| `defaultSubtitleLanguages` | *string*[] | :heavy_minus_sign: | The preferred subtitle languages for the account | | +| `autoSelectSubtitle` | [shared.AutoSelectSubtitle](../../models/shared/autoselectsubtitle.md) | :heavy_minus_sign: | N/A | 1 | +| `defaultSubtitleAccessibility` | [shared.DefaultSubtitleAccessibility](../../models/shared/defaultsubtitleaccessibility.md) | :heavy_minus_sign: | N/A | 1 | +| `defaultSubtitleForced` | [shared.DefaultSubtitleForced](../../models/shared/defaultsubtitleforced.md) | :heavy_minus_sign: | N/A | 1 | +| `watchedIndicator` | [shared.WatchedIndicator](../../models/shared/watchedindicator.md) | :heavy_minus_sign: | N/A | 1 | +| `mediaReviewsVisibility` | [shared.MediaReviewsVisibility](../../models/shared/mediareviewsvisibility.md) | :heavy_minus_sign: | N/A | 1 | +| `mediaReviewsLanguages` | *string*[] | :heavy_minus_sign: | The languages for media reviews visibility | | \ No newline at end of file diff --git a/docs/sdk/models/shared/value.md b/docs/models/shared/value.md similarity index 100% rename from docs/sdk/models/shared/value.md rename to docs/models/shared/value.md diff --git a/docs/models/shared/watchedindicator.md b/docs/models/shared/watchedindicator.md new file mode 100644 index 00000000..82c1037d --- /dev/null +++ b/docs/models/shared/watchedindicator.md @@ -0,0 +1,23 @@ +# WatchedIndicator + +Whether or not media watched indicators are enabled (little orange dot on media) + +## Example Usage + +```typescript +import { WatchedIndicator } from "@lukehagar/plexjs/models/shared"; + +let value: WatchedIndicator = WatchedIndicator.MoviesAndTvShows; +``` + +## Values + +This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. + +| Name | Value | +| ---------------------- | ---------------------- | +| `None` | 0 | +| `MoviesAndTvShows` | 1 | +| `Movies` | 2 | +| `TvShows` | 3 | +| - | `Unrecognized` | \ No newline at end of file diff --git a/docs/sdk/models/errors/getserverresourcesunauthorizederror.md b/docs/sdk/models/errors/getserverresourcesunauthorizederror.md deleted file mode 100644 index 300e56ae..00000000 --- a/docs/sdk/models/errors/getserverresourcesunauthorizederror.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetServerResourcesUnauthorizedError - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetServerResourcesUnauthorizedError } from "@lukehagar/plexjs/sdk/models/errors"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `errors` | [operations.GetServerResourcesError](../../../sdk/models/operations/getserverresourceserror.md)[] | :heavy_minus_sign: | N/A | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/gettokendetailsbadrequesterror.md b/docs/sdk/models/errors/gettokendetailsbadrequesterror.md deleted file mode 100644 index 8fc31a43..00000000 --- a/docs/sdk/models/errors/gettokendetailsbadrequesterror.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetTokenDetailsBadRequestError - -Bad Request - A parameter was not specified, or was specified incorrectly. - -## Example Usage - -```typescript -import { GetTokenDetailsBadRequestError } from "@lukehagar/plexjs/sdk/models/errors"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | -| `errors` | [operations.GetTokenDetailsBadRequestError](../../../sdk/models/operations/gettokendetailsbadrequesterror.md)[] | :heavy_minus_sign: | N/A | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/gettokendetailsunauthorizederror.md b/docs/sdk/models/errors/gettokendetailsunauthorizederror.md deleted file mode 100644 index 10b198d6..00000000 --- a/docs/sdk/models/errors/gettokendetailsunauthorizederror.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetTokenDetailsUnauthorizedError - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetTokenDetailsUnauthorizedError } from "@lukehagar/plexjs/sdk/models/errors"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | -| `errors` | [operations.GetTokenDetailsUnauthorizedError](../../../sdk/models/operations/gettokendetailsunauthorizederror.md)[] | :heavy_minus_sign: | N/A | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getusersbadrequesterror.md b/docs/sdk/models/errors/getusersbadrequesterror.md deleted file mode 100644 index 701c0a03..00000000 --- a/docs/sdk/models/errors/getusersbadrequesterror.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetUsersBadRequestError - -Bad Request - A parameter was not specified, or was specified incorrectly. - -## Example Usage - -```typescript -import { GetUsersBadRequestError } from "@lukehagar/plexjs/sdk/models/errors"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `errors` | [operations.GetUsersBadRequestError](../../../sdk/models/operations/getusersbadrequesterror.md)[] | :heavy_minus_sign: | N/A | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getusersunauthorizederror.md b/docs/sdk/models/errors/getusersunauthorizederror.md deleted file mode 100644 index 9601145c..00000000 --- a/docs/sdk/models/errors/getusersunauthorizederror.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetUsersUnauthorizedError - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetUsersUnauthorizedError } from "@lukehagar/plexjs/sdk/models/errors"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `errors` | [operations.GetUsersUnauthorizedError](../../../sdk/models/operations/getusersunauthorizederror.md)[] | :heavy_minus_sign: | N/A | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/postuserssignindatabadrequesterror.md b/docs/sdk/models/errors/postuserssignindatabadrequesterror.md deleted file mode 100644 index 9a18a02b..00000000 --- a/docs/sdk/models/errors/postuserssignindatabadrequesterror.md +++ /dev/null @@ -1,18 +0,0 @@ -# PostUsersSignInDataBadRequestError - -Bad Request - A parameter was not specified, or was specified incorrectly. - -## Example Usage - -```typescript -import { PostUsersSignInDataBadRequestError } from "@lukehagar/plexjs/sdk/models/errors"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `errors` | [operations.PostUsersSignInDataBadRequestError](../../../sdk/models/operations/postuserssignindatabadrequesterror.md)[] | :heavy_minus_sign: | N/A | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/postuserssignindataunauthorizederror.md b/docs/sdk/models/errors/postuserssignindataunauthorizederror.md deleted file mode 100644 index b470c945..00000000 --- a/docs/sdk/models/errors/postuserssignindataunauthorizederror.md +++ /dev/null @@ -1,18 +0,0 @@ -# PostUsersSignInDataUnauthorizedError - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { PostUsersSignInDataUnauthorizedError } from "@lukehagar/plexjs/sdk/models/errors"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | -| `errors` | [operations.PostUsersSignInDataUnauthorizedError](../../../sdk/models/operations/postuserssignindataunauthorizederror.md)[] | :heavy_minus_sign: | N/A | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/addcollectionitemsresponse.md b/docs/sdk/models/operations/addcollectionitemsresponse.md deleted file mode 100644 index e06ccf2e..00000000 --- a/docs/sdk/models/operations/addcollectionitemsresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# AddCollectionItemsResponse - -## Example Usage - -```typescript -import { AddCollectionItemsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: AddCollectionItemsResponse = { - contentType: "", - statusCode: 637232, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithMetadata` | [shared.MediaContainerWithMetadata](../../../sdk/models/shared/mediacontainerwithmetadata.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/adddeviceresponse.md b/docs/sdk/models/operations/adddeviceresponse.md deleted file mode 100644 index 13bf61a5..00000000 --- a/docs/sdk/models/operations/adddeviceresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# AddDeviceResponse - -## Example Usage - -```typescript -import { AddDeviceResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: AddDeviceResponse = { - contentType: "", - statusCode: 298653, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithDevice` | [shared.MediaContainerWithDevice](../../../sdk/models/shared/mediacontainerwithdevice.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/adddevicetodvrdvr.md b/docs/sdk/models/operations/adddevicetodvrdvr.md deleted file mode 100644 index e4624b02..00000000 --- a/docs/sdk/models/operations/adddevicetodvrdvr.md +++ /dev/null @@ -1,19 +0,0 @@ -# AddDeviceToDVRDVR - -## Example Usage - -```typescript -import { AddDeviceToDVRDVR } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: AddDeviceToDVRDVR = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `device` | [shared.Device](../../../sdk/models/shared/device.md)[] | :heavy_minus_sign: | N/A | -| `key` | *string* | :heavy_minus_sign: | N/A | -| `language` | *string* | :heavy_minus_sign: | N/A | -| `lineup` | *string* | :heavy_minus_sign: | N/A | -| `uuid` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/adddevicetodvrresponse.md b/docs/sdk/models/operations/adddevicetodvrresponse.md deleted file mode 100644 index 162e4f6c..00000000 --- a/docs/sdk/models/operations/adddevicetodvrresponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# AddDeviceToDVRResponse - -## Example Usage - -```typescript -import { AddDeviceToDVRResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: AddDeviceToDVRResponse = { - contentType: "", - statusCode: 350017, - headers: { - "key": [ - "", - "", - "", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.AddDeviceToDVRResponseBody](../../../sdk/models/operations/adddevicetodvrresponsebody.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/adddevicetodvrresponsebody.md b/docs/sdk/models/operations/adddevicetodvrresponsebody.md deleted file mode 100644 index e0d7a7b8..00000000 --- a/docs/sdk/models/operations/adddevicetodvrresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# AddDeviceToDVRResponseBody - -OK - -## Example Usage - -```typescript -import { AddDeviceToDVRResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: AddDeviceToDVRResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.AddDeviceToDVRMediaContainer](../../../sdk/models/operations/adddevicetodvrmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/adddownloadqueueitemsresponse.md b/docs/sdk/models/operations/adddownloadqueueitemsresponse.md deleted file mode 100644 index d5fa6396..00000000 --- a/docs/sdk/models/operations/adddownloadqueueitemsresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# AddDownloadQueueItemsResponse - -## Example Usage - -```typescript -import { AddDownloadQueueItemsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: AddDownloadQueueItemsResponse = { - contentType: "", - statusCode: 35315, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.AddDownloadQueueItemsResponseBody](../../../sdk/models/operations/adddownloadqueueitemsresponsebody.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/adddownloadqueueitemsresponsebody.md b/docs/sdk/models/operations/adddownloadqueueitemsresponsebody.md deleted file mode 100644 index 6d0ec8f1..00000000 --- a/docs/sdk/models/operations/adddownloadqueueitemsresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# AddDownloadQueueItemsResponseBody - -OK - -## Example Usage - -```typescript -import { AddDownloadQueueItemsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: AddDownloadQueueItemsResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.AddDownloadQueueItemsMediaContainer](../../../sdk/models/operations/adddownloadqueueitemsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/addextrasresponse.md b/docs/sdk/models/operations/addextrasresponse.md deleted file mode 100644 index 0aff465b..00000000 --- a/docs/sdk/models/operations/addextrasresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# AddExtrasResponse - -## Example Usage - -```typescript -import { AddExtrasResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: AddExtrasResponse = { - contentType: "", - statusCode: 968715, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/addlineupdvr.md b/docs/sdk/models/operations/addlineupdvr.md deleted file mode 100644 index 4f6b9cd6..00000000 --- a/docs/sdk/models/operations/addlineupdvr.md +++ /dev/null @@ -1,19 +0,0 @@ -# AddLineupDVR - -## Example Usage - -```typescript -import { AddLineupDVR } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: AddLineupDVR = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `device` | [shared.Device](../../../sdk/models/shared/device.md)[] | :heavy_minus_sign: | N/A | -| `key` | *string* | :heavy_minus_sign: | N/A | -| `language` | *string* | :heavy_minus_sign: | N/A | -| `lineup` | *string* | :heavy_minus_sign: | N/A | -| `uuid` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/addlineupmediacontainer.md b/docs/sdk/models/operations/addlineupmediacontainer.md deleted file mode 100644 index b77bfa99..00000000 --- a/docs/sdk/models/operations/addlineupmediacontainer.md +++ /dev/null @@ -1,16 +0,0 @@ -# AddLineupMediaContainer - -## Example Usage - -```typescript -import { AddLineupMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: AddLineupMediaContainer = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.AddLineupMediaContainerMediaContainer](../../../sdk/models/operations/addlineupmediacontainermediacontainer.md) | :heavy_minus_sign: | N/A | -| `dvr` | [operations.AddLineupDVR](../../../sdk/models/operations/addlineupdvr.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/addlineupresponse.md b/docs/sdk/models/operations/addlineupresponse.md deleted file mode 100644 index 3cef164f..00000000 --- a/docs/sdk/models/operations/addlineupresponse.md +++ /dev/null @@ -1,23 +0,0 @@ -# AddLineupResponse - -## Example Usage - -```typescript -import { AddLineupResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: AddLineupResponse = { - contentType: "", - statusCode: 652088, - headers: {}, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.AddLineupResponseBody](../../../sdk/models/operations/addlineupresponsebody.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/addlineupresponsebody.md b/docs/sdk/models/operations/addlineupresponsebody.md deleted file mode 100644 index 8b972e46..00000000 --- a/docs/sdk/models/operations/addlineupresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# AddLineupResponseBody - -OK - -## Example Usage - -```typescript -import { AddLineupResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: AddLineupResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.AddLineupMediaContainer](../../../sdk/models/operations/addlineupmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/addplaylistitemsresponse.md b/docs/sdk/models/operations/addplaylistitemsresponse.md deleted file mode 100644 index 4519d852..00000000 --- a/docs/sdk/models/operations/addplaylistitemsresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# AddPlaylistItemsResponse - -## Example Usage - -```typescript -import { AddPlaylistItemsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: AddPlaylistItemsResponse = { - contentType: "", - statusCode: 789450, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithPlaylistMetadata` | [shared.MediaContainerWithPlaylistMetadata](../../../sdk/models/shared/mediacontainerwithplaylistmetadata.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/addproviderresponse.md b/docs/sdk/models/operations/addproviderresponse.md deleted file mode 100644 index d773017a..00000000 --- a/docs/sdk/models/operations/addproviderresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# AddProviderResponse - -## Example Usage - -```typescript -import { AddProviderResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: AddProviderResponse = { - contentType: "", - statusCode: 30014, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/addsectionrequest.md b/docs/sdk/models/operations/addsectionrequest.md deleted file mode 100644 index 284e9f32..00000000 --- a/docs/sdk/models/operations/addsectionrequest.md +++ /dev/null @@ -1,48 +0,0 @@ -# AddSectionRequest - -## Example Usage - -```typescript -import { AddSectionRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: AddSectionRequest = { - name: "", - type: 583726, - agent: "", - language: "", - locations: [ - "O:\fatboy\\Media\\Ripped\\Music", - "O:\fatboy\\Media\\My Music", - ], - prefs: {}, - relative: BoolInt.True, - importFromiTunes: BoolInt.True, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | -| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `deviceName` | *string* | :heavy_minus_sign: | 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 | | -| `agent` | *string* | :heavy_check_mark: | The agent this section should use for metadata | | -| `metadataAgentProviderGroupId` | *string* | :heavy_minus_sign: | The agent group id for this section | | -| `language` | *string* | :heavy_check_mark: | The language of this section | | -| `locations` | *string*[] | :heavy_minus_sign: | The locations on disk to add to this section | [
"O:\\fatboy\\Media\\Ripped\\Music",
"O:\\fatboy\\Media\\My Music"
] | -| `prefs` | [operations.AddSectionPrefs](../../../sdk/models/operations/addsectionprefs.md) | :heavy_minus_sign: | The preferences for this section | {
"collectionMode": 2,
"hidden": 0
} | -| `relative` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | If set, paths are relative to `Media Upload` path | 1 | -| `importFromiTunes` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | If set, import media from iTunes. | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/addsectionresponse.md b/docs/sdk/models/operations/addsectionresponse.md deleted file mode 100644 index 20bb8eac..00000000 --- a/docs/sdk/models/operations/addsectionresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# AddSectionResponse - -## Example Usage - -```typescript -import { AddSectionResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: AddSectionResponse = { - contentType: "", - statusCode: 465224, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `slashGetResponses200` | [shared.SlashGetResponses200](../../../sdk/models/shared/slashgetresponses200.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/addsubtitlesresponse.md b/docs/sdk/models/operations/addsubtitlesresponse.md deleted file mode 100644 index 73e83c72..00000000 --- a/docs/sdk/models/operations/addsubtitlesresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# AddSubtitlesResponse - -## Example Usage - -```typescript -import { AddSubtitlesResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: AddSubtitlesResponse = { - contentType: "", - statusCode: 406595, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/addtoplayqueueresponse.md b/docs/sdk/models/operations/addtoplayqueueresponse.md deleted file mode 100644 index 7afda07b..00000000 --- a/docs/sdk/models/operations/addtoplayqueueresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# AddToPlayQueueResponse - -## Example Usage - -```typescript -import { AddToPlayQueueResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: AddToPlayQueueResponse = { - contentType: "", - statusCode: 727375, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithPlaylistMetadata` | [shared.MediaContainerWithPlaylistMetadata](../../../sdk/models/shared/mediacontainerwithplaylistmetadata.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/advancedsubtitles.md b/docs/sdk/models/operations/advancedsubtitles.md deleted file mode 100644 index a1660cd2..00000000 --- a/docs/sdk/models/operations/advancedsubtitles.md +++ /dev/null @@ -1,20 +0,0 @@ -# AdvancedSubtitles - -## Example Usage - -```typescript -import { AdvancedSubtitles } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: AdvancedSubtitles = AdvancedSubtitles.Auto; -``` - -## Values - -| Name | Value | -| ----------- | ----------- | -| `Auto` | auto | -| `Burn` | burn | -| `None` | none | -| `Sidecar` | sidecar | -| `Embedded` | embedded | -| `Segmented` | segmented | \ No newline at end of file diff --git a/docs/sdk/models/operations/alllibraries.md b/docs/sdk/models/operations/alllibraries.md deleted file mode 100644 index 1c585d09..00000000 --- a/docs/sdk/models/operations/alllibraries.md +++ /dev/null @@ -1,18 +0,0 @@ -# AllLibraries - -Indicates if the user has access to all libraries. - -## Example Usage - -```typescript -import { AllLibraries } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: AllLibraries = AllLibraries.Enable; -``` - -## Values - -| Name | Value | -| --------- | --------- | -| `Disable` | 0 | -| `Enable` | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/allowcameraupload.md b/docs/sdk/models/operations/allowcameraupload.md deleted file mode 100644 index 83910ffd..00000000 --- a/docs/sdk/models/operations/allowcameraupload.md +++ /dev/null @@ -1,18 +0,0 @@ -# AllowCameraUpload - -Indicates if the user is allowed to upload from a camera. - -## Example Usage - -```typescript -import { AllowCameraUpload } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: AllowCameraUpload = AllowCameraUpload.Enable; -``` - -## Values - -| Name | Value | -| --------- | --------- | -| `Disable` | 0 | -| `Enable` | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/allowchannels.md b/docs/sdk/models/operations/allowchannels.md deleted file mode 100644 index 9a0560d9..00000000 --- a/docs/sdk/models/operations/allowchannels.md +++ /dev/null @@ -1,18 +0,0 @@ -# AllowChannels - -Indicates if the user has access to channels. - -## Example Usage - -```typescript -import { AllowChannels } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: AllowChannels = AllowChannels.Enable; -``` - -## Values - -| Name | Value | -| --------- | --------- | -| `Disable` | 0 | -| `Enable` | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/allowsubtitleadmin.md b/docs/sdk/models/operations/allowsubtitleadmin.md deleted file mode 100644 index e6342bb4..00000000 --- a/docs/sdk/models/operations/allowsubtitleadmin.md +++ /dev/null @@ -1,18 +0,0 @@ -# AllowSubtitleAdmin - -Indicates if the user can manage subtitles. - -## Example Usage - -```typescript -import { AllowSubtitleAdmin } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: AllowSubtitleAdmin = AllowSubtitleAdmin.Enable; -``` - -## Values - -| Name | Value | -| --------- | --------- | -| `Disable` | 0 | -| `Enable` | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/allowsync.md b/docs/sdk/models/operations/allowsync.md deleted file mode 100644 index 93e4f80b..00000000 --- a/docs/sdk/models/operations/allowsync.md +++ /dev/null @@ -1,18 +0,0 @@ -# AllowSync - -Indicates if the user is allowed to sync media. - -## Example Usage - -```typescript -import { AllowSync } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: AllowSync = AllowSync.Enable; -``` - -## Values - -| Name | Value | -| --------- | --------- | -| `Disable` | 0 | -| `Enable` | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/allowtuners.md b/docs/sdk/models/operations/allowtuners.md deleted file mode 100644 index 8875b6c4..00000000 --- a/docs/sdk/models/operations/allowtuners.md +++ /dev/null @@ -1,18 +0,0 @@ -# AllowTuners - -Indicates if the user is allowed to use tuners. - -## Example Usage - -```typescript -import { AllowTuners } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: AllowTuners = AllowTuners.Enable; -``` - -## Values - -| Name | Value | -| --------- | --------- | -| `Disable` | 0 | -| `Enable` | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/analyzemetadataresponse.md b/docs/sdk/models/operations/analyzemetadataresponse.md deleted file mode 100644 index 79c2fbd0..00000000 --- a/docs/sdk/models/operations/analyzemetadataresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# AnalyzeMetadataResponse - -## Example Usage - -```typescript -import { AnalyzeMetadataResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: AnalyzeMetadataResponse = { - contentType: "", - statusCode: 941124, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/applyupdatesresponse.md b/docs/sdk/models/operations/applyupdatesresponse.md deleted file mode 100644 index f72712f2..00000000 --- a/docs/sdk/models/operations/applyupdatesresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# ApplyUpdatesResponse - -## Example Usage - -```typescript -import { ApplyUpdatesResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ApplyUpdatesResponse = { - contentType: "", - statusCode: 99456, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/autocompleteresponse.md b/docs/sdk/models/operations/autocompleteresponse.md deleted file mode 100644 index c3ee69e3..00000000 --- a/docs/sdk/models/operations/autocompleteresponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# AutocompleteResponse - -## Example Usage - -```typescript -import { AutocompleteResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: AutocompleteResponse = { - contentType: "", - statusCode: 451053, - headers: { - "key": [ - "", - ], - "key1": [ - "", - ], - "key2": [ - "", - "", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithMetadata` | [shared.MediaContainerWithMetadata](../../../sdk/models/shared/mediacontainerwithmetadata.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/bandwidths.md b/docs/sdk/models/operations/bandwidths.md deleted file mode 100644 index cb538b89..00000000 --- a/docs/sdk/models/operations/bandwidths.md +++ /dev/null @@ -1,17 +0,0 @@ -# Bandwidths - -A list of media times and bandwidths when trascoding is using with auto adjustment of bandwidth - -## Example Usage - -```typescript -import { Bandwidths } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: Bandwidths = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `bandwidth` | [operations.Bandwidth](../../../sdk/models/operations/bandwidth.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/billing.md b/docs/sdk/models/operations/billing.md deleted file mode 100644 index 2eab8d46..00000000 --- a/docs/sdk/models/operations/billing.md +++ /dev/null @@ -1,19 +0,0 @@ -# Billing - -## Example Usage - -```typescript -import { Billing } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: Billing = { - internalPaymentMethod: {}, - paymentMethodId: 575569, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | -| `internalPaymentMethod` | [operations.InternalPaymentMethod](../../../sdk/models/operations/internalpaymentmethod.md) | :heavy_check_mark: | N/A | -| `paymentMethodId` | *number* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/butlertasks.md b/docs/sdk/models/operations/butlertasks.md deleted file mode 100644 index c40cc871..00000000 --- a/docs/sdk/models/operations/butlertasks.md +++ /dev/null @@ -1,15 +0,0 @@ -# ButlerTasks - -## Example Usage - -```typescript -import { ButlerTasks } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ButlerTasks = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | -| `butlerTask` | [operations.GetTasksButlerTask](../../../sdk/models/operations/gettasksbutlertask.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/cancelactivityresponse.md b/docs/sdk/models/operations/cancelactivityresponse.md deleted file mode 100644 index 00b00f6c..00000000 --- a/docs/sdk/models/operations/cancelactivityresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# CancelActivityResponse - -## Example Usage - -```typescript -import { CancelActivityResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: CancelActivityResponse = { - contentType: "", - statusCode: 891380, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/cancelgrabresponse.md b/docs/sdk/models/operations/cancelgrabresponse.md deleted file mode 100644 index 35f6cc9d..00000000 --- a/docs/sdk/models/operations/cancelgrabresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# CancelGrabResponse - -## Example Usage - -```typescript -import { CancelGrabResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: CancelGrabResponse = { - contentType: "", - statusCode: 762769, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/cancelrefreshresponse.md b/docs/sdk/models/operations/cancelrefreshresponse.md deleted file mode 100644 index f5552953..00000000 --- a/docs/sdk/models/operations/cancelrefreshresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# CancelRefreshResponse - -## Example Usage - -```typescript -import { CancelRefreshResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: CancelRefreshResponse = { - contentType: "", - statusCode: 662485, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/checkupdatesresponse.md b/docs/sdk/models/operations/checkupdatesresponse.md deleted file mode 100644 index 62a27d48..00000000 --- a/docs/sdk/models/operations/checkupdatesresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# CheckUpdatesResponse - -## Example Usage - -```typescript -import { CheckUpdatesResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: CheckUpdatesResponse = { - contentType: "", - statusCode: 957467, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/cleanbundlesresponse.md b/docs/sdk/models/operations/cleanbundlesresponse.md deleted file mode 100644 index d7a68709..00000000 --- a/docs/sdk/models/operations/cleanbundlesresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# CleanBundlesResponse - -## Example Usage - -```typescript -import { CleanBundlesResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: CleanBundlesResponse = { - contentType: "", - statusCode: 909877, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/clearplaylistitemsresponse.md b/docs/sdk/models/operations/clearplaylistitemsresponse.md deleted file mode 100644 index f16b63ee..00000000 --- a/docs/sdk/models/operations/clearplaylistitemsresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# ClearPlaylistItemsResponse - -## Example Usage - -```typescript -import { ClearPlaylistItemsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ClearPlaylistItemsResponse = { - contentType: "", - statusCode: 304497, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithPlaylistMetadata` | [shared.MediaContainerWithPlaylistMetadata](../../../sdk/models/shared/mediacontainerwithplaylistmetadata.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/clearplayqueueresponse.md b/docs/sdk/models/operations/clearplayqueueresponse.md deleted file mode 100644 index 49eec6e9..00000000 --- a/docs/sdk/models/operations/clearplayqueueresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# ClearPlayQueueResponse - -## Example Usage - -```typescript -import { ClearPlayQueueResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ClearPlayQueueResponse = { - contentType: "", - statusCode: 80007, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithPlaylistMetadata` | [shared.MediaContainerWithPlaylistMetadata](../../../sdk/models/shared/mediacontainerwithplaylistmetadata.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/computechannelmapresponse.md b/docs/sdk/models/operations/computechannelmapresponse.md deleted file mode 100644 index 940a39f2..00000000 --- a/docs/sdk/models/operations/computechannelmapresponse.md +++ /dev/null @@ -1,23 +0,0 @@ -# ComputeChannelMapResponse - -## Example Usage - -```typescript -import { ComputeChannelMapResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ComputeChannelMapResponse = { - contentType: "", - statusCode: 3379, - headers: {}, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.ComputeChannelMapResponseBody](../../../sdk/models/operations/computechannelmapresponsebody.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/computechannelmapresponsebody.md b/docs/sdk/models/operations/computechannelmapresponsebody.md deleted file mode 100644 index d6297abf..00000000 --- a/docs/sdk/models/operations/computechannelmapresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# ComputeChannelMapResponseBody - -OK - -## Example Usage - -```typescript -import { ComputeChannelMapResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ComputeChannelMapResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.ComputeChannelMapMediaContainer](../../../sdk/models/operations/computechannelmapmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/connectwebsocketresponse.md b/docs/sdk/models/operations/connectwebsocketresponse.md deleted file mode 100644 index 2b963631..00000000 --- a/docs/sdk/models/operations/connectwebsocketresponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# ConnectWebSocketResponse - -## Example Usage - -```typescript -import { ConnectWebSocketResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `responseStream` | *ReadableStream* | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/createcollectionresponse.md b/docs/sdk/models/operations/createcollectionresponse.md deleted file mode 100644 index abcaf3a1..00000000 --- a/docs/sdk/models/operations/createcollectionresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# CreateCollectionResponse - -## Example Usage - -```typescript -import { CreateCollectionResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: CreateCollectionResponse = { - contentType: "", - statusCode: 875447, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithMetadata` | [shared.MediaContainerWithMetadata](../../../sdk/models/shared/mediacontainerwithmetadata.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/createcustomhubresponse.md b/docs/sdk/models/operations/createcustomhubresponse.md deleted file mode 100644 index eb63b549..00000000 --- a/docs/sdk/models/operations/createcustomhubresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# CreateCustomHubResponse - -## Example Usage - -```typescript -import { CreateCustomHubResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: CreateCustomHubResponse = { - contentType: "", - statusCode: 783015, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/createdownloadqueueresponse.md b/docs/sdk/models/operations/createdownloadqueueresponse.md deleted file mode 100644 index 3a92c04f..00000000 --- a/docs/sdk/models/operations/createdownloadqueueresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# CreateDownloadQueueResponse - -## Example Usage - -```typescript -import { CreateDownloadQueueResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: CreateDownloadQueueResponse = { - contentType: "", - statusCode: 200056, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.CreateDownloadQueueResponseBody](../../../sdk/models/operations/createdownloadqueueresponsebody.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/createdownloadqueueresponsebody.md b/docs/sdk/models/operations/createdownloadqueueresponsebody.md deleted file mode 100644 index 901e85eb..00000000 --- a/docs/sdk/models/operations/createdownloadqueueresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateDownloadQueueResponseBody - -OK - -## Example Usage - -```typescript -import { CreateDownloadQueueResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: CreateDownloadQueueResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.CreateDownloadQueueMediaContainer](../../../sdk/models/operations/createdownloadqueuemediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/createdownloadqueuestatus.md b/docs/sdk/models/operations/createdownloadqueuestatus.md deleted file mode 100644 index 09f4dea1..00000000 --- a/docs/sdk/models/operations/createdownloadqueuestatus.md +++ /dev/null @@ -1,27 +0,0 @@ -# CreateDownloadQueueStatus - -The state of this queue - - deciding: At least one item is still being decided - - waiting: At least one item is waiting for transcode and none are currently transcoding - - processing: At least one item is being transcoded - - done: All items are available (or potentially expired) - - error: At least one item has encountered an error - - -## Example Usage - -```typescript -import { CreateDownloadQueueStatus } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: CreateDownloadQueueStatus = CreateDownloadQueueStatus.Error; -``` - -## Values - -| Name | Value | -| ------------ | ------------ | -| `Deciding` | deciding | -| `Waiting` | waiting | -| `Processing` | processing | -| `Done` | done | -| `Error` | error | \ No newline at end of file diff --git a/docs/sdk/models/operations/createdvrresponse.md b/docs/sdk/models/operations/createdvrresponse.md deleted file mode 100644 index e13e1347..00000000 --- a/docs/sdk/models/operations/createdvrresponse.md +++ /dev/null @@ -1,28 +0,0 @@ -# CreateDVRResponse - -## Example Usage - -```typescript -import { CreateDVRResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: CreateDVRResponse = { - contentType: "", - statusCode: 414065, - headers: { - "key": [ - "", - "", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `dvrRequestHandlerSlashGetResponses200` | [shared.DvrRequestHandlerSlashGetResponses200](../../../sdk/models/shared/dvrrequesthandlerslashgetresponses200.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/createmarkerrequest.md b/docs/sdk/models/operations/createmarkerrequest.md deleted file mode 100644 index 584831df..00000000 --- a/docs/sdk/models/operations/createmarkerrequest.md +++ /dev/null @@ -1,35 +0,0 @@ -# CreateMarkerRequest - -## Example Usage - -```typescript -import { CreateMarkerRequest } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: CreateMarkerRequest = { - ids: "", - type: 573388, - startTimeOffset: 296852, - attributes: {}, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | -| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `deviceName` | *string* | :heavy_minus_sign: | 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 | | -| `endTimeOffset` | *number* | :heavy_minus_sign: | The end time of the marker | | -| `attributes` | [operations.CreateMarkerAttributes](../../../sdk/models/operations/createmarkerattributes.md) | :heavy_minus_sign: | The attributes to assign to this marker | {
"title": "My favorite spot"
} | \ No newline at end of file diff --git a/docs/sdk/models/operations/createmarkerresponse.md b/docs/sdk/models/operations/createmarkerresponse.md deleted file mode 100644 index d7a442a0..00000000 --- a/docs/sdk/models/operations/createmarkerresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# CreateMarkerResponse - -## Example Usage - -```typescript -import { CreateMarkerResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: CreateMarkerResponse = { - contentType: "", - statusCode: 530183, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.CreateMarkerResponseBody](../../../sdk/models/operations/createmarkerresponsebody.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/createmarkerresponsebody.md b/docs/sdk/models/operations/createmarkerresponsebody.md deleted file mode 100644 index 8d2fc9c1..00000000 --- a/docs/sdk/models/operations/createmarkerresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateMarkerResponseBody - -OK - -## Example Usage - -```typescript -import { CreateMarkerResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: CreateMarkerResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.CreateMarkerMediaContainer](../../../sdk/models/operations/createmarkermediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/createmarkertype.md b/docs/sdk/models/operations/createmarkertype.md deleted file mode 100644 index 9438c470..00000000 --- a/docs/sdk/models/operations/createmarkertype.md +++ /dev/null @@ -1,19 +0,0 @@ -# CreateMarkerType - -## Example Usage - -```typescript -import { CreateMarkerType } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: CreateMarkerType = CreateMarkerType.Intro; -``` - -## Values - -| Name | Value | -| ------------ | ------------ | -| `Intro` | intro | -| `Commercial` | commercial | -| `Bookmark` | bookmark | -| `Resume` | resume | -| `Credit` | credit | \ No newline at end of file diff --git a/docs/sdk/models/operations/createplaylistresponse.md b/docs/sdk/models/operations/createplaylistresponse.md deleted file mode 100644 index 42d448ba..00000000 --- a/docs/sdk/models/operations/createplaylistresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# CreatePlaylistResponse - -## Example Usage - -```typescript -import { CreatePlaylistResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: CreatePlaylistResponse = { - contentType: "", - statusCode: 842539, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithPlaylistMetadata` | [shared.MediaContainerWithPlaylistMetadata](../../../sdk/models/shared/mediacontainerwithplaylistmetadata.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/createplayqueueresponse.md b/docs/sdk/models/operations/createplayqueueresponse.md deleted file mode 100644 index 78a86509..00000000 --- a/docs/sdk/models/operations/createplayqueueresponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# CreatePlayQueueResponse - -## Example Usage - -```typescript -import { CreatePlayQueueResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: CreatePlayQueueResponse = { - contentType: "", - statusCode: 529249, - headers: { - "key": [], - "key1": [ - "", - "", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.CreatePlayQueueResponseBody](../../../sdk/models/operations/createplayqueueresponsebody.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/createplayqueueresponsebody.md b/docs/sdk/models/operations/createplayqueueresponsebody.md deleted file mode 100644 index 83db487c..00000000 --- a/docs/sdk/models/operations/createplayqueueresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreatePlayQueueResponseBody - -OK - -## Example Usage - -```typescript -import { CreatePlayQueueResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: CreatePlayQueueResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.CreatePlayQueueMediaContainer](../../../sdk/models/operations/createplayqueuemediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/createsubscriptionresponse.md b/docs/sdk/models/operations/createsubscriptionresponse.md deleted file mode 100644 index 6be2dfde..00000000 --- a/docs/sdk/models/operations/createsubscriptionresponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# CreateSubscriptionResponse - -## Example Usage - -```typescript -import { CreateSubscriptionResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: CreateSubscriptionResponse = { - contentType: "", - statusCode: 405156, - headers: { - "key": [ - "", - "", - "", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.CreateSubscriptionResponseBody](../../../sdk/models/operations/createsubscriptionresponsebody.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletecachesresponse.md b/docs/sdk/models/operations/deletecachesresponse.md deleted file mode 100644 index 8ad0fc57..00000000 --- a/docs/sdk/models/operations/deletecachesresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# DeleteCachesResponse - -## Example Usage - -```typescript -import { DeleteCachesResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: DeleteCachesResponse = { - contentType: "", - statusCode: 401826, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletecollectionitemresponse.md b/docs/sdk/models/operations/deletecollectionitemresponse.md deleted file mode 100644 index 0cad74c8..00000000 --- a/docs/sdk/models/operations/deletecollectionitemresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# DeleteCollectionItemResponse - -## Example Usage - -```typescript -import { DeleteCollectionItemResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: DeleteCollectionItemResponse = { - contentType: "", - statusCode: 150424, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithMetadata` | [shared.MediaContainerWithMetadata](../../../sdk/models/shared/mediacontainerwithmetadata.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletecollectionresponse.md b/docs/sdk/models/operations/deletecollectionresponse.md deleted file mode 100644 index 8577bd05..00000000 --- a/docs/sdk/models/operations/deletecollectionresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# DeleteCollectionResponse - -## Example Usage - -```typescript -import { DeleteCollectionResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: DeleteCollectionResponse = { - contentType: "", - statusCode: 868299, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletecustomhubresponse.md b/docs/sdk/models/operations/deletecustomhubresponse.md deleted file mode 100644 index baaa8017..00000000 --- a/docs/sdk/models/operations/deletecustomhubresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# DeleteCustomHubResponse - -## Example Usage - -```typescript -import { DeleteCustomHubResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: DeleteCustomHubResponse = { - contentType: "", - statusCode: 979565, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletedvrresponse.md b/docs/sdk/models/operations/deletedvrresponse.md deleted file mode 100644 index da7f3bdb..00000000 --- a/docs/sdk/models/operations/deletedvrresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# DeleteDVRResponse - -## Example Usage - -```typescript -import { DeleteDVRResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: DeleteDVRResponse = { - contentType: "", - statusCode: 277820, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletehistoryresponse.md b/docs/sdk/models/operations/deletehistoryresponse.md deleted file mode 100644 index ef48ac0c..00000000 --- a/docs/sdk/models/operations/deletehistoryresponse.md +++ /dev/null @@ -1,28 +0,0 @@ -# DeleteHistoryResponse - -## Example Usage - -```typescript -import { DeleteHistoryResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: DeleteHistoryResponse = { - contentType: "", - statusCode: 103554, - headers: { - "key": [ - "", - "", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainer` | [shared.MediaContainer](../../../sdk/models/shared/mediacontainer.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/deleteindexesresponse.md b/docs/sdk/models/operations/deleteindexesresponse.md deleted file mode 100644 index 5c2eb73a..00000000 --- a/docs/sdk/models/operations/deleteindexesresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# DeleteIndexesResponse - -## Example Usage - -```typescript -import { DeleteIndexesResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: DeleteIndexesResponse = { - contentType: "", - statusCode: 459040, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/deleteintrosresponse.md b/docs/sdk/models/operations/deleteintrosresponse.md deleted file mode 100644 index 1d61b55d..00000000 --- a/docs/sdk/models/operations/deleteintrosresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# DeleteIntrosResponse - -## Example Usage - -```typescript -import { DeleteIntrosResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: DeleteIntrosResponse = { - contentType: "", - statusCode: 957697, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletelibrarysectionresponse.md b/docs/sdk/models/operations/deletelibrarysectionresponse.md deleted file mode 100644 index a3efbae5..00000000 --- a/docs/sdk/models/operations/deletelibrarysectionresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# DeleteLibrarySectionResponse - -## Example Usage - -```typescript -import { DeleteLibrarySectionResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: DeleteLibrarySectionResponse = { - contentType: "", - statusCode: 344645, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletelineupdvr.md b/docs/sdk/models/operations/deletelineupdvr.md deleted file mode 100644 index e76b2c6d..00000000 --- a/docs/sdk/models/operations/deletelineupdvr.md +++ /dev/null @@ -1,19 +0,0 @@ -# DeleteLineupDVR - -## Example Usage - -```typescript -import { DeleteLineupDVR } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: DeleteLineupDVR = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `device` | [shared.Device](../../../sdk/models/shared/device.md)[] | :heavy_minus_sign: | N/A | -| `key` | *string* | :heavy_minus_sign: | N/A | -| `language` | *string* | :heavy_minus_sign: | N/A | -| `lineup` | *string* | :heavy_minus_sign: | N/A | -| `uuid` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletelineupmediacontainer.md b/docs/sdk/models/operations/deletelineupmediacontainer.md deleted file mode 100644 index 65d1556b..00000000 --- a/docs/sdk/models/operations/deletelineupmediacontainer.md +++ /dev/null @@ -1,16 +0,0 @@ -# DeleteLineupMediaContainer - -## Example Usage - -```typescript -import { DeleteLineupMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: DeleteLineupMediaContainer = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.DeleteLineupMediaContainerMediaContainer](../../../sdk/models/operations/deletelineupmediacontainermediacontainer.md) | :heavy_minus_sign: | N/A | -| `dvr` | [operations.DeleteLineupDVR](../../../sdk/models/operations/deletelineupdvr.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletelineupresponse.md b/docs/sdk/models/operations/deletelineupresponse.md deleted file mode 100644 index 00aa76d6..00000000 --- a/docs/sdk/models/operations/deletelineupresponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# DeleteLineupResponse - -## Example Usage - -```typescript -import { DeleteLineupResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: DeleteLineupResponse = { - contentType: "", - statusCode: 20864, - headers: { - "key": [ - "", - "", - "", - ], - "key1": [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.DeleteLineupResponseBody](../../../sdk/models/operations/deletelineupresponsebody.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletelineupresponsebody.md b/docs/sdk/models/operations/deletelineupresponsebody.md deleted file mode 100644 index da8812f5..00000000 --- a/docs/sdk/models/operations/deletelineupresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# DeleteLineupResponseBody - -OK - -## Example Usage - -```typescript -import { DeleteLineupResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: DeleteLineupResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.DeleteLineupMediaContainer](../../../sdk/models/operations/deletelineupmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletemarkerresponse.md b/docs/sdk/models/operations/deletemarkerresponse.md deleted file mode 100644 index 64f00430..00000000 --- a/docs/sdk/models/operations/deletemarkerresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# DeleteMarkerResponse - -## Example Usage - -```typescript -import { DeleteMarkerResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: DeleteMarkerResponse = { - contentType: "", - statusCode: 465457, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletemediaitemresponse.md b/docs/sdk/models/operations/deletemediaitemresponse.md deleted file mode 100644 index aa865d26..00000000 --- a/docs/sdk/models/operations/deletemediaitemresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# DeleteMediaItemResponse - -## Example Usage - -```typescript -import { DeleteMediaItemResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: DeleteMediaItemResponse = { - contentType: "", - statusCode: 956344, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletemediaproviderresponse.md b/docs/sdk/models/operations/deletemediaproviderresponse.md deleted file mode 100644 index e6ba81da..00000000 --- a/docs/sdk/models/operations/deletemediaproviderresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# DeleteMediaProviderResponse - -## Example Usage - -```typescript -import { DeleteMediaProviderResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: DeleteMediaProviderResponse = { - contentType: "", - statusCode: 796329, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletemetadataitemresponse.md b/docs/sdk/models/operations/deletemetadataitemresponse.md deleted file mode 100644 index b160c71b..00000000 --- a/docs/sdk/models/operations/deletemetadataitemresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# DeleteMetadataItemResponse - -## Example Usage - -```typescript -import { DeleteMetadataItemResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: DeleteMetadataItemResponse = { - contentType: "", - statusCode: 845904, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/deleteplaylistitemresponse.md b/docs/sdk/models/operations/deleteplaylistitemresponse.md deleted file mode 100644 index 18cfbd04..00000000 --- a/docs/sdk/models/operations/deleteplaylistitemresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# DeletePlaylistItemResponse - -## Example Usage - -```typescript -import { DeletePlaylistItemResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: DeletePlaylistItemResponse = { - contentType: "", - statusCode: 744454, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithPlaylistMetadata` | [shared.MediaContainerWithPlaylistMetadata](../../../sdk/models/shared/mediacontainerwithplaylistmetadata.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/deleteplaylistresponse.md b/docs/sdk/models/operations/deleteplaylistresponse.md deleted file mode 100644 index 17f9f851..00000000 --- a/docs/sdk/models/operations/deleteplaylistresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# DeletePlaylistResponse - -## Example Usage - -```typescript -import { DeletePlaylistResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: DeletePlaylistResponse = { - contentType: "", - statusCode: 447001, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/deleteplayqueueitemresponse.md b/docs/sdk/models/operations/deleteplayqueueitemresponse.md deleted file mode 100644 index 5ac52c19..00000000 --- a/docs/sdk/models/operations/deleteplayqueueitemresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# DeletePlayQueueItemResponse - -## Example Usage - -```typescript -import { DeletePlayQueueItemResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: DeletePlayQueueItemResponse = { - contentType: "", - statusCode: 71351, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithPlaylistMetadata` | [shared.MediaContainerWithPlaylistMetadata](../../../sdk/models/shared/mediacontainerwithplaylistmetadata.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletestreamresponse.md b/docs/sdk/models/operations/deletestreamresponse.md deleted file mode 100644 index 4e7d9d69..00000000 --- a/docs/sdk/models/operations/deletestreamresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# DeleteStreamResponse - -## Example Usage - -```typescript -import { DeleteStreamResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: DeleteStreamResponse = { - contentType: "", - statusCode: 541286, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletesubscriptionresponse.md b/docs/sdk/models/operations/deletesubscriptionresponse.md deleted file mode 100644 index 6d0b6aad..00000000 --- a/docs/sdk/models/operations/deletesubscriptionresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# DeleteSubscriptionResponse - -## Example Usage - -```typescript -import { DeleteSubscriptionResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: DeleteSubscriptionResponse = { - contentType: "", - statusCode: 189513, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/detectadsresponse.md b/docs/sdk/models/operations/detectadsresponse.md deleted file mode 100644 index cc39affe..00000000 --- a/docs/sdk/models/operations/detectadsresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# DetectAdsResponse - -## Example Usage - -```typescript -import { DetectAdsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: DetectAdsResponse = { - contentType: "", - statusCode: 804378, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/detectcreditsresponse.md b/docs/sdk/models/operations/detectcreditsresponse.md deleted file mode 100644 index c2537aa7..00000000 --- a/docs/sdk/models/operations/detectcreditsresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# DetectCreditsResponse - -## Example Usage - -```typescript -import { DetectCreditsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: DetectCreditsResponse = { - contentType: "", - statusCode: 214789, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/detectintrosresponse.md b/docs/sdk/models/operations/detectintrosresponse.md deleted file mode 100644 index 05730e68..00000000 --- a/docs/sdk/models/operations/detectintrosresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# DetectIntrosResponse - -## Example Usage - -```typescript -import { DetectIntrosResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: DetectIntrosResponse = { - contentType: "", - statusCode: 511745, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/detectvoiceactivityresponse.md b/docs/sdk/models/operations/detectvoiceactivityresponse.md deleted file mode 100644 index 6ffb8729..00000000 --- a/docs/sdk/models/operations/detectvoiceactivityresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# DetectVoiceActivityResponse - -## Example Usage - -```typescript -import { DetectVoiceActivityResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: DetectVoiceActivityResponse = { - contentType: "", - statusCode: 825759, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/discoverdevicesresponse.md b/docs/sdk/models/operations/discoverdevicesresponse.md deleted file mode 100644 index 4c6678c7..00000000 --- a/docs/sdk/models/operations/discoverdevicesresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# DiscoverDevicesResponse - -## Example Usage - -```typescript -import { DiscoverDevicesResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: DiscoverDevicesResponse = { - contentType: "", - statusCode: 232423, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithDevice` | [shared.MediaContainerWithDevice](../../../sdk/models/shared/mediacontainerwithdevice.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/editmarkerrequest.md b/docs/sdk/models/operations/editmarkerrequest.md deleted file mode 100644 index b85c612c..00000000 --- a/docs/sdk/models/operations/editmarkerrequest.md +++ /dev/null @@ -1,37 +0,0 @@ -# EditMarkerRequest - -## Example Usage - -```typescript -import { EditMarkerRequest } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: EditMarkerRequest = { - ids: "", - marker: "", - type: 59357, - startTimeOffset: 421778, - attributes: {}, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | -| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `deviceName` | *string* | :heavy_minus_sign: | 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 | | -| `startTimeOffset` | *number* | :heavy_check_mark: | The start time of the marker | | -| `endTimeOffset` | *number* | :heavy_minus_sign: | The end time of the marker | | -| `attributes` | [operations.EditMarkerAttributes](../../../sdk/models/operations/editmarkerattributes.md) | :heavy_minus_sign: | The attributes to assign to this marker | {
"title": "My favorite spot"
} | \ No newline at end of file diff --git a/docs/sdk/models/operations/editmarkerresponse.md b/docs/sdk/models/operations/editmarkerresponse.md deleted file mode 100644 index 317dd052..00000000 --- a/docs/sdk/models/operations/editmarkerresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# EditMarkerResponse - -## Example Usage - -```typescript -import { EditMarkerResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: EditMarkerResponse = { - contentType: "", - statusCode: 820143, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `postResponses200` | [shared.PostResponses200](../../../sdk/models/shared/postresponses200.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/editmetadataitemrequest.md b/docs/sdk/models/operations/editmetadataitemrequest.md deleted file mode 100644 index 1bf0523f..00000000 --- a/docs/sdk/models/operations/editmetadataitemrequest.md +++ /dev/null @@ -1,32 +0,0 @@ -# EditMetadataItemRequest - -## Example Usage - -```typescript -import { EditMetadataItemRequest } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: EditMetadataItemRequest = { - ids: [ - "", - "", - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | -| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `deviceName` | *string* | :heavy_minus_sign: | 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/editmetadataitemresponse.md b/docs/sdk/models/operations/editmetadataitemresponse.md deleted file mode 100644 index 3d32a0ab..00000000 --- a/docs/sdk/models/operations/editmetadataitemresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# EditMetadataItemResponse - -## Example Usage - -```typescript -import { EditMetadataItemResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: EditMetadataItemResponse = { - contentType: "", - statusCode: 64104, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/editsectionrequest.md b/docs/sdk/models/operations/editsectionrequest.md deleted file mode 100644 index 7091512b..00000000 --- a/docs/sdk/models/operations/editsectionrequest.md +++ /dev/null @@ -1,41 +0,0 @@ -# EditSectionRequest - -## Example Usage - -```typescript -import { EditSectionRequest } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: EditSectionRequest = { - sectionId: "", - agent: "", - locations: [ - "O:\fatboy\\Media\\Ripped\\Music", - "O:\fatboy\\Media\\My Music", - ], - prefs: {}, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | -| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `deviceName` | *string* | :heavy_minus_sign: | 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 | | -| `agent` | *string* | :heavy_check_mark: | The agent this section should use for metadata | | -| `metadataAgentProviderGroupId` | *string* | :heavy_minus_sign: | The agent group id for this section | | -| `language` | *string* | :heavy_minus_sign: | The language of this section | | -| `locations` | *string*[] | :heavy_minus_sign: | The locations on disk to add to this section | [
"O:\\fatboy\\Media\\Ripped\\Music",
"O:\\fatboy\\Media\\My Music"
] | -| `prefs` | [operations.EditSectionPrefs](../../../sdk/models/operations/editsectionprefs.md) | :heavy_minus_sign: | The preferences for this section | {
"collectionMode": 2,
"hidden": 0
} | \ No newline at end of file diff --git a/docs/sdk/models/operations/editsectionresponse.md b/docs/sdk/models/operations/editsectionresponse.md deleted file mode 100644 index b9dcdad7..00000000 --- a/docs/sdk/models/operations/editsectionresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# EditSectionResponse - -## Example Usage - -```typescript -import { EditSectionResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: EditSectionResponse = { - contentType: "", - statusCode: 330143, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/editsubscriptionpreferencesrequest.md b/docs/sdk/models/operations/editsubscriptionpreferencesrequest.md deleted file mode 100644 index 7bf79ba3..00000000 --- a/docs/sdk/models/operations/editsubscriptionpreferencesrequest.md +++ /dev/null @@ -1,30 +0,0 @@ -# EditSubscriptionPreferencesRequest - -## Example Usage - -```typescript -import { EditSubscriptionPreferencesRequest } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: EditSubscriptionPreferencesRequest = { - subscriptionId: 358377, - prefs: {}, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | -| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `deviceName` | *string* | :heavy_minus_sign: | 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/editsubscriptionpreferencesresponse.md b/docs/sdk/models/operations/editsubscriptionpreferencesresponse.md deleted file mode 100644 index bccbdca2..00000000 --- a/docs/sdk/models/operations/editsubscriptionpreferencesresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# EditSubscriptionPreferencesResponse - -## Example Usage - -```typescript -import { EditSubscriptionPreferencesResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: EditSubscriptionPreferencesResponse = { - contentType: "", - statusCode: 150055, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithSubscription` | [shared.MediaContainerWithSubscription](../../../sdk/models/shared/mediacontainerwithsubscription.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/emptytrashresponse.md b/docs/sdk/models/operations/emptytrashresponse.md deleted file mode 100644 index fbfb0645..00000000 --- a/docs/sdk/models/operations/emptytrashresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# EmptyTrashResponse - -## Example Usage - -```typescript -import { EmptyTrashResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: EmptyTrashResponse = { - contentType: "", - statusCode: 839930, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/enablepapertrailresponse.md b/docs/sdk/models/operations/enablepapertrailresponse.md deleted file mode 100644 index 5c8315cb..00000000 --- a/docs/sdk/models/operations/enablepapertrailresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# EnablePapertrailResponse - -## Example Usage - -```typescript -import { EnablePapertrailResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: EnablePapertrailResponse = { - contentType: "", - statusCode: 813966, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/feature.md b/docs/sdk/models/operations/feature.md deleted file mode 100644 index 8b2bf0b6..00000000 --- a/docs/sdk/models/operations/feature.md +++ /dev/null @@ -1,17 +0,0 @@ -# Feature - -## Example Usage - -```typescript -import { Feature } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: Feature = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | -| `directory` | [shared.Directory](../../../sdk/models/shared/directory.md)[] | :heavy_minus_sign: | N/A | -| `key` | *string* | :heavy_minus_sign: | N/A | -| `type` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/flavor.md b/docs/sdk/models/operations/flavor.md deleted file mode 100644 index a3affb8c..00000000 --- a/docs/sdk/models/operations/flavor.md +++ /dev/null @@ -1,22 +0,0 @@ -# Flavor - -- `0`: The country is divided into regions, and following the key will lead to a list of regions. -- `1`: The county is divided by postal codes, and an example code is returned in `example`. -- `2`: The country has a single postal code, returned in `example`. - - -## Example Usage - -```typescript -import { Flavor } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: Flavor = Flavor.Two; -``` - -## Values - -| Name | Value | -| ------ | ------ | -| `Zero` | 0 | -| `One` | 1 | -| `Two` | 2 | \ No newline at end of file diff --git a/docs/sdk/models/operations/generatethumbsresponse.md b/docs/sdk/models/operations/generatethumbsresponse.md deleted file mode 100644 index ede3b039..00000000 --- a/docs/sdk/models/operations/generatethumbsresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# GenerateThumbsResponse - -## Example Usage - -```typescript -import { GenerateThumbsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GenerateThumbsResponse = { - contentType: "", - statusCode: 196763, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/getalbumsresponse.md b/docs/sdk/models/operations/getalbumsresponse.md deleted file mode 100644 index b60dab83..00000000 --- a/docs/sdk/models/operations/getalbumsresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetAlbumsResponse - -## Example Usage - -```typescript -import { GetAlbumsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetAlbumsResponse = { - contentType: "", - statusCode: 533215, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithMetadata` | [shared.MediaContainerWithMetadata](../../../sdk/models/shared/mediacontainerwithmetadata.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getallhubsresponse.md b/docs/sdk/models/operations/getallhubsresponse.md deleted file mode 100644 index 789cf073..00000000 --- a/docs/sdk/models/operations/getallhubsresponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# GetAllHubsResponse - -## Example Usage - -```typescript -import { GetAllHubsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetAllHubsResponse = { - contentType: "", - statusCode: 327651, - headers: { - "key": [ - "", - "", - ], - "key1": [ - "", - "", - "", - ], - "key2": [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetAllHubsResponseBody](../../../sdk/models/operations/getallhubsresponsebody.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getallitemleavesresponse.md b/docs/sdk/models/operations/getallitemleavesresponse.md deleted file mode 100644 index 49a6608b..00000000 --- a/docs/sdk/models/operations/getallitemleavesresponse.md +++ /dev/null @@ -1,25 +0,0 @@ -# GetAllItemLeavesResponse - -## Example Usage - -```typescript -import { GetAllItemLeavesResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetAllItemLeavesResponse = { - contentType: "", - statusCode: 340960, - headers: { - "key": [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithMetadata` | [shared.MediaContainerWithMetadata](../../../sdk/models/shared/mediacontainerwithmetadata.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getalllanguagesresponse.md b/docs/sdk/models/operations/getalllanguagesresponse.md deleted file mode 100644 index ea2e0d8b..00000000 --- a/docs/sdk/models/operations/getalllanguagesresponse.md +++ /dev/null @@ -1,31 +0,0 @@ -# GetAllLanguagesResponse - -## Example Usage - -```typescript -import { GetAllLanguagesResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetAllLanguagesResponse = { - contentType: "", - statusCode: 564027, - headers: { - "key": [ - "", - ], - "key1": [ - "", - "", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetAllLanguagesResponseBody](../../../sdk/models/operations/getalllanguagesresponsebody.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getalllanguagesresponsebody.md b/docs/sdk/models/operations/getalllanguagesresponsebody.md deleted file mode 100644 index 858bf64f..00000000 --- a/docs/sdk/models/operations/getalllanguagesresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetAllLanguagesResponseBody - -OK - -## Example Usage - -```typescript -import { GetAllLanguagesResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetAllLanguagesResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.GetAllLanguagesMediaContainer](../../../sdk/models/operations/getalllanguagesmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getallleavesresponse.md b/docs/sdk/models/operations/getallleavesresponse.md deleted file mode 100644 index 29b3a593..00000000 --- a/docs/sdk/models/operations/getallleavesresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetAllLeavesResponse - -## Example Usage - -```typescript -import { GetAllLeavesResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetAllLeavesResponse = { - contentType: "", - statusCode: 424866, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithMetadata` | [shared.MediaContainerWithMetadata](../../../sdk/models/shared/mediacontainerwithmetadata.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getallpreferencesresponse.md b/docs/sdk/models/operations/getallpreferencesresponse.md deleted file mode 100644 index 1c1b9eec..00000000 --- a/docs/sdk/models/operations/getallpreferencesresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetAllPreferencesResponse - -## Example Usage - -```typescript -import { GetAllPreferencesResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetAllPreferencesResponse = { - contentType: "", - statusCode: 203958, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithSettings` | [shared.MediaContainerWithSettings](../../../sdk/models/shared/mediacontainerwithsettings.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getallsubscriptionsresponse.md b/docs/sdk/models/operations/getallsubscriptionsresponse.md deleted file mode 100644 index 635e209f..00000000 --- a/docs/sdk/models/operations/getallsubscriptionsresponse.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetAllSubscriptionsResponse - -## Example Usage - -```typescript -import { GetAllSubscriptionsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetAllSubscriptionsResponse = { - contentType: "", - statusCode: 756579, - headers: { - "key": [ - "", - "", - ], - "key1": [ - "", - "", - ], - "key2": [ - "", - "", - "", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithSubscription` | [shared.MediaContainerWithSubscription](../../../sdk/models/shared/mediacontainerwithsubscription.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getartsresponse.md b/docs/sdk/models/operations/getartsresponse.md deleted file mode 100644 index 593212b3..00000000 --- a/docs/sdk/models/operations/getartsresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetArtsResponse - -## Example Usage - -```typescript -import { GetArtsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetArtsResponse = { - contentType: "", - statusCode: 301970, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithArtwork` | [shared.MediaContainerWithArtwork](../../../sdk/models/shared/mediacontainerwithartwork.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getaugmentationstatusresponse.md b/docs/sdk/models/operations/getaugmentationstatusresponse.md deleted file mode 100644 index 4349a976..00000000 --- a/docs/sdk/models/operations/getaugmentationstatusresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# GetAugmentationStatusResponse - -## Example Usage - -```typescript -import { GetAugmentationStatusResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetAugmentationStatusResponse = { - contentType: "", - statusCode: 436414, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/getavailablegrabbersresponse.md b/docs/sdk/models/operations/getavailablegrabbersresponse.md deleted file mode 100644 index b4770b17..00000000 --- a/docs/sdk/models/operations/getavailablegrabbersresponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# GetAvailableGrabbersResponse - -## Example Usage - -```typescript -import { GetAvailableGrabbersResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetAvailableGrabbersResponse = { - contentType: "", - statusCode: 331735, - headers: { - "key": [ - "", - "", - "", - ], - "key1": [ - "", - "", - "", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetAvailableGrabbersResponseBody](../../../sdk/models/operations/getavailablegrabbersresponsebody.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getavailablesortsresponse.md b/docs/sdk/models/operations/getavailablesortsresponse.md deleted file mode 100644 index 173002b0..00000000 --- a/docs/sdk/models/operations/getavailablesortsresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetAvailableSortsResponse - -## Example Usage - -```typescript -import { GetAvailableSortsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetAvailableSortsResponse = { - contentType: "", - statusCode: 425270, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetAvailableSortsResponseBody](../../../sdk/models/operations/getavailablesortsresponsebody.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getavailablesortsresponsebody.md b/docs/sdk/models/operations/getavailablesortsresponsebody.md deleted file mode 100644 index 5e59e2a2..00000000 --- a/docs/sdk/models/operations/getavailablesortsresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetAvailableSortsResponseBody - -OK - -## Example Usage - -```typescript -import { GetAvailableSortsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetAvailableSortsResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.GetAvailableSortsMediaContainer](../../../sdk/models/operations/getavailablesortsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getbackgroundtasksresponse.md b/docs/sdk/models/operations/getbackgroundtasksresponse.md deleted file mode 100644 index d4d4e1a1..00000000 --- a/docs/sdk/models/operations/getbackgroundtasksresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetBackgroundTasksResponse - -## Example Usage - -```typescript -import { GetBackgroundTasksResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetBackgroundTasksResponse = { - contentType: "", - statusCode: 480574, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetBackgroundTasksResponseBody](../../../sdk/models/operations/getbackgroundtasksresponsebody.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getbackgroundtasksresponsebody.md b/docs/sdk/models/operations/getbackgroundtasksresponsebody.md deleted file mode 100644 index 0dd449f0..00000000 --- a/docs/sdk/models/operations/getbackgroundtasksresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetBackgroundTasksResponseBody - -OK - -## Example Usage - -```typescript -import { GetBackgroundTasksResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetBackgroundTasksResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.GetBackgroundTasksMediaContainer](../../../sdk/models/operations/getbackgroundtasksmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcategoriesresponse.md b/docs/sdk/models/operations/getcategoriesresponse.md deleted file mode 100644 index b9452708..00000000 --- a/docs/sdk/models/operations/getcategoriesresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetCategoriesResponse - -## Example Usage - -```typescript -import { GetCategoriesResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetCategoriesResponse = { - contentType: "", - statusCode: 950721, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithArtwork` | [shared.MediaContainerWithArtwork](../../../sdk/models/shared/mediacontainerwithartwork.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getchannelsresponse.md b/docs/sdk/models/operations/getchannelsresponse.md deleted file mode 100644 index 2796d495..00000000 --- a/docs/sdk/models/operations/getchannelsresponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# GetChannelsResponse - -## Example Usage - -```typescript -import { GetChannelsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetChannelsResponse = { - contentType: "", - statusCode: 118773, - headers: { - "key": [], - "key1": [ - "", - "", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetChannelsResponseBody](../../../sdk/models/operations/getchannelsresponsebody.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getchannelsresponsebody.md b/docs/sdk/models/operations/getchannelsresponsebody.md deleted file mode 100644 index 879e69f5..00000000 --- a/docs/sdk/models/operations/getchannelsresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetChannelsResponseBody - -OK - -## Example Usage - -```typescript -import { GetChannelsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetChannelsResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.GetChannelsMediaContainer](../../../sdk/models/operations/getchannelsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getchapterimageresponse.md b/docs/sdk/models/operations/getchapterimageresponse.md deleted file mode 100644 index 3966462f..00000000 --- a/docs/sdk/models/operations/getchapterimageresponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetChapterImageResponse - -## Example Usage - -```typescript -import { GetChapterImageResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `responseStream` | *ReadableStream* | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getclusterresponse.md b/docs/sdk/models/operations/getclusterresponse.md deleted file mode 100644 index ddc0dc65..00000000 --- a/docs/sdk/models/operations/getclusterresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetClusterResponse - -## Example Usage - -```typescript -import { GetClusterResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetClusterResponse = { - contentType: "", - statusCode: 215011, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithArtwork` | [shared.MediaContainerWithArtwork](../../../sdk/models/shared/mediacontainerwithartwork.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcollectionimageresponse.md b/docs/sdk/models/operations/getcollectionimageresponse.md deleted file mode 100644 index e08b7c67..00000000 --- a/docs/sdk/models/operations/getcollectionimageresponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetCollectionImageResponse - -## Example Usage - -```typescript -import { GetCollectionImageResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `responseStream` | *ReadableStream* | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcollectionitemsresponse.md b/docs/sdk/models/operations/getcollectionitemsresponse.md deleted file mode 100644 index c57dd53d..00000000 --- a/docs/sdk/models/operations/getcollectionitemsresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetCollectionItemsResponse - -## Example Usage - -```typescript -import { GetCollectionItemsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetCollectionItemsResponse = { - contentType: "", - statusCode: 444329, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithMetadata` | [shared.MediaContainerWithMetadata](../../../sdk/models/shared/mediacontainerwithmetadata.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcollectionsresponse.md b/docs/sdk/models/operations/getcollectionsresponse.md deleted file mode 100644 index 80cb7106..00000000 --- a/docs/sdk/models/operations/getcollectionsresponse.md +++ /dev/null @@ -1,38 +0,0 @@ -# GetCollectionsResponse - -## Example Usage - -```typescript -import { GetCollectionsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetCollectionsResponse = { - contentType: "", - statusCode: 652615, - headers: { - "key": [ - "", - "", - "", - ], - "key1": [ - "", - "", - ], - "key2": [ - "", - "", - "", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithMetadata` | [shared.MediaContainerWithMetadata](../../../sdk/models/shared/mediacontainerwithmetadata.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcolorsresponse.md b/docs/sdk/models/operations/getcolorsresponse.md deleted file mode 100644 index d2189ea1..00000000 --- a/docs/sdk/models/operations/getcolorsresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetColorsResponse - -## Example Usage - -```typescript -import { GetColorsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetColorsResponse = { - contentType: "", - statusCode: 513090, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetColorsResponseBody](../../../sdk/models/operations/getcolorsresponsebody.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcolorsresponsebody.md b/docs/sdk/models/operations/getcolorsresponsebody.md deleted file mode 100644 index bf7dffa2..00000000 --- a/docs/sdk/models/operations/getcolorsresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetColorsResponseBody - -OK - -## Example Usage - -```typescript -import { GetColorsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetColorsResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.GetColorsMediaContainer](../../../sdk/models/operations/getcolorsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcommonresponse.md b/docs/sdk/models/operations/getcommonresponse.md deleted file mode 100644 index 13c72621..00000000 --- a/docs/sdk/models/operations/getcommonresponse.md +++ /dev/null @@ -1,35 +0,0 @@ -# GetCommonResponse - -## Example Usage - -```typescript -import { GetCommonResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetCommonResponse = { - contentType: "", - statusCode: 492616, - headers: { - "key": [ - "", - "", - "", - ], - "key1": [], - "key2": [ - "", - "", - "", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithMetadata` | [shared.MediaContainerWithMetadata](../../../sdk/models/shared/mediacontainerwithmetadata.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcontinuewatchingresponse.md b/docs/sdk/models/operations/getcontinuewatchingresponse.md deleted file mode 100644 index 4b14ac31..00000000 --- a/docs/sdk/models/operations/getcontinuewatchingresponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# GetContinueWatchingResponse - -## Example Usage - -```typescript -import { GetContinueWatchingResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetContinueWatchingResponse = { - contentType: "", - statusCode: 803731, - headers: { - "key": [ - "", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetContinueWatchingResponseBody](../../../sdk/models/operations/getcontinuewatchingresponsebody.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcountrieslineupsresponse.md b/docs/sdk/models/operations/getcountrieslineupsresponse.md deleted file mode 100644 index 8c08307b..00000000 --- a/docs/sdk/models/operations/getcountrieslineupsresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetCountriesLineupsResponse - -## Example Usage - -```typescript -import { GetCountriesLineupsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetCountriesLineupsResponse = { - contentType: "", - statusCode: 647931, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithLineup` | [shared.MediaContainerWithLineup](../../../sdk/models/shared/mediacontainerwithlineup.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcountriesresponse.md b/docs/sdk/models/operations/getcountriesresponse.md deleted file mode 100644 index 84124b51..00000000 --- a/docs/sdk/models/operations/getcountriesresponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# GetCountriesResponse - -## Example Usage - -```typescript -import { GetCountriesResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetCountriesResponse = { - contentType: "", - statusCode: 474861, - headers: { - "key": [ - "", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetCountriesResponseBody](../../../sdk/models/operations/getcountriesresponsebody.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcountriesresponsebody.md b/docs/sdk/models/operations/getcountriesresponsebody.md deleted file mode 100644 index 1edbdabd..00000000 --- a/docs/sdk/models/operations/getcountriesresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetCountriesResponseBody - -OK - -## Example Usage - -```typescript -import { GetCountriesResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetCountriesResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.GetCountriesMediaContainer](../../../sdk/models/operations/getcountriesmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcountryregionsresponse.md b/docs/sdk/models/operations/getcountryregionsresponse.md deleted file mode 100644 index 1af725d0..00000000 --- a/docs/sdk/models/operations/getcountryregionsresponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetCountryRegionsResponse - -## Example Usage - -```typescript -import { GetCountryRegionsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetCountryRegionsResponse = { - contentType: "", - statusCode: 68860, - headers: { - "key": [ - "", - "", - "", - ], - "key1": [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetCountryRegionsResponseBody](../../../sdk/models/operations/getcountryregionsresponsebody.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcountryregionsresponsebody.md b/docs/sdk/models/operations/getcountryregionsresponsebody.md deleted file mode 100644 index 0522c5de..00000000 --- a/docs/sdk/models/operations/getcountryregionsresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetCountryRegionsResponseBody - -OK - -## Example Usage - -```typescript -import { GetCountryRegionsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetCountryRegionsResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.GetCountryRegionsMediaContainer](../../../sdk/models/operations/getcountryregionsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdevicedetailsresponse.md b/docs/sdk/models/operations/getdevicedetailsresponse.md deleted file mode 100644 index 7fedd41c..00000000 --- a/docs/sdk/models/operations/getdevicedetailsresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetDeviceDetailsResponse - -## Example Usage - -```typescript -import { GetDeviceDetailsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetDeviceDetailsResponse = { - contentType: "", - statusCode: 736754, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithDevice` | [shared.MediaContainerWithDevice](../../../sdk/models/shared/mediacontainerwithdevice.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdeviceschannelsresponse.md b/docs/sdk/models/operations/getdeviceschannelsresponse.md deleted file mode 100644 index 92452e95..00000000 --- a/docs/sdk/models/operations/getdeviceschannelsresponse.md +++ /dev/null @@ -1,23 +0,0 @@ -# GetDevicesChannelsResponse - -## Example Usage - -```typescript -import { GetDevicesChannelsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetDevicesChannelsResponse = { - contentType: "", - statusCode: 63316, - headers: {}, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetDevicesChannelsResponseBody](../../../sdk/models/operations/getdeviceschannelsresponsebody.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdeviceschannelsresponsebody.md b/docs/sdk/models/operations/getdeviceschannelsresponsebody.md deleted file mode 100644 index 3c208d1b..00000000 --- a/docs/sdk/models/operations/getdeviceschannelsresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetDevicesChannelsResponseBody - -OK - -## Example Usage - -```typescript -import { GetDevicesChannelsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetDevicesChannelsResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.GetDevicesChannelsMediaContainer](../../../sdk/models/operations/getdeviceschannelsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdownloadqueueitemsresponse.md b/docs/sdk/models/operations/getdownloadqueueitemsresponse.md deleted file mode 100644 index 038d2bd2..00000000 --- a/docs/sdk/models/operations/getdownloadqueueitemsresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetDownloadQueueItemsResponse - -## Example Usage - -```typescript -import { GetDownloadQueueItemsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetDownloadQueueItemsResponse = { - contentType: "", - statusCode: 945638, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetDownloadQueueItemsResponseBody](../../../sdk/models/operations/getdownloadqueueitemsresponsebody.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdownloadqueueitemsresponsebody.md b/docs/sdk/models/operations/getdownloadqueueitemsresponsebody.md deleted file mode 100644 index 01a01b53..00000000 --- a/docs/sdk/models/operations/getdownloadqueueitemsresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetDownloadQueueItemsResponseBody - -OK - -## Example Usage - -```typescript -import { GetDownloadQueueItemsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetDownloadQueueItemsResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.GetDownloadQueueItemsMediaContainer](../../../sdk/models/operations/getdownloadqueueitemsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdownloadqueueitemsstatus.md b/docs/sdk/models/operations/getdownloadqueueitemsstatus.md deleted file mode 100644 index 82cbf72d..00000000 --- a/docs/sdk/models/operations/getdownloadqueueitemsstatus.md +++ /dev/null @@ -1,29 +0,0 @@ -# GetDownloadQueueItemsStatus - -The state of the item: - - deciding: The item decision is pending - - waiting: The item is waiting for transcode - - processing: The item is being transcoded - - available: The item is available for download - - error: The item encountered an error in the decision or transcode - - expired: The transcoded item has timed out and is no longer available - - -## Example Usage - -```typescript -import { GetDownloadQueueItemsStatus } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetDownloadQueueItemsStatus = GetDownloadQueueItemsStatus.Processing; -``` - -## Values - -| Name | Value | -| ------------ | ------------ | -| `Deciding` | deciding | -| `Waiting` | waiting | -| `Processing` | processing | -| `Available` | available | -| `Error` | error | -| `Expired` | expired | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdownloadqueuemediaresponse.md b/docs/sdk/models/operations/getdownloadqueuemediaresponse.md deleted file mode 100644 index fc37dffd..00000000 --- a/docs/sdk/models/operations/getdownloadqueuemediaresponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# GetDownloadQueueMediaResponse - -## Example Usage - -```typescript -import { GetDownloadQueueMediaResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetDownloadQueueMediaResponse = { - contentType: "", - statusCode: 288985, - headers: { - "key": [ - "", - "", - ], - "key1": [ - "", - ], - "key2": [ - "", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdownloadqueueresponse.md b/docs/sdk/models/operations/getdownloadqueueresponse.md deleted file mode 100644 index 34c38764..00000000 --- a/docs/sdk/models/operations/getdownloadqueueresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetDownloadQueueResponse - -## Example Usage - -```typescript -import { GetDownloadQueueResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetDownloadQueueResponse = { - contentType: "", - statusCode: 349044, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetDownloadQueueResponseBody](../../../sdk/models/operations/getdownloadqueueresponsebody.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdownloadqueueresponsebody.md b/docs/sdk/models/operations/getdownloadqueueresponsebody.md deleted file mode 100644 index 748918a5..00000000 --- a/docs/sdk/models/operations/getdownloadqueueresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetDownloadQueueResponseBody - -OK - -## Example Usage - -```typescript -import { GetDownloadQueueResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetDownloadQueueResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.GetDownloadQueueMediaContainer](../../../sdk/models/operations/getdownloadqueuemediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdownloadqueuestatus.md b/docs/sdk/models/operations/getdownloadqueuestatus.md deleted file mode 100644 index 23b02f8e..00000000 --- a/docs/sdk/models/operations/getdownloadqueuestatus.md +++ /dev/null @@ -1,27 +0,0 @@ -# GetDownloadQueueStatus - -The state of this queue - - deciding: At least one item is still being decided - - waiting: At least one item is waiting for transcode and none are currently transcoding - - processing: At least one item is being transcoded - - done: All items are available (or potentially expired) - - error: At least one item has encountered an error - - -## Example Usage - -```typescript -import { GetDownloadQueueStatus } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetDownloadQueueStatus = GetDownloadQueueStatus.Done; -``` - -## Values - -| Name | Value | -| ------------ | ------------ | -| `Deciding` | deciding | -| `Waiting` | waiting | -| `Processing` | processing | -| `Done` | done | -| `Error` | error | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdvrdvr.md b/docs/sdk/models/operations/getdvrdvr.md deleted file mode 100644 index 9631bd92..00000000 --- a/docs/sdk/models/operations/getdvrdvr.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetDVRDVR - -## Example Usage - -```typescript -import { GetDVRDVR } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetDVRDVR = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `device` | [shared.Device](../../../sdk/models/shared/device.md)[] | :heavy_minus_sign: | N/A | -| `key` | *string* | :heavy_minus_sign: | N/A | -| `language` | *string* | :heavy_minus_sign: | N/A | -| `lineup` | *string* | :heavy_minus_sign: | N/A | -| `uuid` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdvrmediacontainer.md b/docs/sdk/models/operations/getdvrmediacontainer.md deleted file mode 100644 index 97139b02..00000000 --- a/docs/sdk/models/operations/getdvrmediacontainer.md +++ /dev/null @@ -1,16 +0,0 @@ -# GetDVRMediaContainer - -## Example Usage - -```typescript -import { GetDVRMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetDVRMediaContainer = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.GetDVRMediaContainerMediaContainer](../../../sdk/models/operations/getdvrmediacontainermediacontainer.md) | :heavy_minus_sign: | N/A | -| `dvr` | [operations.GetDVRDVR](../../../sdk/models/operations/getdvrdvr.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdvrresponse.md b/docs/sdk/models/operations/getdvrresponse.md deleted file mode 100644 index 3506e533..00000000 --- a/docs/sdk/models/operations/getdvrresponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# GetDVRResponse - -## Example Usage - -```typescript -import { GetDVRResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetDVRResponse = { - contentType: "", - statusCode: 656982, - headers: { - "key": [ - "", - "", - "", - ], - "key1": [ - "", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetDVRResponseBody](../../../sdk/models/operations/getdvrresponsebody.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdvrresponsebody.md b/docs/sdk/models/operations/getdvrresponsebody.md deleted file mode 100644 index 165de4bf..00000000 --- a/docs/sdk/models/operations/getdvrresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetDVRResponseBody - -OK - -## Example Usage - -```typescript -import { GetDVRResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetDVRResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.GetDVRMediaContainer](../../../sdk/models/operations/getdvrmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getextrasresponse.md b/docs/sdk/models/operations/getextrasresponse.md deleted file mode 100644 index 15956623..00000000 --- a/docs/sdk/models/operations/getextrasresponse.md +++ /dev/null @@ -1,35 +0,0 @@ -# GetExtrasResponse - -## Example Usage - -```typescript -import { GetExtrasResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetExtrasResponse = { - contentType: "", - statusCode: 157075, - headers: { - "key": [], - "key1": [ - "", - "", - "", - ], - "key2": [ - "", - "", - "", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithMetadata` | [shared.MediaContainerWithMetadata](../../../sdk/models/shared/mediacontainerwithmetadata.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getfileresponse.md b/docs/sdk/models/operations/getfileresponse.md deleted file mode 100644 index 87c6ab53..00000000 --- a/docs/sdk/models/operations/getfileresponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetFileResponse - -## Example Usage - -```typescript -import { GetFileResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredAudioMpeg3ResponseStream` | *ReadableStream* | :heavy_minus_sign: | OK | -| `twoHundredImageJpegResponseStream` | *ReadableStream* | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getfirstcharactersresponse.md b/docs/sdk/models/operations/getfirstcharactersresponse.md deleted file mode 100644 index f58f3472..00000000 --- a/docs/sdk/models/operations/getfirstcharactersresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetFirstCharactersResponse - -## Example Usage - -```typescript -import { GetFirstCharactersResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetFirstCharactersResponse = { - contentType: "", - statusCode: 702136, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetFirstCharactersResponseBody](../../../sdk/models/operations/getfirstcharactersresponsebody.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getfirstcharactersresponsebody.md b/docs/sdk/models/operations/getfirstcharactersresponsebody.md deleted file mode 100644 index 3df9bd46..00000000 --- a/docs/sdk/models/operations/getfirstcharactersresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetFirstCharactersResponseBody - -OK - -## Example Usage - -```typescript -import { GetFirstCharactersResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetFirstCharactersResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.GetFirstCharactersMediaContainer](../../../sdk/models/operations/getfirstcharactersmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getfoldersresponse.md b/docs/sdk/models/operations/getfoldersresponse.md deleted file mode 100644 index 250cb6ea..00000000 --- a/docs/sdk/models/operations/getfoldersresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetFoldersResponse - -## Example Usage - -```typescript -import { GetFoldersResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetFoldersResponse = { - contentType: "", - statusCode: 258459, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetFoldersResponseBody](../../../sdk/models/operations/getfoldersresponsebody.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getfoldersresponsebody.md b/docs/sdk/models/operations/getfoldersresponsebody.md deleted file mode 100644 index ce65a0d6..00000000 --- a/docs/sdk/models/operations/getfoldersresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetFoldersResponseBody - -OK - -## Example Usage - -```typescript -import { GetFoldersResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetFoldersResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.GetFoldersMediaContainer](../../../sdk/models/operations/getfoldersmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/gethistoryitemresponse.md b/docs/sdk/models/operations/gethistoryitemresponse.md deleted file mode 100644 index 349a77a3..00000000 --- a/docs/sdk/models/operations/gethistoryitemresponse.md +++ /dev/null @@ -1,25 +0,0 @@ -# GetHistoryItemResponse - -## Example Usage - -```typescript -import { GetHistoryItemResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetHistoryItemResponse = { - contentType: "", - statusCode: 160300, - headers: { - "key": [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `historyAllGetResponses200` | [shared.HistoryAllGetResponses200](../../../sdk/models/shared/historyallgetresponses200.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/gethubitemsresponse.md b/docs/sdk/models/operations/gethubitemsresponse.md deleted file mode 100644 index 68be6588..00000000 --- a/docs/sdk/models/operations/gethubitemsresponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# GetHubItemsResponse - -## Example Usage - -```typescript -import { GetHubItemsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetHubItemsResponse = { - contentType: "", - statusCode: 496673, - headers: { - "key": [], - "key1": [ - "", - "", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetHubItemsResponseBody](../../../sdk/models/operations/gethubitemsresponsebody.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getidentityresponse.md b/docs/sdk/models/operations/getidentityresponse.md deleted file mode 100644 index c68769e0..00000000 --- a/docs/sdk/models/operations/getidentityresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetIdentityResponse - -## Example Usage - -```typescript -import { GetIdentityResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetIdentityResponse = { - contentType: "", - statusCode: 730626, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetIdentityResponseBody](../../../sdk/models/operations/getidentityresponsebody.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getidentityresponsebody.md b/docs/sdk/models/operations/getidentityresponsebody.md deleted file mode 100644 index 28095d4a..00000000 --- a/docs/sdk/models/operations/getidentityresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetIdentityResponseBody - -OK - -## Example Usage - -```typescript -import { GetIdentityResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetIdentityResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.GetIdentityMediaContainer](../../../sdk/models/operations/getidentitymediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getimagefrombifrequest.md b/docs/sdk/models/operations/getimagefrombifrequest.md deleted file mode 100644 index b0bd8eb7..00000000 --- a/docs/sdk/models/operations/getimagefrombifrequest.md +++ /dev/null @@ -1,32 +0,0 @@ -# GetImageFromBifRequest - -## Example Usage - -```typescript -import { GetImageFromBifIndex, GetImageFromBifRequest } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetImageFromBifRequest = { - partId: 983252, - index: GetImageFromBifIndex.Sd, - offset: 221187, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | -| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `deviceName` | *string* | :heavy_minus_sign: | 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/getimagefrombifresponse.md b/docs/sdk/models/operations/getimagefrombifresponse.md deleted file mode 100644 index 6e79d549..00000000 --- a/docs/sdk/models/operations/getimagefrombifresponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetImageFromBifResponse - -## Example Usage - -```typescript -import { GetImageFromBifResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `responseStream` | *ReadableStream* | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getimageresponse.md b/docs/sdk/models/operations/getimageresponse.md deleted file mode 100644 index 74645af1..00000000 --- a/docs/sdk/models/operations/getimageresponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetImageResponse - -## Example Usage - -```typescript -import { GetImageResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `responseStream` | *ReadableStream* | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getitemartworkrequest.md b/docs/sdk/models/operations/getitemartworkrequest.md deleted file mode 100644 index 6a020f56..00000000 --- a/docs/sdk/models/operations/getitemartworkrequest.md +++ /dev/null @@ -1,32 +0,0 @@ -# GetItemArtworkRequest - -## Example Usage - -```typescript -import { GetItemArtworkElement, GetItemArtworkRequest } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetItemArtworkRequest = { - ids: "", - element: GetItemArtworkElement.Art, - timestamp: 848928, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | -| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `deviceName` | *string* | :heavy_minus_sign: | 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/getitemartworkresponse.md b/docs/sdk/models/operations/getitemartworkresponse.md deleted file mode 100644 index 89c66787..00000000 --- a/docs/sdk/models/operations/getitemartworkresponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetItemArtworkResponse - -## Example Usage - -```typescript -import { GetItemArtworkResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredAudioMpeg3ResponseStream` | *ReadableStream* | :heavy_minus_sign: | OK | -| `twoHundredImageJpegResponseStream` | *ReadableStream* | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getitemdecisionresponse.md b/docs/sdk/models/operations/getitemdecisionresponse.md deleted file mode 100644 index 77f7ef7a..00000000 --- a/docs/sdk/models/operations/getitemdecisionresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetItemDecisionResponse - -## Example Usage - -```typescript -import { GetItemDecisionResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetItemDecisionResponse = { - contentType: "", - statusCode: 651217, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithDecision` | [shared.MediaContainerWithDecision](../../../sdk/models/shared/mediacontainerwithdecision.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getitemtreeresponse.md b/docs/sdk/models/operations/getitemtreeresponse.md deleted file mode 100644 index 690f3078..00000000 --- a/docs/sdk/models/operations/getitemtreeresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetItemTreeResponse - -## Example Usage - -```typescript -import { GetItemTreeResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetItemTreeResponse = { - contentType: "", - statusCode: 812303, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithNestedMetadata` | [shared.MediaContainerWithNestedMetadata](../../../sdk/models/shared/mediacontainerwithnestedmetadata.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getlibrarydetailsresponse.md b/docs/sdk/models/operations/getlibrarydetailsresponse.md deleted file mode 100644 index 6a1d52fe..00000000 --- a/docs/sdk/models/operations/getlibrarydetailsresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetLibraryDetailsResponse - -## Example Usage - -```typescript -import { GetLibraryDetailsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetLibraryDetailsResponse = { - contentType: "", - statusCode: 683537, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetLibraryDetailsResponseBody](../../../sdk/models/operations/getlibrarydetailsresponsebody.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getlibraryitemsresponse.md b/docs/sdk/models/operations/getlibraryitemsresponse.md deleted file mode 100644 index 6a5b49b1..00000000 --- a/docs/sdk/models/operations/getlibraryitemsresponse.md +++ /dev/null @@ -1,23 +0,0 @@ -# GetLibraryItemsResponse - -## Example Usage - -```typescript -import { GetLibraryItemsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetLibraryItemsResponse = { - contentType: "", - statusCode: 886917, - headers: {}, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithMetadata` | [shared.MediaContainerWithMetadata](../../../sdk/models/shared/mediacontainerwithmetadata.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getlibrarymatchesresponse.md b/docs/sdk/models/operations/getlibrarymatchesresponse.md deleted file mode 100644 index 863e00c7..00000000 --- a/docs/sdk/models/operations/getlibrarymatchesresponse.md +++ /dev/null @@ -1,23 +0,0 @@ -# GetLibraryMatchesResponse - -## Example Usage - -```typescript -import { GetLibraryMatchesResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetLibraryMatchesResponse = { - contentType: "", - statusCode: 138814, - headers: {}, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithMetadata` | [shared.MediaContainerWithMetadata](../../../sdk/models/shared/mediacontainerwithmetadata.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getlineupchannelsresponse.md b/docs/sdk/models/operations/getlineupchannelsresponse.md deleted file mode 100644 index 8bba8a55..00000000 --- a/docs/sdk/models/operations/getlineupchannelsresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetLineupChannelsResponse - -## Example Usage - -```typescript -import { GetLineupChannelsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetLineupChannelsResponse = { - contentType: "", - statusCode: 207965, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetLineupChannelsResponseBody](../../../sdk/models/operations/getlineupchannelsresponsebody.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getlineupchannelsresponsebody.md b/docs/sdk/models/operations/getlineupchannelsresponsebody.md deleted file mode 100644 index 49c04dd6..00000000 --- a/docs/sdk/models/operations/getlineupchannelsresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetLineupChannelsResponseBody - -OK - -## Example Usage - -```typescript -import { GetLineupChannelsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetLineupChannelsResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.GetLineupChannelsMediaContainer](../../../sdk/models/operations/getlineupchannelsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getlineupresponse.md b/docs/sdk/models/operations/getlineupresponse.md deleted file mode 100644 index 32d7b204..00000000 --- a/docs/sdk/models/operations/getlineupresponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetLineupResponse - -## Example Usage - -```typescript -import { GetLineupResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetLineupResponse = { - contentType: "", - statusCode: 77581, - headers: { - "key": [ - "", - ], - "key1": [ - "", - "", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getlivetvsessionresponse.md b/docs/sdk/models/operations/getlivetvsessionresponse.md deleted file mode 100644 index f28185f2..00000000 --- a/docs/sdk/models/operations/getlivetvsessionresponse.md +++ /dev/null @@ -1,28 +0,0 @@ -# GetLiveTVSessionResponse - -## Example Usage - -```typescript -import { GetLiveTVSessionResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetLiveTVSessionResponse = { - contentType: "", - statusCode: 742160, - headers: { - "key": [ - "", - "", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithMetadata` | [shared.MediaContainerWithMetadata](../../../sdk/models/shared/mediacontainerwithmetadata.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getmediapartresponse.md b/docs/sdk/models/operations/getmediapartresponse.md deleted file mode 100644 index ccf93414..00000000 --- a/docs/sdk/models/operations/getmediapartresponse.md +++ /dev/null @@ -1,28 +0,0 @@ -# GetMediaPartResponse - -## Example Usage - -```typescript -import { GetMediaPartResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetMediaPartResponse = { - contentType: "", - statusCode: 778595, - headers: { - "key": [ - "", - "", - "", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getmetadatahubsresponse.md b/docs/sdk/models/operations/getmetadatahubsresponse.md deleted file mode 100644 index 10d3756f..00000000 --- a/docs/sdk/models/operations/getmetadatahubsresponse.md +++ /dev/null @@ -1,35 +0,0 @@ -# GetMetadataHubsResponse - -## Example Usage - -```typescript -import { GetMetadataHubsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetMetadataHubsResponse = { - contentType: "", - statusCode: 267473, - headers: { - "key": [ - "", - "", - "", - ], - "key1": [ - "", - ], - "key2": [ - "", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithHubs` | [shared.MediaContainerWithHubs](../../../sdk/models/shared/mediacontainerwithhubs.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getmetadataitemresponse.md b/docs/sdk/models/operations/getmetadataitemresponse.md deleted file mode 100644 index 9428b70a..00000000 --- a/docs/sdk/models/operations/getmetadataitemresponse.md +++ /dev/null @@ -1,31 +0,0 @@ -# GetMetadataItemResponse - -## Example Usage - -```typescript -import { GetMetadataItemResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetMetadataItemResponse = { - contentType: "", - statusCode: 313821, - headers: { - "key": [ - "", - ], - "key1": [ - "", - "", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithMetadata` | [shared.MediaContainerWithMetadata](../../../sdk/models/shared/mediacontainerwithmetadata.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getnotificationsresponse.md b/docs/sdk/models/operations/getnotificationsresponse.md deleted file mode 100644 index 52d769e3..00000000 --- a/docs/sdk/models/operations/getnotificationsresponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetNotificationsResponse - -## Example Usage - -```typescript -import { GetNotificationsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `responseStream` | *ReadableStream* | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getpartindexrequest.md b/docs/sdk/models/operations/getpartindexrequest.md deleted file mode 100644 index da1714a4..00000000 --- a/docs/sdk/models/operations/getpartindexrequest.md +++ /dev/null @@ -1,31 +0,0 @@ -# GetPartIndexRequest - -## Example Usage - -```typescript -import { GetPartIndexIndex, GetPartIndexRequest } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetPartIndexRequest = { - partId: 703932, - index: GetPartIndexIndex.Sd, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | -| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `deviceName` | *string* | :heavy_minus_sign: | 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/getpartindexresponse.md b/docs/sdk/models/operations/getpartindexresponse.md deleted file mode 100644 index 9bd7cf01..00000000 --- a/docs/sdk/models/operations/getpartindexresponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetPartIndexResponse - -## Example Usage - -```typescript -import { GetPartIndexResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `responseStream` | *ReadableStream* | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getpersonresponse.md b/docs/sdk/models/operations/getpersonresponse.md deleted file mode 100644 index 4d76a99e..00000000 --- a/docs/sdk/models/operations/getpersonresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetPersonResponse - -## Example Usage - -```typescript -import { GetPersonResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetPersonResponse = { - contentType: "", - statusCode: 631810, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetPersonResponseBody](../../../sdk/models/operations/getpersonresponsebody.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getpersonresponsebody.md b/docs/sdk/models/operations/getpersonresponsebody.md deleted file mode 100644 index 51bb7783..00000000 --- a/docs/sdk/models/operations/getpersonresponsebody.md +++ /dev/null @@ -1,31 +0,0 @@ -# GetPersonResponseBody - -OK - -## Example Usage - -```typescript -import { GetPersonResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetPersonResponseBody = { - mediaContainer: { - directory: [ - { - filter: "actor=49", - ratingKey: "58683", - role: "Secretary", - tag: "Shaun Lawton", - tagKey: "5d3ee12c4cde6a001c3e0b27", - thumb: - "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg", - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.GetPersonMediaContainer](../../../sdk/models/operations/getpersonmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplaylistgeneratoritem.md b/docs/sdk/models/operations/getplaylistgeneratoritem.md deleted file mode 100644 index f3a17148..00000000 --- a/docs/sdk/models/operations/getplaylistgeneratoritem.md +++ /dev/null @@ -1,25 +0,0 @@ -# GetPlaylistGeneratorItem - -## Example Usage - -```typescript -import { GetPlaylistGeneratorItem } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetPlaylistGeneratorItem = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | -| `composite` | *string* | :heavy_minus_sign: | The composite thumbnail image path | -| `device` | [operations.GetPlaylistGeneratorDevice](../../../sdk/models/operations/getplaylistgeneratordevice.md) | :heavy_minus_sign: | N/A | -| `id` | *number* | :heavy_minus_sign: | N/A | -| `location` | [operations.GetPlaylistGeneratorLocation](../../../sdk/models/operations/getplaylistgeneratorlocation.md) | :heavy_minus_sign: | N/A | -| `mediaSettings` | [operations.MediaSettings](../../../sdk/models/operations/mediasettings.md) | :heavy_minus_sign: | N/A | -| `policy` | [operations.GetPlaylistGeneratorPolicy](../../../sdk/models/operations/getplaylistgeneratorpolicy.md) | :heavy_minus_sign: | N/A | -| `status` | [operations.GetPlaylistGeneratorStatus](../../../sdk/models/operations/getplaylistgeneratorstatus.md) | :heavy_minus_sign: | N/A | -| `target` | *string* | :heavy_minus_sign: | N/A | -| `targetTagID` | *number* | :heavy_minus_sign: | The tag of this generator's settings | -| `title` | *string* | :heavy_minus_sign: | N/A | -| `type` | [operations.GetPlaylistGeneratorType](../../../sdk/models/operations/getplaylistgeneratortype.md) | :heavy_minus_sign: | The type of this generator | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplaylistgeneratoritemsresponse.md b/docs/sdk/models/operations/getplaylistgeneratoritemsresponse.md deleted file mode 100644 index 1ceda341..00000000 --- a/docs/sdk/models/operations/getplaylistgeneratoritemsresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetPlaylistGeneratorItemsResponse - -## Example Usage - -```typescript -import { GetPlaylistGeneratorItemsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetPlaylistGeneratorItemsResponse = { - contentType: "", - statusCode: 505757, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetPlaylistGeneratorItemsResponseBody](../../../sdk/models/operations/getplaylistgeneratoritemsresponsebody.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplaylistgeneratorpolicy.md b/docs/sdk/models/operations/getplaylistgeneratorpolicy.md deleted file mode 100644 index 9a20a1e6..00000000 --- a/docs/sdk/models/operations/getplaylistgeneratorpolicy.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetPlaylistGeneratorPolicy - -## Example Usage - -```typescript -import { GetPlaylistGeneratorPolicy } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetPlaylistGeneratorPolicy = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | -| `scope` | [operations.GetPlaylistGeneratorScope](../../../sdk/models/operations/getplaylistgeneratorscope.md) | :heavy_minus_sign: | N/A | -| `unwatched` | *boolean* | :heavy_minus_sign: | True if only unwatched items are optimized | -| `value` | *number* | :heavy_minus_sign: | If the scope is count, the number of items to optimize | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplaylistgeneratorresponse.md b/docs/sdk/models/operations/getplaylistgeneratorresponse.md deleted file mode 100644 index 54908fc8..00000000 --- a/docs/sdk/models/operations/getplaylistgeneratorresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetPlaylistGeneratorResponse - -## Example Usage - -```typescript -import { GetPlaylistGeneratorResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetPlaylistGeneratorResponse = { - contentType: "", - statusCode: 237742, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetPlaylistGeneratorResponseBody](../../../sdk/models/operations/getplaylistgeneratorresponsebody.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplaylistgeneratorresponsebody.md b/docs/sdk/models/operations/getplaylistgeneratorresponsebody.md deleted file mode 100644 index 593dba16..00000000 --- a/docs/sdk/models/operations/getplaylistgeneratorresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetPlaylistGeneratorResponseBody - -OK - -## Example Usage - -```typescript -import { GetPlaylistGeneratorResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetPlaylistGeneratorResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.GetPlaylistGeneratorMediaContainer](../../../sdk/models/operations/getplaylistgeneratormediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplaylistgeneratorscope.md b/docs/sdk/models/operations/getplaylistgeneratorscope.md deleted file mode 100644 index e2706ba3..00000000 --- a/docs/sdk/models/operations/getplaylistgeneratorscope.md +++ /dev/null @@ -1,16 +0,0 @@ -# GetPlaylistGeneratorScope - -## Example Usage - -```typescript -import { GetPlaylistGeneratorScope } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetPlaylistGeneratorScope = GetPlaylistGeneratorScope.Count; -``` - -## Values - -| Name | Value | -| ------- | ------- | -| `All` | all | -| `Count` | count | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplaylistgeneratorsresponse.md b/docs/sdk/models/operations/getplaylistgeneratorsresponse.md deleted file mode 100644 index 58f4197d..00000000 --- a/docs/sdk/models/operations/getplaylistgeneratorsresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetPlaylistGeneratorsResponse - -## Example Usage - -```typescript -import { GetPlaylistGeneratorsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetPlaylistGeneratorsResponse = { - contentType: "", - statusCode: 848206, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetPlaylistGeneratorsResponseBody](../../../sdk/models/operations/getplaylistgeneratorsresponsebody.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplaylistgeneratorsresponsebody.md b/docs/sdk/models/operations/getplaylistgeneratorsresponsebody.md deleted file mode 100644 index 40ee4ec4..00000000 --- a/docs/sdk/models/operations/getplaylistgeneratorsresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetPlaylistGeneratorsResponseBody - -OK - -## Example Usage - -```typescript -import { GetPlaylistGeneratorsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetPlaylistGeneratorsResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.GetPlaylistGeneratorsMediaContainer](../../../sdk/models/operations/getplaylistgeneratorsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplaylistgeneratorstate.md b/docs/sdk/models/operations/getplaylistgeneratorstate.md deleted file mode 100644 index b877a8cc..00000000 --- a/docs/sdk/models/operations/getplaylistgeneratorstate.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetPlaylistGeneratorState - -## Example Usage - -```typescript -import { GetPlaylistGeneratorState } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetPlaylistGeneratorState = GetPlaylistGeneratorState.Failed; -``` - -## Values - -| Name | Value | -| ---------- | ---------- | -| `Pending` | pending | -| `Complete` | complete | -| `Failed` | failed | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplaylistgeneratorstatus.md b/docs/sdk/models/operations/getplaylistgeneratorstatus.md deleted file mode 100644 index d0f85306..00000000 --- a/docs/sdk/models/operations/getplaylistgeneratorstatus.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetPlaylistGeneratorStatus - -## Example Usage - -```typescript -import { GetPlaylistGeneratorStatus } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetPlaylistGeneratorStatus = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | -| `itemsCompleteCount` | *number* | :heavy_minus_sign: | N/A | -| `itemsCount` | *number* | :heavy_minus_sign: | N/A | -| `itemsSuccessfulCount` | *number* | :heavy_minus_sign: | N/A | -| `state` | [operations.GetPlaylistGeneratorState](../../../sdk/models/operations/getplaylistgeneratorstate.md) | :heavy_minus_sign: | N/A | -| `totalSize` | *number* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplaylistgeneratorstype.md b/docs/sdk/models/operations/getplaylistgeneratorstype.md deleted file mode 100644 index 8930655c..00000000 --- a/docs/sdk/models/operations/getplaylistgeneratorstype.md +++ /dev/null @@ -1,22 +0,0 @@ -# GetPlaylistGeneratorsType - -The type of playlist generator. - - - -1: A smart playlist generator - - 42: A optimized version generator - - -## Example Usage - -```typescript -import { GetPlaylistGeneratorsType } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetPlaylistGeneratorsType = GetPlaylistGeneratorsType.FortyTwo; -``` - -## Values - -| Name | Value | -| ---------- | ---------- | -| `Minus1` | -1 | -| `FortyTwo` | 42 | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplaylistgeneratorsubtitles.md b/docs/sdk/models/operations/getplaylistgeneratorsubtitles.md deleted file mode 100644 index 34647db3..00000000 --- a/docs/sdk/models/operations/getplaylistgeneratorsubtitles.md +++ /dev/null @@ -1,20 +0,0 @@ -# GetPlaylistGeneratorSubtitles - -## Example Usage - -```typescript -import { GetPlaylistGeneratorSubtitles } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetPlaylistGeneratorSubtitles = GetPlaylistGeneratorSubtitles.Auto; -``` - -## Values - -| Name | Value | -| ----------- | ----------- | -| `Auto` | auto | -| `Burn` | burn | -| `None` | none | -| `Sidecar` | sidecar | -| `Embedded` | embedded | -| `Segmented` | segmented | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplaylistgeneratortype.md b/docs/sdk/models/operations/getplaylistgeneratortype.md deleted file mode 100644 index 57cce622..00000000 --- a/docs/sdk/models/operations/getplaylistgeneratortype.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetPlaylistGeneratorType - -The type of this generator - -## Example Usage - -```typescript -import { GetPlaylistGeneratorType } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetPlaylistGeneratorType = GetPlaylistGeneratorType.Minus1; -``` - -## Values - -| Name | Value | -| ---------- | ---------- | -| `Minus1` | -1 | -| `FortyTwo` | 42 | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplaylistitemsresponse.md b/docs/sdk/models/operations/getplaylistitemsresponse.md deleted file mode 100644 index a6b6bf17..00000000 --- a/docs/sdk/models/operations/getplaylistitemsresponse.md +++ /dev/null @@ -1,23 +0,0 @@ -# GetPlaylistItemsResponse - -## Example Usage - -```typescript -import { GetPlaylistItemsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetPlaylistItemsResponse = { - contentType: "", - statusCode: 145201, - headers: {}, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithMetadata` | [shared.MediaContainerWithMetadata](../../../sdk/models/shared/mediacontainerwithmetadata.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplaylistresponse.md b/docs/sdk/models/operations/getplaylistresponse.md deleted file mode 100644 index 24ca8a0f..00000000 --- a/docs/sdk/models/operations/getplaylistresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetPlaylistResponse - -## Example Usage - -```typescript -import { GetPlaylistResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetPlaylistResponse = { - contentType: "", - statusCode: 864440, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithPlaylistMetadata` | [shared.MediaContainerWithPlaylistMetadata](../../../sdk/models/shared/mediacontainerwithplaylistmetadata.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplayqueueresponse.md b/docs/sdk/models/operations/getplayqueueresponse.md deleted file mode 100644 index 5dcbe0fe..00000000 --- a/docs/sdk/models/operations/getplayqueueresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetPlayQueueResponse - -## Example Usage - -```typescript -import { GetPlayQueueResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetPlayQueueResponse = { - contentType: "", - statusCode: 932431, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithPlaylistMetadata` | [shared.MediaContainerWithPlaylistMetadata](../../../sdk/models/shared/mediacontainerwithplaylistmetadata.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getpostplayhubsresponse.md b/docs/sdk/models/operations/getpostplayhubsresponse.md deleted file mode 100644 index f30049fe..00000000 --- a/docs/sdk/models/operations/getpostplayhubsresponse.md +++ /dev/null @@ -1,36 +0,0 @@ -# GetPostplayHubsResponse - -## Example Usage - -```typescript -import { GetPostplayHubsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetPostplayHubsResponse = { - contentType: "", - statusCode: 966813, - headers: { - "key": [ - "", - "", - ], - "key1": [ - "", - "", - "", - ], - "key2": [ - "", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithHubs` | [shared.MediaContainerWithHubs](../../../sdk/models/shared/mediacontainerwithhubs.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getpreferenceresponse.md b/docs/sdk/models/operations/getpreferenceresponse.md deleted file mode 100644 index 8169fb16..00000000 --- a/docs/sdk/models/operations/getpreferenceresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetPreferenceResponse - -## Example Usage - -```typescript -import { GetPreferenceResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetPreferenceResponse = { - contentType: "", - statusCode: 854360, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithSettings` | [shared.MediaContainerWithSettings](../../../sdk/models/shared/mediacontainerwithsettings.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getpromotedhubsresponse.md b/docs/sdk/models/operations/getpromotedhubsresponse.md deleted file mode 100644 index c17f843f..00000000 --- a/docs/sdk/models/operations/getpromotedhubsresponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# GetPromotedHubsResponse - -## Example Usage - -```typescript -import { GetPromotedHubsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetPromotedHubsResponse = { - contentType: "", - statusCode: 477758, - headers: { - "key": [ - "", - ], - "key1": [ - "", - "", - ], - "key2": [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetPromotedHubsResponseBody](../../../sdk/models/operations/getpromotedhubsresponsebody.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getrandomartworkresponse.md b/docs/sdk/models/operations/getrandomartworkresponse.md deleted file mode 100644 index dacf1dce..00000000 --- a/docs/sdk/models/operations/getrandomartworkresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetRandomArtworkResponse - -## Example Usage - -```typescript -import { GetRandomArtworkResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetRandomArtworkResponse = { - contentType: "", - statusCode: 185930, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithArtwork` | [shared.MediaContainerWithArtwork](../../../sdk/models/shared/mediacontainerwithartwork.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getrelatedhubsresponse.md b/docs/sdk/models/operations/getrelatedhubsresponse.md deleted file mode 100644 index 82628828..00000000 --- a/docs/sdk/models/operations/getrelatedhubsresponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# GetRelatedHubsResponse - -## Example Usage - -```typescript -import { GetRelatedHubsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetRelatedHubsResponse = { - contentType: "", - statusCode: 956434, - headers: { - "key": [ - "", - "", - ], - "key1": [], - "key2": [ - "", - "", - "", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithHubs` | [shared.MediaContainerWithHubs](../../../sdk/models/shared/mediacontainerwithhubs.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getrelateditemsresponse.md b/docs/sdk/models/operations/getrelateditemsresponse.md deleted file mode 100644 index 3566fadb..00000000 --- a/docs/sdk/models/operations/getrelateditemsresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetRelatedItemsResponse - -## Example Usage - -```typescript -import { GetRelatedItemsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetRelatedItemsResponse = { - contentType: "", - statusCode: 310088, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetRelatedItemsResponseBody](../../../sdk/models/operations/getrelateditemsresponsebody.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getscheduledrecordingsresponse.md b/docs/sdk/models/operations/getscheduledrecordingsresponse.md deleted file mode 100644 index f0c1f940..00000000 --- a/docs/sdk/models/operations/getscheduledrecordingsresponse.md +++ /dev/null @@ -1,26 +0,0 @@ -# GetScheduledRecordingsResponse - -## Example Usage - -```typescript -import { GetScheduledRecordingsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetScheduledRecordingsResponse = { - contentType: "", - statusCode: 442897, - headers: { - "key": [], - "key1": [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetScheduledRecordingsResponseBody](../../../sdk/models/operations/getscheduledrecordingsresponsebody.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsectionfiltersresponse.md b/docs/sdk/models/operations/getsectionfiltersresponse.md deleted file mode 100644 index 7d6ad7dc..00000000 --- a/docs/sdk/models/operations/getsectionfiltersresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetSectionFiltersResponse - -## Example Usage - -```typescript -import { GetSectionFiltersResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetSectionFiltersResponse = { - contentType: "", - statusCode: 180316, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetSectionFiltersResponseBody](../../../sdk/models/operations/getsectionfiltersresponsebody.md) | :heavy_minus_sign: | The filters on the section | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsectionfiltersresponsebody.md b/docs/sdk/models/operations/getsectionfiltersresponsebody.md deleted file mode 100644 index 7933e5bb..00000000 --- a/docs/sdk/models/operations/getsectionfiltersresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetSectionFiltersResponseBody - -The filters on the section - -## Example Usage - -```typescript -import { GetSectionFiltersResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetSectionFiltersResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.GetSectionFiltersMediaContainer](../../../sdk/models/operations/getsectionfiltersmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsectionhubsresponse.md b/docs/sdk/models/operations/getsectionhubsresponse.md deleted file mode 100644 index 36d8cb23..00000000 --- a/docs/sdk/models/operations/getsectionhubsresponse.md +++ /dev/null @@ -1,31 +0,0 @@ -# GetSectionHubsResponse - -## Example Usage - -```typescript -import { GetSectionHubsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetSectionHubsResponse = { - contentType: "", - statusCode: 627596, - headers: { - "key": [ - "", - ], - "key1": [ - "", - "", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetSectionHubsResponseBody](../../../sdk/models/operations/getsectionhubsresponsebody.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsectionimageresponse.md b/docs/sdk/models/operations/getsectionimageresponse.md deleted file mode 100644 index 7bf00658..00000000 --- a/docs/sdk/models/operations/getsectionimageresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# GetSectionImageResponse - -## Example Usage - -```typescript -import { GetSectionImageResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetSectionImageResponse = { - contentType: "", - statusCode: 556610, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsectionpreferencesresponse.md b/docs/sdk/models/operations/getsectionpreferencesresponse.md deleted file mode 100644 index a361f904..00000000 --- a/docs/sdk/models/operations/getsectionpreferencesresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetSectionPreferencesResponse - -## Example Usage - -```typescript -import { GetSectionPreferencesResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetSectionPreferencesResponse = { - contentType: "", - statusCode: 878121, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithSettings` | [shared.MediaContainerWithSettings](../../../sdk/models/shared/mediacontainerwithsettings.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsectionsprefsresponse.md b/docs/sdk/models/operations/getsectionsprefsresponse.md deleted file mode 100644 index fd3a03ad..00000000 --- a/docs/sdk/models/operations/getsectionsprefsresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetSectionsPrefsResponse - -## Example Usage - -```typescript -import { GetSectionsPrefsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetSectionsPrefsResponse = { - contentType: "", - statusCode: 698432, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `librarySections` | [shared.LibrarySections](../../../sdk/models/shared/librarysections.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsectionsresponse.md b/docs/sdk/models/operations/getsectionsresponse.md deleted file mode 100644 index e7a2aaad..00000000 --- a/docs/sdk/models/operations/getsectionsresponse.md +++ /dev/null @@ -1,23 +0,0 @@ -# GetSectionsResponse - -## Example Usage - -```typescript -import { GetSectionsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetSectionsResponse = { - contentType: "", - statusCode: 42544, - headers: {}, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetSectionsResponseBody](../../../sdk/models/operations/getsectionsresponsebody.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsectionsresponsebody.md b/docs/sdk/models/operations/getsectionsresponsebody.md deleted file mode 100644 index ca527be4..00000000 --- a/docs/sdk/models/operations/getsectionsresponsebody.md +++ /dev/null @@ -1,33 +0,0 @@ -# GetSectionsResponseBody - -OK - -## Example Usage - -```typescript -import { GetSectionsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; -import { MediaTypeString } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: GetSectionsResponseBody = { - mediaContainer: { - directory: [ - { - title: "Movies", - type: MediaTypeString.Movie, - contentChangedAt: 1556281940, - createdAt: 1556281940, - language: "", - uuid: "e69655a2-ef48-4aba-bb19-d3cc3401e7d6", - scannedAt: 1556281940, - updatedAt: 1556281940, - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.GetSectionsMediaContainer](../../../sdk/models/operations/getsectionsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getserverinforesponse.md b/docs/sdk/models/operations/getserverinforesponse.md deleted file mode 100644 index e417e7de..00000000 --- a/docs/sdk/models/operations/getserverinforesponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetServerInfoResponse - -## Example Usage - -```typescript -import { GetServerInfoResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetServerInfoResponse = { - contentType: "", - statusCode: 196247, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithDirectory` | [shared.MediaContainerWithDirectory](../../../sdk/models/shared/mediacontainerwithdirectory.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getserverresourcesglobals.md b/docs/sdk/models/operations/getserverresourcesglobals.md deleted file mode 100644 index c734a3a0..00000000 --- a/docs/sdk/models/operations/getserverresourcesglobals.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetServerResourcesGlobals - -## Example Usage - -```typescript -import { GetServerResourcesGlobals } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetServerResourcesGlobals = { - clientIdentifier: "abc123", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | -| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | \ No newline at end of file diff --git a/docs/sdk/models/operations/getserverresourcesresponse.md b/docs/sdk/models/operations/getserverresourcesresponse.md deleted file mode 100644 index e3e4fae0..00000000 --- a/docs/sdk/models/operations/getserverresourcesresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetServerResourcesResponse - -## Example Usage - -```typescript -import { GetServerResourcesResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetServerResourcesResponse = { - contentType: "", - statusCode: 384468, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `plexDevices` | [shared.PlexDevice](../../../sdk/models/shared/plexdevice.md)[] | :heavy_minus_sign: | List of Plex Devices. This includes Plex hosted servers and clients | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsessionplaylistindexresponse.md b/docs/sdk/models/operations/getsessionplaylistindexresponse.md deleted file mode 100644 index 6d9b4a72..00000000 --- a/docs/sdk/models/operations/getsessionplaylistindexresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# GetSessionPlaylistIndexResponse - -## Example Usage - -```typescript -import { GetSessionPlaylistIndexResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetSessionPlaylistIndexResponse = { - contentType: "", - statusCode: 931770, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsessionsegmentresponse.md b/docs/sdk/models/operations/getsessionsegmentresponse.md deleted file mode 100644 index cb48f82d..00000000 --- a/docs/sdk/models/operations/getsessionsegmentresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# GetSessionSegmentResponse - -## Example Usage - -```typescript -import { GetSessionSegmentResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetSessionSegmentResponse = { - contentType: "", - statusCode: 717876, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsessionsresponse.md b/docs/sdk/models/operations/getsessionsresponse.md deleted file mode 100644 index 7f186d1f..00000000 --- a/docs/sdk/models/operations/getsessionsresponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetSessionsResponse - -## Example Usage - -```typescript -import { GetSessionsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetSessionsResponse = { - contentType: "", - statusCode: 269270, - headers: { - "key": [ - "", - ], - "key1": [ - "", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithMetadata` | [shared.MediaContainerWithMetadata](../../../sdk/models/shared/mediacontainerwithmetadata.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsonicallysimilarresponse.md b/docs/sdk/models/operations/getsonicallysimilarresponse.md deleted file mode 100644 index 73af5767..00000000 --- a/docs/sdk/models/operations/getsonicallysimilarresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetSonicallySimilarResponse - -## Example Usage - -```typescript -import { GetSonicallySimilarResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetSonicallySimilarResponse = { - contentType: "", - statusCode: 389945, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithMetadata` | [shared.MediaContainerWithMetadata](../../../sdk/models/shared/mediacontainerwithmetadata.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsonicpathresponse.md b/docs/sdk/models/operations/getsonicpathresponse.md deleted file mode 100644 index b4f3cbf0..00000000 --- a/docs/sdk/models/operations/getsonicpathresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetSonicPathResponse - -## Example Usage - -```typescript -import { GetSonicPathResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetSonicPathResponse = { - contentType: "", - statusCode: 489991, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithMetadata` | [shared.MediaContainerWithMetadata](../../../sdk/models/shared/mediacontainerwithmetadata.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsourceconnectioninformationdevice.md b/docs/sdk/models/operations/getsourceconnectioninformationdevice.md deleted file mode 100644 index c4d66aec..00000000 --- a/docs/sdk/models/operations/getsourceconnectioninformationdevice.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetSourceConnectionInformationDevice - -## Example Usage - -```typescript -import { GetSourceConnectionInformationDevice } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetSourceConnectionInformationDevice = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `accessToken` | *string* | :heavy_minus_sign: | N/A | -| `clientIdentifier` | *string* | :heavy_minus_sign: | N/A | -| `connection` | [operations.Connection](../../../sdk/models/operations/connection.md)[] | :heavy_minus_sign: | N/A | -| `name` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsourceconnectioninformationresponse.md b/docs/sdk/models/operations/getsourceconnectioninformationresponse.md deleted file mode 100644 index 5b793a00..00000000 --- a/docs/sdk/models/operations/getsourceconnectioninformationresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetSourceConnectionInformationResponse - -## Example Usage - -```typescript -import { GetSourceConnectionInformationResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetSourceConnectionInformationResponse = { - contentType: "", - statusCode: 862180, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetSourceConnectionInformationResponseBody](../../../sdk/models/operations/getsourceconnectioninformationresponsebody.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsourceconnectioninformationresponsebody.md b/docs/sdk/models/operations/getsourceconnectioninformationresponsebody.md deleted file mode 100644 index c0973501..00000000 --- a/docs/sdk/models/operations/getsourceconnectioninformationresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetSourceConnectionInformationResponseBody - -OK - -## Example Usage - -```typescript -import { GetSourceConnectionInformationResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetSourceConnectionInformationResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.GetSourceConnectionInformationMediaContainer](../../../sdk/models/operations/getsourceconnectioninformationmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getstreamlevelsresponse.md b/docs/sdk/models/operations/getstreamlevelsresponse.md deleted file mode 100644 index 29d6195c..00000000 --- a/docs/sdk/models/operations/getstreamlevelsresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetStreamLevelsResponse - -## Example Usage - -```typescript -import { GetStreamLevelsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetStreamLevelsResponse = { - contentType: "", - statusCode: 382130, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetStreamLevelsResponseBody](../../../sdk/models/operations/getstreamlevelsresponsebody.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getstreamlevelsresponsebody.md b/docs/sdk/models/operations/getstreamlevelsresponsebody.md deleted file mode 100644 index 970e9145..00000000 --- a/docs/sdk/models/operations/getstreamlevelsresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetStreamLevelsResponseBody - -OK - -## Example Usage - -```typescript -import { GetStreamLevelsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetStreamLevelsResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.GetStreamLevelsMediaContainer](../../../sdk/models/operations/getstreamlevelsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getstreamloudnessresponse.md b/docs/sdk/models/operations/getstreamloudnessresponse.md deleted file mode 100644 index 987a34f9..00000000 --- a/docs/sdk/models/operations/getstreamloudnessresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetStreamLoudnessResponse - -## Example Usage - -```typescript -import { GetStreamLoudnessResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetStreamLoudnessResponse = { - contentType: "", - statusCode: 831734, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `res` | *string* | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getstreamresponse.md b/docs/sdk/models/operations/getstreamresponse.md deleted file mode 100644 index 93ee2412..00000000 --- a/docs/sdk/models/operations/getstreamresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# GetStreamResponse - -## Example Usage - -```typescript -import { GetStreamResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetStreamResponse = { - contentType: "", - statusCode: 810113, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsubscriptionresponse.md b/docs/sdk/models/operations/getsubscriptionresponse.md deleted file mode 100644 index 99d4c2cd..00000000 --- a/docs/sdk/models/operations/getsubscriptionresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetSubscriptionResponse - -## Example Usage - -```typescript -import { GetSubscriptionResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetSubscriptionResponse = { - contentType: "", - statusCode: 484674, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithSubscription` | [shared.MediaContainerWithSubscription](../../../sdk/models/shared/mediacontainerwithsubscription.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/gettagsresponse.md b/docs/sdk/models/operations/gettagsresponse.md deleted file mode 100644 index 291342fc..00000000 --- a/docs/sdk/models/operations/gettagsresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetTagsResponse - -## Example Usage - -```typescript -import { GetTagsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetTagsResponse = { - contentType: "", - statusCode: 501738, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetTagsResponseBody](../../../sdk/models/operations/gettagsresponsebody.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/gettagsresponsebody.md b/docs/sdk/models/operations/gettagsresponsebody.md deleted file mode 100644 index c31e563e..00000000 --- a/docs/sdk/models/operations/gettagsresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetTagsResponseBody - -OK - -## Example Usage - -```typescript -import { GetTagsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetTagsResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.GetTagsMediaContainer](../../../sdk/models/operations/gettagsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/gettasksresponse.md b/docs/sdk/models/operations/gettasksresponse.md deleted file mode 100644 index 675996cc..00000000 --- a/docs/sdk/models/operations/gettasksresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetTasksResponse - -## Example Usage - -```typescript -import { GetTasksResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetTasksResponse = { - contentType: "", - statusCode: 124531, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetTasksResponseBody](../../../sdk/models/operations/gettasksresponsebody.md) | :heavy_minus_sign: | Butler tasks | \ No newline at end of file diff --git a/docs/sdk/models/operations/gettasksresponsebody.md b/docs/sdk/models/operations/gettasksresponsebody.md deleted file mode 100644 index 71a7f9c2..00000000 --- a/docs/sdk/models/operations/gettasksresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetTasksResponseBody - -Butler tasks - -## Example Usage - -```typescript -import { GetTasksResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetTasksResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `butlerTasks` | [operations.ButlerTasks](../../../sdk/models/operations/butlertasks.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/gettemplateresponse.md b/docs/sdk/models/operations/gettemplateresponse.md deleted file mode 100644 index 3024fd19..00000000 --- a/docs/sdk/models/operations/gettemplateresponse.md +++ /dev/null @@ -1,23 +0,0 @@ -# GetTemplateResponse - -## Example Usage - -```typescript -import { GetTemplateResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetTemplateResponse = { - contentType: "", - statusCode: 473665, - headers: {}, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetTemplateResponseBody](../../../sdk/models/operations/gettemplateresponsebody.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getthumbresponse.md b/docs/sdk/models/operations/getthumbresponse.md deleted file mode 100644 index c2e68141..00000000 --- a/docs/sdk/models/operations/getthumbresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# GetThumbResponse - -## Example Usage - -```typescript -import { GetThumbResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetThumbResponse = { - contentType: "", - statusCode: 249506, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/gettokendetailsresponse.md b/docs/sdk/models/operations/gettokendetailsresponse.md deleted file mode 100644 index 2eb2f582..00000000 --- a/docs/sdk/models/operations/gettokendetailsresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetTokenDetailsResponse - -## Example Usage - -```typescript -import { GetTokenDetailsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetTokenDetailsResponse = { - contentType: "", - statusCode: 77667, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `userPlexAccount` | [shared.UserPlexAccount](../../../sdk/models/shared/userplexaccount.md) | :heavy_minus_sign: | Logged in user details | \ No newline at end of file diff --git a/docs/sdk/models/operations/gettransienttokenrequest.md b/docs/sdk/models/operations/gettransienttokenrequest.md deleted file mode 100644 index 781351fb..00000000 --- a/docs/sdk/models/operations/gettransienttokenrequest.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetTransientTokenRequest - -## Example Usage - -```typescript -import { GetTransientTokenRequest, GetTransientTokenScope, GetTransientTokenType } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetTransientTokenRequest = { - type: GetTransientTokenType.Delegation, - scope: GetTransientTokenScope.All, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | -| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `deviceName` | *string* | :heavy_minus_sign: | 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/gettransienttokenresponse.md b/docs/sdk/models/operations/gettransienttokenresponse.md deleted file mode 100644 index 4ec598f7..00000000 --- a/docs/sdk/models/operations/gettransienttokenresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetTransientTokenResponse - -## Example Usage - -```typescript -import { GetTransientTokenResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetTransientTokenResponse = { - contentType: "", - statusCode: 305461, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetTransientTokenResponseBody](../../../sdk/models/operations/gettransienttokenresponsebody.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/gettransienttokenresponsebody.md b/docs/sdk/models/operations/gettransienttokenresponsebody.md deleted file mode 100644 index 2acae65f..00000000 --- a/docs/sdk/models/operations/gettransienttokenresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetTransientTokenResponseBody - -OK - -## Example Usage - -```typescript -import { GetTransientTokenResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetTransientTokenResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.GetTransientTokenMediaContainer](../../../sdk/models/operations/gettransienttokenmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getupdatesstatusresponse.md b/docs/sdk/models/operations/getupdatesstatusresponse.md deleted file mode 100644 index fb57442a..00000000 --- a/docs/sdk/models/operations/getupdatesstatusresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetUpdatesStatusResponse - -## Example Usage - -```typescript -import { GetUpdatesStatusResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetUpdatesStatusResponse = { - contentType: "", - statusCode: 558781, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetUpdatesStatusResponseBody](../../../sdk/models/operations/getupdatesstatusresponsebody.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/getupdatesstatusresponsebody.md b/docs/sdk/models/operations/getupdatesstatusresponsebody.md deleted file mode 100644 index abefef9a..00000000 --- a/docs/sdk/models/operations/getupdatesstatusresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetUpdatesStatusResponseBody - -OK - -## Example Usage - -```typescript -import { GetUpdatesStatusResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetUpdatesStatusResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.GetUpdatesStatusMediaContainer](../../../sdk/models/operations/getupdatesstatusmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getupdatesstatusstate.md b/docs/sdk/models/operations/getupdatesstatusstate.md deleted file mode 100644 index 7a40b7fb..00000000 --- a/docs/sdk/models/operations/getupdatesstatusstate.md +++ /dev/null @@ -1,36 +0,0 @@ -# GetUpdatesStatusState - -The status of this update. - -- available - This release is available -- downloading - This release is downloading -- downloaded - This release has been downloaded -- installing - This release is installing -- tonight - This release will be installed tonight -- skipped - This release has been skipped -- error - This release has an error -- notify - This release is only notifying it is available (typically because it cannot be installed on this setup) -- done - This release is complete - - -## Example Usage - -```typescript -import { GetUpdatesStatusState } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetUpdatesStatusState = GetUpdatesStatusState.Done; -``` - -## Values - -| Name | Value | -| ------------- | ------------- | -| `Available` | available | -| `Downloading` | downloading | -| `Downloaded` | downloaded | -| `Installing` | installing | -| `Tonight` | tonight | -| `Skipped` | skipped | -| `Error` | error | -| `Notify` | notify | -| `Done` | done | \ No newline at end of file diff --git a/docs/sdk/models/operations/getusersmediacontainer.md b/docs/sdk/models/operations/getusersmediacontainer.md deleted file mode 100644 index 15653bb1..00000000 --- a/docs/sdk/models/operations/getusersmediacontainer.md +++ /dev/null @@ -1,29 +0,0 @@ -# GetUsersMediaContainer - -Container holding user and server details. - -## Example Usage - -```typescript -import { GetUsersMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetUsersMediaContainer = { - friendlyName: "myPlex", - identifier: "com.plexapp.plugins.myplex", - machineIdentifier: "3dff4c4da3b1229a649aa574a9e2b419a684a20e", - totalSize: 30, - size: 30, - user: [], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `friendlyName` | *string* | :heavy_check_mark: | The friendly name of the Plex instance. | myPlex | -| `identifier` | *string* | :heavy_check_mark: | N/A | com.plexapp.plugins.myplex | -| `machineIdentifier` | *string* | :heavy_check_mark: | Unique Machine identifier of the Plex server. | 3dff4c4da3b1229a649aa574a9e2b419a684a20e | -| `totalSize` | *number* | :heavy_check_mark: | Total number of users. | 30 | -| `size` | *number* | :heavy_check_mark: | Number of users in the current response. | 30 | -| `user` | [operations.User](../../../sdk/models/operations/user.md)[] | :heavy_check_mark: | List of users with access to the Plex server. | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getusersresponse.md b/docs/sdk/models/operations/getusersresponse.md deleted file mode 100644 index 26800117..00000000 --- a/docs/sdk/models/operations/getusersresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetUsersResponse - -## Example Usage - -```typescript -import { GetUsersResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetUsersResponse = { - contentType: "", - statusCode: 793403, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetUsersResponseBody](../../../sdk/models/operations/getusersresponsebody.md) | :heavy_minus_sign: | Successful response with media container data in JSON | \ No newline at end of file diff --git a/docs/sdk/models/operations/getusersresponsebody.md b/docs/sdk/models/operations/getusersresponsebody.md deleted file mode 100644 index 9204b784..00000000 --- a/docs/sdk/models/operations/getusersresponsebody.md +++ /dev/null @@ -1,74 +0,0 @@ -# GetUsersResponseBody - -Successful response with media container data in JSON - -## Example Usage - -```typescript -import { - AllLibraries, - AllowCameraUpload, - AllowChannels, - AllowSubtitleAdmin, - AllowSync, - AllowTuners, - GetUsersResponseBody, - Home, - Owned, - Pending, - Protected, - Restricted, -} from "@lukehagar/plexjs/sdk/models/operations"; - -let value: GetUsersResponseBody = { - mediaContainer: { - friendlyName: "myPlex", - identifier: "com.plexapp.plugins.myplex", - machineIdentifier: "3dff4c4da3b1229a649aa574a9e2b419a684a20e", - totalSize: 30, - size: 30, - user: [ - { - id: 22526914, - title: "Plex User", - username: "zgfuc7krcqfimrmb9lsl5j", - email: "zgfuc7krcqfimrmb9lsl5j@protonmail.com", - recommendationsPlaylistId: "", - thumb: "https://plex.tv/users/3346028014e93acd/avatar?c=1731605021", - protected: Protected.Enable, - home: Home.Enable, - allowTuners: AllowTuners.Enable, - allowSync: AllowSync.Enable, - allowCameraUpload: AllowCameraUpload.Enable, - allowChannels: AllowChannels.Enable, - allowSubtitleAdmin: AllowSubtitleAdmin.Enable, - filterAll: "", - filterMovies: "", - filterMusic: "", - filterPhotos: "", - filterTelevision: "", - restricted: Restricted.Enable, - server: [ - { - id: 907759180, - serverId: 9999999, - machineIdentifier: "fbb8aa6be6e0c997c6268bc2b4431c8807f70a3", - name: "ConnectedUserFlix", - lastSeenAt: 1556281940, - numLibraries: 16, - allLibraries: AllLibraries.Enable, - owned: Owned.Enable, - pending: Pending.Enable, - }, - ], - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.GetUsersMediaContainer](../../../sdk/models/operations/getusersmediacontainer.md) | :heavy_minus_sign: | Container holding user and server details. | \ No newline at end of file diff --git a/docs/sdk/models/operations/home.md b/docs/sdk/models/operations/home.md deleted file mode 100644 index 2e1944dd..00000000 --- a/docs/sdk/models/operations/home.md +++ /dev/null @@ -1,18 +0,0 @@ -# Home - -Indicates if the user is part of a home group. - -## Example Usage - -```typescript -import { Home } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: Home = Home.Enable; -``` - -## Values - -| Name | Value | -| --------- | --------- | -| `Disable` | 0 | -| `Enable` | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/homevisibility.md b/docs/sdk/models/operations/homevisibility.md deleted file mode 100644 index 2d0e360f..00000000 --- a/docs/sdk/models/operations/homevisibility.md +++ /dev/null @@ -1,25 +0,0 @@ -# HomeVisibility - -Whether this hub is visible on the home screen - - all: Visible to all users - - none: Visible to no users - - admin: Visible to only admin users - - shared: Visible to shared users - - -## Example Usage - -```typescript -import { HomeVisibility } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: HomeVisibility = HomeVisibility.All; -``` - -## Values - -| Name | Value | -| -------- | -------- | -| `All` | all | -| `None` | none | -| `Admin` | admin | -| `Shared` | shared | \ No newline at end of file diff --git a/docs/sdk/models/operations/ingesttransientitemresponse.md b/docs/sdk/models/operations/ingesttransientitemresponse.md deleted file mode 100644 index 3d5f5851..00000000 --- a/docs/sdk/models/operations/ingesttransientitemresponse.md +++ /dev/null @@ -1,31 +0,0 @@ -# IngestTransientItemResponse - -## Example Usage - -```typescript -import { IngestTransientItemResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: IngestTransientItemResponse = { - contentType: "", - statusCode: 333468, - headers: { - "key": [ - "", - "", - ], - "key1": [ - "", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithMetadata` | [shared.MediaContainerWithMetadata](../../../sdk/models/shared/mediacontainerwithmetadata.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/lineuptype.md b/docs/sdk/models/operations/lineuptype.md deleted file mode 100644 index 1470ff25..00000000 --- a/docs/sdk/models/operations/lineuptype.md +++ /dev/null @@ -1,28 +0,0 @@ -# LineupType - -- `-1`: N/A -- `0`: Over the air -- `1`: Cable -- `2`: Satellite -- `3`: IPTV -- `4`: Virtual - - -## Example Usage - -```typescript -import { LineupType } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: LineupType = LineupType.Two; -``` - -## Values - -| Name | Value | -| -------- | -------- | -| `Minus1` | -1 | -| `Zero` | 0 | -| `One` | 1 | -| `Two` | 2 | -| `Three` | 3 | -| `Four` | 4 | \ No newline at end of file diff --git a/docs/sdk/models/operations/listactivitiesmediacontainer.md b/docs/sdk/models/operations/listactivitiesmediacontainer.md deleted file mode 100644 index 5357811c..00000000 --- a/docs/sdk/models/operations/listactivitiesmediacontainer.md +++ /dev/null @@ -1,15 +0,0 @@ -# ListActivitiesMediaContainer - -## Example Usage - -```typescript -import { ListActivitiesMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ListActivitiesMediaContainer = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `activity` | [operations.Activity](../../../sdk/models/operations/activity.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/listactivitiesresponse.md b/docs/sdk/models/operations/listactivitiesresponse.md deleted file mode 100644 index 5584b5ed..00000000 --- a/docs/sdk/models/operations/listactivitiesresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# ListActivitiesResponse - -## Example Usage - -```typescript -import { ListActivitiesResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ListActivitiesResponse = { - contentType: "", - statusCode: 805406, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.ListActivitiesResponseBody](../../../sdk/models/operations/listactivitiesresponsebody.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/listactivitiesresponsebody.md b/docs/sdk/models/operations/listactivitiesresponsebody.md deleted file mode 100644 index ca707cf4..00000000 --- a/docs/sdk/models/operations/listactivitiesresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# ListActivitiesResponseBody - -OK - -## Example Usage - -```typescript -import { ListActivitiesResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ListActivitiesResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.ListActivitiesMediaContainer](../../../sdk/models/operations/listactivitiesmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/listcontentresponse.md b/docs/sdk/models/operations/listcontentresponse.md deleted file mode 100644 index e8a89940..00000000 --- a/docs/sdk/models/operations/listcontentresponse.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListContentResponse - -## Example Usage - -```typescript -import { ListContentResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ListContentResponse = { - contentType: "", - statusCode: 378103, - headers: {}, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithMetadata` | [shared.MediaContainerWithMetadata](../../../sdk/models/shared/mediacontainerwithmetadata.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/listdevicesresponse.md b/docs/sdk/models/operations/listdevicesresponse.md deleted file mode 100644 index 4c4baa73..00000000 --- a/docs/sdk/models/operations/listdevicesresponse.md +++ /dev/null @@ -1,25 +0,0 @@ -# ListDevicesResponse - -## Example Usage - -```typescript -import { ListDevicesResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ListDevicesResponse = { - contentType: "", - statusCode: 561860, - headers: { - "key": [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithDevice` | [shared.MediaContainerWithDevice](../../../sdk/models/shared/mediacontainerwithdevice.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/listdownloadqueueitemsresponse.md b/docs/sdk/models/operations/listdownloadqueueitemsresponse.md deleted file mode 100644 index 0842c502..00000000 --- a/docs/sdk/models/operations/listdownloadqueueitemsresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# ListDownloadQueueItemsResponse - -## Example Usage - -```typescript -import { ListDownloadQueueItemsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ListDownloadQueueItemsResponse = { - contentType: "", - statusCode: 77421, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.ListDownloadQueueItemsResponseBody](../../../sdk/models/operations/listdownloadqueueitemsresponsebody.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/listdownloadqueueitemsresponsebody.md b/docs/sdk/models/operations/listdownloadqueueitemsresponsebody.md deleted file mode 100644 index 7af8dcfc..00000000 --- a/docs/sdk/models/operations/listdownloadqueueitemsresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# ListDownloadQueueItemsResponseBody - -OK - -## Example Usage - -```typescript -import { ListDownloadQueueItemsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ListDownloadQueueItemsResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.ListDownloadQueueItemsMediaContainer](../../../sdk/models/operations/listdownloadqueueitemsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/listdownloadqueueitemsstatus.md b/docs/sdk/models/operations/listdownloadqueueitemsstatus.md deleted file mode 100644 index db4280ba..00000000 --- a/docs/sdk/models/operations/listdownloadqueueitemsstatus.md +++ /dev/null @@ -1,30 +0,0 @@ -# ListDownloadQueueItemsStatus - -The state of the item: - - deciding: The item decision is pending - - waiting: The item is waiting for transcode - - processing: The item is being transcoded - - available: The item is available for download - - error: The item encountered an error in the decision or transcode - - expired: The transcoded item has timed out and is no longer available - - -## Example Usage - -```typescript -import { ListDownloadQueueItemsStatus } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ListDownloadQueueItemsStatus = - ListDownloadQueueItemsStatus.Processing; -``` - -## Values - -| Name | Value | -| ------------ | ------------ | -| `Deciding` | deciding | -| `Waiting` | waiting | -| `Processing` | processing | -| `Available` | available | -| `Error` | error | -| `Expired` | expired | \ No newline at end of file diff --git a/docs/sdk/models/operations/listdvrsdvr.md b/docs/sdk/models/operations/listdvrsdvr.md deleted file mode 100644 index 9867e4eb..00000000 --- a/docs/sdk/models/operations/listdvrsdvr.md +++ /dev/null @@ -1,19 +0,0 @@ -# ListDVRsDVR - -## Example Usage - -```typescript -import { ListDVRsDVR } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ListDVRsDVR = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `device` | [shared.Device](../../../sdk/models/shared/device.md)[] | :heavy_minus_sign: | N/A | -| `key` | *string* | :heavy_minus_sign: | N/A | -| `language` | *string* | :heavy_minus_sign: | N/A | -| `lineup` | *string* | :heavy_minus_sign: | N/A | -| `uuid` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/listdvrsmediacontainer.md b/docs/sdk/models/operations/listdvrsmediacontainer.md deleted file mode 100644 index ebdbb9d1..00000000 --- a/docs/sdk/models/operations/listdvrsmediacontainer.md +++ /dev/null @@ -1,16 +0,0 @@ -# ListDVRsMediaContainer - -## Example Usage - -```typescript -import { ListDVRsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ListDVRsMediaContainer = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.ListDVRsMediaContainerMediaContainer](../../../sdk/models/operations/listdvrsmediacontainermediacontainer.md) | :heavy_minus_sign: | N/A | -| `dvr` | [operations.ListDVRsDVR](../../../sdk/models/operations/listdvrsdvr.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/listdvrsresponse.md b/docs/sdk/models/operations/listdvrsresponse.md deleted file mode 100644 index fc01e052..00000000 --- a/docs/sdk/models/operations/listdvrsresponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# ListDVRsResponse - -## Example Usage - -```typescript -import { ListDVRsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ListDVRsResponse = { - contentType: "", - statusCode: 329056, - headers: { - "key": [ - "", - ], - "key1": [], - "key2": [ - "", - "", - "", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.ListDVRsResponseBody](../../../sdk/models/operations/listdvrsresponsebody.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/listdvrsresponsebody.md b/docs/sdk/models/operations/listdvrsresponsebody.md deleted file mode 100644 index 29f12dbd..00000000 --- a/docs/sdk/models/operations/listdvrsresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# ListDVRsResponseBody - -OK - -## Example Usage - -```typescript -import { ListDVRsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ListDVRsResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.ListDVRsMediaContainer](../../../sdk/models/operations/listdvrsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/listhubsresponse.md b/docs/sdk/models/operations/listhubsresponse.md deleted file mode 100644 index f32f02a0..00000000 --- a/docs/sdk/models/operations/listhubsresponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# ListHubsResponse - -## Example Usage - -```typescript -import { ListHubsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ListHubsResponse = { - contentType: "", - statusCode: 533204, - headers: { - "key": [ - "", - "", - "", - ], - "key1": [ - "", - "", - ], - "key2": [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.ListHubsResponseBody](../../../sdk/models/operations/listhubsresponsebody.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/listhubsresponsebody.md b/docs/sdk/models/operations/listhubsresponsebody.md deleted file mode 100644 index 6592c767..00000000 --- a/docs/sdk/models/operations/listhubsresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# ListHubsResponseBody - -OK - -## Example Usage - -```typescript -import { ListHubsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ListHubsResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.ListHubsMediaContainer](../../../sdk/models/operations/listhubsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/listlineupsresponse.md b/docs/sdk/models/operations/listlineupsresponse.md deleted file mode 100644 index 9beab78b..00000000 --- a/docs/sdk/models/operations/listlineupsresponse.md +++ /dev/null @@ -1,28 +0,0 @@ -# ListLineupsResponse - -## Example Usage - -```typescript -import { ListLineupsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ListLineupsResponse = { - contentType: "", - statusCode: 522517, - headers: { - "key": [ - "", - "", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithLineup` | [shared.MediaContainerWithLineup](../../../sdk/models/shared/mediacontainerwithlineup.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/listmatchesresponse.md b/docs/sdk/models/operations/listmatchesresponse.md deleted file mode 100644 index 21d0f9a3..00000000 --- a/docs/sdk/models/operations/listmatchesresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# ListMatchesResponse - -## Example Usage - -```typescript -import { ListMatchesResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ListMatchesResponse = { - contentType: "", - statusCode: 327655, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithMetadata` | [shared.MediaContainerWithMetadata](../../../sdk/models/shared/mediacontainerwithmetadata.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/listmomentsresponse.md b/docs/sdk/models/operations/listmomentsresponse.md deleted file mode 100644 index 816d0ee3..00000000 --- a/docs/sdk/models/operations/listmomentsresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# ListMomentsResponse - -## Example Usage - -```typescript -import { ListMomentsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ListMomentsResponse = { - contentType: "", - statusCode: 863263, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithArtwork` | [shared.MediaContainerWithArtwork](../../../sdk/models/shared/mediacontainerwithartwork.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/listpersonmediaresponse.md b/docs/sdk/models/operations/listpersonmediaresponse.md deleted file mode 100644 index 492c590a..00000000 --- a/docs/sdk/models/operations/listpersonmediaresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# ListPersonMediaResponse - -## Example Usage - -```typescript -import { ListPersonMediaResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ListPersonMediaResponse = { - contentType: "", - statusCode: 776873, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithMetadata` | [shared.MediaContainerWithMetadata](../../../sdk/models/shared/mediacontainerwithmetadata.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/listplaybackhistoryresponse.md b/docs/sdk/models/operations/listplaybackhistoryresponse.md deleted file mode 100644 index 1552b340..00000000 --- a/docs/sdk/models/operations/listplaybackhistoryresponse.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListPlaybackHistoryResponse - -## Example Usage - -```typescript -import { ListPlaybackHistoryResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ListPlaybackHistoryResponse = { - contentType: "", - statusCode: 514983, - headers: {}, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.ListPlaybackHistoryResponseBody](../../../sdk/models/operations/listplaybackhistoryresponsebody.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/listplaybackhistoryresponsebody.md b/docs/sdk/models/operations/listplaybackhistoryresponsebody.md deleted file mode 100644 index a209ffe9..00000000 --- a/docs/sdk/models/operations/listplaybackhistoryresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# ListPlaybackHistoryResponseBody - -OK - -## Example Usage - -```typescript -import { ListPlaybackHistoryResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ListPlaybackHistoryResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.ListPlaybackHistoryMediaContainer](../../../sdk/models/operations/listplaybackhistorymediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/listplaylistsrequest.md b/docs/sdk/models/operations/listplaylistsrequest.md deleted file mode 100644 index f0473c83..00000000 --- a/docs/sdk/models/operations/listplaylistsrequest.md +++ /dev/null @@ -1,27 +0,0 @@ -# ListPlaylistsRequest - -## Example Usage - -```typescript -import { ListPlaylistsRequest } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ListPlaylistsRequest = {}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | -| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `deviceName` | *string* | :heavy_minus_sign: | 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/listplaylistsresponse.md b/docs/sdk/models/operations/listplaylistsresponse.md deleted file mode 100644 index 12a1343a..00000000 --- a/docs/sdk/models/operations/listplaylistsresponse.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListPlaylistsResponse - -## Example Usage - -```typescript -import { ListPlaylistsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ListPlaylistsResponse = { - contentType: "", - statusCode: 167417, - headers: {}, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithPlaylistMetadata` | [shared.MediaContainerWithPlaylistMetadata](../../../sdk/models/shared/mediacontainerwithplaylistmetadata.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/listprovidersresponse.md b/docs/sdk/models/operations/listprovidersresponse.md deleted file mode 100644 index 005ebc68..00000000 --- a/docs/sdk/models/operations/listprovidersresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# ListProvidersResponse - -## Example Usage - -```typescript -import { ListProvidersResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ListProvidersResponse = { - contentType: "", - statusCode: 588193, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.ListProvidersResponseBody](../../../sdk/models/operations/listprovidersresponsebody.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/listprovidersresponsebody.md b/docs/sdk/models/operations/listprovidersresponsebody.md deleted file mode 100644 index 1f3105c2..00000000 --- a/docs/sdk/models/operations/listprovidersresponsebody.md +++ /dev/null @@ -1,26 +0,0 @@ -# ListProvidersResponseBody - -OK - -## Example Usage - -```typescript -import { ListProvidersResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ListProvidersResponseBody = { - mediaContainer: { - livetv: 7, - machineIdentifier: "0123456789abcdef0123456789abcdef012345678", - musicAnalysis: 2, - myPlexMappingState: "mapped", - myPlexSigninState: "ok", - offlineTranscode: 1, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.ListProvidersMediaContainer](../../../sdk/models/operations/listprovidersmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/listsessionsresponse.md b/docs/sdk/models/operations/listsessionsresponse.md deleted file mode 100644 index 64ddc57e..00000000 --- a/docs/sdk/models/operations/listsessionsresponse.md +++ /dev/null @@ -1,25 +0,0 @@ -# ListSessionsResponse - -## Example Usage - -```typescript -import { ListSessionsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ListSessionsResponse = { - contentType: "", - statusCode: 150259, - headers: { - "key": [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.ListSessionsResponseBody](../../../sdk/models/operations/listsessionsresponsebody.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/listsimilarresponse.md b/docs/sdk/models/operations/listsimilarresponse.md deleted file mode 100644 index 45533aa2..00000000 --- a/docs/sdk/models/operations/listsimilarresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# ListSimilarResponse - -## Example Usage - -```typescript -import { ListSimilarResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ListSimilarResponse = { - contentType: "", - statusCode: 791119, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithMetadata` | [shared.MediaContainerWithMetadata](../../../sdk/models/shared/mediacontainerwithmetadata.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/listsonicallysimilarresponse.md b/docs/sdk/models/operations/listsonicallysimilarresponse.md deleted file mode 100644 index e4cd86d3..00000000 --- a/docs/sdk/models/operations/listsonicallysimilarresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# ListSonicallySimilarResponse - -## Example Usage - -```typescript -import { ListSonicallySimilarResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ListSonicallySimilarResponse = { - contentType: "", - statusCode: 907963, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithMetadata` | [shared.MediaContainerWithMetadata](../../../sdk/models/shared/mediacontainerwithmetadata.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/listtopusersresponse.md b/docs/sdk/models/operations/listtopusersresponse.md deleted file mode 100644 index 13970a02..00000000 --- a/docs/sdk/models/operations/listtopusersresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# ListTopUsersResponse - -## Example Usage - -```typescript -import { ListTopUsersResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ListTopUsersResponse = { - contentType: "", - statusCode: 256110, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.ListTopUsersResponseBody](../../../sdk/models/operations/listtopusersresponsebody.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/listtopusersresponsebody.md b/docs/sdk/models/operations/listtopusersresponsebody.md deleted file mode 100644 index 350498a8..00000000 --- a/docs/sdk/models/operations/listtopusersresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# ListTopUsersResponseBody - -OK - -## Example Usage - -```typescript -import { ListTopUsersResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ListTopUsersResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.ListTopUsersMediaContainer](../../../sdk/models/operations/listtopusersmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/mailingliststatus.md b/docs/sdk/models/operations/mailingliststatus.md deleted file mode 100644 index 18334550..00000000 --- a/docs/sdk/models/operations/mailingliststatus.md +++ /dev/null @@ -1,19 +0,0 @@ -# MailingListStatus - -Your current mailing list status - -## Example Usage - -```typescript -import { MailingListStatus } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: MailingListStatus = MailingListStatus.Active; -``` - -## Values - -| Name | Value | -| -------------- | -------------- | -| `Active` | active | -| `Unsubscribed` | unsubscribed | -| `Removed` | removed | \ No newline at end of file diff --git a/docs/sdk/models/operations/makedecisionresponse.md b/docs/sdk/models/operations/makedecisionresponse.md deleted file mode 100644 index a264bf04..00000000 --- a/docs/sdk/models/operations/makedecisionresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# MakeDecisionResponse - -## Example Usage - -```typescript -import { MakeDecisionResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: MakeDecisionResponse = { - contentType: "", - statusCode: 348140, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithDecision` | [shared.MediaContainerWithDecision](../../../sdk/models/shared/mediacontainerwithdecision.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/markplayedresponse.md b/docs/sdk/models/operations/markplayedresponse.md deleted file mode 100644 index 4baa95dc..00000000 --- a/docs/sdk/models/operations/markplayedresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# MarkPlayedResponse - -## Example Usage - -```typescript -import { MarkPlayedResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: MarkPlayedResponse = { - contentType: "", - statusCode: 83973, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/matchitemresponse.md b/docs/sdk/models/operations/matchitemresponse.md deleted file mode 100644 index c630bd7a..00000000 --- a/docs/sdk/models/operations/matchitemresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# MatchItemResponse - -## Example Usage - -```typescript -import { MatchItemResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: MatchItemResponse = { - contentType: "", - statusCode: 164998, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/mediasettings.md b/docs/sdk/models/operations/mediasettings.md deleted file mode 100644 index 049b22c9..00000000 --- a/docs/sdk/models/operations/mediasettings.md +++ /dev/null @@ -1,34 +0,0 @@ -# MediaSettings - -## Example Usage - -```typescript -import { MediaSettings } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: MediaSettings = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `advancedSubtitles` | [operations.AdvancedSubtitles](../../../sdk/models/operations/advancedsubtitles.md) | :heavy_minus_sign: | N/A | -| `audioBoost` | *number* | :heavy_minus_sign: | N/A | -| `audioChannelCount` | *number* | :heavy_minus_sign: | N/A | -| `autoAdjustQuality` | *boolean* | :heavy_minus_sign: | N/A | -| `autoAdjustSubtitle` | *boolean* | :heavy_minus_sign: | N/A | -| `directPlay` | *boolean* | :heavy_minus_sign: | N/A | -| `directStream` | *boolean* | :heavy_minus_sign: | N/A | -| `directStreamAudio` | *boolean* | :heavy_minus_sign: | N/A | -| `disableResolutionRotation` | *boolean* | :heavy_minus_sign: | N/A | -| `maxVideoBitrate` | *number* | :heavy_minus_sign: | N/A | -| `musicBitrate` | *number* | :heavy_minus_sign: | N/A | -| `peakBitrate` | *number* | :heavy_minus_sign: | N/A | -| `photoQuality` | *number* | :heavy_minus_sign: | N/A | -| `photoResolution` | *string* | :heavy_minus_sign: | N/A | -| `secondsPerSegment` | *number* | :heavy_minus_sign: | N/A | -| `subtitles` | [operations.GetPlaylistGeneratorSubtitles](../../../sdk/models/operations/getplaylistgeneratorsubtitles.md) | :heavy_minus_sign: | N/A | -| `subtitleSize` | *number* | :heavy_minus_sign: | N/A | -| `videoBitrate` | *number* | :heavy_minus_sign: | N/A | -| `videoQuality` | *number* | :heavy_minus_sign: | N/A | -| `videoResolution` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/mergeitemsresponse.md b/docs/sdk/models/operations/mergeitemsresponse.md deleted file mode 100644 index 8a539113..00000000 --- a/docs/sdk/models/operations/mergeitemsresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# MergeItemsResponse - -## Example Usage - -```typescript -import { MergeItemsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: MergeItemsResponse = { - contentType: "", - statusCode: 330785, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/modifydeviceresponse.md b/docs/sdk/models/operations/modifydeviceresponse.md deleted file mode 100644 index 2c55b9ca..00000000 --- a/docs/sdk/models/operations/modifydeviceresponse.md +++ /dev/null @@ -1,31 +0,0 @@ -# ModifyDeviceResponse - -## Example Usage - -```typescript -import { ModifyDeviceResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ModifyDeviceResponse = { - contentType: "", - statusCode: 295865, - headers: { - "key": [ - "", - ], - "key1": [ - "", - "", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.ModifyDeviceResponseBody](../../../sdk/models/operations/modifydeviceresponsebody.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/modifydeviceresponsebody.md b/docs/sdk/models/operations/modifydeviceresponsebody.md deleted file mode 100644 index 1f03d232..00000000 --- a/docs/sdk/models/operations/modifydeviceresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# ModifyDeviceResponseBody - -OK - -## Example Usage - -```typescript -import { ModifyDeviceResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ModifyDeviceResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.ModifyDeviceMediaContainer](../../../sdk/models/operations/modifydevicemediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/modifyplaylistgeneratorpolicy.md b/docs/sdk/models/operations/modifyplaylistgeneratorpolicy.md deleted file mode 100644 index 37945fe5..00000000 --- a/docs/sdk/models/operations/modifyplaylistgeneratorpolicy.md +++ /dev/null @@ -1,20 +0,0 @@ -# ModifyPlaylistGeneratorPolicy - -## Example Usage - -```typescript -import { ModifyPlaylistGeneratorPolicy } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: ModifyPlaylistGeneratorPolicy = { - unwatched: BoolInt.True, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | -| `value` | *number* | :heavy_minus_sign: | N/A | | -| `scope` | [operations.ModifyPlaylistGeneratorScope](../../../sdk/models/operations/modifyplaylistgeneratorscope.md) | :heavy_minus_sign: | N/A | | -| `unwatched` | [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/modifyplaylistgeneratorresponse.md b/docs/sdk/models/operations/modifyplaylistgeneratorresponse.md deleted file mode 100644 index 8ba33920..00000000 --- a/docs/sdk/models/operations/modifyplaylistgeneratorresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# ModifyPlaylistGeneratorResponse - -## Example Usage - -```typescript -import { ModifyPlaylistGeneratorResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ModifyPlaylistGeneratorResponse = { - contentType: "", - statusCode: 629713, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithPlaylistMetadata` | [shared.MediaContainerWithPlaylistMetadata](../../../sdk/models/shared/mediacontainerwithplaylistmetadata.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/movecollectionitemresponse.md b/docs/sdk/models/operations/movecollectionitemresponse.md deleted file mode 100644 index f187e6e5..00000000 --- a/docs/sdk/models/operations/movecollectionitemresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# MoveCollectionItemResponse - -## Example Usage - -```typescript -import { MoveCollectionItemResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: MoveCollectionItemResponse = { - contentType: "", - statusCode: 375726, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithMetadata` | [shared.MediaContainerWithMetadata](../../../sdk/models/shared/mediacontainerwithmetadata.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/movehubresponse.md b/docs/sdk/models/operations/movehubresponse.md deleted file mode 100644 index e8d1e567..00000000 --- a/docs/sdk/models/operations/movehubresponse.md +++ /dev/null @@ -1,23 +0,0 @@ -# MoveHubResponse - -## Example Usage - -```typescript -import { MoveHubResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: MoveHubResponse = { - contentType: "", - statusCode: 884768, - headers: {}, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `getResponses200` | [shared.GetResponses200](../../../sdk/models/shared/getresponses200.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/moveplaylistitemresponse.md b/docs/sdk/models/operations/moveplaylistitemresponse.md deleted file mode 100644 index dfcd8632..00000000 --- a/docs/sdk/models/operations/moveplaylistitemresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# MovePlaylistItemResponse - -## Example Usage - -```typescript -import { MovePlaylistItemResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: MovePlaylistItemResponse = { - contentType: "", - statusCode: 46880, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithPlaylistMetadata` | [shared.MediaContainerWithPlaylistMetadata](../../../sdk/models/shared/mediacontainerwithplaylistmetadata.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/moveplayqueueitemresponse.md b/docs/sdk/models/operations/moveplayqueueitemresponse.md deleted file mode 100644 index 2d23272a..00000000 --- a/docs/sdk/models/operations/moveplayqueueitemresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# MovePlayQueueItemResponse - -## Example Usage - -```typescript -import { MovePlayQueueItemResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: MovePlayQueueItemResponse = { - contentType: "", - statusCode: 82636, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithPlaylistMetadata` | [shared.MediaContainerWithPlaylistMetadata](../../../sdk/models/shared/mediacontainerwithplaylistmetadata.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/optimizedatabaseresponse.md b/docs/sdk/models/operations/optimizedatabaseresponse.md deleted file mode 100644 index 1c8d9ac1..00000000 --- a/docs/sdk/models/operations/optimizedatabaseresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# OptimizeDatabaseResponse - -## Example Usage - -```typescript -import { OptimizeDatabaseResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: OptimizeDatabaseResponse = { - contentType: "", - statusCode: 79993, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/owned.md b/docs/sdk/models/operations/owned.md deleted file mode 100644 index 752c1432..00000000 --- a/docs/sdk/models/operations/owned.md +++ /dev/null @@ -1,18 +0,0 @@ -# Owned - -Indicates if the user owns the server. - -## Example Usage - -```typescript -import { Owned } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: Owned = Owned.Enable; -``` - -## Values - -| Name | Value | -| --------- | --------- | -| `Disable` | 0 | -| `Enable` | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/pastsubscription.md b/docs/sdk/models/operations/pastsubscription.md deleted file mode 100644 index a6648cb1..00000000 --- a/docs/sdk/models/operations/pastsubscription.md +++ /dev/null @@ -1,41 +0,0 @@ -# PastSubscription - -## Example Usage - -```typescript -import { PastSubscription, PostUsersSignInDataState } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: PastSubscription = { - id: "", - mode: "", - renewsAt: 1556281940, - endsAt: 1556281940, - type: "plexpass", - transfer: "", - state: PostUsersSignInDataState.Ended, - billing: { - internalPaymentMethod: {}, - paymentMethodId: 793427, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `id` | *string* | :heavy_check_mark: | N/A | | -| `mode` | *string* | :heavy_check_mark: | N/A | | -| `renewsAt` | *number* | :heavy_check_mark: | N/A | 1556281940 | -| `endsAt` | *number* | :heavy_check_mark: | N/A | 1556281940 | -| `canceled` | *boolean* | :heavy_minus_sign: | N/A | false | -| `gracePeriod` | *boolean* | :heavy_minus_sign: | N/A | false | -| `onHold` | *boolean* | :heavy_minus_sign: | N/A | false | -| `canReactivate` | *boolean* | :heavy_minus_sign: | N/A | false | -| `canUpgrade` | *boolean* | :heavy_minus_sign: | N/A | false | -| `canDowngrade` | *boolean* | :heavy_minus_sign: | N/A | false | -| `canConvert` | *boolean* | :heavy_minus_sign: | N/A | false | -| `type` | *string* | :heavy_check_mark: | N/A | plexpass | -| `transfer` | *string* | :heavy_check_mark: | N/A | | -| `state` | [operations.PostUsersSignInDataState](../../../sdk/models/operations/postuserssignindatastate.md) | :heavy_check_mark: | N/A | ended | -| `billing` | [operations.Billing](../../../sdk/models/operations/billing.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/operations/pending.md b/docs/sdk/models/operations/pending.md deleted file mode 100644 index df06536b..00000000 --- a/docs/sdk/models/operations/pending.md +++ /dev/null @@ -1,18 +0,0 @@ -# Pending - -Indicates if the server is pending approval. - -## Example Usage - -```typescript -import { Pending } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: Pending = Pending.Enable; -``` - -## Values - -| Name | Value | -| --------- | --------- | -| `Disable` | 0 | -| `Enable` | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/postuserssignindatarequest.md b/docs/sdk/models/operations/postuserssignindatarequest.md deleted file mode 100644 index 60f22b97..00000000 --- a/docs/sdk/models/operations/postuserssignindatarequest.md +++ /dev/null @@ -1,26 +0,0 @@ -# PostUsersSignInDataRequest - -## Example Usage - -```typescript -import { PostUsersSignInDataRequest } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: PostUsersSignInDataRequest = {}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | -| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | -| `requestBody` | [operations.PostUsersSignInDataRequestBody](../../../sdk/models/operations/postuserssignindatarequestbody.md) | :heavy_minus_sign: | Login credentials | | \ No newline at end of file diff --git a/docs/sdk/models/operations/postuserssignindataresponse.md b/docs/sdk/models/operations/postuserssignindataresponse.md deleted file mode 100644 index b3b310fb..00000000 --- a/docs/sdk/models/operations/postuserssignindataresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# PostUsersSignInDataResponse - -## Example Usage - -```typescript -import { PostUsersSignInDataResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: PostUsersSignInDataResponse = { - contentType: "", - statusCode: 377161, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `userPlexAccount` | [operations.UserPlexAccount](../../../sdk/models/operations/userplexaccount.md) | :heavy_minus_sign: | Returns the user account data with a valid auth token | \ No newline at end of file diff --git a/docs/sdk/models/operations/processingstate.md b/docs/sdk/models/operations/processingstate.md deleted file mode 100644 index aa17d3ea..00000000 --- a/docs/sdk/models/operations/processingstate.md +++ /dev/null @@ -1,22 +0,0 @@ -# ProcessingState - -The state of processing if this generator is part of an optimizer playlist - -## Example Usage - -```typescript -import { ProcessingState } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ProcessingState = ProcessingState.Disabled; -``` - -## Values - -| Name | Value | -| ------------ | ------------ | -| `Processed` | processed | -| `Completed` | completed | -| `Tombstoned` | tombstoned | -| `Disabled` | disabled | -| `Error` | error | -| `Pending` | pending | \ No newline at end of file diff --git a/docs/sdk/models/operations/processsubscriptionsresponse.md b/docs/sdk/models/operations/processsubscriptionsresponse.md deleted file mode 100644 index c2c7bb55..00000000 --- a/docs/sdk/models/operations/processsubscriptionsresponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# ProcessSubscriptionsResponse - -## Example Usage - -```typescript -import { ProcessSubscriptionsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ProcessSubscriptionsResponse = { - contentType: "", - statusCode: 88834, - headers: { - "key": [ - "", - "", - ], - "key1": [ - "", - "", - "", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/protected.md b/docs/sdk/models/operations/protected.md deleted file mode 100644 index db456484..00000000 --- a/docs/sdk/models/operations/protected.md +++ /dev/null @@ -1,18 +0,0 @@ -# Protected - -Indicates whether the account is protected. - -## Example Usage - -```typescript -import { Protected } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: Protected = Protected.Enable; -``` - -## Values - -| Name | Value | -| --------- | --------- | -| `Disable` | 0 | -| `Enable` | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/recommendationsvisibility.md b/docs/sdk/models/operations/recommendationsvisibility.md deleted file mode 100644 index d0597e61..00000000 --- a/docs/sdk/models/operations/recommendationsvisibility.md +++ /dev/null @@ -1,25 +0,0 @@ -# RecommendationsVisibility - -The visibility of this hub in recommendations: - - all: Visible to all users - - none: Visible to no users - - admin: Visible to only admin users - - shared: Visible to shared users - - -## Example Usage - -```typescript -import { RecommendationsVisibility } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: RecommendationsVisibility = RecommendationsVisibility.Admin; -``` - -## Values - -| Name | Value | -| -------- | -------- | -| `All` | all | -| `None` | none | -| `Admin` | admin | -| `Shared` | shared | \ No newline at end of file diff --git a/docs/sdk/models/operations/refreshitemsmetadataresponse.md b/docs/sdk/models/operations/refreshitemsmetadataresponse.md deleted file mode 100644 index 8336559f..00000000 --- a/docs/sdk/models/operations/refreshitemsmetadataresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# RefreshItemsMetadataResponse - -## Example Usage - -```typescript -import { RefreshItemsMetadataResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: RefreshItemsMetadataResponse = { - contentType: "", - statusCode: 127292, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/refreshplaylistresponse.md b/docs/sdk/models/operations/refreshplaylistresponse.md deleted file mode 100644 index 68c5994a..00000000 --- a/docs/sdk/models/operations/refreshplaylistresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# RefreshPlaylistResponse - -## Example Usage - -```typescript -import { RefreshPlaylistResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: RefreshPlaylistResponse = { - contentType: "", - statusCode: 518336, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/refreshprovidersresponse.md b/docs/sdk/models/operations/refreshprovidersresponse.md deleted file mode 100644 index 8409648a..00000000 --- a/docs/sdk/models/operations/refreshprovidersresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# RefreshProvidersResponse - -## Example Usage - -```typescript -import { RefreshProvidersResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: RefreshProvidersResponse = { - contentType: "", - statusCode: 821737, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/refreshsectionresponse.md b/docs/sdk/models/operations/refreshsectionresponse.md deleted file mode 100644 index c99bdb0b..00000000 --- a/docs/sdk/models/operations/refreshsectionresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# RefreshSectionResponse - -## Example Usage - -```typescript -import { RefreshSectionResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: RefreshSectionResponse = { - contentType: "", - statusCode: 396908, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/refreshsectionsmetadataresponse.md b/docs/sdk/models/operations/refreshsectionsmetadataresponse.md deleted file mode 100644 index 66768418..00000000 --- a/docs/sdk/models/operations/refreshsectionsmetadataresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# RefreshSectionsMetadataResponse - -## Example Usage - -```typescript -import { RefreshSectionsMetadataResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: RefreshSectionsMetadataResponse = { - contentType: "", - statusCode: 384835, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/reloadguideresponse.md b/docs/sdk/models/operations/reloadguideresponse.md deleted file mode 100644 index fa63da97..00000000 --- a/docs/sdk/models/operations/reloadguideresponse.md +++ /dev/null @@ -1,22 +0,0 @@ -# ReloadGuideResponse - -## Example Usage - -```typescript -import { ReloadGuideResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ReloadGuideResponse = { - contentType: "", - statusCode: 244734, - headers: {}, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/removedevicefromdvrdvr.md b/docs/sdk/models/operations/removedevicefromdvrdvr.md deleted file mode 100644 index 0adde1a5..00000000 --- a/docs/sdk/models/operations/removedevicefromdvrdvr.md +++ /dev/null @@ -1,19 +0,0 @@ -# RemoveDeviceFromDVRDVR - -## Example Usage - -```typescript -import { RemoveDeviceFromDVRDVR } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: RemoveDeviceFromDVRDVR = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `device` | [shared.Device](../../../sdk/models/shared/device.md)[] | :heavy_minus_sign: | N/A | -| `key` | *string* | :heavy_minus_sign: | N/A | -| `language` | *string* | :heavy_minus_sign: | N/A | -| `lineup` | *string* | :heavy_minus_sign: | N/A | -| `uuid` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/removedevicefromdvrresponse.md b/docs/sdk/models/operations/removedevicefromdvrresponse.md deleted file mode 100644 index b3ec03fa..00000000 --- a/docs/sdk/models/operations/removedevicefromdvrresponse.md +++ /dev/null @@ -1,23 +0,0 @@ -# RemoveDeviceFromDVRResponse - -## Example Usage - -```typescript -import { RemoveDeviceFromDVRResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: RemoveDeviceFromDVRResponse = { - contentType: "", - statusCode: 264961, - headers: {}, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.RemoveDeviceFromDVRResponseBody](../../../sdk/models/operations/removedevicefromdvrresponsebody.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/removedevicefromdvrresponsebody.md b/docs/sdk/models/operations/removedevicefromdvrresponsebody.md deleted file mode 100644 index 16977164..00000000 --- a/docs/sdk/models/operations/removedevicefromdvrresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveDeviceFromDVRResponseBody - -OK - -## Example Usage - -```typescript -import { RemoveDeviceFromDVRResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: RemoveDeviceFromDVRResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.RemoveDeviceFromDVRMediaContainer](../../../sdk/models/operations/removedevicefromdvrmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/removedeviceresponse.md b/docs/sdk/models/operations/removedeviceresponse.md deleted file mode 100644 index 0f6d00c1..00000000 --- a/docs/sdk/models/operations/removedeviceresponse.md +++ /dev/null @@ -1,31 +0,0 @@ -# RemoveDeviceResponse - -## Example Usage - -```typescript -import { RemoveDeviceResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: RemoveDeviceResponse = { - contentType: "", - statusCode: 118218, - headers: { - "key": [ - "", - "", - ], - "key1": [ - "", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.RemoveDeviceResponseBody](../../../sdk/models/operations/removedeviceresponsebody.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/removedeviceresponsebody.md b/docs/sdk/models/operations/removedeviceresponsebody.md deleted file mode 100644 index 01f44991..00000000 --- a/docs/sdk/models/operations/removedeviceresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveDeviceResponseBody - -OK - -## Example Usage - -```typescript -import { RemoveDeviceResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: RemoveDeviceResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.RemoveDeviceMediaContainer](../../../sdk/models/operations/removedevicemediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/removedownloadqueueitemsresponse.md b/docs/sdk/models/operations/removedownloadqueueitemsresponse.md deleted file mode 100644 index d6cd3500..00000000 --- a/docs/sdk/models/operations/removedownloadqueueitemsresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# RemoveDownloadQueueItemsResponse - -## Example Usage - -```typescript -import { RemoveDownloadQueueItemsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: RemoveDownloadQueueItemsResponse = { - contentType: "", - statusCode: 665826, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/reordersubscriptionresponse.md b/docs/sdk/models/operations/reordersubscriptionresponse.md deleted file mode 100644 index 719101c4..00000000 --- a/docs/sdk/models/operations/reordersubscriptionresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# ReorderSubscriptionResponse - -## Example Usage - -```typescript -import { ReorderSubscriptionResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ReorderSubscriptionResponse = { - contentType: "", - statusCode: 881712, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithSubscription` | [shared.MediaContainerWithSubscription](../../../sdk/models/shared/mediacontainerwithsubscription.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/reportresponse.md b/docs/sdk/models/operations/reportresponse.md deleted file mode 100644 index 93616be3..00000000 --- a/docs/sdk/models/operations/reportresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# ReportResponse - -## Example Usage - -```typescript -import { ReportResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ReportResponse = { - contentType: "", - statusCode: 654732, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.ReportResponseBody](../../../sdk/models/operations/reportresponsebody.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/reportresponsebody.md b/docs/sdk/models/operations/reportresponsebody.md deleted file mode 100644 index e411dca6..00000000 --- a/docs/sdk/models/operations/reportresponsebody.md +++ /dev/null @@ -1,26 +0,0 @@ -# ReportResponseBody - -OK - -## Example Usage - -```typescript -import { ReportResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ReportResponseBody = { - mediaContainer: { - livetv: 7, - machineIdentifier: "0123456789abcdef0123456789abcdef012345678", - musicAnalysis: 2, - myPlexMappingState: "mapped", - myPlexSigninState: "ok", - offlineTranscode: 1, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.ReportMediaContainer](../../../sdk/models/operations/reportmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/resetplayqueueresponse.md b/docs/sdk/models/operations/resetplayqueueresponse.md deleted file mode 100644 index 1cb4ca2a..00000000 --- a/docs/sdk/models/operations/resetplayqueueresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# ResetPlayQueueResponse - -## Example Usage - -```typescript -import { ResetPlayQueueResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ResetPlayQueueResponse = { - contentType: "", - statusCode: 901228, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithPlaylistMetadata` | [shared.MediaContainerWithPlaylistMetadata](../../../sdk/models/shared/mediacontainerwithplaylistmetadata.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/resetsectiondefaultsresponse.md b/docs/sdk/models/operations/resetsectiondefaultsresponse.md deleted file mode 100644 index dd8fa627..00000000 --- a/docs/sdk/models/operations/resetsectiondefaultsresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# ResetSectionDefaultsResponse - -## Example Usage - -```typescript -import { ResetSectionDefaultsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ResetSectionDefaultsResponse = { - contentType: "", - statusCode: 48571, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/restartprocessingdownloadqueueitemsresponse.md b/docs/sdk/models/operations/restartprocessingdownloadqueueitemsresponse.md deleted file mode 100644 index c7f4e8c2..00000000 --- a/docs/sdk/models/operations/restartprocessingdownloadqueueitemsresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# RestartProcessingDownloadQueueItemsResponse - -## Example Usage - -```typescript -import { RestartProcessingDownloadQueueItemsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: RestartProcessingDownloadQueueItemsResponse = { - contentType: "", - statusCode: 706298, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/restricted.md b/docs/sdk/models/operations/restricted.md deleted file mode 100644 index f149001b..00000000 --- a/docs/sdk/models/operations/restricted.md +++ /dev/null @@ -1,18 +0,0 @@ -# Restricted - -Indicates if the user has restricted access. - -## Example Usage - -```typescript -import { Restricted } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: Restricted = Restricted.Enable; -``` - -## Values - -| Name | Value | -| --------- | --------- | -| `Disable` | 0 | -| `Enable` | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/scanresponse.md b/docs/sdk/models/operations/scanresponse.md deleted file mode 100644 index bdf424ff..00000000 --- a/docs/sdk/models/operations/scanresponse.md +++ /dev/null @@ -1,36 +0,0 @@ -# ScanResponse - -## Example Usage - -```typescript -import { ScanResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ScanResponse = { - contentType: "", - statusCode: 173594, - headers: { - "key": [ - "", - "", - ], - "key1": [ - "", - ], - "key2": [ - "", - "", - "", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithDevice` | [shared.MediaContainerWithDevice](../../../sdk/models/shared/mediacontainerwithdevice.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/searchhubsresponse.md b/docs/sdk/models/operations/searchhubsresponse.md deleted file mode 100644 index 69d13ed9..00000000 --- a/docs/sdk/models/operations/searchhubsresponse.md +++ /dev/null @@ -1,23 +0,0 @@ -# SearchHubsResponse - -## Example Usage - -```typescript -import { SearchHubsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: SearchHubsResponse = { - contentType: "", - statusCode: 711471, - headers: {}, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.SearchHubsResponseBody](../../../sdk/models/operations/searchhubsresponsebody.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/server.md b/docs/sdk/models/operations/server.md deleted file mode 100644 index b463b101..00000000 --- a/docs/sdk/models/operations/server.md +++ /dev/null @@ -1,33 +0,0 @@ -# Server - -## Example Usage - -```typescript -import { AllLibraries, Owned, Pending, Server } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: Server = { - id: 907759180, - serverId: 9999999, - machineIdentifier: "fbb8aa6be6e0c997c6268bc2b4431c8807f70a3", - name: "ConnectedUserFlix", - lastSeenAt: 1556281940, - numLibraries: 16, - allLibraries: AllLibraries.Enable, - owned: Owned.Enable, - pending: Pending.Enable, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `id` | *number* | :heavy_check_mark: | Unique ID of the server of the connected user | 907759180 | -| `serverId` | *number* | :heavy_check_mark: | ID of the actual Plex server. | 9999999 | -| `machineIdentifier` | *string* | :heavy_check_mark: | Machine identifier of the Plex server. | fbb8aa6be6e0c997c6268bc2b4431c8807f70a3 | -| `name` | *string* | :heavy_check_mark: | Name of the Plex server of the connected user. | ConnectedUserFlix | -| `lastSeenAt` | *number* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 | -| `numLibraries` | *number* | :heavy_check_mark: | Number of libraries in the server this user has access to. | 16 | -| `allLibraries` | [operations.AllLibraries](../../../sdk/models/operations/alllibraries.md) | :heavy_minus_sign: | N/A | 1 | -| `owned` | [operations.Owned](../../../sdk/models/operations/owned.md) | :heavy_minus_sign: | N/A | 1 | -| `pending` | [operations.Pending](../../../sdk/models/operations/pending.md) | :heavy_minus_sign: | N/A | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/service.md b/docs/sdk/models/operations/service.md deleted file mode 100644 index 38a06c65..00000000 --- a/docs/sdk/models/operations/service.md +++ /dev/null @@ -1,25 +0,0 @@ -# Service - -## Example Usage - -```typescript -import { Service, ServiceStatus } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: Service = { - identifier: "metadata-dev", - endpoint: "https://epg.provider.plex.tv", - token: "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv", - secret: "", - status: ServiceStatus.Online, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `identifier` | *string* | :heavy_check_mark: | N/A | metadata-dev | -| `endpoint` | *string* | :heavy_check_mark: | N/A | https://epg.provider.plex.tv | -| `token` | *string* | :heavy_check_mark: | N/A | DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv | -| `secret` | *string* | :heavy_check_mark: | N/A | | -| `status` | [operations.ServiceStatus](../../../sdk/models/operations/servicestatus.md) | :heavy_check_mark: | N/A | online | \ No newline at end of file diff --git a/docs/sdk/models/operations/setchannelmapresponse.md b/docs/sdk/models/operations/setchannelmapresponse.md deleted file mode 100644 index 6d208133..00000000 --- a/docs/sdk/models/operations/setchannelmapresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# SetChannelmapResponse - -## Example Usage - -```typescript -import { SetChannelmapResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: SetChannelmapResponse = { - contentType: "", - statusCode: 721204, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithDevice` | [shared.MediaContainerWithDevice](../../../sdk/models/shared/mediacontainerwithdevice.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/setdevicepreferencesresponse.md b/docs/sdk/models/operations/setdevicepreferencesresponse.md deleted file mode 100644 index 82c54dd4..00000000 --- a/docs/sdk/models/operations/setdevicepreferencesresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# SetDevicePreferencesResponse - -## Example Usage - -```typescript -import { SetDevicePreferencesResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: SetDevicePreferencesResponse = { - contentType: "", - statusCode: 577724, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/setdvrpreferencesdvr.md b/docs/sdk/models/operations/setdvrpreferencesdvr.md deleted file mode 100644 index 490ed8df..00000000 --- a/docs/sdk/models/operations/setdvrpreferencesdvr.md +++ /dev/null @@ -1,19 +0,0 @@ -# SetDVRPreferencesDVR - -## Example Usage - -```typescript -import { SetDVRPreferencesDVR } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: SetDVRPreferencesDVR = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `device` | [shared.Device](../../../sdk/models/shared/device.md)[] | :heavy_minus_sign: | N/A | -| `key` | *string* | :heavy_minus_sign: | N/A | -| `language` | *string* | :heavy_minus_sign: | N/A | -| `lineup` | *string* | :heavy_minus_sign: | N/A | -| `uuid` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/setdvrpreferencesresponse.md b/docs/sdk/models/operations/setdvrpreferencesresponse.md deleted file mode 100644 index 21dae05a..00000000 --- a/docs/sdk/models/operations/setdvrpreferencesresponse.md +++ /dev/null @@ -1,25 +0,0 @@ -# SetDVRPreferencesResponse - -## Example Usage - -```typescript -import { SetDVRPreferencesResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: SetDVRPreferencesResponse = { - contentType: "", - statusCode: 256366, - headers: { - "key": [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.SetDVRPreferencesResponseBody](../../../sdk/models/operations/setdvrpreferencesresponsebody.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/setdvrpreferencesresponsebody.md b/docs/sdk/models/operations/setdvrpreferencesresponsebody.md deleted file mode 100644 index 4bfeea43..00000000 --- a/docs/sdk/models/operations/setdvrpreferencesresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# SetDVRPreferencesResponseBody - -OK - -## Example Usage - -```typescript -import { SetDVRPreferencesResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: SetDVRPreferencesResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [operations.SetDVRPreferencesMediaContainer](../../../sdk/models/operations/setdvrpreferencesmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/setitemartworkresponse.md b/docs/sdk/models/operations/setitemartworkresponse.md deleted file mode 100644 index 45e36ca0..00000000 --- a/docs/sdk/models/operations/setitemartworkresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# SetItemArtworkResponse - -## Example Usage - -```typescript -import { SetItemArtworkResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: SetItemArtworkResponse = { - contentType: "", - statusCode: 728377, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/setitempreferencesrequest.md b/docs/sdk/models/operations/setitempreferencesrequest.md deleted file mode 100644 index 33116ab5..00000000 --- a/docs/sdk/models/operations/setitempreferencesrequest.md +++ /dev/null @@ -1,29 +0,0 @@ -# SetItemPreferencesRequest - -## Example Usage - -```typescript -import { SetItemPreferencesRequest } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: SetItemPreferencesRequest = { - ids: "", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | -| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `deviceName` | *string* | :heavy_minus_sign: | 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/setitempreferencesresponse.md b/docs/sdk/models/operations/setitempreferencesresponse.md deleted file mode 100644 index 201f0ba4..00000000 --- a/docs/sdk/models/operations/setitempreferencesresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# SetItemPreferencesResponse - -## Example Usage - -```typescript -import { SetItemPreferencesResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: SetItemPreferencesResponse = { - contentType: "", - statusCode: 170701, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/setpreferencesresponse.md b/docs/sdk/models/operations/setpreferencesresponse.md deleted file mode 100644 index 86ebac0b..00000000 --- a/docs/sdk/models/operations/setpreferencesresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# SetPreferencesResponse - -## Example Usage - -```typescript -import { SetPreferencesResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: SetPreferencesResponse = { - contentType: "", - statusCode: 741361, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/setratingresponse.md b/docs/sdk/models/operations/setratingresponse.md deleted file mode 100644 index 853661b8..00000000 --- a/docs/sdk/models/operations/setratingresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# SetRatingResponse - -## Example Usage - -```typescript -import { SetRatingResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: SetRatingResponse = { - contentType: "", - statusCode: 437958, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/setsectionpreferencesrequest.md b/docs/sdk/models/operations/setsectionpreferencesrequest.md deleted file mode 100644 index b2af8265..00000000 --- a/docs/sdk/models/operations/setsectionpreferencesrequest.md +++ /dev/null @@ -1,30 +0,0 @@ -# SetSectionPreferencesRequest - -## Example Usage - -```typescript -import { SetSectionPreferencesRequest } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: SetSectionPreferencesRequest = { - sectionId: 607596, - prefs: {}, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | -| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `deviceName` | *string* | :heavy_minus_sign: | 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/setsectionpreferencesresponse.md b/docs/sdk/models/operations/setsectionpreferencesresponse.md deleted file mode 100644 index a1f6d772..00000000 --- a/docs/sdk/models/operations/setsectionpreferencesresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# SetSectionPreferencesResponse - -## Example Usage - -```typescript -import { SetSectionPreferencesResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: SetSectionPreferencesResponse = { - contentType: "", - statusCode: 497170, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/setstreamoffsetresponse.md b/docs/sdk/models/operations/setstreamoffsetresponse.md deleted file mode 100644 index 7d927bbb..00000000 --- a/docs/sdk/models/operations/setstreamoffsetresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# SetStreamOffsetResponse - -## Example Usage - -```typescript -import { SetStreamOffsetResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: SetStreamOffsetResponse = { - contentType: "", - statusCode: 15869, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/setstreamselectionresponse.md b/docs/sdk/models/operations/setstreamselectionresponse.md deleted file mode 100644 index 0b64ec45..00000000 --- a/docs/sdk/models/operations/setstreamselectionresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# SetStreamSelectionResponse - -## Example Usage - -```typescript -import { SetStreamSelectionResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: SetStreamSelectionResponse = { - contentType: "", - statusCode: 519273, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/shuffleresponse.md b/docs/sdk/models/operations/shuffleresponse.md deleted file mode 100644 index f0d8bac5..00000000 --- a/docs/sdk/models/operations/shuffleresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# ShuffleResponse - -## Example Usage - -```typescript -import { ShuffleResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: ShuffleResponse = { - contentType: "", - statusCode: 852610, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithPlaylistMetadata` | [shared.MediaContainerWithPlaylistMetadata](../../../sdk/models/shared/mediacontainerwithplaylistmetadata.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/splititemresponse.md b/docs/sdk/models/operations/splititemresponse.md deleted file mode 100644 index 5e88b1be..00000000 --- a/docs/sdk/models/operations/splititemresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# SplitItemResponse - -## Example Usage - -```typescript -import { SplitItemResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: SplitItemResponse = { - contentType: "", - statusCode: 584929, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/startanalysisresponse.md b/docs/sdk/models/operations/startanalysisresponse.md deleted file mode 100644 index 5c24cdbd..00000000 --- a/docs/sdk/models/operations/startanalysisresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# StartAnalysisResponse - -## Example Usage - -```typescript -import { StartAnalysisResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: StartAnalysisResponse = { - contentType: "", - statusCode: 509329, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/startbifgenerationresponse.md b/docs/sdk/models/operations/startbifgenerationresponse.md deleted file mode 100644 index 75d2d659..00000000 --- a/docs/sdk/models/operations/startbifgenerationresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# StartBifGenerationResponse - -## Example Usage - -```typescript -import { StartBifGenerationResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: StartBifGenerationResponse = { - contentType: "", - statusCode: 866355, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/starttaskrequest.md b/docs/sdk/models/operations/starttaskrequest.md deleted file mode 100644 index b54492a7..00000000 --- a/docs/sdk/models/operations/starttaskrequest.md +++ /dev/null @@ -1,28 +0,0 @@ -# StartTaskRequest - -## Example Usage - -```typescript -import { StartTaskButlerTask, StartTaskRequest } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: StartTaskRequest = { - butlerTask: StartTaskButlerTask.ButlerTaskGenerateIntroMarkers, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | -| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | -| `butlerTask` | [operations.StartTaskButlerTask](../../../sdk/models/operations/starttaskbutlertask.md) | :heavy_check_mark: | The task name | | \ No newline at end of file diff --git a/docs/sdk/models/operations/starttaskresponse.md b/docs/sdk/models/operations/starttaskresponse.md deleted file mode 100644 index f5ca8477..00000000 --- a/docs/sdk/models/operations/starttaskresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# StartTaskResponse - -## Example Usage - -```typescript -import { StartTaskResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: StartTaskResponse = { - contentType: "", - statusCode: 493804, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/starttasksresponse.md b/docs/sdk/models/operations/starttasksresponse.md deleted file mode 100644 index 4fbe2e17..00000000 --- a/docs/sdk/models/operations/starttasksresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# StartTasksResponse - -## Example Usage - -```typescript -import { StartTasksResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: StartTasksResponse = { - contentType: "", - statusCode: 538030, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/starttranscodesessionresponse.md b/docs/sdk/models/operations/starttranscodesessionresponse.md deleted file mode 100644 index 256da19d..00000000 --- a/docs/sdk/models/operations/starttranscodesessionresponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# StartTranscodeSessionResponse - -## Example Usage - -```typescript -import { StartTranscodeSessionResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `responseStream` | *ReadableStream* | :heavy_minus_sign: | MPD file (see ISO/IEC 23009-1:2022), m3u8 file (see RFC 8216), or binary http stream | \ No newline at end of file diff --git a/docs/sdk/models/operations/stopallrefreshesresponse.md b/docs/sdk/models/operations/stopallrefreshesresponse.md deleted file mode 100644 index d7afcd57..00000000 --- a/docs/sdk/models/operations/stopallrefreshesresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# StopAllRefreshesResponse - -## Example Usage - -```typescript -import { StopAllRefreshesResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: StopAllRefreshesResponse = { - contentType: "", - statusCode: 882197, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `librarySections` | [shared.LibrarySections](../../../sdk/models/shared/librarysections.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/stopdvrreloadresponse.md b/docs/sdk/models/operations/stopdvrreloadresponse.md deleted file mode 100644 index 7bec2441..00000000 --- a/docs/sdk/models/operations/stopdvrreloadresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# StopDVRReloadResponse - -## Example Usage - -```typescript -import { StopDVRReloadResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: StopDVRReloadResponse = { - contentType: "", - statusCode: 71569, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/stopscanresponse.md b/docs/sdk/models/operations/stopscanresponse.md deleted file mode 100644 index c4a1d614..00000000 --- a/docs/sdk/models/operations/stopscanresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# StopScanResponse - -## Example Usage - -```typescript -import { StopScanResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: StopScanResponse = { - contentType: "", - statusCode: 263501, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithDevice` | [shared.MediaContainerWithDevice](../../../sdk/models/shared/mediacontainerwithdevice.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/stoptaskrequest.md b/docs/sdk/models/operations/stoptaskrequest.md deleted file mode 100644 index a5f1693f..00000000 --- a/docs/sdk/models/operations/stoptaskrequest.md +++ /dev/null @@ -1,28 +0,0 @@ -# StopTaskRequest - -## Example Usage - -```typescript -import { StopTaskButlerTask, StopTaskRequest } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: StopTaskRequest = { - butlerTask: StopTaskButlerTask.RefreshPeriodicMetadata, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | -| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | -| `butlerTask` | [operations.StopTaskButlerTask](../../../sdk/models/operations/stoptaskbutlertask.md) | :heavy_check_mark: | The task name | | \ No newline at end of file diff --git a/docs/sdk/models/operations/stoptaskresponse.md b/docs/sdk/models/operations/stoptaskresponse.md deleted file mode 100644 index 819b80b2..00000000 --- a/docs/sdk/models/operations/stoptaskresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# StopTaskResponse - -## Example Usage - -```typescript -import { StopTaskResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: StopTaskResponse = { - contentType: "", - statusCode: 396930, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/stoptasksresponse.md b/docs/sdk/models/operations/stoptasksresponse.md deleted file mode 100644 index d6356a78..00000000 --- a/docs/sdk/models/operations/stoptasksresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# StopTasksResponse - -## Example Usage - -```typescript -import { StopTasksResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: StopTasksResponse = { - contentType: "", - statusCode: 469358, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/subscription1.md b/docs/sdk/models/operations/subscription1.md deleted file mode 100644 index cb340e61..00000000 --- a/docs/sdk/models/operations/subscription1.md +++ /dev/null @@ -1,26 +0,0 @@ -# Subscription1 - -If the account's Plex Pass subscription is active - -## Example Usage - -```typescript -import { Subscription1, SubscriptionStatus1 } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: Subscription1 = { - active: true, - subscribedAt: "2021-04-12T18:21:12Z", - status: SubscriptionStatus1.Inactive, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | -| `features` | *string*[] | :heavy_minus_sign: | List of features allowed on your Plex Pass subscription | | -| `active` | *boolean* | :heavy_minus_sign: | If the account's Plex Pass subscription is active | true | -| `subscribedAt` | *string* | :heavy_minus_sign: | Date the account subscribed to Plex Pass | 2021-04-12T18:21:12Z | -| `status` | [operations.SubscriptionStatus1](../../../sdk/models/operations/subscriptionstatus1.md) | :heavy_minus_sign: | String representation of subscriptionActive | Inactive | -| `paymentService` | *string* | :heavy_minus_sign: | Payment service used for your Plex Pass subscription | | -| `plan` | *string* | :heavy_minus_sign: | Name of Plex Pass subscription plan | | \ No newline at end of file diff --git a/docs/sdk/models/operations/subscription2.md b/docs/sdk/models/operations/subscription2.md deleted file mode 100644 index 4b74614b..00000000 --- a/docs/sdk/models/operations/subscription2.md +++ /dev/null @@ -1,24 +0,0 @@ -# Subscription2 - -## Example Usage - -```typescript -import { Subscription2, SubscriptionStatus2 } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: Subscription2 = { - active: true, - subscribedAt: "2021-04-12T18:21:12Z", - status: SubscriptionStatus2.Inactive, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | -| `features` | *string*[] | :heavy_minus_sign: | List of features allowed on your Plex Pass subscription | | -| `active` | *boolean* | :heavy_minus_sign: | If the account's Plex Pass subscription is active | true | -| `subscribedAt` | *string* | :heavy_minus_sign: | Date the account subscribed to Plex Pass | 2021-04-12T18:21:12Z | -| `status` | [operations.SubscriptionStatus2](../../../sdk/models/operations/subscriptionstatus2.md) | :heavy_minus_sign: | String representation of subscriptionActive | Inactive | -| `paymentService` | *string* | :heavy_minus_sign: | Payment service used for your Plex Pass subscription | | -| `plan` | *string* | :heavy_minus_sign: | Name of Plex Pass subscription plan | | \ No newline at end of file diff --git a/docs/sdk/models/operations/terminatesessionresponse.md b/docs/sdk/models/operations/terminatesessionresponse.md deleted file mode 100644 index b0e90650..00000000 --- a/docs/sdk/models/operations/terminatesessionresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# TerminateSessionResponse - -## Example Usage - -```typescript -import { TerminateSessionResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: TerminateSessionResponse = { - contentType: "", - statusCode: 283983, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/transcodeimageresponse.md b/docs/sdk/models/operations/transcodeimageresponse.md deleted file mode 100644 index 4dfd53d7..00000000 --- a/docs/sdk/models/operations/transcodeimageresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# TranscodeImageResponse - -## Example Usage - -```typescript -import { TranscodeImageResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredImageJpegResponseStream` | *ReadableStream* | :heavy_minus_sign: | The resulting image | -| `twoHundredImagePngResponseStream` | *ReadableStream* | :heavy_minus_sign: | The resulting image | -| `twoHundredImageXPortablePixmapResponseStream` | *ReadableStream* | :heavy_minus_sign: | The resulting image | \ No newline at end of file diff --git a/docs/sdk/models/operations/transcodejob.md b/docs/sdk/models/operations/transcodejob.md deleted file mode 100644 index c8c62479..00000000 --- a/docs/sdk/models/operations/transcodejob.md +++ /dev/null @@ -1,25 +0,0 @@ -# TranscodeJob - -## Example Usage - -```typescript -import { TranscodeJob } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: TranscodeJob = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `generatorID` | *number* | :heavy_minus_sign: | N/A | -| `key` | *string* | :heavy_minus_sign: | N/A | -| `progress` | *number* | :heavy_minus_sign: | N/A | -| `ratingKey` | *string* | :heavy_minus_sign: | N/A | -| `remaining` | *number* | :heavy_minus_sign: | The number of seconds remaining in this job | -| `size` | *number* | :heavy_minus_sign: | The size of the result so far | -| `speed` | *number* | :heavy_minus_sign: | The speed of the transcode; 1.0 means real-time | -| `targetTagID` | *number* | :heavy_minus_sign: | The tag associated with the job. This could be the tag containing the optimizer settings. | -| `thumb` | *string* | :heavy_minus_sign: | N/A | -| `title` | *string* | :heavy_minus_sign: | N/A | -| `type` | [operations.GetBackgroundTasksType](../../../sdk/models/operations/getbackgroundtaskstype.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/transcodesubtitlesresponse.md b/docs/sdk/models/operations/transcodesubtitlesresponse.md deleted file mode 100644 index 13b12d34..00000000 --- a/docs/sdk/models/operations/transcodesubtitlesresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# TranscodeSubtitlesResponse - -## Example Usage - -```typescript -import { TranscodeSubtitlesResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: TranscodeSubtitlesResponse = { - contentType: "", - statusCode: 143280, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/triggerfallbackrequest.md b/docs/sdk/models/operations/triggerfallbackrequest.md deleted file mode 100644 index 4157a3ac..00000000 --- a/docs/sdk/models/operations/triggerfallbackrequest.md +++ /dev/null @@ -1,30 +0,0 @@ -# TriggerFallbackRequest - -## Example Usage - -```typescript -import { TriggerFallbackRequest } from "@lukehagar/plexjs/sdk/models/operations"; -import { TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: TriggerFallbackRequest = { - transcodeType: TranscodeType.Video, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | -| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `deviceName` | *string* | :heavy_minus_sign: | 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/triggerfallbackresponse.md b/docs/sdk/models/operations/triggerfallbackresponse.md deleted file mode 100644 index 0dd705d0..00000000 --- a/docs/sdk/models/operations/triggerfallbackresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# TriggerFallbackResponse - -## Example Usage - -```typescript -import { TriggerFallbackResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: TriggerFallbackResponse = { - contentType: "", - statusCode: 241633, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/tunechannelresponse.md b/docs/sdk/models/operations/tunechannelresponse.md deleted file mode 100644 index e8762dfd..00000000 --- a/docs/sdk/models/operations/tunechannelresponse.md +++ /dev/null @@ -1,31 +0,0 @@ -# TuneChannelResponse - -## Example Usage - -```typescript -import { TuneChannelResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: TuneChannelResponse = { - contentType: "", - statusCode: 231608, - headers: { - "key": [], - "key1": [ - "", - "", - "", - ], - "key2": [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithMetadata` | [shared.MediaContainerWithMetadata](../../../sdk/models/shared/mediacontainerwithmetadata.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/unmatchresponse.md b/docs/sdk/models/operations/unmatchresponse.md deleted file mode 100644 index 908a4d36..00000000 --- a/docs/sdk/models/operations/unmatchresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# UnmatchResponse - -## Example Usage - -```typescript -import { UnmatchResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: UnmatchResponse = { - contentType: "", - statusCode: 342499, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/unscrobbleresponse.md b/docs/sdk/models/operations/unscrobbleresponse.md deleted file mode 100644 index f7b860e8..00000000 --- a/docs/sdk/models/operations/unscrobbleresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# UnscrobbleResponse - -## Example Usage - -```typescript -import { UnscrobbleResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: UnscrobbleResponse = { - contentType: "", - statusCode: 571161, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/unshuffleresponse.md b/docs/sdk/models/operations/unshuffleresponse.md deleted file mode 100644 index c82a5ba0..00000000 --- a/docs/sdk/models/operations/unshuffleresponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# UnshuffleResponse - -## Example Usage - -```typescript -import { UnshuffleResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: UnshuffleResponse = { - contentType: "", - statusCode: 776636, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `mediaContainerWithPlaylistMetadata` | [shared.MediaContainerWithPlaylistMetadata](../../../sdk/models/shared/mediacontainerwithplaylistmetadata.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/updatehubvisibilityresponse.md b/docs/sdk/models/operations/updatehubvisibilityresponse.md deleted file mode 100644 index 9f88c188..00000000 --- a/docs/sdk/models/operations/updatehubvisibilityresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# UpdateHubVisibilityResponse - -## Example Usage - -```typescript -import { UpdateHubVisibilityResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: UpdateHubVisibilityResponse = { - contentType: "", - statusCode: 940225, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/updateitemartworkrequest.md b/docs/sdk/models/operations/updateitemartworkrequest.md deleted file mode 100644 index dd678737..00000000 --- a/docs/sdk/models/operations/updateitemartworkrequest.md +++ /dev/null @@ -1,31 +0,0 @@ -# UpdateItemArtworkRequest - -## Example Usage - -```typescript -import { UpdateItemArtworkElement, UpdateItemArtworkRequest } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: UpdateItemArtworkRequest = { - ids: "", - element: UpdateItemArtworkElement.Art, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | -| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `deviceName` | *string* | :heavy_minus_sign: | 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/updateitemartworkresponse.md b/docs/sdk/models/operations/updateitemartworkresponse.md deleted file mode 100644 index 1e114aba..00000000 --- a/docs/sdk/models/operations/updateitemartworkresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# UpdateItemArtworkResponse - -## Example Usage - -```typescript -import { UpdateItemArtworkResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: UpdateItemArtworkResponse = { - contentType: "", - statusCode: 982490, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/updateitemsresponse.md b/docs/sdk/models/operations/updateitemsresponse.md deleted file mode 100644 index 5e5b4c64..00000000 --- a/docs/sdk/models/operations/updateitemsresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# UpdateItemsResponse - -## Example Usage - -```typescript -import { UpdateItemsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: UpdateItemsResponse = { - contentType: "", - statusCode: 655878, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/updateplaylistresponse.md b/docs/sdk/models/operations/updateplaylistresponse.md deleted file mode 100644 index a27e950e..00000000 --- a/docs/sdk/models/operations/updateplaylistresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# UpdatePlaylistResponse - -## Example Usage - -```typescript -import { UpdatePlaylistResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: UpdatePlaylistResponse = { - contentType: "", - statusCode: 379815, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/uploadplaylistresponse.md b/docs/sdk/models/operations/uploadplaylistresponse.md deleted file mode 100644 index 8788236a..00000000 --- a/docs/sdk/models/operations/uploadplaylistresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# UploadPlaylistResponse - -## Example Usage - -```typescript -import { UploadPlaylistResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: UploadPlaylistResponse = { - contentType: "", - statusCode: 525326, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/user.md b/docs/sdk/models/operations/user.md deleted file mode 100644 index c39cc83d..00000000 --- a/docs/sdk/models/operations/user.md +++ /dev/null @@ -1,80 +0,0 @@ -# User - -## Example Usage - -```typescript -import { - AllLibraries, - AllowCameraUpload, - AllowChannels, - AllowSubtitleAdmin, - AllowSync, - AllowTuners, - Home, - Owned, - Pending, - Protected, - Restricted, - User, -} from "@lukehagar/plexjs/sdk/models/operations"; - -let value: User = { - id: 22526914, - title: "Plex User", - username: "zgfuc7krcqfimrmb9lsl5j", - email: "zgfuc7krcqfimrmb9lsl5j@protonmail.com", - recommendationsPlaylistId: "", - thumb: "https://plex.tv/users/3346028014e93acd/avatar?c=1731605021", - protected: Protected.Enable, - home: Home.Enable, - allowTuners: AllowTuners.Enable, - allowSync: AllowSync.Enable, - allowCameraUpload: AllowCameraUpload.Enable, - allowChannels: AllowChannels.Enable, - allowSubtitleAdmin: AllowSubtitleAdmin.Enable, - filterAll: "", - filterMovies: "", - filterMusic: "", - filterPhotos: "", - filterTelevision: "", - restricted: Restricted.Enable, - server: [ - { - id: 907759180, - serverId: 9999999, - machineIdentifier: "fbb8aa6be6e0c997c6268bc2b4431c8807f70a3", - name: "ConnectedUserFlix", - lastSeenAt: 1556281940, - numLibraries: 16, - allLibraries: AllLibraries.Enable, - owned: Owned.Enable, - pending: Pending.Enable, - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `id` | *number* | :heavy_check_mark: | User's unique ID. | 22526914 | -| `title` | *string* | :heavy_check_mark: | User's display name. | Plex User | -| `username` | *string* | :heavy_check_mark: | User's username. | zgfuc7krcqfimrmb9lsl5j | -| `email` | *string* | :heavy_check_mark: | User's email address. | zgfuc7krcqfimrmb9lsl5j@protonmail.com | -| `recommendationsPlaylistId` | *string* | :heavy_minus_sign: | ID of the user's recommendation playlist. | | -| `thumb` | *string* | :heavy_check_mark: | URL to the user's avatar image. | https://plex.tv/users/3346028014e93acd/avatar?c=1731605021 | -| `protected` | [operations.Protected](../../../sdk/models/operations/protected.md) | :heavy_minus_sign: | N/A | 1 | -| `home` | [operations.Home](../../../sdk/models/operations/home.md) | :heavy_minus_sign: | N/A | 1 | -| `allowTuners` | [operations.AllowTuners](../../../sdk/models/operations/allowtuners.md) | :heavy_minus_sign: | N/A | 1 | -| `allowSync` | [operations.AllowSync](../../../sdk/models/operations/allowsync.md) | :heavy_minus_sign: | N/A | 1 | -| `allowCameraUpload` | [operations.AllowCameraUpload](../../../sdk/models/operations/allowcameraupload.md) | :heavy_minus_sign: | N/A | 1 | -| `allowChannels` | [operations.AllowChannels](../../../sdk/models/operations/allowchannels.md) | :heavy_minus_sign: | N/A | 1 | -| `allowSubtitleAdmin` | [operations.AllowSubtitleAdmin](../../../sdk/models/operations/allowsubtitleadmin.md) | :heavy_minus_sign: | N/A | 1 | -| `filterAll` | *string* | :heavy_minus_sign: | Filters applied for all content. | | -| `filterMovies` | *string* | :heavy_minus_sign: | Filters applied for movies. | | -| `filterMusic` | *string* | :heavy_minus_sign: | Filters applied for music. | | -| `filterPhotos` | *string* | :heavy_minus_sign: | Filters applied for photos. | | -| `filterTelevision` | *string* | :heavy_minus_sign: | Filters applied for television. | | -| `restricted` | [operations.Restricted](../../../sdk/models/operations/restricted.md) | :heavy_minus_sign: | N/A | 1 | -| `server` | [operations.Server](../../../sdk/models/operations/server.md)[] | :heavy_check_mark: | List of servers owned by the user. | | \ No newline at end of file diff --git a/docs/sdk/models/operations/voicesearchhubsresponse.md b/docs/sdk/models/operations/voicesearchhubsresponse.md deleted file mode 100644 index 9007ac5c..00000000 --- a/docs/sdk/models/operations/voicesearchhubsresponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# VoiceSearchHubsResponse - -## Example Usage - -```typescript -import { VoiceSearchHubsResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: VoiceSearchHubsResponse = { - contentType: "", - statusCode: 332632, - headers: { - "key": [ - "", - "", - "", - ], - "key1": [ - "", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.VoiceSearchHubsResponseBody](../../../sdk/models/operations/voicesearchhubsresponsebody.md) | :heavy_minus_sign: | OK | -| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/writelogresponse.md b/docs/sdk/models/operations/writelogresponse.md deleted file mode 100644 index d76fe60f..00000000 --- a/docs/sdk/models/operations/writelogresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# WriteLogResponse - -## Example Usage - -```typescript -import { WriteLogResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: WriteLogResponse = { - contentType: "", - statusCode: 270431, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/operations/writemessageresponse.md b/docs/sdk/models/operations/writemessageresponse.md deleted file mode 100644 index 0c34eeb7..00000000 --- a/docs/sdk/models/operations/writemessageresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# WriteMessageResponse - -## Example Usage - -```typescript -import { WriteMessageResponse } from "@lukehagar/plexjs/sdk/models/operations"; - -let value: WriteMessageResponse = { - contentType: "", - statusCode: 609077, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/shared/connection.md b/docs/sdk/models/shared/connection.md deleted file mode 100644 index 9159a089..00000000 --- a/docs/sdk/models/shared/connection.md +++ /dev/null @@ -1,29 +0,0 @@ -# Connection - -## Example Usage - -```typescript -import { Connection, PlexDeviceProtocol } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: Connection = { - protocol: PlexDeviceProtocol.Http, - address: "4285 E Central Avenue", - port: 663268, - uri: "https://decent-hippodrome.org/", - local: false, - relay: true, - iPv6: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `protocol` | [shared.PlexDeviceProtocol](../../../sdk/models/shared/plexdeviceprotocol.md) | :heavy_check_mark: | The protocol used for the connection (http, https, etc) | http | -| `address` | *string* | :heavy_check_mark: | The (ip) address or domain name used for the connection | | -| `port` | *number* | :heavy_check_mark: | The port used for the connection | | -| `uri` | *string* | :heavy_check_mark: | The full URI of the connection | | -| `local` | *boolean* | :heavy_check_mark: | If the connection is local address | | -| `relay` | *boolean* | :heavy_check_mark: | If the connection is relayed through plex.direct | | -| `iPv6` | *boolean* | :heavy_check_mark: | If the connection is using IPv6 | | \ No newline at end of file diff --git a/docs/sdk/models/shared/decision.md b/docs/sdk/models/shared/decision.md deleted file mode 100644 index 88f5776b..00000000 --- a/docs/sdk/models/shared/decision.md +++ /dev/null @@ -1,17 +0,0 @@ -# Decision - -## Example Usage - -```typescript -import { Decision } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: Decision = Decision.Directplay; -``` - -## Values - -| Name | Value | -| ------------ | ------------ | -| `Directplay` | directplay | -| `Transcode` | transcode | -| `None` | none | \ No newline at end of file diff --git a/docs/sdk/models/shared/defaultdirection.md b/docs/sdk/models/shared/defaultdirection.md deleted file mode 100644 index 9bd28488..00000000 --- a/docs/sdk/models/shared/defaultdirection.md +++ /dev/null @@ -1,18 +0,0 @@ -# DefaultDirection - -This default diction of this sort - -## Example Usage - -```typescript -import { DefaultDirection } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: DefaultDirection = DefaultDirection.Desc; -``` - -## Values - -| Name | Value | -| ------ | ------ | -| `Asc` | asc | -| `Desc` | desc | \ No newline at end of file diff --git a/docs/sdk/models/shared/defaultenum.md b/docs/sdk/models/shared/defaultenum.md deleted file mode 100644 index fc8de2d6..00000000 --- a/docs/sdk/models/shared/defaultenum.md +++ /dev/null @@ -1,18 +0,0 @@ -# DefaultEnum - -If present, this sort is the default and in this direction - -## Example Usage - -```typescript -import { DefaultEnum } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: DefaultEnum = DefaultEnum.Asc; -``` - -## Values - -| Name | Value | -| ------ | ------ | -| `Asc` | asc | -| `Desc` | desc | \ No newline at end of file diff --git a/docs/sdk/models/shared/defaultsubtitleaccessibility.md b/docs/sdk/models/shared/defaultsubtitleaccessibility.md deleted file mode 100644 index 08f5c63b..00000000 --- a/docs/sdk/models/shared/defaultsubtitleaccessibility.md +++ /dev/null @@ -1,21 +0,0 @@ -# DefaultSubtitleAccessibility - -The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only show non-SDH subtitles) - -## Example Usage - -```typescript -import { DefaultSubtitleAccessibility } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: DefaultSubtitleAccessibility = - DefaultSubtitleAccessibility.PreferSdh; -``` - -## Values - -| Name | Value | -| -------------- | -------------- | -| `PreferNonSdh` | 0 | -| `PreferSdh` | 1 | -| `OnlySdh` | 2 | -| `OnlyNonSdh` | 3 | \ No newline at end of file diff --git a/docs/sdk/models/shared/defaultsubtitleforced.md b/docs/sdk/models/shared/defaultsubtitleforced.md deleted file mode 100644 index c7f9d83f..00000000 --- a/docs/sdk/models/shared/defaultsubtitleforced.md +++ /dev/null @@ -1,20 +0,0 @@ -# DefaultSubtitleForced - -The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) - -## Example Usage - -```typescript -import { DefaultSubtitleForced } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: DefaultSubtitleForced = DefaultSubtitleForced.PreferForced; -``` - -## Values - -| Name | Value | -| ----------------- | ----------------- | -| `PreferNonForced` | 0 | -| `PreferForced` | 1 | -| `OnlyForced` | 2 | -| `OnlyNonForced` | 3 | \ No newline at end of file diff --git a/docs/sdk/models/shared/device.md b/docs/sdk/models/shared/device.md deleted file mode 100644 index c224688b..00000000 --- a/docs/sdk/models/shared/device.md +++ /dev/null @@ -1,27 +0,0 @@ -# Device - -## Example Usage - -```typescript -import { Device } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: Device = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `channelMapping` | [shared.ChannelMapping](../../../sdk/models/shared/channelmapping.md)[] | :heavy_minus_sign: | N/A | -| `key` | *string* | :heavy_minus_sign: | N/A | -| `lastSeenAt` | *number* | :heavy_minus_sign: | N/A | -| `make` | *string* | :heavy_minus_sign: | N/A | -| `model` | *string* | :heavy_minus_sign: | N/A | -| `modelNumber` | *string* | :heavy_minus_sign: | N/A | -| `protocol` | *string* | :heavy_minus_sign: | N/A | -| `sources` | *string* | :heavy_minus_sign: | N/A | -| `state` | *string* | :heavy_minus_sign: | N/A | -| `status` | *string* | :heavy_minus_sign: | N/A | -| `tuners` | *string* | :heavy_minus_sign: | N/A | -| `uri` | *string* | :heavy_minus_sign: | N/A | -| `uuid` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/directory.md b/docs/sdk/models/shared/directory.md deleted file mode 100644 index 8e7fa6de..00000000 --- a/docs/sdk/models/shared/directory.md +++ /dev/null @@ -1,30 +0,0 @@ -# Directory - -## Example Usage - -```typescript -import { Directory } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: Directory = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `title` | *string* | :heavy_minus_sign: | N/A | -| `type` | *string* | :heavy_minus_sign: | N/A | -| `art` | *string* | :heavy_minus_sign: | N/A | -| `content` | *boolean* | :heavy_minus_sign: | N/A | -| `filter` | *string* | :heavy_minus_sign: | N/A | -| `hasPrefs` | *boolean* | :heavy_minus_sign: | N/A | -| `hasStoreServices` | *boolean* | :heavy_minus_sign: | N/A | -| `hubKey` | *string* | :heavy_minus_sign: | N/A | -| `identifier` | *string* | :heavy_minus_sign: | N/A | -| `key` | *string* | :heavy_minus_sign: | N/A | -| `lastAccessedAt` | *number* | :heavy_minus_sign: | N/A | -| `pivot` | [shared.DirectoryPivot](../../../sdk/models/shared/directorypivot.md)[] | :heavy_minus_sign: | N/A | -| `share` | *number* | :heavy_minus_sign: | N/A | -| `thumb` | *string* | :heavy_minus_sign: | N/A | -| `titleBar` | *string* | :heavy_minus_sign: | N/A | -| `additionalProperties` | Record | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/dvr.md b/docs/sdk/models/shared/dvr.md deleted file mode 100644 index 831120c8..00000000 --- a/docs/sdk/models/shared/dvr.md +++ /dev/null @@ -1,19 +0,0 @@ -# Dvr - -## Example Usage - -```typescript -import { Dvr } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: Dvr = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `device` | [shared.Device](../../../sdk/models/shared/device.md)[] | :heavy_minus_sign: | N/A | -| `key` | *string* | :heavy_minus_sign: | N/A | -| `language` | *string* | :heavy_minus_sign: | N/A | -| `lineup` | *string* | :heavy_minus_sign: | N/A | -| `uuid` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/getresponses200.md b/docs/sdk/models/shared/getresponses200.md deleted file mode 100644 index e3349a4c..00000000 --- a/docs/sdk/models/shared/getresponses200.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetResponses200 - -OK - -## Example Usage - -```typescript -import { GetResponses200 } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: GetResponses200 = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [shared.GetResponses200MediaContainer](../../../sdk/models/shared/getresponses200mediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/historyallgetresponses200.md b/docs/sdk/models/shared/historyallgetresponses200.md deleted file mode 100644 index d8bf9eb9..00000000 --- a/docs/sdk/models/shared/historyallgetresponses200.md +++ /dev/null @@ -1,17 +0,0 @@ -# HistoryAllGetResponses200 - -OK - -## Example Usage - -```typescript -import { HistoryAllGetResponses200 } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: HistoryAllGetResponses200 = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [shared.HistoryAllGetResponses200MediaContainer](../../../sdk/models/shared/historyallgetresponses200mediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/homevisibility.md b/docs/sdk/models/shared/homevisibility.md deleted file mode 100644 index 24838904..00000000 --- a/docs/sdk/models/shared/homevisibility.md +++ /dev/null @@ -1,25 +0,0 @@ -# HomeVisibility - -Whether this hub is visible on the home screen - - all: Visible to all users - - none: Visible to no users - - admin: Visible to only admin users - - shared: Visible to shared users - - -## Example Usage - -```typescript -import { HomeVisibility } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: HomeVisibility = HomeVisibility.All; -``` - -## Values - -| Name | Value | -| -------- | -------- | -| `All` | all | -| `None` | none | -| `Admin` | admin | -| `Shared` | shared | \ No newline at end of file diff --git a/docs/sdk/models/shared/imagetype.md b/docs/sdk/models/shared/imagetype.md deleted file mode 100644 index 393aa55c..00000000 --- a/docs/sdk/models/shared/imagetype.md +++ /dev/null @@ -1,21 +0,0 @@ -# ImageType - -Describes both the purpose and intended presentation of the image. - -## Example Usage - -```typescript -import { ImageType } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: ImageType = ImageType.ClearLogo; -``` - -## Values - -| Name | Value | -| ------------- | ------------- | -| `Background` | background | -| `Banner` | banner | -| `ClearLogo` | clearLogo | -| `CoverPoster` | coverPoster | -| `Snapshot` | snapshot | \ No newline at end of file diff --git a/docs/sdk/models/shared/librarysections.md b/docs/sdk/models/shared/librarysections.md deleted file mode 100644 index 95583063..00000000 --- a/docs/sdk/models/shared/librarysections.md +++ /dev/null @@ -1,26 +0,0 @@ -# LibrarySections - -OK - -## Example Usage - -```typescript -import { LibrarySections } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: LibrarySections = { - mediaContainer: { - livetv: 7, - machineIdentifier: "0123456789abcdef0123456789abcdef012345678", - musicAnalysis: 2, - myPlexMappingState: "mapped", - myPlexSigninState: "ok", - offlineTranscode: 1, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [shared.LibrarySectionsMediaContainer](../../../sdk/models/shared/librarysectionsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/lineuptype.md b/docs/sdk/models/shared/lineuptype.md deleted file mode 100644 index b6fad01c..00000000 --- a/docs/sdk/models/shared/lineuptype.md +++ /dev/null @@ -1,28 +0,0 @@ -# LineupType - -- `-1`: N/A -- `0`: Over the air -- `1`: Cable -- `2`: Satellite -- `3`: IPTV -- `4`: Virtual - - -## Example Usage - -```typescript -import { LineupType } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: LineupType = LineupType.Two; -``` - -## Values - -| Name | Value | -| -------- | -------- | -| `Minus1` | -1 | -| `Zero` | 0 | -| `One` | 1 | -| `Two` | 2 | -| `Three` | 3 | -| `Four` | 4 | \ No newline at end of file diff --git a/docs/sdk/models/shared/mailingliststatus.md b/docs/sdk/models/shared/mailingliststatus.md deleted file mode 100644 index 8af335d7..00000000 --- a/docs/sdk/models/shared/mailingliststatus.md +++ /dev/null @@ -1,19 +0,0 @@ -# MailingListStatus - -Your current mailing list status - -## Example Usage - -```typescript -import { MailingListStatus } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: MailingListStatus = MailingListStatus.Active; -``` - -## Values - -| Name | Value | -| -------------- | -------------- | -| `Active` | active | -| `Unsubscribed` | unsubscribed | -| `Removed` | removed | \ No newline at end of file diff --git a/docs/sdk/models/shared/media.md b/docs/sdk/models/shared/media.md deleted file mode 100644 index 855e4e91..00000000 --- a/docs/sdk/models/shared/media.md +++ /dev/null @@ -1,126 +0,0 @@ -# Media - -`Media` represents an one or more media files (parts) and is a child of a metadata item. There aren't necessarily any guaranteed attributes on media elements since the attributes will vary based on the type. The possible attributes are not documented here, but they typically have self-evident names. High-level media information that can be used for badging and flagging, such as `videoResolution` and codecs, is included on the media element. - - -## Example Usage - -```typescript -import { Media } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: 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: [ - { - accessible: true, - audioProfile: "lc", - container: "mov", - duration: 150192, - exists: true, - file: "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - has64bitOffsets: false, - id: 1, - indexes: "sd", - key: "/library/parts/1/1531779263/file.mov", - optimizedForStreaming: false, - size: 105355654, - stream: [ - { - default: true, - audioChannelLayout: "5.1(side)", - channels: 6, - bitDepth: 10, - doviblCompatID: 1, - doviblPresent: true, - dovielPresent: false, - doviLevel: 6, - doviPresent: true, - doviProfile: 8, - dovirpuPresent: true, - doviVersion: "1.0", - bitrate: 24743, - canAutoSync: false, - chromaLocation: "topleft", - chromaSubsampling: "4:2:0", - codedHeight: 1608, - codedWidth: 3840, - closedCaptions: true, - codec: "hevc", - colorPrimaries: "bt2020", - colorRange: "tv", - colorSpace: "bt2020nc", - colorTrc: "smpte2084", - displayTitle: "4K DoVi/HDR10 (HEVC Main 10)", - extendedDisplayTitle: "4K DoVi/HDR10 (HEVC Main 10)", - frameRate: 23.976, - hasScalingMatrix: false, - height: 1602, - id: 1002625, - index: 0, - key: "/library/streams/216389", - language: "English", - languageCode: "eng", - languageTag: "en", - format: "srt", - headerCompression: true, - level: 150, - original: true, - profile: "main 10", - refFrames: 1, - samplingRate: 48000, - scanType: "progressive", - embeddedInVideo: "progressive", - selected: true, - forced: true, - hearingImpaired: true, - dub: true, - title: "SDH", - streamIdentifier: 1, - width: 3840, - }, - ], - videoProfile: "main", - }, - ], - videoCodec: "h264", - videoFrameRate: "24p", - videoProfile: "main", - videoResolution: "720", - width: 1280, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | -| `aspectRatio` | *number* | :heavy_minus_sign: | N/A | 2.35 | -| `audioChannels` | *number* | :heavy_minus_sign: | N/A | 2 | -| `audioCodec` | *string* | :heavy_minus_sign: | N/A | aac | -| `audioProfile` | *string* | :heavy_minus_sign: | N/A | lc | -| `bitrate` | *number* | :heavy_minus_sign: | N/A | 5612 | -| `container` | *string* | :heavy_minus_sign: | N/A | mov | -| `duration` | *number* | :heavy_minus_sign: | N/A | 150192 | -| `has64bitOffsets` | *boolean* | :heavy_minus_sign: | N/A | false | -| `hasVoiceActivity` | *boolean* | :heavy_minus_sign: | N/A | true | -| `height` | *number* | :heavy_minus_sign: | N/A | 544 | -| `id` | *number* | :heavy_check_mark: | N/A | 1 | -| `optimizedForStreaming` | *boolean* | :heavy_minus_sign: | N/A | false | -| `part` | [shared.Part](../../../sdk/models/shared/part.md)[] | :heavy_minus_sign: | N/A | | -| `videoCodec` | *string* | :heavy_minus_sign: | N/A | h264 | -| `videoFrameRate` | *string* | :heavy_minus_sign: | N/A | 24p | -| `videoProfile` | *string* | :heavy_minus_sign: | N/A | main | -| `videoResolution` | *string* | :heavy_minus_sign: | N/A | 720 | -| `width` | *number* | :heavy_minus_sign: | N/A | 1280 | -| `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediacontainerwithartwork.md b/docs/sdk/models/shared/mediacontainerwithartwork.md deleted file mode 100644 index 0684365f..00000000 --- a/docs/sdk/models/shared/mediacontainerwithartwork.md +++ /dev/null @@ -1,15 +0,0 @@ -# MediaContainerWithArtwork - -## Example Usage - -```typescript -import { MediaContainerWithArtwork } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: MediaContainerWithArtwork = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [shared.MediaContainerWithArtworkMediaContainer](../../../sdk/models/shared/mediacontainerwithartworkmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediacontainerwithartworkmetadatum.md b/docs/sdk/models/shared/mediacontainerwithartworkmetadatum.md deleted file mode 100644 index 20f4beb6..00000000 --- a/docs/sdk/models/shared/mediacontainerwithartworkmetadatum.md +++ /dev/null @@ -1,18 +0,0 @@ -# MediaContainerWithArtworkMetadatum - -## Example Usage - -```typescript -import { MediaContainerWithArtworkMetadatum } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: MediaContainerWithArtworkMetadatum = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | -| `title` | *string* | :heavy_minus_sign: | The title of the item | -| `type` | [shared.MediaContainerWithArtworkType](../../../sdk/models/shared/mediacontainerwithartworktype.md) | :heavy_minus_sign: | N/A | -| `key` | *string* | :heavy_minus_sign: | The path to the artwork | -| `additionalProperties` | Record | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediacontainerwithdecisionlocation.md b/docs/sdk/models/shared/mediacontainerwithdecisionlocation.md deleted file mode 100644 index 36c50681..00000000 --- a/docs/sdk/models/shared/mediacontainerwithdecisionlocation.md +++ /dev/null @@ -1,23 +0,0 @@ -# MediaContainerWithDecisionLocation - -## Example Usage - -```typescript -import { MediaContainerWithDecisionLocation } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: MediaContainerWithDecisionLocation = - MediaContainerWithDecisionLocation.SidecarSubs; -``` - -## Values - -| Name | Value | -| --------------- | --------------- | -| `Direct` | direct | -| `SidecarSubs` | sidecar-subs | -| `SegmentsVideo` | segments-video | -| `SegmentsAudio` | segments-audio | -| `SegmentsAv` | segments-av | -| `SegmentsSubs` | segments-subs | -| `Embedded` | embedded | -| `Sidecar` | sidecar | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediacontainerwithdecisionmedia.md b/docs/sdk/models/shared/mediacontainerwithdecisionmedia.md deleted file mode 100644 index b62a205d..00000000 --- a/docs/sdk/models/shared/mediacontainerwithdecisionmedia.md +++ /dev/null @@ -1,129 +0,0 @@ -# MediaContainerWithDecisionMedia - -`Media` represents an one or more media files (parts) and is a child of a metadata item. There aren't necessarily any guaranteed attributes on media elements since the attributes will vary based on the type. The possible attributes are not documented here, but they typically have self-evident names. High-level media information that can be used for badging and flagging, such as `videoResolution` and codecs, is included on the media element. - - -## Example Usage - -```typescript -import { MediaContainerWithDecisionMedia } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: MediaContainerWithDecisionMedia = { - 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: [ - { - accessible: true, - audioProfile: "lc", - container: "mov", - duration: 150192, - exists: true, - file: "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - has64bitOffsets: false, - id: 1, - indexes: "sd", - key: "/library/parts/1/1531779263/file.mov", - optimizedForStreaming: false, - size: 105355654, - stream: [ - { - default: true, - audioChannelLayout: "5.1(side)", - channels: 6, - bitDepth: 10, - doviblCompatID: 1, - doviblPresent: true, - dovielPresent: false, - doviLevel: 6, - doviPresent: true, - doviProfile: 8, - dovirpuPresent: true, - doviVersion: "1.0", - bitrate: 24743, - canAutoSync: false, - chromaLocation: "topleft", - chromaSubsampling: "4:2:0", - codedHeight: 1608, - codedWidth: 3840, - closedCaptions: true, - codec: "hevc", - colorPrimaries: "bt2020", - colorRange: "tv", - colorSpace: "bt2020nc", - colorTrc: "smpte2084", - displayTitle: "4K DoVi/HDR10 (HEVC Main 10)", - extendedDisplayTitle: "4K DoVi/HDR10 (HEVC Main 10)", - frameRate: 23.976, - hasScalingMatrix: false, - height: 1602, - id: 1002625, - index: 0, - key: "/library/streams/216389", - language: "English", - languageCode: "eng", - languageTag: "en", - format: "srt", - headerCompression: true, - level: 150, - original: true, - profile: "main 10", - refFrames: 1, - samplingRate: 48000, - scanType: "progressive", - embeddedInVideo: "progressive", - selected: true, - forced: true, - hearingImpaired: true, - dub: true, - title: "SDH", - streamIdentifier: 1, - width: 3840, - }, - ], - videoProfile: "main", - }, - ], - videoCodec: "h264", - videoFrameRate: "24p", - videoProfile: "main", - videoResolution: "720", - width: 1280, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | -| `aspectRatio` | *number* | :heavy_minus_sign: | N/A | 2.35 | -| `audioChannels` | *number* | :heavy_minus_sign: | N/A | 2 | -| `audioCodec` | *string* | :heavy_minus_sign: | N/A | aac | -| `audioProfile` | *string* | :heavy_minus_sign: | N/A | lc | -| `bitrate` | *number* | :heavy_minus_sign: | N/A | 5612 | -| `container` | *string* | :heavy_minus_sign: | N/A | mov | -| `duration` | *number* | :heavy_minus_sign: | N/A | 150192 | -| `has64bitOffsets` | *boolean* | :heavy_minus_sign: | N/A | false | -| `hasVoiceActivity` | *boolean* | :heavy_minus_sign: | N/A | true | -| `height` | *number* | :heavy_minus_sign: | N/A | 544 | -| `id` | *number* | :heavy_check_mark: | N/A | 1 | -| `optimizedForStreaming` | *boolean* | :heavy_minus_sign: | N/A | false | -| `part` | [shared.MediaContainerWithDecisionPart](../../../sdk/models/shared/mediacontainerwithdecisionpart.md)[] | :heavy_minus_sign: | N/A | | -| `videoCodec` | *string* | :heavy_minus_sign: | N/A | h264 | -| `videoFrameRate` | *string* | :heavy_minus_sign: | N/A | 24p | -| `videoProfile` | *string* | :heavy_minus_sign: | N/A | main | -| `videoResolution` | *string* | :heavy_minus_sign: | N/A | 720 | -| `width` | *number* | :heavy_minus_sign: | N/A | 1280 | -| `abr` | *boolean* | :heavy_minus_sign: | N/A | | -| `resourceSession` | *string* | :heavy_minus_sign: | N/A | | -| `selected` | *boolean* | :heavy_minus_sign: | N/A | | -| `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediacontainerwithdecisionstream.md b/docs/sdk/models/shared/mediacontainerwithdecisionstream.md deleted file mode 100644 index 2cfba073..00000000 --- a/docs/sdk/models/shared/mediacontainerwithdecisionstream.md +++ /dev/null @@ -1,124 +0,0 @@ -# MediaContainerWithDecisionStream - -`Stream` represents a particular stream from a media item, such as the video stream, audio stream, or subtitle stream. The stream may either be part of the file represented by the parent `Part` or, especially for subtitles, an external file. The stream contains more detailed information about the specific stream. For example, a video may include the `aspectRatio` at the `Media` level, but detailed information about the video stream like the color space will be included on the `Stream` for the video stream. Note that photos do not have streams (mostly as an optimization). - - -## Example Usage - -```typescript -import { MediaContainerWithDecisionStream } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: MediaContainerWithDecisionStream = { - default: true, - audioChannelLayout: "5.1(side)", - channels: 6, - bitDepth: 10, - doviblCompatID: 1, - doviblPresent: true, - dovielPresent: false, - doviLevel: 6, - doviPresent: true, - doviProfile: 8, - dovirpuPresent: true, - doviVersion: "1.0", - bitrate: 24743, - canAutoSync: false, - chromaLocation: "topleft", - chromaSubsampling: "4:2:0", - codedHeight: 1608, - codedWidth: 3840, - closedCaptions: true, - codec: "hevc", - colorPrimaries: "bt2020", - colorRange: "tv", - colorSpace: "bt2020nc", - colorTrc: "smpte2084", - displayTitle: "4K DoVi/HDR10 (HEVC Main 10)", - extendedDisplayTitle: "4K DoVi/HDR10 (HEVC Main 10)", - frameRate: 23.976, - hasScalingMatrix: false, - height: 1602, - id: 1002625, - index: 0, - key: "/library/streams/216389", - language: "English", - languageCode: "eng", - languageTag: "en", - format: "srt", - headerCompression: true, - level: 150, - original: true, - profile: "main 10", - refFrames: 1, - samplingRate: 48000, - scanType: "progressive", - embeddedInVideo: "progressive", - selected: true, - forced: true, - hearingImpaired: true, - dub: true, - title: "SDH", - streamIdentifier: 1, - width: 3840, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `default` | *boolean* | :heavy_minus_sign: | Indicates if this stream is default. | true | -| `audioChannelLayout` | *string* | :heavy_minus_sign: | Audio channel layout. | 5.1(side) | -| `channels` | *number* | :heavy_minus_sign: | Number of audio channels (for audio streams). | 6 | -| `bitDepth` | *number* | :heavy_minus_sign: | Bit depth of the video stream. | 10 | -| `doviblCompatID` | *number* | :heavy_minus_sign: | Dolby Vision BL compatibility ID. | 1 | -| `doviblPresent` | *boolean* | :heavy_minus_sign: | Indicates if Dolby Vision BL is present. | true | -| `dovielPresent` | *boolean* | :heavy_minus_sign: | Indicates if Dolby Vision EL is present. | false | -| `doviLevel` | *number* | :heavy_minus_sign: | Dolby Vision level. | 6 | -| `doviPresent` | *boolean* | :heavy_minus_sign: | Indicates if Dolby Vision is present. | true | -| `doviProfile` | *number* | :heavy_minus_sign: | Dolby Vision profile. | 8 | -| `dovirpuPresent` | *boolean* | :heavy_minus_sign: | Indicates if Dolby Vision RPU is present. | true | -| `doviVersion` | *string* | :heavy_minus_sign: | Dolby Vision version. | 1.0 | -| `bitrate` | *number* | :heavy_minus_sign: | Bitrate of the stream. | 24743 | -| `canAutoSync` | *boolean* | :heavy_minus_sign: | Indicates if the stream can auto-sync. | false | -| `chromaLocation` | *string* | :heavy_minus_sign: | Chroma sample location. | topleft | -| `chromaSubsampling` | *string* | :heavy_minus_sign: | Chroma subsampling format. | 4:2:0 | -| `codedHeight` | *number* | :heavy_minus_sign: | Coded video height. | 1608 | -| `codedWidth` | *number* | :heavy_minus_sign: | Coded video width. | 3840 | -| `closedCaptions` | *boolean* | :heavy_minus_sign: | N/A | true | -| `codec` | *string* | :heavy_check_mark: | Codec used by the stream. | hevc | -| `colorPrimaries` | *string* | :heavy_minus_sign: | Color primaries used. | bt2020 | -| `colorRange` | *string* | :heavy_minus_sign: | Color range (e.g., tv). | tv | -| `colorSpace` | *string* | :heavy_minus_sign: | Color space. | bt2020nc | -| `colorTrc` | *string* | :heavy_minus_sign: | Color transfer characteristics. | smpte2084 | -| `displayTitle` | *string* | :heavy_check_mark: | Display title for the stream. | 4K DoVi/HDR10 (HEVC Main 10) | -| `extendedDisplayTitle` | *string* | :heavy_minus_sign: | Extended display title for the stream. | 4K DoVi/HDR10 (HEVC Main 10) | -| `frameRate` | *number* | :heavy_minus_sign: | Frame rate of the stream. | 23.976 | -| `hasScalingMatrix` | *boolean* | :heavy_minus_sign: | N/A | false | -| `height` | *number* | :heavy_minus_sign: | Height of the video stream. | 1602 | -| `id` | *number* | :heavy_check_mark: | Unique stream identifier. | 1002625 | -| `index` | *number* | :heavy_minus_sign: | Index of the stream. | 0 | -| `key` | *string* | :heavy_check_mark: | Key to access this stream part. | /library/streams/216389 | -| `language` | *string* | :heavy_minus_sign: | Language of the stream. | English | -| `languageCode` | *string* | :heavy_minus_sign: | ISO language code. | eng | -| `languageTag` | *string* | :heavy_minus_sign: | Language tag (e.g., en). | en | -| `format` | *string* | :heavy_minus_sign: | Format of the stream (e.g., srt). | srt | -| `headerCompression` | *boolean* | :heavy_minus_sign: | Indicates whether header compression is enabled. | true | -| `level` | *number* | :heavy_minus_sign: | Video level. | 150 | -| `original` | *boolean* | :heavy_minus_sign: | Indicates if this is the original stream. | true | -| `profile` | *string* | :heavy_minus_sign: | Video profile. | main 10 | -| `refFrames` | *number* | :heavy_minus_sign: | Number of reference frames. | 1 | -| `samplingRate` | *number* | :heavy_minus_sign: | Sampling rate for the audio stream. | 48000 | -| `scanType` | *string* | :heavy_minus_sign: | N/A | progressive | -| `embeddedInVideo` | *string* | :heavy_minus_sign: | N/A | progressive | -| `selected` | *boolean* | :heavy_minus_sign: | Indicates if this stream is selected (applicable for audio streams). | true | -| `forced` | *boolean* | :heavy_minus_sign: | N/A | true | -| `hearingImpaired` | *boolean* | :heavy_minus_sign: | Indicates if the stream is for the hearing impaired. | true | -| `dub` | *boolean* | :heavy_minus_sign: | Indicates if the stream is a dub. | true | -| `title` | *string* | :heavy_minus_sign: | Optional title for the stream (e.g., language variant). | SDH | -| `streamIdentifier` | *number* | :heavy_minus_sign: | N/A | 1 | -| `streamType` | *number* | :heavy_check_mark: | Stream type:
- VIDEO = 1
- AUDIO = 2
- SUBTITLE = 3
| | -| `width` | *number* | :heavy_minus_sign: | Width of the video stream. | 3840 | -| `decision` | [shared.StreamDecision](../../../sdk/models/shared/streamdecision.md) | :heavy_minus_sign: | N/A | | -| `location` | [shared.MediaContainerWithDecisionLocation](../../../sdk/models/shared/mediacontainerwithdecisionlocation.md) | :heavy_minus_sign: | N/A | | -| `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediacontainerwithdevice.md b/docs/sdk/models/shared/mediacontainerwithdevice.md deleted file mode 100644 index 63c2ebb0..00000000 --- a/docs/sdk/models/shared/mediacontainerwithdevice.md +++ /dev/null @@ -1,15 +0,0 @@ -# MediaContainerWithDevice - -## Example Usage - -```typescript -import { MediaContainerWithDevice } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: MediaContainerWithDevice = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [shared.MediaContainerWithDeviceMediaContainer](../../../sdk/models/shared/mediacontainerwithdevicemediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediacontainerwithdevicedevice.md b/docs/sdk/models/shared/mediacontainerwithdevicedevice.md deleted file mode 100644 index 3d927729..00000000 --- a/docs/sdk/models/shared/mediacontainerwithdevicedevice.md +++ /dev/null @@ -1,27 +0,0 @@ -# MediaContainerWithDeviceDevice - -## Example Usage - -```typescript -import { MediaContainerWithDeviceDevice } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: MediaContainerWithDeviceDevice = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `channelMapping` | [shared.ChannelMapping](../../../sdk/models/shared/channelmapping.md)[] | :heavy_minus_sign: | N/A | -| `key` | *string* | :heavy_minus_sign: | N/A | -| `lastSeenAt` | *number* | :heavy_minus_sign: | N/A | -| `make` | *string* | :heavy_minus_sign: | N/A | -| `model` | *string* | :heavy_minus_sign: | N/A | -| `modelNumber` | *string* | :heavy_minus_sign: | N/A | -| `protocol` | *string* | :heavy_minus_sign: | N/A | -| `sources` | *string* | :heavy_minus_sign: | N/A | -| `state` | *string* | :heavy_minus_sign: | N/A | -| `status` | *string* | :heavy_minus_sign: | N/A | -| `tuners` | *string* | :heavy_minus_sign: | N/A | -| `uri` | *string* | :heavy_minus_sign: | N/A | -| `uuid` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediacontainerwithdirectory.md b/docs/sdk/models/shared/mediacontainerwithdirectory.md deleted file mode 100644 index f854f3dc..00000000 --- a/docs/sdk/models/shared/mediacontainerwithdirectory.md +++ /dev/null @@ -1,15 +0,0 @@ -# MediaContainerWithDirectory - -## Example Usage - -```typescript -import { MediaContainerWithDirectory } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: MediaContainerWithDirectory = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [shared.MediaContainerWithDirectoryMediaContainer](../../../sdk/models/shared/mediacontainerwithdirectorymediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediacontainerwithlineup.md b/docs/sdk/models/shared/mediacontainerwithlineup.md deleted file mode 100644 index d6f9b971..00000000 --- a/docs/sdk/models/shared/mediacontainerwithlineup.md +++ /dev/null @@ -1,15 +0,0 @@ -# MediaContainerWithLineup - -## Example Usage - -```typescript -import { MediaContainerWithLineup } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: MediaContainerWithLineup = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [shared.MediaContainerWithLineupMediaContainer](../../../sdk/models/shared/mediacontainerwithlineupmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediacontainerwithsettings.md b/docs/sdk/models/shared/mediacontainerwithsettings.md deleted file mode 100644 index 524b6c32..00000000 --- a/docs/sdk/models/shared/mediacontainerwithsettings.md +++ /dev/null @@ -1,15 +0,0 @@ -# MediaContainerWithSettings - -## Example Usage - -```typescript -import { MediaContainerWithSettings } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: MediaContainerWithSettings = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [shared.MediaContainerWithSettingsMediaContainer](../../../sdk/models/shared/mediacontainerwithsettingsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediagraboperationstatus.md b/docs/sdk/models/shared/mediagraboperationstatus.md deleted file mode 100644 index a21245e1..00000000 --- a/docs/sdk/models/shared/mediagraboperationstatus.md +++ /dev/null @@ -1,22 +0,0 @@ -# MediaGrabOperationStatus - -## Example Usage - -```typescript -import { MediaGrabOperationStatus } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: MediaGrabOperationStatus = MediaGrabOperationStatus.Error; -``` - -## Values - -| Name | Value | -| ---------------- | ---------------- | -| `Inactive` | inactive | -| `Scheduled` | scheduled | -| `Inprogress` | inprogress | -| `Complete` | complete | -| `Cancelled` | cancelled | -| `Error` | error | -| `Postprocessing` | postprocessing | -| `Paused` | paused | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediareviewsvisibility.md b/docs/sdk/models/shared/mediareviewsvisibility.md deleted file mode 100644 index 0a496d67..00000000 --- a/docs/sdk/models/shared/mediareviewsvisibility.md +++ /dev/null @@ -1,20 +0,0 @@ -# MediaReviewsVisibility - -Whether or not the account has media reviews visibility enabled - -## Example Usage - -```typescript -import { MediaReviewsVisibility } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: MediaReviewsVisibility = MediaReviewsVisibility.CriticsOnly; -``` - -## Values - -| Name | Value | -| --------------------- | --------------------- | -| `NoOne` | 0 | -| `CriticsOnly` | 1 | -| `PlexUsersOnly` | 2 | -| `PlexUsersAndCritics` | 3 | \ No newline at end of file diff --git a/docs/sdk/models/shared/mediatypestring.md b/docs/sdk/models/shared/mediatypestring.md deleted file mode 100644 index ffc4ce37..00000000 --- a/docs/sdk/models/shared/mediatypestring.md +++ /dev/null @@ -1,27 +0,0 @@ -# MediaTypeString - -The type of media content in the Plex library. This can represent videos, music, or photos. - - -## Example Usage - -```typescript -import { MediaTypeString } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: MediaTypeString = MediaTypeString.Movie; -``` - -## Values - -| Name | Value | -| ------------ | ------------ | -| `Movie` | movie | -| `TvShow` | show | -| `Season` | season | -| `Episode` | episode | -| `Artist` | artist | -| `Album` | album | -| `Track` | track | -| `PhotoAlbum` | photoalbum | -| `Photo` | photo | -| `Collection` | collection | \ No newline at end of file diff --git a/docs/sdk/models/shared/playlisttype.md b/docs/sdk/models/shared/playlisttype.md deleted file mode 100644 index 37c152ed..00000000 --- a/docs/sdk/models/shared/playlisttype.md +++ /dev/null @@ -1,19 +0,0 @@ -# PlaylistType - -The type of the playlist. - -## Example Usage - -```typescript -import { PlaylistType } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: PlaylistType = PlaylistType.Video; -``` - -## Values - -| Name | Value | -| ------- | ------- | -| `Audio` | audio | -| `Video` | video | -| `Photo` | photo | \ No newline at end of file diff --git a/docs/sdk/models/shared/plexdeviceprotocol.md b/docs/sdk/models/shared/plexdeviceprotocol.md deleted file mode 100644 index 3e1366d6..00000000 --- a/docs/sdk/models/shared/plexdeviceprotocol.md +++ /dev/null @@ -1,18 +0,0 @@ -# PlexDeviceProtocol - -The protocol used for the connection (http, https, etc) - -## Example Usage - -```typescript -import { PlexDeviceProtocol } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: PlexDeviceProtocol = PlexDeviceProtocol.Http; -``` - -## Values - -| Name | Value | -| ------- | ------- | -| `Http` | http | -| `Https` | https | \ No newline at end of file diff --git a/docs/sdk/models/shared/postresponses200.md b/docs/sdk/models/shared/postresponses200.md deleted file mode 100644 index 1a058e0b..00000000 --- a/docs/sdk/models/shared/postresponses200.md +++ /dev/null @@ -1,17 +0,0 @@ -# PostResponses200 - -OK - -## Example Usage - -```typescript -import { PostResponses200 } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: PostResponses200 = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [shared.PostResponses200MediaContainer](../../../sdk/models/shared/postresponses200mediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/recommendationsvisibility.md b/docs/sdk/models/shared/recommendationsvisibility.md deleted file mode 100644 index 3cf11f16..00000000 --- a/docs/sdk/models/shared/recommendationsvisibility.md +++ /dev/null @@ -1,25 +0,0 @@ -# RecommendationsVisibility - -The visibility of this hub in recommendations: - - all: Visible to all users - - none: Visible to no users - - admin: Visible to only admin users - - shared: Visible to shared users - - -## Example Usage - -```typescript -import { RecommendationsVisibility } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: RecommendationsVisibility = RecommendationsVisibility.Admin; -``` - -## Values - -| Name | Value | -| -------- | -------- | -| `All` | all | -| `None` | none | -| `Admin` | admin | -| `Shared` | shared | \ No newline at end of file diff --git a/docs/sdk/models/shared/service.md b/docs/sdk/models/shared/service.md deleted file mode 100644 index 357fc100..00000000 --- a/docs/sdk/models/shared/service.md +++ /dev/null @@ -1,25 +0,0 @@ -# Service - -## Example Usage - -```typescript -import { Service, ServiceStatus } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: Service = { - identifier: "metadata-dev", - endpoint: "https://epg.provider.plex.tv", - token: "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv", - secret: "", - status: ServiceStatus.Online, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `identifier` | *string* | :heavy_check_mark: | N/A | metadata-dev | -| `endpoint` | *string* | :heavy_check_mark: | N/A | https://epg.provider.plex.tv | -| `token` | *string* | :heavy_check_mark: | N/A | DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv | -| `secret` | *string* | :heavy_check_mark: | N/A | | -| `status` | [shared.ServiceStatus](../../../sdk/models/shared/servicestatus.md) | :heavy_check_mark: | N/A | online | \ No newline at end of file diff --git a/docs/sdk/models/shared/session.md b/docs/sdk/models/shared/session.md deleted file mode 100644 index ffd56a02..00000000 --- a/docs/sdk/models/shared/session.md +++ /dev/null @@ -1,19 +0,0 @@ -# Session - -Information about the playback session - -## Example Usage - -```typescript -import { Session } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: Session = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `bandwidth` | *number* | :heavy_minus_sign: | The bandwidth used by this client's playback in kbps | -| `id` | *string* | :heavy_minus_sign: | The id of the playback session | -| `location` | [shared.SessionLocation](../../../sdk/models/shared/sessionlocation.md) | :heavy_minus_sign: | The location of the client | \ No newline at end of file diff --git a/docs/sdk/models/shared/sessionlocation.md b/docs/sdk/models/shared/sessionlocation.md deleted file mode 100644 index 884ecf43..00000000 --- a/docs/sdk/models/shared/sessionlocation.md +++ /dev/null @@ -1,18 +0,0 @@ -# SessionLocation - -The location of the client - -## Example Usage - -```typescript -import { SessionLocation } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: SessionLocation = SessionLocation.Wan; -``` - -## Values - -| Name | Value | -| ----- | ----- | -| `Lan` | lan | -| `Wan` | wan | \ No newline at end of file diff --git a/docs/sdk/models/shared/settingtype.md b/docs/sdk/models/shared/settingtype.md deleted file mode 100644 index 12c9f2fd..00000000 --- a/docs/sdk/models/shared/settingtype.md +++ /dev/null @@ -1,20 +0,0 @@ -# SettingType - -The type of the value of this setting - -## Example Usage - -```typescript -import { SettingType } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: SettingType = SettingType.Double; -``` - -## Values - -| Name | Value | -| -------- | -------- | -| `Bool` | bool | -| `Int` | int | -| `Text` | text | -| `Double` | double | \ No newline at end of file diff --git a/docs/sdk/models/shared/streamdecision.md b/docs/sdk/models/shared/streamdecision.md deleted file mode 100644 index 0021c43d..00000000 --- a/docs/sdk/models/shared/streamdecision.md +++ /dev/null @@ -1,20 +0,0 @@ -# StreamDecision - -## Example Usage - -```typescript -import { StreamDecision } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: StreamDecision = StreamDecision.Unavailable; -``` - -## Values - -| Name | Value | -| ------------- | ------------- | -| `Copy` | copy | -| `Transcode` | transcode | -| `Burn` | burn | -| `Unavailable` | unavailable | -| `Ignore` | ignore | -| `None` | none | \ No newline at end of file diff --git a/docs/sdk/models/shared/subscription1.md b/docs/sdk/models/shared/subscription1.md deleted file mode 100644 index 23f0aff8..00000000 --- a/docs/sdk/models/shared/subscription1.md +++ /dev/null @@ -1,26 +0,0 @@ -# Subscription1 - -If the account's Plex Pass subscription is active - -## Example Usage - -```typescript -import { Subscription1, SubscriptionStatus1 } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: Subscription1 = { - active: true, - subscribedAt: "2021-04-12T18:21:12Z", - status: SubscriptionStatus1.Inactive, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | -| `features` | *string*[] | :heavy_minus_sign: | List of features allowed on your Plex Pass subscription | | -| `active` | *boolean* | :heavy_minus_sign: | If the account's Plex Pass subscription is active | true | -| `subscribedAt` | *string* | :heavy_minus_sign: | Date the account subscribed to Plex Pass | 2021-04-12T18:21:12Z | -| `status` | [shared.SubscriptionStatus1](../../../sdk/models/shared/subscriptionstatus1.md) | :heavy_minus_sign: | String representation of subscriptionActive | Inactive | -| `paymentService` | *string* | :heavy_minus_sign: | Payment service used for your Plex Pass subscription | | -| `plan` | *string* | :heavy_minus_sign: | Name of Plex Pass subscription plan | | \ No newline at end of file diff --git a/docs/sdk/models/shared/subscription2.md b/docs/sdk/models/shared/subscription2.md deleted file mode 100644 index 0486247b..00000000 --- a/docs/sdk/models/shared/subscription2.md +++ /dev/null @@ -1,24 +0,0 @@ -# Subscription2 - -## Example Usage - -```typescript -import { Subscription2, SubscriptionStatus2 } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: Subscription2 = { - active: true, - subscribedAt: "2021-04-12T18:21:12Z", - status: SubscriptionStatus2.Inactive, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | -| `features` | *string*[] | :heavy_minus_sign: | List of features allowed on your Plex Pass subscription | | -| `active` | *boolean* | :heavy_minus_sign: | If the account's Plex Pass subscription is active | true | -| `subscribedAt` | *string* | :heavy_minus_sign: | Date the account subscribed to Plex Pass | 2021-04-12T18:21:12Z | -| `status` | [shared.SubscriptionStatus2](../../../sdk/models/shared/subscriptionstatus2.md) | :heavy_minus_sign: | String representation of subscriptionActive | Inactive | -| `paymentService` | *string* | :heavy_minus_sign: | Payment service used for your Plex Pass subscription | | -| `plan` | *string* | :heavy_minus_sign: | Name of Plex Pass subscription plan | | \ No newline at end of file diff --git a/docs/sdk/models/shared/typeresponse.md b/docs/sdk/models/shared/typeresponse.md deleted file mode 100644 index f1f29519..00000000 --- a/docs/sdk/models/shared/typeresponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# TypeResponse - -## Example Usage - -```typescript -import { TypeResponse } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: TypeResponse = TypeResponse.Bookmark; -``` - -## Values - -| Name | Value | -| ------------ | ------------ | -| `Intro` | intro | -| `Commercial` | commercial | -| `Bookmark` | bookmark | -| `Resume` | resume | -| `Credit` | credit | \ No newline at end of file diff --git a/docs/sdk/models/shared/userprofile.md b/docs/sdk/models/shared/userprofile.md deleted file mode 100644 index 2f551143..00000000 --- a/docs/sdk/models/shared/userprofile.md +++ /dev/null @@ -1,44 +0,0 @@ -# UserProfile - -## Example Usage - -```typescript -import { - AutoSelectSubtitle, - DefaultSubtitleAccessibility, - DefaultSubtitleForced, - MediaReviewsVisibility, - UserProfile, - WatchedIndicator, -} from "@lukehagar/plexjs/sdk/models/shared"; - -let value: UserProfile = { - defaultAudioLanguage: "ja", - defaultAudioLanguages: null, - defaultSubtitleLanguage: "en", - defaultSubtitleLanguages: null, - autoSelectSubtitle: AutoSelectSubtitle.ShownWithForeignAudio, - defaultSubtitleAccessibility: DefaultSubtitleAccessibility.PreferSdh, - defaultSubtitleForced: DefaultSubtitleForced.PreferForced, - watchedIndicator: WatchedIndicator.MoviesAndTvShows, - mediaReviewsVisibility: MediaReviewsVisibility.CriticsOnly, - mediaReviewsLanguages: null, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `autoSelectAudio` | *boolean* | :heavy_minus_sign: | If the account has automatically select audio and subtitle tracks enabled | true | -| `defaultAudioLanguage` | *string* | :heavy_check_mark: | The preferred audio language for the account | ja | -| `defaultAudioAccessibility` | [shared.DefaultAudioAccessibility](../../../sdk/models/shared/defaultaudioaccessibility.md) | :heavy_minus_sign: | N/A | 0 | -| `defaultAudioLanguages` | *string*[] | :heavy_minus_sign: | The preferred audio languages for the account | | -| `defaultSubtitleLanguage` | *string* | :heavy_check_mark: | The preferred subtitle language for the account | en | -| `defaultSubtitleLanguages` | *string*[] | :heavy_minus_sign: | The preferred subtitle languages for the account | | -| `autoSelectSubtitle` | [shared.AutoSelectSubtitle](../../../sdk/models/shared/autoselectsubtitle.md) | :heavy_minus_sign: | N/A | 1 | -| `defaultSubtitleAccessibility` | [shared.DefaultSubtitleAccessibility](../../../sdk/models/shared/defaultsubtitleaccessibility.md) | :heavy_minus_sign: | N/A | 1 | -| `defaultSubtitleForced` | [shared.DefaultSubtitleForced](../../../sdk/models/shared/defaultsubtitleforced.md) | :heavy_minus_sign: | N/A | 1 | -| `watchedIndicator` | [shared.WatchedIndicator](../../../sdk/models/shared/watchedindicator.md) | :heavy_minus_sign: | N/A | 1 | -| `mediaReviewsVisibility` | [shared.MediaReviewsVisibility](../../../sdk/models/shared/mediareviewsvisibility.md) | :heavy_minus_sign: | N/A | 1 | -| `mediaReviewsLanguages` | *string*[] | :heavy_minus_sign: | The languages for media reviews visibility | | \ No newline at end of file diff --git a/docs/sdk/models/shared/watchedindicator.md b/docs/sdk/models/shared/watchedindicator.md deleted file mode 100644 index 3412eeaf..00000000 --- a/docs/sdk/models/shared/watchedindicator.md +++ /dev/null @@ -1,20 +0,0 @@ -# WatchedIndicator - -Whether or not media watched indicators are enabled (little orange dot on media) - -## Example Usage - -```typescript -import { WatchedIndicator } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: WatchedIndicator = WatchedIndicator.MoviesAndTvShows; -``` - -## Values - -| Name | Value | -| ------------------ | ------------------ | -| `None` | 0 | -| `MoviesAndTvShows` | 1 | -| `Movies` | 2 | -| `TvShows` | 3 | \ No newline at end of file diff --git a/docs/sdks/activities/README.md b/docs/sdks/activities/README.md index bd091b83..e1d830a3 100644 --- a/docs/sdks/activities/README.md +++ b/docs/sdks/activities/README.md @@ -75,7 +75,7 @@ run(); ### Response -**Promise\<[operations.ListActivitiesResponse](../../sdk/models/operations/listactivitiesresponse.md)\>** +**Promise\<[operations.ListActivitiesResponse](../../models/operations/listactivitiesresponse.md)\>** ### Errors @@ -92,7 +92,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -110,11 +110,11 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.activities.cancelActivity({ + await plexAPI.activities.cancelActivity({ activityId: "d6199ba1-fb5e-4cae-bf17-1a5369c1cf1e", }); - console.log(result); + } run(); @@ -127,7 +127,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -152,7 +152,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("activitiesCancelActivity failed:", res.error); } @@ -165,14 +165,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.CancelActivityRequest](../../sdk/models/operations/cancelactivityrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.CancelActivityRequest](../../models/operations/cancelactivityrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.CancelActivityResponse](../../sdk/models/operations/cancelactivityresponse.md)\>** +**Promise\** ### Errors diff --git a/docs/sdks/authentication/README.md b/docs/sdks/authentication/README.md index a83831ae..1de59976 100644 --- a/docs/sdks/authentication/README.md +++ b/docs/sdks/authentication/README.md @@ -17,7 +17,7 @@ Get the User data from the provided X-Plex-Token ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -50,7 +50,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { authenticationGetTokenDetails } from "@lukehagar/plexjs/funcs/authenticationGetTokenDetails.js"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -86,7 +86,7 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetTokenDetailsRequest](../../sdk/models/operations/gettokendetailsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetTokenDetailsRequest](../../models/operations/gettokendetailsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -94,7 +94,7 @@ run(); ### Response -**Promise\<[operations.GetTokenDetailsResponse](../../sdk/models/operations/gettokendetailsresponse.md)\>** +**Promise\<[shared.UserPlexAccount](../../models/shared/userplexaccount.md)\>** ### Errors @@ -113,7 +113,7 @@ Sign in user with username and password and return user data with Plex authentic ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -151,7 +151,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { authenticationPostUsersSignInData } from "@lukehagar/plexjs/funcs/authenticationPostUsersSignInData.js"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -192,7 +192,7 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.PostUsersSignInDataRequest](../../sdk/models/operations/postuserssignindatarequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.PostUsersSignInDataRequest](../../models/operations/postuserssignindatarequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -200,7 +200,7 @@ run(); ### Response -**Promise\<[operations.PostUsersSignInDataResponse](../../sdk/models/operations/postuserssignindataresponse.md)\>** +**Promise\<[operations.UserPlexAccount](../../models/operations/userplexaccount.md)\>** ### Errors diff --git a/docs/sdks/butler/README.md b/docs/sdks/butler/README.md index c6576721..accdfc7e 100644 --- a/docs/sdks/butler/README.md +++ b/docs/sdks/butler/README.md @@ -28,9 +28,9 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.butler.stopTasks(); + await plexAPI.butler.stopTasks(); + - console.log(result); } run(); @@ -54,7 +54,7 @@ async function run() { const res = await butlerStopTasks(plexAPI); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("butlerStopTasks failed:", res.error); } @@ -73,7 +73,7 @@ run(); ### Response -**Promise\<[operations.StopTasksResponse](../../sdk/models/operations/stoptasksresponse.md)\>** +**Promise\** ### Errors @@ -142,7 +142,7 @@ run(); ### Response -**Promise\<[operations.GetTasksResponse](../../sdk/models/operations/gettasksresponse.md)\>** +**Promise\<[operations.GetTasksResponse](../../models/operations/gettasksresponse.md)\>** ### Errors @@ -171,9 +171,9 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.butler.startTasks(); + await plexAPI.butler.startTasks(); + - console.log(result); } run(); @@ -197,7 +197,7 @@ async function run() { const res = await butlerStartTasks(plexAPI); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("butlerStartTasks failed:", res.error); } @@ -216,7 +216,7 @@ run(); ### Response -**Promise\<[operations.StartTasksResponse](../../sdk/models/operations/starttasksresponse.md)\>** +**Promise\** ### Errors @@ -234,8 +234,8 @@ This endpoint will stop a currently running task by name, or remove it from the ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { StopTaskButlerTask } from "@lukehagar/plexjs/sdk/models/operations"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { StopTaskButlerTask } from "@lukehagar/plexjs/models/operations"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -253,11 +253,11 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.butler.stopTask({ + await plexAPI.butler.stopTask({ butlerTask: StopTaskButlerTask.CleanOldBundles, }); - console.log(result); + } run(); @@ -270,8 +270,8 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { butlerStopTask } from "@lukehagar/plexjs/funcs/butlerStopTask.js"; -import { StopTaskButlerTask } from "@lukehagar/plexjs/sdk/models/operations"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { StopTaskButlerTask } from "@lukehagar/plexjs/models/operations"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -296,7 +296,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("butlerStopTask failed:", res.error); } @@ -309,14 +309,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.StopTaskRequest](../../sdk/models/operations/stoptaskrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.StopTaskRequest](../../models/operations/stoptaskrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.StopTaskResponse](../../sdk/models/operations/stoptaskresponse.md)\>** +**Promise\** ### Errors @@ -334,8 +334,8 @@ This endpoint will attempt to start a specific Butler task by name. ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { StartTaskButlerTask } from "@lukehagar/plexjs/sdk/models/operations"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { StartTaskButlerTask } from "@lukehagar/plexjs/models/operations"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -353,11 +353,11 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.butler.startTask({ + await plexAPI.butler.startTask({ butlerTask: StartTaskButlerTask.RefreshLocalMedia, }); - console.log(result); + } run(); @@ -370,8 +370,8 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { butlerStartTask } from "@lukehagar/plexjs/funcs/butlerStartTask.js"; -import { StartTaskButlerTask } from "@lukehagar/plexjs/sdk/models/operations"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { StartTaskButlerTask } from "@lukehagar/plexjs/models/operations"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -396,7 +396,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("butlerStartTask failed:", res.error); } @@ -409,14 +409,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.StartTaskRequest](../../sdk/models/operations/starttaskrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.StartTaskRequest](../../models/operations/starttaskrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.StartTaskResponse](../../sdk/models/operations/starttaskresponse.md)\>** +**Promise\** ### Errors diff --git a/docs/sdks/collections/README.md b/docs/sdks/collections/README.md index 52e27abf..f982a6a6 100644 --- a/docs/sdks/collections/README.md +++ b/docs/sdks/collections/README.md @@ -18,7 +18,7 @@ Create a collection in the library ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, MediaType } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, MediaType } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -54,7 +54,7 @@ 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, MediaType } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, MediaType } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -93,14 +93,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.CreateCollectionRequest](../../sdk/models/operations/createcollectionrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.CreateCollectionRequest](../../models/operations/createcollectionrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.CreateCollectionResponse](../../sdk/models/operations/createcollectionresponse.md)\>** +**Promise\<[shared.MediaContainerWithMetadata](../../models/shared/mediacontainerwithmetadata.md)\>** ### Errors diff --git a/docs/sdks/content/README.md b/docs/sdks/content/README.md index 5dbfc78d..799ad9dd 100644 --- a/docs/sdks/content/README.md +++ b/docs/sdks/content/README.md @@ -30,7 +30,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -65,7 +65,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -103,14 +103,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetCollectionItemsRequest](../../sdk/models/operations/getcollectionitemsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetCollectionItemsRequest](../../models/operations/getcollectionitemsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetCollectionItemsResponse](../../sdk/models/operations/getcollectionitemsresponse.md)\>** +**Promise\<[shared.MediaContainerWithMetadata](../../models/shared/mediacontainerwithmetadata.md)\>** ### Errors @@ -127,7 +127,7 @@ Get one or more metadata items. ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -170,7 +170,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { contentGetMetadataItem } from "@lukehagar/plexjs/funcs/contentGetMetadataItem.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -216,14 +216,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetMetadataItemRequest](../../sdk/models/operations/getmetadataitemrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetMetadataItemRequest](../../models/operations/getmetadataitemrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetMetadataItemResponse](../../sdk/models/operations/getmetadataitemresponse.md)\>** +**Promise\<[operations.GetMetadataItemResponse](../../models/operations/getmetadataitemresponse.md)\>** ### Errors @@ -240,7 +240,7 @@ Get all albums in a music section ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -275,7 +275,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -313,14 +313,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetAlbumsRequest](../../sdk/models/operations/getalbumsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetAlbumsRequest](../../models/operations/getalbumsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetAlbumsResponse](../../sdk/models/operations/getalbumsresponse.md)\>** +**Promise\<[shared.MediaContainerWithMetadata](../../models/shared/mediacontainerwithmetadata.md)\>** ### Errors @@ -337,7 +337,7 @@ Get the items in a section, potentially filtering them ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt, MediaType } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt, MediaType } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -379,7 +379,7 @@ 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, BoolInt, MediaType } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt, MediaType } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -424,14 +424,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListContentRequest](../../sdk/models/operations/listcontentrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.ListContentRequest](../../models/operations/listcontentrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.ListContentResponse](../../sdk/models/operations/listcontentresponse.md)\>** +**Promise\<[operations.ListContentResponse](../../models/operations/listcontentresponse.md)\>** ### Errors @@ -448,7 +448,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -483,7 +483,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -521,14 +521,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetAllLeavesRequest](../../sdk/models/operations/getallleavesrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetAllLeavesRequest](../../models/operations/getallleavesrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetAllLeavesResponse](../../sdk/models/operations/getallleavesresponse.md)\>** +**Promise\<[shared.MediaContainerWithMetadata](../../models/shared/mediacontainerwithmetadata.md)\>** ### Errors @@ -545,7 +545,7 @@ Get artwork for a library section ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -580,7 +580,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -618,14 +618,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetArtsRequest](../../sdk/models/operations/getartsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetArtsRequest](../../models/operations/getartsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetArtsResponse](../../sdk/models/operations/getartsresponse.md)\>** +**Promise\<[shared.MediaContainerWithArtwork](../../models/shared/mediacontainerwithartwork.md)\>** ### Errors @@ -642,7 +642,7 @@ Get categories in a library section ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -677,7 +677,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -715,14 +715,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetCategoriesRequest](../../sdk/models/operations/getcategoriesrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetCategoriesRequest](../../models/operations/getcategoriesrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetCategoriesResponse](../../sdk/models/operations/getcategoriesresponse.md)\>** +**Promise\<[shared.MediaContainerWithArtwork](../../models/shared/mediacontainerwithartwork.md)\>** ### Errors @@ -739,7 +739,7 @@ Get clusters in a library section (typically for photos) ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -774,7 +774,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -812,14 +812,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetClusterRequest](../../sdk/models/operations/getclusterrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetClusterRequest](../../models/operations/getclusterrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetClusterResponse](../../sdk/models/operations/getclusterresponse.md)\>** +**Promise\<[shared.MediaContainerWithArtwork](../../models/shared/mediacontainerwithartwork.md)\>** ### Errors @@ -836,7 +836,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -873,7 +873,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -913,14 +913,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetSonicPathRequest](../../sdk/models/operations/getsonicpathrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetSonicPathRequest](../../models/operations/getsonicpathrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetSonicPathResponse](../../sdk/models/operations/getsonicpathresponse.md)\>** +**Promise\<[shared.MediaContainerWithMetadata](../../models/shared/mediacontainerwithmetadata.md)\>** ### Errors @@ -937,7 +937,7 @@ Get all folder locations of the media in a section ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -972,7 +972,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -1010,14 +1010,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetFoldersRequest](../../sdk/models/operations/getfoldersrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetFoldersRequest](../../models/operations/getfoldersrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetFoldersResponse](../../sdk/models/operations/getfoldersresponse.md)\>** +**Promise\<[operations.GetFoldersResponse](../../models/operations/getfoldersresponse.md)\>** ### Errors @@ -1034,7 +1034,7 @@ Get moments in a library section (typically for photos) ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1069,7 +1069,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -1107,14 +1107,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListMomentsRequest](../../sdk/models/operations/listmomentsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.ListMomentsRequest](../../models/operations/listmomentsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.ListMomentsResponse](../../sdk/models/operations/listmomentsresponse.md)\>** +**Promise\<[shared.MediaContainerWithArtwork](../../models/shared/mediacontainerwithartwork.md)\>** ### Errors @@ -1131,7 +1131,7 @@ Get the nearest audio tracks to a particular analysis ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1167,7 +1167,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -1206,14 +1206,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetSonicallySimilarRequest](../../sdk/models/operations/getsonicallysimilarrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetSonicallySimilarRequest](../../models/operations/getsonicallysimilarrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetSonicallySimilarResponse](../../sdk/models/operations/getsonicallysimilarresponse.md)\>** +**Promise\<[shared.MediaContainerWithMetadata](../../models/shared/mediacontainerwithmetadata.md)\>** ### Errors @@ -1230,7 +1230,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1266,7 +1266,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -1305,14 +1305,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetCollectionImageRequest](../../sdk/models/operations/getcollectionimagerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetCollectionImageRequest](../../models/operations/getcollectionimagerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetCollectionImageResponse](../../sdk/models/operations/getcollectionimageresponse.md)\>** +**Promise\<[ReadableStream](../../models/.md)\>** ### Errors diff --git a/docs/sdks/devices/README.md b/docs/sdks/devices/README.md index 444d2d42..a0ce708e 100644 --- a/docs/sdks/devices/README.md +++ b/docs/sdks/devices/README.md @@ -64,7 +64,7 @@ Get available grabbers visible to the server ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -99,7 +99,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -137,14 +137,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetAvailableGrabbersRequest](../../sdk/models/operations/getavailablegrabbersrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetAvailableGrabbersRequest](../../models/operations/getavailablegrabbersrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetAvailableGrabbersResponse](../../sdk/models/operations/getavailablegrabbersresponse.md)\>** +**Promise\<[operations.GetAvailableGrabbersResponse](../../models/operations/getavailablegrabbersresponse.md)\>** ### Errors @@ -212,7 +212,7 @@ run(); ### Response -**Promise\<[operations.ListDevicesResponse](../../sdk/models/operations/listdevicesresponse.md)\>** +**Promise\<[operations.ListDevicesResponse](../../models/operations/listdevicesresponse.md)\>** ### Errors @@ -229,7 +229,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -264,7 +264,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -302,14 +302,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.AddDeviceRequest](../../sdk/models/operations/adddevicerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.AddDeviceRequest](../../models/operations/adddevicerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.AddDeviceResponse](../../sdk/models/operations/adddeviceresponse.md)\>** +**Promise\<[shared.MediaContainerWithDevice](../../models/shared/mediacontainerwithdevice.md)\>** ### Errors @@ -377,7 +377,7 @@ run(); ### Response -**Promise\<[operations.DiscoverDevicesResponse](../../sdk/models/operations/discoverdevicesresponse.md)\>** +**Promise\<[shared.MediaContainerWithDevice](../../models/shared/mediacontainerwithdevice.md)\>** ### Errors @@ -394,7 +394,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -429,7 +429,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -467,14 +467,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.RemoveDeviceRequest](../../sdk/models/operations/removedevicerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.RemoveDeviceRequest](../../models/operations/removedevicerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.RemoveDeviceResponse](../../sdk/models/operations/removedeviceresponse.md)\>** +**Promise\<[operations.RemoveDeviceResponse](../../models/operations/removedeviceresponse.md)\>** ### Errors @@ -491,7 +491,7 @@ Get a device's details by its id ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -526,7 +526,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -564,14 +564,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetDeviceDetailsRequest](../../sdk/models/operations/getdevicedetailsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetDeviceDetailsRequest](../../models/operations/getdevicedetailsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetDeviceDetailsResponse](../../sdk/models/operations/getdevicedetailsresponse.md)\>** +**Promise\<[shared.MediaContainerWithDevice](../../models/shared/mediacontainerwithdevice.md)\>** ### Errors @@ -588,7 +588,7 @@ Enable or disable a device by its id ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -624,7 +624,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { devicesModifyDevice } from "@lukehagar/plexjs/funcs/devicesModifyDevice.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -663,14 +663,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ModifyDeviceRequest](../../sdk/models/operations/modifydevicerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.ModifyDeviceRequest](../../models/operations/modifydevicerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.ModifyDeviceResponse](../../sdk/models/operations/modifydeviceresponse.md)\>** +**Promise\<[operations.ModifyDeviceResponse](../../models/operations/modifydeviceresponse.md)\>** ### Errors @@ -687,7 +687,7 @@ Set a device's channel mapping ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -740,7 +740,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -796,14 +796,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.SetChannelmapRequest](../../sdk/models/operations/setchannelmaprequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.SetChannelmapRequest](../../models/operations/setchannelmaprequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.SetChannelmapResponse](../../sdk/models/operations/setchannelmapresponse.md)\>** +**Promise\<[shared.MediaContainerWithDevice](../../models/shared/mediacontainerwithdevice.md)\>** ### Errors @@ -820,7 +820,7 @@ Get a device's channels by its id ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -855,7 +855,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -893,14 +893,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetDevicesChannelsRequest](../../sdk/models/operations/getdeviceschannelsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetDevicesChannelsRequest](../../models/operations/getdeviceschannelsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetDevicesChannelsResponse](../../sdk/models/operations/getdeviceschannelsresponse.md)\>** +**Promise\<[operations.GetDevicesChannelsResponse](../../models/operations/getdeviceschannelsresponse.md)\>** ### Errors @@ -917,7 +917,7 @@ Set device preferences by its id ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -935,11 +935,11 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.devices.setDevicePreferences({ + await plexAPI.devices.setDevicePreferences({ deviceId: 420973, }); - console.log(result); + } run(); @@ -952,7 +952,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -977,7 +977,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("devicesSetDevicePreferences failed:", res.error); } @@ -990,14 +990,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.SetDevicePreferencesRequest](../../sdk/models/operations/setdevicepreferencesrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.SetDevicePreferencesRequest](../../models/operations/setdevicepreferencesrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.SetDevicePreferencesResponse](../../sdk/models/operations/setdevicepreferencesresponse.md)\>** +**Promise\** ### Errors @@ -1014,7 +1014,7 @@ Tell a device to stop scanning for channels ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1049,7 +1049,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -1087,14 +1087,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.StopScanRequest](../../sdk/models/operations/stopscanrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.StopScanRequest](../../models/operations/stopscanrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.StopScanResponse](../../sdk/models/operations/stopscanresponse.md)\>** +**Promise\<[shared.MediaContainerWithDevice](../../models/shared/mediacontainerwithdevice.md)\>** ### Errors @@ -1111,7 +1111,7 @@ Tell a device to scan for channels ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1147,7 +1147,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -1186,14 +1186,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ScanRequest](../../sdk/models/operations/scanrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.ScanRequest](../../models/operations/scanrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.ScanResponse](../../sdk/models/operations/scanresponse.md)\>** +**Promise\<[operations.ScanResponse](../../models/operations/scanresponse.md)\>** ### Errors @@ -1210,7 +1210,7 @@ Get a device's thumb for display to the user ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1228,12 +1228,12 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.devices.getThumb({ + await plexAPI.devices.getThumb({ deviceId: 960617, versionPathParameter: 1025, }); - console.log(result); + } run(); @@ -1246,7 +1246,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -1272,7 +1272,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("devicesGetThumb failed:", res.error); } @@ -1285,14 +1285,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetThumbRequest](../../sdk/models/operations/getthumbrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetThumbRequest](../../models/operations/getthumbrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetThumbResponse](../../sdk/models/operations/getthumbresponse.md)\>** +**Promise\** ### Errors diff --git a/docs/sdks/downloadqueue/README.md b/docs/sdks/downloadqueue/README.md index 80557196..bd948e22 100644 --- a/docs/sdks/downloadqueue/README.md +++ b/docs/sdks/downloadqueue/README.md @@ -80,7 +80,7 @@ run(); ### Response -**Promise\<[operations.CreateDownloadQueueResponse](../../sdk/models/operations/createdownloadqueueresponse.md)\>** +**Promise\<[operations.CreateDownloadQueueResponse](../../models/operations/createdownloadqueueresponse.md)\>** ### Errors @@ -100,7 +100,7 @@ Get a download queue by its id ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -135,7 +135,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -173,14 +173,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetDownloadQueueRequest](../../sdk/models/operations/getdownloadqueuerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetDownloadQueueRequest](../../models/operations/getdownloadqueuerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetDownloadQueueResponse](../../sdk/models/operations/getdownloadqueueresponse.md)\>** +**Promise\<[operations.GetDownloadQueueResponse](../../models/operations/getdownloadqueueresponse.md)\>** ### Errors @@ -200,7 +200,7 @@ Add items to the download queue ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, AdvancedSubtitles, BoolInt, LocationParameter, ProtocolParameter } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, AdvancedSubtitles, BoolInt, LocationParameter, ProtocolParameter } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -264,7 +264,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { downloadQueueAddDownloadQueueItems } from "@lukehagar/plexjs/funcs/downloadQueueAddDownloadQueueItems.js"; -import { Accepts, AdvancedSubtitles, BoolInt, LocationParameter, ProtocolParameter } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, AdvancedSubtitles, BoolInt, LocationParameter, ProtocolParameter } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -331,14 +331,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.AddDownloadQueueItemsRequest](../../sdk/models/operations/adddownloadqueueitemsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.AddDownloadQueueItemsRequest](../../models/operations/adddownloadqueueitemsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.AddDownloadQueueItemsResponse](../../sdk/models/operations/adddownloadqueueitemsresponse.md)\>** +**Promise\<[operations.AddDownloadQueueItemsResponse](../../models/operations/adddownloadqueueitemsresponse.md)\>** ### Errors @@ -358,7 +358,7 @@ Get items from a download queue ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -393,7 +393,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -431,14 +431,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListDownloadQueueItemsRequest](../../sdk/models/operations/listdownloadqueueitemsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.ListDownloadQueueItemsRequest](../../models/operations/listdownloadqueueitemsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.ListDownloadQueueItemsResponse](../../sdk/models/operations/listdownloadqueueitemsresponse.md)\>** +**Promise\<[operations.ListDownloadQueueItemsResponse](../../models/operations/listdownloadqueueitemsresponse.md)\>** ### Errors @@ -458,7 +458,7 @@ Grab the decision for a download queue item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -494,7 +494,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -533,14 +533,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetItemDecisionRequest](../../sdk/models/operations/getitemdecisionrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetItemDecisionRequest](../../models/operations/getitemdecisionrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetItemDecisionResponse](../../sdk/models/operations/getitemdecisionresponse.md)\>** +**Promise\<[shared.MediaContainerWithDecision](../../models/shared/mediacontainerwithdecision.md)\>** ### Errors @@ -560,7 +560,7 @@ Grab the media for a download queue item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -596,7 +596,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -635,14 +635,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetDownloadQueueMediaRequest](../../sdk/models/operations/getdownloadqueuemediarequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetDownloadQueueMediaRequest](../../models/operations/getdownloadqueuemediarequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetDownloadQueueMediaResponse](../../sdk/models/operations/getdownloadqueuemediaresponse.md)\>** +**Promise\<[operations.GetDownloadQueueMediaResponse](../../models/operations/getdownloadqueuemediaresponse.md)\>** ### Errors @@ -659,7 +659,7 @@ delete items from a download queue ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -677,7 +677,7 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.downloadQueue.removeDownloadQueueItems({ + await plexAPI.downloadQueue.removeDownloadQueueItems({ queueId: 946275, itemId: [ 32, @@ -686,7 +686,7 @@ async function run() { ], }); - console.log(result); + } run(); @@ -699,7 +699,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -729,7 +729,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("downloadQueueRemoveDownloadQueueItems failed:", res.error); } @@ -742,14 +742,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.RemoveDownloadQueueItemsRequest](../../sdk/models/operations/removedownloadqueueitemsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.RemoveDownloadQueueItemsRequest](../../models/operations/removedownloadqueueitemsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.RemoveDownloadQueueItemsResponse](../../sdk/models/operations/removedownloadqueueitemsresponse.md)\>** +**Promise\** ### Errors @@ -769,7 +769,7 @@ Get items from a download queue ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -809,7 +809,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -852,14 +852,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetDownloadQueueItemsRequest](../../sdk/models/operations/getdownloadqueueitemsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetDownloadQueueItemsRequest](../../models/operations/getdownloadqueueitemsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetDownloadQueueItemsResponse](../../sdk/models/operations/getdownloadqueueitemsresponse.md)\>** +**Promise\<[operations.GetDownloadQueueItemsResponse](../../models/operations/getdownloadqueueitemsresponse.md)\>** ### Errors @@ -879,7 +879,7 @@ Reprocess download queue items with previous decision parameters ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -897,7 +897,7 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.downloadQueue.restartProcessingDownloadQueueItems({ + await plexAPI.downloadQueue.restartProcessingDownloadQueueItems({ queueId: 713001, itemId: [ 32, @@ -906,7 +906,7 @@ async function run() { ], }); - console.log(result); + } run(); @@ -919,7 +919,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -949,7 +949,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("downloadQueueRestartProcessingDownloadQueueItems failed:", res.error); } @@ -962,14 +962,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.RestartProcessingDownloadQueueItemsRequest](../../sdk/models/operations/restartprocessingdownloadqueueitemsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.RestartProcessingDownloadQueueItemsRequest](../../models/operations/restartprocessingdownloadqueueitemsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.RestartProcessingDownloadQueueItemsResponse](../../sdk/models/operations/restartprocessingdownloadqueueitemsresponse.md)\>** +**Promise\** ### Errors diff --git a/docs/sdks/dvrs/README.md b/docs/sdks/dvrs/README.md index e6e75228..c038e3e4 100644 --- a/docs/sdks/dvrs/README.md +++ b/docs/sdks/dvrs/README.md @@ -81,7 +81,7 @@ run(); ### Response -**Promise\<[operations.ListDVRsResponse](../../sdk/models/operations/listdvrsresponse.md)\>** +**Promise\<[operations.ListDVRsResponse](../../models/operations/listdvrsresponse.md)\>** ### Errors @@ -98,7 +98,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -189,7 +189,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -283,14 +283,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.CreateDVRRequest](../../sdk/models/operations/createdvrrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.CreateDVRRequest](../../models/operations/createdvrrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.CreateDVRResponse](../../sdk/models/operations/createdvrresponse.md)\>** +**Promise\<[operations.CreateDVRResponse](../../models/operations/createdvrresponse.md)\>** ### Errors @@ -307,7 +307,7 @@ Delete a single DVR by its id (key) ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -325,11 +325,11 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.dvRs.deleteDVR({ + await plexAPI.dvRs.deleteDVR({ dvrId: 855088, }); - console.log(result); + } run(); @@ -342,7 +342,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -367,7 +367,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("dvRsDeleteDVR failed:", res.error); } @@ -380,14 +380,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.DeleteDVRRequest](../../sdk/models/operations/deletedvrrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.DeleteDVRRequest](../../models/operations/deletedvrrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.DeleteDVRResponse](../../sdk/models/operations/deletedvrresponse.md)\>** +**Promise\** ### Errors @@ -404,7 +404,7 @@ Get a single DVR by its id (key) ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -439,7 +439,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -477,14 +477,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetDVRRequest](../../sdk/models/operations/getdvrrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetDVRRequest](../../models/operations/getdvrrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetDVRResponse](../../sdk/models/operations/getdvrresponse.md)\>** +**Promise\<[operations.GetDVRResponse](../../models/operations/getdvrresponse.md)\>** ### Errors @@ -501,7 +501,7 @@ Deletes a DVR device's lineup. ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -537,7 +537,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -576,14 +576,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.DeleteLineupRequest](../../sdk/models/operations/deletelineuprequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.DeleteLineupRequest](../../models/operations/deletelineuprequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.DeleteLineupResponse](../../sdk/models/operations/deletelineupresponse.md)\>** +**Promise\<[operations.DeleteLineupResponse](../../models/operations/deletelineupresponse.md)\>** ### Errors @@ -600,7 +600,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -636,7 +636,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -675,14 +675,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.AddLineupRequest](../../sdk/models/operations/addlineuprequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.AddLineupRequest](../../models/operations/addlineuprequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.AddLineupResponse](../../sdk/models/operations/addlineupresponse.md)\>** +**Promise\<[operations.AddLineupResponse](../../models/operations/addlineupresponse.md)\>** ### Errors @@ -699,7 +699,7 @@ Set DVR preferences by name avd value ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -734,7 +734,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -772,14 +772,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.SetDVRPreferencesRequest](../../sdk/models/operations/setdvrpreferencesrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.SetDVRPreferencesRequest](../../models/operations/setdvrpreferencesrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.SetDVRPreferencesResponse](../../sdk/models/operations/setdvrpreferencesresponse.md)\>** +**Promise\<[operations.SetDVRPreferencesResponse](../../models/operations/setdvrpreferencesresponse.md)\>** ### Errors @@ -796,7 +796,7 @@ Tell a DVR to stop reloading program guide ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -814,11 +814,11 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.dvRs.stopDVRReload({ + await plexAPI.dvRs.stopDVRReload({ dvrId: 348053, }); - console.log(result); + } run(); @@ -831,7 +831,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -856,7 +856,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("dvRsStopDVRReload failed:", res.error); } @@ -869,14 +869,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.StopDVRReloadRequest](../../sdk/models/operations/stopdvrreloadrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.StopDVRReloadRequest](../../models/operations/stopdvrreloadrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.StopDVRReloadResponse](../../sdk/models/operations/stopdvrreloadresponse.md)\>** +**Promise\** ### Errors @@ -893,7 +893,7 @@ Tell a DVR to reload program guide ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -928,7 +928,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -966,14 +966,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ReloadGuideRequest](../../sdk/models/operations/reloadguiderequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.ReloadGuideRequest](../../models/operations/reloadguiderequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.ReloadGuideResponse](../../sdk/models/operations/reloadguideresponse.md)\>** +**Promise\<[operations.ReloadGuideResponse](../../models/operations/reloadguideresponse.md)\>** ### Errors @@ -990,7 +990,7 @@ Tune a channel on a DVR to the provided channel ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1026,7 +1026,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -1065,14 +1065,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.TuneChannelRequest](../../sdk/models/operations/tunechannelrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.TuneChannelRequest](../../models/operations/tunechannelrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.TuneChannelResponse](../../sdk/models/operations/tunechannelresponse.md)\>** +**Promise\<[operations.TuneChannelResponse](../../models/operations/tunechannelresponse.md)\>** ### Errors @@ -1089,7 +1089,7 @@ Remove a device from an existing DVR ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1125,7 +1125,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -1164,14 +1164,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.RemoveDeviceFromDVRRequest](../../sdk/models/operations/removedevicefromdvrrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.RemoveDeviceFromDVRRequest](../../models/operations/removedevicefromdvrrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.RemoveDeviceFromDVRResponse](../../sdk/models/operations/removedevicefromdvrresponse.md)\>** +**Promise\<[operations.RemoveDeviceFromDVRResponse](../../models/operations/removedevicefromdvrresponse.md)\>** ### Errors @@ -1188,7 +1188,7 @@ Add a device to an existing DVR ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1224,7 +1224,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -1263,14 +1263,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.AddDeviceToDVRRequest](../../sdk/models/operations/adddevicetodvrrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.AddDeviceToDVRRequest](../../models/operations/adddevicetodvrrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.AddDeviceToDVRResponse](../../sdk/models/operations/adddevicetodvrresponse.md)\>** +**Promise\<[operations.AddDeviceToDVRResponse](../../models/operations/adddevicetodvrresponse.md)\>** ### Errors diff --git a/docs/sdks/epg/README.md b/docs/sdks/epg/README.md index d4f2b3c4..f705a0cf 100644 --- a/docs/sdks/epg/README.md +++ b/docs/sdks/epg/README.md @@ -27,7 +27,7 @@ Compute the best channel map, given device and lineup ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -63,7 +63,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -102,14 +102,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ComputeChannelMapRequest](../../sdk/models/operations/computechannelmaprequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.ComputeChannelMapRequest](../../models/operations/computechannelmaprequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.ComputeChannelMapResponse](../../sdk/models/operations/computechannelmapresponse.md)\>** +**Promise\<[operations.ComputeChannelMapResponse](../../models/operations/computechannelmapresponse.md)\>** ### Errors @@ -126,7 +126,7 @@ Get channels for a lineup within an EPG provider ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -161,7 +161,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -199,14 +199,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetChannelsRequest](../../sdk/models/operations/getchannelsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetChannelsRequest](../../models/operations/getchannelsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetChannelsResponse](../../sdk/models/operations/getchannelsresponse.md)\>** +**Promise\<[operations.GetChannelsResponse](../../models/operations/getchannelsresponse.md)\>** ### Errors @@ -274,7 +274,7 @@ run(); ### Response -**Promise\<[operations.GetCountriesResponse](../../sdk/models/operations/getcountriesresponse.md)\>** +**Promise\<[operations.GetCountriesResponse](../../models/operations/getcountriesresponse.md)\>** ### Errors @@ -342,7 +342,7 @@ run(); ### Response -**Promise\<[operations.GetAllLanguagesResponse](../../sdk/models/operations/getalllanguagesresponse.md)\>** +**Promise\<[operations.GetAllLanguagesResponse](../../models/operations/getalllanguagesresponse.md)\>** ### Errors @@ -359,7 +359,7 @@ Compute the best lineup, given lineup group and device ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -395,7 +395,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -434,14 +434,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetLineupRequest](../../sdk/models/operations/getlineuprequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetLineupRequest](../../models/operations/getlineuprequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetLineupResponse](../../sdk/models/operations/getlineupresponse.md)\>** +**Promise\<[operations.GetLineupResponse](../../models/operations/getlineupresponse.md)\>** ### Errors @@ -458,7 +458,7 @@ Get the channels across multiple lineups ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -496,7 +496,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -537,14 +537,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetLineupChannelsRequest](../../sdk/models/operations/getlineupchannelsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetLineupChannelsRequest](../../models/operations/getlineupchannelsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetLineupChannelsResponse](../../sdk/models/operations/getlineupchannelsresponse.md)\>** +**Promise\<[operations.GetLineupChannelsResponse](../../models/operations/getlineupchannelsresponse.md)\>** ### Errors @@ -561,7 +561,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -597,7 +597,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -636,14 +636,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetCountriesLineupsRequest](../../sdk/models/operations/getcountrieslineupsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetCountriesLineupsRequest](../../models/operations/getcountrieslineupsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetCountriesLineupsResponse](../../sdk/models/operations/getcountrieslineupsresponse.md)\>** +**Promise\<[shared.MediaContainerWithLineup](../../models/shared/mediacontainerwithlineup.md)\>** ### Errors @@ -660,7 +660,7 @@ Get regions for a country within an EPG provider ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -696,7 +696,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -735,14 +735,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetCountryRegionsRequest](../../sdk/models/operations/getcountryregionsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetCountryRegionsRequest](../../models/operations/getcountryregionsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetCountryRegionsResponse](../../sdk/models/operations/getcountryregionsresponse.md)\>** +**Promise\<[operations.GetCountryRegionsResponse](../../models/operations/getcountryregionsresponse.md)\>** ### Errors @@ -759,7 +759,7 @@ Get lineups for a region within an EPG provider ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -796,7 +796,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -836,14 +836,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListLineupsRequest](../../sdk/models/operations/listlineupsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.ListLineupsRequest](../../models/operations/listlineupsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.ListLineupsResponse](../../sdk/models/operations/listlineupsresponse.md)\>** +**Promise\<[operations.ListLineupsResponse](../../models/operations/listlineupsresponse.md)\>** ### Errors diff --git a/docs/sdks/events/README.md b/docs/sdks/events/README.md index dc84f8e6..cb643abd 100644 --- a/docs/sdks/events/README.md +++ b/docs/sdks/events/README.md @@ -22,7 +22,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -55,7 +55,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -91,14 +91,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetNotificationsRequest](../../sdk/models/operations/getnotificationsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetNotificationsRequest](../../models/operations/getnotificationsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetNotificationsResponse](../../sdk/models/operations/getnotificationsresponse.md)\>** +**Promise\<[ReadableStream](../../models/.md)\>** ### Errors @@ -115,7 +115,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -148,7 +148,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -184,14 +184,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ConnectWebSocketRequest](../../sdk/models/operations/connectwebsocketrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.ConnectWebSocketRequest](../../models/operations/connectwebsocketrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.ConnectWebSocketResponse](../../sdk/models/operations/connectwebsocketresponse.md)\>** +**Promise\<[ReadableStream](../../models/.md)\>** ### Errors diff --git a/docs/sdks/general/README.md b/docs/sdks/general/README.md index 8c40c36d..43710a57 100644 --- a/docs/sdks/general/README.md +++ b/docs/sdks/general/README.md @@ -21,7 +21,7 @@ Information about this PMS setup and configuration ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -54,7 +54,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -90,14 +90,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetServerInfoRequest](../../sdk/models/operations/getserverinforequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetServerInfoRequest](../../models/operations/getserverinforequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetServerInfoResponse](../../sdk/models/operations/getserverinforesponse.md)\>** +**Promise\<[shared.MediaContainerWithDirectory](../../models/shared/mediacontainerwithdirectory.md)\>** ### Errors @@ -165,7 +165,7 @@ run(); ### Response -**Promise\<[operations.GetIdentityResponse](../../sdk/models/operations/getidentityresponse.md)\>** +**Promise\<[operations.GetIdentityResponse](../../models/operations/getidentityresponse.md)\>** ### Errors @@ -182,7 +182,7 @@ If a caller requires connection details and a transient token for a source that ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -218,7 +218,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { generalGetSourceConnectionInformation } from "@lukehagar/plexjs/funcs/generalGetSourceConnectionInformation.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -257,14 +257,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetSourceConnectionInformationRequest](../../sdk/models/operations/getsourceconnectioninformationrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetSourceConnectionInformationRequest](../../models/operations/getsourceconnectioninformationrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetSourceConnectionInformationResponse](../../sdk/models/operations/getsourceconnectioninformationresponse.md)\>** +**Promise\<[operations.GetSourceConnectionInformationResponse](../../models/operations/getsourceconnectioninformationresponse.md)\>** ### Errors @@ -282,8 +282,8 @@ 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"; +import { GetTransientTokenScope, GetTransientTokenType } from "@lukehagar/plexjs/models/operations"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -319,8 +319,8 @@ The standalone function version of this method: ```typescript 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"; +import { GetTransientTokenScope, GetTransientTokenType } from "@lukehagar/plexjs/models/operations"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -359,14 +359,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetTransientTokenRequest](../../sdk/models/operations/gettransienttokenrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetTransientTokenRequest](../../models/operations/gettransienttokenrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetTransientTokenResponse](../../sdk/models/operations/gettransienttokenresponse.md)\>** +**Promise\<[operations.GetTransientTokenResponse](../../models/operations/gettransienttokenresponse.md)\>** ### Errors diff --git a/docs/sdks/hubs/README.md b/docs/sdks/hubs/README.md index f7dd6abc..d89d9296 100644 --- a/docs/sdks/hubs/README.md +++ b/docs/sdks/hubs/README.md @@ -31,7 +31,7 @@ Get the global hubs in this PMS ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -66,7 +66,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { hubsGetAllHubs } from "@lukehagar/plexjs/funcs/hubsGetAllHubs.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -104,14 +104,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetAllHubsRequest](../../sdk/models/operations/getallhubsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetAllHubsRequest](../../models/operations/getallhubsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetAllHubsResponse](../../sdk/models/operations/getallhubsresponse.md)\>** +**Promise\<[operations.GetAllHubsResponse](../../models/operations/getallhubsresponse.md)\>** ### Errors @@ -128,7 +128,7 @@ Get the global continue watching hub ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -161,7 +161,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -197,14 +197,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetContinueWatchingRequest](../../sdk/models/operations/getcontinuewatchingrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetContinueWatchingRequest](../../models/operations/getcontinuewatchingrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetContinueWatchingResponse](../../sdk/models/operations/getcontinuewatchingresponse.md)\>** +**Promise\<[operations.GetContinueWatchingResponse](../../models/operations/getcontinuewatchingresponse.md)\>** ### Errors @@ -221,7 +221,7 @@ Get the items within a single hub specified by identifier ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -260,7 +260,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -302,14 +302,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetHubItemsRequest](../../sdk/models/operations/gethubitemsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetHubItemsRequest](../../models/operations/gethubitemsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetHubItemsResponse](../../sdk/models/operations/gethubitemsresponse.md)\>** +**Promise\<[operations.GetHubItemsResponse](../../models/operations/gethubitemsresponse.md)\>** ### Errors @@ -326,7 +326,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -359,7 +359,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -395,14 +395,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetPromotedHubsRequest](../../sdk/models/operations/getpromotedhubsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetPromotedHubsRequest](../../models/operations/getpromotedhubsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetPromotedHubsResponse](../../sdk/models/operations/getpromotedhubsresponse.md)\>** +**Promise\<[operations.GetPromotedHubsResponse](../../models/operations/getpromotedhubsresponse.md)\>** ### Errors @@ -419,7 +419,7 @@ Get the hubs for a section by metadata item. Currently only for music sections ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -455,7 +455,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { hubsGetMetadataHubs } from "@lukehagar/plexjs/funcs/hubsGetMetadataHubs.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -494,14 +494,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetMetadataHubsRequest](../../sdk/models/operations/getmetadatahubsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetMetadataHubsRequest](../../models/operations/getmetadatahubsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetMetadataHubsResponse](../../sdk/models/operations/getmetadatahubsresponse.md)\>** +**Promise\<[operations.GetMetadataHubsResponse](../../models/operations/getmetadatahubsresponse.md)\>** ### Errors @@ -518,7 +518,7 @@ Get the hubs for a metadata to be displayed in post play ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -554,7 +554,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { hubsGetPostplayHubs } from "@lukehagar/plexjs/funcs/hubsGetPostplayHubs.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -593,14 +593,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetPostplayHubsRequest](../../sdk/models/operations/getpostplayhubsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetPostplayHubsRequest](../../models/operations/getpostplayhubsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetPostplayHubsResponse](../../sdk/models/operations/getpostplayhubsresponse.md)\>** +**Promise\<[operations.GetPostplayHubsResponse](../../models/operations/getpostplayhubsresponse.md)\>** ### Errors @@ -617,7 +617,7 @@ Get the hubs for a metadata related to the provided metadata item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -653,7 +653,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { hubsGetRelatedHubs } from "@lukehagar/plexjs/funcs/hubsGetRelatedHubs.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -692,14 +692,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetRelatedHubsRequest](../../sdk/models/operations/getrelatedhubsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetRelatedHubsRequest](../../models/operations/getrelatedhubsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetRelatedHubsResponse](../../sdk/models/operations/getrelatedhubsresponse.md)\>** +**Promise\<[operations.GetRelatedHubsResponse](../../models/operations/getrelatedhubsresponse.md)\>** ### Errors @@ -716,7 +716,7 @@ Get the hubs for a single section ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -752,7 +752,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { hubsGetSectionHubs } from "@lukehagar/plexjs/funcs/hubsGetSectionHubs.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -791,14 +791,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetSectionHubsRequest](../../sdk/models/operations/getsectionhubsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetSectionHubsRequest](../../models/operations/getsectionhubsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetSectionHubsResponse](../../sdk/models/operations/getsectionhubsresponse.md)\>** +**Promise\<[operations.GetSectionHubsResponse](../../models/operations/getsectionhubsresponse.md)\>** ### Errors @@ -815,7 +815,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -833,11 +833,11 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.hubs.resetSectionDefaults({ + await plexAPI.hubs.resetSectionDefaults({ sectionId: 383022, }); - console.log(result); + } run(); @@ -850,7 +850,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -875,7 +875,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("hubsResetSectionDefaults failed:", res.error); } @@ -888,14 +888,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ResetSectionDefaultsRequest](../../sdk/models/operations/resetsectiondefaultsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.ResetSectionDefaultsRequest](../../models/operations/resetsectiondefaultsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.ResetSectionDefaultsResponse](../../sdk/models/operations/resetsectiondefaultsresponse.md)\>** +**Promise\** ### Errors @@ -912,7 +912,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -947,7 +947,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -985,14 +985,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListHubsRequest](../../sdk/models/operations/listhubsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.ListHubsRequest](../../models/operations/listhubsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.ListHubsResponse](../../sdk/models/operations/listhubsresponse.md)\>** +**Promise\<[operations.ListHubsResponse](../../models/operations/listhubsresponse.md)\>** ### Errors @@ -1009,7 +1009,7 @@ Create a custom hub based on a metadata item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1027,7 +1027,7 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.hubs.createCustomHub({ + await plexAPI.hubs.createCustomHub({ sectionId: 869922, metadataItemId: 703843, promotedToRecommended: BoolInt.True, @@ -1035,7 +1035,7 @@ async function run() { promotedToSharedHome: BoolInt.True, }); - console.log(result); + } run(); @@ -1048,7 +1048,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { hubsCreateCustomHub } from "@lukehagar/plexjs/funcs/hubsCreateCustomHub.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -1077,7 +1077,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("hubsCreateCustomHub failed:", res.error); } @@ -1090,14 +1090,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.CreateCustomHubRequest](../../sdk/models/operations/createcustomhubrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.CreateCustomHubRequest](../../models/operations/createcustomhubrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.CreateCustomHubResponse](../../sdk/models/operations/createcustomhubresponse.md)\>** +**Promise\** ### Errors @@ -1114,7 +1114,7 @@ Changed the ordering of a hub among others hubs ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1150,7 +1150,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -1189,14 +1189,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.MoveHubRequest](../../sdk/models/operations/movehubrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.MoveHubRequest](../../models/operations/movehubrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.MoveHubResponse](../../sdk/models/operations/movehubresponse.md)\>** +**Promise\<[operations.MoveHubResponse](../../models/operations/movehubresponse.md)\>** ### Errors @@ -1213,7 +1213,7 @@ Delete a custom hub from the server ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1231,12 +1231,12 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.hubs.deleteCustomHub({ + await plexAPI.hubs.deleteCustomHub({ sectionId: 625677, identifier: "", }); - console.log(result); + } run(); @@ -1249,7 +1249,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -1275,7 +1275,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("hubsDeleteCustomHub failed:", res.error); } @@ -1288,14 +1288,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.DeleteCustomHubRequest](../../sdk/models/operations/deletecustomhubrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.DeleteCustomHubRequest](../../models/operations/deletecustomhubrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.DeleteCustomHubResponse](../../sdk/models/operations/deletecustomhubresponse.md)\>** +**Promise\** ### Errors @@ -1312,7 +1312,7 @@ Changed the visibility of a hub for both the admin and shared users ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1330,7 +1330,7 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.hubs.updateHubVisibility({ + await plexAPI.hubs.updateHubVisibility({ sectionId: 341650, identifier: "", promotedToRecommended: BoolInt.True, @@ -1338,7 +1338,7 @@ async function run() { promotedToSharedHome: BoolInt.True, }); - console.log(result); + } run(); @@ -1351,7 +1351,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { hubsUpdateHubVisibility } from "@lukehagar/plexjs/funcs/hubsUpdateHubVisibility.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -1380,7 +1380,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("hubsUpdateHubVisibility failed:", res.error); } @@ -1393,14 +1393,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.UpdateHubVisibilityRequest](../../sdk/models/operations/updatehubvisibilityrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.UpdateHubVisibilityRequest](../../models/operations/updatehubvisibilityrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.UpdateHubVisibilityResponse](../../sdk/models/operations/updatehubvisibilityresponse.md)\>** +**Promise\** ### Errors diff --git a/docs/sdks/library/README.md b/docs/sdks/library/README.md index 0e4fda51..98c61b17 100644 --- a/docs/sdks/library/README.md +++ b/docs/sdks/library/README.md @@ -96,7 +96,7 @@ Request all metadata items according to a query. ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, MediaType } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, MediaType } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -135,7 +135,7 @@ 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, MediaType } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, MediaType } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -177,14 +177,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetLibraryItemsRequest](../../sdk/models/operations/getlibraryitemsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetLibraryItemsRequest](../../models/operations/getlibraryitemsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetLibraryItemsResponse](../../sdk/models/operations/getlibraryitemsresponse.md)\>** +**Promise\<[operations.GetLibraryItemsResponse](../../models/operations/getlibraryitemsresponse.md)\>** ### Errors @@ -207,9 +207,9 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.deleteCaches(); + await plexAPI.library.deleteCaches(); + - console.log(result); } run(); @@ -233,7 +233,7 @@ async function run() { const res = await libraryDeleteCaches(plexAPI); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryDeleteCaches failed:", res.error); } @@ -252,7 +252,7 @@ run(); ### Response -**Promise\<[operations.DeleteCachesResponse](../../sdk/models/operations/deletecachesresponse.md)\>** +**Promise\** ### Errors @@ -275,9 +275,9 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.cleanBundles(); + await plexAPI.library.cleanBundles(); + - console.log(result); } run(); @@ -301,7 +301,7 @@ async function run() { const res = await libraryCleanBundles(plexAPI); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryCleanBundles failed:", res.error); } @@ -320,7 +320,7 @@ run(); ### Response -**Promise\<[operations.CleanBundlesResponse](../../sdk/models/operations/cleanbundlesresponse.md)\>** +**Promise\** ### Errors @@ -338,7 +338,7 @@ Note that any of the parameters passed to the metadata details endpoint (e.g. `i ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -376,7 +376,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryIngestTransientItem } from "@lukehagar/plexjs/funcs/libraryIngestTransientItem.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -417,14 +417,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.IngestTransientItemRequest](../../sdk/models/operations/ingesttransientitemrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.IngestTransientItemRequest](../../models/operations/ingesttransientitemrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.IngestTransientItemResponse](../../sdk/models/operations/ingesttransientitemresponse.md)\>** +**Promise\<[operations.IngestTransientItemResponse](../../models/operations/ingesttransientitemresponse.md)\>** ### Errors @@ -445,7 +445,7 @@ Episodes require either a season/episode pair, or an air date (or both). Either ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt, MediaType } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt, MediaType } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -483,7 +483,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGetLibraryMatches } from "@lukehagar/plexjs/funcs/libraryGetLibraryMatches.js"; -import { Accepts, BoolInt, MediaType } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt, MediaType } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -524,14 +524,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetLibraryMatchesRequest](../../sdk/models/operations/getlibrarymatchesrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetLibraryMatchesRequest](../../models/operations/getlibrarymatchesrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetLibraryMatchesResponse](../../sdk/models/operations/getlibrarymatchesresponse.md)\>** +**Promise\<[operations.GetLibraryMatchesResponse](../../models/operations/getlibrarymatchesresponse.md)\>** ### Errors @@ -548,7 +548,7 @@ Initiate optimize on the database. ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -566,11 +566,11 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.optimizeDatabase({ + await plexAPI.library.optimizeDatabase({ async: BoolInt.True, }); - console.log(result); + } run(); @@ -583,7 +583,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryOptimizeDatabase } from "@lukehagar/plexjs/funcs/libraryOptimizeDatabase.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -608,7 +608,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryOptimizeDatabase failed:", res.error); } @@ -621,14 +621,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.OptimizeDatabaseRequest](../../sdk/models/operations/optimizedatabaserequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.OptimizeDatabaseRequest](../../models/operations/optimizedatabaserequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.OptimizeDatabaseResponse](../../sdk/models/operations/optimizedatabaseresponse.md)\>** +**Promise\** ### Errors @@ -648,7 +648,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -686,7 +686,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -727,14 +727,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetRandomArtworkRequest](../../sdk/models/operations/getrandomartworkrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetRandomArtworkRequest](../../models/operations/getrandomartworkrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetRandomArtworkResponse](../../sdk/models/operations/getrandomartworkresponse.md)\>** +**Promise\<[shared.MediaContainerWithArtwork](../../models/shared/mediacontainerwithartwork.md)\>** ### Errors @@ -803,7 +803,7 @@ run(); ### Response -**Promise\<[operations.GetSectionsResponse](../../sdk/models/operations/getsectionsresponse.md)\>** +**Promise\<[operations.GetSectionsResponse](../../models/operations/getsectionsresponse.md)\>** ### Errors @@ -820,7 +820,7 @@ Add a new library section to the server ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -865,7 +865,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryAddSection } from "@lukehagar/plexjs/funcs/libraryAddSection.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -913,14 +913,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.AddSectionRequest](../../sdk/models/operations/addsectionrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.AddSectionRequest](../../models/operations/addsectionrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.AddSectionResponse](../../sdk/models/operations/addsectionresponse.md)\>** +**Promise\<[shared.SlashGetResponses200](../../models/shared/slashgetresponses200.md)\>** ### Errors @@ -988,7 +988,7 @@ run(); ### Response -**Promise\<[operations.StopAllRefreshesResponse](../../sdk/models/operations/stopallrefreshesresponse.md)\>** +**Promise\<[shared.LibrarySections](../../models/shared/librarysections.md)\>** ### Errors @@ -1005,7 +1005,7 @@ Get a section's preferences for a metadata type ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1040,7 +1040,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -1078,14 +1078,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetSectionsPrefsRequest](../../sdk/models/operations/getsectionsprefsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetSectionsPrefsRequest](../../models/operations/getsectionsprefsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetSectionsPrefsResponse](../../sdk/models/operations/getsectionsprefsresponse.md)\>** +**Promise\<[shared.LibrarySections](../../models/shared/librarysections.md)\>** ### Errors @@ -1102,7 +1102,7 @@ Tell PMS to refresh all section metadata ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1120,9 +1120,9 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.refreshSectionsMetadata({}); + await plexAPI.library.refreshSectionsMetadata({}); + - console.log(result); } run(); @@ -1135,7 +1135,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -1158,7 +1158,7 @@ async function run() { const res = await libraryRefreshSectionsMetadata(plexAPI, {}); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryRefreshSectionsMetadata failed:", res.error); } @@ -1171,14 +1171,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.RefreshSectionsMetadataRequest](../../sdk/models/operations/refreshsectionsmetadatarequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.RefreshSectionsMetadataRequest](../../models/operations/refreshsectionsmetadatarequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.RefreshSectionsMetadataResponse](../../sdk/models/operations/refreshsectionsmetadataresponse.md)\>** +**Promise\** ### Errors @@ -1195,7 +1195,7 @@ Get all library tags of a type ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, MediaType } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, MediaType } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1230,7 +1230,7 @@ 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, MediaType } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, MediaType } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -1268,14 +1268,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetTagsRequest](../../sdk/models/operations/gettagsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetTagsRequest](../../models/operations/gettagsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetTagsResponse](../../sdk/models/operations/gettagsresponse.md)\>** +**Promise\<[operations.GetTagsResponse](../../models/operations/gettagsresponse.md)\>** ### Errors @@ -1292,7 +1292,7 @@ Delete a single metadata item from the library, deleting media as well ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1310,12 +1310,12 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.deleteMetadataItem({ + await plexAPI.library.deleteMetadataItem({ ids: "", proxy: BoolInt.True, }); - console.log(result); + } run(); @@ -1328,7 +1328,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryDeleteMetadataItem } from "@lukehagar/plexjs/funcs/libraryDeleteMetadataItem.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -1354,7 +1354,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryDeleteMetadataItem failed:", res.error); } @@ -1367,14 +1367,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.DeleteMetadataItemRequest](../../sdk/models/operations/deletemetadataitemrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.DeleteMetadataItemRequest](../../models/operations/deletemetadataitemrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.DeleteMetadataItemResponse](../../sdk/models/operations/deletemetadataitemresponse.md)\>** +**Promise\** ### Errors @@ -1391,7 +1391,7 @@ Edit metadata items setting fields ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1409,14 +1409,14 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.editMetadataItem({ + await plexAPI.library.editMetadataItem({ ids: [ "", "", ], }); - console.log(result); + } run(); @@ -1429,7 +1429,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -1457,7 +1457,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryEditMetadataItem failed:", res.error); } @@ -1470,14 +1470,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.EditMetadataItemRequest](../../sdk/models/operations/editmetadataitemrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.EditMetadataItemRequest](../../models/operations/editmetadataitemrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.EditMetadataItemResponse](../../sdk/models/operations/editmetadataitemresponse.md)\>** +**Promise\** ### Errors @@ -1494,7 +1494,7 @@ Start the detection of ads in a metadata item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1512,11 +1512,11 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.detectAds({ + await plexAPI.library.detectAds({ ids: "", }); - console.log(result); + } run(); @@ -1529,7 +1529,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -1554,7 +1554,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryDetectAds failed:", res.error); } @@ -1567,14 +1567,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.DetectAdsRequest](../../sdk/models/operations/detectadsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.DetectAdsRequest](../../models/operations/detectadsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.DetectAdsResponse](../../sdk/models/operations/detectadsresponse.md)\>** +**Promise\** ### Errors @@ -1591,7 +1591,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1626,7 +1626,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -1664,14 +1664,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetAllItemLeavesRequest](../../sdk/models/operations/getallitemleavesrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetAllItemLeavesRequest](../../models/operations/getallitemleavesrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetAllItemLeavesResponse](../../sdk/models/operations/getallitemleavesresponse.md)\>** +**Promise\<[operations.GetAllItemLeavesResponse](../../models/operations/getallitemleavesresponse.md)\>** ### Errors @@ -1688,7 +1688,7 @@ Start the analysis of a metadata item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1706,11 +1706,11 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.analyzeMetadata({ + await plexAPI.library.analyzeMetadata({ ids: "", }); - console.log(result); + } run(); @@ -1723,7 +1723,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -1748,7 +1748,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryAnalyzeMetadata failed:", res.error); } @@ -1761,14 +1761,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.AnalyzeMetadataRequest](../../sdk/models/operations/analyzemetadatarequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.AnalyzeMetadataRequest](../../models/operations/analyzemetadatarequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.AnalyzeMetadataResponse](../../sdk/models/operations/analyzemetadataresponse.md)\>** +**Promise\** ### Errors @@ -1785,7 +1785,7 @@ Start the chapter thumb generation for an item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1803,12 +1803,12 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.generateThumbs({ + await plexAPI.library.generateThumbs({ ids: "", force: BoolInt.True, }); - console.log(result); + } run(); @@ -1821,7 +1821,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGenerateThumbs } from "@lukehagar/plexjs/funcs/libraryGenerateThumbs.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -1847,7 +1847,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryGenerateThumbs failed:", res.error); } @@ -1860,14 +1860,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GenerateThumbsRequest](../../sdk/models/operations/generatethumbsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GenerateThumbsRequest](../../models/operations/generatethumbsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GenerateThumbsResponse](../../sdk/models/operations/generatethumbsresponse.md)\>** +**Promise\** ### Errors @@ -1884,7 +1884,7 @@ Start credit detection on a metadata item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1902,13 +1902,13 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.detectCredits({ + await plexAPI.library.detectCredits({ ids: "", force: BoolInt.True, manual: BoolInt.True, }); - console.log(result); + } run(); @@ -1921,7 +1921,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryDetectCredits } from "@lukehagar/plexjs/funcs/libraryDetectCredits.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -1948,7 +1948,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryDetectCredits failed:", res.error); } @@ -1961,14 +1961,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.DetectCreditsRequest](../../sdk/models/operations/detectcreditsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.DetectCreditsRequest](../../models/operations/detectcreditsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.DetectCreditsResponse](../../sdk/models/operations/detectcreditsresponse.md)\>** +**Promise\** ### Errors @@ -1985,7 +1985,7 @@ Get the extras for a metadata item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2020,7 +2020,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -2058,14 +2058,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetExtrasRequest](../../sdk/models/operations/getextrasrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetExtrasRequest](../../models/operations/getextrasrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetExtrasResponse](../../sdk/models/operations/getextrasresponse.md)\>** +**Promise\<[operations.GetExtrasResponse](../../models/operations/getextrasresponse.md)\>** ### Errors @@ -2082,7 +2082,7 @@ Add an extra to a metadata item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2100,12 +2100,12 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.addExtras({ + await plexAPI.library.addExtras({ ids: "", url: "https://super-mortise.biz/", }); - console.log(result); + } run(); @@ -2118,7 +2118,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -2144,7 +2144,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryAddExtras failed:", res.error); } @@ -2157,14 +2157,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.AddExtrasRequest](../../sdk/models/operations/addextrasrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.AddExtrasRequest](../../models/operations/addextrasrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.AddExtrasResponse](../../sdk/models/operations/addextrasresponse.md)\>** +**Promise\** ### Errors @@ -2181,7 +2181,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2216,7 +2216,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -2254,14 +2254,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetFileRequest](../../sdk/models/operations/getfilerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetFileRequest](../../models/operations/getfilerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetFileResponse](../../sdk/models/operations/getfileresponse.md)\>** +**Promise\<[operations.GetFileResponse](../../models/operations/getfileresponse.md)\>** ### Errors @@ -2278,7 +2278,7 @@ Start the indexing (BIF generation) of an item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2296,12 +2296,12 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.startBifGeneration({ + await plexAPI.library.startBifGeneration({ ids: "", force: BoolInt.True, }); - console.log(result); + } run(); @@ -2314,7 +2314,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryStartBifGeneration } from "@lukehagar/plexjs/funcs/libraryStartBifGeneration.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -2340,7 +2340,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryStartBifGeneration failed:", res.error); } @@ -2353,14 +2353,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.StartBifGenerationRequest](../../sdk/models/operations/startbifgenerationrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.StartBifGenerationRequest](../../models/operations/startbifgenerationrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.StartBifGenerationResponse](../../sdk/models/operations/startbifgenerationresponse.md)\>** +**Promise\** ### Errors @@ -2377,7 +2377,7 @@ Start the detection of intros in a metadata item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2395,12 +2395,12 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.detectIntros({ + await plexAPI.library.detectIntros({ ids: "", force: BoolInt.True, }); - console.log(result); + } run(); @@ -2413,7 +2413,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryDetectIntros } from "@lukehagar/plexjs/funcs/libraryDetectIntros.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -2439,7 +2439,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryDetectIntros failed:", res.error); } @@ -2452,14 +2452,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.DetectIntrosRequest](../../sdk/models/operations/detectintrosrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.DetectIntrosRequest](../../models/operations/detectintrosrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.DetectIntrosResponse](../../sdk/models/operations/detectintrosresponse.md)\>** +**Promise\** ### Errors @@ -2476,7 +2476,7 @@ Create a marker for this user on the metadata item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2514,7 +2514,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -2555,14 +2555,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.CreateMarkerRequest](../../sdk/models/operations/createmarkerrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.CreateMarkerRequest](../../models/operations/createmarkerrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.CreateMarkerResponse](../../sdk/models/operations/createmarkerresponse.md)\>** +**Promise\<[operations.CreateMarkerResponse](../../models/operations/createmarkerresponse.md)\>** ### Errors @@ -2579,7 +2579,7 @@ Match a metadata item to a guid ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2597,11 +2597,11 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.matchItem({ + await plexAPI.library.matchItem({ ids: "", }); - console.log(result); + } run(); @@ -2614,7 +2614,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -2639,7 +2639,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryMatchItem failed:", res.error); } @@ -2652,14 +2652,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.MatchItemRequest](../../sdk/models/operations/matchitemrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.MatchItemRequest](../../models/operations/matchitemrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.MatchItemResponse](../../sdk/models/operations/matchitemresponse.md)\>** +**Promise\** ### Errors @@ -2676,7 +2676,7 @@ Get the list of metadata matches for a metadata item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2712,7 +2712,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryListMatches } from "@lukehagar/plexjs/funcs/libraryListMatches.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -2751,14 +2751,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListMatchesRequest](../../sdk/models/operations/listmatchesrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.ListMatchesRequest](../../models/operations/listmatchesrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.ListMatchesResponse](../../sdk/models/operations/listmatchesresponse.md)\>** +**Promise\<[shared.MediaContainerWithMetadata](../../models/shared/mediacontainerwithmetadata.md)\>** ### Errors @@ -2775,7 +2775,7 @@ Merge a metadata item with other items ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2793,11 +2793,11 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.mergeItems({ + await plexAPI.library.mergeItems({ idsPathParameter: "", }); - console.log(result); + } run(); @@ -2810,7 +2810,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -2835,7 +2835,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryMergeItems failed:", res.error); } @@ -2848,14 +2848,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.MergeItemsRequest](../../sdk/models/operations/mergeitemsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.MergeItemsRequest](../../models/operations/mergeitemsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.MergeItemsResponse](../../sdk/models/operations/mergeitemsresponse.md)\>** +**Promise\** ### Errors @@ -2872,7 +2872,7 @@ Get the nearest tracks, sonically, to the provided track ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2907,7 +2907,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -2945,14 +2945,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListSonicallySimilarRequest](../../sdk/models/operations/listsonicallysimilarrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.ListSonicallySimilarRequest](../../models/operations/listsonicallysimilarrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.ListSonicallySimilarResponse](../../sdk/models/operations/listsonicallysimilarresponse.md)\>** +**Promise\<[shared.MediaContainerWithMetadata](../../models/shared/mediacontainerwithmetadata.md)\>** ### Errors @@ -2969,7 +2969,7 @@ Set the preferences on a metadata item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -2987,11 +2987,11 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.setItemPreferences({ + await plexAPI.library.setItemPreferences({ ids: "", }); - console.log(result); + } run(); @@ -3004,7 +3004,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -3029,7 +3029,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("librarySetItemPreferences failed:", res.error); } @@ -3042,14 +3042,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.SetItemPreferencesRequest](../../sdk/models/operations/setitempreferencesrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.SetItemPreferencesRequest](../../models/operations/setitempreferencesrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.SetItemPreferencesResponse](../../sdk/models/operations/setitempreferencesresponse.md)\>** +**Promise\** ### Errors @@ -3066,7 +3066,7 @@ Refresh a metadata item from the agent ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -3084,12 +3084,12 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.refreshItemsMetadata({ + await plexAPI.library.refreshItemsMetadata({ ids: "", markUpdated: BoolInt.True, }); - console.log(result); + } run(); @@ -3102,7 +3102,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryRefreshItemsMetadata } from "@lukehagar/plexjs/funcs/libraryRefreshItemsMetadata.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -3128,7 +3128,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryRefreshItemsMetadata failed:", res.error); } @@ -3141,14 +3141,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.RefreshItemsMetadataRequest](../../sdk/models/operations/refreshitemsmetadatarequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.RefreshItemsMetadataRequest](../../models/operations/refreshitemsmetadatarequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.RefreshItemsMetadataResponse](../../sdk/models/operations/refreshitemsmetadataresponse.md)\>** +**Promise\** ### Errors @@ -3165,7 +3165,7 @@ Get a hub of related items to a metadata item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -3200,7 +3200,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -3238,14 +3238,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetRelatedItemsRequest](../../sdk/models/operations/getrelateditemsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetRelatedItemsRequest](../../models/operations/getrelateditemsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetRelatedItemsResponse](../../sdk/models/operations/getrelateditemsresponse.md)\>** +**Promise\<[operations.GetRelatedItemsResponse](../../models/operations/getrelateditemsresponse.md)\>** ### Errors @@ -3262,7 +3262,7 @@ Get a list of similar items to a metadata item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -3297,7 +3297,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -3335,14 +3335,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListSimilarRequest](../../sdk/models/operations/listsimilarrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.ListSimilarRequest](../../models/operations/listsimilarrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.ListSimilarResponse](../../sdk/models/operations/listsimilarresponse.md)\>** +**Promise\<[shared.MediaContainerWithMetadata](../../models/shared/mediacontainerwithmetadata.md)\>** ### Errors @@ -3359,7 +3359,7 @@ Split a metadata item into multiple items ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -3377,11 +3377,11 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.splitItem({ + await plexAPI.library.splitItem({ ids: "", }); - console.log(result); + } run(); @@ -3394,7 +3394,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -3419,7 +3419,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("librarySplitItem failed:", res.error); } @@ -3432,14 +3432,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.SplitItemRequest](../../sdk/models/operations/splititemrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.SplitItemRequest](../../models/operations/splititemrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.SplitItemResponse](../../sdk/models/operations/splititemresponse.md)\>** +**Promise\** ### Errors @@ -3456,7 +3456,7 @@ Add a subtitle to a metadata item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -3474,13 +3474,13 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.addSubtitles({ + await plexAPI.library.addSubtitles({ ids: "", forced: BoolInt.True, hearingImpaired: BoolInt.True, }); - console.log(result); + } run(); @@ -3493,7 +3493,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryAddSubtitles } from "@lukehagar/plexjs/funcs/libraryAddSubtitles.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -3520,7 +3520,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryAddSubtitles failed:", res.error); } @@ -3533,14 +3533,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.AddSubtitlesRequest](../../sdk/models/operations/addsubtitlesrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.AddSubtitlesRequest](../../models/operations/addsubtitlesrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.AddSubtitlesResponse](../../sdk/models/operations/addsubtitlesresponse.md)\>** +**Promise\** ### Errors @@ -3557,7 +3557,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -3592,7 +3592,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -3630,14 +3630,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetItemTreeRequest](../../sdk/models/operations/getitemtreerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetItemTreeRequest](../../models/operations/getitemtreerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetItemTreeResponse](../../sdk/models/operations/getitemtreeresponse.md)\>** +**Promise\<[shared.MediaContainerWithNestedMetadata](../../models/shared/mediacontainerwithnestedmetadata.md)\>** ### Errors @@ -3654,7 +3654,7 @@ Unmatch a metadata item to info fetched from the agent ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -3672,11 +3672,11 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.unmatch({ + await plexAPI.library.unmatch({ ids: "", }); - console.log(result); + } run(); @@ -3689,7 +3689,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -3714,7 +3714,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryUnmatch failed:", res.error); } @@ -3727,14 +3727,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.UnmatchRequest](../../sdk/models/operations/unmatchrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.UnmatchRequest](../../models/operations/unmatchrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.UnmatchResponse](../../sdk/models/operations/unmatchresponse.md)\>** +**Promise\** ### Errors @@ -3751,7 +3751,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -3786,7 +3786,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -3824,14 +3824,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListTopUsersRequest](../../sdk/models/operations/listtopusersrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.ListTopUsersRequest](../../models/operations/listtopusersrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.ListTopUsersResponse](../../sdk/models/operations/listtopusersresponse.md)\>** +**Promise\<[operations.ListTopUsersResponse](../../models/operations/listtopusersresponse.md)\>** ### Errors @@ -3848,7 +3848,7 @@ Start the detection of voice in a metadata item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -3866,13 +3866,13 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.detectVoiceActivity({ + await plexAPI.library.detectVoiceActivity({ ids: "", force: BoolInt.True, manual: BoolInt.True, }); - console.log(result); + } run(); @@ -3885,7 +3885,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryDetectVoiceActivity } from "@lukehagar/plexjs/funcs/libraryDetectVoiceActivity.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -3912,7 +3912,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryDetectVoiceActivity failed:", res.error); } @@ -3925,14 +3925,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.DetectVoiceActivityRequest](../../sdk/models/operations/detectvoiceactivityrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.DetectVoiceActivityRequest](../../models/operations/detectvoiceactivityrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.DetectVoiceActivityResponse](../../sdk/models/operations/detectvoiceactivityresponse.md)\>** +**Promise\** ### Errors @@ -3949,7 +3949,7 @@ Get augmentation status and potentially wait for completion ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -3967,12 +3967,12 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.getAugmentationStatus({ + await plexAPI.library.getAugmentationStatus({ augmentationId: "", wait: BoolInt.True, }); - console.log(result); + } run(); @@ -3985,7 +3985,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGetAugmentationStatus } from "@lukehagar/plexjs/funcs/libraryGetAugmentationStatus.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -4011,7 +4011,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryGetAugmentationStatus failed:", res.error); } @@ -4024,14 +4024,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetAugmentationStatusRequest](../../sdk/models/operations/getaugmentationstatusrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetAugmentationStatusRequest](../../models/operations/getaugmentationstatusrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetAugmentationStatusResponse](../../sdk/models/operations/getaugmentationstatusresponse.md)\>** +**Promise\** ### Errors @@ -4048,7 +4048,7 @@ Set which streams (audio/subtitle) are selected by this user ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -4066,12 +4066,12 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.setStreamSelection({ + await plexAPI.library.setStreamSelection({ partId: 360489, allParts: BoolInt.True, }); - console.log(result); + } run(); @@ -4084,7 +4084,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { librarySetStreamSelection } from "@lukehagar/plexjs/funcs/librarySetStreamSelection.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -4110,7 +4110,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("librarySetStreamSelection failed:", res.error); } @@ -4123,14 +4123,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.SetStreamSelectionRequest](../../sdk/models/operations/setstreamselectionrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.SetStreamSelectionRequest](../../models/operations/setstreamselectionrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.SetStreamSelectionResponse](../../sdk/models/operations/setstreamselectionresponse.md)\>** +**Promise\** ### Errors @@ -4147,7 +4147,7 @@ Get details for a single actor. ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -4182,7 +4182,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -4220,14 +4220,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetPersonRequest](../../sdk/models/operations/getpersonrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetPersonRequest](../../models/operations/getpersonrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetPersonResponse](../../sdk/models/operations/getpersonresponse.md)\>** +**Promise\<[operations.GetPersonResponse](../../models/operations/getpersonresponse.md)\>** ### Errors @@ -4244,7 +4244,7 @@ Get all the media for a single actor. ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -4279,7 +4279,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -4317,14 +4317,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListPersonMediaRequest](../../sdk/models/operations/listpersonmediarequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.ListPersonMediaRequest](../../models/operations/listpersonmediarequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.ListPersonMediaResponse](../../sdk/models/operations/listpersonmediaresponse.md)\>** +**Promise\<[shared.MediaContainerWithMetadata](../../models/shared/mediacontainerwithmetadata.md)\>** ### Errors @@ -4341,7 +4341,7 @@ Delete a library section by id ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -4359,12 +4359,12 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.deleteLibrarySection({ + await plexAPI.library.deleteLibrarySection({ sectionId: "", async: BoolInt.True, }); - console.log(result); + } run(); @@ -4377,7 +4377,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryDeleteLibrarySection } from "@lukehagar/plexjs/funcs/libraryDeleteLibrarySection.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -4403,7 +4403,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryDeleteLibrarySection failed:", res.error); } @@ -4416,14 +4416,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.DeleteLibrarySectionRequest](../../sdk/models/operations/deletelibrarysectionrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.DeleteLibrarySectionRequest](../../models/operations/deletelibrarysectionrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.DeleteLibrarySectionResponse](../../sdk/models/operations/deletelibrarysectionresponse.md)\>** +**Promise\** ### Errors @@ -4440,7 +4440,7 @@ Returns details for the library. This can be thought of as an interstitial endpo ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -4476,7 +4476,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGetLibraryDetails } from "@lukehagar/plexjs/funcs/libraryGetLibraryDetails.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -4515,14 +4515,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetLibraryDetailsRequest](../../sdk/models/operations/getlibrarydetailsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetLibraryDetailsRequest](../../models/operations/getlibrarydetailsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetLibraryDetailsResponse](../../sdk/models/operations/getlibrarydetailsresponse.md)\>** +**Promise\<[operations.GetLibraryDetailsResponse](../../models/operations/getlibrarydetailsresponse.md)\>** ### Errors @@ -4539,7 +4539,7 @@ Edit a library section by id setting parameters ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -4557,7 +4557,7 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.editSection({ + await plexAPI.library.editSection({ sectionId: "", agent: "", locations: [ @@ -4567,7 +4567,7 @@ async function run() { prefs: {}, }); - console.log(result); + } run(); @@ -4580,7 +4580,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -4611,7 +4611,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryEditSection failed:", res.error); } @@ -4624,14 +4624,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.EditSectionRequest](../../sdk/models/operations/editsectionrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.EditSectionRequest](../../models/operations/editsectionrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.EditSectionResponse](../../sdk/models/operations/editsectionresponse.md)\>** +**Promise\** ### Errors @@ -4692,7 +4692,7 @@ This endpoint takes an large possible set of values. Here are some examples. ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -4710,12 +4710,12 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.updateItems({ + await plexAPI.library.updateItems({ sectionId: "", fieldLocked: BoolInt.True, }); - console.log(result); + } run(); @@ -4728,7 +4728,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryUpdateItems } from "@lukehagar/plexjs/funcs/libraryUpdateItems.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -4754,7 +4754,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryUpdateItems failed:", res.error); } @@ -4767,14 +4767,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.UpdateItemsRequest](../../sdk/models/operations/updateitemsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.UpdateItemsRequest](../../models/operations/updateitemsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.UpdateItemsResponse](../../sdk/models/operations/updateitemsresponse.md)\>** +**Promise\** ### Errors @@ -4791,7 +4791,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -4809,11 +4809,11 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.startAnalysis({ + await plexAPI.library.startAnalysis({ sectionId: 158829, }); - console.log(result); + } run(); @@ -4826,7 +4826,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -4851,7 +4851,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryStartAnalysis failed:", res.error); } @@ -4864,14 +4864,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.StartAnalysisRequest](../../sdk/models/operations/startanalysisrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.StartAnalysisRequest](../../models/operations/startanalysisrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.StartAnalysisResponse](../../sdk/models/operations/startanalysisresponse.md)\>** +**Promise\** ### Errors @@ -4889,7 +4889,7 @@ Returns a set of items from the filtered items whose `{field}` starts with `{fie ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, MediaType } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, MediaType } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -4929,7 +4929,7 @@ 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, MediaType } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, MediaType } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -4972,14 +4972,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.AutocompleteRequest](../../sdk/models/operations/autocompleterequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.AutocompleteRequest](../../models/operations/autocompleterequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.AutocompleteResponse](../../sdk/models/operations/autocompleteresponse.md)\>** +**Promise\<[operations.AutocompleteResponse](../../models/operations/autocompleteresponse.md)\>** ### Errors @@ -4996,7 +4996,7 @@ Get all collections in a section ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, MediaType } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, MediaType } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -5036,7 +5036,7 @@ 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, MediaType } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, MediaType } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -5079,14 +5079,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetCollectionsRequest](../../sdk/models/operations/getcollectionsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetCollectionsRequest](../../models/operations/getcollectionsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetCollectionsResponse](../../sdk/models/operations/getcollectionsresponse.md)\>** +**Promise\<[operations.GetCollectionsResponse](../../models/operations/getcollectionsresponse.md)\>** ### Errors @@ -5104,7 +5104,7 @@ Fields which are not common will be expressed in the `mixedFields` field ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, MediaType } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, MediaType } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -5144,7 +5144,7 @@ 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, MediaType } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, MediaType } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -5187,14 +5187,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetCommonRequest](../../sdk/models/operations/getcommonrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetCommonRequest](../../models/operations/getcommonrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetCommonResponse](../../sdk/models/operations/getcommonresponse.md)\>** +**Promise\<[operations.GetCommonResponse](../../models/operations/getcommonresponse.md)\>** ### Errors @@ -5211,7 +5211,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -5229,11 +5229,11 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.emptyTrash({ + await plexAPI.library.emptyTrash({ sectionId: 30052, }); - console.log(result); + } run(); @@ -5246,7 +5246,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -5271,7 +5271,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryEmptyTrash failed:", res.error); } @@ -5284,14 +5284,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.EmptyTrashRequest](../../sdk/models/operations/emptytrashrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.EmptyTrashRequest](../../models/operations/emptytrashrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.EmptyTrashResponse](../../sdk/models/operations/emptytrashresponse.md)\>** +**Promise\** ### Errors @@ -5308,7 +5308,7 @@ Get common filters on a section ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -5343,7 +5343,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -5381,14 +5381,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetSectionFiltersRequest](../../sdk/models/operations/getsectionfiltersrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetSectionFiltersRequest](../../models/operations/getsectionfiltersrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetSectionFiltersResponse](../../sdk/models/operations/getsectionfiltersresponse.md)\>** +**Promise\<[operations.GetSectionFiltersResponse](../../models/operations/getsectionfiltersresponse.md)\>** ### Errors @@ -5405,7 +5405,7 @@ Get list of first characters in this section ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, MediaType } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, MediaType } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -5445,7 +5445,7 @@ 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, MediaType } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, MediaType } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -5488,14 +5488,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetFirstCharactersRequest](../../sdk/models/operations/getfirstcharactersrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetFirstCharactersRequest](../../models/operations/getfirstcharactersrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetFirstCharactersResponse](../../sdk/models/operations/getfirstcharactersresponse.md)\>** +**Promise\<[operations.GetFirstCharactersResponse](../../models/operations/getfirstcharactersresponse.md)\>** ### Errors @@ -5512,7 +5512,7 @@ Delete all the indexes in a section ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -5530,11 +5530,11 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.deleteIndexes({ + await plexAPI.library.deleteIndexes({ sectionId: 588437, }); - console.log(result); + } run(); @@ -5547,7 +5547,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -5572,7 +5572,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryDeleteIndexes failed:", res.error); } @@ -5585,14 +5585,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.DeleteIndexesRequest](../../sdk/models/operations/deleteindexesrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.DeleteIndexesRequest](../../models/operations/deleteindexesrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.DeleteIndexesResponse](../../sdk/models/operations/deleteindexesresponse.md)\>** +**Promise\** ### Errors @@ -5609,7 +5609,7 @@ Delete all the intro markers in a section ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -5627,11 +5627,11 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.deleteIntros({ + await plexAPI.library.deleteIntros({ sectionId: 498656, }); - console.log(result); + } run(); @@ -5644,7 +5644,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -5669,7 +5669,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryDeleteIntros failed:", res.error); } @@ -5682,14 +5682,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.DeleteIntrosRequest](../../sdk/models/operations/deleteintrosrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.DeleteIntrosRequest](../../models/operations/deleteintrosrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.DeleteIntrosResponse](../../sdk/models/operations/deleteintrosresponse.md)\>** +**Promise\** ### Errors @@ -5706,7 +5706,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -5741,7 +5741,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -5779,14 +5779,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetSectionPreferencesRequest](../../sdk/models/operations/getsectionpreferencesrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetSectionPreferencesRequest](../../models/operations/getsectionpreferencesrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetSectionPreferencesResponse](../../sdk/models/operations/getsectionpreferencesresponse.md)\>** +**Promise\<[shared.MediaContainerWithSettings](../../models/shared/mediacontainerwithsettings.md)\>** ### Errors @@ -5803,7 +5803,7 @@ Set the prefs for a section by id ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -5821,12 +5821,12 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.setSectionPreferences({ + await plexAPI.library.setSectionPreferences({ sectionId: 349936, prefs: {}, }); - console.log(result); + } run(); @@ -5839,7 +5839,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -5865,7 +5865,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("librarySetSectionPreferences failed:", res.error); } @@ -5878,14 +5878,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.SetSectionPreferencesRequest](../../sdk/models/operations/setsectionpreferencesrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.SetSectionPreferencesRequest](../../models/operations/setsectionpreferencesrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.SetSectionPreferencesResponse](../../sdk/models/operations/setsectionpreferencesresponse.md)\>** +**Promise\** ### Errors @@ -5902,7 +5902,7 @@ Cancel the refresh of a section ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -5920,11 +5920,11 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.cancelRefresh({ + await plexAPI.library.cancelRefresh({ sectionId: 326852, }); - console.log(result); + } run(); @@ -5937,7 +5937,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -5962,7 +5962,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryCancelRefresh failed:", res.error); } @@ -5975,14 +5975,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.CancelRefreshRequest](../../sdk/models/operations/cancelrefreshrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.CancelRefreshRequest](../../models/operations/cancelrefreshrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.CancelRefreshResponse](../../sdk/models/operations/cancelrefreshresponse.md)\>** +**Promise\** ### Errors @@ -5999,7 +5999,7 @@ Start a refresh of this section ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -6017,12 +6017,12 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.refreshSection({ + await plexAPI.library.refreshSection({ sectionId: 450300, force: BoolInt.True, }); - console.log(result); + } run(); @@ -6035,7 +6035,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryRefreshSection } from "@lukehagar/plexjs/funcs/libraryRefreshSection.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -6061,7 +6061,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryRefreshSection failed:", res.error); } @@ -6074,14 +6074,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.RefreshSectionRequest](../../sdk/models/operations/refreshsectionrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.RefreshSectionRequest](../../models/operations/refreshsectionrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.RefreshSectionResponse](../../sdk/models/operations/refreshsectionresponse.md)\>** +**Promise\** ### Errors @@ -6098,7 +6098,7 @@ Get the sort mechanisms available in a section ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -6133,7 +6133,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -6171,14 +6171,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetAvailableSortsRequest](../../sdk/models/operations/getavailablesortsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetAvailableSortsRequest](../../models/operations/getavailablesortsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetAvailableSortsResponse](../../sdk/models/operations/getavailablesortsresponse.md)\>** +**Promise\<[operations.GetAvailableSortsResponse](../../models/operations/getavailablesortsresponse.md)\>** ### Errors @@ -6195,7 +6195,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -6230,7 +6230,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -6268,14 +6268,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetStreamLevelsRequest](../../sdk/models/operations/getstreamlevelsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetStreamLevelsRequest](../../models/operations/getstreamlevelsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetStreamLevelsResponse](../../sdk/models/operations/getstreamlevelsresponse.md)\>** +**Promise\<[operations.GetStreamLevelsResponse](../../models/operations/getstreamlevelsresponse.md)\>** ### Errors @@ -6292,7 +6292,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -6327,7 +6327,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -6365,14 +6365,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetStreamLoudnessRequest](../../sdk/models/operations/getstreamloudnessrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetStreamLoudnessRequest](../../models/operations/getstreamloudnessrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetStreamLoudnessResponse](../../sdk/models/operations/getstreamloudnessresponse.md)\>** +**Promise\<[string](../../models/.md)\>** ### Errors @@ -6389,7 +6389,7 @@ Get a single chapter image for a piece of media ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -6425,7 +6425,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -6464,14 +6464,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetChapterImageRequest](../../sdk/models/operations/getchapterimagerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetChapterImageRequest](../../models/operations/getchapterimagerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetChapterImageResponse](../../sdk/models/operations/getchapterimageresponse.md)\>** +**Promise\<[ReadableStream](../../models/.md)\>** ### Errors @@ -6489,8 +6489,8 @@ 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"; +import { SetItemArtworkElement } from "@lukehagar/plexjs/models/operations"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -6508,12 +6508,12 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.setItemArtwork({ + await plexAPI.library.setItemArtwork({ ids: "", element: SetItemArtworkElement.Banner, }); - console.log(result); + } run(); @@ -6526,8 +6526,8 @@ The standalone function version of this method: ```typescript 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"; +import { SetItemArtworkElement } from "@lukehagar/plexjs/models/operations"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -6553,7 +6553,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("librarySetItemArtwork failed:", res.error); } @@ -6566,14 +6566,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.SetItemArtworkRequest](../../sdk/models/operations/setitemartworkrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.SetItemArtworkRequest](../../models/operations/setitemartworkrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.SetItemArtworkResponse](../../sdk/models/operations/setitemartworkresponse.md)\>** +**Promise\** ### Errors @@ -6591,8 +6591,8 @@ 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"; +import { UpdateItemArtworkElement } from "@lukehagar/plexjs/models/operations"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -6610,12 +6610,12 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.updateItemArtwork({ + await plexAPI.library.updateItemArtwork({ ids: "", element: UpdateItemArtworkElement.ClearLogo, }); - console.log(result); + } run(); @@ -6628,8 +6628,8 @@ The standalone function version of this method: ```typescript 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"; +import { UpdateItemArtworkElement } from "@lukehagar/plexjs/models/operations"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -6655,7 +6655,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryUpdateItemArtwork failed:", res.error); } @@ -6668,14 +6668,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.UpdateItemArtworkRequest](../../sdk/models/operations/updateitemartworkrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.UpdateItemArtworkRequest](../../models/operations/updateitemartworkrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.UpdateItemArtworkResponse](../../sdk/models/operations/updateitemartworkresponse.md)\>** +**Promise\** ### Errors @@ -6692,7 +6692,7 @@ Delete a marker for this user on the metadata item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -6710,12 +6710,12 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.deleteMarker({ + await plexAPI.library.deleteMarker({ ids: "", marker: "", }); - console.log(result); + } run(); @@ -6728,7 +6728,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -6754,7 +6754,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryDeleteMarker failed:", res.error); } @@ -6767,14 +6767,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.DeleteMarkerRequest](../../sdk/models/operations/deletemarkerrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.DeleteMarkerRequest](../../models/operations/deletemarkerrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.DeleteMarkerResponse](../../sdk/models/operations/deletemarkerresponse.md)\>** +**Promise\** ### Errors @@ -6791,7 +6791,7 @@ Edit a marker for this user on the metadata item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -6830,7 +6830,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -6872,14 +6872,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.EditMarkerRequest](../../sdk/models/operations/editmarkerrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.EditMarkerRequest](../../models/operations/editmarkerrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.EditMarkerResponse](../../sdk/models/operations/editmarkerresponse.md)\>** +**Promise\<[shared.PostResponses200](../../models/shared/postresponses200.md)\>** ### Errors @@ -6896,7 +6896,7 @@ Delete a single media from a metadata item in the library ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -6914,13 +6914,13 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.deleteMediaItem({ + await plexAPI.library.deleteMediaItem({ ids: "", mediaItem: "", proxy: BoolInt.True, }); - console.log(result); + } run(); @@ -6933,7 +6933,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryDeleteMediaItem } from "@lukehagar/plexjs/funcs/libraryDeleteMediaItem.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -6960,7 +6960,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryDeleteMediaItem failed:", res.error); } @@ -6973,14 +6973,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.DeleteMediaItemRequest](../../sdk/models/operations/deletemediaitemrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.DeleteMediaItemRequest](../../models/operations/deletemediaitemrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.DeleteMediaItemResponse](../../sdk/models/operations/deletemediaitemresponse.md)\>** +**Promise\** ### Errors @@ -6997,8 +6997,8 @@ 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"; +import { GetPartIndexIndex } from "@lukehagar/plexjs/models/operations"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -7034,8 +7034,8 @@ The standalone function version of this method: ```typescript 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"; +import { GetPartIndexIndex } from "@lukehagar/plexjs/models/operations"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -7074,14 +7074,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetPartIndexRequest](../../sdk/models/operations/getpartindexrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetPartIndexRequest](../../models/operations/getpartindexrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetPartIndexResponse](../../sdk/models/operations/getpartindexresponse.md)\>** +**Promise\<[ReadableStream](../../models/.md)\>** ### Errors @@ -7098,7 +7098,7 @@ Delete a library collection from the PMS ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -7116,12 +7116,12 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.deleteCollection({ + await plexAPI.library.deleteCollection({ sectionId: 283619, collectionId: 680895, }); - console.log(result); + } run(); @@ -7134,7 +7134,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -7160,7 +7160,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryDeleteCollection failed:", res.error); } @@ -7173,14 +7173,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.DeleteCollectionRequest](../../sdk/models/operations/deletecollectionrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.DeleteCollectionRequest](../../models/operations/deletecollectionrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.DeleteCollectionResponse](../../sdk/models/operations/deletecollectionresponse.md)\>** +**Promise\** ### Errors @@ -7197,7 +7197,7 @@ Get a composite image of images in this section ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, MediaType } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, MediaType } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -7215,7 +7215,7 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.getSectionImage({ + await plexAPI.library.getSectionImage({ sectionId: 925611, updatedAt: 117413, mediaQuery: { @@ -7225,7 +7225,7 @@ async function run() { }, }); - console.log(result); + } run(); @@ -7238,7 +7238,7 @@ 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, MediaType } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, MediaType } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -7269,7 +7269,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryGetSectionImage failed:", res.error); } @@ -7282,14 +7282,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetSectionImageRequest](../../sdk/models/operations/getsectionimagerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetSectionImageRequest](../../models/operations/getsectionimagerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetSectionImageResponse](../../sdk/models/operations/getsectionimageresponse.md)\>** +**Promise\** ### Errors @@ -7306,7 +7306,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -7324,12 +7324,12 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.deleteStream({ + await plexAPI.library.deleteStream({ streamId: 841510, ext: "", }); - console.log(result); + } run(); @@ -7342,7 +7342,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -7368,7 +7368,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryDeleteStream failed:", res.error); } @@ -7381,14 +7381,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.DeleteStreamRequest](../../sdk/models/operations/deletestreamrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.DeleteStreamRequest](../../models/operations/deletestreamrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.DeleteStreamResponse](../../sdk/models/operations/deletestreamresponse.md)\>** +**Promise\** ### Errors @@ -7405,7 +7405,7 @@ Get a stream (such as a sidecar subtitle stream) ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -7423,13 +7423,13 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.getStream({ + await plexAPI.library.getStream({ streamId: 314506, ext: "", autoAdjustSubtitle: BoolInt.True, }); - console.log(result); + } run(); @@ -7442,7 +7442,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGetStream } from "@lukehagar/plexjs/funcs/libraryGetStream.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -7469,7 +7469,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryGetStream failed:", res.error); } @@ -7482,14 +7482,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetStreamRequest](../../sdk/models/operations/getstreamrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetStreamRequest](../../models/operations/getstreamrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetStreamResponse](../../sdk/models/operations/getstreamresponse.md)\>** +**Promise\** ### Errors @@ -7506,7 +7506,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -7524,12 +7524,12 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.library.setStreamOffset({ + await plexAPI.library.setStreamOffset({ streamId: 606295, ext: "", }); - console.log(result); + } run(); @@ -7542,7 +7542,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -7568,7 +7568,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("librarySetStreamOffset failed:", res.error); } @@ -7581,14 +7581,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.SetStreamOffsetRequest](../../sdk/models/operations/setstreamoffsetrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.SetStreamOffsetRequest](../../models/operations/setstreamoffsetrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.SetStreamOffsetResponse](../../sdk/models/operations/setstreamoffsetresponse.md)\>** +**Promise\** ### Errors @@ -7605,8 +7605,8 @@ 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"; +import { GetItemArtworkElement } from "@lukehagar/plexjs/models/operations"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -7643,8 +7643,8 @@ The standalone function version of this method: ```typescript 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"; +import { GetItemArtworkElement } from "@lukehagar/plexjs/models/operations"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -7684,14 +7684,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetItemArtworkRequest](../../sdk/models/operations/getitemartworkrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetItemArtworkRequest](../../models/operations/getitemartworkrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetItemArtworkResponse](../../sdk/models/operations/getitemartworkresponse.md)\>** +**Promise\<[operations.GetItemArtworkResponse](../../models/operations/getitemartworkresponse.md)\>** ### Errors @@ -7711,7 +7711,7 @@ Get a media part for streaming or download. ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -7749,7 +7749,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGetMediaPart } from "@lukehagar/plexjs/funcs/libraryGetMediaPart.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -7790,14 +7790,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetMediaPartRequest](../../sdk/models/operations/getmediapartrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetMediaPartRequest](../../models/operations/getmediapartrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetMediaPartResponse](../../sdk/models/operations/getmediapartresponse.md)\>** +**Promise\<[operations.GetMediaPartResponse](../../models/operations/getmediapartresponse.md)\>** ### Errors @@ -7814,8 +7814,8 @@ 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"; +import { GetImageFromBifIndex } from "@lukehagar/plexjs/models/operations"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -7852,8 +7852,8 @@ The standalone function version of this method: ```typescript 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"; +import { GetImageFromBifIndex } from "@lukehagar/plexjs/models/operations"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -7893,14 +7893,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetImageFromBifRequest](../../sdk/models/operations/getimagefrombifrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetImageFromBifRequest](../../models/operations/getimagefrombifrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetImageFromBifResponse](../../sdk/models/operations/getimagefrombifresponse.md)\>** +**Promise\<[ReadableStream](../../models/.md)\>** ### Errors diff --git a/docs/sdks/librarycollections/README.md b/docs/sdks/librarycollections/README.md index 3db447b4..ecd508e8 100644 --- a/docs/sdks/librarycollections/README.md +++ b/docs/sdks/librarycollections/README.md @@ -20,7 +20,7 @@ Add items to a collection by uri ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -56,7 +56,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -95,14 +95,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.AddCollectionItemsRequest](../../sdk/models/operations/addcollectionitemsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.AddCollectionItemsRequest](../../models/operations/addcollectionitemsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.AddCollectionItemsResponse](../../sdk/models/operations/addcollectionitemsresponse.md)\>** +**Promise\<[shared.MediaContainerWithMetadata](../../models/shared/mediacontainerwithmetadata.md)\>** ### Errors @@ -119,7 +119,7 @@ Delete an item from a collection ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -155,7 +155,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -194,14 +194,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.DeleteCollectionItemRequest](../../sdk/models/operations/deletecollectionitemrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.DeleteCollectionItemRequest](../../models/operations/deletecollectionitemrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.DeleteCollectionItemResponse](../../sdk/models/operations/deletecollectionitemresponse.md)\>** +**Promise\<[shared.MediaContainerWithMetadata](../../models/shared/mediacontainerwithmetadata.md)\>** ### Errors @@ -218,7 +218,7 @@ Reorder items in a collection with one item after another ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -254,7 +254,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -293,14 +293,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.MoveCollectionItemRequest](../../sdk/models/operations/movecollectionitemrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.MoveCollectionItemRequest](../../models/operations/movecollectionitemrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.MoveCollectionItemResponse](../../sdk/models/operations/movecollectionitemresponse.md)\>** +**Promise\<[shared.MediaContainerWithMetadata](../../models/shared/mediacontainerwithmetadata.md)\>** ### Errors diff --git a/docs/sdks/libraryplaylists/README.md b/docs/sdks/libraryplaylists/README.md index 1912b746..6055847f 100644 --- a/docs/sdks/libraryplaylists/README.md +++ b/docs/sdks/libraryplaylists/README.md @@ -30,7 +30,7 @@ Create a new playlist. By default the playlist is blank. ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -65,7 +65,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -103,14 +103,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.CreatePlaylistRequest](../../sdk/models/operations/createplaylistrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.CreatePlaylistRequest](../../models/operations/createplaylistrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.CreatePlaylistResponse](../../sdk/models/operations/createplaylistresponse.md)\>** +**Promise\<[shared.MediaContainerWithPlaylistMetadata](../../models/shared/mediacontainerwithplaylistmetadata.md)\>** ### Errors @@ -127,7 +127,7 @@ Imports m3u playlists by passing a path on the server to scan for m3u-formatted ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -145,12 +145,12 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.libraryPlaylists.uploadPlaylist({ + await plexAPI.libraryPlaylists.uploadPlaylist({ path: "/home/barkley/playlist.m3u", force: BoolInt.True, }); - console.log(result); + } run(); @@ -163,7 +163,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryPlaylistsUploadPlaylist } from "@lukehagar/plexjs/funcs/libraryPlaylistsUploadPlaylist.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -189,7 +189,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryPlaylistsUploadPlaylist failed:", res.error); } @@ -202,14 +202,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.UploadPlaylistRequest](../../sdk/models/operations/uploadplaylistrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.UploadPlaylistRequest](../../models/operations/uploadplaylistrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.UploadPlaylistResponse](../../sdk/models/operations/uploadplaylistresponse.md)\>** +**Promise\** ### Errors @@ -226,7 +226,7 @@ Deletes a playlist by provided id ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -244,11 +244,11 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.libraryPlaylists.deletePlaylist({ + await plexAPI.libraryPlaylists.deletePlaylist({ playlistId: 343293, }); - console.log(result); + } run(); @@ -261,7 +261,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -286,7 +286,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryPlaylistsDeletePlaylist failed:", res.error); } @@ -299,14 +299,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.DeletePlaylistRequest](../../sdk/models/operations/deleteplaylistrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.DeletePlaylistRequest](../../models/operations/deleteplaylistrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.DeletePlaylistResponse](../../sdk/models/operations/deleteplaylistresponse.md)\>** +**Promise\** ### Errors @@ -323,7 +323,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -341,11 +341,11 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.libraryPlaylists.updatePlaylist({ + await plexAPI.libraryPlaylists.updatePlaylist({ playlistId: 157966, }); - console.log(result); + } run(); @@ -358,7 +358,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -383,7 +383,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryPlaylistsUpdatePlaylist failed:", res.error); } @@ -396,14 +396,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.UpdatePlaylistRequest](../../sdk/models/operations/updateplaylistrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.UpdatePlaylistRequest](../../models/operations/updateplaylistrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.UpdatePlaylistResponse](../../sdk/models/operations/updateplaylistresponse.md)\>** +**Promise\** ### Errors @@ -420,7 +420,7 @@ Get all the generators in a playlist ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -455,7 +455,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -493,14 +493,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetPlaylistGeneratorsRequest](../../sdk/models/operations/getplaylistgeneratorsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetPlaylistGeneratorsRequest](../../models/operations/getplaylistgeneratorsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetPlaylistGeneratorsResponse](../../sdk/models/operations/getplaylistgeneratorsresponse.md)\>** +**Promise\<[operations.GetPlaylistGeneratorsResponse](../../models/operations/getplaylistgeneratorsresponse.md)\>** ### Errors @@ -517,7 +517,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -552,7 +552,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -590,14 +590,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ClearPlaylistItemsRequest](../../sdk/models/operations/clearplaylistitemsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.ClearPlaylistItemsRequest](../../models/operations/clearplaylistitemsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.ClearPlaylistItemsResponse](../../sdk/models/operations/clearplaylistitemsresponse.md)\>** +**Promise\<[shared.MediaContainerWithPlaylistMetadata](../../models/shared/mediacontainerwithplaylistmetadata.md)\>** ### Errors @@ -614,7 +614,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -649,7 +649,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -687,14 +687,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.AddPlaylistItemsRequest](../../sdk/models/operations/addplaylistitemsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.AddPlaylistItemsRequest](../../models/operations/addplaylistitemsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.AddPlaylistItemsResponse](../../sdk/models/operations/addplaylistitemsresponse.md)\>** +**Promise\<[shared.MediaContainerWithPlaylistMetadata](../../models/shared/mediacontainerwithplaylistmetadata.md)\>** ### Errors @@ -711,7 +711,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -747,7 +747,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -786,14 +786,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.DeletePlaylistItemRequest](../../sdk/models/operations/deleteplaylistitemrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.DeletePlaylistItemRequest](../../models/operations/deleteplaylistitemrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.DeletePlaylistItemResponse](../../sdk/models/operations/deleteplaylistitemresponse.md)\>** +**Promise\<[shared.MediaContainerWithPlaylistMetadata](../../models/shared/mediacontainerwithplaylistmetadata.md)\>** ### Errors @@ -810,7 +810,7 @@ Get a playlist's generator. Only used for optimized versions ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -846,7 +846,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -885,14 +885,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetPlaylistGeneratorRequest](../../sdk/models/operations/getplaylistgeneratorrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetPlaylistGeneratorRequest](../../models/operations/getplaylistgeneratorrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetPlaylistGeneratorResponse](../../sdk/models/operations/getplaylistgeneratorresponse.md)\>** +**Promise\<[operations.GetPlaylistGeneratorResponse](../../models/operations/getplaylistgeneratorresponse.md)\>** ### Errors @@ -909,8 +909,8 @@ Modify a playlist generator. Only used for optimizer ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { ModifyPlaylistGeneratorScope } from "@lukehagar/plexjs/sdk/models/operations"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { ModifyPlaylistGeneratorScope } from "@lukehagar/plexjs/models/operations"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -959,8 +959,8 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryPlaylistsModifyPlaylistGenerator } from "@lukehagar/plexjs/funcs/libraryPlaylistsModifyPlaylistGenerator.js"; -import { ModifyPlaylistGeneratorScope } from "@lukehagar/plexjs/sdk/models/operations"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { ModifyPlaylistGeneratorScope } from "@lukehagar/plexjs/models/operations"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -1012,14 +1012,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ModifyPlaylistGeneratorRequest](../../sdk/models/operations/modifyplaylistgeneratorrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.ModifyPlaylistGeneratorRequest](../../models/operations/modifyplaylistgeneratorrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.ModifyPlaylistGeneratorResponse](../../sdk/models/operations/modifyplaylistgeneratorresponse.md)\>** +**Promise\<[shared.MediaContainerWithPlaylistMetadata](../../models/shared/mediacontainerwithplaylistmetadata.md)\>** ### Errors @@ -1036,7 +1036,7 @@ Get a playlist generator's items ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1072,7 +1072,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -1111,14 +1111,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetPlaylistGeneratorItemsRequest](../../sdk/models/operations/getplaylistgeneratoritemsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetPlaylistGeneratorItemsRequest](../../models/operations/getplaylistgeneratoritemsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetPlaylistGeneratorItemsResponse](../../sdk/models/operations/getplaylistgeneratoritemsresponse.md)\>** +**Promise\<[operations.GetPlaylistGeneratorItemsResponse](../../models/operations/getplaylistgeneratoritemsresponse.md)\>** ### Errors @@ -1135,7 +1135,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1171,7 +1171,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -1210,14 +1210,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.MovePlaylistItemRequest](../../sdk/models/operations/moveplaylistitemrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.MovePlaylistItemRequest](../../models/operations/moveplaylistitemrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.MovePlaylistItemResponse](../../sdk/models/operations/moveplaylistitemresponse.md)\>** +**Promise\<[shared.MediaContainerWithPlaylistMetadata](../../models/shared/mediacontainerwithplaylistmetadata.md)\>** ### Errors @@ -1234,8 +1234,8 @@ 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"; +import { Action } from "@lukehagar/plexjs/models/operations"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -1253,14 +1253,14 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.libraryPlaylists.refreshPlaylist({ + await plexAPI.libraryPlaylists.refreshPlaylist({ playlistId: 895314, generatorId: 629742, metadataId: 724422, action: Action.Disable, }); - console.log(result); + } run(); @@ -1273,8 +1273,8 @@ The standalone function version of this method: ```typescript 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"; +import { Action } from "@lukehagar/plexjs/models/operations"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -1302,7 +1302,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("libraryPlaylistsRefreshPlaylist failed:", res.error); } @@ -1315,14 +1315,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.RefreshPlaylistRequest](../../sdk/models/operations/refreshplaylistrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.RefreshPlaylistRequest](../../models/operations/refreshplaylistrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.RefreshPlaylistResponse](../../sdk/models/operations/refreshplaylistresponse.md)\>** +**Promise\** ### Errors diff --git a/docs/sdks/livetv/README.md b/docs/sdks/livetv/README.md index 92db0ac1..f0731a40 100644 --- a/docs/sdks/livetv/README.md +++ b/docs/sdks/livetv/README.md @@ -73,7 +73,7 @@ run(); ### Response -**Promise\<[operations.GetSessionsResponse](../../sdk/models/operations/getsessionsresponse.md)\>** +**Promise\<[operations.GetSessionsResponse](../../models/operations/getsessionsresponse.md)\>** ### Errors @@ -90,7 +90,7 @@ Get a single livetv session and metadata ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -125,7 +125,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -163,14 +163,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetLiveTVSessionRequest](../../sdk/models/operations/getlivetvsessionrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetLiveTVSessionRequest](../../models/operations/getlivetvsessionrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetLiveTVSessionResponse](../../sdk/models/operations/getlivetvsessionresponse.md)\>** +**Promise\<[operations.GetLiveTVSessionResponse](../../models/operations/getlivetvsessionresponse.md)\>** ### Errors @@ -187,7 +187,7 @@ Get a playlist index for playing this session ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -205,12 +205,12 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.liveTV.getSessionPlaylistIndex({ + await plexAPI.liveTV.getSessionPlaylistIndex({ sessionId: "", consumerId: "", }); - console.log(result); + } run(); @@ -223,7 +223,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -249,7 +249,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("liveTVGetSessionPlaylistIndex failed:", res.error); } @@ -262,14 +262,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetSessionPlaylistIndexRequest](../../sdk/models/operations/getsessionplaylistindexrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetSessionPlaylistIndexRequest](../../models/operations/getsessionplaylistindexrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetSessionPlaylistIndexResponse](../../sdk/models/operations/getsessionplaylistindexresponse.md)\>** +**Promise\** ### Errors @@ -286,7 +286,7 @@ Get a single LiveTV session segment ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -304,13 +304,13 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.liveTV.getSessionSegment({ + await plexAPI.liveTV.getSessionSegment({ sessionId: "", consumerId: "", segmentId: "", }); - console.log(result); + } run(); @@ -323,7 +323,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -350,7 +350,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("liveTVGetSessionSegment failed:", res.error); } @@ -363,14 +363,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetSessionSegmentRequest](../../sdk/models/operations/getsessionsegmentrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetSessionSegmentRequest](../../models/operations/getsessionsegmentrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetSessionSegmentResponse](../../sdk/models/operations/getsessionsegmentresponse.md)\>** +**Promise\** ### Errors diff --git a/docs/sdks/log/README.md b/docs/sdks/log/README.md index 93d171f8..f678fbbc 100644 --- a/docs/sdks/log/README.md +++ b/docs/sdks/log/README.md @@ -28,9 +28,9 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.log.writeLog(await openAsBlob("example.file")); + await plexAPI.log.writeLog(await openAsBlob("example.file")); + - console.log(result); } run(); @@ -55,7 +55,7 @@ async function run() { const res = await logWriteLog(plexAPI, await openAsBlob("example.file")); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("logWriteLog failed:", res.error); } @@ -75,7 +75,7 @@ run(); ### Response -**Promise\<[operations.WriteLogResponse](../../sdk/models/operations/writelogresponse.md)\>** +**Promise\** ### Errors @@ -95,7 +95,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -113,9 +113,9 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.log.writeMessage({}); + await plexAPI.log.writeMessage({}); + - console.log(result); } run(); @@ -128,7 +128,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -151,7 +151,7 @@ async function run() { const res = await logWriteMessage(plexAPI, {}); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("logWriteMessage failed:", res.error); } @@ -164,14 +164,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.WriteMessageRequest](../../sdk/models/operations/writemessagerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.WriteMessageRequest](../../models/operations/writemessagerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.WriteMessageResponse](../../sdk/models/operations/writemessageresponse.md)\>** +**Promise\** ### Errors @@ -191,7 +191,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -209,9 +209,9 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.log.enablePapertrail({}); + await plexAPI.log.enablePapertrail({}); + - console.log(result); } run(); @@ -224,7 +224,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -247,7 +247,7 @@ async function run() { const res = await logEnablePapertrail(plexAPI, {}); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("logEnablePapertrail failed:", res.error); } @@ -260,14 +260,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.EnablePapertrailRequest](../../sdk/models/operations/enablepapertrailrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.EnablePapertrailRequest](../../models/operations/enablepapertrailrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.EnablePapertrailResponse](../../sdk/models/operations/enablepapertrailresponse.md)\>** +**Promise\** ### Errors diff --git a/docs/sdks/playlist/README.md b/docs/sdks/playlist/README.md index a803835e..b73c21d9 100644 --- a/docs/sdks/playlist/README.md +++ b/docs/sdks/playlist/README.md @@ -20,7 +20,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -53,7 +53,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -89,14 +89,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListPlaylistsRequest](../../sdk/models/operations/listplaylistsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.ListPlaylistsRequest](../../models/operations/listplaylistsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.ListPlaylistsResponse](../../sdk/models/operations/listplaylistsresponse.md)\>** +**Promise\<[operations.ListPlaylistsResponse](../../models/operations/listplaylistsresponse.md)\>** ### Errors @@ -114,7 +114,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -149,7 +149,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -187,14 +187,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetPlaylistRequest](../../sdk/models/operations/getplaylistrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetPlaylistRequest](../../models/operations/getplaylistrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetPlaylistResponse](../../sdk/models/operations/getplaylistresponse.md)\>** +**Promise\<[shared.MediaContainerWithPlaylistMetadata](../../models/shared/mediacontainerwithplaylistmetadata.md)\>** ### Errors @@ -211,7 +211,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -246,7 +246,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -284,14 +284,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetPlaylistItemsRequest](../../sdk/models/operations/getplaylistitemsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetPlaylistItemsRequest](../../models/operations/getplaylistitemsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetPlaylistItemsResponse](../../sdk/models/operations/getplaylistitemsresponse.md)\>** +**Promise\<[operations.GetPlaylistItemsResponse](../../models/operations/getplaylistitemsresponse.md)\>** ### Errors diff --git a/docs/sdks/playqueue/README.md b/docs/sdks/playqueue/README.md index b3e6cece..b597f1b8 100644 --- a/docs/sdks/playqueue/README.md +++ b/docs/sdks/playqueue/README.md @@ -32,8 +32,8 @@ Note: Either `uri` or `playlistID` must be specified ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { CreatePlayQueueType } from "@lukehagar/plexjs/sdk/models/operations"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { CreatePlayQueueType } from "@lukehagar/plexjs/models/operations"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -73,8 +73,8 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { playQueueCreatePlayQueue } from "@lukehagar/plexjs/funcs/playQueueCreatePlayQueue.js"; -import { CreatePlayQueueType } from "@lukehagar/plexjs/sdk/models/operations"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { CreatePlayQueueType } from "@lukehagar/plexjs/models/operations"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -117,14 +117,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.CreatePlayQueueRequest](../../sdk/models/operations/createplayqueuerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.CreatePlayQueueRequest](../../models/operations/createplayqueuerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.CreatePlayQueueResponse](../../sdk/models/operations/createplayqueueresponse.md)\>** +**Promise\<[operations.CreatePlayQueueResponse](../../models/operations/createplayqueueresponse.md)\>** ### Errors @@ -141,7 +141,7 @@ Retrieves the play queue, centered at current item. This can be treated as a reg ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -179,7 +179,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { playQueueGetPlayQueue } from "@lukehagar/plexjs/funcs/playQueueGetPlayQueue.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -220,14 +220,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetPlayQueueRequest](../../sdk/models/operations/getplayqueuerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetPlayQueueRequest](../../models/operations/getplayqueuerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetPlayQueueResponse](../../sdk/models/operations/getplayqueueresponse.md)\>** +**Promise\<[shared.MediaContainerWithPlaylistMetadata](../../models/shared/mediacontainerwithplaylistmetadata.md)\>** ### Errors @@ -244,7 +244,7 @@ Adds an item to a play queue (e.g. party mode). Increments the version of the pl ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -280,7 +280,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { playQueueAddToPlayQueue } from "@lukehagar/plexjs/funcs/playQueueAddToPlayQueue.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -319,14 +319,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.AddToPlayQueueRequest](../../sdk/models/operations/addtoplayqueuerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.AddToPlayQueueRequest](../../models/operations/addtoplayqueuerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.AddToPlayQueueResponse](../../sdk/models/operations/addtoplayqueueresponse.md)\>** +**Promise\<[shared.MediaContainerWithPlaylistMetadata](../../models/shared/mediacontainerwithplaylistmetadata.md)\>** ### Errors @@ -343,7 +343,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -378,7 +378,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -416,14 +416,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ClearPlayQueueRequest](../../sdk/models/operations/clearplayqueuerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.ClearPlayQueueRequest](../../models/operations/clearplayqueuerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.ClearPlayQueueResponse](../../sdk/models/operations/clearplayqueueresponse.md)\>** +**Promise\<[shared.MediaContainerWithPlaylistMetadata](../../models/shared/mediacontainerwithplaylistmetadata.md)\>** ### Errors @@ -440,7 +440,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -475,7 +475,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -513,14 +513,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ResetPlayQueueRequest](../../sdk/models/operations/resetplayqueuerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.ResetPlayQueueRequest](../../models/operations/resetplayqueuerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.ResetPlayQueueResponse](../../sdk/models/operations/resetplayqueueresponse.md)\>** +**Promise\<[shared.MediaContainerWithPlaylistMetadata](../../models/shared/mediacontainerwithplaylistmetadata.md)\>** ### Errors @@ -537,7 +537,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -572,7 +572,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -610,14 +610,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ShuffleRequest](../../sdk/models/operations/shufflerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.ShuffleRequest](../../models/operations/shufflerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.ShuffleResponse](../../sdk/models/operations/shuffleresponse.md)\>** +**Promise\<[shared.MediaContainerWithPlaylistMetadata](../../models/shared/mediacontainerwithplaylistmetadata.md)\>** ### Errors @@ -634,7 +634,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -669,7 +669,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -707,14 +707,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.UnshuffleRequest](../../sdk/models/operations/unshufflerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.UnshuffleRequest](../../models/operations/unshufflerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.UnshuffleResponse](../../sdk/models/operations/unshuffleresponse.md)\>** +**Promise\<[shared.MediaContainerWithPlaylistMetadata](../../models/shared/mediacontainerwithplaylistmetadata.md)\>** ### Errors @@ -731,7 +731,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -767,7 +767,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -806,14 +806,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.DeletePlayQueueItemRequest](../../sdk/models/operations/deleteplayqueueitemrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.DeletePlayQueueItemRequest](../../models/operations/deleteplayqueueitemrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.DeletePlayQueueItemResponse](../../sdk/models/operations/deleteplayqueueitemresponse.md)\>** +**Promise\<[shared.MediaContainerWithPlaylistMetadata](../../models/shared/mediacontainerwithplaylistmetadata.md)\>** ### Errors @@ -830,7 +830,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -866,7 +866,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -905,14 +905,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.MovePlayQueueItemRequest](../../sdk/models/operations/moveplayqueueitemrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.MovePlayQueueItemRequest](../../models/operations/moveplayqueueitemrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.MovePlayQueueItemResponse](../../sdk/models/operations/moveplayqueueitemresponse.md)\>** +**Promise\<[shared.MediaContainerWithPlaylistMetadata](../../models/shared/mediacontainerwithplaylistmetadata.md)\>** ### Errors diff --git a/docs/sdks/plex/README.md b/docs/sdks/plex/README.md index 48416476..2601652c 100644 --- a/docs/sdks/plex/README.md +++ b/docs/sdks/plex/README.md @@ -16,8 +16,8 @@ Get Plex server access tokens and server connections ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { IncludeHttps, IncludeIPv6, IncludeRelay } from "@lukehagar/plexjs/sdk/models/operations"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { IncludeHttps, IncludeIPv6, IncludeRelay } from "@lukehagar/plexjs/models/operations"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -45,8 +45,8 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { plexGetServerResources } from "@lukehagar/plexjs/funcs/plexGetServerResources.js"; -import { IncludeHttps, IncludeIPv6, IncludeRelay } from "@lukehagar/plexjs/sdk/models/operations"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { IncludeHttps, IncludeIPv6, IncludeRelay } from "@lukehagar/plexjs/models/operations"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -77,7 +77,7 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetServerResourcesRequest](../../sdk/models/operations/getserverresourcesrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetServerResourcesRequest](../../models/operations/getserverresourcesrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -85,7 +85,7 @@ run(); ### Response -**Promise\<[operations.GetServerResourcesResponse](../../sdk/models/operations/getserverresourcesresponse.md)\>** +**Promise\<[shared.PlexDevice[]](../../models/.md)\>** ### Errors diff --git a/docs/sdks/preferences/README.md b/docs/sdks/preferences/README.md index 85b9aff8..e3f3e525 100644 --- a/docs/sdks/preferences/README.md +++ b/docs/sdks/preferences/README.md @@ -71,7 +71,7 @@ run(); ### Response -**Promise\<[operations.GetAllPreferencesResponse](../../sdk/models/operations/getallpreferencesresponse.md)\>** +**Promise\<[shared.MediaContainerWithSettings](../../models/shared/mediacontainerwithsettings.md)\>** ### Errors @@ -88,7 +88,7 @@ Set a set of preferences in query parameters ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -106,11 +106,11 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.preferences.setPreferences({ + await plexAPI.preferences.setPreferences({ prefs: {}, }); - console.log(result); + } run(); @@ -123,7 +123,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -148,7 +148,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("preferencesSetPreferences failed:", res.error); } @@ -161,14 +161,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.SetPreferencesRequest](../../sdk/models/operations/setpreferencesrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.SetPreferencesRequest](../../models/operations/setpreferencesrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.SetPreferencesResponse](../../sdk/models/operations/setpreferencesresponse.md)\>** +**Promise\** ### Errors @@ -185,7 +185,7 @@ Get a single preference and value ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -218,7 +218,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -254,14 +254,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetPreferenceRequest](../../sdk/models/operations/getpreferencerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetPreferenceRequest](../../models/operations/getpreferencerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetPreferenceResponse](../../sdk/models/operations/getpreferenceresponse.md)\>** +**Promise\<[shared.MediaContainerWithSettings](../../models/shared/mediacontainerwithsettings.md)\>** ### Errors diff --git a/docs/sdks/provider/README.md b/docs/sdks/provider/README.md index e011affc..83fcdfb9 100644 --- a/docs/sdks/provider/README.md +++ b/docs/sdks/provider/README.md @@ -72,7 +72,7 @@ run(); ### Response -**Promise\<[operations.ListProvidersResponse](../../sdk/models/operations/listprovidersresponse.md)\>** +**Promise\<[operations.ListProvidersResponse](../../models/operations/listprovidersresponse.md)\>** ### Errors @@ -89,7 +89,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -107,11 +107,11 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.provider.addProvider({ + await plexAPI.provider.addProvider({ url: "https://steep-obedience.name/", }); - console.log(result); + } run(); @@ -124,7 +124,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -149,7 +149,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("providerAddProvider failed:", res.error); } @@ -162,14 +162,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.AddProviderRequest](../../sdk/models/operations/addproviderrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.AddProviderRequest](../../models/operations/addproviderrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.AddProviderResponse](../../sdk/models/operations/addproviderresponse.md)\>** +**Promise\** ### Errors @@ -192,9 +192,9 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.provider.refreshProviders(); + await plexAPI.provider.refreshProviders(); + - console.log(result); } run(); @@ -218,7 +218,7 @@ async function run() { const res = await providerRefreshProviders(plexAPI); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("providerRefreshProviders failed:", res.error); } @@ -237,7 +237,7 @@ run(); ### Response -**Promise\<[operations.RefreshProvidersResponse](../../sdk/models/operations/refreshprovidersresponse.md)\>** +**Promise\** ### Errors @@ -254,7 +254,7 @@ Deletes a media provider with the given id ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -272,11 +272,11 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.provider.deleteMediaProvider({ + await plexAPI.provider.deleteMediaProvider({ provider: "", }); - console.log(result); + } run(); @@ -289,7 +289,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -314,7 +314,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("providerDeleteMediaProvider failed:", res.error); } @@ -327,14 +327,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.DeleteMediaProviderRequest](../../sdk/models/operations/deletemediaproviderrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.DeleteMediaProviderRequest](../../models/operations/deletemediaproviderrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.DeleteMediaProviderResponse](../../sdk/models/operations/deletemediaproviderresponse.md)\>** +**Promise\** ### Errors diff --git a/docs/sdks/rate/README.md b/docs/sdks/rate/README.md index cf7f909f..069bca19 100644 --- a/docs/sdks/rate/README.md +++ b/docs/sdks/rate/README.md @@ -19,7 +19,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -37,13 +37,13 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.rate.setRating({ + await plexAPI.rate.setRating({ identifier: "", key: "", rating: 8722.46, }); - console.log(result); + } run(); @@ -56,7 +56,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -83,7 +83,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("rateSetRating failed:", res.error); } @@ -96,14 +96,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.SetRatingRequest](../../sdk/models/operations/setratingrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.SetRatingRequest](../../models/operations/setratingrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.SetRatingResponse](../../sdk/models/operations/setratingresponse.md)\>** +**Promise\** ### Errors diff --git a/docs/sdks/search/README.md b/docs/sdks/search/README.md index f980a4a9..00597c63 100644 --- a/docs/sdks/search/README.md +++ b/docs/sdks/search/README.md @@ -33,7 +33,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -69,7 +69,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -108,14 +108,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.SearchHubsRequest](../../sdk/models/operations/searchhubsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.SearchHubsRequest](../../models/operations/searchhubsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.SearchHubsResponse](../../sdk/models/operations/searchhubsresponse.md)\>** +**Promise\<[operations.SearchHubsResponse](../../models/operations/searchhubsresponse.md)\>** ### Errors @@ -137,7 +137,7 @@ Results, as well as their containing per-type hubs, contain a `distance` attribu ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, MediaType } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, MediaType } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -173,7 +173,7 @@ 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, MediaType } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, MediaType } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -212,14 +212,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.VoiceSearchHubsRequest](../../sdk/models/operations/voicesearchhubsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.VoiceSearchHubsRequest](../../models/operations/voicesearchhubsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.VoiceSearchHubsResponse](../../sdk/models/operations/voicesearchhubsresponse.md)\>** +**Promise\<[operations.VoiceSearchHubsResponse](../../models/operations/voicesearchhubsresponse.md)\>** ### Errors diff --git a/docs/sdks/status/README.md b/docs/sdks/status/README.md index 22fbbc06..1e33f317 100644 --- a/docs/sdks/status/README.md +++ b/docs/sdks/status/README.md @@ -74,7 +74,7 @@ run(); ### Response -**Promise\<[operations.ListSessionsResponse](../../sdk/models/operations/listsessionsresponse.md)\>** +**Promise\<[operations.ListSessionsResponse](../../models/operations/listsessionsresponse.md)\>** ### Errors @@ -142,7 +142,7 @@ run(); ### Response -**Promise\<[operations.GetBackgroundTasksResponse](../../sdk/models/operations/getbackgroundtasksresponse.md)\>** +**Promise\<[operations.GetBackgroundTasksResponse](../../models/operations/getbackgroundtasksresponse.md)\>** ### Errors @@ -160,7 +160,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -219,7 +219,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -281,14 +281,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListPlaybackHistoryRequest](../../sdk/models/operations/listplaybackhistoryrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.ListPlaybackHistoryRequest](../../models/operations/listplaybackhistoryrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.ListPlaybackHistoryResponse](../../sdk/models/operations/listplaybackhistoryresponse.md)\>** +**Promise\<[operations.ListPlaybackHistoryResponse](../../models/operations/listplaybackhistoryresponse.md)\>** ### Errors @@ -305,7 +305,7 @@ Terminate a playback session kicking off the user ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -323,12 +323,12 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.status.terminateSession({ + await plexAPI.status.terminateSession({ sessionId: "cdefghijklmnopqrstuvwxyz", reason: "Stop Playing", }); - console.log(result); + } run(); @@ -341,7 +341,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -367,7 +367,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("statusTerminateSession failed:", res.error); } @@ -380,14 +380,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.TerminateSessionRequest](../../sdk/models/operations/terminatesessionrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.TerminateSessionRequest](../../models/operations/terminatesessionrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.TerminateSessionResponse](../../sdk/models/operations/terminatesessionresponse.md)\>** +**Promise\** ### Errors @@ -404,7 +404,7 @@ Delete a single history item by id ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -439,7 +439,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -477,14 +477,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.DeleteHistoryRequest](../../sdk/models/operations/deletehistoryrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.DeleteHistoryRequest](../../models/operations/deletehistoryrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.DeleteHistoryResponse](../../sdk/models/operations/deletehistoryresponse.md)\>** +**Promise\<[operations.DeleteHistoryResponse](../../models/operations/deletehistoryresponse.md)\>** ### Errors @@ -501,7 +501,7 @@ Get a single history item by id ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -536,7 +536,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -574,14 +574,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetHistoryItemRequest](../../sdk/models/operations/gethistoryitemrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetHistoryItemRequest](../../models/operations/gethistoryitemrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetHistoryItemResponse](../../sdk/models/operations/gethistoryitemresponse.md)\>** +**Promise\<[operations.GetHistoryItemResponse](../../models/operations/gethistoryitemresponse.md)\>** ### Errors diff --git a/docs/sdks/subscriptions/README.md b/docs/sdks/subscriptions/README.md index 8fd5af67..7c6b7ac6 100644 --- a/docs/sdks/subscriptions/README.md +++ b/docs/sdks/subscriptions/README.md @@ -28,7 +28,7 @@ Get all subscriptions and potentially the grabs too ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -64,7 +64,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { subscriptionsGetAllSubscriptions } from "@lukehagar/plexjs/funcs/subscriptionsGetAllSubscriptions.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -103,14 +103,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetAllSubscriptionsRequest](../../sdk/models/operations/getallsubscriptionsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetAllSubscriptionsRequest](../../models/operations/getallsubscriptionsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetAllSubscriptionsResponse](../../sdk/models/operations/getallsubscriptionsresponse.md)\>** +**Promise\<[operations.GetAllSubscriptionsResponse](../../models/operations/getallsubscriptionsresponse.md)\>** ### Errors @@ -127,7 +127,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -167,7 +167,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -210,14 +210,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.CreateSubscriptionRequest](../../sdk/models/operations/createsubscriptionrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.CreateSubscriptionRequest](../../models/operations/createsubscriptionrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.CreateSubscriptionResponse](../../sdk/models/operations/createsubscriptionresponse.md)\>** +**Promise\<[operations.CreateSubscriptionResponse](../../models/operations/createsubscriptionresponse.md)\>** ### Errors @@ -285,7 +285,7 @@ run(); ### Response -**Promise\<[operations.ProcessSubscriptionsResponse](../../sdk/models/operations/processsubscriptionsresponse.md)\>** +**Promise\<[operations.ProcessSubscriptionsResponse](../../models/operations/processsubscriptionsresponse.md)\>** ### Errors @@ -353,7 +353,7 @@ run(); ### Response -**Promise\<[operations.GetScheduledRecordingsResponse](../../sdk/models/operations/getscheduledrecordingsresponse.md)\>** +**Promise\<[operations.GetScheduledRecordingsResponse](../../models/operations/getscheduledrecordingsresponse.md)\>** ### Errors @@ -370,7 +370,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -405,7 +405,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -443,14 +443,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetTemplateRequest](../../sdk/models/operations/gettemplaterequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetTemplateRequest](../../models/operations/gettemplaterequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetTemplateResponse](../../sdk/models/operations/gettemplateresponse.md)\>** +**Promise\<[operations.GetTemplateResponse](../../models/operations/gettemplateresponse.md)\>** ### Errors @@ -468,7 +468,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -486,11 +486,11 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.subscriptions.cancelGrab({ + await plexAPI.subscriptions.cancelGrab({ operationId: "", }); - console.log(result); + } run(); @@ -503,7 +503,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -528,7 +528,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("subscriptionsCancelGrab failed:", res.error); } @@ -541,14 +541,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.CancelGrabRequest](../../sdk/models/operations/cancelgrabrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.CancelGrabRequest](../../models/operations/cancelgrabrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.CancelGrabResponse](../../sdk/models/operations/cancelgrabresponse.md)\>** +**Promise\** ### Errors @@ -565,7 +565,7 @@ Delete a subscription, cancelling all of its grabs as well ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -583,11 +583,11 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.subscriptions.deleteSubscription({ + await plexAPI.subscriptions.deleteSubscription({ subscriptionId: 974618, }); - console.log(result); + } run(); @@ -600,7 +600,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -625,7 +625,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("subscriptionsDeleteSubscription failed:", res.error); } @@ -638,14 +638,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.DeleteSubscriptionRequest](../../sdk/models/operations/deletesubscriptionrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.DeleteSubscriptionRequest](../../models/operations/deletesubscriptionrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.DeleteSubscriptionResponse](../../sdk/models/operations/deletesubscriptionresponse.md)\>** +**Promise\** ### Errors @@ -662,7 +662,7 @@ Get a single subscription and potentially the grabs too ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -699,7 +699,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { subscriptionsGetSubscription } from "@lukehagar/plexjs/funcs/subscriptionsGetSubscription.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -739,14 +739,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetSubscriptionRequest](../../sdk/models/operations/getsubscriptionrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetSubscriptionRequest](../../models/operations/getsubscriptionrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetSubscriptionResponse](../../sdk/models/operations/getsubscriptionresponse.md)\>** +**Promise\<[shared.MediaContainerWithSubscription](../../models/shared/mediacontainerwithsubscription.md)\>** ### Errors @@ -763,7 +763,7 @@ Edit a subscription's preferences ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -799,7 +799,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -838,14 +838,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.EditSubscriptionPreferencesRequest](../../sdk/models/operations/editsubscriptionpreferencesrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.EditSubscriptionPreferencesRequest](../../models/operations/editsubscriptionpreferencesrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.EditSubscriptionPreferencesResponse](../../sdk/models/operations/editsubscriptionpreferencesresponse.md)\>** +**Promise\<[shared.MediaContainerWithSubscription](../../models/shared/mediacontainerwithsubscription.md)\>** ### Errors @@ -862,7 +862,7 @@ Re-order a subscription to change its priority ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -897,7 +897,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -935,14 +935,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ReorderSubscriptionRequest](../../sdk/models/operations/reordersubscriptionrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.ReorderSubscriptionRequest](../../models/operations/reordersubscriptionrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.ReorderSubscriptionResponse](../../sdk/models/operations/reordersubscriptionresponse.md)\>** +**Promise\<[shared.MediaContainerWithSubscription](../../models/shared/mediacontainerwithsubscription.md)\>** ### Errors diff --git a/docs/sdks/timeline/README.md b/docs/sdks/timeline/README.md index 373a6f93..f0c7d602 100644 --- a/docs/sdks/timeline/README.md +++ b/docs/sdks/timeline/README.md @@ -21,7 +21,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -39,12 +39,12 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.timeline.markPlayed({ + await plexAPI.timeline.markPlayed({ identifier: "", key: "59398", }); - console.log(result); + } run(); @@ -57,7 +57,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -83,7 +83,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("timelineMarkPlayed failed:", res.error); } @@ -96,14 +96,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.MarkPlayedRequest](../../sdk/models/operations/markplayedrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.MarkPlayedRequest](../../models/operations/markplayedrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.MarkPlayedResponse](../../sdk/models/operations/markplayedresponse.md)\>** +**Promise\** ### Errors @@ -121,8 +121,8 @@ 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 { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { ReportState } from "@lukehagar/plexjs/models/operations"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -170,8 +170,8 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { timelineReport } from "@lukehagar/plexjs/funcs/timelineReport.js"; -import { ReportState } from "@lukehagar/plexjs/sdk/models/operations"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { ReportState } from "@lukehagar/plexjs/models/operations"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -222,14 +222,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ReportRequest](../../sdk/models/operations/reportrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.ReportRequest](../../models/operations/reportrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.ReportResponse](../../sdk/models/operations/reportresponse.md)\>** +**Promise\<[operations.ReportResponse](../../models/operations/reportresponse.md)\>** ### Errors @@ -247,7 +247,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -265,11 +265,11 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.timeline.unscrobble({ + await plexAPI.timeline.unscrobble({ identifier: "", }); - console.log(result); + } run(); @@ -282,7 +282,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -307,7 +307,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("timelineUnscrobble failed:", res.error); } @@ -320,14 +320,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.UnscrobbleRequest](../../sdk/models/operations/unscrobblerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.UnscrobbleRequest](../../models/operations/unscrobblerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.UnscrobbleResponse](../../sdk/models/operations/unscrobbleresponse.md)\>** +**Promise\** ### Errors diff --git a/docs/sdks/transcoder/README.md b/docs/sdks/transcoder/README.md index 8bdbc782..2aa3edc2 100644 --- a/docs/sdks/transcoder/README.md +++ b/docs/sdks/transcoder/README.md @@ -22,7 +22,7 @@ Transcode an image, possibly changing format or size ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -62,7 +62,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { transcoderTranscodeImage } from "@lukehagar/plexjs/funcs/transcoderTranscodeImage.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -105,14 +105,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.TranscodeImageRequest](../../sdk/models/operations/transcodeimagerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.TranscodeImageRequest](../../models/operations/transcodeimagerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.TranscodeImageResponse](../../sdk/models/operations/transcodeimageresponse.md)\>** +**Promise\<[operations.TranscodeImageResponse](../../models/operations/transcodeimageresponse.md)\>** ### Errors @@ -129,8 +129,8 @@ 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 { Accepts, AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; +import { MakeDecisionLocation, MakeDecisionProtocol } from "@lukehagar/plexjs/models/operations"; +import { Accepts, AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -192,8 +192,8 @@ The standalone function version of this method: ```typescript 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 { Accepts, AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; +import { MakeDecisionLocation, MakeDecisionProtocol } from "@lukehagar/plexjs/models/operations"; +import { Accepts, AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -258,14 +258,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.MakeDecisionRequest](../../sdk/models/operations/makedecisionrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.MakeDecisionRequest](../../models/operations/makedecisionrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.MakeDecisionResponse](../../sdk/models/operations/makedecisionresponse.md)\>** +**Promise\<[shared.MediaContainerWithDecision](../../models/shared/mediacontainerwithdecision.md)\>** ### Errors @@ -282,7 +282,7 @@ Manually trigger a transcoder fallback ex: HEVC to h.264 or hw to sw ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, TranscodeType } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -300,11 +300,11 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.transcoder.triggerFallback({ + await plexAPI.transcoder.triggerFallback({ transcodeType: TranscodeType.Audio, }); - console.log(result); + } run(); @@ -317,7 +317,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { transcoderTriggerFallback } from "@lukehagar/plexjs/funcs/transcoderTriggerFallback.js"; -import { Accepts, TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, TranscodeType } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -342,7 +342,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("transcoderTriggerFallback failed:", res.error); } @@ -355,14 +355,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.TriggerFallbackRequest](../../sdk/models/operations/triggerfallbackrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.TriggerFallbackRequest](../../models/operations/triggerfallbackrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.TriggerFallbackResponse](../../sdk/models/operations/triggerfallbackresponse.md)\>** +**Promise\** ### Errors @@ -379,8 +379,8 @@ Only transcode subtitle streams. ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { TranscodeSubtitlesLocation, TranscodeSubtitlesProtocol } from "@lukehagar/plexjs/sdk/models/operations"; -import { Accepts, AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; +import { TranscodeSubtitlesLocation, TranscodeSubtitlesProtocol } from "@lukehagar/plexjs/models/operations"; +import { Accepts, AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -398,7 +398,7 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.transcoder.transcodeSubtitles({ + await plexAPI.transcoder.transcodeSubtitles({ transcodeType: TranscodeType.Audio, advancedSubtitles: AdvancedSubtitles.Burn, audioBoost: 50, @@ -429,7 +429,7 @@ async function run() { xPlexClientProfileName: "generic", }); - console.log(result); + } run(); @@ -442,8 +442,8 @@ The standalone function version of this method: ```typescript 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 { Accepts, AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; +import { TranscodeSubtitlesLocation, TranscodeSubtitlesProtocol } from "@lukehagar/plexjs/models/operations"; +import { Accepts, AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -495,7 +495,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("transcoderTranscodeSubtitles failed:", res.error); } @@ -508,14 +508,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.TranscodeSubtitlesRequest](../../sdk/models/operations/transcodesubtitlesrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.TranscodeSubtitlesRequest](../../models/operations/transcodesubtitlesrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.TranscodeSubtitlesResponse](../../sdk/models/operations/transcodesubtitlesresponse.md)\>** +**Promise\** ### Errors @@ -532,8 +532,8 @@ 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 { Accepts, AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; +import { Extension, StartTranscodeSessionLocation, StartTranscodeSessionProtocol } from "@lukehagar/plexjs/models/operations"; +import { Accepts, AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -596,8 +596,8 @@ The standalone function version of this method: ```typescript 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 { Accepts, AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; +import { Extension, StartTranscodeSessionLocation, StartTranscodeSessionProtocol } from "@lukehagar/plexjs/models/operations"; +import { Accepts, AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -663,14 +663,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.StartTranscodeSessionRequest](../../sdk/models/operations/starttranscodesessionrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.StartTranscodeSessionRequest](../../models/operations/starttranscodesessionrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.StartTranscodeSessionResponse](../../sdk/models/operations/starttranscodesessionresponse.md)\>** +**Promise\<[ReadableStream](../../models/.md)\>** ### Errors diff --git a/docs/sdks/ultrablur/README.md b/docs/sdks/ultrablur/README.md index 6617e1c7..4882d45f 100644 --- a/docs/sdks/ultrablur/README.md +++ b/docs/sdks/ultrablur/README.md @@ -19,7 +19,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -54,7 +54,7 @@ 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"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -92,14 +92,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetColorsRequest](../../sdk/models/operations/getcolorsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetColorsRequest](../../models/operations/getcolorsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetColorsResponse](../../sdk/models/operations/getcolorsresponse.md)\>** +**Promise\<[operations.GetColorsResponse](../../models/operations/getcolorsresponse.md)\>** ### Errors @@ -116,7 +116,7 @@ Retrieves a server-side generated UltraBlur image based on the provided color in ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -157,7 +157,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { ultraBlurGetImage } from "@lukehagar/plexjs/funcs/ultraBlurGetImage.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -201,14 +201,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetImageRequest](../../sdk/models/operations/getimagerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetImageRequest](../../models/operations/getimagerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetImageResponse](../../sdk/models/operations/getimageresponse.md)\>** +**Promise\<[ReadableStream](../../models/.md)\>** ### Errors diff --git a/docs/sdks/updater/README.md b/docs/sdks/updater/README.md index cb469f2b..422e053c 100644 --- a/docs/sdks/updater/README.md +++ b/docs/sdks/updater/README.md @@ -22,7 +22,7 @@ Apply any downloaded updates. Note that the two parameters `tonight` and `skip` ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -40,12 +40,12 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.updater.applyUpdates({ + await plexAPI.updater.applyUpdates({ tonight: BoolInt.True, skip: BoolInt.True, }); - console.log(result); + } run(); @@ -58,7 +58,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { updaterApplyUpdates } from "@lukehagar/plexjs/funcs/updaterApplyUpdates.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -84,7 +84,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("updaterApplyUpdates failed:", res.error); } @@ -97,14 +97,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ApplyUpdatesRequest](../../sdk/models/operations/applyupdatesrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.ApplyUpdatesRequest](../../models/operations/applyupdatesrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.ApplyUpdatesResponse](../../sdk/models/operations/applyupdatesresponse.md)\>** +**Promise\** ### Errors @@ -121,7 +121,7 @@ Perform an update check and potentially download ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -139,11 +139,11 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.updater.checkUpdates({ + await plexAPI.updater.checkUpdates({ download: BoolInt.True, }); - console.log(result); + } run(); @@ -156,7 +156,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { updaterCheckUpdates } from "@lukehagar/plexjs/funcs/updaterCheckUpdates.js"; -import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -181,7 +181,7 @@ async function run() { }); if (res.ok) { const { value: result } = res; - console.log(result); + } else { console.log("updaterCheckUpdates failed:", res.error); } @@ -194,14 +194,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.CheckUpdatesRequest](../../sdk/models/operations/checkupdatesrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.CheckUpdatesRequest](../../models/operations/checkupdatesrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.CheckUpdatesResponse](../../sdk/models/operations/checkupdatesresponse.md)\>** +**Promise\** ### Errors @@ -269,7 +269,7 @@ run(); ### Response -**Promise\<[operations.GetUpdatesStatusResponse](../../sdk/models/operations/getupdatesstatusresponse.md)\>** +**Promise\<[operations.GetUpdatesStatusResponse](../../models/operations/getupdatesstatusresponse.md)\>** ### Errors diff --git a/docs/sdks/users/README.md b/docs/sdks/users/README.md index a58734a9..a0f81edc 100644 --- a/docs/sdks/users/README.md +++ b/docs/sdks/users/README.md @@ -16,7 +16,7 @@ Get list of all users that are friends and have library access with the provided ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, @@ -49,7 +49,7 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { usersGetUsers } from "@lukehagar/plexjs/funcs/usersGetUsers.js"; -import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts } from "@lukehagar/plexjs/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -85,7 +85,7 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetUsersRequest](../../sdk/models/operations/getusersrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetUsersRequest](../../models/operations/getusersrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -93,7 +93,7 @@ run(); ### Response -**Promise\<[operations.GetUsersResponse](../../sdk/models/operations/getusersresponse.md)\>** +**Promise\<[operations.GetUsersResponse](../../models/operations/getusersresponse.md)\>** ### Errors diff --git a/examples/package-lock.json b/examples/package-lock.json index 87f6e12f..3845c104 100644 --- a/examples/package-lock.json +++ b/examples/package-lock.json @@ -18,7 +18,7 @@ }, "..": { "name": "@lukehagar/plexjs", - "version": "0.44.0", + "version": "0.44.1", "dependencies": { "zod": "^3.25.0 || ^4.0.0" }, diff --git a/examples/transcoderStartTranscodeSession.example.ts b/examples/transcoderStartTranscodeSession.example.ts index bd4b0583..c3771b43 100644 --- a/examples/transcoderStartTranscodeSession.example.ts +++ b/examples/transcoderStartTranscodeSession.example.ts @@ -16,13 +16,13 @@ import { Extension, StartTranscodeSessionLocation, StartTranscodeSessionProtocol, -} from "@lukehagar/plexjs/sdk/models/operations"; +} from "@lukehagar/plexjs/models/operations"; import { Accepts, AdvancedSubtitles, BoolInt, TranscodeType, -} from "@lukehagar/plexjs/sdk/models/shared"; +} from "@lukehagar/plexjs/models/shared"; const plexAPI = new PlexAPI({ accepts: Accepts.ApplicationXml, diff --git a/jsr.json b/jsr.json index 871ae548..d4763648 100644 --- a/jsr.json +++ b/jsr.json @@ -2,17 +2,17 @@ { "name": "@lukehagar/plexjs", - "version": "0.44.0", + "version": "0.44.1", "exports": { ".": "./src/index.ts", - "./sdk/models/errors": "./src/sdk/models/errors/index.ts", - "./sdk/models/shared": "./src/sdk/models/shared/index.ts", - "./sdk/models/operations": "./src/sdk/models/operations/index.ts", + "./models/errors": "./src/models/errors/index.ts", + "./models/shared": "./src/models/shared/index.ts", + "./models/operations": "./src/models/operations/index.ts", "./lib/config": "./src/lib/config.ts", "./lib/http": "./src/lib/http.ts", "./lib/retries": "./src/lib/retries.ts", "./lib/sdks": "./src/lib/sdks.ts", - "./types": "./src/sdk/types/index.ts" + "./types": "./src/types/index.ts" }, "publish": { "include": [ diff --git a/package-lock.json b/package-lock.json index 479426d7..845bd9bc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@lukehagar/plexjs", - "version": "0.44.0", + "version": "0.44.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@lukehagar/plexjs", - "version": "0.44.0", + "version": "0.44.1", "dependencies": { "zod": "^3.25.0 || ^4.0.0" }, diff --git a/package.json b/package.json index 29bc6e30..f5ac405f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lukehagar/plexjs", - "version": "0.44.0", + "version": "0.44.1", "author": "LukeHagar", "main": "./index.js", "sideEffects": false, diff --git a/src/funcs/activitiesCancelActivity.ts b/src/funcs/activitiesCancelActivity.ts index 04a52acf..24ebe79d 100644 --- a/src/funcs/activitiesCancelActivity.ts +++ b/src/funcs/activitiesCancelActivity.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Cancel a running activity @@ -36,7 +37,7 @@ export function activitiesCancelActivity( options?: RequestOptions, ): APIPromise< Result< - operations.CancelActivityResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.CancelActivityResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -198,16 +199,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.CancelActivityResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -217,10 +210,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.CancelActivityResponse$inboundSchema), + M.nil(200, z.void()), M.fail([400, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/activitiesListActivities.ts b/src/funcs/activitiesListActivities.ts index fcd17b3b..76940e57 100644 --- a/src/funcs/activitiesListActivities.ts +++ b/src/funcs/activitiesListActivities.ts @@ -14,13 +14,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get all activities @@ -119,14 +119,6 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< operations.ListActivitiesResponse, | PlexAPIError @@ -138,12 +130,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.ListActivitiesResponse$inboundSchema, { - key: "object", - }), + M.json(200, operations.ListActivitiesResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/authenticationGetTokenDetails.ts b/src/funcs/authenticationGetTokenDetails.ts index 036a1698..f8f6ac60 100644 --- a/src/funcs/authenticationGetTokenDetails.ts +++ b/src/funcs/authenticationGetTokenDetails.ts @@ -16,15 +16,16 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import * as errors from "../sdk/models/errors/index.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import { GetTokenDetailsServerList } from "../sdk/models/operations/gettokendetails.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import * as errors from "../models/errors/index.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import { GetTokenDetailsServerList } from "../models/operations/gettokendetails.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get Token Details @@ -38,7 +39,7 @@ export function authenticationGetTokenDetails( options?: RequestOptions, ): APIPromise< Result< - operations.GetTokenDetailsResponse, + shared.UserPlexAccount, | errors.GetTokenDetailsBadRequestError | errors.GetTokenDetailsUnauthorizedError | PlexAPIError @@ -65,7 +66,7 @@ async function $do( ): Promise< [ Result< - operations.GetTokenDetailsResponse, + shared.UserPlexAccount, | errors.GetTokenDetailsBadRequestError | errors.GetTokenDetailsUnauthorizedError | PlexAPIError @@ -201,15 +202,11 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< - operations.GetTokenDetailsResponse, + shared.UserPlexAccount, | errors.GetTokenDetailsBadRequestError | errors.GetTokenDetailsUnauthorizedError | PlexAPIError @@ -221,9 +218,7 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetTokenDetailsResponse$inboundSchema, { - key: "UserPlexAccount", - }), + M.json(200, shared.UserPlexAccount$inboundSchema), M.jsonErr(400, errors.GetTokenDetailsBadRequestError$inboundSchema), M.jsonErr(401, errors.GetTokenDetailsUnauthorizedError$inboundSchema), M.fail("4XX"), diff --git a/src/funcs/authenticationPostUsersSignInData.ts b/src/funcs/authenticationPostUsersSignInData.ts index 5a7cd8d0..c7fde71e 100644 --- a/src/funcs/authenticationPostUsersSignInData.ts +++ b/src/funcs/authenticationPostUsersSignInData.ts @@ -15,15 +15,15 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import * as errors from "../sdk/models/errors/index.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { PostUsersSignInDataServerList } from "../sdk/models/operations/postuserssignindata.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import * as errors from "../models/errors/index.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { PostUsersSignInDataServerList } from "../models/operations/postuserssignindata.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get User Sign In Data @@ -37,7 +37,7 @@ export function authenticationPostUsersSignInData( options?: RequestOptions, ): APIPromise< Result< - operations.PostUsersSignInDataResponse, + operations.UserPlexAccount, | errors.PostUsersSignInDataBadRequestError | errors.PostUsersSignInDataUnauthorizedError | PlexAPIError @@ -64,7 +64,7 @@ async function $do( ): Promise< [ Result< - operations.PostUsersSignInDataResponse, + operations.UserPlexAccount, | errors.PostUsersSignInDataBadRequestError | errors.PostUsersSignInDataUnauthorizedError | PlexAPIError @@ -202,15 +202,11 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< - operations.PostUsersSignInDataResponse, + operations.UserPlexAccount, | errors.PostUsersSignInDataBadRequestError | errors.PostUsersSignInDataUnauthorizedError | PlexAPIError @@ -222,9 +218,7 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(201, operations.PostUsersSignInDataResponse$inboundSchema, { - key: "UserPlexAccount", - }), + M.json(201, operations.UserPlexAccount$inboundSchema), M.jsonErr(400, errors.PostUsersSignInDataBadRequestError$inboundSchema), M.jsonErr(401, errors.PostUsersSignInDataUnauthorizedError$inboundSchema), M.fail("4XX"), diff --git a/src/funcs/butlerGetTasks.ts b/src/funcs/butlerGetTasks.ts index 786fde0b..dcd744fc 100644 --- a/src/funcs/butlerGetTasks.ts +++ b/src/funcs/butlerGetTasks.ts @@ -14,13 +14,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get all Butler tasks @@ -119,14 +119,6 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< operations.GetTasksResponse, | PlexAPIError @@ -138,10 +130,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetTasksResponse$inboundSchema, { key: "object" }), + M.json(200, operations.GetTasksResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/butlerStartTask.ts b/src/funcs/butlerStartTask.ts index 9919cbaa..ede40010 100644 --- a/src/funcs/butlerStartTask.ts +++ b/src/funcs/butlerStartTask.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Start a single Butler task @@ -36,7 +37,7 @@ export function butlerStartTask( options?: RequestOptions, ): APIPromise< Result< - operations.StartTaskResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.StartTaskResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -198,16 +199,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.StartTaskResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -217,10 +210,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil([200, 202], operations.StartTaskResponse$inboundSchema), + M.nil([200, 202], z.void()), M.fail([404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/butlerStartTasks.ts b/src/funcs/butlerStartTasks.ts index 5e2fe290..12be81ef 100644 --- a/src/funcs/butlerStartTasks.ts +++ b/src/funcs/butlerStartTasks.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; @@ -14,13 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Start all Butler tasks @@ -38,7 +38,7 @@ export function butlerStartTasks( options?: RequestOptions, ): APIPromise< Result< - operations.StartTasksResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +61,7 @@ async function $do( ): Promise< [ Result< - operations.StartTasksResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -124,16 +124,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.StartTasksResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -143,10 +135,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.StartTasksResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/butlerStopTask.ts b/src/funcs/butlerStopTask.ts index 0fd4b6c6..5d2d9878 100644 --- a/src/funcs/butlerStopTask.ts +++ b/src/funcs/butlerStopTask.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Stop a single Butler task @@ -36,7 +37,7 @@ export function butlerStopTask( options?: RequestOptions, ): APIPromise< Result< - operations.StopTaskResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.StopTaskResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -198,16 +199,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.StopTaskResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -217,10 +210,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.StopTaskResponse$inboundSchema), + M.nil(200, z.void()), M.fail([404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/butlerStopTasks.ts b/src/funcs/butlerStopTasks.ts index 548d5902..a903235f 100644 --- a/src/funcs/butlerStopTasks.ts +++ b/src/funcs/butlerStopTasks.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; @@ -14,13 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Stop all Butler tasks @@ -33,7 +33,7 @@ export function butlerStopTasks( options?: RequestOptions, ): APIPromise< Result< - operations.StopTasksResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -56,7 +56,7 @@ async function $do( ): Promise< [ Result< - operations.StopTasksResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -119,16 +119,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.StopTasksResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -138,10 +130,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.StopTasksResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/collectionsCreateCollection.ts b/src/funcs/collectionsCreateCollection.ts index fd3155e4..88439d70 100644 --- a/src/funcs/collectionsCreateCollection.ts +++ b/src/funcs/collectionsCreateCollection.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Create collection @@ -36,7 +37,7 @@ export function collectionsCreateCollection( options?: RequestOptions, ): APIPromise< Result< - operations.CreateCollectionResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.CreateCollectionResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -200,16 +201,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.CreateCollectionResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -219,12 +212,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.CreateCollectionResponse$inboundSchema, { - key: "MediaContainerWithMetadata", - }), + M.json(200, shared.MediaContainerWithMetadata$inboundSchema), M.fail([400, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/contentGetAlbums.ts b/src/funcs/contentGetAlbums.ts index ed2602a4..9d8c76d5 100644 --- a/src/funcs/contentGetAlbums.ts +++ b/src/funcs/contentGetAlbums.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Set section albums @@ -36,7 +37,7 @@ export function contentGetAlbums( options?: RequestOptions, ): APIPromise< Result< - operations.GetAlbumsResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.GetAlbumsResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -198,16 +199,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.GetAlbumsResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -217,12 +210,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetAlbumsResponse$inboundSchema, { - key: "MediaContainerWithMetadata", - }), + M.json(200, shared.MediaContainerWithMetadata$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/contentGetAllLeaves.ts b/src/funcs/contentGetAllLeaves.ts index 60a7cadf..f53d5fd1 100644 --- a/src/funcs/contentGetAllLeaves.ts +++ b/src/funcs/contentGetAllLeaves.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Set section leaves @@ -36,7 +37,7 @@ export function contentGetAllLeaves( options?: RequestOptions, ): APIPromise< Result< - operations.GetAllLeavesResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.GetAllLeavesResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -200,16 +201,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.GetAllLeavesResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -219,12 +212,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetAllLeavesResponse$inboundSchema, { - key: "MediaContainerWithMetadata", - }), + M.json(200, shared.MediaContainerWithMetadata$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/contentGetArts.ts b/src/funcs/contentGetArts.ts index 1b4fb2eb..4ab940c8 100644 --- a/src/funcs/contentGetArts.ts +++ b/src/funcs/contentGetArts.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Set section artwork @@ -36,7 +37,7 @@ export function contentGetArts( options?: RequestOptions, ): APIPromise< Result< - operations.GetArtsResponse, + shared.MediaContainerWithArtwork, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.GetArtsResponse, + shared.MediaContainerWithArtwork, | PlexAPIError | ResponseValidationError | ConnectionError @@ -198,16 +199,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.GetArtsResponse, + shared.MediaContainerWithArtwork, | PlexAPIError | ResponseValidationError | ConnectionError @@ -217,12 +210,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetArtsResponse$inboundSchema, { - key: "MediaContainerWithArtwork", - }), + M.json(200, shared.MediaContainerWithArtwork$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/contentGetCategories.ts b/src/funcs/contentGetCategories.ts index 6309a3fd..b43c9da6 100644 --- a/src/funcs/contentGetCategories.ts +++ b/src/funcs/contentGetCategories.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Set section categories @@ -36,7 +37,7 @@ export function contentGetCategories( options?: RequestOptions, ): APIPromise< Result< - operations.GetCategoriesResponse, + shared.MediaContainerWithArtwork, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.GetCategoriesResponse, + shared.MediaContainerWithArtwork, | PlexAPIError | ResponseValidationError | ConnectionError @@ -200,16 +201,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.GetCategoriesResponse, + shared.MediaContainerWithArtwork, | PlexAPIError | ResponseValidationError | ConnectionError @@ -219,12 +212,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetCategoriesResponse$inboundSchema, { - key: "MediaContainerWithArtwork", - }), + M.json(200, shared.MediaContainerWithArtwork$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/contentGetCluster.ts b/src/funcs/contentGetCluster.ts index 1f7e0d1a..31ae0d7e 100644 --- a/src/funcs/contentGetCluster.ts +++ b/src/funcs/contentGetCluster.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Set section clusters @@ -36,7 +37,7 @@ export function contentGetCluster( options?: RequestOptions, ): APIPromise< Result< - operations.GetClusterResponse, + shared.MediaContainerWithArtwork, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.GetClusterResponse, + shared.MediaContainerWithArtwork, | PlexAPIError | ResponseValidationError | ConnectionError @@ -198,16 +199,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.GetClusterResponse, + shared.MediaContainerWithArtwork, | PlexAPIError | ResponseValidationError | ConnectionError @@ -217,12 +210,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetClusterResponse$inboundSchema, { - key: "MediaContainerWithArtwork", - }), + M.json(200, shared.MediaContainerWithArtwork$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/contentGetCollectionImage.ts b/src/funcs/contentGetCollectionImage.ts index efa1ec68..dfa4f117 100644 --- a/src/funcs/contentGetCollectionImage.ts +++ b/src/funcs/contentGetCollectionImage.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get a collection's image @@ -36,7 +37,7 @@ export function contentGetCollectionImage( options?: RequestOptions, ): APIPromise< Result< - operations.GetCollectionImageResponse, + ReadableStream, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.GetCollectionImageResponse, + ReadableStream, | PlexAPIError | ResponseValidationError | ConnectionError @@ -209,16 +210,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.GetCollectionImageResponse, + ReadableStream, | PlexAPIError | ResponseValidationError | ConnectionError @@ -228,13 +221,14 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.stream(200, operations.GetCollectionImageResponse$inboundSchema, { - ctype: "image/jpeg", - key: "response-stream", - }), + M.stream( + 200, + z.custom>(x => x instanceof ReadableStream), + { ctype: "image/jpeg" }, + ), M.fail([404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/contentGetCollectionItems.ts b/src/funcs/contentGetCollectionItems.ts index fbdc5e96..440fbadf 100644 --- a/src/funcs/contentGetCollectionItems.ts +++ b/src/funcs/contentGetCollectionItems.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get items in a collection @@ -36,7 +37,7 @@ export function contentGetCollectionItems( options?: RequestOptions, ): APIPromise< Result< - operations.GetCollectionItemsResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.GetCollectionItemsResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -200,16 +201,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.GetCollectionItemsResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -219,12 +212,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetCollectionItemsResponse$inboundSchema, { - key: "MediaContainerWithMetadata", - }), + M.json(200, shared.MediaContainerWithMetadata$inboundSchema), M.fail([404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/contentGetFolders.ts b/src/funcs/contentGetFolders.ts index 50a1be29..fa5ce9f2 100644 --- a/src/funcs/contentGetFolders.ts +++ b/src/funcs/contentGetFolders.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get all folder locations @@ -198,14 +198,6 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< operations.GetFoldersResponse, | PlexAPIError @@ -217,10 +209,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetFoldersResponse$inboundSchema, { key: "object" }), + M.json(200, operations.GetFoldersResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/contentGetMetadataItem.ts b/src/funcs/contentGetMetadataItem.ts index fcae223f..ca33d543 100644 --- a/src/funcs/contentGetMetadataItem.ts +++ b/src/funcs/contentGetMetadataItem.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get a metadata item @@ -211,11 +211,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -231,7 +227,7 @@ async function $do( >( M.json(200, operations.GetMetadataItemResponse$inboundSchema, { hdrs: true, - key: "MediaContainerWithMetadata", + key: "Result", }), M.fail("4XX"), M.fail("5XX"), diff --git a/src/funcs/contentGetSonicPath.ts b/src/funcs/contentGetSonicPath.ts index 57d645d0..b6495a15 100644 --- a/src/funcs/contentGetSonicPath.ts +++ b/src/funcs/contentGetSonicPath.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Similar tracks to transition from one to another @@ -36,7 +37,7 @@ export function contentGetSonicPath( options?: RequestOptions, ): APIPromise< Result< - operations.GetSonicPathResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.GetSonicPathResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -208,16 +209,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.GetSonicPathResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -227,12 +220,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetSonicPathResponse$inboundSchema, { - key: "MediaContainerWithMetadata", - }), + M.json(200, shared.MediaContainerWithMetadata$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/contentGetSonicallySimilar.ts b/src/funcs/contentGetSonicallySimilar.ts index eaccae55..7c3ff8b9 100644 --- a/src/funcs/contentGetSonicallySimilar.ts +++ b/src/funcs/contentGetSonicallySimilar.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * The nearest audio tracks @@ -36,7 +37,7 @@ export function contentGetSonicallySimilar( options?: RequestOptions, ): APIPromise< Result< - operations.GetSonicallySimilarResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.GetSonicallySimilarResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -211,16 +212,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.GetSonicallySimilarResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -230,12 +223,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetSonicallySimilarResponse$inboundSchema, { - key: "MediaContainerWithMetadata", - }), + M.json(200, shared.MediaContainerWithMetadata$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/contentListContent.ts b/src/funcs/contentListContent.ts index 52bd4f6a..2e75ce5a 100644 --- a/src/funcs/contentListContent.ts +++ b/src/funcs/contentListContent.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get items in the section @@ -208,11 +208,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -228,7 +224,7 @@ async function $do( >( M.json(200, operations.ListContentResponse$inboundSchema, { hdrs: true, - key: "MediaContainerWithMetadata", + key: "Result", }), M.fail("4XX"), M.fail("5XX"), diff --git a/src/funcs/contentListMoments.ts b/src/funcs/contentListMoments.ts index 229f160e..2f4b285c 100644 --- a/src/funcs/contentListMoments.ts +++ b/src/funcs/contentListMoments.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Set section moments @@ -36,7 +37,7 @@ export function contentListMoments( options?: RequestOptions, ): APIPromise< Result< - operations.ListMomentsResponse, + shared.MediaContainerWithArtwork, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.ListMomentsResponse, + shared.MediaContainerWithArtwork, | PlexAPIError | ResponseValidationError | ConnectionError @@ -198,16 +199,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.ListMomentsResponse, + shared.MediaContainerWithArtwork, | PlexAPIError | ResponseValidationError | ConnectionError @@ -217,12 +210,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.ListMomentsResponse$inboundSchema, { - key: "MediaContainerWithArtwork", - }), + M.json(200, shared.MediaContainerWithArtwork$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/devicesAddDevice.ts b/src/funcs/devicesAddDevice.ts index ea1b6fd0..88ea239a 100644 --- a/src/funcs/devicesAddDevice.ts +++ b/src/funcs/devicesAddDevice.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Add a device @@ -36,7 +37,7 @@ export function devicesAddDevice( options?: RequestOptions, ): APIPromise< Result< - operations.AddDeviceResponse, + shared.MediaContainerWithDevice, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.AddDeviceResponse, + shared.MediaContainerWithDevice, | PlexAPIError | ResponseValidationError | ConnectionError @@ -196,16 +197,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.AddDeviceResponse, + shared.MediaContainerWithDevice, | PlexAPIError | ResponseValidationError | ConnectionError @@ -215,12 +208,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.AddDeviceResponse$inboundSchema, { - key: "MediaContainerWithDevice", - }), + M.json(200, shared.MediaContainerWithDevice$inboundSchema), M.fail([400, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/devicesDiscoverDevices.ts b/src/funcs/devicesDiscoverDevices.ts index 794034ae..43ebbeae 100644 --- a/src/funcs/devicesDiscoverDevices.ts +++ b/src/funcs/devicesDiscoverDevices.ts @@ -14,13 +14,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Tell grabbers to discover devices @@ -33,7 +33,7 @@ export function devicesDiscoverDevices( options?: RequestOptions, ): APIPromise< Result< - operations.DiscoverDevicesResponse, + shared.MediaContainerWithDevice, | PlexAPIError | ResponseValidationError | ConnectionError @@ -56,7 +56,7 @@ async function $do( ): Promise< [ Result< - operations.DiscoverDevicesResponse, + shared.MediaContainerWithDevice, | PlexAPIError | ResponseValidationError | ConnectionError @@ -119,16 +119,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.DiscoverDevicesResponse, + shared.MediaContainerWithDevice, | PlexAPIError | ResponseValidationError | ConnectionError @@ -138,12 +130,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.DiscoverDevicesResponse$inboundSchema, { - key: "MediaContainerWithDevice", - }), + M.json(200, shared.MediaContainerWithDevice$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/devicesGetAvailableGrabbers.ts b/src/funcs/devicesGetAvailableGrabbers.ts index a66bde63..e48694f3 100644 --- a/src/funcs/devicesGetAvailableGrabbers.ts +++ b/src/funcs/devicesGetAvailableGrabbers.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get available grabbers @@ -198,11 +198,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -218,7 +214,7 @@ async function $do( >( M.json(200, operations.GetAvailableGrabbersResponse$inboundSchema, { hdrs: true, - key: "object", + key: "Result", }), M.fail("4XX"), M.fail("5XX"), diff --git a/src/funcs/devicesGetDeviceDetails.ts b/src/funcs/devicesGetDeviceDetails.ts index e23bd931..b08ac026 100644 --- a/src/funcs/devicesGetDeviceDetails.ts +++ b/src/funcs/devicesGetDeviceDetails.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get device details @@ -36,7 +37,7 @@ export function devicesGetDeviceDetails( options?: RequestOptions, ): APIPromise< Result< - operations.GetDeviceDetailsResponse, + shared.MediaContainerWithDevice, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.GetDeviceDetailsResponse, + shared.MediaContainerWithDevice, | PlexAPIError | ResponseValidationError | ConnectionError @@ -198,16 +199,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.GetDeviceDetailsResponse, + shared.MediaContainerWithDevice, | PlexAPIError | ResponseValidationError | ConnectionError @@ -217,12 +210,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetDeviceDetailsResponse$inboundSchema, { - key: "MediaContainerWithDevice", - }), + M.json(200, shared.MediaContainerWithDevice$inboundSchema), M.fail([404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/devicesGetDevicesChannels.ts b/src/funcs/devicesGetDevicesChannels.ts index 451d3820..3a2f74df 100644 --- a/src/funcs/devicesGetDevicesChannels.ts +++ b/src/funcs/devicesGetDevicesChannels.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get a device's channels @@ -201,11 +201,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -221,7 +217,7 @@ async function $do( >( M.json(200, operations.GetDevicesChannelsResponse$inboundSchema, { hdrs: true, - key: "object", + key: "Result", }), M.fail([404, "4XX"]), M.fail("5XX"), diff --git a/src/funcs/devicesGetThumb.ts b/src/funcs/devicesGetThumb.ts index 72878fe6..4a942706 100644 --- a/src/funcs/devicesGetThumb.ts +++ b/src/funcs/devicesGetThumb.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get device thumb @@ -36,7 +37,7 @@ export function devicesGetThumb( options?: RequestOptions, ): APIPromise< Result< - operations.GetThumbResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.GetThumbResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -204,16 +205,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.GetThumbResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -223,11 +216,11 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.GetThumbResponse$inboundSchema), - M.nil(301, operations.GetThumbResponse$inboundSchema), + M.nil(200, z.void()), + M.nil(301, z.void()), M.fail([404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/devicesListDevices.ts b/src/funcs/devicesListDevices.ts index da7682e9..34986273 100644 --- a/src/funcs/devicesListDevices.ts +++ b/src/funcs/devicesListDevices.ts @@ -14,13 +14,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get all devices @@ -120,11 +120,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -140,7 +136,7 @@ async function $do( >( M.json(200, operations.ListDevicesResponse$inboundSchema, { hdrs: true, - key: "MediaContainerWithDevice", + key: "Result", }), M.fail("4XX"), M.fail("5XX"), diff --git a/src/funcs/devicesModifyDevice.ts b/src/funcs/devicesModifyDevice.ts index e3090496..a1c0ea16 100644 --- a/src/funcs/devicesModifyDevice.ts +++ b/src/funcs/devicesModifyDevice.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Enable or disable a device @@ -204,11 +204,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -224,7 +220,7 @@ async function $do( >( M.json(200, operations.ModifyDeviceResponse$inboundSchema, { hdrs: true, - key: "object", + key: "Result", }), M.fail([404, "4XX"]), M.fail("5XX"), diff --git a/src/funcs/devicesRemoveDevice.ts b/src/funcs/devicesRemoveDevice.ts index b68e0743..e401629c 100644 --- a/src/funcs/devicesRemoveDevice.ts +++ b/src/funcs/devicesRemoveDevice.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Remove a device @@ -199,11 +199,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -219,7 +215,7 @@ async function $do( >( M.json(200, operations.RemoveDeviceResponse$inboundSchema, { hdrs: true, - key: "object", + key: "Result", }), M.fail([404, "4XX"]), M.fail("5XX"), diff --git a/src/funcs/devicesScan.ts b/src/funcs/devicesScan.ts index d09d8d65..216e249d 100644 --- a/src/funcs/devicesScan.ts +++ b/src/funcs/devicesScan.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Tell a device to scan for channels @@ -206,11 +206,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -226,7 +222,7 @@ async function $do( >( M.json(200, operations.ScanResponse$inboundSchema, { hdrs: true, - key: "MediaContainerWithDevice", + key: "Result", }), M.fail("4XX"), M.fail("5XX"), diff --git a/src/funcs/devicesSetChannelmap.ts b/src/funcs/devicesSetChannelmap.ts index 71931025..54eebcd1 100644 --- a/src/funcs/devicesSetChannelmap.ts +++ b/src/funcs/devicesSetChannelmap.ts @@ -21,13 +21,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Set a device's channel mapping @@ -41,7 +42,7 @@ export function devicesSetChannelmap( options?: RequestOptions, ): APIPromise< Result< - operations.SetChannelmapResponse, + shared.MediaContainerWithDevice, | PlexAPIError | ResponseValidationError | ConnectionError @@ -66,7 +67,7 @@ async function $do( ): Promise< [ Result< - operations.SetChannelmapResponse, + shared.MediaContainerWithDevice, | PlexAPIError | ResponseValidationError | ConnectionError @@ -216,16 +217,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.SetChannelmapResponse, + shared.MediaContainerWithDevice, | PlexAPIError | ResponseValidationError | ConnectionError @@ -235,12 +228,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.SetChannelmapResponse$inboundSchema, { - key: "MediaContainerWithDevice", - }), + M.json(200, shared.MediaContainerWithDevice$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/devicesSetDevicePreferences.ts b/src/funcs/devicesSetDevicePreferences.ts index 88b904dc..88e5eed4 100644 --- a/src/funcs/devicesSetDevicePreferences.ts +++ b/src/funcs/devicesSetDevicePreferences.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Set device preferences @@ -36,7 +37,7 @@ export function devicesSetDevicePreferences( options?: RequestOptions, ): APIPromise< Result< - operations.SetDevicePreferencesResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.SetDevicePreferencesResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -206,16 +207,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.SetDevicePreferencesResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -225,10 +218,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.SetDevicePreferencesResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/devicesStopScan.ts b/src/funcs/devicesStopScan.ts index 9f783b55..f7b5d1db 100644 --- a/src/funcs/devicesStopScan.ts +++ b/src/funcs/devicesStopScan.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Tell a device to stop scanning for channels @@ -36,7 +37,7 @@ export function devicesStopScan( options?: RequestOptions, ): APIPromise< Result< - operations.StopScanResponse, + shared.MediaContainerWithDevice, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.StopScanResponse, + shared.MediaContainerWithDevice, | PlexAPIError | ResponseValidationError | ConnectionError @@ -200,16 +201,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.StopScanResponse, + shared.MediaContainerWithDevice, | PlexAPIError | ResponseValidationError | ConnectionError @@ -219,12 +212,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.StopScanResponse$inboundSchema, { - key: "MediaContainerWithDevice", - }), + M.json(200, shared.MediaContainerWithDevice$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/downloadQueueAddDownloadQueueItems.ts b/src/funcs/downloadQueueAddDownloadQueueItems.ts index 07941596..dd716bb1 100644 --- a/src/funcs/downloadQueueAddDownloadQueueItems.ts +++ b/src/funcs/downloadQueueAddDownloadQueueItems.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Add to download queue @@ -236,14 +236,6 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< operations.AddDownloadQueueItemsResponse, | PlexAPIError @@ -255,12 +247,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.AddDownloadQueueItemsResponse$inboundSchema, { - key: "object", - }), + M.json(200, operations.AddDownloadQueueItemsResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/downloadQueueCreateDownloadQueue.ts b/src/funcs/downloadQueueCreateDownloadQueue.ts index 64ecff48..561b3fc2 100644 --- a/src/funcs/downloadQueueCreateDownloadQueue.ts +++ b/src/funcs/downloadQueueCreateDownloadQueue.ts @@ -14,13 +14,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Create download queue @@ -121,14 +121,6 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< operations.CreateDownloadQueueResponse, | PlexAPIError @@ -140,12 +132,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.CreateDownloadQueueResponse$inboundSchema, { - key: "object", - }), + M.json(200, operations.CreateDownloadQueueResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/downloadQueueGetDownloadQueue.ts b/src/funcs/downloadQueueGetDownloadQueue.ts index 2c347754..776e7ae6 100644 --- a/src/funcs/downloadQueueGetDownloadQueue.ts +++ b/src/funcs/downloadQueueGetDownloadQueue.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get a download queue @@ -200,14 +200,6 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< operations.GetDownloadQueueResponse, | PlexAPIError @@ -219,12 +211,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetDownloadQueueResponse$inboundSchema, { - key: "object", - }), + M.json(200, operations.GetDownloadQueueResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/downloadQueueGetDownloadQueueItems.ts b/src/funcs/downloadQueueGetDownloadQueueItems.ts index 3c3e08a6..fc5b62d3 100644 --- a/src/funcs/downloadQueueGetDownloadQueueItems.ts +++ b/src/funcs/downloadQueueGetDownloadQueueItems.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get download queue items @@ -207,14 +207,6 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< operations.GetDownloadQueueItemsResponse, | PlexAPIError @@ -226,12 +218,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetDownloadQueueItemsResponse$inboundSchema, { - key: "object", - }), + M.json(200, operations.GetDownloadQueueItemsResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/downloadQueueGetDownloadQueueMedia.ts b/src/funcs/downloadQueueGetDownloadQueueMedia.ts index c4356d67..5a464e51 100644 --- a/src/funcs/downloadQueueGetDownloadQueueMedia.ts +++ b/src/funcs/downloadQueueGetDownloadQueueMedia.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; +import * as types$ from "../types/primitives.js"; /** * Grab download queue media @@ -38,7 +39,7 @@ export function downloadQueueGetDownloadQueueMedia( options?: RequestOptions, ): APIPromise< Result< - operations.GetDownloadQueueMediaResponse, + operations.GetDownloadQueueMediaResponse | undefined, | PlexAPIError | ResponseValidationError | ConnectionError @@ -63,7 +64,7 @@ async function $do( ): Promise< [ Result< - operations.GetDownloadQueueMediaResponse, + operations.GetDownloadQueueMediaResponse | undefined, | PlexAPIError | ResponseValidationError | ConnectionError @@ -208,15 +209,11 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< - operations.GetDownloadQueueMediaResponse, + operations.GetDownloadQueueMediaResponse | undefined, | PlexAPIError | ResponseValidationError | ConnectionError @@ -226,7 +223,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.GetDownloadQueueMediaResponse$inboundSchema), + M.nil( + 200, + types$.optional(operations.GetDownloadQueueMediaResponse$inboundSchema), + ), M.fail(503), M.fail("4XX"), M.fail("5XX"), diff --git a/src/funcs/downloadQueueGetItemDecision.ts b/src/funcs/downloadQueueGetItemDecision.ts index fabdad72..9c5ebb7b 100644 --- a/src/funcs/downloadQueueGetItemDecision.ts +++ b/src/funcs/downloadQueueGetItemDecision.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Grab download queue item decision @@ -38,7 +39,7 @@ export function downloadQueueGetItemDecision( options?: RequestOptions, ): APIPromise< Result< - operations.GetItemDecisionResponse, + shared.MediaContainerWithDecision, | PlexAPIError | ResponseValidationError | ConnectionError @@ -63,7 +64,7 @@ async function $do( ): Promise< [ Result< - operations.GetItemDecisionResponse, + shared.MediaContainerWithDecision, | PlexAPIError | ResponseValidationError | ConnectionError @@ -206,16 +207,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.GetItemDecisionResponse, + shared.MediaContainerWithDecision, | PlexAPIError | ResponseValidationError | ConnectionError @@ -225,12 +218,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetItemDecisionResponse$inboundSchema, { - key: "MediaContainerWithDecision", - }), + M.json(200, shared.MediaContainerWithDecision$inboundSchema), M.fail([400, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/downloadQueueListDownloadQueueItems.ts b/src/funcs/downloadQueueListDownloadQueueItems.ts index e1821d9b..b1129cc9 100644 --- a/src/funcs/downloadQueueListDownloadQueueItems.ts +++ b/src/funcs/downloadQueueListDownloadQueueItems.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get download queue items @@ -201,14 +201,6 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< operations.ListDownloadQueueItemsResponse, | PlexAPIError @@ -220,12 +212,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.ListDownloadQueueItemsResponse$inboundSchema, { - key: "object", - }), + M.json(200, operations.ListDownloadQueueItemsResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/downloadQueueRemoveDownloadQueueItems.ts b/src/funcs/downloadQueueRemoveDownloadQueueItems.ts index 1ea870d9..f2568bd9 100644 --- a/src/funcs/downloadQueueRemoveDownloadQueueItems.ts +++ b/src/funcs/downloadQueueRemoveDownloadQueueItems.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Delete download queue items @@ -36,7 +37,7 @@ export function downloadQueueRemoveDownloadQueueItems( options?: RequestOptions, ): APIPromise< Result< - operations.RemoveDownloadQueueItemsResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.RemoveDownloadQueueItemsResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -205,16 +206,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.RemoveDownloadQueueItemsResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -224,10 +217,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.RemoveDownloadQueueItemsResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/downloadQueueRestartProcessingDownloadQueueItems.ts b/src/funcs/downloadQueueRestartProcessingDownloadQueueItems.ts index c12dcdfa..c9829bf2 100644 --- a/src/funcs/downloadQueueRestartProcessingDownloadQueueItems.ts +++ b/src/funcs/downloadQueueRestartProcessingDownloadQueueItems.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Restart processing of items from the decision @@ -38,7 +39,7 @@ export function downloadQueueRestartProcessingDownloadQueueItems( options?: RequestOptions, ): APIPromise< Result< - operations.RestartProcessingDownloadQueueItemsResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -63,7 +64,7 @@ async function $do( ): Promise< [ Result< - operations.RestartProcessingDownloadQueueItemsResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -208,16 +209,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.RestartProcessingDownloadQueueItemsResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -227,13 +220,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil( - 200, - operations.RestartProcessingDownloadQueueItemsResponse$inboundSchema, - ), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/dvRsAddDeviceToDVR.ts b/src/funcs/dvRsAddDeviceToDVR.ts index c6f33b47..daf7b6dc 100644 --- a/src/funcs/dvRsAddDeviceToDVR.ts +++ b/src/funcs/dvRsAddDeviceToDVR.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Add a device to an existing DVR @@ -205,11 +205,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -225,7 +221,7 @@ async function $do( >( M.json(200, operations.AddDeviceToDVRResponse$inboundSchema, { hdrs: true, - key: "object", + key: "Result", }), M.fail("4XX"), M.fail("5XX"), diff --git a/src/funcs/dvRsAddLineup.ts b/src/funcs/dvRsAddLineup.ts index f0aec27b..c28da8dd 100644 --- a/src/funcs/dvRsAddLineup.ts +++ b/src/funcs/dvRsAddLineup.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Add a DVR Lineup @@ -204,11 +204,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -224,7 +220,7 @@ async function $do( >( M.json(200, operations.AddLineupResponse$inboundSchema, { hdrs: true, - key: "object", + key: "Result", }), M.fail("4XX"), M.fail("5XX"), diff --git a/src/funcs/dvRsCreateDVR.ts b/src/funcs/dvRsCreateDVR.ts index 52040487..18f61d2d 100644 --- a/src/funcs/dvRsCreateDVR.ts +++ b/src/funcs/dvRsCreateDVR.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Create a DVR @@ -199,11 +199,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -219,7 +215,7 @@ async function $do( >( M.json(200, operations.CreateDVRResponse$inboundSchema, { hdrs: true, - key: "dvrRequestHandler_slash-get-responses-200", + key: "Result", }), M.fail("4XX"), M.fail("5XX"), diff --git a/src/funcs/dvRsDeleteDVR.ts b/src/funcs/dvRsDeleteDVR.ts index 63ad4896..8b7b50cf 100644 --- a/src/funcs/dvRsDeleteDVR.ts +++ b/src/funcs/dvRsDeleteDVR.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Delete a single DVR @@ -36,7 +37,7 @@ export function dvRsDeleteDVR( options?: RequestOptions, ): APIPromise< Result< - operations.DeleteDVRResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.DeleteDVRResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -198,16 +199,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.DeleteDVRResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -217,10 +210,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.DeleteDVRResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/dvRsDeleteLineup.ts b/src/funcs/dvRsDeleteLineup.ts index 75054b80..07da2dc3 100644 --- a/src/funcs/dvRsDeleteLineup.ts +++ b/src/funcs/dvRsDeleteLineup.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Delete a DVR Lineup @@ -204,11 +204,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -224,7 +220,7 @@ async function $do( >( M.json(200, operations.DeleteLineupResponse$inboundSchema, { hdrs: true, - key: "object", + key: "Result", }), M.fail("4XX"), M.fail("5XX"), diff --git a/src/funcs/dvRsGetDVR.ts b/src/funcs/dvRsGetDVR.ts index f6cdc573..902d2c0b 100644 --- a/src/funcs/dvRsGetDVR.ts +++ b/src/funcs/dvRsGetDVR.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get a single DVR @@ -199,11 +199,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -219,7 +215,7 @@ async function $do( >( M.json(200, operations.GetDVRResponse$inboundSchema, { hdrs: true, - key: "object", + key: "Result", }), M.fail("4XX"), M.fail("5XX"), diff --git a/src/funcs/dvRsListDVRs.ts b/src/funcs/dvRsListDVRs.ts index 0c387e01..7df8d44a 100644 --- a/src/funcs/dvRsListDVRs.ts +++ b/src/funcs/dvRsListDVRs.ts @@ -14,13 +14,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get DVRs @@ -120,11 +120,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -140,7 +136,7 @@ async function $do( >( M.json(200, operations.ListDVRsResponse$inboundSchema, { hdrs: true, - key: "object", + key: "Result", }), M.fail("4XX"), M.fail("5XX"), diff --git a/src/funcs/dvRsReloadGuide.ts b/src/funcs/dvRsReloadGuide.ts index 4c728aad..bc37a5a5 100644 --- a/src/funcs/dvRsReloadGuide.ts +++ b/src/funcs/dvRsReloadGuide.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; +import * as types$ from "../types/primitives.js"; /** * Tell a DVR to reload program guide @@ -36,7 +37,7 @@ export function dvRsReloadGuide( options?: RequestOptions, ): APIPromise< Result< - operations.ReloadGuideResponse, + operations.ReloadGuideResponse | undefined, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.ReloadGuideResponse, + operations.ReloadGuideResponse | undefined, | PlexAPIError | ResponseValidationError | ConnectionError @@ -199,15 +200,11 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< - operations.ReloadGuideResponse, + operations.ReloadGuideResponse | undefined, | PlexAPIError | ResponseValidationError | ConnectionError @@ -217,7 +214,9 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.ReloadGuideResponse$inboundSchema, { hdrs: true }), + M.nil(200, types$.optional(operations.ReloadGuideResponse$inboundSchema), { + hdrs: true, + }), M.fail("4XX"), M.fail("5XX"), )(response, req, { extraFields: responseFields }); diff --git a/src/funcs/dvRsRemoveDeviceFromDVR.ts b/src/funcs/dvRsRemoveDeviceFromDVR.ts index 8b97ecf1..7709a3bf 100644 --- a/src/funcs/dvRsRemoveDeviceFromDVR.ts +++ b/src/funcs/dvRsRemoveDeviceFromDVR.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Remove a device from an existing DVR @@ -206,11 +206,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -226,7 +222,7 @@ async function $do( >( M.json(200, operations.RemoveDeviceFromDVRResponse$inboundSchema, { hdrs: true, - key: "object", + key: "Result", }), M.fail("4XX"), M.fail("5XX"), diff --git a/src/funcs/dvRsSetDVRPreferences.ts b/src/funcs/dvRsSetDVRPreferences.ts index b24b88d6..23cfad0d 100644 --- a/src/funcs/dvRsSetDVRPreferences.ts +++ b/src/funcs/dvRsSetDVRPreferences.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Set DVR preferences @@ -204,11 +204,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -224,7 +220,7 @@ async function $do( >( M.json(200, operations.SetDVRPreferencesResponse$inboundSchema, { hdrs: true, - key: "object", + key: "Result", }), M.fail("4XX"), M.fail("5XX"), diff --git a/src/funcs/dvRsStopDVRReload.ts b/src/funcs/dvRsStopDVRReload.ts index 6d6a06aa..e53c6118 100644 --- a/src/funcs/dvRsStopDVRReload.ts +++ b/src/funcs/dvRsStopDVRReload.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Tell a DVR to stop reloading program guide @@ -36,7 +37,7 @@ export function dvRsStopDVRReload( options?: RequestOptions, ): APIPromise< Result< - operations.StopDVRReloadResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.StopDVRReloadResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -198,16 +199,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.StopDVRReloadResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -217,10 +210,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.StopDVRReloadResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/dvRsTuneChannel.ts b/src/funcs/dvRsTuneChannel.ts index 30646de0..f10923f7 100644 --- a/src/funcs/dvRsTuneChannel.ts +++ b/src/funcs/dvRsTuneChannel.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Tune a channel on a DVR @@ -205,11 +205,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -225,7 +221,7 @@ async function $do( >( M.json(200, operations.TuneChannelResponse$inboundSchema, { hdrs: true, - key: "MediaContainerWithMetadata", + key: "Result", }), M.fail("4XX"), M.fail([500, "5XX"]), diff --git a/src/funcs/epgComputeChannelMap.ts b/src/funcs/epgComputeChannelMap.ts index a46548e5..fec86a1f 100644 --- a/src/funcs/epgComputeChannelMap.ts +++ b/src/funcs/epgComputeChannelMap.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Compute the best channel map @@ -198,11 +198,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -218,7 +214,7 @@ async function $do( >( M.json(200, operations.ComputeChannelMapResponse$inboundSchema, { hdrs: true, - key: "object", + key: "Result", }), M.fail([404, "4XX"]), M.fail([500, "5XX"]), diff --git a/src/funcs/epgGetAllLanguages.ts b/src/funcs/epgGetAllLanguages.ts index 217337e9..3ebd1a80 100644 --- a/src/funcs/epgGetAllLanguages.ts +++ b/src/funcs/epgGetAllLanguages.ts @@ -14,13 +14,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get all languages @@ -120,11 +120,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -140,7 +136,7 @@ async function $do( >( M.json(200, operations.GetAllLanguagesResponse$inboundSchema, { hdrs: true, - key: "object", + key: "Result", }), M.fail("4XX"), M.fail("5XX"), diff --git a/src/funcs/epgGetChannels.ts b/src/funcs/epgGetChannels.ts index 1f737a1c..c9e60318 100644 --- a/src/funcs/epgGetChannels.ts +++ b/src/funcs/epgGetChannels.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get channels for a lineup @@ -197,11 +197,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -217,7 +213,7 @@ async function $do( >( M.json(200, operations.GetChannelsResponse$inboundSchema, { hdrs: true, - key: "object", + key: "Result", }), M.fail([404, "4XX"]), M.fail("5XX"), diff --git a/src/funcs/epgGetCountries.ts b/src/funcs/epgGetCountries.ts index ad64c6aa..3746d5e9 100644 --- a/src/funcs/epgGetCountries.ts +++ b/src/funcs/epgGetCountries.ts @@ -14,13 +14,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get all countries @@ -120,11 +120,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -140,7 +136,7 @@ async function $do( >( M.json(200, operations.GetCountriesResponse$inboundSchema, { hdrs: true, - key: "object", + key: "Result", }), M.fail("4XX"), M.fail("5XX"), diff --git a/src/funcs/epgGetCountriesLineups.ts b/src/funcs/epgGetCountriesLineups.ts index e1e57b79..7087f9ff 100644 --- a/src/funcs/epgGetCountriesLineups.ts +++ b/src/funcs/epgGetCountriesLineups.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get lineups for a country via postal code @@ -36,7 +37,7 @@ export function epgGetCountriesLineups( options?: RequestOptions, ): APIPromise< Result< - operations.GetCountriesLineupsResponse, + shared.MediaContainerWithLineup, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.GetCountriesLineupsResponse, + shared.MediaContainerWithLineup, | PlexAPIError | ResponseValidationError | ConnectionError @@ -210,16 +211,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.GetCountriesLineupsResponse, + shared.MediaContainerWithLineup, | PlexAPIError | ResponseValidationError | ConnectionError @@ -229,12 +222,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetCountriesLineupsResponse$inboundSchema, { - key: "MediaContainerWithLineup", - }), + M.json(200, shared.MediaContainerWithLineup$inboundSchema), M.fail([404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/epgGetCountryRegions.ts b/src/funcs/epgGetCountryRegions.ts index 729878a4..00919652 100644 --- a/src/funcs/epgGetCountryRegions.ts +++ b/src/funcs/epgGetCountryRegions.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get regions for a country @@ -205,11 +205,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -225,7 +221,7 @@ async function $do( >( M.json(200, operations.GetCountryRegionsResponse$inboundSchema, { hdrs: true, - key: "object", + key: "Result", }), M.fail([404, "4XX"]), M.fail("5XX"), diff --git a/src/funcs/epgGetLineup.ts b/src/funcs/epgGetLineup.ts index e3d79c60..5b6bdfa5 100644 --- a/src/funcs/epgGetLineup.ts +++ b/src/funcs/epgGetLineup.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; +import * as types$ from "../types/primitives.js"; /** * Compute the best lineup @@ -36,7 +37,7 @@ export function epgGetLineup( options?: RequestOptions, ): APIPromise< Result< - operations.GetLineupResponse, + operations.GetLineupResponse | undefined, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.GetLineupResponse, + operations.GetLineupResponse | undefined, | PlexAPIError | ResponseValidationError | ConnectionError @@ -198,15 +199,11 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< - operations.GetLineupResponse, + operations.GetLineupResponse | undefined, | PlexAPIError | ResponseValidationError | ConnectionError @@ -216,7 +213,9 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.GetLineupResponse$inboundSchema, { hdrs: true }), + M.nil(200, types$.optional(operations.GetLineupResponse$inboundSchema), { + hdrs: true, + }), M.fail([404, "4XX"]), M.fail([500, "5XX"]), )(response, req, { extraFields: responseFields }); diff --git a/src/funcs/epgGetLineupChannels.ts b/src/funcs/epgGetLineupChannels.ts index 9a95a433..002d0116 100644 --- a/src/funcs/epgGetLineupChannels.ts +++ b/src/funcs/epgGetLineupChannels.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get the channels for mulitple lineups @@ -196,14 +196,6 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< operations.GetLineupChannelsResponse, | PlexAPIError @@ -215,12 +207,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetLineupChannelsResponse$inboundSchema, { - key: "object", - }), + M.json(200, operations.GetLineupChannelsResponse$inboundSchema), M.fail([404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/epgListLineups.ts b/src/funcs/epgListLineups.ts index f48c646d..2caf68b4 100644 --- a/src/funcs/epgListLineups.ts +++ b/src/funcs/epgListLineups.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get lineups for a region @@ -209,11 +209,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -229,7 +225,7 @@ async function $do( >( M.json(200, operations.ListLineupsResponse$inboundSchema, { hdrs: true, - key: "MediaContainerWithLineup", + key: "Result", }), M.fail([404, "4XX"]), M.fail("5XX"), diff --git a/src/funcs/eventsConnectWebSocket.ts b/src/funcs/eventsConnectWebSocket.ts index 0366a1fd..4f45507d 100644 --- a/src/funcs/eventsConnectWebSocket.ts +++ b/src/funcs/eventsConnectWebSocket.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Connect to WebSocket @@ -36,7 +37,7 @@ export function eventsConnectWebSocket( options?: RequestOptions, ): APIPromise< Result< - operations.ConnectWebSocketResponse, + ReadableStream, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.ConnectWebSocketResponse, + ReadableStream, | PlexAPIError | ResponseValidationError | ConnectionError @@ -196,16 +197,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.ConnectWebSocketResponse, + ReadableStream, | PlexAPIError | ResponseValidationError | ConnectionError @@ -215,12 +208,13 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.stream(200, operations.ConnectWebSocketResponse$inboundSchema, { - key: "response-stream", - }), + M.stream( + 200, + z.custom>(x => x instanceof ReadableStream), + ), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/eventsGetNotifications.ts b/src/funcs/eventsGetNotifications.ts index ecfa3d0b..b69137ca 100644 --- a/src/funcs/eventsGetNotifications.ts +++ b/src/funcs/eventsGetNotifications.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Connect to Eventsource @@ -36,7 +37,7 @@ export function eventsGetNotifications( options?: RequestOptions, ): APIPromise< Result< - operations.GetNotificationsResponse, + ReadableStream, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.GetNotificationsResponse, + ReadableStream, | PlexAPIError | ResponseValidationError | ConnectionError @@ -196,16 +197,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.GetNotificationsResponse, + ReadableStream, | PlexAPIError | ResponseValidationError | ConnectionError @@ -215,12 +208,13 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.stream(200, operations.GetNotificationsResponse$inboundSchema, { - key: "response-stream", - }), + M.stream( + 200, + z.custom>(x => x instanceof ReadableStream), + ), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/generalGetIdentity.ts b/src/funcs/generalGetIdentity.ts index 04679427..9c8ab977 100644 --- a/src/funcs/generalGetIdentity.ts +++ b/src/funcs/generalGetIdentity.ts @@ -14,13 +14,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get PMS identity @@ -119,14 +119,6 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< operations.GetIdentityResponse, | PlexAPIError @@ -138,12 +130,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetIdentityResponse$inboundSchema, { - key: "object", - }), + M.json(200, operations.GetIdentityResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/generalGetServerInfo.ts b/src/funcs/generalGetServerInfo.ts index ef26a4d1..8cdab0f7 100644 --- a/src/funcs/generalGetServerInfo.ts +++ b/src/funcs/generalGetServerInfo.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get PMS info @@ -36,7 +37,7 @@ export function generalGetServerInfo( options?: RequestOptions, ): APIPromise< Result< - operations.GetServerInfoResponse, + shared.MediaContainerWithDirectory, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.GetServerInfoResponse, + shared.MediaContainerWithDirectory, | PlexAPIError | ResponseValidationError | ConnectionError @@ -191,16 +192,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.GetServerInfoResponse, + shared.MediaContainerWithDirectory, | PlexAPIError | ResponseValidationError | ConnectionError @@ -210,12 +203,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetServerInfoResponse$inboundSchema, { - key: "MediaContainerWithDirectory", - }), + M.json(200, shared.MediaContainerWithDirectory$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/generalGetSourceConnectionInformation.ts b/src/funcs/generalGetSourceConnectionInformation.ts index 13a69de7..c0a13749 100644 --- a/src/funcs/generalGetSourceConnectionInformation.ts +++ b/src/funcs/generalGetSourceConnectionInformation.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get Source Connection Information @@ -200,14 +200,6 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< operations.GetSourceConnectionInformationResponse, | PlexAPIError @@ -222,11 +214,10 @@ async function $do( M.json( 200, operations.GetSourceConnectionInformationResponse$inboundSchema, - { key: "object" }, ), M.fail([400, 403, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/generalGetTransientToken.ts b/src/funcs/generalGetTransientToken.ts index 78f90b12..ed1a45ee 100644 --- a/src/funcs/generalGetTransientToken.ts +++ b/src/funcs/generalGetTransientToken.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get Transient Tokens @@ -198,14 +198,6 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< operations.GetTransientTokenResponse, | PlexAPIError @@ -217,12 +209,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetTransientTokenResponse$inboundSchema, { - key: "object", - }), + M.json(200, operations.GetTransientTokenResponse$inboundSchema), M.fail([400, 403, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/hubsCreateCustomHub.ts b/src/funcs/hubsCreateCustomHub.ts index 71788193..d4902782 100644 --- a/src/funcs/hubsCreateCustomHub.ts +++ b/src/funcs/hubsCreateCustomHub.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Create a custom hub @@ -36,7 +37,7 @@ export function hubsCreateCustomHub( options?: RequestOptions, ): APIPromise< Result< - operations.CreateCustomHubResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.CreateCustomHubResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -206,16 +207,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.CreateCustomHubResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -225,10 +218,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.CreateCustomHubResponse$inboundSchema), + M.nil(200, z.void()), M.fail([400, 403, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/hubsDeleteCustomHub.ts b/src/funcs/hubsDeleteCustomHub.ts index 60acd54c..0f8c3470 100644 --- a/src/funcs/hubsDeleteCustomHub.ts +++ b/src/funcs/hubsDeleteCustomHub.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Delete a custom hub @@ -36,7 +37,7 @@ export function hubsDeleteCustomHub( options?: RequestOptions, ): APIPromise< Result< - operations.DeleteCustomHubResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.DeleteCustomHubResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -204,16 +205,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.DeleteCustomHubResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -223,10 +216,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.DeleteCustomHubResponse$inboundSchema), + M.nil(200, z.void()), M.fail([400, 403, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/hubsGetAllHubs.ts b/src/funcs/hubsGetAllHubs.ts index c62cc34f..22b7a750 100644 --- a/src/funcs/hubsGetAllHubs.ts +++ b/src/funcs/hubsGetAllHubs.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get global hubs @@ -199,11 +199,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -219,7 +215,7 @@ async function $do( >( M.json(200, operations.GetAllHubsResponse$inboundSchema, { hdrs: true, - key: "object", + key: "Result", }), M.fail("4XX"), M.fail("5XX"), diff --git a/src/funcs/hubsGetContinueWatching.ts b/src/funcs/hubsGetContinueWatching.ts index 64c303c0..faf5fe65 100644 --- a/src/funcs/hubsGetContinueWatching.ts +++ b/src/funcs/hubsGetContinueWatching.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get the continue watching hub @@ -198,11 +198,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -218,7 +214,7 @@ async function $do( >( M.json(200, operations.GetContinueWatchingResponse$inboundSchema, { hdrs: true, - key: "object", + key: "Result", }), M.fail("4XX"), M.fail("5XX"), diff --git a/src/funcs/hubsGetHubItems.ts b/src/funcs/hubsGetHubItems.ts index 9b1a418f..f2d5c010 100644 --- a/src/funcs/hubsGetHubItems.ts +++ b/src/funcs/hubsGetHubItems.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get a hub's items @@ -198,11 +198,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -218,7 +214,7 @@ async function $do( >( M.json(200, operations.GetHubItemsResponse$inboundSchema, { hdrs: true, - key: "object", + key: "Result", }), M.fail([404, "4XX"]), M.fail("5XX"), diff --git a/src/funcs/hubsGetMetadataHubs.ts b/src/funcs/hubsGetMetadataHubs.ts index c86249a4..f70a5961 100644 --- a/src/funcs/hubsGetMetadataHubs.ts +++ b/src/funcs/hubsGetMetadataHubs.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get hubs for section by metadata item @@ -205,11 +205,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -225,7 +221,7 @@ async function $do( >( M.json(200, operations.GetMetadataHubsResponse$inboundSchema, { hdrs: true, - key: "MediaContainerWithHubs", + key: "Result", }), M.fail([400, "4XX"]), M.fail("5XX"), diff --git a/src/funcs/hubsGetPostplayHubs.ts b/src/funcs/hubsGetPostplayHubs.ts index 030a30e3..fef58ece 100644 --- a/src/funcs/hubsGetPostplayHubs.ts +++ b/src/funcs/hubsGetPostplayHubs.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get postplay hubs @@ -205,11 +205,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -225,7 +221,7 @@ async function $do( >( M.json(200, operations.GetPostplayHubsResponse$inboundSchema, { hdrs: true, - key: "MediaContainerWithHubs", + key: "Result", }), M.fail([400, "4XX"]), M.fail("5XX"), diff --git a/src/funcs/hubsGetPromotedHubs.ts b/src/funcs/hubsGetPromotedHubs.ts index 6cc36795..a843ee2a 100644 --- a/src/funcs/hubsGetPromotedHubs.ts +++ b/src/funcs/hubsGetPromotedHubs.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get the hubs which are promoted @@ -197,11 +197,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -217,7 +213,7 @@ async function $do( >( M.json(200, operations.GetPromotedHubsResponse$inboundSchema, { hdrs: true, - key: "object", + key: "Result", }), M.fail("4XX"), M.fail("5XX"), diff --git a/src/funcs/hubsGetRelatedHubs.ts b/src/funcs/hubsGetRelatedHubs.ts index 6a639353..50543458 100644 --- a/src/funcs/hubsGetRelatedHubs.ts +++ b/src/funcs/hubsGetRelatedHubs.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get related hubs @@ -205,11 +205,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -225,7 +221,7 @@ async function $do( >( M.json(200, operations.GetRelatedHubsResponse$inboundSchema, { hdrs: true, - key: "MediaContainerWithHubs", + key: "Result", }), M.fail([400, "4XX"]), M.fail("5XX"), diff --git a/src/funcs/hubsGetSectionHubs.ts b/src/funcs/hubsGetSectionHubs.ts index f0f0f95f..20331f9d 100644 --- a/src/funcs/hubsGetSectionHubs.ts +++ b/src/funcs/hubsGetSectionHubs.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get section hubs @@ -205,11 +205,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -225,7 +221,7 @@ async function $do( >( M.json(200, operations.GetSectionHubsResponse$inboundSchema, { hdrs: true, - key: "object", + key: "Result", }), M.fail([400, "4XX"]), M.fail("5XX"), diff --git a/src/funcs/hubsListHubs.ts b/src/funcs/hubsListHubs.ts index 3bb66cfc..878e2200 100644 --- a/src/funcs/hubsListHubs.ts +++ b/src/funcs/hubsListHubs.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get hubs @@ -204,11 +204,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -224,7 +220,7 @@ async function $do( >( M.json(200, operations.ListHubsResponse$inboundSchema, { hdrs: true, - key: "object", + key: "Result", }), M.fail([403, 404, "4XX"]), M.fail("5XX"), diff --git a/src/funcs/hubsMoveHub.ts b/src/funcs/hubsMoveHub.ts index f10589b0..8e372b8e 100644 --- a/src/funcs/hubsMoveHub.ts +++ b/src/funcs/hubsMoveHub.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Move Hub @@ -205,11 +205,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -225,7 +221,7 @@ async function $do( >( M.json(200, operations.MoveHubResponse$inboundSchema, { hdrs: true, - key: "get-responses-200", + key: "Result", }), M.fail([403, 404, "4XX"]), M.fail("5XX"), diff --git a/src/funcs/hubsResetSectionDefaults.ts b/src/funcs/hubsResetSectionDefaults.ts index d2e74d75..804fd646 100644 --- a/src/funcs/hubsResetSectionDefaults.ts +++ b/src/funcs/hubsResetSectionDefaults.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Reset hubs to defaults @@ -36,7 +37,7 @@ export function hubsResetSectionDefaults( options?: RequestOptions, ): APIPromise< Result< - operations.ResetSectionDefaultsResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.ResetSectionDefaultsResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -199,16 +200,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.ResetSectionDefaultsResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -218,10 +211,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.ResetSectionDefaultsResponse$inboundSchema), + M.nil(200, z.void()), M.fail([403, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/hubsUpdateHubVisibility.ts b/src/funcs/hubsUpdateHubVisibility.ts index d35934cd..85911f50 100644 --- a/src/funcs/hubsUpdateHubVisibility.ts +++ b/src/funcs/hubsUpdateHubVisibility.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Change hub visibility @@ -36,7 +37,7 @@ export function hubsUpdateHubVisibility( options?: RequestOptions, ): APIPromise< Result< - operations.UpdateHubVisibilityResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.UpdateHubVisibilityResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -212,16 +213,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.UpdateHubVisibilityResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -231,10 +224,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.UpdateHubVisibilityResponse$inboundSchema), + M.nil(200, z.void()), M.fail([403, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryAddExtras.ts b/src/funcs/libraryAddExtras.ts index 8ffcee72..a638a0d6 100644 --- a/src/funcs/libraryAddExtras.ts +++ b/src/funcs/libraryAddExtras.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Add to an item's extras @@ -36,7 +37,7 @@ export function libraryAddExtras( options?: RequestOptions, ): APIPromise< Result< - operations.AddExtrasResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.AddExtrasResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -205,16 +206,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.AddExtrasResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -224,10 +217,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.AddExtrasResponse$inboundSchema), + M.nil(200, z.void()), M.fail([404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryAddSection.ts b/src/funcs/libraryAddSection.ts index 554acdf1..5ae2b6af 100644 --- a/src/funcs/libraryAddSection.ts +++ b/src/funcs/libraryAddSection.ts @@ -21,13 +21,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Add a library section @@ -41,7 +42,7 @@ export function libraryAddSection( options?: RequestOptions, ): APIPromise< Result< - operations.AddSectionResponse, + shared.SlashGetResponses200, | PlexAPIError | ResponseValidationError | ConnectionError @@ -66,7 +67,7 @@ async function $do( ): Promise< [ Result< - operations.AddSectionResponse, + shared.SlashGetResponses200, | PlexAPIError | ResponseValidationError | ConnectionError @@ -214,16 +215,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.AddSectionResponse, + shared.SlashGetResponses200, | PlexAPIError | ResponseValidationError | ConnectionError @@ -233,12 +226,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.AddSectionResponse$inboundSchema, { - key: "slash-get-responses-200", - }), + M.json(200, shared.SlashGetResponses200$inboundSchema), M.fail([400, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryAddSubtitles.ts b/src/funcs/libraryAddSubtitles.ts index 75d9ef63..d27f38a5 100644 --- a/src/funcs/libraryAddSubtitles.ts +++ b/src/funcs/libraryAddSubtitles.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Add subtitles @@ -36,7 +37,7 @@ export function libraryAddSubtitles( options?: RequestOptions, ): APIPromise< Result< - operations.AddSubtitlesResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.AddSubtitlesResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -209,16 +210,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.AddSubtitlesResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -228,10 +221,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.AddSubtitlesResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryAnalyzeMetadata.ts b/src/funcs/libraryAnalyzeMetadata.ts index 5ae2b908..ac7b5213 100644 --- a/src/funcs/libraryAnalyzeMetadata.ts +++ b/src/funcs/libraryAnalyzeMetadata.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Analyze an item @@ -36,7 +37,7 @@ export function libraryAnalyzeMetadata( options?: RequestOptions, ): APIPromise< Result< - operations.AnalyzeMetadataResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.AnalyzeMetadataResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -204,16 +205,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.AnalyzeMetadataResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -223,10 +216,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.AnalyzeMetadataResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryAutocomplete.ts b/src/funcs/libraryAutocomplete.ts index d8e78eaa..979ba0f7 100644 --- a/src/funcs/libraryAutocomplete.ts +++ b/src/funcs/libraryAutocomplete.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get autocompletions for search @@ -209,11 +209,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -229,7 +225,7 @@ async function $do( >( M.json(200, operations.AutocompleteResponse$inboundSchema, { hdrs: true, - key: "MediaContainerWithMetadata", + key: "Result", }), M.fail([400, "4XX"]), M.fail("5XX"), diff --git a/src/funcs/libraryCancelRefresh.ts b/src/funcs/libraryCancelRefresh.ts index ad4f1807..93b2dcc9 100644 --- a/src/funcs/libraryCancelRefresh.ts +++ b/src/funcs/libraryCancelRefresh.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Cancel section refresh @@ -36,7 +37,7 @@ export function libraryCancelRefresh( options?: RequestOptions, ): APIPromise< Result< - operations.CancelRefreshResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.CancelRefreshResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -198,16 +199,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.CancelRefreshResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -217,10 +210,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.CancelRefreshResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryCleanBundles.ts b/src/funcs/libraryCleanBundles.ts index 82002cd8..16063d64 100644 --- a/src/funcs/libraryCleanBundles.ts +++ b/src/funcs/libraryCleanBundles.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; @@ -14,13 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Clean bundles @@ -33,7 +33,7 @@ export function libraryCleanBundles( options?: RequestOptions, ): APIPromise< Result< - operations.CleanBundlesResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -56,7 +56,7 @@ async function $do( ): Promise< [ Result< - operations.CleanBundlesResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -119,16 +119,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.CleanBundlesResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -138,10 +130,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.CleanBundlesResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryCollectionsAddCollectionItems.ts b/src/funcs/libraryCollectionsAddCollectionItems.ts index b4bc57f4..f6ba0706 100644 --- a/src/funcs/libraryCollectionsAddCollectionItems.ts +++ b/src/funcs/libraryCollectionsAddCollectionItems.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Add items to a collection @@ -36,7 +37,7 @@ export function libraryCollectionsAddCollectionItems( options?: RequestOptions, ): APIPromise< Result< - operations.AddCollectionItemsResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.AddCollectionItemsResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -205,16 +206,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.AddCollectionItemsResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -224,12 +217,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.AddCollectionItemsResponse$inboundSchema, { - key: "MediaContainerWithMetadata", - }), + M.json(200, shared.MediaContainerWithMetadata$inboundSchema), M.fail([404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryCollectionsDeleteCollectionItem.ts b/src/funcs/libraryCollectionsDeleteCollectionItem.ts index 78a8d4b2..50d06b10 100644 --- a/src/funcs/libraryCollectionsDeleteCollectionItem.ts +++ b/src/funcs/libraryCollectionsDeleteCollectionItem.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Delete an item from a collection @@ -36,7 +37,7 @@ export function libraryCollectionsDeleteCollectionItem( options?: RequestOptions, ): APIPromise< Result< - operations.DeleteCollectionItemResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.DeleteCollectionItemResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -205,16 +206,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.DeleteCollectionItemResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -224,12 +217,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.DeleteCollectionItemResponse$inboundSchema, { - key: "MediaContainerWithMetadata", - }), + M.json(200, shared.MediaContainerWithMetadata$inboundSchema), M.fail([400, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryCollectionsMoveCollectionItem.ts b/src/funcs/libraryCollectionsMoveCollectionItem.ts index 234cd853..4758c610 100644 --- a/src/funcs/libraryCollectionsMoveCollectionItem.ts +++ b/src/funcs/libraryCollectionsMoveCollectionItem.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Reorder an item in the collection @@ -36,7 +37,7 @@ export function libraryCollectionsMoveCollectionItem( options?: RequestOptions, ): APIPromise< Result< - operations.MoveCollectionItemResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.MoveCollectionItemResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -209,16 +210,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.MoveCollectionItemResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -228,12 +221,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.MoveCollectionItemResponse$inboundSchema, { - key: "MediaContainerWithMetadata", - }), + M.json(200, shared.MediaContainerWithMetadata$inboundSchema), M.fail([400, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryCreateMarker.ts b/src/funcs/libraryCreateMarker.ts index 751b3ba7..325c223b 100644 --- a/src/funcs/libraryCreateMarker.ts +++ b/src/funcs/libraryCreateMarker.ts @@ -21,13 +21,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Create a marker @@ -215,14 +215,6 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< operations.CreateMarkerResponse, | PlexAPIError @@ -234,12 +226,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.CreateMarkerResponse$inboundSchema, { - key: "object", - }), + M.json(200, operations.CreateMarkerResponse$inboundSchema), M.fail([400, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryDeleteCaches.ts b/src/funcs/libraryDeleteCaches.ts index 1a752a46..18de34d9 100644 --- a/src/funcs/libraryDeleteCaches.ts +++ b/src/funcs/libraryDeleteCaches.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; @@ -14,13 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Delete library caches @@ -33,7 +33,7 @@ export function libraryDeleteCaches( options?: RequestOptions, ): APIPromise< Result< - operations.DeleteCachesResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -56,7 +56,7 @@ async function $do( ): Promise< [ Result< - operations.DeleteCachesResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -119,16 +119,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.DeleteCachesResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -138,10 +130,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.DeleteCachesResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryDeleteCollection.ts b/src/funcs/libraryDeleteCollection.ts index 7faf8d3f..83a5db6c 100644 --- a/src/funcs/libraryDeleteCollection.ts +++ b/src/funcs/libraryDeleteCollection.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Delete a collection @@ -36,7 +37,7 @@ export function libraryDeleteCollection( options?: RequestOptions, ): APIPromise< Result< - operations.DeleteCollectionResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.DeleteCollectionResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -204,16 +205,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.DeleteCollectionResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -223,10 +216,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.DeleteCollectionResponse$inboundSchema), + M.nil(200, z.void()), M.fail([404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryDeleteIndexes.ts b/src/funcs/libraryDeleteIndexes.ts index c369b4a6..42f16865 100644 --- a/src/funcs/libraryDeleteIndexes.ts +++ b/src/funcs/libraryDeleteIndexes.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Delete section indexes @@ -36,7 +37,7 @@ export function libraryDeleteIndexes( options?: RequestOptions, ): APIPromise< Result< - operations.DeleteIndexesResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.DeleteIndexesResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -198,16 +199,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.DeleteIndexesResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -217,10 +210,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.DeleteIndexesResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryDeleteIntros.ts b/src/funcs/libraryDeleteIntros.ts index 2f0b9e9f..c8189db6 100644 --- a/src/funcs/libraryDeleteIntros.ts +++ b/src/funcs/libraryDeleteIntros.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Delete section intro markers @@ -36,7 +37,7 @@ export function libraryDeleteIntros( options?: RequestOptions, ): APIPromise< Result< - operations.DeleteIntrosResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.DeleteIntrosResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -198,16 +199,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.DeleteIntrosResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -217,10 +210,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.DeleteIntrosResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryDeleteLibrarySection.ts b/src/funcs/libraryDeleteLibrarySection.ts index 52e47cc2..6667f456 100644 --- a/src/funcs/libraryDeleteLibrarySection.ts +++ b/src/funcs/libraryDeleteLibrarySection.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Delete a library section @@ -36,7 +37,7 @@ export function libraryDeleteLibrarySection( options?: RequestOptions, ): APIPromise< Result< - operations.DeleteLibrarySectionResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.DeleteLibrarySectionResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -204,16 +205,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.DeleteLibrarySectionResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -223,10 +216,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.DeleteLibrarySectionResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryDeleteMarker.ts b/src/funcs/libraryDeleteMarker.ts index 7d35d1fc..8630b309 100644 --- a/src/funcs/libraryDeleteMarker.ts +++ b/src/funcs/libraryDeleteMarker.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Delete a marker @@ -36,7 +37,7 @@ export function libraryDeleteMarker( options?: RequestOptions, ): APIPromise< Result< - operations.DeleteMarkerResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.DeleteMarkerResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -204,16 +205,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.DeleteMarkerResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -223,10 +216,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.DeleteMarkerResponse$inboundSchema), + M.nil(200, z.void()), M.fail([400, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryDeleteMediaItem.ts b/src/funcs/libraryDeleteMediaItem.ts index 81c83e11..459549ec 100644 --- a/src/funcs/libraryDeleteMediaItem.ts +++ b/src/funcs/libraryDeleteMediaItem.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Delete a media item @@ -36,7 +37,7 @@ export function libraryDeleteMediaItem( options?: RequestOptions, ): APIPromise< Result< - operations.DeleteMediaItemResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.DeleteMediaItemResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -209,16 +210,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.DeleteMediaItemResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -228,10 +221,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.DeleteMediaItemResponse$inboundSchema), + M.nil(200, z.void()), M.fail([400, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryDeleteMetadataItem.ts b/src/funcs/libraryDeleteMetadataItem.ts index 8b9aa6ef..6f6666c5 100644 --- a/src/funcs/libraryDeleteMetadataItem.ts +++ b/src/funcs/libraryDeleteMetadataItem.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Delete a metadata item @@ -36,7 +37,7 @@ export function libraryDeleteMetadataItem( options?: RequestOptions, ): APIPromise< Result< - operations.DeleteMetadataItemResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.DeleteMetadataItemResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -203,16 +204,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.DeleteMetadataItemResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -222,10 +215,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.DeleteMetadataItemResponse$inboundSchema), + M.nil(200, z.void()), M.fail([400, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryDeleteStream.ts b/src/funcs/libraryDeleteStream.ts index bc8a29ee..4d96b7e4 100644 --- a/src/funcs/libraryDeleteStream.ts +++ b/src/funcs/libraryDeleteStream.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Delete a stream @@ -36,7 +37,7 @@ export function libraryDeleteStream( options?: RequestOptions, ): APIPromise< Result< - operations.DeleteStreamResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.DeleteStreamResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -202,16 +203,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.DeleteStreamResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -221,10 +214,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.DeleteStreamResponse$inboundSchema), + M.nil(200, z.void()), M.fail([403, "4XX"]), M.fail([500, "5XX"]), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryDetectAds.ts b/src/funcs/libraryDetectAds.ts index 01491e04..6c7a87aa 100644 --- a/src/funcs/libraryDetectAds.ts +++ b/src/funcs/libraryDetectAds.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Ad-detect an item @@ -36,7 +37,7 @@ export function libraryDetectAds( options?: RequestOptions, ): APIPromise< Result< - operations.DetectAdsResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.DetectAdsResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -198,16 +199,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.DetectAdsResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -217,10 +210,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.DetectAdsResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryDetectCredits.ts b/src/funcs/libraryDetectCredits.ts index 9a5cc73f..9945af8b 100644 --- a/src/funcs/libraryDetectCredits.ts +++ b/src/funcs/libraryDetectCredits.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Credit detect a metadata item @@ -36,7 +37,7 @@ export function libraryDetectCredits( options?: RequestOptions, ): APIPromise< Result< - operations.DetectCreditsResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.DetectCreditsResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -204,16 +205,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.DetectCreditsResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -223,10 +216,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.DetectCreditsResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryDetectIntros.ts b/src/funcs/libraryDetectIntros.ts index 896a1a8a..608f6ebc 100644 --- a/src/funcs/libraryDetectIntros.ts +++ b/src/funcs/libraryDetectIntros.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Intro detect an item @@ -36,7 +37,7 @@ export function libraryDetectIntros( options?: RequestOptions, ): APIPromise< Result< - operations.DetectIntrosResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.DetectIntrosResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -204,16 +205,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.DetectIntrosResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -223,10 +216,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.DetectIntrosResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryDetectVoiceActivity.ts b/src/funcs/libraryDetectVoiceActivity.ts index 9f76a6a5..4c45ae49 100644 --- a/src/funcs/libraryDetectVoiceActivity.ts +++ b/src/funcs/libraryDetectVoiceActivity.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Detect voice activity @@ -36,7 +37,7 @@ export function libraryDetectVoiceActivity( options?: RequestOptions, ): APIPromise< Result< - operations.DetectVoiceActivityResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.DetectVoiceActivityResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -205,16 +206,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.DetectVoiceActivityResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -224,10 +217,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.DetectVoiceActivityResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryEditMarker.ts b/src/funcs/libraryEditMarker.ts index 4b83de3e..27965ee7 100644 --- a/src/funcs/libraryEditMarker.ts +++ b/src/funcs/libraryEditMarker.ts @@ -21,13 +21,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Edit a marker @@ -41,7 +42,7 @@ export function libraryEditMarker( options?: RequestOptions, ): APIPromise< Result< - operations.EditMarkerResponse, + shared.PostResponses200, | PlexAPIError | ResponseValidationError | ConnectionError @@ -66,7 +67,7 @@ async function $do( ): Promise< [ Result< - operations.EditMarkerResponse, + shared.PostResponses200, | PlexAPIError | ResponseValidationError | ConnectionError @@ -221,16 +222,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.EditMarkerResponse, + shared.PostResponses200, | PlexAPIError | ResponseValidationError | ConnectionError @@ -240,12 +233,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.EditMarkerResponse$inboundSchema, { - key: "post-responses-200", - }), + M.json(200, shared.PostResponses200$inboundSchema), M.fail([400, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryEditMetadataItem.ts b/src/funcs/libraryEditMetadataItem.ts index f9c1264c..325e1acc 100644 --- a/src/funcs/libraryEditMetadataItem.ts +++ b/src/funcs/libraryEditMetadataItem.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Edit a metadata item @@ -36,7 +37,7 @@ export function libraryEditMetadataItem( options?: RequestOptions, ): APIPromise< Result< - operations.EditMetadataItemResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.EditMetadataItemResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -203,16 +204,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.EditMetadataItemResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -222,10 +215,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.EditMetadataItemResponse$inboundSchema), + M.nil(200, z.void()), M.fail([400, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryEditSection.ts b/src/funcs/libraryEditSection.ts index 88da71c5..134585a4 100644 --- a/src/funcs/libraryEditSection.ts +++ b/src/funcs/libraryEditSection.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeDeepObjectQuery, @@ -21,13 +22,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Edit a library section @@ -41,7 +42,7 @@ export function libraryEditSection( options?: RequestOptions, ): APIPromise< Result< - operations.EditSectionResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -66,7 +67,7 @@ async function $do( ): Promise< [ Result< - operations.EditSectionResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -218,16 +219,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.EditSectionResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -237,10 +230,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.EditSectionResponse$inboundSchema), + M.nil(200, z.void()), M.fail([400, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryEmptyTrash.ts b/src/funcs/libraryEmptyTrash.ts index 08dbbb2e..de5d0bee 100644 --- a/src/funcs/libraryEmptyTrash.ts +++ b/src/funcs/libraryEmptyTrash.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Empty section trash @@ -36,7 +37,7 @@ export function libraryEmptyTrash( options?: RequestOptions, ): APIPromise< Result< - operations.EmptyTrashResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.EmptyTrashResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -200,16 +201,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.EmptyTrashResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -219,10 +212,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.EmptyTrashResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryGenerateThumbs.ts b/src/funcs/libraryGenerateThumbs.ts index e2e11638..1e5e883a 100644 --- a/src/funcs/libraryGenerateThumbs.ts +++ b/src/funcs/libraryGenerateThumbs.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Generate thumbs of chapters for an item @@ -36,7 +37,7 @@ export function libraryGenerateThumbs( options?: RequestOptions, ): APIPromise< Result< - operations.GenerateThumbsResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.GenerateThumbsResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -203,16 +204,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.GenerateThumbsResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -222,10 +215,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.GenerateThumbsResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryGetAllItemLeaves.ts b/src/funcs/libraryGetAllItemLeaves.ts index 2ff4ab37..408095e4 100644 --- a/src/funcs/libraryGetAllItemLeaves.ts +++ b/src/funcs/libraryGetAllItemLeaves.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get the leaves of an item @@ -199,11 +199,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -219,7 +215,7 @@ async function $do( >( M.json(200, operations.GetAllItemLeavesResponse$inboundSchema, { hdrs: true, - key: "MediaContainerWithMetadata", + key: "Result", }), M.fail("4XX"), M.fail("5XX"), diff --git a/src/funcs/libraryGetAugmentationStatus.ts b/src/funcs/libraryGetAugmentationStatus.ts index 9aec45fa..21e882c9 100644 --- a/src/funcs/libraryGetAugmentationStatus.ts +++ b/src/funcs/libraryGetAugmentationStatus.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get augmentation status @@ -36,7 +37,7 @@ export function libraryGetAugmentationStatus( options?: RequestOptions, ): APIPromise< Result< - operations.GetAugmentationStatusResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.GetAugmentationStatusResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -206,16 +207,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.GetAugmentationStatusResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -225,10 +218,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(204, operations.GetAugmentationStatusResponse$inboundSchema), + M.nil(204, z.void()), M.fail([401, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryGetAvailableSorts.ts b/src/funcs/libraryGetAvailableSorts.ts index 60fd03b4..fc1eef2b 100644 --- a/src/funcs/libraryGetAvailableSorts.ts +++ b/src/funcs/libraryGetAvailableSorts.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get a section sorts @@ -198,14 +198,6 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< operations.GetAvailableSortsResponse, | PlexAPIError @@ -217,12 +209,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetAvailableSortsResponse$inboundSchema, { - key: "object", - }), + M.json(200, operations.GetAvailableSortsResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryGetChapterImage.ts b/src/funcs/libraryGetChapterImage.ts index 8180776d..fc2039c3 100644 --- a/src/funcs/libraryGetChapterImage.ts +++ b/src/funcs/libraryGetChapterImage.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get a chapter image @@ -36,7 +37,7 @@ export function libraryGetChapterImage( options?: RequestOptions, ): APIPromise< Result< - operations.GetChapterImageResponse, + ReadableStream, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.GetChapterImageResponse, + ReadableStream, | PlexAPIError | ResponseValidationError | ConnectionError @@ -204,16 +205,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.GetChapterImageResponse, + ReadableStream, | PlexAPIError | ResponseValidationError | ConnectionError @@ -223,13 +216,14 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.stream(200, operations.GetChapterImageResponse$inboundSchema, { - ctype: "image/jpeg", - key: "response-stream", - }), + M.stream( + 200, + z.custom>(x => x instanceof ReadableStream), + { ctype: "image/jpeg" }, + ), M.fail([404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryGetCollections.ts b/src/funcs/libraryGetCollections.ts index 07266fa1..28af65af 100644 --- a/src/funcs/libraryGetCollections.ts +++ b/src/funcs/libraryGetCollections.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get collections in a section @@ -206,11 +206,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -226,7 +222,7 @@ async function $do( >( M.json(200, operations.GetCollectionsResponse$inboundSchema, { hdrs: true, - key: "MediaContainerWithMetadata", + key: "Result", }), M.fail("4XX"), M.fail("5XX"), diff --git a/src/funcs/libraryGetCommon.ts b/src/funcs/libraryGetCommon.ts index a3fce9d2..9397fa7c 100644 --- a/src/funcs/libraryGetCommon.ts +++ b/src/funcs/libraryGetCommon.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get common fields for items @@ -206,11 +206,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -226,7 +222,7 @@ async function $do( >( M.json(200, operations.GetCommonResponse$inboundSchema, { hdrs: true, - key: "MediaContainerWithMetadata", + key: "Result", }), M.fail([400, 404, "4XX"]), M.fail("5XX"), diff --git a/src/funcs/libraryGetExtras.ts b/src/funcs/libraryGetExtras.ts index 12d7e311..51a1a614 100644 --- a/src/funcs/libraryGetExtras.ts +++ b/src/funcs/libraryGetExtras.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get an item's extras @@ -199,11 +199,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -219,7 +215,7 @@ async function $do( >( M.json(200, operations.GetExtrasResponse$inboundSchema, { hdrs: true, - key: "MediaContainerWithMetadata", + key: "Result", }), M.fail("4XX"), M.fail("5XX"), diff --git a/src/funcs/libraryGetFile.ts b/src/funcs/libraryGetFile.ts index d4fb6d95..afa79352 100644 --- a/src/funcs/libraryGetFile.ts +++ b/src/funcs/libraryGetFile.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; export enum GetFileAcceptEnum { audioMpeg3 = "audio/mpeg3", @@ -208,14 +208,6 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< operations.GetFileResponse, | PlexAPIError @@ -229,15 +221,13 @@ async function $do( >( M.stream(200, operations.GetFileResponse$inboundSchema, { ctype: "audio/mpeg3", - key: "200_audio/mpeg3_response-stream", }), M.stream(200, operations.GetFileResponse$inboundSchema, { ctype: "image/jpeg", - key: "200_image/jpeg_response-stream", }), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryGetFirstCharacters.ts b/src/funcs/libraryGetFirstCharacters.ts index 49d82991..8892eea9 100644 --- a/src/funcs/libraryGetFirstCharacters.ts +++ b/src/funcs/libraryGetFirstCharacters.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get list of first characters @@ -207,14 +207,6 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< operations.GetFirstCharactersResponse, | PlexAPIError @@ -226,12 +218,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetFirstCharactersResponse$inboundSchema, { - key: "object", - }), + M.json(200, operations.GetFirstCharactersResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryGetImageFromBif.ts b/src/funcs/libraryGetImageFromBif.ts index 89fb9be3..2d79e6af 100644 --- a/src/funcs/libraryGetImageFromBif.ts +++ b/src/funcs/libraryGetImageFromBif.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get an image from part BIF @@ -36,7 +37,7 @@ export function libraryGetImageFromBif( options?: RequestOptions, ): APIPromise< Result< - operations.GetImageFromBifResponse, + ReadableStream, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.GetImageFromBifResponse, + ReadableStream, | PlexAPIError | ResponseValidationError | ConnectionError @@ -208,16 +209,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.GetImageFromBifResponse, + ReadableStream, | PlexAPIError | ResponseValidationError | ConnectionError @@ -227,13 +220,14 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.stream(200, operations.GetImageFromBifResponse$inboundSchema, { - ctype: "image/jpeg", - key: "response-stream", - }), + M.stream( + 200, + z.custom>(x => x instanceof ReadableStream), + { ctype: "image/jpeg" }, + ), M.fail([404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryGetItemArtwork.ts b/src/funcs/libraryGetItemArtwork.ts index d9f4231a..1e7822f0 100644 --- a/src/funcs/libraryGetItemArtwork.ts +++ b/src/funcs/libraryGetItemArtwork.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; export enum GetItemArtworkAcceptEnum { audioMpeg3 = "audio/mpeg3", @@ -217,14 +217,6 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< operations.GetItemArtworkResponse, | PlexAPIError @@ -238,15 +230,13 @@ async function $do( >( M.stream(200, operations.GetItemArtworkResponse$inboundSchema, { ctype: "audio/mpeg3", - key: "200_audio/mpeg3_response-stream", }), M.stream(200, operations.GetItemArtworkResponse$inboundSchema, { ctype: "image/jpeg", - key: "200_image/jpeg_response-stream", }), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryGetItemTree.ts b/src/funcs/libraryGetItemTree.ts index 9deaccbb..0b0397d8 100644 --- a/src/funcs/libraryGetItemTree.ts +++ b/src/funcs/libraryGetItemTree.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get metadata items as a tree @@ -36,7 +37,7 @@ export function libraryGetItemTree( options?: RequestOptions, ): APIPromise< Result< - operations.GetItemTreeResponse, + shared.MediaContainerWithNestedMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.GetItemTreeResponse, + shared.MediaContainerWithNestedMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -198,16 +199,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.GetItemTreeResponse, + shared.MediaContainerWithNestedMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -217,12 +210,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetItemTreeResponse$inboundSchema, { - key: "MediaContainerWithNestedMetadata", - }), + M.json(200, shared.MediaContainerWithNestedMetadata$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryGetLibraryDetails.ts b/src/funcs/libraryGetLibraryDetails.ts index 88d234c3..95ee0510 100644 --- a/src/funcs/libraryGetLibraryDetails.ts +++ b/src/funcs/libraryGetLibraryDetails.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get a library section by id @@ -203,14 +203,6 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< operations.GetLibraryDetailsResponse, | PlexAPIError @@ -222,12 +214,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetLibraryDetailsResponse$inboundSchema, { - key: "object", - }), + M.json(200, operations.GetLibraryDetailsResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryGetLibraryItems.ts b/src/funcs/libraryGetLibraryItems.ts index 6420da06..7e09d333 100644 --- a/src/funcs/libraryGetLibraryItems.ts +++ b/src/funcs/libraryGetLibraryItems.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get all items in library @@ -197,11 +197,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -217,7 +213,7 @@ async function $do( >( M.json(200, operations.GetLibraryItemsResponse$inboundSchema, { hdrs: true, - key: "MediaContainerWithMetadata", + key: "Result", }), M.fail("4XX"), M.fail("5XX"), diff --git a/src/funcs/libraryGetLibraryMatches.ts b/src/funcs/libraryGetLibraryMatches.ts index 9ffa408f..8f691d07 100644 --- a/src/funcs/libraryGetLibraryMatches.ts +++ b/src/funcs/libraryGetLibraryMatches.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get library matches @@ -214,11 +214,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -234,7 +230,7 @@ async function $do( >( M.json(200, operations.GetLibraryMatchesResponse$inboundSchema, { hdrs: true, - key: "MediaContainerWithMetadata", + key: "Result", }), M.fail("4XX"), M.fail("5XX"), diff --git a/src/funcs/libraryGetMediaPart.ts b/src/funcs/libraryGetMediaPart.ts index 84c65368..86727ab6 100644 --- a/src/funcs/libraryGetMediaPart.ts +++ b/src/funcs/libraryGetMediaPart.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; +import * as types$ from "../types/primitives.js"; /** * Get a media part @@ -38,7 +39,7 @@ export function libraryGetMediaPart( options?: RequestOptions, ): APIPromise< Result< - operations.GetMediaPartResponse, + operations.GetMediaPartResponse | undefined, | PlexAPIError | ResponseValidationError | ConnectionError @@ -63,7 +64,7 @@ async function $do( ): Promise< [ Result< - operations.GetMediaPartResponse, + operations.GetMediaPartResponse | undefined, | PlexAPIError | ResponseValidationError | ConnectionError @@ -216,15 +217,11 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< - operations.GetMediaPartResponse, + operations.GetMediaPartResponse | undefined, | PlexAPIError | ResponseValidationError | ConnectionError @@ -234,7 +231,9 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.GetMediaPartResponse$inboundSchema, { hdrs: true }), + M.nil(200, types$.optional(operations.GetMediaPartResponse$inboundSchema), { + hdrs: true, + }), M.fail([403, 404, "4XX"]), M.fail([503, 509, "5XX"]), )(response, req, { extraFields: responseFields }); diff --git a/src/funcs/libraryGetPartIndex.ts b/src/funcs/libraryGetPartIndex.ts index d87a1559..6835146f 100644 --- a/src/funcs/libraryGetPartIndex.ts +++ b/src/funcs/libraryGetPartIndex.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get BIF index for a part @@ -36,7 +37,7 @@ export function libraryGetPartIndex( options?: RequestOptions, ): APIPromise< Result< - operations.GetPartIndexResponse, + ReadableStream, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.GetPartIndexResponse, + ReadableStream, | PlexAPIError | ResponseValidationError | ConnectionError @@ -209,16 +210,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.GetPartIndexResponse, + ReadableStream, | PlexAPIError | ResponseValidationError | ConnectionError @@ -228,12 +221,13 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.stream(200, operations.GetPartIndexResponse$inboundSchema, { - key: "response-stream", - }), + M.stream( + 200, + z.custom>(x => x instanceof ReadableStream), + ), M.fail([404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryGetPerson.ts b/src/funcs/libraryGetPerson.ts index 5eda7c56..3cfc0f8b 100644 --- a/src/funcs/libraryGetPerson.ts +++ b/src/funcs/libraryGetPerson.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get person details @@ -198,14 +198,6 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< operations.GetPersonResponse, | PlexAPIError @@ -217,10 +209,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetPersonResponse$inboundSchema, { key: "object" }), + M.json(200, operations.GetPersonResponse$inboundSchema), M.fail([404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryGetRandomArtwork.ts b/src/funcs/libraryGetRandomArtwork.ts index a5096174..d09798f7 100644 --- a/src/funcs/libraryGetRandomArtwork.ts +++ b/src/funcs/libraryGetRandomArtwork.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get random artwork @@ -38,7 +39,7 @@ export function libraryGetRandomArtwork( options?: RequestOptions, ): APIPromise< Result< - operations.GetRandomArtworkResponse, + shared.MediaContainerWithArtwork, | PlexAPIError | ResponseValidationError | ConnectionError @@ -63,7 +64,7 @@ async function $do( ): Promise< [ Result< - operations.GetRandomArtworkResponse, + shared.MediaContainerWithArtwork, | PlexAPIError | ResponseValidationError | ConnectionError @@ -198,16 +199,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.GetRandomArtworkResponse, + shared.MediaContainerWithArtwork, | PlexAPIError | ResponseValidationError | ConnectionError @@ -217,12 +210,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetRandomArtworkResponse$inboundSchema, { - key: "MediaContainerWithArtwork", - }), + M.json(200, shared.MediaContainerWithArtwork$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryGetRelatedItems.ts b/src/funcs/libraryGetRelatedItems.ts index 1b7d44f1..34c6d643 100644 --- a/src/funcs/libraryGetRelatedItems.ts +++ b/src/funcs/libraryGetRelatedItems.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get related items @@ -198,14 +198,6 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< operations.GetRelatedItemsResponse, | PlexAPIError @@ -217,12 +209,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetRelatedItemsResponse$inboundSchema, { - key: "object", - }), + M.json(200, operations.GetRelatedItemsResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryGetSectionFilters.ts b/src/funcs/libraryGetSectionFilters.ts index a2c4afb9..4b333d19 100644 --- a/src/funcs/libraryGetSectionFilters.ts +++ b/src/funcs/libraryGetSectionFilters.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get section filters @@ -198,14 +198,6 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< operations.GetSectionFiltersResponse, | PlexAPIError @@ -217,12 +209,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetSectionFiltersResponse$inboundSchema, { - key: "object", - }), + M.json(200, operations.GetSectionFiltersResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryGetSectionImage.ts b/src/funcs/libraryGetSectionImage.ts index 67a847f6..67bd8f44 100644 --- a/src/funcs/libraryGetSectionImage.ts +++ b/src/funcs/libraryGetSectionImage.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get a section composite image @@ -36,7 +37,7 @@ export function libraryGetSectionImage( options?: RequestOptions, ): APIPromise< Result< - operations.GetSectionImageResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.GetSectionImageResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -210,16 +211,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.GetSectionImageResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -229,10 +222,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.GetSectionImageResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryGetSectionPreferences.ts b/src/funcs/libraryGetSectionPreferences.ts index b76ad2b0..d3cf07b1 100644 --- a/src/funcs/libraryGetSectionPreferences.ts +++ b/src/funcs/libraryGetSectionPreferences.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get section prefs @@ -36,7 +37,7 @@ export function libraryGetSectionPreferences( options?: RequestOptions, ): APIPromise< Result< - operations.GetSectionPreferencesResponse, + shared.MediaContainerWithSettings, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.GetSectionPreferencesResponse, + shared.MediaContainerWithSettings, | PlexAPIError | ResponseValidationError | ConnectionError @@ -204,16 +205,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.GetSectionPreferencesResponse, + shared.MediaContainerWithSettings, | PlexAPIError | ResponseValidationError | ConnectionError @@ -223,12 +216,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetSectionPreferencesResponse$inboundSchema, { - key: "MediaContainerWithSettings", - }), + M.json(200, shared.MediaContainerWithSettings$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryGetSections.ts b/src/funcs/libraryGetSections.ts index d995c12e..dfd82be2 100644 --- a/src/funcs/libraryGetSections.ts +++ b/src/funcs/libraryGetSections.ts @@ -14,13 +14,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get library sections (main Media Provider Only) @@ -121,11 +121,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -141,7 +137,7 @@ async function $do( >( M.json(200, operations.GetSectionsResponse$inboundSchema, { hdrs: true, - key: "object", + key: "Result", }), M.fail("4XX"), M.fail("5XX"), diff --git a/src/funcs/libraryGetSectionsPrefs.ts b/src/funcs/libraryGetSectionsPrefs.ts index e29b8b7f..3d3b466d 100644 --- a/src/funcs/libraryGetSectionsPrefs.ts +++ b/src/funcs/libraryGetSectionsPrefs.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get section prefs @@ -36,7 +37,7 @@ export function libraryGetSectionsPrefs( options?: RequestOptions, ): APIPromise< Result< - operations.GetSectionsPrefsResponse, + shared.LibrarySections, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.GetSectionsPrefsResponse, + shared.LibrarySections, | PlexAPIError | ResponseValidationError | ConnectionError @@ -197,16 +198,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.GetSectionsPrefsResponse, + shared.LibrarySections, | PlexAPIError | ResponseValidationError | ConnectionError @@ -216,12 +209,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetSectionsPrefsResponse$inboundSchema, { - key: "LibrarySections", - }), + M.json(200, shared.LibrarySections$inboundSchema), M.fail([400, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryGetStream.ts b/src/funcs/libraryGetStream.ts index 0cf72976..c12a8dfe 100644 --- a/src/funcs/libraryGetStream.ts +++ b/src/funcs/libraryGetStream.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get a stream @@ -36,7 +37,7 @@ export function libraryGetStream( options?: RequestOptions, ): APIPromise< Result< - operations.GetStreamResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.GetStreamResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -209,16 +210,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.GetStreamResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -228,10 +221,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.GetStreamResponse$inboundSchema), + M.nil(200, z.void()), M.fail([403, 404, "4XX"]), M.fail([501, "5XX"]), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryGetStreamLevels.ts b/src/funcs/libraryGetStreamLevels.ts index eafe34e1..05547673 100644 --- a/src/funcs/libraryGetStreamLevels.ts +++ b/src/funcs/libraryGetStreamLevels.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get loudness about a stream in json @@ -203,14 +203,6 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< operations.GetStreamLevelsResponse, | PlexAPIError @@ -222,12 +214,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetStreamLevelsResponse$inboundSchema, { - key: "object", - }), + M.json(200, operations.GetStreamLevelsResponse$inboundSchema), M.fail([403, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryGetStreamLoudness.ts b/src/funcs/libraryGetStreamLoudness.ts index d8d528d0..f4279016 100644 --- a/src/funcs/libraryGetStreamLoudness.ts +++ b/src/funcs/libraryGetStreamLoudness.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; +import * as types$ from "../types/primitives.js"; /** * Get loudness about a stream @@ -36,7 +37,7 @@ export function libraryGetStreamLoudness( options?: RequestOptions, ): APIPromise< Result< - operations.GetStreamLoudnessResponse, + string, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.GetStreamLoudnessResponse, + string, | PlexAPIError | ResponseValidationError | ConnectionError @@ -203,16 +204,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.GetStreamLoudnessResponse, + string, | PlexAPIError | ResponseValidationError | ConnectionError @@ -222,12 +215,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.text(200, operations.GetStreamLoudnessResponse$inboundSchema, { - key: "res", - }), + M.text(200, types$.string()), M.fail([403, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryGetTags.ts b/src/funcs/libraryGetTags.ts index 885a8c5b..810f8481 100644 --- a/src/funcs/libraryGetTags.ts +++ b/src/funcs/libraryGetTags.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get all library tags of a type @@ -196,14 +196,6 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< operations.GetTagsResponse, | PlexAPIError @@ -215,10 +207,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetTagsResponse$inboundSchema, { key: "object" }), + M.json(200, operations.GetTagsResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryIngestTransientItem.ts b/src/funcs/libraryIngestTransientItem.ts index 4c15aacb..88bc3063 100644 --- a/src/funcs/libraryIngestTransientItem.ts +++ b/src/funcs/libraryIngestTransientItem.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Ingest a transient item @@ -202,11 +202,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -222,7 +218,7 @@ async function $do( >( M.json(200, operations.IngestTransientItemResponse$inboundSchema, { hdrs: true, - key: "MediaContainerWithMetadata", + key: "Result", }), M.fail("4XX"), M.fail("5XX"), diff --git a/src/funcs/libraryListMatches.ts b/src/funcs/libraryListMatches.ts index 7498074f..213f4b56 100644 --- a/src/funcs/libraryListMatches.ts +++ b/src/funcs/libraryListMatches.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get metadata matches for an item @@ -36,7 +37,7 @@ export function libraryListMatches( options?: RequestOptions, ): APIPromise< Result< - operations.ListMatchesResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.ListMatchesResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -208,16 +209,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.ListMatchesResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -227,12 +220,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.ListMatchesResponse$inboundSchema, { - key: "MediaContainerWithMetadata", - }), + M.json(200, shared.MediaContainerWithMetadata$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryListPersonMedia.ts b/src/funcs/libraryListPersonMedia.ts index 30a8e3c0..650b4708 100644 --- a/src/funcs/libraryListPersonMedia.ts +++ b/src/funcs/libraryListPersonMedia.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get media for a person @@ -36,7 +37,7 @@ export function libraryListPersonMedia( options?: RequestOptions, ): APIPromise< Result< - operations.ListPersonMediaResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.ListPersonMediaResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -198,16 +199,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.ListPersonMediaResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -217,12 +210,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.ListPersonMediaResponse$inboundSchema, { - key: "MediaContainerWithMetadata", - }), + M.json(200, shared.MediaContainerWithMetadata$inboundSchema), M.fail([404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryListSimilar.ts b/src/funcs/libraryListSimilar.ts index 48a7361d..7e41a2b0 100644 --- a/src/funcs/libraryListSimilar.ts +++ b/src/funcs/libraryListSimilar.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get similar items @@ -36,7 +37,7 @@ export function libraryListSimilar( options?: RequestOptions, ): APIPromise< Result< - operations.ListSimilarResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.ListSimilarResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -203,16 +204,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.ListSimilarResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -222,12 +215,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.ListSimilarResponse$inboundSchema, { - key: "MediaContainerWithMetadata", - }), + M.json(200, shared.MediaContainerWithMetadata$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryListSonicallySimilar.ts b/src/funcs/libraryListSonicallySimilar.ts index ec18aca2..12e5b02e 100644 --- a/src/funcs/libraryListSonicallySimilar.ts +++ b/src/funcs/libraryListSonicallySimilar.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get nearest tracks to metadata item @@ -36,7 +37,7 @@ export function libraryListSonicallySimilar( options?: RequestOptions, ): APIPromise< Result< - operations.ListSonicallySimilarResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.ListSonicallySimilarResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -207,16 +208,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.ListSonicallySimilarResponse, + shared.MediaContainerWithMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -226,12 +219,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.ListSonicallySimilarResponse$inboundSchema, { - key: "MediaContainerWithMetadata", - }), + M.json(200, shared.MediaContainerWithMetadata$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryListTopUsers.ts b/src/funcs/libraryListTopUsers.ts index 4f4f5d0f..6852cbc8 100644 --- a/src/funcs/libraryListTopUsers.ts +++ b/src/funcs/libraryListTopUsers.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get metadata top users @@ -198,14 +198,6 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< operations.ListTopUsersResponse, | PlexAPIError @@ -217,12 +209,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.ListTopUsersResponse$inboundSchema, { - key: "object", - }), + M.json(200, operations.ListTopUsersResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryMatchItem.ts b/src/funcs/libraryMatchItem.ts index 02f51453..c2d40fc4 100644 --- a/src/funcs/libraryMatchItem.ts +++ b/src/funcs/libraryMatchItem.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Match a metadata item @@ -36,7 +37,7 @@ export function libraryMatchItem( options?: RequestOptions, ): APIPromise< Result< - operations.MatchItemResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.MatchItemResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -205,16 +206,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.MatchItemResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -224,10 +217,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.MatchItemResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryMergeItems.ts b/src/funcs/libraryMergeItems.ts index d5731b0d..dbdc1d89 100644 --- a/src/funcs/libraryMergeItems.ts +++ b/src/funcs/libraryMergeItems.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Merge a metadata item @@ -36,7 +37,7 @@ export function libraryMergeItems( options?: RequestOptions, ): APIPromise< Result< - operations.MergeItemsResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.MergeItemsResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -203,16 +204,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.MergeItemsResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -222,10 +215,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.MergeItemsResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryOptimizeDatabase.ts b/src/funcs/libraryOptimizeDatabase.ts index 0b1ab05e..5b7f0889 100644 --- a/src/funcs/libraryOptimizeDatabase.ts +++ b/src/funcs/libraryOptimizeDatabase.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Optimize the Database @@ -36,7 +37,7 @@ export function libraryOptimizeDatabase( options?: RequestOptions, ): APIPromise< Result< - operations.OptimizeDatabaseResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.OptimizeDatabaseResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -196,16 +197,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.OptimizeDatabaseResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -215,10 +208,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.OptimizeDatabaseResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryPlaylistsAddPlaylistItems.ts b/src/funcs/libraryPlaylistsAddPlaylistItems.ts index af8cec62..d63243da 100644 --- a/src/funcs/libraryPlaylistsAddPlaylistItems.ts +++ b/src/funcs/libraryPlaylistsAddPlaylistItems.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Adding to a Playlist @@ -36,7 +37,7 @@ export function libraryPlaylistsAddPlaylistItems( options?: RequestOptions, ): APIPromise< Result< - operations.AddPlaylistItemsResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.AddPlaylistItemsResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -204,16 +205,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.AddPlaylistItemsResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -223,12 +216,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.AddPlaylistItemsResponse$inboundSchema, { - key: "MediaContainerWithPlaylistMetadata", - }), + M.json(200, shared.MediaContainerWithPlaylistMetadata$inboundSchema), M.fail([400, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryPlaylistsClearPlaylistItems.ts b/src/funcs/libraryPlaylistsClearPlaylistItems.ts index 944ca34c..26840246 100644 --- a/src/funcs/libraryPlaylistsClearPlaylistItems.ts +++ b/src/funcs/libraryPlaylistsClearPlaylistItems.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Clearing a playlist @@ -36,7 +37,7 @@ export function libraryPlaylistsClearPlaylistItems( options?: RequestOptions, ): APIPromise< Result< - operations.ClearPlaylistItemsResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.ClearPlaylistItemsResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -198,16 +199,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.ClearPlaylistItemsResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -217,12 +210,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.ClearPlaylistItemsResponse$inboundSchema, { - key: "MediaContainerWithPlaylistMetadata", - }), + M.json(200, shared.MediaContainerWithPlaylistMetadata$inboundSchema), M.fail([400, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryPlaylistsCreatePlaylist.ts b/src/funcs/libraryPlaylistsCreatePlaylist.ts index ba4f3de0..7be6444d 100644 --- a/src/funcs/libraryPlaylistsCreatePlaylist.ts +++ b/src/funcs/libraryPlaylistsCreatePlaylist.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Create a Playlist @@ -36,7 +37,7 @@ export function libraryPlaylistsCreatePlaylist( options?: RequestOptions, ): APIPromise< Result< - operations.CreatePlaylistResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.CreatePlaylistResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -197,16 +198,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.CreatePlaylistResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -216,12 +209,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.CreatePlaylistResponse$inboundSchema, { - key: "MediaContainerWithPlaylistMetadata", - }), + M.json(200, shared.MediaContainerWithPlaylistMetadata$inboundSchema), M.fail([400, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryPlaylistsDeletePlaylist.ts b/src/funcs/libraryPlaylistsDeletePlaylist.ts index 246ae449..02505866 100644 --- a/src/funcs/libraryPlaylistsDeletePlaylist.ts +++ b/src/funcs/libraryPlaylistsDeletePlaylist.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Delete a Playlist @@ -36,7 +37,7 @@ export function libraryPlaylistsDeletePlaylist( options?: RequestOptions, ): APIPromise< Result< - operations.DeletePlaylistResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.DeletePlaylistResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -198,16 +199,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.DeletePlaylistResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -217,10 +210,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(204, operations.DeletePlaylistResponse$inboundSchema), + M.nil(204, z.void()), M.fail([404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryPlaylistsDeletePlaylistItem.ts b/src/funcs/libraryPlaylistsDeletePlaylistItem.ts index 735f4a39..e9bf4995 100644 --- a/src/funcs/libraryPlaylistsDeletePlaylistItem.ts +++ b/src/funcs/libraryPlaylistsDeletePlaylistItem.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Delete a Generator @@ -36,7 +37,7 @@ export function libraryPlaylistsDeletePlaylistItem( options?: RequestOptions, ): APIPromise< Result< - operations.DeletePlaylistItemResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.DeletePlaylistItemResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -204,16 +205,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.DeletePlaylistItemResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -223,12 +216,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.DeletePlaylistItemResponse$inboundSchema, { - key: "MediaContainerWithPlaylistMetadata", - }), + M.json(200, shared.MediaContainerWithPlaylistMetadata$inboundSchema), M.fail([400, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryPlaylistsGetPlaylistGenerator.ts b/src/funcs/libraryPlaylistsGetPlaylistGenerator.ts index c841ecf5..cee20efb 100644 --- a/src/funcs/libraryPlaylistsGetPlaylistGenerator.ts +++ b/src/funcs/libraryPlaylistsGetPlaylistGenerator.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get a playlist generator @@ -205,14 +205,6 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< operations.GetPlaylistGeneratorResponse, | PlexAPIError @@ -224,12 +216,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetPlaylistGeneratorResponse$inboundSchema, { - key: "object", - }), + M.json(200, operations.GetPlaylistGeneratorResponse$inboundSchema), M.fail([400, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryPlaylistsGetPlaylistGeneratorItems.ts b/src/funcs/libraryPlaylistsGetPlaylistGeneratorItems.ts index 6895bf51..a7149e87 100644 --- a/src/funcs/libraryPlaylistsGetPlaylistGeneratorItems.ts +++ b/src/funcs/libraryPlaylistsGetPlaylistGeneratorItems.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get a playlist generator's items @@ -205,14 +205,6 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< operations.GetPlaylistGeneratorItemsResponse, | PlexAPIError @@ -224,12 +216,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetPlaylistGeneratorItemsResponse$inboundSchema, { - key: "object", - }), + M.json(200, operations.GetPlaylistGeneratorItemsResponse$inboundSchema), M.fail([400, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryPlaylistsGetPlaylistGenerators.ts b/src/funcs/libraryPlaylistsGetPlaylistGenerators.ts index 2ff109e9..257f3e7e 100644 --- a/src/funcs/libraryPlaylistsGetPlaylistGenerators.ts +++ b/src/funcs/libraryPlaylistsGetPlaylistGenerators.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get a playlist's generators @@ -199,14 +199,6 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< operations.GetPlaylistGeneratorsResponse, | PlexAPIError @@ -218,12 +210,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetPlaylistGeneratorsResponse$inboundSchema, { - key: "object", - }), + M.json(200, operations.GetPlaylistGeneratorsResponse$inboundSchema), M.fail([404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryPlaylistsModifyPlaylistGenerator.ts b/src/funcs/libraryPlaylistsModifyPlaylistGenerator.ts index b480993b..ec210326 100644 --- a/src/funcs/libraryPlaylistsModifyPlaylistGenerator.ts +++ b/src/funcs/libraryPlaylistsModifyPlaylistGenerator.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Modify a Generator @@ -36,7 +37,7 @@ export function libraryPlaylistsModifyPlaylistGenerator( options?: RequestOptions, ): APIPromise< Result< - operations.ModifyPlaylistGeneratorResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.ModifyPlaylistGeneratorResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -210,16 +211,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.ModifyPlaylistGeneratorResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -229,12 +222,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.ModifyPlaylistGeneratorResponse$inboundSchema, { - key: "MediaContainerWithPlaylistMetadata", - }), + M.json(200, shared.MediaContainerWithPlaylistMetadata$inboundSchema), M.fail([400, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryPlaylistsMovePlaylistItem.ts b/src/funcs/libraryPlaylistsMovePlaylistItem.ts index c4f241b7..4ec7d34e 100644 --- a/src/funcs/libraryPlaylistsMovePlaylistItem.ts +++ b/src/funcs/libraryPlaylistsMovePlaylistItem.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Moving items in a playlist @@ -36,7 +37,7 @@ export function libraryPlaylistsMovePlaylistItem( options?: RequestOptions, ): APIPromise< Result< - operations.MovePlaylistItemResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.MovePlaylistItemResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -209,16 +210,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.MovePlaylistItemResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -228,12 +221,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.MovePlaylistItemResponse$inboundSchema, { - key: "MediaContainerWithPlaylistMetadata", - }), + M.json(200, shared.MediaContainerWithPlaylistMetadata$inboundSchema), M.fail([400, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryPlaylistsRefreshPlaylist.ts b/src/funcs/libraryPlaylistsRefreshPlaylist.ts index 3a134f02..9d5043e5 100644 --- a/src/funcs/libraryPlaylistsRefreshPlaylist.ts +++ b/src/funcs/libraryPlaylistsRefreshPlaylist.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Reprocess a generator @@ -36,7 +37,7 @@ export function libraryPlaylistsRefreshPlaylist( options?: RequestOptions, ): APIPromise< Result< - operations.RefreshPlaylistResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.RefreshPlaylistResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -212,16 +213,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.RefreshPlaylistResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -231,10 +224,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.RefreshPlaylistResponse$inboundSchema), + M.nil(200, z.void()), M.fail([400, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryPlaylistsUpdatePlaylist.ts b/src/funcs/libraryPlaylistsUpdatePlaylist.ts index 04526463..9e4e96f6 100644 --- a/src/funcs/libraryPlaylistsUpdatePlaylist.ts +++ b/src/funcs/libraryPlaylistsUpdatePlaylist.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Editing a Playlist @@ -36,7 +37,7 @@ export function libraryPlaylistsUpdatePlaylist( options?: RequestOptions, ): APIPromise< Result< - operations.UpdatePlaylistResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.UpdatePlaylistResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -198,16 +199,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.UpdatePlaylistResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -217,10 +210,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(204, operations.UpdatePlaylistResponse$inboundSchema), + M.nil(204, z.void()), M.fail([404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryPlaylistsUploadPlaylist.ts b/src/funcs/libraryPlaylistsUploadPlaylist.ts index 209814bb..8cacd583 100644 --- a/src/funcs/libraryPlaylistsUploadPlaylist.ts +++ b/src/funcs/libraryPlaylistsUploadPlaylist.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Upload @@ -36,7 +37,7 @@ export function libraryPlaylistsUploadPlaylist( options?: RequestOptions, ): APIPromise< Result< - operations.UploadPlaylistResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.UploadPlaylistResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -197,16 +198,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.UploadPlaylistResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -216,10 +209,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.UploadPlaylistResponse$inboundSchema), + M.nil(200, z.void()), M.fail([403, "4XX"]), M.fail([500, "5XX"]), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryRefreshItemsMetadata.ts b/src/funcs/libraryRefreshItemsMetadata.ts index 9f1d14d8..2426239e 100644 --- a/src/funcs/libraryRefreshItemsMetadata.ts +++ b/src/funcs/libraryRefreshItemsMetadata.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Refresh a metadata item @@ -36,7 +37,7 @@ export function libraryRefreshItemsMetadata( options?: RequestOptions, ): APIPromise< Result< - operations.RefreshItemsMetadataResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.RefreshItemsMetadataResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -205,16 +206,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.RefreshItemsMetadataResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -224,10 +217,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.RefreshItemsMetadataResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryRefreshSection.ts b/src/funcs/libraryRefreshSection.ts index d180cb79..c70906a8 100644 --- a/src/funcs/libraryRefreshSection.ts +++ b/src/funcs/libraryRefreshSection.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Refresh section @@ -36,7 +37,7 @@ export function libraryRefreshSection( options?: RequestOptions, ): APIPromise< Result< - operations.RefreshSectionResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.RefreshSectionResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -204,16 +205,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.RefreshSectionResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -223,10 +216,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.RefreshSectionResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryRefreshSectionsMetadata.ts b/src/funcs/libraryRefreshSectionsMetadata.ts index 25956e99..0f8acfcb 100644 --- a/src/funcs/libraryRefreshSectionsMetadata.ts +++ b/src/funcs/libraryRefreshSectionsMetadata.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Refresh all sections @@ -36,7 +37,7 @@ export function libraryRefreshSectionsMetadata( options?: RequestOptions, ): APIPromise< Result< - operations.RefreshSectionsMetadataResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.RefreshSectionsMetadataResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -197,16 +198,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.RefreshSectionsMetadataResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -216,10 +209,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.RefreshSectionsMetadataResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail([503, "5XX"]), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/librarySetItemArtwork.ts b/src/funcs/librarySetItemArtwork.ts index 8e7d98b5..af2f1c34 100644 --- a/src/funcs/librarySetItemArtwork.ts +++ b/src/funcs/librarySetItemArtwork.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Set an item's artwork, theme, etc @@ -37,7 +38,7 @@ export function librarySetItemArtwork( options?: RequestOptions, ): APIPromise< Result< - operations.SetItemArtworkResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -62,7 +63,7 @@ async function $do( ): Promise< [ Result< - operations.SetItemArtworkResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -208,16 +209,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.SetItemArtworkResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -227,10 +220,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.SetItemArtworkResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/librarySetItemPreferences.ts b/src/funcs/librarySetItemPreferences.ts index 9620b17e..bf980b56 100644 --- a/src/funcs/librarySetItemPreferences.ts +++ b/src/funcs/librarySetItemPreferences.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Set metadata preferences @@ -36,7 +37,7 @@ export function librarySetItemPreferences( options?: RequestOptions, ): APIPromise< Result< - operations.SetItemPreferencesResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.SetItemPreferencesResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -203,16 +204,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.SetItemPreferencesResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -222,10 +215,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.SetItemPreferencesResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/librarySetSectionPreferences.ts b/src/funcs/librarySetSectionPreferences.ts index 5aa05a71..e85b5ce2 100644 --- a/src/funcs/librarySetSectionPreferences.ts +++ b/src/funcs/librarySetSectionPreferences.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Set section prefs @@ -36,7 +37,7 @@ export function librarySetSectionPreferences( options?: RequestOptions, ): APIPromise< Result< - operations.SetSectionPreferencesResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.SetSectionPreferencesResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -204,16 +205,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.SetSectionPreferencesResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -223,10 +216,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.SetSectionPreferencesResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/librarySetStreamOffset.ts b/src/funcs/librarySetStreamOffset.ts index da0f7d84..c4854bbf 100644 --- a/src/funcs/librarySetStreamOffset.ts +++ b/src/funcs/librarySetStreamOffset.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Set a stream offset @@ -36,7 +37,7 @@ export function librarySetStreamOffset( options?: RequestOptions, ): APIPromise< Result< - operations.SetStreamOffsetResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.SetStreamOffsetResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -207,16 +208,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.SetStreamOffsetResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -226,10 +219,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.SetStreamOffsetResponse$inboundSchema), + M.nil(200, z.void()), M.fail([400, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/librarySetStreamSelection.ts b/src/funcs/librarySetStreamSelection.ts index 7750daba..57ec9a80 100644 --- a/src/funcs/librarySetStreamSelection.ts +++ b/src/funcs/librarySetStreamSelection.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Set stream selection @@ -36,7 +37,7 @@ export function librarySetStreamSelection( options?: RequestOptions, ): APIPromise< Result< - operations.SetStreamSelectionResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.SetStreamSelectionResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -205,16 +206,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.SetStreamSelectionResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -224,10 +217,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.SetStreamSelectionResponse$inboundSchema), + M.nil(200, z.void()), M.fail([400, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/librarySplitItem.ts b/src/funcs/librarySplitItem.ts index 0e0138b7..9edab910 100644 --- a/src/funcs/librarySplitItem.ts +++ b/src/funcs/librarySplitItem.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Split a metadata item @@ -36,7 +37,7 @@ export function librarySplitItem( options?: RequestOptions, ): APIPromise< Result< - operations.SplitItemResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.SplitItemResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -198,16 +199,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.SplitItemResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -217,10 +210,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.SplitItemResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryStartAnalysis.ts b/src/funcs/libraryStartAnalysis.ts index 478ddef0..b70b10ed 100644 --- a/src/funcs/libraryStartAnalysis.ts +++ b/src/funcs/libraryStartAnalysis.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Analyze a section @@ -36,7 +37,7 @@ export function libraryStartAnalysis( options?: RequestOptions, ): APIPromise< Result< - operations.StartAnalysisResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.StartAnalysisResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -198,16 +199,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.StartAnalysisResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -217,10 +210,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.StartAnalysisResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryStartBifGeneration.ts b/src/funcs/libraryStartBifGeneration.ts index 2853e928..43cb85d8 100644 --- a/src/funcs/libraryStartBifGeneration.ts +++ b/src/funcs/libraryStartBifGeneration.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Start BIF generation of an item @@ -36,7 +37,7 @@ export function libraryStartBifGeneration( options?: RequestOptions, ): APIPromise< Result< - operations.StartBifGenerationResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.StartBifGenerationResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -203,16 +204,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.StartBifGenerationResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -222,10 +215,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.StartBifGenerationResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryStopAllRefreshes.ts b/src/funcs/libraryStopAllRefreshes.ts index 7c843fac..74891759 100644 --- a/src/funcs/libraryStopAllRefreshes.ts +++ b/src/funcs/libraryStopAllRefreshes.ts @@ -14,13 +14,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Stop refresh @@ -33,7 +33,7 @@ export function libraryStopAllRefreshes( options?: RequestOptions, ): APIPromise< Result< - operations.StopAllRefreshesResponse, + shared.LibrarySections, | PlexAPIError | ResponseValidationError | ConnectionError @@ -56,7 +56,7 @@ async function $do( ): Promise< [ Result< - operations.StopAllRefreshesResponse, + shared.LibrarySections, | PlexAPIError | ResponseValidationError | ConnectionError @@ -119,16 +119,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.StopAllRefreshesResponse, + shared.LibrarySections, | PlexAPIError | ResponseValidationError | ConnectionError @@ -138,12 +130,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.StopAllRefreshesResponse$inboundSchema, { - key: "LibrarySections", - }), + M.json(200, shared.LibrarySections$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryUnmatch.ts b/src/funcs/libraryUnmatch.ts index 6b31c2ad..777feb2d 100644 --- a/src/funcs/libraryUnmatch.ts +++ b/src/funcs/libraryUnmatch.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Unmatch a metadata item @@ -36,7 +37,7 @@ export function libraryUnmatch( options?: RequestOptions, ): APIPromise< Result< - operations.UnmatchResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.UnmatchResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -198,16 +199,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.UnmatchResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -217,10 +210,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.UnmatchResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryUpdateItemArtwork.ts b/src/funcs/libraryUpdateItemArtwork.ts index eb71a683..489b2c35 100644 --- a/src/funcs/libraryUpdateItemArtwork.ts +++ b/src/funcs/libraryUpdateItemArtwork.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Set an item's artwork, theme, etc @@ -37,7 +38,7 @@ export function libraryUpdateItemArtwork( options?: RequestOptions, ): APIPromise< Result< - operations.UpdateItemArtworkResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -62,7 +63,7 @@ async function $do( ): Promise< [ Result< - operations.UpdateItemArtworkResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -208,16 +209,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.UpdateItemArtworkResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -227,10 +220,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.UpdateItemArtworkResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/libraryUpdateItems.ts b/src/funcs/libraryUpdateItems.ts index e8ebca8b..4572abcd 100644 --- a/src/funcs/libraryUpdateItems.ts +++ b/src/funcs/libraryUpdateItems.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Set the fields of the filtered items @@ -80,7 +81,7 @@ export function libraryUpdateItems( options?: RequestOptions, ): APIPromise< Result< - operations.UpdateItemsResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -105,7 +106,7 @@ async function $do( ): Promise< [ Result< - operations.UpdateItemsResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -259,16 +260,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.UpdateItemsResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -278,10 +271,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.UpdateItemsResponse$inboundSchema), + M.nil(200, z.void()), M.fail([400, 404, 409, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/liveTVGetLiveTVSession.ts b/src/funcs/liveTVGetLiveTVSession.ts index 5ac56cb6..17a5a4d0 100644 --- a/src/funcs/liveTVGetLiveTVSession.ts +++ b/src/funcs/liveTVGetLiveTVSession.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get a single session @@ -199,11 +199,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -219,7 +215,7 @@ async function $do( >( M.json(200, operations.GetLiveTVSessionResponse$inboundSchema, { hdrs: true, - key: "MediaContainerWithMetadata", + key: "Result", }), M.fail("4XX"), M.fail("5XX"), diff --git a/src/funcs/liveTVGetSessionPlaylistIndex.ts b/src/funcs/liveTVGetSessionPlaylistIndex.ts index 62bf988c..37d510aa 100644 --- a/src/funcs/liveTVGetSessionPlaylistIndex.ts +++ b/src/funcs/liveTVGetSessionPlaylistIndex.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get a session playlist index @@ -36,7 +37,7 @@ export function liveTVGetSessionPlaylistIndex( options?: RequestOptions, ): APIPromise< Result< - operations.GetSessionPlaylistIndexResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.GetSessionPlaylistIndexResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -205,16 +206,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.GetSessionPlaylistIndexResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -224,10 +217,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.GetSessionPlaylistIndexResponse$inboundSchema), + M.nil(200, z.void()), M.fail([404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/liveTVGetSessionSegment.ts b/src/funcs/liveTVGetSessionSegment.ts index d54e675d..87c5d55a 100644 --- a/src/funcs/liveTVGetSessionSegment.ts +++ b/src/funcs/liveTVGetSessionSegment.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get a single session segment @@ -36,7 +37,7 @@ export function liveTVGetSessionSegment( options?: RequestOptions, ): APIPromise< Result< - operations.GetSessionSegmentResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.GetSessionSegmentResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -208,16 +209,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.GetSessionSegmentResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -227,10 +220,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.GetSessionSegmentResponse$inboundSchema), + M.nil(200, z.void()), M.fail([404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/liveTVGetSessions.ts b/src/funcs/liveTVGetSessions.ts index 2c87457d..a4140343 100644 --- a/src/funcs/liveTVGetSessions.ts +++ b/src/funcs/liveTVGetSessions.ts @@ -14,13 +14,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get all sessions @@ -120,11 +120,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -140,7 +136,7 @@ async function $do( >( M.json(200, operations.GetSessionsResponse$inboundSchema, { hdrs: true, - key: "MediaContainerWithMetadata", + key: "Result", }), M.fail("4XX"), M.fail("5XX"), diff --git a/src/funcs/logEnablePapertrail.ts b/src/funcs/logEnablePapertrail.ts index 4669ab42..e0588924 100644 --- a/src/funcs/logEnablePapertrail.ts +++ b/src/funcs/logEnablePapertrail.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Enabling Papertrail @@ -38,7 +39,7 @@ export function logEnablePapertrail( options?: RequestOptions, ): APIPromise< Result< - operations.EnablePapertrailResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -63,7 +64,7 @@ async function $do( ): Promise< [ Result< - operations.EnablePapertrailResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -198,16 +199,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.EnablePapertrailResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -217,10 +210,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.EnablePapertrailResponse$inboundSchema), + M.nil(200, z.void()), M.fail([403, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/logWriteLog.ts b/src/funcs/logWriteLog.ts index d291eaa6..bd13e7b4 100644 --- a/src/funcs/logWriteLog.ts +++ b/src/funcs/logWriteLog.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; @@ -16,13 +16,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Logging a multi-line message to the Plex Media Server log @@ -36,7 +35,7 @@ export function logWriteLog( options?: RequestOptions, ): APIPromise< Result< - operations.WriteLogResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +60,7 @@ async function $do( ): Promise< [ Result< - operations.WriteLogResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -78,10 +77,10 @@ async function $do( request, (value) => z.union([ - z.instanceof(ReadableStream), - z.instanceof(Blob), - z.instanceof(ArrayBuffer), - z.instanceof(Uint8Array), + z.custom>(x => x instanceof ReadableStream), + z.custom(x => x instanceof Blob), + z.custom(x => x instanceof ArrayBuffer), + z.custom(x => x instanceof Uint8Array), ]).parse(value), "Input validation failed", ); @@ -143,16 +142,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.WriteLogResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -162,10 +153,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.WriteLogResponse$inboundSchema), + M.nil(200, z.void()), M.fail([400, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/logWriteMessage.ts b/src/funcs/logWriteMessage.ts index 37f8462b..c0e498bc 100644 --- a/src/funcs/logWriteMessage.ts +++ b/src/funcs/logWriteMessage.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Logging a single-line message to the Plex Media Server log @@ -38,7 +39,7 @@ export function logWriteMessage( options?: RequestOptions, ): APIPromise< Result< - operations.WriteMessageResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -63,7 +64,7 @@ async function $do( ): Promise< [ Result< - operations.WriteMessageResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -200,16 +201,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.WriteMessageResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -219,10 +212,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.WriteMessageResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/playQueueAddToPlayQueue.ts b/src/funcs/playQueueAddToPlayQueue.ts index c2b86a77..99b1caf1 100644 --- a/src/funcs/playQueueAddToPlayQueue.ts +++ b/src/funcs/playQueueAddToPlayQueue.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Add a generator or playlist to a play queue @@ -36,7 +37,7 @@ export function playQueueAddToPlayQueue( options?: RequestOptions, ): APIPromise< Result< - operations.AddToPlayQueueResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.AddToPlayQueueResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -205,16 +206,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.AddToPlayQueueResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -224,12 +217,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.AddToPlayQueueResponse$inboundSchema, { - key: "MediaContainerWithPlaylistMetadata", - }), + M.json(200, shared.MediaContainerWithPlaylistMetadata$inboundSchema), M.fail([400, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/playQueueClearPlayQueue.ts b/src/funcs/playQueueClearPlayQueue.ts index a667692d..84efbeca 100644 --- a/src/funcs/playQueueClearPlayQueue.ts +++ b/src/funcs/playQueueClearPlayQueue.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Clear a play queue @@ -36,7 +37,7 @@ export function playQueueClearPlayQueue( options?: RequestOptions, ): APIPromise< Result< - operations.ClearPlayQueueResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.ClearPlayQueueResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -198,16 +199,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.ClearPlayQueueResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -217,12 +210,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.ClearPlayQueueResponse$inboundSchema, { - key: "MediaContainerWithPlaylistMetadata", - }), + M.json(200, shared.MediaContainerWithPlaylistMetadata$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/playQueueCreatePlayQueue.ts b/src/funcs/playQueueCreatePlayQueue.ts index ab598c41..3986dd3b 100644 --- a/src/funcs/playQueueCreatePlayQueue.ts +++ b/src/funcs/playQueueCreatePlayQueue.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Create a play queue @@ -207,11 +207,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -227,7 +223,7 @@ async function $do( >( M.json(200, operations.CreatePlayQueueResponse$inboundSchema, { hdrs: true, - key: "object", + key: "Result", }), M.fail([400, "4XX"]), M.fail("5XX"), diff --git a/src/funcs/playQueueDeletePlayQueueItem.ts b/src/funcs/playQueueDeletePlayQueueItem.ts index b1d12a90..d3b8c0cd 100644 --- a/src/funcs/playQueueDeletePlayQueueItem.ts +++ b/src/funcs/playQueueDeletePlayQueueItem.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Delete an item from a play queue @@ -36,7 +37,7 @@ export function playQueueDeletePlayQueueItem( options?: RequestOptions, ): APIPromise< Result< - operations.DeletePlayQueueItemResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.DeletePlayQueueItemResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -205,16 +206,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.DeletePlayQueueItemResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -224,12 +217,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.DeletePlayQueueItemResponse$inboundSchema, { - key: "MediaContainerWithPlaylistMetadata", - }), + M.json(200, shared.MediaContainerWithPlaylistMetadata$inboundSchema), M.fail([400, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/playQueueGetPlayQueue.ts b/src/funcs/playQueueGetPlayQueue.ts index 65c16733..2e40bf2f 100644 --- a/src/funcs/playQueueGetPlayQueue.ts +++ b/src/funcs/playQueueGetPlayQueue.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Retrieve a play queue @@ -36,7 +37,7 @@ export function playQueueGetPlayQueue( options?: RequestOptions, ): APIPromise< Result< - operations.GetPlayQueueResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.GetPlayQueueResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -207,16 +208,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.GetPlayQueueResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -226,12 +219,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetPlayQueueResponse$inboundSchema, { - key: "MediaContainerWithPlaylistMetadata", - }), + M.json(200, shared.MediaContainerWithPlaylistMetadata$inboundSchema), M.fail([400, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/playQueueMovePlayQueueItem.ts b/src/funcs/playQueueMovePlayQueueItem.ts index fa0f5b70..c428cb68 100644 --- a/src/funcs/playQueueMovePlayQueueItem.ts +++ b/src/funcs/playQueueMovePlayQueueItem.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Move an item in a play queue @@ -36,7 +37,7 @@ export function playQueueMovePlayQueueItem( options?: RequestOptions, ): APIPromise< Result< - operations.MovePlayQueueItemResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.MovePlayQueueItemResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -209,16 +210,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.MovePlayQueueItemResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -228,12 +221,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.MovePlayQueueItemResponse$inboundSchema, { - key: "MediaContainerWithPlaylistMetadata", - }), + M.json(200, shared.MediaContainerWithPlaylistMetadata$inboundSchema), M.fail([400, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/playQueueResetPlayQueue.ts b/src/funcs/playQueueResetPlayQueue.ts index e1fe93c6..348fab6b 100644 --- a/src/funcs/playQueueResetPlayQueue.ts +++ b/src/funcs/playQueueResetPlayQueue.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Reset a play queue @@ -36,7 +37,7 @@ export function playQueueResetPlayQueue( options?: RequestOptions, ): APIPromise< Result< - operations.ResetPlayQueueResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.ResetPlayQueueResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -198,16 +199,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.ResetPlayQueueResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -217,12 +210,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.ResetPlayQueueResponse$inboundSchema, { - key: "MediaContainerWithPlaylistMetadata", - }), + M.json(200, shared.MediaContainerWithPlaylistMetadata$inboundSchema), M.fail([400, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/playQueueShuffle.ts b/src/funcs/playQueueShuffle.ts index fc4c3580..223f2825 100644 --- a/src/funcs/playQueueShuffle.ts +++ b/src/funcs/playQueueShuffle.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Shuffle a play queue @@ -36,7 +37,7 @@ export function playQueueShuffle( options?: RequestOptions, ): APIPromise< Result< - operations.ShuffleResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.ShuffleResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -198,16 +199,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.ShuffleResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -217,12 +210,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.ShuffleResponse$inboundSchema, { - key: "MediaContainerWithPlaylistMetadata", - }), + M.json(200, shared.MediaContainerWithPlaylistMetadata$inboundSchema), M.fail([400, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/playQueueUnshuffle.ts b/src/funcs/playQueueUnshuffle.ts index 8451dc99..14030c0f 100644 --- a/src/funcs/playQueueUnshuffle.ts +++ b/src/funcs/playQueueUnshuffle.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Unshuffle a play queue @@ -36,7 +37,7 @@ export function playQueueUnshuffle( options?: RequestOptions, ): APIPromise< Result< - operations.UnshuffleResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.UnshuffleResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -198,16 +199,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.UnshuffleResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -217,12 +210,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.UnshuffleResponse$inboundSchema, { - key: "MediaContainerWithPlaylistMetadata", - }), + M.json(200, shared.MediaContainerWithPlaylistMetadata$inboundSchema), M.fail([400, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/playlistGetPlaylist.ts b/src/funcs/playlistGetPlaylist.ts index ba81c77b..54d5403f 100644 --- a/src/funcs/playlistGetPlaylist.ts +++ b/src/funcs/playlistGetPlaylist.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Retrieve Playlist @@ -37,7 +38,7 @@ export function playlistGetPlaylist( options?: RequestOptions, ): APIPromise< Result< - operations.GetPlaylistResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -62,7 +63,7 @@ async function $do( ): Promise< [ Result< - operations.GetPlaylistResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -199,16 +200,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.GetPlaylistResponse, + shared.MediaContainerWithPlaylistMetadata, | PlexAPIError | ResponseValidationError | ConnectionError @@ -218,12 +211,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetPlaylistResponse$inboundSchema, { - key: "MediaContainerWithPlaylistMetadata", - }), + M.json(200, shared.MediaContainerWithPlaylistMetadata$inboundSchema), M.fail([404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/playlistGetPlaylistItems.ts b/src/funcs/playlistGetPlaylistItems.ts index 4a37a4f5..7e193af5 100644 --- a/src/funcs/playlistGetPlaylistItems.ts +++ b/src/funcs/playlistGetPlaylistItems.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Retrieve Playlist Contents @@ -204,11 +204,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -224,7 +220,7 @@ async function $do( >( M.json(200, operations.GetPlaylistItemsResponse$inboundSchema, { hdrs: true, - key: "MediaContainerWithMetadata", + key: "Result", }), M.fail([404, "4XX"]), M.fail("5XX"), diff --git a/src/funcs/playlistListPlaylists.ts b/src/funcs/playlistListPlaylists.ts index 1d767cba..53cbd42b 100644 --- a/src/funcs/playlistListPlaylists.ts +++ b/src/funcs/playlistListPlaylists.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * List playlists @@ -198,11 +198,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -218,7 +214,7 @@ async function $do( >( M.json(200, operations.ListPlaylistsResponse$inboundSchema, { hdrs: true, - key: "MediaContainerWithPlaylistMetadata", + key: "Result", }), M.fail("4XX"), M.fail("5XX"), diff --git a/src/funcs/plexGetServerResources.ts b/src/funcs/plexGetServerResources.ts index c301aa04..ddf1a05a 100644 --- a/src/funcs/plexGetServerResources.ts +++ b/src/funcs/plexGetServerResources.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,15 +17,16 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import * as errors from "../sdk/models/errors/index.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import { GetServerResourcesServerList } from "../sdk/models/operations/getserverresources.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import * as errors from "../models/errors/index.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import { GetServerResourcesServerList } from "../models/operations/getserverresources.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get Server Resources @@ -38,7 +40,7 @@ export function plexGetServerResources( options?: RequestOptions, ): APIPromise< Result< - operations.GetServerResourcesResponse, + Array, | errors.GetServerResourcesUnauthorizedError | PlexAPIError | ResponseValidationError @@ -64,7 +66,7 @@ async function $do( ): Promise< [ Result< - operations.GetServerResourcesResponse, + Array, | errors.GetServerResourcesUnauthorizedError | PlexAPIError | ResponseValidationError @@ -163,15 +165,11 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< - operations.GetServerResourcesResponse, + Array, | errors.GetServerResourcesUnauthorizedError | PlexAPIError | ResponseValidationError @@ -182,9 +180,7 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetServerResourcesResponse$inboundSchema, { - key: "PlexDevices", - }), + M.json(200, z.array(shared.PlexDevice$inboundSchema)), M.jsonErr(401, errors.GetServerResourcesUnauthorizedError$inboundSchema), M.fail([400, "4XX"]), M.fail("5XX"), diff --git a/src/funcs/preferencesGetAllPreferences.ts b/src/funcs/preferencesGetAllPreferences.ts index 5365e0f6..7de88677 100644 --- a/src/funcs/preferencesGetAllPreferences.ts +++ b/src/funcs/preferencesGetAllPreferences.ts @@ -14,13 +14,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get all preferences @@ -33,7 +33,7 @@ export function preferencesGetAllPreferences( options?: RequestOptions, ): APIPromise< Result< - operations.GetAllPreferencesResponse, + shared.MediaContainerWithSettings, | PlexAPIError | ResponseValidationError | ConnectionError @@ -56,7 +56,7 @@ async function $do( ): Promise< [ Result< - operations.GetAllPreferencesResponse, + shared.MediaContainerWithSettings, | PlexAPIError | ResponseValidationError | ConnectionError @@ -119,16 +119,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.GetAllPreferencesResponse, + shared.MediaContainerWithSettings, | PlexAPIError | ResponseValidationError | ConnectionError @@ -138,12 +130,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetAllPreferencesResponse$inboundSchema, { - key: "MediaContainerWithSettings", - }), + M.json(200, shared.MediaContainerWithSettings$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/preferencesGetPreference.ts b/src/funcs/preferencesGetPreference.ts index 4a83bd8b..999e0feb 100644 --- a/src/funcs/preferencesGetPreference.ts +++ b/src/funcs/preferencesGetPreference.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get a preferences @@ -36,7 +37,7 @@ export function preferencesGetPreference( options?: RequestOptions, ): APIPromise< Result< - operations.GetPreferenceResponse, + shared.MediaContainerWithSettings, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.GetPreferenceResponse, + shared.MediaContainerWithSettings, | PlexAPIError | ResponseValidationError | ConnectionError @@ -196,16 +197,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.GetPreferenceResponse, + shared.MediaContainerWithSettings, | PlexAPIError | ResponseValidationError | ConnectionError @@ -215,12 +208,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetPreferenceResponse$inboundSchema, { - key: "MediaContainerWithSettings", - }), + M.json(200, shared.MediaContainerWithSettings$inboundSchema), M.fail([404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/preferencesSetPreferences.ts b/src/funcs/preferencesSetPreferences.ts index b3012beb..1fa5e159 100644 --- a/src/funcs/preferencesSetPreferences.ts +++ b/src/funcs/preferencesSetPreferences.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Set preferences @@ -36,7 +37,7 @@ export function preferencesSetPreferences( options?: RequestOptions, ): APIPromise< Result< - operations.SetPreferencesResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.SetPreferencesResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -196,16 +197,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.SetPreferencesResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -215,10 +208,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.SetPreferencesResponse$inboundSchema), + M.nil(200, z.void()), M.fail([400, 403, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/providerAddProvider.ts b/src/funcs/providerAddProvider.ts index 821e0461..02986120 100644 --- a/src/funcs/providerAddProvider.ts +++ b/src/funcs/providerAddProvider.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Add a media provider @@ -36,7 +37,7 @@ export function providerAddProvider( options?: RequestOptions, ): APIPromise< Result< - operations.AddProviderResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.AddProviderResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -196,16 +197,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.AddProviderResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -215,10 +208,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.AddProviderResponse$inboundSchema), + M.nil(200, z.void()), M.fail([400, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/providerDeleteMediaProvider.ts b/src/funcs/providerDeleteMediaProvider.ts index 197db759..217600c1 100644 --- a/src/funcs/providerDeleteMediaProvider.ts +++ b/src/funcs/providerDeleteMediaProvider.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Delete a media provider @@ -36,7 +37,7 @@ export function providerDeleteMediaProvider( options?: RequestOptions, ): APIPromise< Result< - operations.DeleteMediaProviderResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.DeleteMediaProviderResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -199,16 +200,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.DeleteMediaProviderResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -218,10 +211,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.DeleteMediaProviderResponse$inboundSchema), + M.nil(200, z.void()), M.fail([400, 403, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/providerListProviders.ts b/src/funcs/providerListProviders.ts index 16bacbb2..af65e341 100644 --- a/src/funcs/providerListProviders.ts +++ b/src/funcs/providerListProviders.ts @@ -14,13 +14,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get the list of available media providers @@ -119,14 +119,6 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< operations.ListProvidersResponse, | PlexAPIError @@ -138,12 +130,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.ListProvidersResponse$inboundSchema, { - key: "object", - }), + M.json(200, operations.ListProvidersResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/providerRefreshProviders.ts b/src/funcs/providerRefreshProviders.ts index 11dfc1e2..8c4674f8 100644 --- a/src/funcs/providerRefreshProviders.ts +++ b/src/funcs/providerRefreshProviders.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; @@ -14,13 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Refresh media providers @@ -33,7 +33,7 @@ export function providerRefreshProviders( options?: RequestOptions, ): APIPromise< Result< - operations.RefreshProvidersResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -56,7 +56,7 @@ async function $do( ): Promise< [ Result< - operations.RefreshProvidersResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -119,16 +119,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.RefreshProvidersResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -138,10 +130,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.RefreshProvidersResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/rateSetRating.ts b/src/funcs/rateSetRating.ts index 0c1641ce..ca392890 100644 --- a/src/funcs/rateSetRating.ts +++ b/src/funcs/rateSetRating.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Rate an item @@ -37,7 +38,7 @@ export function rateSetRating( options?: RequestOptions, ): APIPromise< Result< - operations.SetRatingResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -62,7 +63,7 @@ async function $do( ): Promise< [ Result< - operations.SetRatingResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -200,16 +201,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.SetRatingResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -219,10 +212,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.SetRatingResponse$inboundSchema), + M.nil(200, z.void()), M.fail([400, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/searchSearchHubs.ts b/src/funcs/searchSearchHubs.ts index a6ee4811..7fb997dc 100644 --- a/src/funcs/searchSearchHubs.ts +++ b/src/funcs/searchSearchHubs.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Search Hub @@ -212,11 +212,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -232,7 +228,7 @@ async function $do( >( M.json(200, operations.SearchHubsResponse$inboundSchema, { hdrs: true, - key: "object", + key: "Result", }), M.fail([400, 404, "4XX"]), M.fail("5XX"), diff --git a/src/funcs/searchVoiceSearchHubs.ts b/src/funcs/searchVoiceSearchHubs.ts index 96b4e5e2..660733c7 100644 --- a/src/funcs/searchVoiceSearchHubs.ts +++ b/src/funcs/searchVoiceSearchHubs.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Voice Search Hub @@ -203,11 +203,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -223,7 +219,7 @@ async function $do( >( M.json(200, operations.VoiceSearchHubsResponse$inboundSchema, { hdrs: true, - key: "object", + key: "Result", }), M.fail([400, "4XX"]), M.fail("5XX"), diff --git a/src/funcs/statusDeleteHistory.ts b/src/funcs/statusDeleteHistory.ts index 15eccb4b..1d324b43 100644 --- a/src/funcs/statusDeleteHistory.ts +++ b/src/funcs/statusDeleteHistory.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Delete Single History Item @@ -199,11 +199,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -219,7 +215,7 @@ async function $do( >( M.json(200, operations.DeleteHistoryResponse$inboundSchema, { hdrs: true, - key: "MediaContainer", + key: "Result", }), M.fail([404, "4XX"]), M.fail("5XX"), diff --git a/src/funcs/statusGetBackgroundTasks.ts b/src/funcs/statusGetBackgroundTasks.ts index 53e02295..918e07dd 100644 --- a/src/funcs/statusGetBackgroundTasks.ts +++ b/src/funcs/statusGetBackgroundTasks.ts @@ -14,13 +14,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get background tasks @@ -119,14 +119,6 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< operations.GetBackgroundTasksResponse, | PlexAPIError @@ -138,12 +130,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetBackgroundTasksResponse$inboundSchema, { - key: "object", - }), + M.json(200, operations.GetBackgroundTasksResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/statusGetHistoryItem.ts b/src/funcs/statusGetHistoryItem.ts index c2ea63cf..2b7f514c 100644 --- a/src/funcs/statusGetHistoryItem.ts +++ b/src/funcs/statusGetHistoryItem.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get Single History Item @@ -199,11 +199,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -219,7 +215,7 @@ async function $do( >( M.json(200, operations.GetHistoryItemResponse$inboundSchema, { hdrs: true, - key: "historyAll-get-responses-200", + key: "Result", }), M.fail([404, "4XX"]), M.fail("5XX"), diff --git a/src/funcs/statusListPlaybackHistory.ts b/src/funcs/statusListPlaybackHistory.ts index ebd1264c..d02865a7 100644 --- a/src/funcs/statusListPlaybackHistory.ts +++ b/src/funcs/statusListPlaybackHistory.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * List Playback History @@ -203,11 +203,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -223,7 +219,7 @@ async function $do( >( M.json(200, operations.ListPlaybackHistoryResponse$inboundSchema, { hdrs: true, - key: "object", + key: "Result", }), M.fail("4XX"), M.fail("5XX"), diff --git a/src/funcs/statusListSessions.ts b/src/funcs/statusListSessions.ts index 37060e83..e7f8d7e7 100644 --- a/src/funcs/statusListSessions.ts +++ b/src/funcs/statusListSessions.ts @@ -14,13 +14,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * List Sessions @@ -120,11 +120,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -140,7 +136,7 @@ async function $do( >( M.json(200, operations.ListSessionsResponse$inboundSchema, { hdrs: true, - key: "object", + key: "Result", }), M.fail("4XX"), M.fail("5XX"), diff --git a/src/funcs/statusTerminateSession.ts b/src/funcs/statusTerminateSession.ts index de47a020..7c9056b0 100644 --- a/src/funcs/statusTerminateSession.ts +++ b/src/funcs/statusTerminateSession.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Terminate a session @@ -36,7 +37,7 @@ export function statusTerminateSession( options?: RequestOptions, ): APIPromise< Result< - operations.TerminateSessionResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.TerminateSessionResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -197,16 +198,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.TerminateSessionResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -216,10 +209,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.TerminateSessionResponse$inboundSchema), + M.nil(200, z.void()), M.fail([401, 403, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/subscriptionsCancelGrab.ts b/src/funcs/subscriptionsCancelGrab.ts index 597c862a..d7afbca5 100644 --- a/src/funcs/subscriptionsCancelGrab.ts +++ b/src/funcs/subscriptionsCancelGrab.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Cancel an existing grab @@ -37,7 +38,7 @@ export function subscriptionsCancelGrab( options?: RequestOptions, ): APIPromise< Result< - operations.CancelGrabResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -62,7 +63,7 @@ async function $do( ): Promise< [ Result< - operations.CancelGrabResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -201,16 +202,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.CancelGrabResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -220,10 +213,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.CancelGrabResponse$inboundSchema), + M.nil(200, z.void()), M.fail([403, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/subscriptionsCreateSubscription.ts b/src/funcs/subscriptionsCreateSubscription.ts index aef0e86e..e52f9119 100644 --- a/src/funcs/subscriptionsCreateSubscription.ts +++ b/src/funcs/subscriptionsCreateSubscription.ts @@ -21,13 +21,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Create a subscription @@ -211,11 +211,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -231,7 +227,7 @@ async function $do( >( M.json(200, operations.CreateSubscriptionResponse$inboundSchema, { hdrs: true, - key: "object", + key: "Result", }), M.fail([400, 403, 409, "4XX"]), M.fail("5XX"), diff --git a/src/funcs/subscriptionsDeleteSubscription.ts b/src/funcs/subscriptionsDeleteSubscription.ts index 421c2646..778f3973 100644 --- a/src/funcs/subscriptionsDeleteSubscription.ts +++ b/src/funcs/subscriptionsDeleteSubscription.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Delete a subscription @@ -36,7 +37,7 @@ export function subscriptionsDeleteSubscription( options?: RequestOptions, ): APIPromise< Result< - operations.DeleteSubscriptionResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.DeleteSubscriptionResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -198,16 +199,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.DeleteSubscriptionResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -217,10 +210,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.DeleteSubscriptionResponse$inboundSchema), + M.nil(200, z.void()), M.fail([400, 403, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/subscriptionsEditSubscriptionPreferences.ts b/src/funcs/subscriptionsEditSubscriptionPreferences.ts index 4c4e0b22..500f99e4 100644 --- a/src/funcs/subscriptionsEditSubscriptionPreferences.ts +++ b/src/funcs/subscriptionsEditSubscriptionPreferences.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Edit a subscription @@ -36,7 +37,7 @@ export function subscriptionsEditSubscriptionPreferences( options?: RequestOptions, ): APIPromise< Result< - operations.EditSubscriptionPreferencesResponse, + shared.MediaContainerWithSubscription, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.EditSubscriptionPreferencesResponse, + shared.MediaContainerWithSubscription, | PlexAPIError | ResponseValidationError | ConnectionError @@ -204,16 +205,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.EditSubscriptionPreferencesResponse, + shared.MediaContainerWithSubscription, | PlexAPIError | ResponseValidationError | ConnectionError @@ -223,12 +216,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.EditSubscriptionPreferencesResponse$inboundSchema, { - key: "MediaContainerWithSubscription", - }), + M.json(200, shared.MediaContainerWithSubscription$inboundSchema), M.fail([400, 403, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/subscriptionsGetAllSubscriptions.ts b/src/funcs/subscriptionsGetAllSubscriptions.ts index d308c7d8..37211860 100644 --- a/src/funcs/subscriptionsGetAllSubscriptions.ts +++ b/src/funcs/subscriptionsGetAllSubscriptions.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get all subscriptions @@ -199,11 +199,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -219,7 +215,7 @@ async function $do( >( M.json(200, operations.GetAllSubscriptionsResponse$inboundSchema, { hdrs: true, - key: "MediaContainerWithSubscription", + key: "Result", }), M.fail([403, "4XX"]), M.fail("5XX"), diff --git a/src/funcs/subscriptionsGetScheduledRecordings.ts b/src/funcs/subscriptionsGetScheduledRecordings.ts index 252d11f5..71ce6eb8 100644 --- a/src/funcs/subscriptionsGetScheduledRecordings.ts +++ b/src/funcs/subscriptionsGetScheduledRecordings.ts @@ -14,13 +14,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get all scheduled recordings @@ -120,11 +120,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -140,7 +136,7 @@ async function $do( >( M.json(200, operations.GetScheduledRecordingsResponse$inboundSchema, { hdrs: true, - key: "object", + key: "Result", }), M.fail([403, "4XX"]), M.fail("5XX"), diff --git a/src/funcs/subscriptionsGetSubscription.ts b/src/funcs/subscriptionsGetSubscription.ts index 1e2884c0..259a300c 100644 --- a/src/funcs/subscriptionsGetSubscription.ts +++ b/src/funcs/subscriptionsGetSubscription.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get a single subscription @@ -36,7 +37,7 @@ export function subscriptionsGetSubscription( options?: RequestOptions, ): APIPromise< Result< - operations.GetSubscriptionResponse, + shared.MediaContainerWithSubscription, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.GetSubscriptionResponse, + shared.MediaContainerWithSubscription, | PlexAPIError | ResponseValidationError | ConnectionError @@ -204,16 +205,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.GetSubscriptionResponse, + shared.MediaContainerWithSubscription, | PlexAPIError | ResponseValidationError | ConnectionError @@ -223,12 +216,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetSubscriptionResponse$inboundSchema, { - key: "MediaContainerWithSubscription", - }), + M.json(200, shared.MediaContainerWithSubscription$inboundSchema), M.fail([400, 403, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/subscriptionsGetTemplate.ts b/src/funcs/subscriptionsGetTemplate.ts index 58aff66e..48df0020 100644 --- a/src/funcs/subscriptionsGetTemplate.ts +++ b/src/funcs/subscriptionsGetTemplate.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get the subscription template @@ -197,11 +197,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -217,7 +213,7 @@ async function $do( >( M.json(200, operations.GetTemplateResponse$inboundSchema, { hdrs: true, - key: "object", + key: "Result", }), M.fail([403, "4XX"]), M.fail("5XX"), diff --git a/src/funcs/subscriptionsProcessSubscriptions.ts b/src/funcs/subscriptionsProcessSubscriptions.ts index 97bcd1a9..de92a5c8 100644 --- a/src/funcs/subscriptionsProcessSubscriptions.ts +++ b/src/funcs/subscriptionsProcessSubscriptions.ts @@ -14,13 +14,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; +import * as types$ from "../types/primitives.js"; /** * Process all subscriptions @@ -33,7 +34,7 @@ export function subscriptionsProcessSubscriptions( options?: RequestOptions, ): APIPromise< Result< - operations.ProcessSubscriptionsResponse, + operations.ProcessSubscriptionsResponse | undefined, | PlexAPIError | ResponseValidationError | ConnectionError @@ -56,7 +57,7 @@ async function $do( ): Promise< [ Result< - operations.ProcessSubscriptionsResponse, + operations.ProcessSubscriptionsResponse | undefined, | PlexAPIError | ResponseValidationError | ConnectionError @@ -120,15 +121,11 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< - operations.ProcessSubscriptionsResponse, + operations.ProcessSubscriptionsResponse | undefined, | PlexAPIError | ResponseValidationError | ConnectionError @@ -138,9 +135,11 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.ProcessSubscriptionsResponse$inboundSchema, { - hdrs: true, - }), + M.nil( + 200, + types$.optional(operations.ProcessSubscriptionsResponse$inboundSchema), + { hdrs: true }, + ), M.fail([403, "4XX"]), M.fail("5XX"), )(response, req, { extraFields: responseFields }); diff --git a/src/funcs/subscriptionsReorderSubscription.ts b/src/funcs/subscriptionsReorderSubscription.ts index abe71ecd..dcdf1317 100644 --- a/src/funcs/subscriptionsReorderSubscription.ts +++ b/src/funcs/subscriptionsReorderSubscription.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Re-order a subscription @@ -36,7 +37,7 @@ export function subscriptionsReorderSubscription( options?: RequestOptions, ): APIPromise< Result< - operations.ReorderSubscriptionResponse, + shared.MediaContainerWithSubscription, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.ReorderSubscriptionResponse, + shared.MediaContainerWithSubscription, | PlexAPIError | ResponseValidationError | ConnectionError @@ -206,16 +207,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.ReorderSubscriptionResponse, + shared.MediaContainerWithSubscription, | PlexAPIError | ResponseValidationError | ConnectionError @@ -225,12 +218,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.ReorderSubscriptionResponse$inboundSchema, { - key: "MediaContainerWithSubscription", - }), + M.json(200, shared.MediaContainerWithSubscription$inboundSchema), M.fail([400, 403, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/timelineMarkPlayed.ts b/src/funcs/timelineMarkPlayed.ts index 8ad3be7e..85dde9c4 100644 --- a/src/funcs/timelineMarkPlayed.ts +++ b/src/funcs/timelineMarkPlayed.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Mark an item as played @@ -37,7 +38,7 @@ export function timelineMarkPlayed( options?: RequestOptions, ): APIPromise< Result< - operations.MarkPlayedResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -62,7 +63,7 @@ async function $do( ): Promise< [ Result< - operations.MarkPlayedResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -199,16 +200,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.MarkPlayedResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -218,10 +211,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.MarkPlayedResponse$inboundSchema), + M.nil(200, z.void()), M.fail([400, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/timelineReport.ts b/src/funcs/timelineReport.ts index 4a5edf27..ca779967 100644 --- a/src/funcs/timelineReport.ts +++ b/src/funcs/timelineReport.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Report media timeline @@ -214,14 +214,6 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< operations.ReportResponse, | PlexAPIError @@ -233,10 +225,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.ReportResponse$inboundSchema, { key: "object" }), + M.json(200, operations.ReportResponse$inboundSchema), M.fail([400, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/timelineUnscrobble.ts b/src/funcs/timelineUnscrobble.ts index dd06ecd9..b89c4d15 100644 --- a/src/funcs/timelineUnscrobble.ts +++ b/src/funcs/timelineUnscrobble.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Mark an item as unplayed @@ -37,7 +38,7 @@ export function timelineUnscrobble( options?: RequestOptions, ): APIPromise< Result< - operations.UnscrobbleResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -62,7 +63,7 @@ async function $do( ): Promise< [ Result< - operations.UnscrobbleResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -199,16 +200,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.UnscrobbleResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -218,10 +211,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.UnscrobbleResponse$inboundSchema), + M.nil(200, z.void()), M.fail([400, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/transcoderMakeDecision.ts b/src/funcs/transcoderMakeDecision.ts index 18eae37a..7e6b86b6 100644 --- a/src/funcs/transcoderMakeDecision.ts +++ b/src/funcs/transcoderMakeDecision.ts @@ -16,13 +16,14 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Make a decision on media playback @@ -36,7 +37,7 @@ export function transcoderMakeDecision( options?: RequestOptions, ): APIPromise< Result< - operations.MakeDecisionResponse, + shared.MediaContainerWithDecision, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.MakeDecisionResponse, + shared.MediaContainerWithDecision, | PlexAPIError | ResponseValidationError | ConnectionError @@ -246,16 +247,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.MakeDecisionResponse, + shared.MediaContainerWithDecision, | PlexAPIError | ResponseValidationError | ConnectionError @@ -265,12 +258,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.MakeDecisionResponse$inboundSchema, { - key: "MediaContainerWithDecision", - }), + M.json(200, shared.MediaContainerWithDecision$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/transcoderStartTranscodeSession.ts b/src/funcs/transcoderStartTranscodeSession.ts index 15159c70..865cb949 100644 --- a/src/funcs/transcoderStartTranscodeSession.ts +++ b/src/funcs/transcoderStartTranscodeSession.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Start A Transcoding Session @@ -36,7 +37,7 @@ export function transcoderStartTranscodeSession( options?: RequestOptions, ): APIPromise< Result< - operations.StartTranscodeSessionResponse, + ReadableStream, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.StartTranscodeSessionResponse, + ReadableStream, | PlexAPIError | ResponseValidationError | ConnectionError @@ -251,16 +252,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.StartTranscodeSessionResponse, + ReadableStream, | PlexAPIError | ResponseValidationError | ConnectionError @@ -270,13 +263,14 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.stream(200, operations.StartTranscodeSessionResponse$inboundSchema, { - ctype: "video/x-matroska", - key: "response-stream", - }), + M.stream( + 200, + z.custom>(x => x instanceof ReadableStream), + { ctype: "video/x-matroska" }, + ), M.fail([400, 403, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/transcoderTranscodeImage.ts b/src/funcs/transcoderTranscodeImage.ts index 186465f6..ebba78f9 100644 --- a/src/funcs/transcoderTranscodeImage.ts +++ b/src/funcs/transcoderTranscodeImage.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; export enum TranscodeImageAcceptEnum { imageJpeg = "image/jpeg", @@ -220,14 +220,6 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< operations.TranscodeImageResponse, | PlexAPIError @@ -241,19 +233,16 @@ async function $do( >( M.stream(200, operations.TranscodeImageResponse$inboundSchema, { ctype: "image/jpeg", - key: "200_image/jpeg_response-stream", }), M.stream(200, operations.TranscodeImageResponse$inboundSchema, { ctype: "image/png", - key: "200_image/png_response-stream", }), M.stream(200, operations.TranscodeImageResponse$inboundSchema, { ctype: "image/x-portable-pixmap", - key: "200_image/x-portable-pixmap_response-stream", }), M.fail([400, 403, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/transcoderTranscodeSubtitles.ts b/src/funcs/transcoderTranscodeSubtitles.ts index f2156a79..9e27c034 100644 --- a/src/funcs/transcoderTranscodeSubtitles.ts +++ b/src/funcs/transcoderTranscodeSubtitles.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Transcode subtitles @@ -36,7 +37,7 @@ export function transcoderTranscodeSubtitles( options?: RequestOptions, ): APIPromise< Result< - operations.TranscodeSubtitlesResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.TranscodeSubtitlesResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -246,16 +247,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.TranscodeSubtitlesResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -265,10 +258,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.TranscodeSubtitlesResponse$inboundSchema), + M.nil(200, z.void()), M.fail([400, 403, 404, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/transcoderTriggerFallback.ts b/src/funcs/transcoderTriggerFallback.ts index f503fc52..76b32a16 100644 --- a/src/funcs/transcoderTriggerFallback.ts +++ b/src/funcs/transcoderTriggerFallback.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Manually trigger a transcoder fallback @@ -36,7 +37,7 @@ export function transcoderTriggerFallback( options?: RequestOptions, ): APIPromise< Result< - operations.TriggerFallbackResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.TriggerFallbackResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -205,16 +206,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.TriggerFallbackResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -224,10 +217,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.TriggerFallbackResponse$inboundSchema), + M.nil(200, z.void()), M.fail([404, 412, "4XX"]), M.fail([500, "5XX"]), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/ultraBlurGetColors.ts b/src/funcs/ultraBlurGetColors.ts index 10f58423..3561547b 100644 --- a/src/funcs/ultraBlurGetColors.ts +++ b/src/funcs/ultraBlurGetColors.ts @@ -16,13 +16,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get UltraBlur Colors @@ -196,14 +196,6 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< operations.GetColorsResponse, | PlexAPIError @@ -215,10 +207,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetColorsResponse$inboundSchema, { key: "object" }), + M.json(200, operations.GetColorsResponse$inboundSchema), M.fail([404, "4XX"]), M.fail([500, "5XX"]), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/ultraBlurGetImage.ts b/src/funcs/ultraBlurGetImage.ts index b16db33f..c50bc840 100644 --- a/src/funcs/ultraBlurGetImage.ts +++ b/src/funcs/ultraBlurGetImage.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get UltraBlur Image @@ -36,7 +37,7 @@ export function ultraBlurGetImage( options?: RequestOptions, ): APIPromise< Result< - operations.GetImageResponse, + ReadableStream, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.GetImageResponse, + ReadableStream, | PlexAPIError | ResponseValidationError | ConnectionError @@ -202,16 +203,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.GetImageResponse, + ReadableStream, | PlexAPIError | ResponseValidationError | ConnectionError @@ -221,13 +214,14 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.stream(200, operations.GetImageResponse$inboundSchema, { - ctype: "image/png", - key: "response-stream", - }), + M.stream( + 200, + z.custom>(x => x instanceof ReadableStream), + { ctype: "image/png" }, + ), M.fail([400, "4XX"]), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/updaterApplyUpdates.ts b/src/funcs/updaterApplyUpdates.ts index 6b40f4ff..d9693467 100644 --- a/src/funcs/updaterApplyUpdates.ts +++ b/src/funcs/updaterApplyUpdates.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Applying updates @@ -36,7 +37,7 @@ export function updaterApplyUpdates( options?: RequestOptions, ): APIPromise< Result< - operations.ApplyUpdatesResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.ApplyUpdatesResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -197,16 +198,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.ApplyUpdatesResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -216,10 +209,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.ApplyUpdatesResponse$inboundSchema), + M.nil(200, z.void()), M.fail([400, "4XX"]), M.fail([500, "5XX"]), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/updaterCheckUpdates.ts b/src/funcs/updaterCheckUpdates.ts index 7e36c0ff..4a283f7d 100644 --- a/src/funcs/updaterCheckUpdates.ts +++ b/src/funcs/updaterCheckUpdates.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v4"; import { PlexAPICore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -16,13 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Checking for updates @@ -36,7 +37,7 @@ export function updaterCheckUpdates( options?: RequestOptions, ): APIPromise< Result< - operations.CheckUpdatesResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -61,7 +62,7 @@ async function $do( ): Promise< [ Result< - operations.CheckUpdatesResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -196,16 +197,8 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< - operations.CheckUpdatesResponse, + void, | PlexAPIError | ResponseValidationError | ConnectionError @@ -215,10 +208,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil(200, operations.CheckUpdatesResponse$inboundSchema), + M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/updaterGetUpdatesStatus.ts b/src/funcs/updaterGetUpdatesStatus.ts index a3d91e70..d53dc44c 100644 --- a/src/funcs/updaterGetUpdatesStatus.ts +++ b/src/funcs/updaterGetUpdatesStatus.ts @@ -14,13 +14,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Querying status of updates @@ -119,14 +119,6 @@ async function $do( } const response = doResult.value; - const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, - }; - const [result] = await M.match< operations.GetUpdatesStatusResponse, | PlexAPIError @@ -138,12 +130,10 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetUpdatesStatusResponse$inboundSchema, { - key: "object", - }), + M.json(200, operations.GetUpdatesStatusResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"), - )(response, req, { extraFields: responseFields }); + )(response, req); if (!result.ok) { return [result, { status: "complete", request: req, response }]; } diff --git a/src/funcs/usersGetUsers.ts b/src/funcs/usersGetUsers.ts index c6a4ab16..0f543a63 100644 --- a/src/funcs/usersGetUsers.ts +++ b/src/funcs/usersGetUsers.ts @@ -16,15 +16,15 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import * as errors from "../sdk/models/errors/index.js"; -import { PlexAPIError } from "../sdk/models/errors/plexapierror.js"; -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import { GetUsersServerList } from "../sdk/models/operations/getusers.js"; -import * as operations from "../sdk/models/operations/index.js"; -import { APICall, APIPromise } from "../sdk/types/async.js"; -import { Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import * as errors from "../models/errors/index.js"; +import { PlexAPIError } from "../models/errors/plexapierror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import { GetUsersServerList } from "../models/operations/getusers.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; /** * Get list of all connected users @@ -201,11 +201,7 @@ async function $do( const response = doResult.value; const responseFields = { - ContentType: response.headers.get("content-type") - ?? "application/octet-stream", - StatusCode: response.status, - RawResponse: response, - Headers: {}, + HttpMeta: { Response: response, Request: req }, }; const [result] = await M.match< @@ -221,7 +217,7 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetUsersResponse$inboundSchema, { key: "object" }), + M.json(200, operations.GetUsersResponse$inboundSchema), M.jsonErr(400, errors.GetUsersBadRequestError$inboundSchema), M.jsonErr(401, errors.GetUsersUnauthorizedError$inboundSchema), M.fail("4XX"), diff --git a/src/lib/base64.ts b/src/lib/base64.ts index 0aebd8b0..962ea486 100644 --- a/src/lib/base64.ts +++ b/src/lib/base64.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; +import * as z from "zod/v4"; export function bytesToBase64(u8arr: Uint8Array): string { return btoa(String.fromCodePoint(...u8arr)); @@ -28,10 +28,8 @@ export function stringFromBase64(b64str: string): string { return stringFromBytes(bytesFromBase64(b64str)); } -export const zodOutbound = z - .instanceof(Uint8Array) +export const zodOutbound = z.custom(x => x instanceof Uint8Array) .or(z.string().transform(stringToBytes)); -export const zodInbound = z - .instanceof(Uint8Array) +export const zodInbound = z.custom(x => x instanceof Uint8Array) .or(z.string().transform(bytesFromBase64)); diff --git a/src/lib/config.ts b/src/lib/config.ts index 2d037038..00d7942e 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as shared from "../sdk/models/shared/index.js"; +import * as shared from "../models/shared/index.js"; import { HTTPClient } from "./http.js"; import { Logger } from "./logger.js"; import { RetryConfig } from "./retries.js"; @@ -156,7 +156,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "1.1.1", - sdkVersion: "0.44.0", + sdkVersion: "0.44.1", genVersion: "2.767.2", - userAgent: "speakeasy-sdk/typescript 0.44.0 2.767.2 1.1.1 @lukehagar/plexjs", + userAgent: "speakeasy-sdk/typescript 0.44.1 2.767.2 1.1.1 @lukehagar/plexjs", } as const; diff --git a/src/lib/matchers.ts b/src/lib/matchers.ts index 993f7ac7..5e2e60be 100644 --- a/src/lib/matchers.ts +++ b/src/lib/matchers.ts @@ -2,9 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; -import { SDKError } from "../sdk/models/errors/sdkerror.js"; -import { ERR, OK, Result } from "../sdk/types/fp.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKError } from "../models/errors/sdkerror.js"; +import { ERR, OK, Result } from "../types/fp.js"; import { matchResponse, matchStatusCode, StatusCodePredicate } from "./http.js"; import { isPlainObject } from "./is-plain-object.js"; @@ -277,11 +277,14 @@ export function match( ...(matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null), [resultKey]: raw, }; - } else { + } else if (matcher.hdrs) { data = { ...options?.extraFields, ...(matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null), + ...(isPlainObject(raw) ? raw : null), }; + } else { + data = raw; } if ("err" in matcher) { diff --git a/src/lib/schemas.ts b/src/lib/schemas.ts index dc2510e3..e06a37fe 100644 --- a/src/lib/schemas.ts +++ b/src/lib/schemas.ts @@ -2,16 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { - output, - ZodEffects, - ZodError, - ZodObject, - ZodRawShape, - ZodTypeAny, -} from "zod/v3"; -import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; -import { ERR, OK, Result } from "../sdk/types/fp.js"; +import * as z from "zod/v4"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import { ERR, OK, Result } from "../types/fp.js"; /** * Utility function that executes some code which may throw a ZodError. It @@ -26,7 +19,7 @@ export function parse( try { return fn(rawValue); } catch (err) { - if (err instanceof ZodError) { + if (err instanceof z.ZodError) { throw new SDKValidationError(errorMessage, err, rawValue); } throw err; @@ -51,22 +44,29 @@ export function safeParse( } export function collectExtraKeys< - Shape extends ZodRawShape, - Catchall extends ZodTypeAny, + Shape extends z.ZodRawShape, + Catchall extends z.ZodType, K extends string, + Optional extends boolean, >( - obj: ZodObject, + obj: z.ZodObject>, extrasKey: K, - optional: boolean, -): ZodEffects< - typeof obj, - & output> - & { - [k in K]: Record>; - } + optional: Optional, +): z.ZodPipe< + z.ZodObject>, + z.ZodTransform< + & z.output> + & (Optional extends false ? { + [k in K]: Record>; + } + : { + [k in K]?: Record> | undefined; + }), + z.output>> + > > { - return obj.transform((val) => { - const extras: Record> = {}; + return obj.transform((val: any) => { + const extras: Record> = {}; const { shape } = obj; for (const [key] of Object.entries(val)) { if (key in shape) { diff --git a/src/lib/sdks.ts b/src/lib/sdks.ts index 9979e5f5..bdb1f37c 100644 --- a/src/lib/sdks.ts +++ b/src/lib/sdks.ts @@ -10,8 +10,8 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../sdk/models/errors/httpclienterrors.js"; -import { ERR, OK, Result } from "../sdk/types/fp.js"; +} from "../models/errors/httpclienterrors.js"; +import { ERR, OK, Result } from "../types/fp.js"; import { stringToBase64 } from "./base64.js"; import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "./config.js"; import { encodeForm } from "./encodings.js"; diff --git a/src/lib/security.ts b/src/lib/security.ts index 7838053d..2e0be96a 100644 --- a/src/lib/security.ts +++ b/src/lib/security.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as shared from "../sdk/models/shared/index.js"; +import * as shared from "../models/shared/index.js"; type OAuth2PasswordFlow = { username: string; diff --git a/src/sdk/models/errors/getserverresources.ts b/src/models/errors/getserverresources.ts similarity index 71% rename from src/sdk/models/errors/getserverresources.ts rename to src/models/errors/getserverresources.ts index 5ac78874..d576aabe 100644 --- a/src/sdk/models/errors/getserverresources.ts +++ b/src/models/errors/getserverresources.ts @@ -2,8 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod/v4"; +import * as types from "../../types/primitives.js"; import * as operations from "../operations/index.js"; import { PlexAPIError } from "./plexapierror.js"; @@ -12,10 +12,6 @@ import { PlexAPIError } from "./plexapierror.js"; */ export type GetServerResourcesUnauthorizedErrorData = { errors?: Array | undefined; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse?: Response | undefined; }; /** @@ -45,23 +41,17 @@ export class GetServerResourcesUnauthorizedError extends PlexAPIError { /** @internal */ export const GetServerResourcesUnauthorizedError$inboundSchema: z.ZodType< GetServerResourcesUnauthorizedError, - z.ZodTypeDef, unknown > = z.object({ - errors: z.array( - z.lazy(() => operations.GetServerResourcesError$inboundSchema), - ).optional(), - RawResponse: z.instanceof(Response).optional(), - request$: z.instanceof(Request), - response$: z.instanceof(Response), + errors: types.optional( + z.array(z.lazy(() => operations.GetServerResourcesError$inboundSchema)), + ), + request$: z.custom(x => x instanceof Request), + response$: z.custom(x => x instanceof Response), body$: z.string(), }) .transform((v) => { - const remapped = remap$(v, { - "RawResponse": "rawResponse", - }); - - return new GetServerResourcesUnauthorizedError(remapped, { + return new GetServerResourcesUnauthorizedError(v, { request: v.request$, response: v.response$, body: v.body$, diff --git a/src/sdk/models/errors/gettokendetails.ts b/src/models/errors/gettokendetails.ts similarity index 72% rename from src/sdk/models/errors/gettokendetails.ts rename to src/models/errors/gettokendetails.ts index 51afcca3..451544ae 100644 --- a/src/sdk/models/errors/gettokendetails.ts +++ b/src/models/errors/gettokendetails.ts @@ -2,8 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod/v4"; +import * as types from "../../types/primitives.js"; import * as operations from "../operations/index.js"; import { PlexAPIError } from "./plexapierror.js"; @@ -12,10 +12,6 @@ import { PlexAPIError } from "./plexapierror.js"; */ export type GetTokenDetailsUnauthorizedErrorData = { errors?: Array | undefined; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse?: Response | undefined; }; /** @@ -47,10 +43,6 @@ export class GetTokenDetailsUnauthorizedError extends PlexAPIError { */ export type GetTokenDetailsBadRequestErrorData = { errors?: Array | undefined; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse?: Response | undefined; }; /** @@ -80,23 +72,19 @@ export class GetTokenDetailsBadRequestError extends PlexAPIError { /** @internal */ export const GetTokenDetailsUnauthorizedError$inboundSchema: z.ZodType< GetTokenDetailsUnauthorizedError, - z.ZodTypeDef, unknown > = z.object({ - errors: z.array( - z.lazy(() => operations.GetTokenDetailsUnauthorizedError$inboundSchema), - ).optional(), - RawResponse: z.instanceof(Response).optional(), - request$: z.instanceof(Request), - response$: z.instanceof(Response), + errors: types.optional( + z.array(z.lazy(() => + operations.GetTokenDetailsUnauthorizedError$inboundSchema + )), + ), + request$: z.custom(x => x instanceof Request), + response$: z.custom(x => x instanceof Response), body$: z.string(), }) .transform((v) => { - const remapped = remap$(v, { - "RawResponse": "rawResponse", - }); - - return new GetTokenDetailsUnauthorizedError(remapped, { + return new GetTokenDetailsUnauthorizedError(v, { request: v.request$, response: v.response$, body: v.body$, @@ -106,23 +94,19 @@ export const GetTokenDetailsUnauthorizedError$inboundSchema: z.ZodType< /** @internal */ export const GetTokenDetailsBadRequestError$inboundSchema: z.ZodType< GetTokenDetailsBadRequestError, - z.ZodTypeDef, unknown > = z.object({ - errors: z.array( - z.lazy(() => operations.GetTokenDetailsBadRequestError$inboundSchema), - ).optional(), - RawResponse: z.instanceof(Response).optional(), - request$: z.instanceof(Request), - response$: z.instanceof(Response), + errors: types.optional( + z.array( + z.lazy(() => operations.GetTokenDetailsBadRequestError$inboundSchema), + ), + ), + request$: z.custom(x => x instanceof Request), + response$: z.custom(x => x instanceof Response), body$: z.string(), }) .transform((v) => { - const remapped = remap$(v, { - "RawResponse": "rawResponse", - }); - - return new GetTokenDetailsBadRequestError(remapped, { + return new GetTokenDetailsBadRequestError(v, { request: v.request$, response: v.response$, body: v.body$, diff --git a/src/sdk/models/errors/getusers.ts b/src/models/errors/getusers.ts similarity index 71% rename from src/sdk/models/errors/getusers.ts rename to src/models/errors/getusers.ts index 5cbca973..04192733 100644 --- a/src/sdk/models/errors/getusers.ts +++ b/src/models/errors/getusers.ts @@ -2,8 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod/v4"; +import * as types from "../../types/primitives.js"; import * as operations from "../operations/index.js"; import { PlexAPIError } from "./plexapierror.js"; @@ -12,10 +12,6 @@ import { PlexAPIError } from "./plexapierror.js"; */ export type GetUsersUnauthorizedErrorData = { errors?: Array | undefined; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse?: Response | undefined; }; /** @@ -47,10 +43,6 @@ export class GetUsersUnauthorizedError extends PlexAPIError { */ export type GetUsersBadRequestErrorData = { errors?: Array | undefined; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse?: Response | undefined; }; /** @@ -80,23 +72,17 @@ export class GetUsersBadRequestError extends PlexAPIError { /** @internal */ export const GetUsersUnauthorizedError$inboundSchema: z.ZodType< GetUsersUnauthorizedError, - z.ZodTypeDef, unknown > = z.object({ - errors: z.array( - z.lazy(() => operations.GetUsersUnauthorizedError$inboundSchema), - ).optional(), - RawResponse: z.instanceof(Response).optional(), - request$: z.instanceof(Request), - response$: z.instanceof(Response), + errors: types.optional( + z.array(z.lazy(() => operations.GetUsersUnauthorizedError$inboundSchema)), + ), + request$: z.custom(x => x instanceof Request), + response$: z.custom(x => x instanceof Response), body$: z.string(), }) .transform((v) => { - const remapped = remap$(v, { - "RawResponse": "rawResponse", - }); - - return new GetUsersUnauthorizedError(remapped, { + return new GetUsersUnauthorizedError(v, { request: v.request$, response: v.response$, body: v.body$, @@ -106,23 +92,17 @@ export const GetUsersUnauthorizedError$inboundSchema: z.ZodType< /** @internal */ export const GetUsersBadRequestError$inboundSchema: z.ZodType< GetUsersBadRequestError, - z.ZodTypeDef, unknown > = z.object({ - errors: z.array( - z.lazy(() => operations.GetUsersBadRequestError$inboundSchema), - ).optional(), - RawResponse: z.instanceof(Response).optional(), - request$: z.instanceof(Request), - response$: z.instanceof(Response), + errors: types.optional( + z.array(z.lazy(() => operations.GetUsersBadRequestError$inboundSchema)), + ), + request$: z.custom(x => x instanceof Request), + response$: z.custom(x => x instanceof Response), body$: z.string(), }) .transform((v) => { - const remapped = remap$(v, { - "RawResponse": "rawResponse", - }); - - return new GetUsersBadRequestError(remapped, { + return new GetUsersBadRequestError(v, { request: v.request$, response: v.response$, body: v.body$, diff --git a/src/sdk/models/errors/httpclienterrors.ts b/src/models/errors/httpclienterrors.ts similarity index 100% rename from src/sdk/models/errors/httpclienterrors.ts rename to src/models/errors/httpclienterrors.ts diff --git a/src/sdk/models/errors/index.ts b/src/models/errors/index.ts similarity index 100% rename from src/sdk/models/errors/index.ts rename to src/models/errors/index.ts diff --git a/src/sdk/models/errors/plexapierror.ts b/src/models/errors/plexapierror.ts similarity index 100% rename from src/sdk/models/errors/plexapierror.ts rename to src/models/errors/plexapierror.ts diff --git a/src/sdk/models/errors/postuserssignindata.ts b/src/models/errors/postuserssignindata.ts similarity index 72% rename from src/sdk/models/errors/postuserssignindata.ts rename to src/models/errors/postuserssignindata.ts index cc02b1e5..16fcccb8 100644 --- a/src/sdk/models/errors/postuserssignindata.ts +++ b/src/models/errors/postuserssignindata.ts @@ -2,8 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod/v4"; +import * as types from "../../types/primitives.js"; import * as operations from "../operations/index.js"; import { PlexAPIError } from "./plexapierror.js"; @@ -12,10 +12,6 @@ import { PlexAPIError } from "./plexapierror.js"; */ export type PostUsersSignInDataUnauthorizedErrorData = { errors?: Array | undefined; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse?: Response | undefined; }; /** @@ -47,10 +43,6 @@ export class PostUsersSignInDataUnauthorizedError extends PlexAPIError { */ export type PostUsersSignInDataBadRequestErrorData = { errors?: Array | undefined; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse?: Response | undefined; }; /** @@ -80,23 +72,19 @@ export class PostUsersSignInDataBadRequestError extends PlexAPIError { /** @internal */ export const PostUsersSignInDataUnauthorizedError$inboundSchema: z.ZodType< PostUsersSignInDataUnauthorizedError, - z.ZodTypeDef, unknown > = z.object({ - errors: z.array( - z.lazy(() => operations.PostUsersSignInDataUnauthorizedError$inboundSchema), - ).optional(), - RawResponse: z.instanceof(Response).optional(), - request$: z.instanceof(Request), - response$: z.instanceof(Response), + errors: types.optional( + z.array(z.lazy(() => + operations.PostUsersSignInDataUnauthorizedError$inboundSchema + )), + ), + request$: z.custom(x => x instanceof Request), + response$: z.custom(x => x instanceof Response), body$: z.string(), }) .transform((v) => { - const remapped = remap$(v, { - "RawResponse": "rawResponse", - }); - - return new PostUsersSignInDataUnauthorizedError(remapped, { + return new PostUsersSignInDataUnauthorizedError(v, { request: v.request$, response: v.response$, body: v.body$, @@ -106,23 +94,19 @@ export const PostUsersSignInDataUnauthorizedError$inboundSchema: z.ZodType< /** @internal */ export const PostUsersSignInDataBadRequestError$inboundSchema: z.ZodType< PostUsersSignInDataBadRequestError, - z.ZodTypeDef, unknown > = z.object({ - errors: z.array( - z.lazy(() => operations.PostUsersSignInDataBadRequestError$inboundSchema), - ).optional(), - RawResponse: z.instanceof(Response).optional(), - request$: z.instanceof(Request), - response$: z.instanceof(Response), + errors: types.optional( + z.array(z.lazy(() => + operations.PostUsersSignInDataBadRequestError$inboundSchema + )), + ), + request$: z.custom(x => x instanceof Request), + response$: z.custom(x => x instanceof Response), body$: z.string(), }) .transform((v) => { - const remapped = remap$(v, { - "RawResponse": "rawResponse", - }); - - return new PostUsersSignInDataBadRequestError(remapped, { + return new PostUsersSignInDataBadRequestError(v, { request: v.request$, response: v.response$, body: v.body$, diff --git a/src/sdk/models/errors/responsevalidationerror.ts b/src/models/errors/responsevalidationerror.ts similarity index 93% rename from src/sdk/models/errors/responsevalidationerror.ts rename to src/models/errors/responsevalidationerror.ts index 4066ba44..fb29c9fb 100644 --- a/src/sdk/models/errors/responsevalidationerror.ts +++ b/src/models/errors/responsevalidationerror.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; +import * as z from "zod/v4/core"; import { PlexAPIError } from "./plexapierror.js"; import { formatZodError } from "./sdkvalidationerror.js"; @@ -41,7 +41,7 @@ export class ResponseValidationError extends PlexAPIError { * default error message. */ public pretty(): string { - if (this.cause instanceof z.ZodError) { + if (this.cause instanceof z.$ZodError) { return `${this.rawMessage}\n${formatZodError(this.cause)}`; } else { return this.toString(); diff --git a/src/sdk/models/errors/sdkerror.ts b/src/models/errors/sdkerror.ts similarity index 100% rename from src/sdk/models/errors/sdkerror.ts rename to src/models/errors/sdkerror.ts diff --git a/src/models/errors/sdkvalidationerror.ts b/src/models/errors/sdkvalidationerror.ts new file mode 100644 index 00000000..db00022e --- /dev/null +++ b/src/models/errors/sdkvalidationerror.ts @@ -0,0 +1,54 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v4/core"; + +export class SDKValidationError extends Error { + /** + * The raw value that failed validation. + */ + public readonly rawValue: unknown; + + /** + * The raw message that failed validation. + */ + public readonly rawMessage: unknown; + + // Allows for backwards compatibility for `instanceof` checks of `ResponseValidationError` + static override [Symbol.hasInstance]( + instance: unknown, + ): instance is SDKValidationError { + if (!(instance instanceof Error)) return false; + if (!("rawValue" in instance)) return false; + if (!("rawMessage" in instance)) return false; + if (!("pretty" in instance)) return false; + if (typeof instance.pretty !== "function") return false; + return true; + } + + constructor(message: string, cause: unknown, rawValue: unknown) { + super(`${message}: ${cause}`); + this.name = "SDKValidationError"; + this.cause = cause; + this.rawValue = rawValue; + this.rawMessage = message; + } + + /** + * Return a pretty-formatted error message if the underlying validation error + * is a ZodError or some other recognized error type, otherwise return the + * default error message. + */ + public pretty(): string { + if (this.cause instanceof z.$ZodError) { + return `${this.rawMessage}\n${formatZodError(this.cause)}`; + } else { + return this.toString(); + } + } +} + +export function formatZodError(err: z.$ZodError): string { + return z.prettifyError(err); +} diff --git a/src/sdk/models/operations/addcollectionitems.ts b/src/models/operations/addcollectionitems.ts similarity index 71% rename from src/sdk/models/operations/addcollectionitems.ts rename to src/models/operations/addcollectionitems.ts index 6c168c9d..05810660 100644 --- a/src/sdk/models/operations/addcollectionitems.ts +++ b/src/models/operations/addcollectionitems.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type AddCollectionItemsGlobals = { @@ -111,25 +108,6 @@ export type AddCollectionItemsRequest = { uri: string; }; -export type AddCollectionItemsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; -}; - /** @internal */ export type AddCollectionItemsRequest$Outbound = { accepts: string; @@ -150,7 +128,6 @@ export type AddCollectionItemsRequest$Outbound = { /** @internal */ export const AddCollectionItemsRequest$outboundSchema: z.ZodType< AddCollectionItemsRequest$Outbound, - z.ZodTypeDef, AddCollectionItemsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -164,7 +141,7 @@ export const AddCollectionItemsRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - collectionId: z.number().int(), + collectionId: z.int(), uri: z.string(), }).transform((v) => { return remap$(v, { @@ -188,33 +165,3 @@ export function addCollectionItemsRequestToJSON( AddCollectionItemsRequest$outboundSchema.parse(addCollectionItemsRequest), ); } - -/** @internal */ -export const AddCollectionItemsResponse$inboundSchema: z.ZodType< - AddCollectionItemsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithMetadata": "mediaContainerWithMetadata", - }); -}); - -export function addCollectionItemsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddCollectionItemsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddCollectionItemsResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/adddevice.ts b/src/models/operations/adddevice.ts similarity index 72% rename from src/sdk/models/operations/adddevice.ts rename to src/models/operations/adddevice.ts index 2b0a03d1..59e363c2 100644 --- a/src/sdk/models/operations/adddevice.ts +++ b/src/models/operations/adddevice.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type AddDeviceGlobals = { @@ -107,25 +104,6 @@ export type AddDeviceRequest = { uri?: string | undefined; }; -export type AddDeviceResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithDevice?: shared.MediaContainerWithDevice | undefined; -}; - /** @internal */ export type AddDeviceRequest$Outbound = { accepts: string; @@ -145,7 +123,6 @@ export type AddDeviceRequest$Outbound = { /** @internal */ export const AddDeviceRequest$outboundSchema: z.ZodType< AddDeviceRequest$Outbound, - z.ZodTypeDef, AddDeviceRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -182,33 +159,3 @@ export function addDeviceRequestToJSON( AddDeviceRequest$outboundSchema.parse(addDeviceRequest), ); } - -/** @internal */ -export const AddDeviceResponse$inboundSchema: z.ZodType< - AddDeviceResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithDevice: shared.MediaContainerWithDevice$inboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithDevice": "mediaContainerWithDevice", - }); -}); - -export function addDeviceResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddDeviceResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddDeviceResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/adddevicetodvr.ts b/src/models/operations/adddevicetodvr.ts similarity index 83% rename from src/sdk/models/operations/adddevicetodvr.ts rename to src/models/operations/adddevicetodvr.ts index 6722913c..83e519fd 100644 --- a/src/sdk/models/operations/adddevicetodvr.ts +++ b/src/models/operations/adddevicetodvr.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -160,23 +161,8 @@ export type AddDeviceToDVRResponseBody = { }; export type AddDeviceToDVRResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: AddDeviceToDVRResponseBody | undefined; headers: { [k: string]: Array }; + result: AddDeviceToDVRResponseBody; }; /** @internal */ @@ -199,7 +185,6 @@ export type AddDeviceToDVRRequest$Outbound = { /** @internal */ export const AddDeviceToDVRRequest$outboundSchema: z.ZodType< AddDeviceToDVRRequest$Outbound, - z.ZodTypeDef, AddDeviceToDVRRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -213,8 +198,8 @@ export const AddDeviceToDVRRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - dvrId: z.number().int(), - deviceId: z.number().int(), + dvrId: z.int(), + deviceId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -240,14 +225,13 @@ export function addDeviceToDVRRequestToJSON( /** @internal */ export const AddDeviceToDVRMediaContainerMediaContainer$inboundSchema: - z.ZodType = - z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - status: z.number().int().optional(), - }); + z.ZodType = z.object({ + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + status: types.optional(types.number()), + }); export function addDeviceToDVRMediaContainerMediaContainerFromJSON( jsonString: string, @@ -268,14 +252,13 @@ export function addDeviceToDVRMediaContainerMediaContainerFromJSON( /** @internal */ export const AddDeviceToDVRDVR$inboundSchema: z.ZodType< AddDeviceToDVRDVR, - z.ZodTypeDef, unknown > = z.object({ - Device: z.array(shared.Device$inboundSchema).optional(), - key: z.string().optional(), - language: z.string().optional(), - lineup: z.string().optional(), - uuid: z.string().optional(), + Device: types.optional(z.array(shared.Device$inboundSchema)), + key: types.optional(types.string()), + language: types.optional(types.string()), + lineup: types.optional(types.string()), + uuid: types.optional(types.string()), }).transform((v) => { return remap$(v, { "Device": "device", @@ -295,13 +278,12 @@ export function addDeviceToDVRDVRFromJSON( /** @internal */ export const AddDeviceToDVRMediaContainer$inboundSchema: z.ZodType< AddDeviceToDVRMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => - AddDeviceToDVRMediaContainerMediaContainer$inboundSchema - ).optional(), - DVR: z.array(z.lazy(() => AddDeviceToDVRDVR$inboundSchema)).optional(), + MediaContainer: types.optional( + z.lazy(() => AddDeviceToDVRMediaContainerMediaContainer$inboundSchema), + ), + DVR: types.optional(z.array(z.lazy(() => AddDeviceToDVRDVR$inboundSchema))), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -322,11 +304,11 @@ export function addDeviceToDVRMediaContainerFromJSON( /** @internal */ export const AddDeviceToDVRResponseBody$inboundSchema: z.ZodType< AddDeviceToDVRResponseBody, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => AddDeviceToDVRMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => AddDeviceToDVRMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -346,20 +328,14 @@ export function addDeviceToDVRResponseBodyFromJSON( /** @internal */ export const AddDeviceToDVRResponse$inboundSchema: z.ZodType< AddDeviceToDVRResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => AddDeviceToDVRResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: z.lazy(() => AddDeviceToDVRResponseBody$inboundSchema), }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/adddownloadqueueitems.ts b/src/models/operations/adddownloadqueueitems.ts similarity index 84% rename from src/sdk/models/operations/adddownloadqueueitems.ts rename to src/models/operations/adddownloadqueueitems.ts index 2e74c98e..25f9ac1e 100644 --- a/src/sdk/models/operations/adddownloadqueueitems.ts +++ b/src/models/operations/adddownloadqueueitems.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -260,27 +261,8 @@ export type AddDownloadQueueItemsMediaContainer = { /** * OK */ -export type AddDownloadQueueItemsResponseBody = { - mediaContainer?: AddDownloadQueueItemsMediaContainer | undefined; -}; - export type AddDownloadQueueItemsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: AddDownloadQueueItemsResponseBody | undefined; + mediaContainer?: AddDownloadQueueItemsMediaContainer | undefined; }; /** @internal */ @@ -329,7 +311,6 @@ export type AddDownloadQueueItemsRequest$Outbound = { /** @internal */ export const AddDownloadQueueItemsRequest$outboundSchema: z.ZodType< AddDownloadQueueItemsRequest$Outbound, - z.ZodTypeDef, AddDownloadQueueItemsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -343,11 +324,11 @@ export const AddDownloadQueueItemsRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - queueId: z.number().int(), + queueId: z.int(), keys: z.array(z.string()), advancedSubtitles: shared.AdvancedSubtitles$outboundSchema.optional(), - audioBoost: z.number().int().optional(), - audioChannelCount: z.number().int().optional(), + audioBoost: z.int().optional(), + audioChannelCount: z.int().optional(), autoAdjustQuality: shared.BoolInt$outboundSchema.default( shared.BoolInt.False, ), @@ -364,20 +345,20 @@ export const AddDownloadQueueItemsRequest$outboundSchema: z.ZodType< ), hasMDE: shared.BoolInt$outboundSchema.default(shared.BoolInt.False), location: shared.LocationParameter$outboundSchema.optional(), - mediaBufferSize: z.number().int().optional(), - mediaIndex: z.number().int().optional(), - musicBitrate: z.number().int().optional(), + mediaBufferSize: z.int().optional(), + mediaIndex: z.int().optional(), + musicBitrate: z.int().optional(), offset: z.number().optional(), - partIndex: z.number().int().optional(), + partIndex: z.int().optional(), path: z.string().optional(), - peakBitrate: z.number().int().optional(), + peakBitrate: z.int().optional(), photoResolution: z.string().optional(), protocol: shared.ProtocolParameter$outboundSchema.optional(), - secondsPerSegment: z.number().int().optional(), - subtitleSize: z.number().int().optional(), + secondsPerSegment: z.int().optional(), + subtitleSize: z.int().optional(), subtitles: shared.Subtitles$outboundSchema.optional(), - videoBitrate: z.number().int().optional(), - videoQuality: z.number().int().optional(), + videoBitrate: z.int().optional(), + videoQuality: z.int().optional(), videoResolution: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -405,14 +386,11 @@ export function addDownloadQueueItemsRequestToJSON( } /** @internal */ -export const AddedQueueItem$inboundSchema: z.ZodType< - AddedQueueItem, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.number().int().optional(), - key: z.string().optional(), -}); +export const AddedQueueItem$inboundSchema: z.ZodType = + z.object({ + id: types.optional(types.number()), + key: types.optional(types.string()), + }); export function addedQueueItemFromJSON( jsonString: string, @@ -427,15 +405,15 @@ export function addedQueueItemFromJSON( /** @internal */ export const AddDownloadQueueItemsMediaContainer$inboundSchema: z.ZodType< AddDownloadQueueItemsMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - AddedQueueItems: z.array(z.lazy(() => AddedQueueItem$inboundSchema)) - .optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + AddedQueueItems: types.optional( + z.array(z.lazy(() => AddedQueueItem$inboundSchema)), + ), }).transform((v) => { return remap$(v, { "AddedQueueItems": "addedQueueItems", @@ -454,49 +432,19 @@ export function addDownloadQueueItemsMediaContainerFromJSON( } /** @internal */ -export const AddDownloadQueueItemsResponseBody$inboundSchema: z.ZodType< - AddDownloadQueueItemsResponseBody, - z.ZodTypeDef, +export const AddDownloadQueueItemsResponse$inboundSchema: z.ZodType< + AddDownloadQueueItemsResponse, unknown > = z.object({ - MediaContainer: z.lazy(() => - AddDownloadQueueItemsMediaContainer$inboundSchema - ).optional(), + MediaContainer: types.optional( + z.lazy(() => AddDownloadQueueItemsMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", }); }); -export function addDownloadQueueItemsResponseBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddDownloadQueueItemsResponseBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddDownloadQueueItemsResponseBody' from JSON`, - ); -} - -/** @internal */ -export const AddDownloadQueueItemsResponse$inboundSchema: z.ZodType< - AddDownloadQueueItemsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => AddDownloadQueueItemsResponseBody$inboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - export function addDownloadQueueItemsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/addextras.ts b/src/models/operations/addextras.ts similarity index 76% rename from src/sdk/models/operations/addextras.ts rename to src/models/operations/addextras.ts index 550b125a..49f41dae 100644 --- a/src/sdk/models/operations/addextras.ts +++ b/src/models/operations/addextras.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type AddExtrasGlobals = { @@ -116,21 +113,6 @@ export type AddExtrasRequest = { title?: string | undefined; }; -export type AddExtrasResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type AddExtrasRequest$Outbound = { accepts: string; @@ -153,7 +135,6 @@ export type AddExtrasRequest$Outbound = { /** @internal */ export const AddExtrasRequest$outboundSchema: z.ZodType< AddExtrasRequest$Outbound, - z.ZodTypeDef, AddExtrasRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -168,7 +149,7 @@ export const AddExtrasRequest$outboundSchema: z.ZodType< deviceName: z.string().optional(), marketplace: z.string().optional(), ids: z.string(), - extraType: z.number().int().optional(), + extraType: z.int().optional(), url: z.string(), title: z.string().optional(), }).transform((v) => { @@ -193,30 +174,3 @@ export function addExtrasRequestToJSON( AddExtrasRequest$outboundSchema.parse(addExtrasRequest), ); } - -/** @internal */ -export const AddExtrasResponse$inboundSchema: z.ZodType< - AddExtrasResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function addExtrasResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddExtrasResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddExtrasResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/addlineup.ts b/src/models/operations/addlineup.ts similarity index 82% rename from src/sdk/models/operations/addlineup.ts rename to src/models/operations/addlineup.ts index 1727d5fd..059e68ff 100644 --- a/src/sdk/models/operations/addlineup.ts +++ b/src/models/operations/addlineup.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -160,23 +161,8 @@ export type AddLineupResponseBody = { }; export type AddLineupResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: AddLineupResponseBody | undefined; headers: { [k: string]: Array }; + result: AddLineupResponseBody; }; /** @internal */ @@ -199,7 +185,6 @@ export type AddLineupRequest$Outbound = { /** @internal */ export const AddLineupRequest$outboundSchema: z.ZodType< AddLineupRequest$Outbound, - z.ZodTypeDef, AddLineupRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -213,7 +198,7 @@ export const AddLineupRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - dvrId: z.number().int(), + dvrId: z.int(), lineup: z.string(), }).transform((v) => { return remap$(v, { @@ -241,14 +226,13 @@ export function addLineupRequestToJSON( /** @internal */ export const AddLineupMediaContainerMediaContainer$inboundSchema: z.ZodType< AddLineupMediaContainerMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - status: z.number().int().optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + status: types.optional(types.number()), }); export function addLineupMediaContainerMediaContainerFromJSON( @@ -263,21 +247,18 @@ export function addLineupMediaContainerMediaContainerFromJSON( } /** @internal */ -export const AddLineupDVR$inboundSchema: z.ZodType< - AddLineupDVR, - z.ZodTypeDef, - unknown -> = z.object({ - Device: z.array(shared.Device$inboundSchema).optional(), - key: z.string().optional(), - language: z.string().optional(), - lineup: z.string().optional(), - uuid: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Device": "device", +export const AddLineupDVR$inboundSchema: z.ZodType = z + .object({ + Device: types.optional(z.array(shared.Device$inboundSchema)), + key: types.optional(types.string()), + language: types.optional(types.string()), + lineup: types.optional(types.string()), + uuid: types.optional(types.string()), + }).transform((v) => { + return remap$(v, { + "Device": "device", + }); }); -}); export function addLineupDVRFromJSON( jsonString: string, @@ -292,13 +273,12 @@ export function addLineupDVRFromJSON( /** @internal */ export const AddLineupMediaContainer$inboundSchema: z.ZodType< AddLineupMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => - AddLineupMediaContainerMediaContainer$inboundSchema - ).optional(), - DVR: z.array(z.lazy(() => AddLineupDVR$inboundSchema)).optional(), + MediaContainer: types.optional( + z.lazy(() => AddLineupMediaContainerMediaContainer$inboundSchema), + ), + DVR: types.optional(z.array(z.lazy(() => AddLineupDVR$inboundSchema))), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -319,11 +299,11 @@ export function addLineupMediaContainerFromJSON( /** @internal */ export const AddLineupResponseBody$inboundSchema: z.ZodType< AddLineupResponseBody, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => AddLineupMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => AddLineupMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -343,20 +323,14 @@ export function addLineupResponseBodyFromJSON( /** @internal */ export const AddLineupResponse$inboundSchema: z.ZodType< AddLineupResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => AddLineupResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: z.lazy(() => AddLineupResponseBody$inboundSchema), }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/addplaylistitems.ts b/src/models/operations/addplaylistitems.ts similarity index 71% rename from src/sdk/models/operations/addplaylistitems.ts rename to src/models/operations/addplaylistitems.ts index 5c306c1a..cb4415eb 100644 --- a/src/sdk/models/operations/addplaylistitems.ts +++ b/src/models/operations/addplaylistitems.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type AddPlaylistItemsGlobals = { @@ -115,27 +112,6 @@ export type AddPlaylistItemsRequest = { playQueueID?: number | undefined; }; -export type AddPlaylistItemsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithPlaylistMetadata?: - | shared.MediaContainerWithPlaylistMetadata - | undefined; -}; - /** @internal */ export type AddPlaylistItemsRequest$Outbound = { accepts: string; @@ -157,7 +133,6 @@ export type AddPlaylistItemsRequest$Outbound = { /** @internal */ export const AddPlaylistItemsRequest$outboundSchema: z.ZodType< AddPlaylistItemsRequest$Outbound, - z.ZodTypeDef, AddPlaylistItemsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -171,9 +146,9 @@ export const AddPlaylistItemsRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - playlistId: z.number().int(), + playlistId: z.int(), uri: z.string().optional(), - playQueueID: z.number().int().optional(), + playQueueID: z.int().optional(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -196,33 +171,3 @@ export function addPlaylistItemsRequestToJSON( AddPlaylistItemsRequest$outboundSchema.parse(addPlaylistItemsRequest), ); } - -/** @internal */ -export const AddPlaylistItemsResponse$inboundSchema: z.ZodType< - AddPlaylistItemsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithPlaylistMetadata: shared - .MediaContainerWithPlaylistMetadata$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithPlaylistMetadata": "mediaContainerWithPlaylistMetadata", - }); -}); - -export function addPlaylistItemsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddPlaylistItemsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddPlaylistItemsResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/addprovider.ts b/src/models/operations/addprovider.ts similarity index 75% rename from src/sdk/models/operations/addprovider.ts rename to src/models/operations/addprovider.ts index a0c596f5..3ad9cdbd 100644 --- a/src/sdk/models/operations/addprovider.ts +++ b/src/models/operations/addprovider.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type AddProviderGlobals = { @@ -107,21 +104,6 @@ export type AddProviderRequest = { url: string; }; -export type AddProviderResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type AddProviderRequest$Outbound = { accepts: string; @@ -141,7 +123,6 @@ export type AddProviderRequest$Outbound = { /** @internal */ export const AddProviderRequest$outboundSchema: z.ZodType< AddProviderRequest$Outbound, - z.ZodTypeDef, AddProviderRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -178,30 +159,3 @@ export function addProviderRequestToJSON( AddProviderRequest$outboundSchema.parse(addProviderRequest), ); } - -/** @internal */ -export const AddProviderResponse$inboundSchema: z.ZodType< - AddProviderResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function addProviderResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddProviderResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddProviderResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/addsection.ts b/src/models/operations/addsection.ts similarity index 78% rename from src/sdk/models/operations/addsection.ts rename to src/models/operations/addsection.ts index 665c04f9..ddc0f1b6 100644 --- a/src/sdk/models/operations/addsection.ts +++ b/src/models/operations/addsection.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type AddSectionGlobals = { @@ -148,32 +145,12 @@ export type AddSectionRequest = { importFromiTunes?: shared.BoolInt | undefined; }; -export type AddSectionResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - slashGetResponses200?: shared.SlashGetResponses200 | undefined; -}; - /** @internal */ export type AddSectionPrefs$Outbound = {}; /** @internal */ export const AddSectionPrefs$outboundSchema: z.ZodType< AddSectionPrefs$Outbound, - z.ZodTypeDef, AddSectionPrefs > = z.object({}); @@ -211,7 +188,6 @@ export type AddSectionRequest$Outbound = { /** @internal */ export const AddSectionRequest$outboundSchema: z.ZodType< AddSectionRequest$Outbound, - z.ZodTypeDef, AddSectionRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -226,7 +202,7 @@ export const AddSectionRequest$outboundSchema: z.ZodType< deviceName: z.string().optional(), marketplace: z.string().optional(), name: z.string(), - type: z.number().int(), + type: z.int(), scanner: z.string().optional(), agent: z.string(), metadataAgentProviderGroupId: z.string().optional(), @@ -257,33 +233,3 @@ export function addSectionRequestToJSON( AddSectionRequest$outboundSchema.parse(addSectionRequest), ); } - -/** @internal */ -export const AddSectionResponse$inboundSchema: z.ZodType< - AddSectionResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - "slash-get-responses-200": shared.SlashGetResponses200$inboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "slash-get-responses-200": "slashGetResponses200", - }); -}); - -export function addSectionResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddSectionResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddSectionResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/addsubtitles.ts b/src/models/operations/addsubtitles.ts similarity index 77% rename from src/sdk/models/operations/addsubtitles.ts rename to src/models/operations/addsubtitles.ts index ab171516..9e41f566 100644 --- a/src/sdk/models/operations/addsubtitles.ts +++ b/src/models/operations/addsubtitles.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type AddSubtitlesGlobals = { @@ -114,21 +111,6 @@ export type AddSubtitlesRequest = { hearingImpaired?: shared.BoolInt | undefined; }; -export type AddSubtitlesResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type AddSubtitlesRequest$Outbound = { accepts: string; @@ -155,7 +137,6 @@ export type AddSubtitlesRequest$Outbound = { /** @internal */ export const AddSubtitlesRequest$outboundSchema: z.ZodType< AddSubtitlesRequest$Outbound, - z.ZodTypeDef, AddSubtitlesRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -172,7 +153,7 @@ export const AddSubtitlesRequest$outboundSchema: z.ZodType< ids: z.string(), title: z.string().optional(), language: z.string().optional(), - mediaItemID: z.number().int().optional(), + mediaItemID: z.int().optional(), url: z.string().optional(), format: z.string().optional(), forced: shared.BoolInt$outboundSchema.default(shared.BoolInt.False), @@ -199,30 +180,3 @@ export function addSubtitlesRequestToJSON( AddSubtitlesRequest$outboundSchema.parse(addSubtitlesRequest), ); } - -/** @internal */ -export const AddSubtitlesResponse$inboundSchema: z.ZodType< - AddSubtitlesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function addSubtitlesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddSubtitlesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddSubtitlesResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/addtoplayqueue.ts b/src/models/operations/addtoplayqueue.ts similarity index 73% rename from src/sdk/models/operations/addtoplayqueue.ts rename to src/models/operations/addtoplayqueue.ts index 0585da78..cf89fd97 100644 --- a/src/sdk/models/operations/addtoplayqueue.ts +++ b/src/models/operations/addtoplayqueue.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type AddToPlayQueueGlobals = { @@ -119,27 +116,6 @@ export type AddToPlayQueueRequest = { next?: shared.BoolInt | undefined; }; -export type AddToPlayQueueResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithPlaylistMetadata?: - | shared.MediaContainerWithPlaylistMetadata - | undefined; -}; - /** @internal */ export type AddToPlayQueueRequest$Outbound = { accepts: string; @@ -162,7 +138,6 @@ export type AddToPlayQueueRequest$Outbound = { /** @internal */ export const AddToPlayQueueRequest$outboundSchema: z.ZodType< AddToPlayQueueRequest$Outbound, - z.ZodTypeDef, AddToPlayQueueRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -176,7 +151,7 @@ export const AddToPlayQueueRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - playQueueId: z.number().int(), + playQueueId: z.int(), uri: z.string().optional(), playlistID: z.string().optional(), next: shared.BoolInt$outboundSchema.default(shared.BoolInt.False), @@ -202,33 +177,3 @@ export function addToPlayQueueRequestToJSON( AddToPlayQueueRequest$outboundSchema.parse(addToPlayQueueRequest), ); } - -/** @internal */ -export const AddToPlayQueueResponse$inboundSchema: z.ZodType< - AddToPlayQueueResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithPlaylistMetadata: shared - .MediaContainerWithPlaylistMetadata$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithPlaylistMetadata": "mediaContainerWithPlaylistMetadata", - }); -}); - -export function addToPlayQueueResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddToPlayQueueResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddToPlayQueueResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/analyzemetadata.ts b/src/models/operations/analyzemetadata.ts similarity index 76% rename from src/sdk/models/operations/analyzemetadata.ts rename to src/models/operations/analyzemetadata.ts index f87d6378..ce126f52 100644 --- a/src/sdk/models/operations/analyzemetadata.ts +++ b/src/models/operations/analyzemetadata.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type AnalyzeMetadataGlobals = { @@ -112,21 +109,6 @@ export type AnalyzeMetadataRequest = { artOffset?: number | undefined; }; -export type AnalyzeMetadataResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type AnalyzeMetadataRequest$Outbound = { accepts: string; @@ -148,7 +130,6 @@ export type AnalyzeMetadataRequest$Outbound = { /** @internal */ export const AnalyzeMetadataRequest$outboundSchema: z.ZodType< AnalyzeMetadataRequest$Outbound, - z.ZodTypeDef, AnalyzeMetadataRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -187,30 +168,3 @@ export function analyzeMetadataRequestToJSON( AnalyzeMetadataRequest$outboundSchema.parse(analyzeMetadataRequest), ); } - -/** @internal */ -export const AnalyzeMetadataResponse$inboundSchema: z.ZodType< - AnalyzeMetadataResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function analyzeMetadataResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AnalyzeMetadataResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AnalyzeMetadataResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/applyupdates.ts b/src/models/operations/applyupdates.ts similarity index 77% rename from src/sdk/models/operations/applyupdates.ts rename to src/models/operations/applyupdates.ts index f6660f6f..9ada092e 100644 --- a/src/sdk/models/operations/applyupdates.ts +++ b/src/models/operations/applyupdates.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type ApplyUpdatesGlobals = { @@ -111,21 +108,6 @@ export type ApplyUpdatesRequest = { skip?: shared.BoolInt | undefined; }; -export type ApplyUpdatesResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type ApplyUpdatesRequest$Outbound = { accepts: string; @@ -146,7 +128,6 @@ export type ApplyUpdatesRequest$Outbound = { /** @internal */ export const ApplyUpdatesRequest$outboundSchema: z.ZodType< ApplyUpdatesRequest$Outbound, - z.ZodTypeDef, ApplyUpdatesRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -184,30 +165,3 @@ export function applyUpdatesRequestToJSON( ApplyUpdatesRequest$outboundSchema.parse(applyUpdatesRequest), ); } - -/** @internal */ -export const ApplyUpdatesResponse$inboundSchema: z.ZodType< - ApplyUpdatesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function applyUpdatesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplyUpdatesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplyUpdatesResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/autocomplete.ts b/src/models/operations/autocomplete.ts similarity index 85% rename from src/sdk/models/operations/autocomplete.ts rename to src/models/operations/autocomplete.ts index 4ac3b88c..a8022e20 100644 --- a/src/sdk/models/operations/autocomplete.ts +++ b/src/models/operations/autocomplete.ts @@ -2,9 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +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"; @@ -137,23 +137,8 @@ export type AutocompleteRequest = { }; export type AutocompleteResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; headers: { [k: string]: Array }; + result: shared.MediaContainerWithMetadata; }; /** @internal */ @@ -178,7 +163,6 @@ export type AutocompleteRequest$Outbound = { /** @internal */ export const AutocompleteRequest$outboundSchema: z.ZodType< AutocompleteRequest$Outbound, - z.ZodTypeDef, AutocompleteRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -192,8 +176,8 @@ export const AutocompleteRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - sectionId: z.number().int(), - type: z.number().int().optional(), + sectionId: z.int(), + type: z.int().optional(), fieldQuery: z.string().optional(), mediaQuery: shared.MediaQuery$outboundSchema.optional(), }).transform((v) => { @@ -223,22 +207,14 @@ export function autocompleteRequestToJSON( /** @internal */ export const AutocompleteResponse$inboundSchema: z.ZodType< AutocompleteResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema - .optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: shared.MediaContainerWithMetadata$inboundSchema, }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithMetadata": "mediaContainerWithMetadata", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/cancelactivity.ts b/src/models/operations/cancelactivity.ts similarity index 75% rename from src/sdk/models/operations/cancelactivity.ts rename to src/models/operations/cancelactivity.ts index fa4275f6..737e8193 100644 --- a/src/sdk/models/operations/cancelactivity.ts +++ b/src/models/operations/cancelactivity.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type CancelActivityGlobals = { @@ -107,21 +104,6 @@ export type CancelActivityRequest = { activityId: string; }; -export type CancelActivityResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type CancelActivityRequest$Outbound = { accepts: string; @@ -141,7 +123,6 @@ export type CancelActivityRequest$Outbound = { /** @internal */ export const CancelActivityRequest$outboundSchema: z.ZodType< CancelActivityRequest$Outbound, - z.ZodTypeDef, CancelActivityRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -178,30 +159,3 @@ export function cancelActivityRequestToJSON( CancelActivityRequest$outboundSchema.parse(cancelActivityRequest), ); } - -/** @internal */ -export const CancelActivityResponse$inboundSchema: z.ZodType< - CancelActivityResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function cancelActivityResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CancelActivityResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CancelActivityResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/cancelgrab.ts b/src/models/operations/cancelgrab.ts similarity index 75% rename from src/sdk/models/operations/cancelgrab.ts rename to src/models/operations/cancelgrab.ts index e33a628a..473b66f8 100644 --- a/src/sdk/models/operations/cancelgrab.ts +++ b/src/models/operations/cancelgrab.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type CancelGrabGlobals = { @@ -107,21 +104,6 @@ export type CancelGrabRequest = { operationId: string; }; -export type CancelGrabResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type CancelGrabRequest$Outbound = { accepts: string; @@ -141,7 +123,6 @@ export type CancelGrabRequest$Outbound = { /** @internal */ export const CancelGrabRequest$outboundSchema: z.ZodType< CancelGrabRequest$Outbound, - z.ZodTypeDef, CancelGrabRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -178,30 +159,3 @@ export function cancelGrabRequestToJSON( CancelGrabRequest$outboundSchema.parse(cancelGrabRequest), ); } - -/** @internal */ -export const CancelGrabResponse$inboundSchema: z.ZodType< - CancelGrabResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function cancelGrabResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CancelGrabResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CancelGrabResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/cancelrefresh.ts b/src/models/operations/cancelrefresh.ts similarity index 74% rename from src/sdk/models/operations/cancelrefresh.ts rename to src/models/operations/cancelrefresh.ts index 6a0a924a..365284bd 100644 --- a/src/sdk/models/operations/cancelrefresh.ts +++ b/src/models/operations/cancelrefresh.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type CancelRefreshGlobals = { @@ -107,21 +104,6 @@ export type CancelRefreshRequest = { sectionId: number; }; -export type CancelRefreshResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type CancelRefreshRequest$Outbound = { accepts: string; @@ -141,7 +123,6 @@ export type CancelRefreshRequest$Outbound = { /** @internal */ export const CancelRefreshRequest$outboundSchema: z.ZodType< CancelRefreshRequest$Outbound, - z.ZodTypeDef, CancelRefreshRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -155,7 +136,7 @@ export const CancelRefreshRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - sectionId: z.number().int(), + sectionId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -178,30 +159,3 @@ export function cancelRefreshRequestToJSON( CancelRefreshRequest$outboundSchema.parse(cancelRefreshRequest), ); } - -/** @internal */ -export const CancelRefreshResponse$inboundSchema: z.ZodType< - CancelRefreshResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function cancelRefreshResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CancelRefreshResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CancelRefreshResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/checkupdates.ts b/src/models/operations/checkupdates.ts similarity index 75% rename from src/sdk/models/operations/checkupdates.ts rename to src/models/operations/checkupdates.ts index 8f3df235..93126819 100644 --- a/src/sdk/models/operations/checkupdates.ts +++ b/src/models/operations/checkupdates.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type CheckUpdatesGlobals = { @@ -107,21 +104,6 @@ export type CheckUpdatesRequest = { download?: shared.BoolInt | undefined; }; -export type CheckUpdatesResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type CheckUpdatesRequest$Outbound = { accepts: string; @@ -141,7 +123,6 @@ export type CheckUpdatesRequest$Outbound = { /** @internal */ export const CheckUpdatesRequest$outboundSchema: z.ZodType< CheckUpdatesRequest$Outbound, - z.ZodTypeDef, CheckUpdatesRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -178,30 +159,3 @@ export function checkUpdatesRequestToJSON( CheckUpdatesRequest$outboundSchema.parse(checkUpdatesRequest), ); } - -/** @internal */ -export const CheckUpdatesResponse$inboundSchema: z.ZodType< - CheckUpdatesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function checkUpdatesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CheckUpdatesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CheckUpdatesResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/clearplaylistitems.ts b/src/models/operations/clearplaylistitems.ts similarity index 70% rename from src/sdk/models/operations/clearplaylistitems.ts rename to src/models/operations/clearplaylistitems.ts index 21fae2da..cb3166ed 100644 --- a/src/sdk/models/operations/clearplaylistitems.ts +++ b/src/models/operations/clearplaylistitems.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type ClearPlaylistItemsGlobals = { @@ -107,27 +104,6 @@ export type ClearPlaylistItemsRequest = { playlistId: number; }; -export type ClearPlaylistItemsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithPlaylistMetadata?: - | shared.MediaContainerWithPlaylistMetadata - | undefined; -}; - /** @internal */ export type ClearPlaylistItemsRequest$Outbound = { accepts: string; @@ -147,7 +123,6 @@ export type ClearPlaylistItemsRequest$Outbound = { /** @internal */ export const ClearPlaylistItemsRequest$outboundSchema: z.ZodType< ClearPlaylistItemsRequest$Outbound, - z.ZodTypeDef, ClearPlaylistItemsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -161,7 +136,7 @@ export const ClearPlaylistItemsRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - playlistId: z.number().int(), + playlistId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -184,33 +159,3 @@ export function clearPlaylistItemsRequestToJSON( ClearPlaylistItemsRequest$outboundSchema.parse(clearPlaylistItemsRequest), ); } - -/** @internal */ -export const ClearPlaylistItemsResponse$inboundSchema: z.ZodType< - ClearPlaylistItemsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithPlaylistMetadata: shared - .MediaContainerWithPlaylistMetadata$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithPlaylistMetadata": "mediaContainerWithPlaylistMetadata", - }); -}); - -export function clearPlaylistItemsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ClearPlaylistItemsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ClearPlaylistItemsResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/clearplayqueue.ts b/src/models/operations/clearplayqueue.ts similarity index 70% rename from src/sdk/models/operations/clearplayqueue.ts rename to src/models/operations/clearplayqueue.ts index eb511845..a0596652 100644 --- a/src/sdk/models/operations/clearplayqueue.ts +++ b/src/models/operations/clearplayqueue.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type ClearPlayQueueGlobals = { @@ -107,27 +104,6 @@ export type ClearPlayQueueRequest = { playQueueId: number; }; -export type ClearPlayQueueResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithPlaylistMetadata?: - | shared.MediaContainerWithPlaylistMetadata - | undefined; -}; - /** @internal */ export type ClearPlayQueueRequest$Outbound = { accepts: string; @@ -147,7 +123,6 @@ export type ClearPlayQueueRequest$Outbound = { /** @internal */ export const ClearPlayQueueRequest$outboundSchema: z.ZodType< ClearPlayQueueRequest$Outbound, - z.ZodTypeDef, ClearPlayQueueRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -161,7 +136,7 @@ export const ClearPlayQueueRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - playQueueId: z.number().int(), + playQueueId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -184,33 +159,3 @@ export function clearPlayQueueRequestToJSON( ClearPlayQueueRequest$outboundSchema.parse(clearPlayQueueRequest), ); } - -/** @internal */ -export const ClearPlayQueueResponse$inboundSchema: z.ZodType< - ClearPlayQueueResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithPlaylistMetadata: shared - .MediaContainerWithPlaylistMetadata$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithPlaylistMetadata": "mediaContainerWithPlaylistMetadata", - }); -}); - -export function clearPlayQueueResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ClearPlayQueueResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ClearPlayQueueResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/computechannelmap.ts b/src/models/operations/computechannelmap.ts similarity index 85% rename from src/sdk/models/operations/computechannelmap.ts rename to src/models/operations/computechannelmap.ts index db0bd745..d65bb99f 100644 --- a/src/sdk/models/operations/computechannelmap.ts +++ b/src/models/operations/computechannelmap.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -157,23 +158,8 @@ export type ComputeChannelMapResponseBody = { }; export type ComputeChannelMapResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: ComputeChannelMapResponseBody | undefined; headers: { [k: string]: Array }; + result: ComputeChannelMapResponseBody; }; /** @internal */ @@ -196,7 +182,6 @@ export type ComputeChannelMapRequest$Outbound = { /** @internal */ export const ComputeChannelMapRequest$outboundSchema: z.ZodType< ComputeChannelMapRequest$Outbound, - z.ZodTypeDef, ComputeChannelMapRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -238,13 +223,12 @@ export function computeChannelMapRequestToJSON( /** @internal */ export const ComputeChannelMapChannelMapping$inboundSchema: z.ZodType< ComputeChannelMapChannelMapping, - z.ZodTypeDef, unknown > = z.object({ - channelKey: z.string().optional(), - deviceIdentifier: z.string().optional(), - favorite: z.boolean().optional(), - lineupIdentifier: z.string().optional(), + channelKey: types.optional(types.string()), + deviceIdentifier: types.optional(types.string()), + favorite: types.optional(types.boolean()), + lineupIdentifier: types.optional(types.string()), }); export function computeChannelMapChannelMappingFromJSON( @@ -260,16 +244,15 @@ export function computeChannelMapChannelMappingFromJSON( /** @internal */ export const ComputeChannelMapMediaContainer$inboundSchema: z.ZodType< ComputeChannelMapMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - ChannelMapping: z.array( - z.lazy(() => ComputeChannelMapChannelMapping$inboundSchema), - ).optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + ChannelMapping: types.optional( + z.array(z.lazy(() => ComputeChannelMapChannelMapping$inboundSchema)), + ), }).transform((v) => { return remap$(v, { "ChannelMapping": "channelMapping", @@ -289,11 +272,11 @@ export function computeChannelMapMediaContainerFromJSON( /** @internal */ export const ComputeChannelMapResponseBody$inboundSchema: z.ZodType< ComputeChannelMapResponseBody, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => ComputeChannelMapMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => ComputeChannelMapMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -313,20 +296,14 @@ export function computeChannelMapResponseBodyFromJSON( /** @internal */ export const ComputeChannelMapResponse$inboundSchema: z.ZodType< ComputeChannelMapResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => ComputeChannelMapResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: z.lazy(() => ComputeChannelMapResponseBody$inboundSchema), }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/connectwebsocket.ts b/src/models/operations/connectwebsocket.ts similarity index 74% rename from src/sdk/models/operations/connectwebsocket.ts rename to src/models/operations/connectwebsocket.ts index 98ab28d2..1bf39ce7 100644 --- a/src/sdk/models/operations/connectwebsocket.ts +++ b/src/models/operations/connectwebsocket.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type ConnectWebSocketGlobals = { @@ -114,25 +111,6 @@ export type ConnectWebSocketRequest = { filter?: Array | undefined; }; -export type ConnectWebSocketResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - responseStream?: ReadableStream | undefined; -}; - /** @internal */ export type ConnectWebSocketRequest$Outbound = { accepts: string; @@ -152,7 +130,6 @@ export type ConnectWebSocketRequest$Outbound = { /** @internal */ export const ConnectWebSocketRequest$outboundSchema: z.ZodType< ConnectWebSocketRequest$Outbound, - z.ZodTypeDef, ConnectWebSocketRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -189,32 +166,3 @@ export function connectWebSocketRequestToJSON( ConnectWebSocketRequest$outboundSchema.parse(connectWebSocketRequest), ); } - -/** @internal */ -export const ConnectWebSocketResponse$inboundSchema: z.ZodType< - ConnectWebSocketResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - "response-stream": z.instanceof(ReadableStream).optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "response-stream": "responseStream", - }); -}); - -export function connectWebSocketResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ConnectWebSocketResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ConnectWebSocketResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/createcollection.ts b/src/models/operations/createcollection.ts similarity index 75% rename from src/sdk/models/operations/createcollection.ts rename to src/models/operations/createcollection.ts index 1502101f..e5c4e77d 100644 --- a/src/sdk/models/operations/createcollection.ts +++ b/src/models/operations/createcollection.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type CreateCollectionGlobals = { @@ -137,25 +134,6 @@ export type CreateCollectionRequest = { type?: shared.MediaType | undefined; }; -export type CreateCollectionResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; -}; - /** @internal */ export type CreateCollectionRequest$Outbound = { accepts: string; @@ -179,7 +157,6 @@ export type CreateCollectionRequest$Outbound = { /** @internal */ export const CreateCollectionRequest$outboundSchema: z.ZodType< CreateCollectionRequest$Outbound, - z.ZodTypeDef, CreateCollectionRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -220,33 +197,3 @@ export function createCollectionRequestToJSON( CreateCollectionRequest$outboundSchema.parse(createCollectionRequest), ); } - -/** @internal */ -export const CreateCollectionResponse$inboundSchema: z.ZodType< - CreateCollectionResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithMetadata": "mediaContainerWithMetadata", - }); -}); - -export function createCollectionResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CreateCollectionResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CreateCollectionResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/createcustomhub.ts b/src/models/operations/createcustomhub.ts similarity index 77% rename from src/sdk/models/operations/createcustomhub.ts rename to src/models/operations/createcustomhub.ts index 48a905c3..adfb0557 100644 --- a/src/sdk/models/operations/createcustomhub.ts +++ b/src/models/operations/createcustomhub.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type CreateCustomHubGlobals = { @@ -123,21 +120,6 @@ export type CreateCustomHubRequest = { promotedToSharedHome?: shared.BoolInt | undefined; }; -export type CreateCustomHubResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type CreateCustomHubRequest$Outbound = { accepts: string; @@ -161,7 +143,6 @@ export type CreateCustomHubRequest$Outbound = { /** @internal */ export const CreateCustomHubRequest$outboundSchema: z.ZodType< CreateCustomHubRequest$Outbound, - z.ZodTypeDef, CreateCustomHubRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -175,8 +156,8 @@ export const CreateCustomHubRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - sectionId: z.number().int(), - metadataItemId: z.number().int(), + sectionId: z.int(), + metadataItemId: z.int(), promotedToRecommended: shared.BoolInt$outboundSchema.default( shared.BoolInt.False, ), @@ -208,30 +189,3 @@ export function createCustomHubRequestToJSON( CreateCustomHubRequest$outboundSchema.parse(createCustomHubRequest), ); } - -/** @internal */ -export const CreateCustomHubResponse$inboundSchema: z.ZodType< - CreateCustomHubResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function createCustomHubResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CreateCustomHubResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CreateCustomHubResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/createdownloadqueue.ts b/src/models/operations/createdownloadqueue.ts similarity index 67% rename from src/sdk/models/operations/createdownloadqueue.ts rename to src/models/operations/createdownloadqueue.ts index 03a3db01..3457e980 100644 --- a/src/sdk/models/operations/createdownloadqueue.ts +++ b/src/models/operations/createdownloadqueue.ts @@ -2,10 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import * as openEnums from "../../types/enums.js"; +import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** @@ -25,6 +28,19 @@ export enum CreateDownloadQueueStatus { Done = "done", Error = "error", } +/** + * The state of this queue + * + * @remarks + * - deciding: At least one item is still being decided + * - waiting: At least one item is waiting for transcode and none are currently transcoding + * - processing: At least one item is being transcoded + * - done: All items are available (or potentially expired) + * - error: At least one item has encountered an error + */ +export type CreateDownloadQueueStatusOpen = OpenEnum< + typeof CreateDownloadQueueStatus +>; export type CreateDownloadQueueDownloadQueue = { id?: number | undefined; @@ -39,7 +55,7 @@ export type CreateDownloadQueueDownloadQueue = { * - done: All items are available (or potentially expired) * - error: At least one item has encountered an error */ - status?: CreateDownloadQueueStatus | undefined; + status?: CreateDownloadQueueStatusOpen | undefined; }; /** @@ -70,43 +86,24 @@ export type CreateDownloadQueueMediaContainer = { /** * OK */ -export type CreateDownloadQueueResponseBody = { +export type CreateDownloadQueueResponse = { mediaContainer?: CreateDownloadQueueMediaContainer | undefined; }; -export type CreateDownloadQueueResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: CreateDownloadQueueResponseBody | undefined; -}; - /** @internal */ -export const CreateDownloadQueueStatus$inboundSchema: z.ZodNativeEnum< - typeof CreateDownloadQueueStatus -> = z.nativeEnum(CreateDownloadQueueStatus); +export const CreateDownloadQueueStatus$inboundSchema: z.ZodType< + CreateDownloadQueueStatusOpen, + unknown +> = openEnums.inboundSchema(CreateDownloadQueueStatus); /** @internal */ export const CreateDownloadQueueDownloadQueue$inboundSchema: z.ZodType< CreateDownloadQueueDownloadQueue, - z.ZodTypeDef, unknown > = z.object({ - id: z.number().int().optional(), - itemCount: z.number().int().optional(), - status: CreateDownloadQueueStatus$inboundSchema.optional(), + id: types.optional(types.number()), + itemCount: types.optional(types.number()), + status: types.optional(CreateDownloadQueueStatus$inboundSchema), }); export function createDownloadQueueDownloadQueueFromJSON( @@ -122,16 +119,15 @@ export function createDownloadQueueDownloadQueueFromJSON( /** @internal */ export const CreateDownloadQueueMediaContainer$inboundSchema: z.ZodType< CreateDownloadQueueMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - DownloadQueue: z.array( - z.lazy(() => CreateDownloadQueueDownloadQueue$inboundSchema), - ).optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + DownloadQueue: types.optional( + z.array(z.lazy(() => CreateDownloadQueueDownloadQueue$inboundSchema)), + ), }).transform((v) => { return remap$(v, { "DownloadQueue": "downloadQueue", @@ -149,48 +145,19 @@ export function createDownloadQueueMediaContainerFromJSON( } /** @internal */ -export const CreateDownloadQueueResponseBody$inboundSchema: z.ZodType< - CreateDownloadQueueResponseBody, - z.ZodTypeDef, +export const CreateDownloadQueueResponse$inboundSchema: z.ZodType< + CreateDownloadQueueResponse, unknown > = z.object({ - MediaContainer: z.lazy(() => CreateDownloadQueueMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => CreateDownloadQueueMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", }); }); -export function createDownloadQueueResponseBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CreateDownloadQueueResponseBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CreateDownloadQueueResponseBody' from JSON`, - ); -} - -/** @internal */ -export const CreateDownloadQueueResponse$inboundSchema: z.ZodType< - CreateDownloadQueueResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => CreateDownloadQueueResponseBody$inboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - export function createDownloadQueueResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/createdvr.ts b/src/models/operations/createdvr.ts similarity index 82% rename from src/sdk/models/operations/createdvr.ts rename to src/models/operations/createdvr.ts index fab07140..a564270c 100644 --- a/src/sdk/models/operations/createdvr.ts +++ b/src/models/operations/createdvr.ts @@ -2,9 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +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"; @@ -116,25 +116,8 @@ export type CreateDVRRequest = { }; export type CreateDVRResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - dvrRequestHandlerSlashGetResponses200?: - | shared.DvrRequestHandlerSlashGetResponses200 - | undefined; headers: { [k: string]: Array }; + result: shared.DvrRequestHandlerSlashGetResponses200; }; /** @internal */ @@ -158,7 +141,6 @@ export type CreateDVRRequest$Outbound = { /** @internal */ export const CreateDVRRequest$outboundSchema: z.ZodType< CreateDVRRequest$Outbound, - z.ZodTypeDef, CreateDVRRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -201,23 +183,14 @@ export function createDVRRequestToJSON( /** @internal */ export const CreateDVRResponse$inboundSchema: z.ZodType< CreateDVRResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - "dvrRequestHandler_slash-get-responses-200": shared - .DvrRequestHandlerSlashGetResponses200$inboundSchema.optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: shared.DvrRequestHandlerSlashGetResponses200$inboundSchema, }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "dvrRequestHandler_slash-get-responses-200": - "dvrRequestHandlerSlashGetResponses200", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/createmarker.ts b/src/models/operations/createmarker.ts similarity index 78% rename from src/sdk/models/operations/createmarker.ts rename to src/models/operations/createmarker.ts index f717b956..55ade693 100644 --- a/src/sdk/models/operations/createmarker.ts +++ b/src/models/operations/createmarker.ts @@ -2,13 +2,16 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, safeParse, -} from "../../../lib/schemas.js"; +} from "../../lib/schemas.js"; +import * as openEnums from "../../types/enums.js"; +import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -135,6 +138,7 @@ export enum CreateMarkerType { Resume = "resume", Credit = "credit", } +export type CreateMarkerTypeOpen = OpenEnum; /** * `MediaContainer` is the root element of most Plex API responses. It serves as a generic container for various types of content (Metadata, Hubs, Directories, etc.) and includes pagination information (offset, size, totalSize) when applicable. @@ -163,34 +167,15 @@ export type CreateMarkerMediaContainer = { id?: number | undefined; startTimeOffset?: number | undefined; title?: string | undefined; - type?: CreateMarkerType | undefined; + type?: CreateMarkerTypeOpen | undefined; additionalProperties?: { [k: string]: any } | undefined; }; /** * OK */ -export type CreateMarkerResponseBody = { - mediaContainer?: CreateMarkerMediaContainer | undefined; -}; - export type CreateMarkerResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: CreateMarkerResponseBody | undefined; + mediaContainer?: CreateMarkerMediaContainer | undefined; }; /** @internal */ @@ -199,7 +184,6 @@ export type CreateMarkerAttributes$Outbound = {}; /** @internal */ export const CreateMarkerAttributes$outboundSchema: z.ZodType< CreateMarkerAttributes$Outbound, - z.ZodTypeDef, CreateMarkerAttributes > = z.object({}); @@ -234,7 +218,6 @@ export type CreateMarkerRequest$Outbound = { /** @internal */ export const CreateMarkerRequest$outboundSchema: z.ZodType< CreateMarkerRequest$Outbound, - z.ZodTypeDef, CreateMarkerRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -249,9 +232,9 @@ export const CreateMarkerRequest$outboundSchema: z.ZodType< deviceName: z.string().optional(), marketplace: z.string().optional(), ids: z.string(), - type: z.number().int(), - startTimeOffset: z.number().int(), - endTimeOffset: z.number().int().optional(), + type: z.int(), + startTimeOffset: z.int(), + endTimeOffset: z.int().optional(), attributes: z.lazy(() => CreateMarkerAttributes$outboundSchema).optional(), }).transform((v) => { return remap$(v, { @@ -277,27 +260,27 @@ export function createMarkerRequestToJSON( } /** @internal */ -export const CreateMarkerType$inboundSchema: z.ZodNativeEnum< - typeof CreateMarkerType -> = z.nativeEnum(CreateMarkerType); +export const CreateMarkerType$inboundSchema: z.ZodType< + CreateMarkerTypeOpen, + unknown +> = openEnums.inboundSchema(CreateMarkerType); /** @internal */ export const CreateMarkerMediaContainer$inboundSchema: z.ZodType< CreateMarkerMediaContainer, - z.ZodTypeDef, unknown > = collectExtraKeys$( z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - color: z.string().optional(), - endTimeOffset: z.number().int().optional(), - id: z.number().int().optional(), - startTimeOffset: z.number().int().optional(), - title: z.string().optional(), - type: CreateMarkerType$inboundSchema.optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + color: types.optional(types.string()), + endTimeOffset: types.optional(types.number()), + id: types.optional(types.number()), + startTimeOffset: types.optional(types.number()), + title: types.optional(types.string()), + type: types.optional(CreateMarkerType$inboundSchema), }).catchall(z.any()), "additionalProperties", true, @@ -314,47 +297,19 @@ export function createMarkerMediaContainerFromJSON( } /** @internal */ -export const CreateMarkerResponseBody$inboundSchema: z.ZodType< - CreateMarkerResponseBody, - z.ZodTypeDef, +export const CreateMarkerResponse$inboundSchema: z.ZodType< + CreateMarkerResponse, unknown > = z.object({ - MediaContainer: z.lazy(() => CreateMarkerMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => CreateMarkerMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", }); }); -export function createMarkerResponseBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CreateMarkerResponseBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CreateMarkerResponseBody' from JSON`, - ); -} - -/** @internal */ -export const CreateMarkerResponse$inboundSchema: z.ZodType< - CreateMarkerResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => CreateMarkerResponseBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - export function createMarkerResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/createplaylist.ts b/src/models/operations/createplaylist.ts similarity index 71% rename from src/sdk/models/operations/createplaylist.ts rename to src/models/operations/createplaylist.ts index bb7c1758..d7764bb5 100644 --- a/src/sdk/models/operations/createplaylist.ts +++ b/src/models/operations/createplaylist.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type CreatePlaylistGlobals = { @@ -111,27 +108,6 @@ export type CreatePlaylistRequest = { playQueueID?: number | undefined; }; -export type CreatePlaylistResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithPlaylistMetadata?: - | shared.MediaContainerWithPlaylistMetadata - | undefined; -}; - /** @internal */ export type CreatePlaylistRequest$Outbound = { accepts: string; @@ -152,7 +128,6 @@ export type CreatePlaylistRequest$Outbound = { /** @internal */ export const CreatePlaylistRequest$outboundSchema: z.ZodType< CreatePlaylistRequest$Outbound, - z.ZodTypeDef, CreatePlaylistRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -167,7 +142,7 @@ export const CreatePlaylistRequest$outboundSchema: z.ZodType< deviceName: z.string().optional(), marketplace: z.string().optional(), uri: z.string().optional(), - playQueueID: z.number().int().optional(), + playQueueID: z.int().optional(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -190,33 +165,3 @@ export function createPlaylistRequestToJSON( CreatePlaylistRequest$outboundSchema.parse(createPlaylistRequest), ); } - -/** @internal */ -export const CreatePlaylistResponse$inboundSchema: z.ZodType< - CreatePlaylistResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithPlaylistMetadata: shared - .MediaContainerWithPlaylistMetadata$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithPlaylistMetadata": "mediaContainerWithPlaylistMetadata", - }); -}); - -export function createPlaylistResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CreatePlaylistResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CreatePlaylistResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/createplayqueue.ts b/src/models/operations/createplayqueue.ts similarity index 85% rename from src/sdk/models/operations/createplayqueue.ts rename to src/models/operations/createplayqueue.ts index d914c047..36667b9d 100644 --- a/src/sdk/models/operations/createplayqueue.ts +++ b/src/models/operations/createplayqueue.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -220,29 +221,14 @@ export type CreatePlayQueueResponseBody = { }; export type CreatePlayQueueResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: CreatePlayQueueResponseBody | undefined; headers: { [k: string]: Array }; + result: CreatePlayQueueResponseBody; }; /** @internal */ -export const CreatePlayQueueType$outboundSchema: z.ZodNativeEnum< +export const CreatePlayQueueType$outboundSchema: z.ZodEnum< typeof CreatePlayQueueType -> = z.nativeEnum(CreatePlayQueueType); +> = z.enum(CreatePlayQueueType); /** @internal */ export type CreatePlayQueueRequest$Outbound = { @@ -272,7 +258,6 @@ export type CreatePlayQueueRequest$Outbound = { /** @internal */ export const CreatePlayQueueRequest$outboundSchema: z.ZodType< CreatePlayQueueRequest$Outbound, - z.ZodTypeDef, CreatePlayQueueRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -287,13 +272,13 @@ export const CreatePlayQueueRequest$outboundSchema: z.ZodType< deviceName: z.string().optional(), marketplace: z.string().optional(), uri: z.string().optional(), - playlistID: z.number().int().optional(), + playlistID: z.int().optional(), type: CreatePlayQueueType$outboundSchema, key: z.string().optional(), shuffle: shared.BoolInt$outboundSchema.default(shared.BoolInt.False), repeat: shared.BoolInt$outboundSchema.default(shared.BoolInt.False), continuous: shared.BoolInt$outboundSchema.default(shared.BoolInt.False), - extrasPrefixCount: z.number().int().optional(), + extrasPrefixCount: z.int().optional(), recursive: shared.BoolInt$outboundSchema.default(shared.BoolInt.False), onDeck: shared.BoolInt$outboundSchema.default(shared.BoolInt.False), }).transform((v) => { @@ -322,22 +307,21 @@ export function createPlayQueueRequestToJSON( /** @internal */ export const CreatePlayQueueMediaContainer$inboundSchema: z.ZodType< CreatePlayQueueMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - playQueueID: z.number().int().optional(), - playQueueLastAddedItemID: z.string().optional(), - playQueueSelectedItemID: z.number().int().optional(), - playQueueSelectedItemOffset: z.number().int().optional(), - playQueueSelectedMetadataItemID: z.number().int().optional(), - playQueueShuffled: z.boolean().optional(), - playQueueSourceURI: z.string().optional(), - playQueueTotalCount: z.number().int().optional(), - playQueueVersion: z.number().int().optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + playQueueID: types.optional(types.number()), + playQueueLastAddedItemID: types.optional(types.string()), + playQueueSelectedItemID: types.optional(types.number()), + playQueueSelectedItemOffset: types.optional(types.number()), + playQueueSelectedMetadataItemID: types.optional(types.number()), + playQueueShuffled: types.optional(types.boolean()), + playQueueSourceURI: types.optional(types.string()), + playQueueTotalCount: types.optional(types.number()), + playQueueVersion: types.optional(types.number()), }); export function createPlayQueueMediaContainerFromJSON( @@ -353,11 +337,11 @@ export function createPlayQueueMediaContainerFromJSON( /** @internal */ export const CreatePlayQueueResponseBody$inboundSchema: z.ZodType< CreatePlayQueueResponseBody, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => CreatePlayQueueMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => CreatePlayQueueMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -377,20 +361,14 @@ export function createPlayQueueResponseBodyFromJSON( /** @internal */ export const CreatePlayQueueResponse$inboundSchema: z.ZodType< CreatePlayQueueResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => CreatePlayQueueResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: z.lazy(() => CreatePlayQueueResponseBody$inboundSchema), }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/createsubscription.ts b/src/models/operations/createsubscription.ts similarity index 86% rename from src/sdk/models/operations/createsubscription.ts rename to src/models/operations/createsubscription.ts index b5040b26..53c90783 100644 --- a/src/sdk/models/operations/createsubscription.ts +++ b/src/models/operations/createsubscription.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -183,34 +184,17 @@ export type CreateSubscriptionResponseBody = { }; export type CreateSubscriptionResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: CreateSubscriptionResponseBody | undefined; headers: { [k: string]: Array }; + result: CreateSubscriptionResponseBody; }; /** @internal */ export type Hints$Outbound = {}; /** @internal */ -export const Hints$outboundSchema: z.ZodType< - Hints$Outbound, - z.ZodTypeDef, - Hints -> = z.object({}); +export const Hints$outboundSchema: z.ZodType = z.object( + {}, +); export function hintsToJSON(hints: Hints): string { return JSON.stringify(Hints$outboundSchema.parse(hints)); @@ -222,7 +206,6 @@ export type CreateSubscriptionPrefs$Outbound = {}; /** @internal */ export const CreateSubscriptionPrefs$outboundSchema: z.ZodType< CreateSubscriptionPrefs$Outbound, - z.ZodTypeDef, CreateSubscriptionPrefs > = z.object({}); @@ -238,11 +221,8 @@ export function createSubscriptionPrefsToJSON( export type Params$Outbound = {}; /** @internal */ -export const Params$outboundSchema: z.ZodType< - Params$Outbound, - z.ZodTypeDef, - Params -> = z.object({}); +export const Params$outboundSchema: z.ZodType = z + .object({}); export function paramsToJSON(params: Params): string { return JSON.stringify(Params$outboundSchema.parse(params)); @@ -272,7 +252,6 @@ export type CreateSubscriptionRequest$Outbound = { /** @internal */ export const CreateSubscriptionRequest$outboundSchema: z.ZodType< CreateSubscriptionRequest$Outbound, - z.ZodTypeDef, CreateSubscriptionRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -286,9 +265,9 @@ export const CreateSubscriptionRequest$outboundSchema: z.ZodType< 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(), + targetLibrarySectionID: z.int().optional(), + targetSectionLocationID: z.int().optional(), + type: z.int().optional(), hints: z.lazy(() => Hints$outboundSchema).optional(), prefs: z.lazy(() => CreateSubscriptionPrefs$outboundSchema).optional(), params: z.lazy(() => Params$outboundSchema).optional(), @@ -318,14 +297,15 @@ export function createSubscriptionRequestToJSON( /** @internal */ export const CreateSubscriptionMediaContainer$inboundSchema: z.ZodType< CreateSubscriptionMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - MediaSubscription: z.array(shared.MediaSubscription$inboundSchema).optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + MediaSubscription: types.optional( + z.array(shared.MediaSubscription$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaSubscription": "mediaSubscription", @@ -345,11 +325,11 @@ export function createSubscriptionMediaContainerFromJSON( /** @internal */ export const CreateSubscriptionResponseBody$inboundSchema: z.ZodType< CreateSubscriptionResponseBody, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => CreateSubscriptionMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => CreateSubscriptionMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -369,20 +349,14 @@ export function createSubscriptionResponseBodyFromJSON( /** @internal */ export const CreateSubscriptionResponse$inboundSchema: z.ZodType< CreateSubscriptionResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => CreateSubscriptionResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: z.lazy(() => CreateSubscriptionResponseBody$inboundSchema), }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/deletecollection.ts b/src/models/operations/deletecollection.ts similarity index 74% rename from src/sdk/models/operations/deletecollection.ts rename to src/models/operations/deletecollection.ts index 75149c9c..75803cbf 100644 --- a/src/sdk/models/operations/deletecollection.ts +++ b/src/models/operations/deletecollection.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type DeleteCollectionGlobals = { @@ -111,21 +108,6 @@ export type DeleteCollectionRequest = { collectionId: number; }; -export type DeleteCollectionResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type DeleteCollectionRequest$Outbound = { accepts: string; @@ -146,7 +128,6 @@ export type DeleteCollectionRequest$Outbound = { /** @internal */ export const DeleteCollectionRequest$outboundSchema: z.ZodType< DeleteCollectionRequest$Outbound, - z.ZodTypeDef, DeleteCollectionRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -160,8 +141,8 @@ export const DeleteCollectionRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - sectionId: z.number().int(), - collectionId: z.number().int(), + sectionId: z.int(), + collectionId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -184,30 +165,3 @@ export function deleteCollectionRequestToJSON( DeleteCollectionRequest$outboundSchema.parse(deleteCollectionRequest), ); } - -/** @internal */ -export const DeleteCollectionResponse$inboundSchema: z.ZodType< - DeleteCollectionResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function deleteCollectionResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteCollectionResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteCollectionResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/deletecollectionitem.ts b/src/models/operations/deletecollectionitem.ts similarity index 70% rename from src/sdk/models/operations/deletecollectionitem.ts rename to src/models/operations/deletecollectionitem.ts index 9fdce9cf..88b552c2 100644 --- a/src/sdk/models/operations/deletecollectionitem.ts +++ b/src/models/operations/deletecollectionitem.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type DeleteCollectionItemGlobals = { @@ -111,25 +108,6 @@ export type DeleteCollectionItemRequest = { itemId: number; }; -export type DeleteCollectionItemResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; -}; - /** @internal */ export type DeleteCollectionItemRequest$Outbound = { accepts: string; @@ -150,7 +128,6 @@ export type DeleteCollectionItemRequest$Outbound = { /** @internal */ export const DeleteCollectionItemRequest$outboundSchema: z.ZodType< DeleteCollectionItemRequest$Outbound, - z.ZodTypeDef, DeleteCollectionItemRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -164,8 +141,8 @@ export const DeleteCollectionItemRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - collectionId: z.number().int(), - itemId: z.number().int(), + collectionId: z.int(), + itemId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -190,33 +167,3 @@ export function deleteCollectionItemRequestToJSON( ), ); } - -/** @internal */ -export const DeleteCollectionItemResponse$inboundSchema: z.ZodType< - DeleteCollectionItemResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithMetadata": "mediaContainerWithMetadata", - }); -}); - -export function deleteCollectionItemResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteCollectionItemResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteCollectionItemResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/deletecustomhub.ts b/src/models/operations/deletecustomhub.ts similarity index 75% rename from src/sdk/models/operations/deletecustomhub.ts rename to src/models/operations/deletecustomhub.ts index e5c23d95..22b5095e 100644 --- a/src/sdk/models/operations/deletecustomhub.ts +++ b/src/models/operations/deletecustomhub.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type DeleteCustomHubGlobals = { @@ -111,21 +108,6 @@ export type DeleteCustomHubRequest = { identifier: string; }; -export type DeleteCustomHubResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type DeleteCustomHubRequest$Outbound = { accepts: string; @@ -146,7 +128,6 @@ export type DeleteCustomHubRequest$Outbound = { /** @internal */ export const DeleteCustomHubRequest$outboundSchema: z.ZodType< DeleteCustomHubRequest$Outbound, - z.ZodTypeDef, DeleteCustomHubRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -160,7 +141,7 @@ export const DeleteCustomHubRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - sectionId: z.number().int(), + sectionId: z.int(), identifier: z.string(), }).transform((v) => { return remap$(v, { @@ -184,30 +165,3 @@ export function deleteCustomHubRequestToJSON( DeleteCustomHubRequest$outboundSchema.parse(deleteCustomHubRequest), ); } - -/** @internal */ -export const DeleteCustomHubResponse$inboundSchema: z.ZodType< - DeleteCustomHubResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function deleteCustomHubResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteCustomHubResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteCustomHubResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/deletedvr.ts b/src/models/operations/deletedvr.ts similarity index 74% rename from src/sdk/models/operations/deletedvr.ts rename to src/models/operations/deletedvr.ts index 68228867..42b761a3 100644 --- a/src/sdk/models/operations/deletedvr.ts +++ b/src/models/operations/deletedvr.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type DeleteDVRGlobals = { @@ -107,21 +104,6 @@ export type DeleteDVRRequest = { dvrId: number; }; -export type DeleteDVRResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type DeleteDVRRequest$Outbound = { accepts: string; @@ -141,7 +123,6 @@ export type DeleteDVRRequest$Outbound = { /** @internal */ export const DeleteDVRRequest$outboundSchema: z.ZodType< DeleteDVRRequest$Outbound, - z.ZodTypeDef, DeleteDVRRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -155,7 +136,7 @@ export const DeleteDVRRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - dvrId: z.number().int(), + dvrId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -178,30 +159,3 @@ export function deleteDVRRequestToJSON( DeleteDVRRequest$outboundSchema.parse(deleteDVRRequest), ); } - -/** @internal */ -export const DeleteDVRResponse$inboundSchema: z.ZodType< - DeleteDVRResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function deleteDVRResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteDVRResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteDVRResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/deletehistory.ts b/src/models/operations/deletehistory.ts similarity index 83% rename from src/sdk/models/operations/deletehistory.ts rename to src/models/operations/deletehistory.ts index 038389ae..a71eb62c 100644 --- a/src/sdk/models/operations/deletehistory.ts +++ b/src/models/operations/deletehistory.ts @@ -2,9 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +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"; @@ -108,23 +108,8 @@ export type DeleteHistoryRequest = { }; export type DeleteHistoryResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainer?: shared.MediaContainer | undefined; headers: { [k: string]: Array }; + result: shared.MediaContainer; }; /** @internal */ @@ -146,7 +131,6 @@ export type DeleteHistoryRequest$Outbound = { /** @internal */ export const DeleteHistoryRequest$outboundSchema: z.ZodType< DeleteHistoryRequest$Outbound, - z.ZodTypeDef, DeleteHistoryRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -160,7 +144,7 @@ export const DeleteHistoryRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - historyId: z.number().int(), + historyId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -187,21 +171,14 @@ export function deleteHistoryRequestToJSON( /** @internal */ export const DeleteHistoryResponse$inboundSchema: z.ZodType< DeleteHistoryResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainer: shared.MediaContainer$inboundSchema.optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: shared.MediaContainer$inboundSchema, }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainer": "mediaContainer", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/deleteindexes.ts b/src/models/operations/deleteindexes.ts similarity index 74% rename from src/sdk/models/operations/deleteindexes.ts rename to src/models/operations/deleteindexes.ts index f31ec1b7..621615aa 100644 --- a/src/sdk/models/operations/deleteindexes.ts +++ b/src/models/operations/deleteindexes.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type DeleteIndexesGlobals = { @@ -107,21 +104,6 @@ export type DeleteIndexesRequest = { sectionId: number; }; -export type DeleteIndexesResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type DeleteIndexesRequest$Outbound = { accepts: string; @@ -141,7 +123,6 @@ export type DeleteIndexesRequest$Outbound = { /** @internal */ export const DeleteIndexesRequest$outboundSchema: z.ZodType< DeleteIndexesRequest$Outbound, - z.ZodTypeDef, DeleteIndexesRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -155,7 +136,7 @@ export const DeleteIndexesRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - sectionId: z.number().int(), + sectionId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -178,30 +159,3 @@ export function deleteIndexesRequestToJSON( DeleteIndexesRequest$outboundSchema.parse(deleteIndexesRequest), ); } - -/** @internal */ -export const DeleteIndexesResponse$inboundSchema: z.ZodType< - DeleteIndexesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function deleteIndexesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteIndexesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteIndexesResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/deleteintros.ts b/src/models/operations/deleteintros.ts similarity index 74% rename from src/sdk/models/operations/deleteintros.ts rename to src/models/operations/deleteintros.ts index 2e0b4919..3f03ecca 100644 --- a/src/sdk/models/operations/deleteintros.ts +++ b/src/models/operations/deleteintros.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type DeleteIntrosGlobals = { @@ -107,21 +104,6 @@ export type DeleteIntrosRequest = { sectionId: number; }; -export type DeleteIntrosResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type DeleteIntrosRequest$Outbound = { accepts: string; @@ -141,7 +123,6 @@ export type DeleteIntrosRequest$Outbound = { /** @internal */ export const DeleteIntrosRequest$outboundSchema: z.ZodType< DeleteIntrosRequest$Outbound, - z.ZodTypeDef, DeleteIntrosRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -155,7 +136,7 @@ export const DeleteIntrosRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - sectionId: z.number().int(), + sectionId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -178,30 +159,3 @@ export function deleteIntrosRequestToJSON( DeleteIntrosRequest$outboundSchema.parse(deleteIntrosRequest), ); } - -/** @internal */ -export const DeleteIntrosResponse$inboundSchema: z.ZodType< - DeleteIntrosResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function deleteIntrosResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteIntrosResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteIntrosResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/deletelibrarysection.ts b/src/models/operations/deletelibrarysection.ts similarity index 76% rename from src/sdk/models/operations/deletelibrarysection.ts rename to src/models/operations/deletelibrarysection.ts index 74bd95d5..48ffe02a 100644 --- a/src/sdk/models/operations/deletelibrarysection.ts +++ b/src/models/operations/deletelibrarysection.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type DeleteLibrarySectionGlobals = { @@ -111,21 +108,6 @@ export type DeleteLibrarySectionRequest = { async?: shared.BoolInt | undefined; }; -export type DeleteLibrarySectionResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type DeleteLibrarySectionRequest$Outbound = { accepts: string; @@ -146,7 +128,6 @@ export type DeleteLibrarySectionRequest$Outbound = { /** @internal */ export const DeleteLibrarySectionRequest$outboundSchema: z.ZodType< DeleteLibrarySectionRequest$Outbound, - z.ZodTypeDef, DeleteLibrarySectionRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -186,30 +167,3 @@ export function deleteLibrarySectionRequestToJSON( ), ); } - -/** @internal */ -export const DeleteLibrarySectionResponse$inboundSchema: z.ZodType< - DeleteLibrarySectionResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function deleteLibrarySectionResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteLibrarySectionResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteLibrarySectionResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/deletelineup.ts b/src/models/operations/deletelineup.ts similarity index 84% rename from src/sdk/models/operations/deletelineup.ts rename to src/models/operations/deletelineup.ts index 4d9971e8..cbd5f160 100644 --- a/src/sdk/models/operations/deletelineup.ts +++ b/src/models/operations/deletelineup.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -160,23 +161,8 @@ export type DeleteLineupResponseBody = { }; export type DeleteLineupResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: DeleteLineupResponseBody | undefined; headers: { [k: string]: Array }; + result: DeleteLineupResponseBody; }; /** @internal */ @@ -199,7 +185,6 @@ export type DeleteLineupRequest$Outbound = { /** @internal */ export const DeleteLineupRequest$outboundSchema: z.ZodType< DeleteLineupRequest$Outbound, - z.ZodTypeDef, DeleteLineupRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -213,7 +198,7 @@ export const DeleteLineupRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - dvrId: z.number().int(), + dvrId: z.int(), lineup: z.string(), }).transform((v) => { return remap$(v, { @@ -241,14 +226,13 @@ export function deleteLineupRequestToJSON( /** @internal */ export const DeleteLineupMediaContainerMediaContainer$inboundSchema: z.ZodType< DeleteLineupMediaContainerMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - status: z.number().int().optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + status: types.optional(types.number()), }); export function deleteLineupMediaContainerMediaContainerFromJSON( @@ -270,14 +254,13 @@ export function deleteLineupMediaContainerMediaContainerFromJSON( /** @internal */ export const DeleteLineupDVR$inboundSchema: z.ZodType< DeleteLineupDVR, - z.ZodTypeDef, unknown > = z.object({ - Device: z.array(shared.Device$inboundSchema).optional(), - key: z.string().optional(), - language: z.string().optional(), - lineup: z.string().optional(), - uuid: z.string().optional(), + Device: types.optional(z.array(shared.Device$inboundSchema)), + key: types.optional(types.string()), + language: types.optional(types.string()), + lineup: types.optional(types.string()), + uuid: types.optional(types.string()), }).transform((v) => { return remap$(v, { "Device": "device", @@ -297,13 +280,12 @@ export function deleteLineupDVRFromJSON( /** @internal */ export const DeleteLineupMediaContainer$inboundSchema: z.ZodType< DeleteLineupMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => - DeleteLineupMediaContainerMediaContainer$inboundSchema - ).optional(), - DVR: z.array(z.lazy(() => DeleteLineupDVR$inboundSchema)).optional(), + MediaContainer: types.optional( + z.lazy(() => DeleteLineupMediaContainerMediaContainer$inboundSchema), + ), + DVR: types.optional(z.array(z.lazy(() => DeleteLineupDVR$inboundSchema))), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -324,11 +306,11 @@ export function deleteLineupMediaContainerFromJSON( /** @internal */ export const DeleteLineupResponseBody$inboundSchema: z.ZodType< DeleteLineupResponseBody, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => DeleteLineupMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => DeleteLineupMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -348,20 +330,14 @@ export function deleteLineupResponseBodyFromJSON( /** @internal */ export const DeleteLineupResponse$inboundSchema: z.ZodType< DeleteLineupResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => DeleteLineupResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: z.lazy(() => DeleteLineupResponseBody$inboundSchema), }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/deletemarker.ts b/src/models/operations/deletemarker.ts similarity index 75% rename from src/sdk/models/operations/deletemarker.ts rename to src/models/operations/deletemarker.ts index 8c0cc57b..d461d208 100644 --- a/src/sdk/models/operations/deletemarker.ts +++ b/src/models/operations/deletemarker.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type DeleteMarkerGlobals = { @@ -105,21 +102,6 @@ export type DeleteMarkerRequest = { marker: string; }; -export type DeleteMarkerResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type DeleteMarkerRequest$Outbound = { accepts: string; @@ -140,7 +122,6 @@ export type DeleteMarkerRequest$Outbound = { /** @internal */ export const DeleteMarkerRequest$outboundSchema: z.ZodType< DeleteMarkerRequest$Outbound, - z.ZodTypeDef, DeleteMarkerRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -178,30 +159,3 @@ export function deleteMarkerRequestToJSON( DeleteMarkerRequest$outboundSchema.parse(deleteMarkerRequest), ); } - -/** @internal */ -export const DeleteMarkerResponse$inboundSchema: z.ZodType< - DeleteMarkerResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function deleteMarkerResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteMarkerResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteMarkerResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/deletemediaitem.ts b/src/models/operations/deletemediaitem.ts similarity index 76% rename from src/sdk/models/operations/deletemediaitem.ts rename to src/models/operations/deletemediaitem.ts index a43d4bdc..402218a9 100644 --- a/src/sdk/models/operations/deletemediaitem.ts +++ b/src/models/operations/deletemediaitem.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type DeleteMediaItemGlobals = { @@ -109,21 +106,6 @@ export type DeleteMediaItemRequest = { proxy?: shared.BoolInt | undefined; }; -export type DeleteMediaItemResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type DeleteMediaItemRequest$Outbound = { accepts: string; @@ -145,7 +127,6 @@ export type DeleteMediaItemRequest$Outbound = { /** @internal */ export const DeleteMediaItemRequest$outboundSchema: z.ZodType< DeleteMediaItemRequest$Outbound, - z.ZodTypeDef, DeleteMediaItemRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -184,30 +165,3 @@ export function deleteMediaItemRequestToJSON( DeleteMediaItemRequest$outboundSchema.parse(deleteMediaItemRequest), ); } - -/** @internal */ -export const DeleteMediaItemResponse$inboundSchema: z.ZodType< - DeleteMediaItemResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function deleteMediaItemResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteMediaItemResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteMediaItemResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/deletemediaprovider.ts b/src/models/operations/deletemediaprovider.ts similarity index 74% rename from src/sdk/models/operations/deletemediaprovider.ts rename to src/models/operations/deletemediaprovider.ts index c22bda78..b4b92399 100644 --- a/src/sdk/models/operations/deletemediaprovider.ts +++ b/src/models/operations/deletemediaprovider.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type DeleteMediaProviderGlobals = { @@ -107,21 +104,6 @@ export type DeleteMediaProviderRequest = { provider: string; }; -export type DeleteMediaProviderResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type DeleteMediaProviderRequest$Outbound = { accepts: string; @@ -141,7 +123,6 @@ export type DeleteMediaProviderRequest$Outbound = { /** @internal */ export const DeleteMediaProviderRequest$outboundSchema: z.ZodType< DeleteMediaProviderRequest$Outbound, - z.ZodTypeDef, DeleteMediaProviderRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -178,30 +159,3 @@ export function deleteMediaProviderRequestToJSON( DeleteMediaProviderRequest$outboundSchema.parse(deleteMediaProviderRequest), ); } - -/** @internal */ -export const DeleteMediaProviderResponse$inboundSchema: z.ZodType< - DeleteMediaProviderResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function deleteMediaProviderResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteMediaProviderResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteMediaProviderResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/deletemetadataitem.ts b/src/models/operations/deletemetadataitem.ts similarity index 75% rename from src/sdk/models/operations/deletemetadataitem.ts rename to src/models/operations/deletemetadataitem.ts index 8ee35eac..ed65869f 100644 --- a/src/sdk/models/operations/deletemetadataitem.ts +++ b/src/models/operations/deletemetadataitem.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type DeleteMetadataItemGlobals = { @@ -108,21 +105,6 @@ export type DeleteMetadataItemRequest = { proxy?: shared.BoolInt | undefined; }; -export type DeleteMetadataItemResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type DeleteMetadataItemRequest$Outbound = { accepts: string; @@ -143,7 +125,6 @@ export type DeleteMetadataItemRequest$Outbound = { /** @internal */ export const DeleteMetadataItemRequest$outboundSchema: z.ZodType< DeleteMetadataItemRequest$Outbound, - z.ZodTypeDef, DeleteMetadataItemRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -181,30 +162,3 @@ export function deleteMetadataItemRequestToJSON( DeleteMetadataItemRequest$outboundSchema.parse(deleteMetadataItemRequest), ); } - -/** @internal */ -export const DeleteMetadataItemResponse$inboundSchema: z.ZodType< - DeleteMetadataItemResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function deleteMetadataItemResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteMetadataItemResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteMetadataItemResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/deleteplaylist.ts b/src/models/operations/deleteplaylist.ts similarity index 74% rename from src/sdk/models/operations/deleteplaylist.ts rename to src/models/operations/deleteplaylist.ts index f3a119e2..1bbe68ef 100644 --- a/src/sdk/models/operations/deleteplaylist.ts +++ b/src/models/operations/deleteplaylist.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type DeletePlaylistGlobals = { @@ -107,21 +104,6 @@ export type DeletePlaylistRequest = { playlistId: number; }; -export type DeletePlaylistResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type DeletePlaylistRequest$Outbound = { accepts: string; @@ -141,7 +123,6 @@ export type DeletePlaylistRequest$Outbound = { /** @internal */ export const DeletePlaylistRequest$outboundSchema: z.ZodType< DeletePlaylistRequest$Outbound, - z.ZodTypeDef, DeletePlaylistRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -155,7 +136,7 @@ export const DeletePlaylistRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - playlistId: z.number().int(), + playlistId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -178,30 +159,3 @@ export function deletePlaylistRequestToJSON( DeletePlaylistRequest$outboundSchema.parse(deletePlaylistRequest), ); } - -/** @internal */ -export const DeletePlaylistResponse$inboundSchema: z.ZodType< - DeletePlaylistResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function deletePlaylistResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeletePlaylistResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeletePlaylistResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/deleteplaylistitem.ts b/src/models/operations/deleteplaylistitem.ts similarity index 70% rename from src/sdk/models/operations/deleteplaylistitem.ts rename to src/models/operations/deleteplaylistitem.ts index a8d9fb18..8e1bf389 100644 --- a/src/sdk/models/operations/deleteplaylistitem.ts +++ b/src/models/operations/deleteplaylistitem.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type DeletePlaylistItemGlobals = { @@ -111,27 +108,6 @@ export type DeletePlaylistItemRequest = { generatorId: number; }; -export type DeletePlaylistItemResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithPlaylistMetadata?: - | shared.MediaContainerWithPlaylistMetadata - | undefined; -}; - /** @internal */ export type DeletePlaylistItemRequest$Outbound = { accepts: string; @@ -152,7 +128,6 @@ export type DeletePlaylistItemRequest$Outbound = { /** @internal */ export const DeletePlaylistItemRequest$outboundSchema: z.ZodType< DeletePlaylistItemRequest$Outbound, - z.ZodTypeDef, DeletePlaylistItemRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -166,8 +141,8 @@ export const DeletePlaylistItemRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - playlistId: z.number().int(), - generatorId: z.number().int(), + playlistId: z.int(), + generatorId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -190,33 +165,3 @@ export function deletePlaylistItemRequestToJSON( DeletePlaylistItemRequest$outboundSchema.parse(deletePlaylistItemRequest), ); } - -/** @internal */ -export const DeletePlaylistItemResponse$inboundSchema: z.ZodType< - DeletePlaylistItemResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithPlaylistMetadata: shared - .MediaContainerWithPlaylistMetadata$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithPlaylistMetadata": "mediaContainerWithPlaylistMetadata", - }); -}); - -export function deletePlaylistItemResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeletePlaylistItemResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeletePlaylistItemResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/deleteplayqueueitem.ts b/src/models/operations/deleteplayqueueitem.ts similarity index 70% rename from src/sdk/models/operations/deleteplayqueueitem.ts rename to src/models/operations/deleteplayqueueitem.ts index 87316c9e..22a578ae 100644 --- a/src/sdk/models/operations/deleteplayqueueitem.ts +++ b/src/models/operations/deleteplayqueueitem.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type DeletePlayQueueItemGlobals = { @@ -111,27 +108,6 @@ export type DeletePlayQueueItemRequest = { playQueueItemId: number; }; -export type DeletePlayQueueItemResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithPlaylistMetadata?: - | shared.MediaContainerWithPlaylistMetadata - | undefined; -}; - /** @internal */ export type DeletePlayQueueItemRequest$Outbound = { accepts: string; @@ -152,7 +128,6 @@ export type DeletePlayQueueItemRequest$Outbound = { /** @internal */ export const DeletePlayQueueItemRequest$outboundSchema: z.ZodType< DeletePlayQueueItemRequest$Outbound, - z.ZodTypeDef, DeletePlayQueueItemRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -166,8 +141,8 @@ export const DeletePlayQueueItemRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - playQueueId: z.number().int(), - playQueueItemId: z.number().int(), + playQueueId: z.int(), + playQueueItemId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -190,33 +165,3 @@ export function deletePlayQueueItemRequestToJSON( DeletePlayQueueItemRequest$outboundSchema.parse(deletePlayQueueItemRequest), ); } - -/** @internal */ -export const DeletePlayQueueItemResponse$inboundSchema: z.ZodType< - DeletePlayQueueItemResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithPlaylistMetadata: shared - .MediaContainerWithPlaylistMetadata$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithPlaylistMetadata": "mediaContainerWithPlaylistMetadata", - }); -}); - -export function deletePlayQueueItemResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeletePlayQueueItemResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeletePlayQueueItemResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/deletestream.ts b/src/models/operations/deletestream.ts similarity index 75% rename from src/sdk/models/operations/deletestream.ts rename to src/models/operations/deletestream.ts index 2fc564aa..3d05ce8d 100644 --- a/src/sdk/models/operations/deletestream.ts +++ b/src/models/operations/deletestream.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type DeleteStreamGlobals = { @@ -111,21 +108,6 @@ export type DeleteStreamRequest = { ext: string; }; -export type DeleteStreamResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type DeleteStreamRequest$Outbound = { accepts: string; @@ -146,7 +128,6 @@ export type DeleteStreamRequest$Outbound = { /** @internal */ export const DeleteStreamRequest$outboundSchema: z.ZodType< DeleteStreamRequest$Outbound, - z.ZodTypeDef, DeleteStreamRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -160,7 +141,7 @@ export const DeleteStreamRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - streamId: z.number().int(), + streamId: z.int(), ext: z.string(), }).transform((v) => { return remap$(v, { @@ -184,30 +165,3 @@ export function deleteStreamRequestToJSON( DeleteStreamRequest$outboundSchema.parse(deleteStreamRequest), ); } - -/** @internal */ -export const DeleteStreamResponse$inboundSchema: z.ZodType< - DeleteStreamResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function deleteStreamResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteStreamResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteStreamResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/deletesubscription.ts b/src/models/operations/deletesubscription.ts similarity index 74% rename from src/sdk/models/operations/deletesubscription.ts rename to src/models/operations/deletesubscription.ts index 274b5cff..4368a9a7 100644 --- a/src/sdk/models/operations/deletesubscription.ts +++ b/src/models/operations/deletesubscription.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type DeleteSubscriptionGlobals = { @@ -104,21 +101,6 @@ export type DeleteSubscriptionRequest = { subscriptionId: number; }; -export type DeleteSubscriptionResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type DeleteSubscriptionRequest$Outbound = { accepts: string; @@ -138,7 +120,6 @@ export type DeleteSubscriptionRequest$Outbound = { /** @internal */ export const DeleteSubscriptionRequest$outboundSchema: z.ZodType< DeleteSubscriptionRequest$Outbound, - z.ZodTypeDef, DeleteSubscriptionRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -152,7 +133,7 @@ export const DeleteSubscriptionRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - subscriptionId: z.number().int(), + subscriptionId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -175,30 +156,3 @@ export function deleteSubscriptionRequestToJSON( DeleteSubscriptionRequest$outboundSchema.parse(deleteSubscriptionRequest), ); } - -/** @internal */ -export const DeleteSubscriptionResponse$inboundSchema: z.ZodType< - DeleteSubscriptionResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function deleteSubscriptionResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteSubscriptionResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteSubscriptionResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/detectads.ts b/src/models/operations/detectads.ts similarity index 75% rename from src/sdk/models/operations/detectads.ts rename to src/models/operations/detectads.ts index 94afb077..5e28694a 100644 --- a/src/sdk/models/operations/detectads.ts +++ b/src/models/operations/detectads.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type DetectAdsGlobals = { @@ -104,21 +101,6 @@ export type DetectAdsRequest = { ids: string; }; -export type DetectAdsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type DetectAdsRequest$Outbound = { accepts: string; @@ -138,7 +120,6 @@ export type DetectAdsRequest$Outbound = { /** @internal */ export const DetectAdsRequest$outboundSchema: z.ZodType< DetectAdsRequest$Outbound, - z.ZodTypeDef, DetectAdsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -175,30 +156,3 @@ export function detectAdsRequestToJSON( DetectAdsRequest$outboundSchema.parse(detectAdsRequest), ); } - -/** @internal */ -export const DetectAdsResponse$inboundSchema: z.ZodType< - DetectAdsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function detectAdsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DetectAdsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DetectAdsResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/detectcredits.ts b/src/models/operations/detectcredits.ts similarity index 76% rename from src/sdk/models/operations/detectcredits.ts rename to src/models/operations/detectcredits.ts index 67d0386e..8b51aaa4 100644 --- a/src/sdk/models/operations/detectcredits.ts +++ b/src/models/operations/detectcredits.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type DetectCreditsGlobals = { @@ -106,21 +103,6 @@ export type DetectCreditsRequest = { manual?: shared.BoolInt | undefined; }; -export type DetectCreditsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type DetectCreditsRequest$Outbound = { accepts: string; @@ -142,7 +124,6 @@ export type DetectCreditsRequest$Outbound = { /** @internal */ export const DetectCreditsRequest$outboundSchema: z.ZodType< DetectCreditsRequest$Outbound, - z.ZodTypeDef, DetectCreditsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -181,30 +162,3 @@ export function detectCreditsRequestToJSON( DetectCreditsRequest$outboundSchema.parse(detectCreditsRequest), ); } - -/** @internal */ -export const DetectCreditsResponse$inboundSchema: z.ZodType< - DetectCreditsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function detectCreditsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DetectCreditsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DetectCreditsResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/detectintros.ts b/src/models/operations/detectintros.ts similarity index 76% rename from src/sdk/models/operations/detectintros.ts rename to src/models/operations/detectintros.ts index 57a37cc0..0ea86409 100644 --- a/src/sdk/models/operations/detectintros.ts +++ b/src/models/operations/detectintros.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type DetectIntrosGlobals = { @@ -112,21 +109,6 @@ export type DetectIntrosRequest = { threshold?: number | undefined; }; -export type DetectIntrosResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type DetectIntrosRequest$Outbound = { accepts: string; @@ -148,7 +130,6 @@ export type DetectIntrosRequest$Outbound = { /** @internal */ export const DetectIntrosRequest$outboundSchema: z.ZodType< DetectIntrosRequest$Outbound, - z.ZodTypeDef, DetectIntrosRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -187,30 +168,3 @@ export function detectIntrosRequestToJSON( DetectIntrosRequest$outboundSchema.parse(detectIntrosRequest), ); } - -/** @internal */ -export const DetectIntrosResponse$inboundSchema: z.ZodType< - DetectIntrosResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function detectIntrosResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DetectIntrosResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DetectIntrosResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/detectvoiceactivity.ts b/src/models/operations/detectvoiceactivity.ts similarity index 76% rename from src/sdk/models/operations/detectvoiceactivity.ts rename to src/models/operations/detectvoiceactivity.ts index 6cf34485..773ab862 100644 --- a/src/sdk/models/operations/detectvoiceactivity.ts +++ b/src/models/operations/detectvoiceactivity.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type DetectVoiceActivityGlobals = { @@ -112,21 +109,6 @@ export type DetectVoiceActivityRequest = { manual?: shared.BoolInt | undefined; }; -export type DetectVoiceActivityResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type DetectVoiceActivityRequest$Outbound = { accepts: string; @@ -148,7 +130,6 @@ export type DetectVoiceActivityRequest$Outbound = { /** @internal */ export const DetectVoiceActivityRequest$outboundSchema: z.ZodType< DetectVoiceActivityRequest$Outbound, - z.ZodTypeDef, DetectVoiceActivityRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -187,30 +168,3 @@ export function detectVoiceActivityRequestToJSON( DetectVoiceActivityRequest$outboundSchema.parse(detectVoiceActivityRequest), ); } - -/** @internal */ -export const DetectVoiceActivityResponse$inboundSchema: z.ZodType< - DetectVoiceActivityResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function detectVoiceActivityResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DetectVoiceActivityResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DetectVoiceActivityResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/editmarker.ts b/src/models/operations/editmarker.ts similarity index 75% rename from src/sdk/models/operations/editmarker.ts rename to src/models/operations/editmarker.ts index 82cb639b..fb8ddc5d 100644 --- a/src/sdk/models/operations/editmarker.ts +++ b/src/models/operations/editmarker.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type EditMarkerGlobals = { @@ -129,32 +126,12 @@ export type EditMarkerRequest = { attributes?: EditMarkerAttributes | undefined; }; -export type EditMarkerResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - postResponses200?: shared.PostResponses200 | undefined; -}; - /** @internal */ export type EditMarkerAttributes$Outbound = {}; /** @internal */ export const EditMarkerAttributes$outboundSchema: z.ZodType< EditMarkerAttributes$Outbound, - z.ZodTypeDef, EditMarkerAttributes > = z.object({}); @@ -190,7 +167,6 @@ export type EditMarkerRequest$Outbound = { /** @internal */ export const EditMarkerRequest$outboundSchema: z.ZodType< EditMarkerRequest$Outbound, - z.ZodTypeDef, EditMarkerRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -206,9 +182,9 @@ export const EditMarkerRequest$outboundSchema: z.ZodType< marketplace: z.string().optional(), ids: z.string(), marker: z.string(), - type: z.number().int(), - startTimeOffset: z.number().int(), - endTimeOffset: z.number().int().optional(), + type: z.int(), + startTimeOffset: z.int(), + endTimeOffset: z.int().optional(), attributes: z.lazy(() => EditMarkerAttributes$outboundSchema).optional(), }).transform((v) => { return remap$(v, { @@ -232,32 +208,3 @@ export function editMarkerRequestToJSON( EditMarkerRequest$outboundSchema.parse(editMarkerRequest), ); } - -/** @internal */ -export const EditMarkerResponse$inboundSchema: z.ZodType< - EditMarkerResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - "post-responses-200": shared.PostResponses200$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "post-responses-200": "postResponses200", - }); -}); - -export function editMarkerResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EditMarkerResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EditMarkerResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/editmetadataitem.ts b/src/models/operations/editmetadataitem.ts similarity index 77% rename from src/sdk/models/operations/editmetadataitem.ts rename to src/models/operations/editmetadataitem.ts index f7349e22..47785595 100644 --- a/src/sdk/models/operations/editmetadataitem.ts +++ b/src/models/operations/editmetadataitem.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type EditMetadataItemGlobals = { @@ -113,28 +110,12 @@ export type EditMetadataItemRequest = { args?: EditMetadataItemArgs | undefined; }; -export type EditMetadataItemResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type EditMetadataItemArgs$Outbound = {}; /** @internal */ export const EditMetadataItemArgs$outboundSchema: z.ZodType< EditMetadataItemArgs$Outbound, - z.ZodTypeDef, EditMetadataItemArgs > = z.object({}); @@ -166,7 +147,6 @@ export type EditMetadataItemRequest$Outbound = { /** @internal */ export const EditMetadataItemRequest$outboundSchema: z.ZodType< EditMetadataItemRequest$Outbound, - z.ZodTypeDef, EditMetadataItemRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -204,30 +184,3 @@ export function editMetadataItemRequestToJSON( EditMetadataItemRequest$outboundSchema.parse(editMetadataItemRequest), ); } - -/** @internal */ -export const EditMetadataItemResponse$inboundSchema: z.ZodType< - EditMetadataItemResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function editMetadataItemResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EditMetadataItemResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EditMetadataItemResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/editsection.ts b/src/models/operations/editsection.ts similarity index 80% rename from src/sdk/models/operations/editsection.ts rename to src/models/operations/editsection.ts index e86b1b61..f8292e95 100644 --- a/src/sdk/models/operations/editsection.ts +++ b/src/models/operations/editsection.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type EditSectionGlobals = { @@ -140,28 +137,12 @@ export type EditSectionRequest = { prefs?: EditSectionPrefs | undefined; }; -export type EditSectionResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type EditSectionPrefs$Outbound = {}; /** @internal */ export const EditSectionPrefs$outboundSchema: z.ZodType< EditSectionPrefs$Outbound, - z.ZodTypeDef, EditSectionPrefs > = z.object({}); @@ -199,7 +180,6 @@ export type EditSectionRequest$Outbound = { /** @internal */ export const EditSectionRequest$outboundSchema: z.ZodType< EditSectionRequest$Outbound, - z.ZodTypeDef, EditSectionRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -243,30 +223,3 @@ export function editSectionRequestToJSON( EditSectionRequest$outboundSchema.parse(editSectionRequest), ); } - -/** @internal */ -export const EditSectionResponse$inboundSchema: z.ZodType< - EditSectionResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function editSectionResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EditSectionResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EditSectionResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/editsubscriptionpreferences.ts b/src/models/operations/editsubscriptionpreferences.ts similarity index 73% rename from src/sdk/models/operations/editsubscriptionpreferences.ts rename to src/models/operations/editsubscriptionpreferences.ts index 7f1d2f57..361d53d0 100644 --- a/src/sdk/models/operations/editsubscriptionpreferences.ts +++ b/src/models/operations/editsubscriptionpreferences.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type EditSubscriptionPreferencesGlobals = { @@ -107,34 +104,12 @@ export type EditSubscriptionPreferencesRequest = { prefs?: EditSubscriptionPreferencesPrefs | undefined; }; -export type EditSubscriptionPreferencesResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithSubscription?: - | shared.MediaContainerWithSubscription - | undefined; -}; - /** @internal */ export type EditSubscriptionPreferencesPrefs$Outbound = {}; /** @internal */ export const EditSubscriptionPreferencesPrefs$outboundSchema: z.ZodType< EditSubscriptionPreferencesPrefs$Outbound, - z.ZodTypeDef, EditSubscriptionPreferencesPrefs > = z.object({}); @@ -168,7 +143,6 @@ export type EditSubscriptionPreferencesRequest$Outbound = { /** @internal */ export const EditSubscriptionPreferencesRequest$outboundSchema: z.ZodType< EditSubscriptionPreferencesRequest$Outbound, - z.ZodTypeDef, EditSubscriptionPreferencesRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -182,7 +156,7 @@ export const EditSubscriptionPreferencesRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - subscriptionId: z.number().int(), + subscriptionId: z.int(), prefs: z.lazy(() => EditSubscriptionPreferencesPrefs$outboundSchema) .optional(), }).transform((v) => { @@ -209,34 +183,3 @@ export function editSubscriptionPreferencesRequestToJSON( ), ); } - -/** @internal */ -export const EditSubscriptionPreferencesResponse$inboundSchema: z.ZodType< - EditSubscriptionPreferencesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithSubscription: shared - .MediaContainerWithSubscription$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithSubscription": "mediaContainerWithSubscription", - }); -}); - -export function editSubscriptionPreferencesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - EditSubscriptionPreferencesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EditSubscriptionPreferencesResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/emptytrash.ts b/src/models/operations/emptytrash.ts similarity index 74% rename from src/sdk/models/operations/emptytrash.ts rename to src/models/operations/emptytrash.ts index 7bc84327..baf40d68 100644 --- a/src/sdk/models/operations/emptytrash.ts +++ b/src/models/operations/emptytrash.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type EmptyTrashGlobals = { @@ -107,21 +104,6 @@ export type EmptyTrashRequest = { sectionId: number; }; -export type EmptyTrashResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type EmptyTrashRequest$Outbound = { accepts: string; @@ -141,7 +123,6 @@ export type EmptyTrashRequest$Outbound = { /** @internal */ export const EmptyTrashRequest$outboundSchema: z.ZodType< EmptyTrashRequest$Outbound, - z.ZodTypeDef, EmptyTrashRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -155,7 +136,7 @@ export const EmptyTrashRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - sectionId: z.number().int(), + sectionId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -178,30 +159,3 @@ export function emptyTrashRequestToJSON( EmptyTrashRequest$outboundSchema.parse(emptyTrashRequest), ); } - -/** @internal */ -export const EmptyTrashResponse$inboundSchema: z.ZodType< - EmptyTrashResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function emptyTrashResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EmptyTrashResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EmptyTrashResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/enablepapertrail.ts b/src/models/operations/enablepapertrail.ts similarity index 74% rename from src/sdk/models/operations/enablepapertrail.ts rename to src/models/operations/enablepapertrail.ts index 93c82cb1..24d117c4 100644 --- a/src/sdk/models/operations/enablepapertrail.ts +++ b/src/models/operations/enablepapertrail.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type EnablePapertrailGlobals = { @@ -107,21 +104,6 @@ export type EnablePapertrailRequest = { minutes?: number | undefined; }; -export type EnablePapertrailResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type EnablePapertrailRequest$Outbound = { accepts: string; @@ -141,7 +123,6 @@ export type EnablePapertrailRequest$Outbound = { /** @internal */ export const EnablePapertrailRequest$outboundSchema: z.ZodType< EnablePapertrailRequest$Outbound, - z.ZodTypeDef, EnablePapertrailRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -155,7 +136,7 @@ export const EnablePapertrailRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - minutes: z.number().int().optional(), + minutes: z.int().optional(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -178,30 +159,3 @@ export function enablePapertrailRequestToJSON( EnablePapertrailRequest$outboundSchema.parse(enablePapertrailRequest), ); } - -/** @internal */ -export const EnablePapertrailResponse$inboundSchema: z.ZodType< - EnablePapertrailResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function enablePapertrailResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EnablePapertrailResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EnablePapertrailResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/generatethumbs.ts b/src/models/operations/generatethumbs.ts similarity index 75% rename from src/sdk/models/operations/generatethumbs.ts rename to src/models/operations/generatethumbs.ts index 92c47941..cc0f4f2b 100644 --- a/src/sdk/models/operations/generatethumbs.ts +++ b/src/models/operations/generatethumbs.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type GenerateThumbsGlobals = { @@ -105,21 +102,6 @@ export type GenerateThumbsRequest = { force?: shared.BoolInt | undefined; }; -export type GenerateThumbsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type GenerateThumbsRequest$Outbound = { accepts: string; @@ -140,7 +122,6 @@ export type GenerateThumbsRequest$Outbound = { /** @internal */ export const GenerateThumbsRequest$outboundSchema: z.ZodType< GenerateThumbsRequest$Outbound, - z.ZodTypeDef, GenerateThumbsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -178,30 +159,3 @@ export function generateThumbsRequestToJSON( GenerateThumbsRequest$outboundSchema.parse(generateThumbsRequest), ); } - -/** @internal */ -export const GenerateThumbsResponse$inboundSchema: z.ZodType< - GenerateThumbsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function generateThumbsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GenerateThumbsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GenerateThumbsResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/getalbums.ts b/src/models/operations/getalbums.ts similarity index 71% rename from src/sdk/models/operations/getalbums.ts rename to src/models/operations/getalbums.ts index 645551ca..3a951af2 100644 --- a/src/sdk/models/operations/getalbums.ts +++ b/src/models/operations/getalbums.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type GetAlbumsGlobals = { @@ -107,25 +104,6 @@ export type GetAlbumsRequest = { sectionId: number; }; -export type GetAlbumsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; -}; - /** @internal */ export type GetAlbumsRequest$Outbound = { accepts: string; @@ -145,7 +123,6 @@ export type GetAlbumsRequest$Outbound = { /** @internal */ export const GetAlbumsRequest$outboundSchema: z.ZodType< GetAlbumsRequest$Outbound, - z.ZodTypeDef, GetAlbumsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -159,7 +136,7 @@ export const GetAlbumsRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - sectionId: z.number().int(), + sectionId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -182,33 +159,3 @@ export function getAlbumsRequestToJSON( GetAlbumsRequest$outboundSchema.parse(getAlbumsRequest), ); } - -/** @internal */ -export const GetAlbumsResponse$inboundSchema: z.ZodType< - GetAlbumsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithMetadata": "mediaContainerWithMetadata", - }); -}); - -export function getAlbumsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAlbumsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAlbumsResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/getallhubs.ts b/src/models/operations/getallhubs.ts similarity index 86% rename from src/sdk/models/operations/getallhubs.ts rename to src/models/operations/getallhubs.ts index 63bbe661..2326749c 100644 --- a/src/sdk/models/operations/getallhubs.ts +++ b/src/models/operations/getallhubs.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -148,23 +149,8 @@ export type GetAllHubsResponseBody = { }; export type GetAllHubsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: GetAllHubsResponseBody | undefined; headers: { [k: string]: Array }; + result: GetAllHubsResponseBody; }; /** @internal */ @@ -188,7 +174,6 @@ export type GetAllHubsRequest$Outbound = { /** @internal */ export const GetAllHubsRequest$outboundSchema: z.ZodType< GetAllHubsRequest$Outbound, - z.ZodTypeDef, GetAllHubsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -202,7 +187,7 @@ export const GetAllHubsRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - count: z.number().int().optional(), + count: z.int().optional(), onlyTransient: shared.BoolInt$outboundSchema.default(shared.BoolInt.False), identifier: z.array(z.string()).optional(), }).transform((v) => { @@ -231,14 +216,13 @@ export function getAllHubsRequestToJSON( /** @internal */ export const GetAllHubsMediaContainer$inboundSchema: z.ZodType< GetAllHubsMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - Hub: z.array(shared.Hub$inboundSchema).optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + Hub: types.optional(z.array(shared.Hub$inboundSchema)), }).transform((v) => { return remap$(v, { "Hub": "hub", @@ -258,11 +242,11 @@ export function getAllHubsMediaContainerFromJSON( /** @internal */ export const GetAllHubsResponseBody$inboundSchema: z.ZodType< GetAllHubsResponseBody, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => GetAllHubsMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => GetAllHubsMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -282,20 +266,14 @@ export function getAllHubsResponseBodyFromJSON( /** @internal */ export const GetAllHubsResponse$inboundSchema: z.ZodType< GetAllHubsResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetAllHubsResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: z.lazy(() => GetAllHubsResponseBody$inboundSchema), }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/getallitemleaves.ts b/src/models/operations/getallitemleaves.ts similarity index 83% rename from src/sdk/models/operations/getallitemleaves.ts rename to src/models/operations/getallitemleaves.ts index 4d605c4b..81f6536b 100644 --- a/src/sdk/models/operations/getallitemleaves.ts +++ b/src/models/operations/getallitemleaves.ts @@ -2,9 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +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"; @@ -105,23 +105,8 @@ export type GetAllItemLeavesRequest = { }; export type GetAllItemLeavesResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; headers: { [k: string]: Array }; + result: shared.MediaContainerWithMetadata; }; /** @internal */ @@ -143,7 +128,6 @@ export type GetAllItemLeavesRequest$Outbound = { /** @internal */ export const GetAllItemLeavesRequest$outboundSchema: z.ZodType< GetAllItemLeavesRequest$Outbound, - z.ZodTypeDef, GetAllItemLeavesRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -184,22 +168,14 @@ export function getAllItemLeavesRequestToJSON( /** @internal */ export const GetAllItemLeavesResponse$inboundSchema: z.ZodType< GetAllItemLeavesResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema - .optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: shared.MediaContainerWithMetadata$inboundSchema, }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithMetadata": "mediaContainerWithMetadata", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/getalllanguages.ts b/src/models/operations/getalllanguages.ts similarity index 73% rename from src/sdk/models/operations/getalllanguages.ts rename to src/models/operations/getalllanguages.ts index cec9e245..a00d090c 100644 --- a/src/sdk/models/operations/getalllanguages.ts +++ b/src/models/operations/getalllanguages.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type Language = { @@ -49,33 +50,14 @@ export type GetAllLanguagesResponseBody = { }; export type GetAllLanguagesResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: GetAllLanguagesResponseBody | undefined; headers: { [k: string]: Array }; + result: GetAllLanguagesResponseBody; }; /** @internal */ -export const Language$inboundSchema: z.ZodType< - Language, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.string().optional(), - title: z.string().optional(), +export const Language$inboundSchema: z.ZodType = z.object({ + code: types.optional(types.string()), + title: types.optional(types.string()), }); export function languageFromJSON( @@ -91,14 +73,13 @@ export function languageFromJSON( /** @internal */ export const GetAllLanguagesMediaContainer$inboundSchema: z.ZodType< GetAllLanguagesMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - Language: z.array(z.lazy(() => Language$inboundSchema)).optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + Language: types.optional(z.array(z.lazy(() => Language$inboundSchema))), }).transform((v) => { return remap$(v, { "Language": "language", @@ -118,11 +99,11 @@ export function getAllLanguagesMediaContainerFromJSON( /** @internal */ export const GetAllLanguagesResponseBody$inboundSchema: z.ZodType< GetAllLanguagesResponseBody, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => GetAllLanguagesMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => GetAllLanguagesMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -142,20 +123,14 @@ export function getAllLanguagesResponseBodyFromJSON( /** @internal */ export const GetAllLanguagesResponse$inboundSchema: z.ZodType< GetAllLanguagesResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetAllLanguagesResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: z.lazy(() => GetAllLanguagesResponseBody$inboundSchema), }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/getallleaves.ts b/src/models/operations/getallleaves.ts similarity index 71% rename from src/sdk/models/operations/getallleaves.ts rename to src/models/operations/getallleaves.ts index 3bcb14ff..be100420 100644 --- a/src/sdk/models/operations/getallleaves.ts +++ b/src/models/operations/getallleaves.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type GetAllLeavesGlobals = { @@ -107,25 +104,6 @@ export type GetAllLeavesRequest = { sectionId: number; }; -export type GetAllLeavesResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; -}; - /** @internal */ export type GetAllLeavesRequest$Outbound = { accepts: string; @@ -145,7 +123,6 @@ export type GetAllLeavesRequest$Outbound = { /** @internal */ export const GetAllLeavesRequest$outboundSchema: z.ZodType< GetAllLeavesRequest$Outbound, - z.ZodTypeDef, GetAllLeavesRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -159,7 +136,7 @@ export const GetAllLeavesRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - sectionId: z.number().int(), + sectionId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -182,33 +159,3 @@ export function getAllLeavesRequestToJSON( GetAllLeavesRequest$outboundSchema.parse(getAllLeavesRequest), ); } - -/** @internal */ -export const GetAllLeavesResponse$inboundSchema: z.ZodType< - GetAllLeavesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithMetadata": "mediaContainerWithMetadata", - }); -}); - -export function getAllLeavesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAllLeavesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAllLeavesResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/getallsubscriptions.ts b/src/models/operations/getallsubscriptions.ts similarity index 83% rename from src/sdk/models/operations/getallsubscriptions.ts rename to src/models/operations/getallsubscriptions.ts index 55fc5b4c..ad92db62 100644 --- a/src/sdk/models/operations/getallsubscriptions.ts +++ b/src/models/operations/getallsubscriptions.ts @@ -2,9 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +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"; @@ -112,25 +112,8 @@ export type GetAllSubscriptionsRequest = { }; export type GetAllSubscriptionsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithSubscription?: - | shared.MediaContainerWithSubscription - | undefined; headers: { [k: string]: Array }; + result: shared.MediaContainerWithSubscription; }; /** @internal */ @@ -153,7 +136,6 @@ export type GetAllSubscriptionsRequest$Outbound = { /** @internal */ export const GetAllSubscriptionsRequest$outboundSchema: z.ZodType< GetAllSubscriptionsRequest$Outbound, - z.ZodTypeDef, GetAllSubscriptionsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -195,22 +177,14 @@ export function getAllSubscriptionsRequestToJSON( /** @internal */ export const GetAllSubscriptionsResponse$inboundSchema: z.ZodType< GetAllSubscriptionsResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithSubscription: shared - .MediaContainerWithSubscription$inboundSchema.optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: shared.MediaContainerWithSubscription$inboundSchema, }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithSubscription": "mediaContainerWithSubscription", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/getarts.ts b/src/models/operations/getarts.ts similarity index 71% rename from src/sdk/models/operations/getarts.ts rename to src/models/operations/getarts.ts index ab34fb4f..6effd6d1 100644 --- a/src/sdk/models/operations/getarts.ts +++ b/src/models/operations/getarts.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type GetArtsGlobals = { @@ -107,25 +104,6 @@ export type GetArtsRequest = { sectionId: number; }; -export type GetArtsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithArtwork?: shared.MediaContainerWithArtwork | undefined; -}; - /** @internal */ export type GetArtsRequest$Outbound = { accepts: string; @@ -145,7 +123,6 @@ export type GetArtsRequest$Outbound = { /** @internal */ export const GetArtsRequest$outboundSchema: z.ZodType< GetArtsRequest$Outbound, - z.ZodTypeDef, GetArtsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -159,7 +136,7 @@ export const GetArtsRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - sectionId: z.number().int(), + sectionId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -178,33 +155,3 @@ export const GetArtsRequest$outboundSchema: z.ZodType< export function getArtsRequestToJSON(getArtsRequest: GetArtsRequest): string { return JSON.stringify(GetArtsRequest$outboundSchema.parse(getArtsRequest)); } - -/** @internal */ -export const GetArtsResponse$inboundSchema: z.ZodType< - GetArtsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithArtwork: shared.MediaContainerWithArtwork$inboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithArtwork": "mediaContainerWithArtwork", - }); -}); - -export function getArtsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetArtsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetArtsResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/getaugmentationstatus.ts b/src/models/operations/getaugmentationstatus.ts similarity index 75% rename from src/sdk/models/operations/getaugmentationstatus.ts rename to src/models/operations/getaugmentationstatus.ts index c2fa0198..0cba972d 100644 --- a/src/sdk/models/operations/getaugmentationstatus.ts +++ b/src/models/operations/getaugmentationstatus.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type GetAugmentationStatusGlobals = { @@ -111,21 +108,6 @@ export type GetAugmentationStatusRequest = { wait?: shared.BoolInt | undefined; }; -export type GetAugmentationStatusResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type GetAugmentationStatusRequest$Outbound = { accepts: string; @@ -146,7 +128,6 @@ export type GetAugmentationStatusRequest$Outbound = { /** @internal */ export const GetAugmentationStatusRequest$outboundSchema: z.ZodType< GetAugmentationStatusRequest$Outbound, - z.ZodTypeDef, GetAugmentationStatusRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -186,30 +167,3 @@ export function getAugmentationStatusRequestToJSON( ), ); } - -/** @internal */ -export const GetAugmentationStatusResponse$inboundSchema: z.ZodType< - GetAugmentationStatusResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function getAugmentationStatusResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAugmentationStatusResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAugmentationStatusResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/getavailablegrabbers.ts b/src/models/operations/getavailablegrabbers.ts similarity index 84% rename from src/sdk/models/operations/getavailablegrabbers.ts rename to src/models/operations/getavailablegrabbers.ts index 8fb25b84..58a7f3aa 100644 --- a/src/sdk/models/operations/getavailablegrabbers.ts +++ b/src/models/operations/getavailablegrabbers.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -146,23 +147,8 @@ export type GetAvailableGrabbersResponseBody = { }; export type GetAvailableGrabbersResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: GetAvailableGrabbersResponseBody | undefined; headers: { [k: string]: Array }; + result: GetAvailableGrabbersResponseBody; }; /** @internal */ @@ -184,7 +170,6 @@ export type GetAvailableGrabbersRequest$Outbound = { /** @internal */ export const GetAvailableGrabbersRequest$outboundSchema: z.ZodType< GetAvailableGrabbersRequest$Outbound, - z.ZodTypeDef, GetAvailableGrabbersRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -225,15 +210,12 @@ export function getAvailableGrabbersRequestToJSON( } /** @internal */ -export const MediaGrabber$inboundSchema: z.ZodType< - MediaGrabber, - z.ZodTypeDef, - unknown -> = z.object({ - identifier: z.string().optional(), - protocol: z.string().optional(), - title: z.string().optional(), -}); +export const MediaGrabber$inboundSchema: z.ZodType = z + .object({ + identifier: types.optional(types.string()), + protocol: types.optional(types.string()), + title: types.optional(types.string()), + }); export function mediaGrabberFromJSON( jsonString: string, @@ -248,14 +230,15 @@ export function mediaGrabberFromJSON( /** @internal */ export const GetAvailableGrabbersMediaContainer$inboundSchema: z.ZodType< GetAvailableGrabbersMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - MediaGrabber: z.array(z.lazy(() => MediaGrabber$inboundSchema)).optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + MediaGrabber: types.optional( + z.array(z.lazy(() => MediaGrabber$inboundSchema)), + ), }).transform((v) => { return remap$(v, { "MediaGrabber": "mediaGrabber", @@ -276,11 +259,11 @@ export function getAvailableGrabbersMediaContainerFromJSON( /** @internal */ export const GetAvailableGrabbersResponseBody$inboundSchema: z.ZodType< GetAvailableGrabbersResponseBody, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => GetAvailableGrabbersMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => GetAvailableGrabbersMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -300,21 +283,14 @@ export function getAvailableGrabbersResponseBodyFromJSON( /** @internal */ export const GetAvailableGrabbersResponse$inboundSchema: z.ZodType< GetAvailableGrabbersResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetAvailableGrabbersResponseBody$inboundSchema) - .optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: z.lazy(() => GetAvailableGrabbersResponseBody$inboundSchema), }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/getavailablesorts.ts b/src/models/operations/getavailablesorts.ts similarity index 79% rename from src/sdk/models/operations/getavailablesorts.ts rename to src/models/operations/getavailablesorts.ts index 49b56abc..aba06ffa 100644 --- a/src/sdk/models/operations/getavailablesorts.ts +++ b/src/models/operations/getavailablesorts.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -135,27 +136,8 @@ export type GetAvailableSortsMediaContainer = { /** * OK */ -export type GetAvailableSortsResponseBody = { - mediaContainer?: GetAvailableSortsMediaContainer | undefined; -}; - export type GetAvailableSortsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: GetAvailableSortsResponseBody | undefined; + mediaContainer?: GetAvailableSortsMediaContainer | undefined; }; /** @internal */ @@ -177,7 +159,6 @@ export type GetAvailableSortsRequest$Outbound = { /** @internal */ export const GetAvailableSortsRequest$outboundSchema: z.ZodType< GetAvailableSortsRequest$Outbound, - z.ZodTypeDef, GetAvailableSortsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -191,7 +172,7 @@ export const GetAvailableSortsRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - sectionId: z.number().int(), + sectionId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -218,14 +199,13 @@ export function getAvailableSortsRequestToJSON( /** @internal */ export const GetAvailableSortsMediaContainer$inboundSchema: z.ZodType< GetAvailableSortsMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - Directory: z.array(shared.Sort$inboundSchema).optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + Directory: types.optional(z.array(shared.Sort$inboundSchema)), }).transform((v) => { return remap$(v, { "Directory": "directory", @@ -243,47 +223,19 @@ export function getAvailableSortsMediaContainerFromJSON( } /** @internal */ -export const GetAvailableSortsResponseBody$inboundSchema: z.ZodType< - GetAvailableSortsResponseBody, - z.ZodTypeDef, +export const GetAvailableSortsResponse$inboundSchema: z.ZodType< + GetAvailableSortsResponse, unknown > = z.object({ - MediaContainer: z.lazy(() => GetAvailableSortsMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => GetAvailableSortsMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", }); }); -export function getAvailableSortsResponseBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAvailableSortsResponseBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAvailableSortsResponseBody' from JSON`, - ); -} - -/** @internal */ -export const GetAvailableSortsResponse$inboundSchema: z.ZodType< - GetAvailableSortsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetAvailableSortsResponseBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - export function getAvailableSortsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getbackgroundtasks.ts b/src/models/operations/getbackgroundtasks.ts similarity index 61% rename from src/sdk/models/operations/getbackgroundtasks.ts rename to src/models/operations/getbackgroundtasks.ts index 0c6eed1d..43536369 100644 --- a/src/sdk/models/operations/getbackgroundtasks.ts +++ b/src/models/operations/getbackgroundtasks.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export enum GetBackgroundTasksType { @@ -66,52 +67,30 @@ export type GetBackgroundTasksMediaContainer = { /** * OK */ -export type GetBackgroundTasksResponseBody = { +export type GetBackgroundTasksResponse = { mediaContainer?: GetBackgroundTasksMediaContainer | undefined; }; -export type GetBackgroundTasksResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: GetBackgroundTasksResponseBody | undefined; -}; - /** @internal */ -export const GetBackgroundTasksType$inboundSchema: z.ZodNativeEnum< +export const GetBackgroundTasksType$inboundSchema: z.ZodEnum< typeof GetBackgroundTasksType -> = z.nativeEnum(GetBackgroundTasksType); +> = z.enum(GetBackgroundTasksType); /** @internal */ -export const TranscodeJob$inboundSchema: z.ZodType< - TranscodeJob, - z.ZodTypeDef, - unknown -> = z.object({ - generatorID: z.number().int().optional(), - key: z.string().optional(), - progress: z.number().optional(), - ratingKey: z.string().optional(), - remaining: z.number().int().optional(), - size: z.number().int().optional(), - speed: z.number().optional(), - targetTagID: z.number().int().optional(), - thumb: z.string().optional(), - title: z.string().optional(), - type: GetBackgroundTasksType$inboundSchema.optional(), -}); +export const TranscodeJob$inboundSchema: z.ZodType = z + .object({ + generatorID: types.optional(types.number()), + key: types.optional(types.string()), + progress: types.optional(types.number()), + ratingKey: types.optional(types.string()), + remaining: types.optional(types.number()), + size: types.optional(types.number()), + speed: types.optional(types.number()), + targetTagID: types.optional(types.number()), + thumb: types.optional(types.string()), + title: types.optional(types.string()), + type: types.optional(GetBackgroundTasksType$inboundSchema), + }); export function transcodeJobFromJSON( jsonString: string, @@ -126,14 +105,15 @@ export function transcodeJobFromJSON( /** @internal */ export const GetBackgroundTasksMediaContainer$inboundSchema: z.ZodType< GetBackgroundTasksMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - TranscodeJob: z.array(z.lazy(() => TranscodeJob$inboundSchema)).optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + TranscodeJob: types.optional( + z.array(z.lazy(() => TranscodeJob$inboundSchema)), + ), }).transform((v) => { return remap$(v, { "TranscodeJob": "transcodeJob", @@ -151,47 +131,19 @@ export function getBackgroundTasksMediaContainerFromJSON( } /** @internal */ -export const GetBackgroundTasksResponseBody$inboundSchema: z.ZodType< - GetBackgroundTasksResponseBody, - z.ZodTypeDef, +export const GetBackgroundTasksResponse$inboundSchema: z.ZodType< + GetBackgroundTasksResponse, unknown > = z.object({ - MediaContainer: z.lazy(() => GetBackgroundTasksMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => GetBackgroundTasksMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", }); }); -export function getBackgroundTasksResponseBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetBackgroundTasksResponseBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetBackgroundTasksResponseBody' from JSON`, - ); -} - -/** @internal */ -export const GetBackgroundTasksResponse$inboundSchema: z.ZodType< - GetBackgroundTasksResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetBackgroundTasksResponseBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - export function getBackgroundTasksResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getcategories.ts b/src/models/operations/getcategories.ts similarity index 71% rename from src/sdk/models/operations/getcategories.ts rename to src/models/operations/getcategories.ts index 32c72a7e..8a301017 100644 --- a/src/sdk/models/operations/getcategories.ts +++ b/src/models/operations/getcategories.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type GetCategoriesGlobals = { @@ -107,25 +104,6 @@ export type GetCategoriesRequest = { sectionId: number; }; -export type GetCategoriesResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithArtwork?: shared.MediaContainerWithArtwork | undefined; -}; - /** @internal */ export type GetCategoriesRequest$Outbound = { accepts: string; @@ -145,7 +123,6 @@ export type GetCategoriesRequest$Outbound = { /** @internal */ export const GetCategoriesRequest$outboundSchema: z.ZodType< GetCategoriesRequest$Outbound, - z.ZodTypeDef, GetCategoriesRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -159,7 +136,7 @@ export const GetCategoriesRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - sectionId: z.number().int(), + sectionId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -182,33 +159,3 @@ export function getCategoriesRequestToJSON( GetCategoriesRequest$outboundSchema.parse(getCategoriesRequest), ); } - -/** @internal */ -export const GetCategoriesResponse$inboundSchema: z.ZodType< - GetCategoriesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithArtwork: shared.MediaContainerWithArtwork$inboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithArtwork": "mediaContainerWithArtwork", - }); -}); - -export function getCategoriesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetCategoriesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetCategoriesResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/getchannels.ts b/src/models/operations/getchannels.ts similarity index 85% rename from src/sdk/models/operations/getchannels.ts rename to src/models/operations/getchannels.ts index 32d7f2f9..6a8d90f8 100644 --- a/src/sdk/models/operations/getchannels.ts +++ b/src/models/operations/getchannels.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -140,23 +141,8 @@ export type GetChannelsResponseBody = { }; export type GetChannelsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: GetChannelsResponseBody | undefined; headers: { [k: string]: Array }; + result: GetChannelsResponseBody; }; /** @internal */ @@ -178,7 +164,6 @@ export type GetChannelsRequest$Outbound = { /** @internal */ export const GetChannelsRequest$outboundSchema: z.ZodType< GetChannelsRequest$Outbound, - z.ZodTypeDef, GetChannelsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -219,14 +204,13 @@ export function getChannelsRequestToJSON( /** @internal */ export const GetChannelsMediaContainer$inboundSchema: z.ZodType< GetChannelsMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - Channel: z.array(shared.Channel$inboundSchema).optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + Channel: types.optional(z.array(shared.Channel$inboundSchema)), }).transform((v) => { return remap$(v, { "Channel": "channel", @@ -246,11 +230,11 @@ export function getChannelsMediaContainerFromJSON( /** @internal */ export const GetChannelsResponseBody$inboundSchema: z.ZodType< GetChannelsResponseBody, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => GetChannelsMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => GetChannelsMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -270,20 +254,14 @@ export function getChannelsResponseBodyFromJSON( /** @internal */ export const GetChannelsResponse$inboundSchema: z.ZodType< GetChannelsResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetChannelsResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: z.lazy(() => GetChannelsResponseBody$inboundSchema), }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/getchapterimage.ts b/src/models/operations/getchapterimage.ts similarity index 71% rename from src/sdk/models/operations/getchapterimage.ts rename to src/models/operations/getchapterimage.ts index bb5705e5..4926e60a 100644 --- a/src/sdk/models/operations/getchapterimage.ts +++ b/src/models/operations/getchapterimage.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type GetChapterImageGlobals = { @@ -111,25 +108,6 @@ export type GetChapterImageRequest = { chapter: number; }; -export type GetChapterImageResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - responseStream?: ReadableStream | undefined; -}; - /** @internal */ export type GetChapterImageRequest$Outbound = { accepts: string; @@ -150,7 +128,6 @@ export type GetChapterImageRequest$Outbound = { /** @internal */ export const GetChapterImageRequest$outboundSchema: z.ZodType< GetChapterImageRequest$Outbound, - z.ZodTypeDef, GetChapterImageRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -164,8 +141,8 @@ export const GetChapterImageRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - mediaId: z.number().int(), - chapter: z.number().int(), + mediaId: z.int(), + chapter: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -188,32 +165,3 @@ export function getChapterImageRequestToJSON( GetChapterImageRequest$outboundSchema.parse(getChapterImageRequest), ); } - -/** @internal */ -export const GetChapterImageResponse$inboundSchema: z.ZodType< - GetChapterImageResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - "response-stream": z.instanceof(ReadableStream).optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "response-stream": "responseStream", - }); -}); - -export function getChapterImageResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetChapterImageResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetChapterImageResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/getcluster.ts b/src/models/operations/getcluster.ts similarity index 71% rename from src/sdk/models/operations/getcluster.ts rename to src/models/operations/getcluster.ts index af7f3539..a717c593 100644 --- a/src/sdk/models/operations/getcluster.ts +++ b/src/models/operations/getcluster.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type GetClusterGlobals = { @@ -107,25 +104,6 @@ export type GetClusterRequest = { sectionId: number; }; -export type GetClusterResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithArtwork?: shared.MediaContainerWithArtwork | undefined; -}; - /** @internal */ export type GetClusterRequest$Outbound = { accepts: string; @@ -145,7 +123,6 @@ export type GetClusterRequest$Outbound = { /** @internal */ export const GetClusterRequest$outboundSchema: z.ZodType< GetClusterRequest$Outbound, - z.ZodTypeDef, GetClusterRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -159,7 +136,7 @@ export const GetClusterRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - sectionId: z.number().int(), + sectionId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -182,33 +159,3 @@ export function getClusterRequestToJSON( GetClusterRequest$outboundSchema.parse(getClusterRequest), ); } - -/** @internal */ -export const GetClusterResponse$inboundSchema: z.ZodType< - GetClusterResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithArtwork: shared.MediaContainerWithArtwork$inboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithArtwork": "mediaContainerWithArtwork", - }); -}); - -export function getClusterResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetClusterResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetClusterResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/getcollectionimage.ts b/src/models/operations/getcollectionimage.ts similarity index 72% rename from src/sdk/models/operations/getcollectionimage.ts rename to src/models/operations/getcollectionimage.ts index 6183f9e5..33d972de 100644 --- a/src/sdk/models/operations/getcollectionimage.ts +++ b/src/models/operations/getcollectionimage.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type GetCollectionImageGlobals = { @@ -112,25 +109,6 @@ export type GetCollectionImageRequest = { composite?: shared.Composite | undefined; }; -export type GetCollectionImageResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - responseStream?: ReadableStream | undefined; -}; - /** @internal */ export type GetCollectionImageRequest$Outbound = { accepts: string; @@ -152,7 +130,6 @@ export type GetCollectionImageRequest$Outbound = { /** @internal */ export const GetCollectionImageRequest$outboundSchema: z.ZodType< GetCollectionImageRequest$Outbound, - z.ZodTypeDef, GetCollectionImageRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -166,8 +143,8 @@ export const GetCollectionImageRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - collectionId: z.number().int(), - updatedAt: z.number().int(), + collectionId: z.int(), + updatedAt: z.int(), composite: shared.Composite$outboundSchema.optional(), }).transform((v) => { return remap$(v, { @@ -191,32 +168,3 @@ export function getCollectionImageRequestToJSON( GetCollectionImageRequest$outboundSchema.parse(getCollectionImageRequest), ); } - -/** @internal */ -export const GetCollectionImageResponse$inboundSchema: z.ZodType< - GetCollectionImageResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - "response-stream": z.instanceof(ReadableStream).optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "response-stream": "responseStream", - }); -}); - -export function getCollectionImageResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetCollectionImageResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetCollectionImageResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/getcollectionitems.ts b/src/models/operations/getcollectionitems.ts similarity index 70% rename from src/sdk/models/operations/getcollectionitems.ts rename to src/models/operations/getcollectionitems.ts index f16bf12d..0e827827 100644 --- a/src/sdk/models/operations/getcollectionitems.ts +++ b/src/models/operations/getcollectionitems.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type GetCollectionItemsGlobals = { @@ -107,25 +104,6 @@ export type GetCollectionItemsRequest = { collectionId: number; }; -export type GetCollectionItemsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; -}; - /** @internal */ export type GetCollectionItemsRequest$Outbound = { accepts: string; @@ -145,7 +123,6 @@ export type GetCollectionItemsRequest$Outbound = { /** @internal */ export const GetCollectionItemsRequest$outboundSchema: z.ZodType< GetCollectionItemsRequest$Outbound, - z.ZodTypeDef, GetCollectionItemsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -159,7 +136,7 @@ export const GetCollectionItemsRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - collectionId: z.number().int(), + collectionId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -182,33 +159,3 @@ export function getCollectionItemsRequestToJSON( GetCollectionItemsRequest$outboundSchema.parse(getCollectionItemsRequest), ); } - -/** @internal */ -export const GetCollectionItemsResponse$inboundSchema: z.ZodType< - GetCollectionItemsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithMetadata": "mediaContainerWithMetadata", - }); -}); - -export function getCollectionItemsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetCollectionItemsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetCollectionItemsResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/getcollections.ts b/src/models/operations/getcollections.ts similarity index 85% rename from src/sdk/models/operations/getcollections.ts rename to src/models/operations/getcollections.ts index c50c33d3..4ec54a62 100644 --- a/src/sdk/models/operations/getcollections.ts +++ b/src/models/operations/getcollections.ts @@ -2,9 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +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"; @@ -129,23 +129,8 @@ export type GetCollectionsRequest = { }; export type GetCollectionsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; headers: { [k: string]: Array }; + result: shared.MediaContainerWithMetadata; }; /** @internal */ @@ -168,7 +153,6 @@ export type GetCollectionsRequest$Outbound = { /** @internal */ export const GetCollectionsRequest$outboundSchema: z.ZodType< GetCollectionsRequest$Outbound, - z.ZodTypeDef, GetCollectionsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -182,7 +166,7 @@ export const GetCollectionsRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - sectionId: z.number().int(), + sectionId: z.int(), mediaQuery: shared.MediaQuery$outboundSchema.optional(), }).transform((v) => { return remap$(v, { @@ -210,22 +194,14 @@ export function getCollectionsRequestToJSON( /** @internal */ export const GetCollectionsResponse$inboundSchema: z.ZodType< GetCollectionsResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema - .optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: shared.MediaContainerWithMetadata$inboundSchema, }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithMetadata": "mediaContainerWithMetadata", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/getcolors.ts b/src/models/operations/getcolors.ts similarity index 79% rename from src/sdk/models/operations/getcolors.ts rename to src/models/operations/getcolors.ts index c85ab020..1ba905e4 100644 --- a/src/sdk/models/operations/getcolors.ts +++ b/src/models/operations/getcolors.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -154,27 +155,8 @@ export type GetColorsMediaContainer = { /** * OK */ -export type GetColorsResponseBody = { - mediaContainer?: GetColorsMediaContainer | undefined; -}; - export type GetColorsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: GetColorsResponseBody | undefined; + mediaContainer?: GetColorsMediaContainer | undefined; }; /** @internal */ @@ -196,7 +178,6 @@ export type GetColorsRequest$Outbound = { /** @internal */ export const GetColorsRequest$outboundSchema: z.ZodType< GetColorsRequest$Outbound, - z.ZodTypeDef, GetColorsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -235,16 +216,13 @@ export function getColorsRequestToJSON( } /** @internal */ -export const UltraBlurColor$inboundSchema: z.ZodType< - UltraBlurColor, - z.ZodTypeDef, - unknown -> = z.object({ - bottomLeft: z.string().optional(), - bottomRight: z.string().optional(), - topLeft: z.string().optional(), - topRight: z.string().optional(), -}); +export const UltraBlurColor$inboundSchema: z.ZodType = + z.object({ + bottomLeft: types.optional(types.string()), + bottomRight: types.optional(types.string()), + topLeft: types.optional(types.string()), + topRight: types.optional(types.string()), + }); export function ultraBlurColorFromJSON( jsonString: string, @@ -259,15 +237,15 @@ export function ultraBlurColorFromJSON( /** @internal */ export const GetColorsMediaContainer$inboundSchema: z.ZodType< GetColorsMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - UltraBlurColors: z.array(z.lazy(() => UltraBlurColor$inboundSchema)) - .optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + UltraBlurColors: types.optional( + z.array(z.lazy(() => UltraBlurColor$inboundSchema)), + ), }).transform((v) => { return remap$(v, { "UltraBlurColors": "ultraBlurColors", @@ -285,47 +263,19 @@ export function getColorsMediaContainerFromJSON( } /** @internal */ -export const GetColorsResponseBody$inboundSchema: z.ZodType< - GetColorsResponseBody, - z.ZodTypeDef, +export const GetColorsResponse$inboundSchema: z.ZodType< + GetColorsResponse, unknown > = z.object({ - MediaContainer: z.lazy(() => GetColorsMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => GetColorsMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", }); }); -export function getColorsResponseBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetColorsResponseBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetColorsResponseBody' from JSON`, - ); -} - -/** @internal */ -export const GetColorsResponse$inboundSchema: z.ZodType< - GetColorsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetColorsResponseBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - export function getColorsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getcommon.ts b/src/models/operations/getcommon.ts similarity index 85% rename from src/sdk/models/operations/getcommon.ts rename to src/models/operations/getcommon.ts index 44cb36cf..ba2fa8f8 100644 --- a/src/sdk/models/operations/getcommon.ts +++ b/src/models/operations/getcommon.ts @@ -2,9 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +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"; @@ -133,23 +133,8 @@ export type GetCommonRequest = { }; export type GetCommonResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; headers: { [k: string]: Array }; + result: shared.MediaContainerWithMetadata; }; /** @internal */ @@ -173,7 +158,6 @@ export type GetCommonRequest$Outbound = { /** @internal */ export const GetCommonRequest$outboundSchema: z.ZodType< GetCommonRequest$Outbound, - z.ZodTypeDef, GetCommonRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -187,8 +171,8 @@ export const GetCommonRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - sectionId: z.number().int(), - type: z.number().int().optional(), + sectionId: z.int(), + type: z.int().optional(), mediaQuery: shared.MediaQuery$outboundSchema.optional(), }).transform((v) => { return remap$(v, { @@ -216,22 +200,14 @@ export function getCommonRequestToJSON( /** @internal */ export const GetCommonResponse$inboundSchema: z.ZodType< GetCommonResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema - .optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: shared.MediaContainerWithMetadata$inboundSchema, }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithMetadata": "mediaContainerWithMetadata", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/getcontinuewatching.ts b/src/models/operations/getcontinuewatching.ts similarity index 85% rename from src/sdk/models/operations/getcontinuewatching.ts rename to src/models/operations/getcontinuewatching.ts index 587b4811..9afc3ebd 100644 --- a/src/sdk/models/operations/getcontinuewatching.ts +++ b/src/models/operations/getcontinuewatching.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -140,23 +141,8 @@ export type GetContinueWatchingResponseBody = { }; export type GetContinueWatchingResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: GetContinueWatchingResponseBody | undefined; headers: { [k: string]: Array }; + result: GetContinueWatchingResponseBody; }; /** @internal */ @@ -178,7 +164,6 @@ export type GetContinueWatchingRequest$Outbound = { /** @internal */ export const GetContinueWatchingRequest$outboundSchema: z.ZodType< GetContinueWatchingRequest$Outbound, - z.ZodTypeDef, GetContinueWatchingRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -192,7 +177,7 @@ export const GetContinueWatchingRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - count: z.number().int().optional(), + count: z.int().optional(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -219,14 +204,13 @@ export function getContinueWatchingRequestToJSON( /** @internal */ export const GetContinueWatchingMediaContainer$inboundSchema: z.ZodType< GetContinueWatchingMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - Hub: z.array(shared.Hub$inboundSchema).optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + Hub: types.optional(z.array(shared.Hub$inboundSchema)), }).transform((v) => { return remap$(v, { "Hub": "hub", @@ -246,11 +230,11 @@ export function getContinueWatchingMediaContainerFromJSON( /** @internal */ export const GetContinueWatchingResponseBody$inboundSchema: z.ZodType< GetContinueWatchingResponseBody, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => GetContinueWatchingMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => GetContinueWatchingMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -270,21 +254,14 @@ export function getContinueWatchingResponseBodyFromJSON( /** @internal */ export const GetContinueWatchingResponse$inboundSchema: z.ZodType< GetContinueWatchingResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetContinueWatchingResponseBody$inboundSchema) - .optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: z.lazy(() => GetContinueWatchingResponseBody$inboundSchema), }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/getcountries.ts b/src/models/operations/getcountries.ts similarity index 73% rename from src/sdk/models/operations/getcountries.ts rename to src/models/operations/getcountries.ts index e89a3148..afe9620d 100644 --- a/src/sdk/models/operations/getcountries.ts +++ b/src/models/operations/getcountries.ts @@ -2,10 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import * as openEnums from "../../types/enums.js"; +import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** @@ -20,6 +23,14 @@ export enum Flavor { One = 1, Two = 2, } +/** + * - `0`: The country is divided into regions, and following the key will lead to a list of regions. + * + * @remarks + * - `1`: The county is divided by postal codes, and an example code is returned in `example`. + * - `2`: The country has a single postal code, returned in `example`. + */ +export type FlavorOpen = OpenEnum; export type GetCountriesCountry = { /** @@ -34,7 +45,7 @@ export type GetCountriesCountry = { * - `1`: The county is divided by postal codes, and an example code is returned in `example`. * - `2`: The country has a single postal code, returned in `example`. */ - flavor?: Flavor | undefined; + flavor?: FlavorOpen | undefined; key?: string | undefined; /** * Three letter language code @@ -81,43 +92,27 @@ export type GetCountriesResponseBody = { }; export type GetCountriesResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: GetCountriesResponseBody | undefined; headers: { [k: string]: Array }; + result: GetCountriesResponseBody; }; /** @internal */ -export const Flavor$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(Flavor); +export const Flavor$inboundSchema: z.ZodType = openEnums + .inboundSchemaInt(Flavor); /** @internal */ export const GetCountriesCountry$inboundSchema: z.ZodType< GetCountriesCountry, - z.ZodTypeDef, unknown > = z.object({ - code: z.string().optional(), - example: z.string().optional(), - flavor: Flavor$inboundSchema.optional(), - key: z.string().optional(), - language: z.string().optional(), - languageTitle: z.string().optional(), - title: z.string().optional(), - type: z.string().optional(), + code: types.optional(types.string()), + example: types.optional(types.string()), + flavor: types.optional(Flavor$inboundSchema), + key: types.optional(types.string()), + language: types.optional(types.string()), + languageTitle: types.optional(types.string()), + title: types.optional(types.string()), + type: types.optional(types.string()), }); export function getCountriesCountryFromJSON( @@ -133,14 +128,15 @@ export function getCountriesCountryFromJSON( /** @internal */ export const GetCountriesMediaContainer$inboundSchema: z.ZodType< GetCountriesMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - Country: z.array(z.lazy(() => GetCountriesCountry$inboundSchema)).optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + Country: types.optional( + z.array(z.lazy(() => GetCountriesCountry$inboundSchema)), + ), }).transform((v) => { return remap$(v, { "Country": "country", @@ -160,11 +156,11 @@ export function getCountriesMediaContainerFromJSON( /** @internal */ export const GetCountriesResponseBody$inboundSchema: z.ZodType< GetCountriesResponseBody, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => GetCountriesMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => GetCountriesMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -184,20 +180,14 @@ export function getCountriesResponseBodyFromJSON( /** @internal */ export const GetCountriesResponse$inboundSchema: z.ZodType< GetCountriesResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetCountriesResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: z.lazy(() => GetCountriesResponseBody$inboundSchema), }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/getcountrieslineups.ts b/src/models/operations/getcountrieslineups.ts similarity index 72% rename from src/sdk/models/operations/getcountrieslineups.ts rename to src/models/operations/getcountrieslineups.ts index 59082d56..fc29b4b6 100644 --- a/src/sdk/models/operations/getcountrieslineups.ts +++ b/src/models/operations/getcountrieslineups.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type GetCountriesLineupsGlobals = { @@ -115,25 +112,6 @@ export type GetCountriesLineupsRequest = { postalCode?: string | undefined; }; -export type GetCountriesLineupsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithLineup?: shared.MediaContainerWithLineup | undefined; -}; - /** @internal */ export type GetCountriesLineupsRequest$Outbound = { accepts: string; @@ -155,7 +133,6 @@ export type GetCountriesLineupsRequest$Outbound = { /** @internal */ export const GetCountriesLineupsRequest$outboundSchema: z.ZodType< GetCountriesLineupsRequest$Outbound, - z.ZodTypeDef, GetCountriesLineupsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -194,33 +171,3 @@ export function getCountriesLineupsRequestToJSON( GetCountriesLineupsRequest$outboundSchema.parse(getCountriesLineupsRequest), ); } - -/** @internal */ -export const GetCountriesLineupsResponse$inboundSchema: z.ZodType< - GetCountriesLineupsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithLineup: shared.MediaContainerWithLineup$inboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithLineup": "mediaContainerWithLineup", - }); -}); - -export function getCountriesLineupsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetCountriesLineupsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetCountriesLineupsResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/getcountryregions.ts b/src/models/operations/getcountryregions.ts similarity index 85% rename from src/sdk/models/operations/getcountryregions.ts rename to src/models/operations/getcountryregions.ts index b1e9db6f..7acc4a8c 100644 --- a/src/sdk/models/operations/getcountryregions.ts +++ b/src/models/operations/getcountryregions.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -151,23 +152,8 @@ export type GetCountryRegionsResponseBody = { }; export type GetCountryRegionsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: GetCountryRegionsResponseBody | undefined; headers: { [k: string]: Array }; + result: GetCountryRegionsResponseBody; }; /** @internal */ @@ -190,7 +176,6 @@ export type GetCountryRegionsRequest$Outbound = { /** @internal */ export const GetCountryRegionsRequest$outboundSchema: z.ZodType< GetCountryRegionsRequest$Outbound, - z.ZodTypeDef, GetCountryRegionsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -232,13 +217,12 @@ export function getCountryRegionsRequestToJSON( /** @internal */ export const GetCountryRegionsCountry$inboundSchema: z.ZodType< GetCountryRegionsCountry, - z.ZodTypeDef, unknown > = z.object({ - key: z.string().optional(), - national: z.boolean().optional(), - title: z.string().optional(), - type: z.string().optional(), + key: types.optional(types.string()), + national: types.optional(types.boolean()), + title: types.optional(types.string()), + type: types.optional(types.string()), }); export function getCountryRegionsCountryFromJSON( @@ -254,15 +238,15 @@ export function getCountryRegionsCountryFromJSON( /** @internal */ export const GetCountryRegionsMediaContainer$inboundSchema: z.ZodType< GetCountryRegionsMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - Country: z.array(z.lazy(() => GetCountryRegionsCountry$inboundSchema)) - .optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + Country: types.optional( + z.array(z.lazy(() => GetCountryRegionsCountry$inboundSchema)), + ), }).transform((v) => { return remap$(v, { "Country": "country", @@ -282,11 +266,11 @@ export function getCountryRegionsMediaContainerFromJSON( /** @internal */ export const GetCountryRegionsResponseBody$inboundSchema: z.ZodType< GetCountryRegionsResponseBody, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => GetCountryRegionsMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => GetCountryRegionsMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -306,20 +290,14 @@ export function getCountryRegionsResponseBodyFromJSON( /** @internal */ export const GetCountryRegionsResponse$inboundSchema: z.ZodType< GetCountryRegionsResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetCountryRegionsResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: z.lazy(() => GetCountryRegionsResponseBody$inboundSchema), }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/getdevicedetails.ts b/src/models/operations/getdevicedetails.ts similarity index 71% rename from src/sdk/models/operations/getdevicedetails.ts rename to src/models/operations/getdevicedetails.ts index 7c223d03..e309288c 100644 --- a/src/sdk/models/operations/getdevicedetails.ts +++ b/src/models/operations/getdevicedetails.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type GetDeviceDetailsGlobals = { @@ -107,25 +104,6 @@ export type GetDeviceDetailsRequest = { deviceId: number; }; -export type GetDeviceDetailsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithDevice?: shared.MediaContainerWithDevice | undefined; -}; - /** @internal */ export type GetDeviceDetailsRequest$Outbound = { accepts: string; @@ -145,7 +123,6 @@ export type GetDeviceDetailsRequest$Outbound = { /** @internal */ export const GetDeviceDetailsRequest$outboundSchema: z.ZodType< GetDeviceDetailsRequest$Outbound, - z.ZodTypeDef, GetDeviceDetailsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -159,7 +136,7 @@ export const GetDeviceDetailsRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - deviceId: z.number().int(), + deviceId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -182,33 +159,3 @@ export function getDeviceDetailsRequestToJSON( GetDeviceDetailsRequest$outboundSchema.parse(getDeviceDetailsRequest), ); } - -/** @internal */ -export const GetDeviceDetailsResponse$inboundSchema: z.ZodType< - GetDeviceDetailsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithDevice: shared.MediaContainerWithDevice$inboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithDevice": "mediaContainerWithDevice", - }); -}); - -export function getDeviceDetailsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetDeviceDetailsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetDeviceDetailsResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/getdeviceschannels.ts b/src/models/operations/getdeviceschannels.ts similarity index 82% rename from src/sdk/models/operations/getdeviceschannels.ts rename to src/models/operations/getdeviceschannels.ts index c832092f..e4cb31a7 100644 --- a/src/sdk/models/operations/getdeviceschannels.ts +++ b/src/models/operations/getdeviceschannels.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -154,23 +155,8 @@ export type GetDevicesChannelsResponseBody = { }; export type GetDevicesChannelsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: GetDevicesChannelsResponseBody | undefined; headers: { [k: string]: Array }; + result: GetDevicesChannelsResponseBody; }; /** @internal */ @@ -192,7 +178,6 @@ export type GetDevicesChannelsRequest$Outbound = { /** @internal */ export const GetDevicesChannelsRequest$outboundSchema: z.ZodType< GetDevicesChannelsRequest$Outbound, - z.ZodTypeDef, GetDevicesChannelsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -206,7 +191,7 @@ export const GetDevicesChannelsRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - deviceId: z.number().int(), + deviceId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -231,20 +216,17 @@ export function getDevicesChannelsRequestToJSON( } /** @internal */ -export const DeviceChannel$inboundSchema: z.ZodType< - DeviceChannel, - z.ZodTypeDef, - unknown -> = z.object({ - drm: z.boolean().optional(), - favorite: z.boolean().optional(), - hd: z.boolean().optional(), - identifier: z.string().optional(), - key: z.string().optional(), - name: z.string().optional(), - signalQuality: z.number().int().optional(), - signalStrength: z.number().int().optional(), -}); +export const DeviceChannel$inboundSchema: z.ZodType = z + .object({ + drm: types.optional(types.boolean()), + favorite: types.optional(types.boolean()), + hd: types.optional(types.boolean()), + identifier: types.optional(types.string()), + key: types.optional(types.string()), + name: types.optional(types.string()), + signalQuality: types.optional(types.number()), + signalStrength: types.optional(types.number()), + }); export function deviceChannelFromJSON( jsonString: string, @@ -259,14 +241,15 @@ export function deviceChannelFromJSON( /** @internal */ export const GetDevicesChannelsMediaContainer$inboundSchema: z.ZodType< GetDevicesChannelsMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - DeviceChannel: z.array(z.lazy(() => DeviceChannel$inboundSchema)).optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + DeviceChannel: types.optional( + z.array(z.lazy(() => DeviceChannel$inboundSchema)), + ), }).transform((v) => { return remap$(v, { "DeviceChannel": "deviceChannel", @@ -286,11 +269,11 @@ export function getDevicesChannelsMediaContainerFromJSON( /** @internal */ export const GetDevicesChannelsResponseBody$inboundSchema: z.ZodType< GetDevicesChannelsResponseBody, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => GetDevicesChannelsMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => GetDevicesChannelsMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -310,20 +293,14 @@ export function getDevicesChannelsResponseBodyFromJSON( /** @internal */ export const GetDevicesChannelsResponse$inboundSchema: z.ZodType< GetDevicesChannelsResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetDevicesChannelsResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: z.lazy(() => GetDevicesChannelsResponseBody$inboundSchema), }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/getdownloadqueue.ts b/src/models/operations/getdownloadqueue.ts similarity index 79% rename from src/sdk/models/operations/getdownloadqueue.ts rename to src/models/operations/getdownloadqueue.ts index 9e02423b..4eb12ef6 100644 --- a/src/sdk/models/operations/getdownloadqueue.ts +++ b/src/models/operations/getdownloadqueue.ts @@ -2,10 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import * as openEnums from "../../types/enums.js"; +import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -124,6 +127,19 @@ export enum GetDownloadQueueStatus { Done = "done", Error = "error", } +/** + * The state of this queue + * + * @remarks + * - deciding: At least one item is still being decided + * - waiting: At least one item is waiting for transcode and none are currently transcoding + * - processing: At least one item is being transcoded + * - done: All items are available (or potentially expired) + * - error: At least one item has encountered an error + */ +export type GetDownloadQueueStatusOpen = OpenEnum< + typeof GetDownloadQueueStatus +>; export type GetDownloadQueueDownloadQueue = { id?: number | undefined; @@ -138,7 +154,7 @@ export type GetDownloadQueueDownloadQueue = { * - done: All items are available (or potentially expired) * - error: At least one item has encountered an error */ - status?: GetDownloadQueueStatus | undefined; + status?: GetDownloadQueueStatusOpen | undefined; }; /** @@ -169,27 +185,8 @@ export type GetDownloadQueueMediaContainer = { /** * OK */ -export type GetDownloadQueueResponseBody = { - mediaContainer?: GetDownloadQueueMediaContainer | undefined; -}; - export type GetDownloadQueueResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: GetDownloadQueueResponseBody | undefined; + mediaContainer?: GetDownloadQueueMediaContainer | undefined; }; /** @internal */ @@ -211,7 +208,6 @@ export type GetDownloadQueueRequest$Outbound = { /** @internal */ export const GetDownloadQueueRequest$outboundSchema: z.ZodType< GetDownloadQueueRequest$Outbound, - z.ZodTypeDef, GetDownloadQueueRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -225,7 +221,7 @@ export const GetDownloadQueueRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - queueId: z.number().int(), + queueId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -250,19 +246,19 @@ export function getDownloadQueueRequestToJSON( } /** @internal */ -export const GetDownloadQueueStatus$inboundSchema: z.ZodNativeEnum< - typeof GetDownloadQueueStatus -> = z.nativeEnum(GetDownloadQueueStatus); +export const GetDownloadQueueStatus$inboundSchema: z.ZodType< + GetDownloadQueueStatusOpen, + unknown +> = openEnums.inboundSchema(GetDownloadQueueStatus); /** @internal */ export const GetDownloadQueueDownloadQueue$inboundSchema: z.ZodType< GetDownloadQueueDownloadQueue, - z.ZodTypeDef, unknown > = z.object({ - id: z.number().int().optional(), - itemCount: z.number().int().optional(), - status: GetDownloadQueueStatus$inboundSchema.optional(), + id: types.optional(types.number()), + itemCount: types.optional(types.number()), + status: types.optional(GetDownloadQueueStatus$inboundSchema), }); export function getDownloadQueueDownloadQueueFromJSON( @@ -278,16 +274,15 @@ export function getDownloadQueueDownloadQueueFromJSON( /** @internal */ export const GetDownloadQueueMediaContainer$inboundSchema: z.ZodType< GetDownloadQueueMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - DownloadQueue: z.array( - z.lazy(() => GetDownloadQueueDownloadQueue$inboundSchema), - ).optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + DownloadQueue: types.optional( + z.array(z.lazy(() => GetDownloadQueueDownloadQueue$inboundSchema)), + ), }).transform((v) => { return remap$(v, { "DownloadQueue": "downloadQueue", @@ -305,47 +300,19 @@ export function getDownloadQueueMediaContainerFromJSON( } /** @internal */ -export const GetDownloadQueueResponseBody$inboundSchema: z.ZodType< - GetDownloadQueueResponseBody, - z.ZodTypeDef, +export const GetDownloadQueueResponse$inboundSchema: z.ZodType< + GetDownloadQueueResponse, unknown > = z.object({ - MediaContainer: z.lazy(() => GetDownloadQueueMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => GetDownloadQueueMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", }); }); -export function getDownloadQueueResponseBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetDownloadQueueResponseBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetDownloadQueueResponseBody' from JSON`, - ); -} - -/** @internal */ -export const GetDownloadQueueResponse$inboundSchema: z.ZodType< - GetDownloadQueueResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetDownloadQueueResponseBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - export function getDownloadQueueResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getdownloadqueueitems.ts b/src/models/operations/getdownloadqueueitems.ts similarity index 78% rename from src/sdk/models/operations/getdownloadqueueitems.ts rename to src/models/operations/getdownloadqueueitems.ts index 151af202..85c1395c 100644 --- a/src/sdk/models/operations/getdownloadqueueitems.ts +++ b/src/models/operations/getdownloadqueueitems.ts @@ -2,10 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import * as openEnums from "../../types/enums.js"; +import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -151,6 +154,20 @@ export enum GetDownloadQueueItemsStatus { Error = "error", Expired = "expired", } +/** + * The state of the item: + * + * @remarks + * - deciding: The item decision is pending + * - waiting: The item is waiting for transcode + * - processing: The item is being transcoded + * - available: The item is available for download + * - error: The item encountered an error in the decision or transcode + * - expired: The transcoded item has timed out and is no longer available + */ +export type GetDownloadQueueItemsStatusOpen = OpenEnum< + typeof GetDownloadQueueItemsStatus +>; /** * The transcode session object which is not yet documented otherwise it'd be a $ref here. @@ -177,7 +194,7 @@ export type GetDownloadQueueItemsDownloadQueueItem = { * - error: The item encountered an error in the decision or transcode * - expired: The transcoded item has timed out and is no longer available */ - status?: GetDownloadQueueItemsStatus | undefined; + status?: GetDownloadQueueItemsStatusOpen | undefined; /** * The transcode session object which is not yet documented otherwise it'd be a $ref here. */ @@ -216,27 +233,8 @@ export type GetDownloadQueueItemsMediaContainer = { /** * OK */ -export type GetDownloadQueueItemsResponseBody = { - mediaContainer?: GetDownloadQueueItemsMediaContainer | undefined; -}; - export type GetDownloadQueueItemsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: GetDownloadQueueItemsResponseBody | undefined; + mediaContainer?: GetDownloadQueueItemsMediaContainer | undefined; }; /** @internal */ @@ -259,7 +257,6 @@ export type GetDownloadQueueItemsRequest$Outbound = { /** @internal */ export const GetDownloadQueueItemsRequest$outboundSchema: z.ZodType< GetDownloadQueueItemsRequest$Outbound, - z.ZodTypeDef, GetDownloadQueueItemsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -273,8 +270,8 @@ export const GetDownloadQueueItemsRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - queueId: z.number().int(), - itemId: z.array(z.number().int()), + queueId: z.int(), + itemId: z.array(z.int()), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -303,18 +300,17 @@ export function getDownloadQueueItemsRequestToJSON( /** @internal */ export const GetDownloadQueueItemsDecisionResult$inboundSchema: z.ZodType< GetDownloadQueueItemsDecisionResult, - z.ZodTypeDef, unknown > = z.object({ - availableBandwidth: z.number().int().optional(), - directPlayDecisionCode: z.number().int().optional(), - directPlayDecisionText: z.string().optional(), - generalDecisionCode: z.number().int().optional(), - generalDecisionText: z.string().optional(), - mdeDecisionCode: z.number().int().optional(), - mdeDecisionText: z.string().optional(), - transcodeDecisionCode: z.number().int().optional(), - transcodeDecisionText: z.string().optional(), + availableBandwidth: types.optional(types.number()), + directPlayDecisionCode: types.optional(types.number()), + directPlayDecisionText: types.optional(types.string()), + generalDecisionCode: types.optional(types.number()), + generalDecisionText: types.optional(types.string()), + mdeDecisionCode: types.optional(types.number()), + mdeDecisionText: types.optional(types.string()), + transcodeDecisionCode: types.optional(types.number()), + transcodeDecisionText: types.optional(types.string()), }); export function getDownloadQueueItemsDecisionResultFromJSON( @@ -329,14 +325,14 @@ export function getDownloadQueueItemsDecisionResultFromJSON( } /** @internal */ -export const GetDownloadQueueItemsStatus$inboundSchema: z.ZodNativeEnum< - typeof GetDownloadQueueItemsStatus -> = z.nativeEnum(GetDownloadQueueItemsStatus); +export const GetDownloadQueueItemsStatus$inboundSchema: z.ZodType< + GetDownloadQueueItemsStatusOpen, + unknown +> = openEnums.inboundSchema(GetDownloadQueueItemsStatus); /** @internal */ export const GetDownloadQueueItemsTranscode$inboundSchema: z.ZodType< GetDownloadQueueItemsTranscode, - z.ZodTypeDef, unknown > = z.object({}); @@ -353,20 +349,20 @@ export function getDownloadQueueItemsTranscodeFromJSON( /** @internal */ export const GetDownloadQueueItemsDownloadQueueItem$inboundSchema: z.ZodType< GetDownloadQueueItemsDownloadQueueItem, - z.ZodTypeDef, unknown > = z.object({ - DecisionResult: z.lazy(() => - GetDownloadQueueItemsDecisionResult$inboundSchema - ).optional(), - error: z.string().optional(), - id: z.number().int().optional(), - key: z.string().optional(), - queueId: z.number().int().optional(), - status: GetDownloadQueueItemsStatus$inboundSchema.optional(), - transcode: z.lazy(() => GetDownloadQueueItemsTranscode$inboundSchema) - .optional(), - TranscodeSession: shared.TranscodeSession$inboundSchema.optional(), + DecisionResult: types.optional( + z.lazy(() => GetDownloadQueueItemsDecisionResult$inboundSchema), + ), + error: types.optional(types.string()), + id: types.optional(types.number()), + key: types.optional(types.string()), + queueId: types.optional(types.number()), + status: types.optional(GetDownloadQueueItemsStatus$inboundSchema), + transcode: types.optional( + z.lazy(() => GetDownloadQueueItemsTranscode$inboundSchema), + ), + TranscodeSession: types.optional(shared.TranscodeSession$inboundSchema), }).transform((v) => { return remap$(v, { "DecisionResult": "decisionResult", @@ -388,16 +384,15 @@ export function getDownloadQueueItemsDownloadQueueItemFromJSON( /** @internal */ export const GetDownloadQueueItemsMediaContainer$inboundSchema: z.ZodType< GetDownloadQueueItemsMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - DownloadQueueItem: z.array( - z.lazy(() => GetDownloadQueueItemsDownloadQueueItem$inboundSchema), - ).optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + DownloadQueueItem: types.optional( + z.array(z.lazy(() => GetDownloadQueueItemsDownloadQueueItem$inboundSchema)), + ), }).transform((v) => { return remap$(v, { "DownloadQueueItem": "downloadQueueItem", @@ -416,49 +411,19 @@ export function getDownloadQueueItemsMediaContainerFromJSON( } /** @internal */ -export const GetDownloadQueueItemsResponseBody$inboundSchema: z.ZodType< - GetDownloadQueueItemsResponseBody, - z.ZodTypeDef, +export const GetDownloadQueueItemsResponse$inboundSchema: z.ZodType< + GetDownloadQueueItemsResponse, unknown > = z.object({ - MediaContainer: z.lazy(() => - GetDownloadQueueItemsMediaContainer$inboundSchema - ).optional(), + MediaContainer: types.optional( + z.lazy(() => GetDownloadQueueItemsMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", }); }); -export function getDownloadQueueItemsResponseBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetDownloadQueueItemsResponseBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetDownloadQueueItemsResponseBody' from JSON`, - ); -} - -/** @internal */ -export const GetDownloadQueueItemsResponse$inboundSchema: z.ZodType< - GetDownloadQueueItemsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetDownloadQueueItemsResponseBody$inboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - export function getDownloadQueueItemsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getdownloadqueuemedia.ts b/src/models/operations/getdownloadqueuemedia.ts similarity index 86% rename from src/sdk/models/operations/getdownloadqueuemedia.ts rename to src/models/operations/getdownloadqueuemedia.ts index 99c61149..d2d0a257 100644 --- a/src/sdk/models/operations/getdownloadqueuemedia.ts +++ b/src/models/operations/getdownloadqueuemedia.ts @@ -2,9 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +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"; @@ -112,18 +112,6 @@ export type GetDownloadQueueMediaRequest = { }; export type GetDownloadQueueMediaResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; headers: { [k: string]: Array }; }; @@ -147,7 +135,6 @@ export type GetDownloadQueueMediaRequest$Outbound = { /** @internal */ export const GetDownloadQueueMediaRequest$outboundSchema: z.ZodType< GetDownloadQueueMediaRequest$Outbound, - z.ZodTypeDef, GetDownloadQueueMediaRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -161,8 +148,8 @@ export const GetDownloadQueueMediaRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - queueId: z.number().int(), - itemId: z.number().int(), + queueId: z.int(), + itemId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -191,18 +178,11 @@ export function getDownloadQueueMediaRequestToJSON( /** @internal */ export const GetDownloadQueueMediaResponse$inboundSchema: z.ZodType< GetDownloadQueueMediaResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", "Headers": "headers", }); }); diff --git a/src/sdk/models/operations/getdvr.ts b/src/models/operations/getdvr.ts similarity index 81% rename from src/sdk/models/operations/getdvr.ts rename to src/models/operations/getdvr.ts index f48431b9..3a6130a1 100644 --- a/src/sdk/models/operations/getdvr.ts +++ b/src/models/operations/getdvr.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -156,23 +157,8 @@ export type GetDVRResponseBody = { }; export type GetDVRResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: GetDVRResponseBody | undefined; headers: { [k: string]: Array }; + result: GetDVRResponseBody; }; /** @internal */ @@ -194,7 +180,6 @@ export type GetDVRRequest$Outbound = { /** @internal */ export const GetDVRRequest$outboundSchema: z.ZodType< GetDVRRequest$Outbound, - z.ZodTypeDef, GetDVRRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -208,7 +193,7 @@ export const GetDVRRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - dvrId: z.number().int(), + dvrId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -231,14 +216,13 @@ export function getDVRRequestToJSON(getDVRRequest: GetDVRRequest): string { /** @internal */ export const GetDVRMediaContainerMediaContainer$inboundSchema: z.ZodType< GetDVRMediaContainerMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - status: z.number().int().optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + status: types.optional(types.number()), }); export function getDVRMediaContainerMediaContainerFromJSON( @@ -253,16 +237,12 @@ export function getDVRMediaContainerMediaContainerFromJSON( } /** @internal */ -export const GetDVRDVR$inboundSchema: z.ZodType< - GetDVRDVR, - z.ZodTypeDef, - unknown -> = z.object({ - Device: z.array(shared.Device$inboundSchema).optional(), - key: z.string().optional(), - language: z.string().optional(), - lineup: z.string().optional(), - uuid: z.string().optional(), +export const GetDVRDVR$inboundSchema: z.ZodType = z.object({ + Device: types.optional(z.array(shared.Device$inboundSchema)), + key: types.optional(types.string()), + language: types.optional(types.string()), + lineup: types.optional(types.string()), + uuid: types.optional(types.string()), }).transform((v) => { return remap$(v, { "Device": "device", @@ -282,12 +262,12 @@ export function getDVRDVRFromJSON( /** @internal */ export const GetDVRMediaContainer$inboundSchema: z.ZodType< GetDVRMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => GetDVRMediaContainerMediaContainer$inboundSchema) - .optional(), - DVR: z.array(z.lazy(() => GetDVRDVR$inboundSchema)).optional(), + MediaContainer: types.optional( + z.lazy(() => GetDVRMediaContainerMediaContainer$inboundSchema), + ), + DVR: types.optional(z.array(z.lazy(() => GetDVRDVR$inboundSchema))), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -308,10 +288,11 @@ export function getDVRMediaContainerFromJSON( /** @internal */ export const GetDVRResponseBody$inboundSchema: z.ZodType< GetDVRResponseBody, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => GetDVRMediaContainer$inboundSchema).optional(), + MediaContainer: types.optional( + z.lazy(() => GetDVRMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -329,24 +310,16 @@ export function getDVRResponseBodyFromJSON( } /** @internal */ -export const GetDVRResponse$inboundSchema: z.ZodType< - GetDVRResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetDVRResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())).default({}), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "Headers": "headers", +export const GetDVRResponse$inboundSchema: z.ZodType = + z.object({ + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: z.lazy(() => GetDVRResponseBody$inboundSchema), + }).transform((v) => { + return remap$(v, { + "Headers": "headers", + "Result": "result", + }); }); -}); export function getDVRResponseFromJSON( jsonString: string, diff --git a/src/sdk/models/operations/getextras.ts b/src/models/operations/getextras.ts similarity index 82% rename from src/sdk/models/operations/getextras.ts rename to src/models/operations/getextras.ts index f0db0f11..0487e528 100644 --- a/src/sdk/models/operations/getextras.ts +++ b/src/models/operations/getextras.ts @@ -2,9 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +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"; @@ -105,23 +105,8 @@ export type GetExtrasRequest = { }; export type GetExtrasResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; headers: { [k: string]: Array }; + result: shared.MediaContainerWithMetadata; }; /** @internal */ @@ -143,7 +128,6 @@ export type GetExtrasRequest$Outbound = { /** @internal */ export const GetExtrasRequest$outboundSchema: z.ZodType< GetExtrasRequest$Outbound, - z.ZodTypeDef, GetExtrasRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -184,22 +168,14 @@ export function getExtrasRequestToJSON( /** @internal */ export const GetExtrasResponse$inboundSchema: z.ZodType< GetExtrasResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema - .optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: shared.MediaContainerWithMetadata$inboundSchema, }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithMetadata": "mediaContainerWithMetadata", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/getfile.ts b/src/models/operations/getfile.ts similarity index 77% rename from src/sdk/models/operations/getfile.ts rename to src/models/operations/getfile.ts index df74915c..6c1d8010 100644 --- a/src/sdk/models/operations/getfile.ts +++ b/src/models/operations/getfile.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import { smartUnion } from "../../types/smartUnion.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -108,28 +109,9 @@ export type GetFileRequest = { url?: string | undefined; }; -export type GetFileResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - twoHundredAudioMpeg3ResponseStream?: ReadableStream | undefined; - /** - * OK - */ - twoHundredImageJpegResponseStream?: ReadableStream | undefined; -}; +export type GetFileResponse = + | ReadableStream + | ReadableStream; /** @internal */ export type GetFileRequest$Outbound = { @@ -151,7 +133,6 @@ export type GetFileRequest$Outbound = { /** @internal */ export const GetFileRequest$outboundSchema: z.ZodType< GetFileRequest$Outbound, - z.ZodTypeDef, GetFileRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -189,25 +170,11 @@ export function getFileRequestToJSON(getFileRequest: GetFileRequest): string { /** @internal */ export const GetFileResponse$inboundSchema: z.ZodType< GetFileResponse, - z.ZodTypeDef, unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - "200_audio/mpeg3_response-stream": z.instanceof(ReadableStream) - .optional(), - "200_image/jpeg_response-stream": z.instanceof(ReadableStream) - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "200_audio/mpeg3_response-stream": "twoHundredAudioMpeg3ResponseStream", - "200_image/jpeg_response-stream": "twoHundredImageJpegResponseStream", - }); -}); +> = smartUnion([ + z.custom>(x => x instanceof ReadableStream), + z.custom>(x => x instanceof ReadableStream), +]); export function getFileResponseFromJSON( jsonString: string, diff --git a/src/sdk/models/operations/getfirstcharacters.ts b/src/models/operations/getfirstcharacters.ts similarity index 81% rename from src/sdk/models/operations/getfirstcharacters.ts rename to src/models/operations/getfirstcharacters.ts index 3dd37962..01bd5611 100644 --- a/src/sdk/models/operations/getfirstcharacters.ts +++ b/src/models/operations/getfirstcharacters.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -173,27 +174,8 @@ export type GetFirstCharactersMediaContainer = { /** * OK */ -export type GetFirstCharactersResponseBody = { - mediaContainer?: GetFirstCharactersMediaContainer | undefined; -}; - export type GetFirstCharactersResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: GetFirstCharactersResponseBody | undefined; + mediaContainer?: GetFirstCharactersMediaContainer | undefined; }; /** @internal */ @@ -218,7 +200,6 @@ export type GetFirstCharactersRequest$Outbound = { /** @internal */ export const GetFirstCharactersRequest$outboundSchema: z.ZodType< GetFirstCharactersRequest$Outbound, - z.ZodTypeDef, GetFirstCharactersRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -232,9 +213,9 @@ export const GetFirstCharactersRequest$outboundSchema: z.ZodType< 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(), + sectionId: z.int(), + type: z.int().optional(), + sort: z.int().optional(), mediaQuery: shared.MediaQuery$outboundSchema.optional(), }).transform((v) => { return remap$(v, { @@ -262,12 +243,11 @@ export function getFirstCharactersRequestToJSON( /** @internal */ export const GetFirstCharactersDirectory$inboundSchema: z.ZodType< GetFirstCharactersDirectory, - z.ZodTypeDef, unknown > = z.object({ - key: z.string().optional(), - size: z.number().int().optional(), - title: z.string().optional(), + key: types.optional(types.string()), + size: types.optional(types.number()), + title: types.optional(types.string()), }); export function getFirstCharactersDirectoryFromJSON( @@ -283,15 +263,15 @@ export function getFirstCharactersDirectoryFromJSON( /** @internal */ export const GetFirstCharactersMediaContainer$inboundSchema: z.ZodType< GetFirstCharactersMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - Directory: z.array(z.lazy(() => GetFirstCharactersDirectory$inboundSchema)) - .optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + Directory: types.optional( + z.array(z.lazy(() => GetFirstCharactersDirectory$inboundSchema)), + ), }).transform((v) => { return remap$(v, { "Directory": "directory", @@ -309,47 +289,19 @@ export function getFirstCharactersMediaContainerFromJSON( } /** @internal */ -export const GetFirstCharactersResponseBody$inboundSchema: z.ZodType< - GetFirstCharactersResponseBody, - z.ZodTypeDef, +export const GetFirstCharactersResponse$inboundSchema: z.ZodType< + GetFirstCharactersResponse, unknown > = z.object({ - MediaContainer: z.lazy(() => GetFirstCharactersMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => GetFirstCharactersMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", }); }); -export function getFirstCharactersResponseBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetFirstCharactersResponseBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetFirstCharactersResponseBody' from JSON`, - ); -} - -/** @internal */ -export const GetFirstCharactersResponse$inboundSchema: z.ZodType< - GetFirstCharactersResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetFirstCharactersResponseBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - export function getFirstCharactersResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getfolders.ts b/src/models/operations/getfolders.ts similarity index 79% rename from src/sdk/models/operations/getfolders.ts rename to src/models/operations/getfolders.ts index 424c6dfe..8d735272 100644 --- a/src/sdk/models/operations/getfolders.ts +++ b/src/models/operations/getfolders.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -141,27 +142,8 @@ export type GetFoldersMediaContainer = { /** * OK */ -export type GetFoldersResponseBody = { - mediaContainer?: GetFoldersMediaContainer | undefined; -}; - export type GetFoldersResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: GetFoldersResponseBody | undefined; + mediaContainer?: GetFoldersMediaContainer | undefined; }; /** @internal */ @@ -183,7 +165,6 @@ export type GetFoldersRequest$Outbound = { /** @internal */ export const GetFoldersRequest$outboundSchema: z.ZodType< GetFoldersRequest$Outbound, - z.ZodTypeDef, GetFoldersRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -197,7 +178,7 @@ export const GetFoldersRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - sectionId: z.number().int(), + sectionId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -224,12 +205,11 @@ export function getFoldersRequestToJSON( /** @internal */ export const GetFoldersDirectory$inboundSchema: z.ZodType< GetFoldersDirectory, - z.ZodTypeDef, unknown > = z.object({ - fastKey: z.string().optional(), - key: z.string().optional(), - title: z.string().optional(), + fastKey: types.optional(types.string()), + key: types.optional(types.string()), + title: types.optional(types.string()), }); export function getFoldersDirectoryFromJSON( @@ -245,15 +225,15 @@ export function getFoldersDirectoryFromJSON( /** @internal */ export const GetFoldersMediaContainer$inboundSchema: z.ZodType< GetFoldersMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - Directory: z.array(z.lazy(() => GetFoldersDirectory$inboundSchema)) - .optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + Directory: types.optional( + z.array(z.lazy(() => GetFoldersDirectory$inboundSchema)), + ), }).transform((v) => { return remap$(v, { "Directory": "directory", @@ -271,47 +251,19 @@ export function getFoldersMediaContainerFromJSON( } /** @internal */ -export const GetFoldersResponseBody$inboundSchema: z.ZodType< - GetFoldersResponseBody, - z.ZodTypeDef, +export const GetFoldersResponse$inboundSchema: z.ZodType< + GetFoldersResponse, unknown > = z.object({ - MediaContainer: z.lazy(() => GetFoldersMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => GetFoldersMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", }); }); -export function getFoldersResponseBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetFoldersResponseBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetFoldersResponseBody' from JSON`, - ); -} - -/** @internal */ -export const GetFoldersResponse$inboundSchema: z.ZodType< - GetFoldersResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetFoldersResponseBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - export function getFoldersResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/gethistoryitem.ts b/src/models/operations/gethistoryitem.ts similarity index 82% rename from src/sdk/models/operations/gethistoryitem.ts rename to src/models/operations/gethistoryitem.ts index d31d4863..8a52c85c 100644 --- a/src/sdk/models/operations/gethistoryitem.ts +++ b/src/models/operations/gethistoryitem.ts @@ -2,9 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +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"; @@ -108,23 +108,8 @@ export type GetHistoryItemRequest = { }; export type GetHistoryItemResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - historyAllGetResponses200?: shared.HistoryAllGetResponses200 | undefined; headers: { [k: string]: Array }; + result: shared.HistoryAllGetResponses200; }; /** @internal */ @@ -146,7 +131,6 @@ export type GetHistoryItemRequest$Outbound = { /** @internal */ export const GetHistoryItemRequest$outboundSchema: z.ZodType< GetHistoryItemRequest$Outbound, - z.ZodTypeDef, GetHistoryItemRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -160,7 +144,7 @@ export const GetHistoryItemRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - historyId: z.number().int(), + historyId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -187,22 +171,14 @@ export function getHistoryItemRequestToJSON( /** @internal */ export const GetHistoryItemResponse$inboundSchema: z.ZodType< GetHistoryItemResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - "historyAll-get-responses-200": shared.HistoryAllGetResponses200$inboundSchema - .optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: shared.HistoryAllGetResponses200$inboundSchema, }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "historyAll-get-responses-200": "historyAllGetResponses200", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/gethubitems.ts b/src/models/operations/gethubitems.ts similarity index 86% rename from src/sdk/models/operations/gethubitems.ts rename to src/models/operations/gethubitems.ts index 40830e70..92a3bb9e 100644 --- a/src/sdk/models/operations/gethubitems.ts +++ b/src/models/operations/gethubitems.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -126,23 +127,8 @@ export type GetHubItemsResponseBody = { }; export type GetHubItemsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: GetHubItemsResponseBody | undefined; headers: { [k: string]: Array }; + result: GetHubItemsResponseBody; }; /** @internal */ @@ -165,7 +151,6 @@ export type GetHubItemsRequest$Outbound = { /** @internal */ export const GetHubItemsRequest$outboundSchema: z.ZodType< GetHubItemsRequest$Outbound, - z.ZodTypeDef, GetHubItemsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -179,7 +164,7 @@ export const GetHubItemsRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - count: z.number().int().optional(), + count: z.int().optional(), identifier: z.array(z.string()), }).transform((v) => { return remap$(v, { @@ -207,10 +192,9 @@ export function getHubItemsRequestToJSON( /** @internal */ export const GetHubItemsResponseBody$inboundSchema: z.ZodType< GetHubItemsResponseBody, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: shared.MediaContainer$inboundSchema.optional(), + MediaContainer: types.optional(shared.MediaContainer$inboundSchema), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -230,20 +214,14 @@ export function getHubItemsResponseBodyFromJSON( /** @internal */ export const GetHubItemsResponse$inboundSchema: z.ZodType< GetHubItemsResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetHubItemsResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: z.lazy(() => GetHubItemsResponseBody$inboundSchema), }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/getidentity.ts b/src/models/operations/getidentity.ts similarity index 51% rename from src/sdk/models/operations/getidentity.ts rename to src/models/operations/getidentity.ts index 41c86602..a48b4a0e 100644 --- a/src/sdk/models/operations/getidentity.ts +++ b/src/models/operations/getidentity.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetIdentityMediaContainer = { @@ -27,39 +28,19 @@ export type GetIdentityMediaContainer = { /** * OK */ -export type GetIdentityResponseBody = { - mediaContainer?: GetIdentityMediaContainer | undefined; -}; - export type GetIdentityResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: GetIdentityResponseBody | undefined; + mediaContainer?: GetIdentityMediaContainer | undefined; }; /** @internal */ export const GetIdentityMediaContainer$inboundSchema: z.ZodType< GetIdentityMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - claimed: z.boolean().optional(), - machineIdentifier: z.string().optional(), - size: z.number().int().optional(), - version: z.string().optional(), + claimed: types.optional(types.boolean()), + machineIdentifier: types.optional(types.string()), + size: types.optional(types.number()), + version: types.optional(types.string()), }); export function getIdentityMediaContainerFromJSON( @@ -73,47 +54,19 @@ export function getIdentityMediaContainerFromJSON( } /** @internal */ -export const GetIdentityResponseBody$inboundSchema: z.ZodType< - GetIdentityResponseBody, - z.ZodTypeDef, +export const GetIdentityResponse$inboundSchema: z.ZodType< + GetIdentityResponse, unknown > = z.object({ - MediaContainer: z.lazy(() => GetIdentityMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => GetIdentityMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", }); }); -export function getIdentityResponseBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetIdentityResponseBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetIdentityResponseBody' from JSON`, - ); -} - -/** @internal */ -export const GetIdentityResponse$inboundSchema: z.ZodType< - GetIdentityResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetIdentityResponseBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - export function getIdentityResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getimage.ts b/src/models/operations/getimage.ts similarity index 76% rename from src/sdk/models/operations/getimage.ts rename to src/models/operations/getimage.ts index 07fd9519..e6bb273d 100644 --- a/src/sdk/models/operations/getimage.ts +++ b/src/models/operations/getimage.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type GetImageGlobals = { @@ -131,25 +128,6 @@ export type GetImageRequest = { noise?: shared.BoolInt | undefined; }; -export type GetImageResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - responseStream?: ReadableStream | undefined; -}; - /** @internal */ export type GetImageRequest$Outbound = { accepts: string; @@ -175,7 +153,6 @@ export type GetImageRequest$Outbound = { /** @internal */ export const GetImageRequest$outboundSchema: z.ZodType< GetImageRequest$Outbound, - z.ZodTypeDef, GetImageRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -193,8 +170,8 @@ export const GetImageRequest$outboundSchema: z.ZodType< topRight: z.string().optional(), bottomRight: z.string().optional(), bottomLeft: z.string().optional(), - width: z.number().int().optional(), - height: z.number().int().optional(), + width: z.int().optional(), + height: z.int().optional(), noise: shared.BoolInt$outboundSchema.default(shared.BoolInt.False), }).transform((v) => { return remap$(v, { @@ -216,32 +193,3 @@ export function getImageRequestToJSON( ): string { return JSON.stringify(GetImageRequest$outboundSchema.parse(getImageRequest)); } - -/** @internal */ -export const GetImageResponse$inboundSchema: z.ZodType< - GetImageResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - "response-stream": z.instanceof(ReadableStream).optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "response-stream": "responseStream", - }); -}); - -export function getImageResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetImageResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetImageResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/getimagefrombif.ts b/src/models/operations/getimagefrombif.ts similarity index 72% rename from src/sdk/models/operations/getimagefrombif.ts rename to src/models/operations/getimagefrombif.ts index c13f9f4d..ba6c4349 100644 --- a/src/sdk/models/operations/getimagefrombif.ts +++ b/src/models/operations/getimagefrombif.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type GetImageFromBifGlobals = { @@ -122,29 +119,10 @@ export type GetImageFromBifRequest = { offset: number; }; -export type GetImageFromBifResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - responseStream?: ReadableStream | undefined; -}; - /** @internal */ -export const GetImageFromBifIndex$outboundSchema: z.ZodNativeEnum< +export const GetImageFromBifIndex$outboundSchema: z.ZodEnum< typeof GetImageFromBifIndex -> = z.nativeEnum(GetImageFromBifIndex); +> = z.enum(GetImageFromBifIndex); /** @internal */ export type GetImageFromBifRequest$Outbound = { @@ -167,7 +145,6 @@ export type GetImageFromBifRequest$Outbound = { /** @internal */ export const GetImageFromBifRequest$outboundSchema: z.ZodType< GetImageFromBifRequest$Outbound, - z.ZodTypeDef, GetImageFromBifRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -181,9 +158,9 @@ export const GetImageFromBifRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - partId: z.number().int(), + partId: z.int(), index: GetImageFromBifIndex$outboundSchema, - offset: z.number().int(), + offset: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -206,32 +183,3 @@ export function getImageFromBifRequestToJSON( GetImageFromBifRequest$outboundSchema.parse(getImageFromBifRequest), ); } - -/** @internal */ -export const GetImageFromBifResponse$inboundSchema: z.ZodType< - GetImageFromBifResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - "response-stream": z.instanceof(ReadableStream).optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "response-stream": "responseStream", - }); -}); - -export function getImageFromBifResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetImageFromBifResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetImageFromBifResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/getitemartwork.ts b/src/models/operations/getitemartwork.ts similarity index 77% rename from src/sdk/models/operations/getitemartwork.ts rename to src/models/operations/getitemartwork.ts index 3821fab5..7aef0ca1 100644 --- a/src/sdk/models/operations/getitemartwork.ts +++ b/src/models/operations/getitemartwork.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import { smartUnion } from "../../types/smartUnion.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -118,33 +119,14 @@ export type GetItemArtworkRequest = { timestamp: number; }; -export type GetItemArtworkResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - twoHundredAudioMpeg3ResponseStream?: ReadableStream | undefined; - /** - * OK - */ - twoHundredImageJpegResponseStream?: ReadableStream | undefined; -}; +export type GetItemArtworkResponse = + | ReadableStream + | ReadableStream; /** @internal */ -export const GetItemArtworkElement$outboundSchema: z.ZodNativeEnum< +export const GetItemArtworkElement$outboundSchema: z.ZodEnum< typeof GetItemArtworkElement -> = z.nativeEnum(GetItemArtworkElement); +> = z.enum(GetItemArtworkElement); /** @internal */ export type GetItemArtworkRequest$Outbound = { @@ -167,7 +149,6 @@ export type GetItemArtworkRequest$Outbound = { /** @internal */ export const GetItemArtworkRequest$outboundSchema: z.ZodType< GetItemArtworkRequest$Outbound, - z.ZodTypeDef, GetItemArtworkRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -183,7 +164,7 @@ export const GetItemArtworkRequest$outboundSchema: z.ZodType< marketplace: z.string().optional(), ids: z.string(), element: GetItemArtworkElement$outboundSchema, - timestamp: z.number().int(), + timestamp: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -210,25 +191,11 @@ export function getItemArtworkRequestToJSON( /** @internal */ export const GetItemArtworkResponse$inboundSchema: z.ZodType< GetItemArtworkResponse, - z.ZodTypeDef, unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - "200_audio/mpeg3_response-stream": z.instanceof(ReadableStream) - .optional(), - "200_image/jpeg_response-stream": z.instanceof(ReadableStream) - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "200_audio/mpeg3_response-stream": "twoHundredAudioMpeg3ResponseStream", - "200_image/jpeg_response-stream": "twoHundredImageJpegResponseStream", - }); -}); +> = smartUnion([ + z.custom>(x => x instanceof ReadableStream), + z.custom>(x => x instanceof ReadableStream), +]); export function getItemArtworkResponseFromJSON( jsonString: string, diff --git a/src/sdk/models/operations/getitemdecision.ts b/src/models/operations/getitemdecision.ts similarity index 71% rename from src/sdk/models/operations/getitemdecision.ts rename to src/models/operations/getitemdecision.ts index 11e32579..484ac54e 100644 --- a/src/sdk/models/operations/getitemdecision.ts +++ b/src/models/operations/getitemdecision.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type GetItemDecisionGlobals = { @@ -111,25 +108,6 @@ export type GetItemDecisionRequest = { itemId: number; }; -export type GetItemDecisionResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithDecision?: shared.MediaContainerWithDecision | undefined; -}; - /** @internal */ export type GetItemDecisionRequest$Outbound = { accepts: string; @@ -150,7 +128,6 @@ export type GetItemDecisionRequest$Outbound = { /** @internal */ export const GetItemDecisionRequest$outboundSchema: z.ZodType< GetItemDecisionRequest$Outbound, - z.ZodTypeDef, GetItemDecisionRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -164,8 +141,8 @@ export const GetItemDecisionRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - queueId: z.number().int(), - itemId: z.number().int(), + queueId: z.int(), + itemId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -188,33 +165,3 @@ export function getItemDecisionRequestToJSON( GetItemDecisionRequest$outboundSchema.parse(getItemDecisionRequest), ); } - -/** @internal */ -export const GetItemDecisionResponse$inboundSchema: z.ZodType< - GetItemDecisionResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithDecision: shared.MediaContainerWithDecision$inboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithDecision": "mediaContainerWithDecision", - }); -}); - -export function getItemDecisionResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetItemDecisionResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetItemDecisionResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/getitemtree.ts b/src/models/operations/getitemtree.ts similarity index 70% rename from src/sdk/models/operations/getitemtree.ts rename to src/models/operations/getitemtree.ts index 5262ea76..f72461fa 100644 --- a/src/sdk/models/operations/getitemtree.ts +++ b/src/models/operations/getitemtree.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type GetItemTreeGlobals = { @@ -104,27 +101,6 @@ export type GetItemTreeRequest = { ids: string; }; -export type GetItemTreeResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithNestedMetadata?: - | shared.MediaContainerWithNestedMetadata - | undefined; -}; - /** @internal */ export type GetItemTreeRequest$Outbound = { accepts: string; @@ -144,7 +120,6 @@ export type GetItemTreeRequest$Outbound = { /** @internal */ export const GetItemTreeRequest$outboundSchema: z.ZodType< GetItemTreeRequest$Outbound, - z.ZodTypeDef, GetItemTreeRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -181,33 +156,3 @@ export function getItemTreeRequestToJSON( GetItemTreeRequest$outboundSchema.parse(getItemTreeRequest), ); } - -/** @internal */ -export const GetItemTreeResponse$inboundSchema: z.ZodType< - GetItemTreeResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithNestedMetadata: shared - .MediaContainerWithNestedMetadata$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithNestedMetadata": "mediaContainerWithNestedMetadata", - }); -}); - -export function getItemTreeResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetItemTreeResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetItemTreeResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/getlibrarydetails.ts b/src/models/operations/getlibrarydetails.ts similarity index 77% rename from src/sdk/models/operations/getlibrarydetails.ts rename to src/models/operations/getlibrarydetails.ts index 1db031cb..2ed1a57c 100644 --- a/src/sdk/models/operations/getlibrarydetails.ts +++ b/src/models/operations/getlibrarydetails.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -139,27 +140,8 @@ export type GetLibraryDetailsMediaContainer = { /** * OK */ -export type GetLibraryDetailsResponseBody = { - mediaContainer?: GetLibraryDetailsMediaContainer | undefined; -}; - export type GetLibraryDetailsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: GetLibraryDetailsResponseBody | undefined; + mediaContainer?: GetLibraryDetailsMediaContainer | undefined; }; /** @internal */ @@ -182,7 +164,6 @@ export type GetLibraryDetailsRequest$Outbound = { /** @internal */ export const GetLibraryDetailsRequest$outboundSchema: z.ZodType< GetLibraryDetailsRequest$Outbound, - z.ZodTypeDef, GetLibraryDetailsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -224,23 +205,22 @@ export function getLibraryDetailsRequestToJSON( /** @internal */ export const GetLibraryDetailsMediaContainer$inboundSchema: z.ZodType< GetLibraryDetailsMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - content: z.string().optional(), - allowSync: z.boolean().optional(), - art: z.string().optional(), - Directory: z.array(shared.Metadata$inboundSchema).optional(), - identifier: z.string().optional(), - librarySectionID: z.number().int().optional(), - mediaTagPrefix: z.string().optional(), - mediaTagVersion: z.number().int().optional(), - size: z.number().int().optional(), - sortAsc: z.boolean().optional(), - thumb: z.string().optional(), - title1: z.string().optional(), - viewGroup: z.string().optional(), - viewMode: z.number().int().optional(), + content: types.optional(types.string()), + allowSync: types.optional(types.boolean()), + art: types.optional(types.string()), + Directory: types.optional(z.array(shared.Metadata$inboundSchema)), + identifier: types.optional(types.string()), + librarySectionID: types.optional(types.number()), + mediaTagPrefix: types.optional(types.string()), + mediaTagVersion: types.optional(types.number()), + size: types.optional(types.number()), + sortAsc: types.optional(types.boolean()), + thumb: types.optional(types.string()), + title1: types.optional(types.string()), + viewGroup: types.optional(types.string()), + viewMode: types.optional(types.number()), }).transform((v) => { return remap$(v, { "Directory": "directory", @@ -258,47 +238,19 @@ export function getLibraryDetailsMediaContainerFromJSON( } /** @internal */ -export const GetLibraryDetailsResponseBody$inboundSchema: z.ZodType< - GetLibraryDetailsResponseBody, - z.ZodTypeDef, +export const GetLibraryDetailsResponse$inboundSchema: z.ZodType< + GetLibraryDetailsResponse, unknown > = z.object({ - MediaContainer: z.lazy(() => GetLibraryDetailsMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => GetLibraryDetailsMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", }); }); -export function getLibraryDetailsResponseBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetLibraryDetailsResponseBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetLibraryDetailsResponseBody' from JSON`, - ); -} - -/** @internal */ -export const GetLibraryDetailsResponse$inboundSchema: z.ZodType< - GetLibraryDetailsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetLibraryDetailsResponseBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - export function getLibraryDetailsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getlibraryitems.ts b/src/models/operations/getlibraryitems.ts similarity index 85% rename from src/sdk/models/operations/getlibraryitems.ts rename to src/models/operations/getlibraryitems.ts index 294044fd..da485286 100644 --- a/src/sdk/models/operations/getlibraryitems.ts +++ b/src/models/operations/getlibraryitems.ts @@ -2,9 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +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"; @@ -125,23 +125,8 @@ export type GetLibraryItemsRequest = { }; export type GetLibraryItemsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; headers: { [k: string]: Array }; + result: shared.MediaContainerWithMetadata; }; /** @internal */ @@ -163,7 +148,6 @@ export type GetLibraryItemsRequest$Outbound = { /** @internal */ export const GetLibraryItemsRequest$outboundSchema: z.ZodType< GetLibraryItemsRequest$Outbound, - z.ZodTypeDef, GetLibraryItemsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -204,22 +188,14 @@ export function getLibraryItemsRequestToJSON( /** @internal */ export const GetLibraryItemsResponse$inboundSchema: z.ZodType< GetLibraryItemsResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema - .optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: shared.MediaContainerWithMetadata$inboundSchema, }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithMetadata": "mediaContainerWithMetadata", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/getlibrarymatches.ts b/src/models/operations/getlibrarymatches.ts similarity index 86% rename from src/sdk/models/operations/getlibrarymatches.ts rename to src/models/operations/getlibrarymatches.ts index 73443dab..c10dfd43 100644 --- a/src/sdk/models/operations/getlibrarymatches.ts +++ b/src/models/operations/getlibrarymatches.ts @@ -2,9 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +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"; @@ -165,23 +165,8 @@ export type GetLibraryMatchesRequest = { }; export type GetLibraryMatchesResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; headers: { [k: string]: Array }; + result: shared.MediaContainerWithMetadata; }; /** @internal */ @@ -216,7 +201,6 @@ export type GetLibraryMatchesRequest$Outbound = { /** @internal */ export const GetLibraryMatchesRequest$outboundSchema: z.ZodType< GetLibraryMatchesRequest$Outbound, - z.ZodTypeDef, GetLibraryMatchesRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -242,12 +226,12 @@ export const GetLibraryMatchesRequest$outboundSchema: z.ZodType< ), guid: z.string().optional(), title: z.string().optional(), - year: z.number().int().optional(), + year: z.int().optional(), path: z.string().optional(), grandparentTitle: z.string().optional(), - grandparentYear: z.number().int().optional(), - parentIndex: z.number().int().optional(), - index: z.number().int().optional(), + grandparentYear: z.int().optional(), + parentIndex: z.int().optional(), + index: z.int().optional(), originallyAvailableAt: z.string().optional(), parentTitle: z.string().optional(), }).transform((v) => { @@ -276,22 +260,14 @@ export function getLibraryMatchesRequestToJSON( /** @internal */ export const GetLibraryMatchesResponse$inboundSchema: z.ZodType< GetLibraryMatchesResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema - .optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: shared.MediaContainerWithMetadata$inboundSchema, }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithMetadata": "mediaContainerWithMetadata", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/getlineup.ts b/src/models/operations/getlineup.ts similarity index 87% rename from src/sdk/models/operations/getlineup.ts rename to src/models/operations/getlineup.ts index 93683d28..526a86e9 100644 --- a/src/sdk/models/operations/getlineup.ts +++ b/src/models/operations/getlineup.ts @@ -2,9 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +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"; @@ -112,18 +112,6 @@ export type GetLineupRequest = { }; export type GetLineupResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; headers: { [k: string]: Array }; }; @@ -147,7 +135,6 @@ export type GetLineupRequest$Outbound = { /** @internal */ export const GetLineupRequest$outboundSchema: z.ZodType< GetLineupRequest$Outbound, - z.ZodTypeDef, GetLineupRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -189,18 +176,11 @@ export function getLineupRequestToJSON( /** @internal */ export const GetLineupResponse$inboundSchema: z.ZodType< GetLineupResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", "Headers": "headers", }); }); diff --git a/src/sdk/models/operations/getlineupchannels.ts b/src/models/operations/getlineupchannels.ts similarity index 77% rename from src/sdk/models/operations/getlineupchannels.ts rename to src/models/operations/getlineupchannels.ts index 983d2b62..55827645 100644 --- a/src/sdk/models/operations/getlineupchannels.ts +++ b/src/models/operations/getlineupchannels.ts @@ -2,10 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import * as openEnums from "../../types/enums.js"; +import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -125,6 +128,17 @@ export enum LineupType { Three = 3, Four = 4, } +/** + * - `-1`: N/A + * + * @remarks + * - `0`: Over the air + * - `1`: Cable + * - `2`: Satellite + * - `3`: IPTV + * - `4`: Virtual + */ +export type LineupTypeOpen = OpenEnum; export type Lineup = { title?: string | undefined; @@ -142,7 +156,7 @@ export type Lineup = { * - `3`: IPTV * - `4`: Virtual */ - lineupType?: LineupType | undefined; + lineupType?: LineupTypeOpen | undefined; location?: string | undefined; /** * The uuid of this lineup @@ -179,27 +193,8 @@ export type GetLineupChannelsMediaContainer = { /** * OK */ -export type GetLineupChannelsResponseBody = { - mediaContainer?: GetLineupChannelsMediaContainer | undefined; -}; - export type GetLineupChannelsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: GetLineupChannelsResponseBody | undefined; + mediaContainer?: GetLineupChannelsMediaContainer | undefined; }; /** @internal */ @@ -221,7 +216,6 @@ export type GetLineupChannelsRequest$Outbound = { /** @internal */ export const GetLineupChannelsRequest$outboundSchema: z.ZodType< GetLineupChannelsRequest$Outbound, - z.ZodTypeDef, GetLineupChannelsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -260,23 +254,22 @@ export function getLineupChannelsRequestToJSON( } /** @internal */ -export const LineupType$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(LineupType); +export const LineupType$inboundSchema: z.ZodType = + openEnums.inboundSchemaInt(LineupType); /** @internal */ -export const Lineup$inboundSchema: z.ZodType = z - .object({ - title: z.string().optional(), - type: z.string().optional(), - lineupType: LineupType$inboundSchema.optional(), - location: z.string().optional(), - uuid: z.string().optional(), - Channel: z.array(shared.Channel$inboundSchema).optional(), - }).transform((v) => { - return remap$(v, { - "Channel": "channel", - }); +export const Lineup$inboundSchema: z.ZodType = z.object({ + title: types.optional(types.string()), + type: types.optional(types.string()), + lineupType: types.optional(LineupType$inboundSchema), + location: types.optional(types.string()), + uuid: types.optional(types.string()), + Channel: types.optional(z.array(shared.Channel$inboundSchema)), +}).transform((v) => { + return remap$(v, { + "Channel": "channel", }); +}); export function lineupFromJSON( jsonString: string, @@ -291,14 +284,13 @@ export function lineupFromJSON( /** @internal */ export const GetLineupChannelsMediaContainer$inboundSchema: z.ZodType< GetLineupChannelsMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - Lineup: z.array(z.lazy(() => Lineup$inboundSchema)).optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + Lineup: types.optional(z.array(z.lazy(() => Lineup$inboundSchema))), }).transform((v) => { return remap$(v, { "Lineup": "lineup", @@ -316,47 +308,19 @@ export function getLineupChannelsMediaContainerFromJSON( } /** @internal */ -export const GetLineupChannelsResponseBody$inboundSchema: z.ZodType< - GetLineupChannelsResponseBody, - z.ZodTypeDef, +export const GetLineupChannelsResponse$inboundSchema: z.ZodType< + GetLineupChannelsResponse, unknown > = z.object({ - MediaContainer: z.lazy(() => GetLineupChannelsMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => GetLineupChannelsMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", }); }); -export function getLineupChannelsResponseBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetLineupChannelsResponseBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetLineupChannelsResponseBody' from JSON`, - ); -} - -/** @internal */ -export const GetLineupChannelsResponse$inboundSchema: z.ZodType< - GetLineupChannelsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetLineupChannelsResponseBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - export function getLineupChannelsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getlivetvsession.ts b/src/models/operations/getlivetvsession.ts similarity index 83% rename from src/sdk/models/operations/getlivetvsession.ts rename to src/models/operations/getlivetvsession.ts index f3315937..f05ff095 100644 --- a/src/sdk/models/operations/getlivetvsession.ts +++ b/src/models/operations/getlivetvsession.ts @@ -2,9 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +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"; @@ -108,23 +108,8 @@ export type GetLiveTVSessionRequest = { }; export type GetLiveTVSessionResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; headers: { [k: string]: Array }; + result: shared.MediaContainerWithMetadata; }; /** @internal */ @@ -146,7 +131,6 @@ export type GetLiveTVSessionRequest$Outbound = { /** @internal */ export const GetLiveTVSessionRequest$outboundSchema: z.ZodType< GetLiveTVSessionRequest$Outbound, - z.ZodTypeDef, GetLiveTVSessionRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -187,22 +171,14 @@ export function getLiveTVSessionRequestToJSON( /** @internal */ export const GetLiveTVSessionResponse$inboundSchema: z.ZodType< GetLiveTVSessionResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema - .optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: shared.MediaContainerWithMetadata$inboundSchema, }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithMetadata": "mediaContainerWithMetadata", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/getmediapart.ts b/src/models/operations/getmediapart.ts similarity index 87% rename from src/sdk/models/operations/getmediapart.ts rename to src/models/operations/getmediapart.ts index 122d6e4d..4e602a0d 100644 --- a/src/sdk/models/operations/getmediapart.ts +++ b/src/models/operations/getmediapart.ts @@ -2,9 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +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"; @@ -120,18 +120,6 @@ export type GetMediaPartRequest = { }; export type GetMediaPartResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; headers: { [k: string]: Array }; }; @@ -157,7 +145,6 @@ export type GetMediaPartRequest$Outbound = { /** @internal */ export const GetMediaPartRequest$outboundSchema: z.ZodType< GetMediaPartRequest$Outbound, - z.ZodTypeDef, GetMediaPartRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -171,8 +158,8 @@ export const GetMediaPartRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - partId: z.number().int(), - changestamp: z.number().int(), + partId: z.int(), + changestamp: z.int(), filename: z.string(), download: shared.BoolInt$outboundSchema.default(shared.BoolInt.False), }).transform((v) => { @@ -201,18 +188,11 @@ export function getMediaPartRequestToJSON( /** @internal */ export const GetMediaPartResponse$inboundSchema: z.ZodType< GetMediaPartResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", "Headers": "headers", }); }); diff --git a/src/sdk/models/operations/getmetadatahubs.ts b/src/models/operations/getmetadatahubs.ts similarity index 83% rename from src/sdk/models/operations/getmetadatahubs.ts rename to src/models/operations/getmetadatahubs.ts index 60ae1570..9a5917ce 100644 --- a/src/sdk/models/operations/getmetadatahubs.ts +++ b/src/models/operations/getmetadatahubs.ts @@ -2,9 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +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"; @@ -116,23 +116,8 @@ export type GetMetadataHubsRequest = { }; export type GetMetadataHubsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithHubs?: shared.MediaContainerWithHubs | undefined; headers: { [k: string]: Array }; + result: shared.MediaContainerWithHubs; }; /** @internal */ @@ -156,7 +141,6 @@ export type GetMetadataHubsRequest$Outbound = { /** @internal */ export const GetMetadataHubsRequest$outboundSchema: z.ZodType< GetMetadataHubsRequest$Outbound, - z.ZodTypeDef, GetMetadataHubsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -170,8 +154,8 @@ export const GetMetadataHubsRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - metadataId: z.number().int(), - count: z.number().int().optional(), + metadataId: z.int(), + count: z.int().optional(), onlyTransient: shared.BoolInt$outboundSchema.default(shared.BoolInt.False), }).transform((v) => { return remap$(v, { @@ -199,22 +183,14 @@ export function getMetadataHubsRequestToJSON( /** @internal */ export const GetMetadataHubsResponse$inboundSchema: z.ZodType< GetMetadataHubsResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithHubs: shared.MediaContainerWithHubs$inboundSchema - .optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: shared.MediaContainerWithHubs$inboundSchema, }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithHubs": "mediaContainerWithHubs", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/getmetadataitem.ts b/src/models/operations/getmetadataitem.ts similarity index 88% rename from src/sdk/models/operations/getmetadataitem.ts rename to src/models/operations/getmetadataitem.ts index 8f7946ac..5b9353fd 100644 --- a/src/sdk/models/operations/getmetadataitem.ts +++ b/src/models/operations/getmetadataitem.ts @@ -2,9 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +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"; @@ -137,23 +137,8 @@ export type GetMetadataItemRequest = { }; export type GetMetadataItemResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; headers: { [k: string]: Array }; + result: shared.MediaContainerWithMetadata; }; /** @internal */ @@ -183,7 +168,6 @@ export type GetMetadataItemRequest$Outbound = { /** @internal */ export const GetMetadataItemRequest$outboundSchema: z.ZodType< GetMetadataItemRequest$Outbound, - z.ZodTypeDef, GetMetadataItemRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -240,22 +224,14 @@ export function getMetadataItemRequestToJSON( /** @internal */ export const GetMetadataItemResponse$inboundSchema: z.ZodType< GetMetadataItemResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema - .optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: shared.MediaContainerWithMetadata$inboundSchema, }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithMetadata": "mediaContainerWithMetadata", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/getnotifications.ts b/src/models/operations/getnotifications.ts similarity index 74% rename from src/sdk/models/operations/getnotifications.ts rename to src/models/operations/getnotifications.ts index b3d64df5..005a83a6 100644 --- a/src/sdk/models/operations/getnotifications.ts +++ b/src/models/operations/getnotifications.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type GetNotificationsGlobals = { @@ -114,25 +111,6 @@ export type GetNotificationsRequest = { filter?: Array | undefined; }; -export type GetNotificationsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - responseStream?: ReadableStream | undefined; -}; - /** @internal */ export type GetNotificationsRequest$Outbound = { accepts: string; @@ -152,7 +130,6 @@ export type GetNotificationsRequest$Outbound = { /** @internal */ export const GetNotificationsRequest$outboundSchema: z.ZodType< GetNotificationsRequest$Outbound, - z.ZodTypeDef, GetNotificationsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -189,32 +166,3 @@ export function getNotificationsRequestToJSON( GetNotificationsRequest$outboundSchema.parse(getNotificationsRequest), ); } - -/** @internal */ -export const GetNotificationsResponse$inboundSchema: z.ZodType< - GetNotificationsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - "response-stream": z.instanceof(ReadableStream).optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "response-stream": "responseStream", - }); -}); - -export function getNotificationsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetNotificationsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetNotificationsResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/getpartindex.ts b/src/models/operations/getpartindex.ts similarity index 72% rename from src/sdk/models/operations/getpartindex.ts rename to src/models/operations/getpartindex.ts index 1a54bdce..145a9028 100644 --- a/src/sdk/models/operations/getpartindex.ts +++ b/src/models/operations/getpartindex.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type GetPartIndexGlobals = { @@ -122,29 +119,10 @@ export type GetPartIndexRequest = { interval?: number | undefined; }; -export type GetPartIndexResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - responseStream?: ReadableStream | undefined; -}; - /** @internal */ -export const GetPartIndexIndex$outboundSchema: z.ZodNativeEnum< +export const GetPartIndexIndex$outboundSchema: z.ZodEnum< typeof GetPartIndexIndex -> = z.nativeEnum(GetPartIndexIndex); +> = z.enum(GetPartIndexIndex); /** @internal */ export type GetPartIndexRequest$Outbound = { @@ -167,7 +145,6 @@ export type GetPartIndexRequest$Outbound = { /** @internal */ export const GetPartIndexRequest$outboundSchema: z.ZodType< GetPartIndexRequest$Outbound, - z.ZodTypeDef, GetPartIndexRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -181,9 +158,9 @@ export const GetPartIndexRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - partId: z.number().int(), + partId: z.int(), index: GetPartIndexIndex$outboundSchema, - interval: z.number().int().optional(), + interval: z.int().optional(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -206,32 +183,3 @@ export function getPartIndexRequestToJSON( GetPartIndexRequest$outboundSchema.parse(getPartIndexRequest), ); } - -/** @internal */ -export const GetPartIndexResponse$inboundSchema: z.ZodType< - GetPartIndexResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - "response-stream": z.instanceof(ReadableStream).optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "response-stream": "responseStream", - }); -}); - -export function getPartIndexResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetPartIndexResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetPartIndexResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/getperson.ts b/src/models/operations/getperson.ts similarity index 79% rename from src/sdk/models/operations/getperson.ts rename to src/models/operations/getperson.ts index f949bb4c..d50d6fff 100644 --- a/src/sdk/models/operations/getperson.ts +++ b/src/models/operations/getperson.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -135,27 +136,8 @@ export type GetPersonMediaContainer = { /** * OK */ -export type GetPersonResponseBody = { - mediaContainer?: GetPersonMediaContainer | undefined; -}; - export type GetPersonResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: GetPersonResponseBody | undefined; + mediaContainer?: GetPersonMediaContainer | undefined; }; /** @internal */ @@ -177,7 +159,6 @@ export type GetPersonRequest$Outbound = { /** @internal */ export const GetPersonRequest$outboundSchema: z.ZodType< GetPersonRequest$Outbound, - z.ZodTypeDef, GetPersonRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -218,14 +199,13 @@ export function getPersonRequestToJSON( /** @internal */ export const GetPersonMediaContainer$inboundSchema: z.ZodType< GetPersonMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - Directory: z.array(shared.Tag$inboundSchema).optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + Directory: types.optional(z.array(shared.Tag$inboundSchema)), }).transform((v) => { return remap$(v, { "Directory": "directory", @@ -243,47 +223,19 @@ export function getPersonMediaContainerFromJSON( } /** @internal */ -export const GetPersonResponseBody$inboundSchema: z.ZodType< - GetPersonResponseBody, - z.ZodTypeDef, +export const GetPersonResponse$inboundSchema: z.ZodType< + GetPersonResponse, unknown > = z.object({ - MediaContainer: z.lazy(() => GetPersonMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => GetPersonMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", }); }); -export function getPersonResponseBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetPersonResponseBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetPersonResponseBody' from JSON`, - ); -} - -/** @internal */ -export const GetPersonResponse$inboundSchema: z.ZodType< - GetPersonResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetPersonResponseBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - export function getPersonResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getplaylist.ts b/src/models/operations/getplaylist.ts similarity index 70% rename from src/sdk/models/operations/getplaylist.ts rename to src/models/operations/getplaylist.ts index 65f0deab..0224c4f6 100644 --- a/src/sdk/models/operations/getplaylist.ts +++ b/src/models/operations/getplaylist.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type GetPlaylistGlobals = { @@ -107,27 +104,6 @@ export type GetPlaylistRequest = { playlistId: number; }; -export type GetPlaylistResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithPlaylistMetadata?: - | shared.MediaContainerWithPlaylistMetadata - | undefined; -}; - /** @internal */ export type GetPlaylistRequest$Outbound = { accepts: string; @@ -147,7 +123,6 @@ export type GetPlaylistRequest$Outbound = { /** @internal */ export const GetPlaylistRequest$outboundSchema: z.ZodType< GetPlaylistRequest$Outbound, - z.ZodTypeDef, GetPlaylistRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -161,7 +136,7 @@ export const GetPlaylistRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - playlistId: z.number().int(), + playlistId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -184,33 +159,3 @@ export function getPlaylistRequestToJSON( GetPlaylistRequest$outboundSchema.parse(getPlaylistRequest), ); } - -/** @internal */ -export const GetPlaylistResponse$inboundSchema: z.ZodType< - GetPlaylistResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithPlaylistMetadata: shared - .MediaContainerWithPlaylistMetadata$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithPlaylistMetadata": "mediaContainerWithPlaylistMetadata", - }); -}); - -export function getPlaylistResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetPlaylistResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetPlaylistResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/getplaylistgenerator.ts b/src/models/operations/getplaylistgenerator.ts similarity index 71% rename from src/sdk/models/operations/getplaylistgenerator.ts rename to src/models/operations/getplaylistgenerator.ts index 375c4e55..7b8b64f9 100644 --- a/src/sdk/models/operations/getplaylistgenerator.ts +++ b/src/models/operations/getplaylistgenerator.ts @@ -2,10 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import * as openEnums from "../../types/enums.js"; +import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -128,6 +131,7 @@ export enum AdvancedSubtitles { Embedded = "embedded", Segmented = "segmented", } +export type AdvancedSubtitlesOpen = OpenEnum; export enum GetPlaylistGeneratorSubtitles { Auto = "auto", @@ -137,9 +141,12 @@ export enum GetPlaylistGeneratorSubtitles { Embedded = "embedded", Segmented = "segmented", } +export type GetPlaylistGeneratorSubtitlesOpen = OpenEnum< + typeof GetPlaylistGeneratorSubtitles +>; export type MediaSettings = { - advancedSubtitles?: AdvancedSubtitles | undefined; + advancedSubtitles?: AdvancedSubtitlesOpen | undefined; audioBoost?: number | undefined; audioChannelCount?: number | undefined; autoAdjustQuality?: boolean | undefined; @@ -154,7 +161,7 @@ export type MediaSettings = { photoQuality?: number | undefined; photoResolution?: string | undefined; secondsPerSegment?: number | undefined; - subtitles?: GetPlaylistGeneratorSubtitles | undefined; + subtitles?: GetPlaylistGeneratorSubtitlesOpen | undefined; subtitleSize?: number | undefined; videoBitrate?: number | undefined; videoQuality?: number | undefined; @@ -165,9 +172,12 @@ export enum GetPlaylistGeneratorScope { All = "all", Count = "count", } +export type GetPlaylistGeneratorScopeOpen = OpenEnum< + typeof GetPlaylistGeneratorScope +>; export type GetPlaylistGeneratorPolicy = { - scope?: GetPlaylistGeneratorScope | undefined; + scope?: GetPlaylistGeneratorScopeOpen | undefined; /** * True if only unwatched items are optimized */ @@ -183,12 +193,15 @@ export enum GetPlaylistGeneratorState { Complete = "complete", Failed = "failed", } +export type GetPlaylistGeneratorStateOpen = OpenEnum< + typeof GetPlaylistGeneratorState +>; export type GetPlaylistGeneratorStatus = { itemsCompleteCount?: number | undefined; itemsCount?: number | undefined; itemsSuccessfulCount?: number | undefined; - state?: GetPlaylistGeneratorState | undefined; + state?: GetPlaylistGeneratorStateOpen | undefined; totalSize?: number | undefined; }; @@ -199,6 +212,12 @@ export enum GetPlaylistGeneratorType { Minus1 = -1, FortyTwo = 42, } +/** + * The type of this generator + */ +export type GetPlaylistGeneratorTypeOpen = OpenEnum< + typeof GetPlaylistGeneratorType +>; export type GetPlaylistGeneratorItem = { /** @@ -220,7 +239,7 @@ export type GetPlaylistGeneratorItem = { /** * The type of this generator */ - type?: GetPlaylistGeneratorType | undefined; + type?: GetPlaylistGeneratorTypeOpen | undefined; }; /** @@ -251,27 +270,8 @@ export type GetPlaylistGeneratorMediaContainer = { /** * OK */ -export type GetPlaylistGeneratorResponseBody = { - mediaContainer?: GetPlaylistGeneratorMediaContainer | undefined; -}; - export type GetPlaylistGeneratorResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: GetPlaylistGeneratorResponseBody | undefined; + mediaContainer?: GetPlaylistGeneratorMediaContainer | undefined; }; /** @internal */ @@ -294,7 +294,6 @@ export type GetPlaylistGeneratorRequest$Outbound = { /** @internal */ export const GetPlaylistGeneratorRequest$outboundSchema: z.ZodType< GetPlaylistGeneratorRequest$Outbound, - z.ZodTypeDef, GetPlaylistGeneratorRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -308,8 +307,8 @@ export const GetPlaylistGeneratorRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - playlistId: z.number().int(), - generatorId: z.number().int(), + playlistId: z.int(), + generatorId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -338,10 +337,9 @@ export function getPlaylistGeneratorRequestToJSON( /** @internal */ export const GetPlaylistGeneratorDevice$inboundSchema: z.ZodType< GetPlaylistGeneratorDevice, - z.ZodTypeDef, unknown > = z.object({ - profile: z.string().optional(), + profile: types.optional(types.string()), }); export function getPlaylistGeneratorDeviceFromJSON( @@ -357,11 +355,10 @@ export function getPlaylistGeneratorDeviceFromJSON( /** @internal */ export const GetPlaylistGeneratorLocation$inboundSchema: z.ZodType< GetPlaylistGeneratorLocation, - z.ZodTypeDef, unknown > = z.object({ - librarySectionID: z.number().int().optional(), - uri: z.string().optional(), + librarySectionID: types.optional(types.number()), + uri: types.optional(types.string()), }); export function getPlaylistGeneratorLocationFromJSON( @@ -375,42 +372,41 @@ export function getPlaylistGeneratorLocationFromJSON( } /** @internal */ -export const AdvancedSubtitles$inboundSchema: z.ZodNativeEnum< - typeof AdvancedSubtitles -> = z.nativeEnum(AdvancedSubtitles); - -/** @internal */ -export const GetPlaylistGeneratorSubtitles$inboundSchema: z.ZodNativeEnum< - typeof GetPlaylistGeneratorSubtitles -> = z.nativeEnum(GetPlaylistGeneratorSubtitles); - -/** @internal */ -export const MediaSettings$inboundSchema: z.ZodType< - MediaSettings, - z.ZodTypeDef, +export const AdvancedSubtitles$inboundSchema: z.ZodType< + AdvancedSubtitlesOpen, unknown -> = z.object({ - advancedSubtitles: AdvancedSubtitles$inboundSchema.optional(), - audioBoost: z.number().int().optional(), - audioChannelCount: z.number().int().optional(), - autoAdjustQuality: z.boolean().optional(), - autoAdjustSubtitle: z.boolean().optional(), - directPlay: z.boolean().optional(), - directStream: z.boolean().optional(), - directStreamAudio: z.boolean().optional(), - disableResolutionRotation: z.boolean().optional(), - maxVideoBitrate: z.number().int().optional(), - musicBitrate: z.number().int().optional(), - peakBitrate: z.number().int().optional(), - photoQuality: z.number().int().optional(), - photoResolution: z.string().optional(), - secondsPerSegment: z.number().int().optional(), - subtitles: GetPlaylistGeneratorSubtitles$inboundSchema.optional(), - subtitleSize: z.number().int().optional(), - videoBitrate: z.number().int().optional(), - videoQuality: z.number().int().optional(), - videoResolution: z.string().optional(), -}); +> = openEnums.inboundSchema(AdvancedSubtitles); + +/** @internal */ +export const GetPlaylistGeneratorSubtitles$inboundSchema: z.ZodType< + GetPlaylistGeneratorSubtitlesOpen, + unknown +> = openEnums.inboundSchema(GetPlaylistGeneratorSubtitles); + +/** @internal */ +export const MediaSettings$inboundSchema: z.ZodType = z + .object({ + advancedSubtitles: types.optional(AdvancedSubtitles$inboundSchema), + audioBoost: types.optional(types.number()), + audioChannelCount: types.optional(types.number()), + autoAdjustQuality: types.optional(types.boolean()), + autoAdjustSubtitle: types.optional(types.boolean()), + directPlay: types.optional(types.boolean()), + directStream: types.optional(types.boolean()), + directStreamAudio: types.optional(types.boolean()), + disableResolutionRotation: types.optional(types.boolean()), + maxVideoBitrate: types.optional(types.number()), + musicBitrate: types.optional(types.number()), + peakBitrate: types.optional(types.number()), + photoQuality: types.optional(types.number()), + photoResolution: types.optional(types.string()), + secondsPerSegment: types.optional(types.number()), + subtitles: types.optional(GetPlaylistGeneratorSubtitles$inboundSchema), + subtitleSize: types.optional(types.number()), + videoBitrate: types.optional(types.number()), + videoQuality: types.optional(types.number()), + videoResolution: types.optional(types.string()), + }); export function mediaSettingsFromJSON( jsonString: string, @@ -423,19 +419,19 @@ export function mediaSettingsFromJSON( } /** @internal */ -export const GetPlaylistGeneratorScope$inboundSchema: z.ZodNativeEnum< - typeof GetPlaylistGeneratorScope -> = z.nativeEnum(GetPlaylistGeneratorScope); +export const GetPlaylistGeneratorScope$inboundSchema: z.ZodType< + GetPlaylistGeneratorScopeOpen, + unknown +> = openEnums.inboundSchema(GetPlaylistGeneratorScope); /** @internal */ export const GetPlaylistGeneratorPolicy$inboundSchema: z.ZodType< GetPlaylistGeneratorPolicy, - z.ZodTypeDef, unknown > = z.object({ - scope: GetPlaylistGeneratorScope$inboundSchema.optional(), - unwatched: z.boolean().optional(), - value: z.number().int().optional(), + scope: types.optional(GetPlaylistGeneratorScope$inboundSchema), + unwatched: types.optional(types.boolean()), + value: types.optional(types.number()), }); export function getPlaylistGeneratorPolicyFromJSON( @@ -449,21 +445,21 @@ export function getPlaylistGeneratorPolicyFromJSON( } /** @internal */ -export const GetPlaylistGeneratorState$inboundSchema: z.ZodNativeEnum< - typeof GetPlaylistGeneratorState -> = z.nativeEnum(GetPlaylistGeneratorState); +export const GetPlaylistGeneratorState$inboundSchema: z.ZodType< + GetPlaylistGeneratorStateOpen, + unknown +> = openEnums.inboundSchema(GetPlaylistGeneratorState); /** @internal */ export const GetPlaylistGeneratorStatus$inboundSchema: z.ZodType< GetPlaylistGeneratorStatus, - z.ZodTypeDef, unknown > = z.object({ - itemsCompleteCount: z.number().int().optional(), - itemsCount: z.number().int().optional(), - itemsSuccessfulCount: z.number().int().optional(), - state: GetPlaylistGeneratorState$inboundSchema.optional(), - totalSize: z.number().int().optional(), + itemsCompleteCount: types.optional(types.number()), + itemsCount: types.optional(types.number()), + itemsSuccessfulCount: types.optional(types.number()), + state: types.optional(GetPlaylistGeneratorState$inboundSchema), + totalSize: types.optional(types.number()), }); export function getPlaylistGeneratorStatusFromJSON( @@ -477,27 +473,35 @@ export function getPlaylistGeneratorStatusFromJSON( } /** @internal */ -export const GetPlaylistGeneratorType$inboundSchema: z.ZodNativeEnum< - typeof GetPlaylistGeneratorType -> = z.nativeEnum(GetPlaylistGeneratorType); +export const GetPlaylistGeneratorType$inboundSchema: z.ZodType< + GetPlaylistGeneratorTypeOpen, + unknown +> = openEnums.inboundSchemaInt(GetPlaylistGeneratorType); /** @internal */ export const GetPlaylistGeneratorItem$inboundSchema: z.ZodType< GetPlaylistGeneratorItem, - z.ZodTypeDef, unknown > = z.object({ - composite: z.string().optional(), - Device: z.lazy(() => GetPlaylistGeneratorDevice$inboundSchema).optional(), - id: z.number().int().optional(), - Location: z.lazy(() => GetPlaylistGeneratorLocation$inboundSchema).optional(), - MediaSettings: z.lazy(() => MediaSettings$inboundSchema).optional(), - Policy: z.lazy(() => GetPlaylistGeneratorPolicy$inboundSchema).optional(), - Status: z.lazy(() => GetPlaylistGeneratorStatus$inboundSchema).optional(), - target: z.string().optional(), - targetTagID: z.number().int().optional(), - title: z.string().optional(), - type: GetPlaylistGeneratorType$inboundSchema.optional(), + composite: types.optional(types.string()), + Device: types.optional( + z.lazy(() => GetPlaylistGeneratorDevice$inboundSchema), + ), + id: types.optional(types.number()), + Location: types.optional( + z.lazy(() => GetPlaylistGeneratorLocation$inboundSchema), + ), + MediaSettings: types.optional(z.lazy(() => MediaSettings$inboundSchema)), + Policy: types.optional( + z.lazy(() => GetPlaylistGeneratorPolicy$inboundSchema), + ), + Status: types.optional( + z.lazy(() => GetPlaylistGeneratorStatus$inboundSchema), + ), + target: types.optional(types.string()), + targetTagID: types.optional(types.number()), + title: types.optional(types.string()), + type: types.optional(GetPlaylistGeneratorType$inboundSchema), }).transform((v) => { return remap$(v, { "Device": "device", @@ -521,15 +525,15 @@ export function getPlaylistGeneratorItemFromJSON( /** @internal */ export const GetPlaylistGeneratorMediaContainer$inboundSchema: z.ZodType< GetPlaylistGeneratorMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - Item: z.array(z.lazy(() => GetPlaylistGeneratorItem$inboundSchema)) - .optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + Item: types.optional( + z.array(z.lazy(() => GetPlaylistGeneratorItem$inboundSchema)), + ), }).transform((v) => { return remap$(v, { "Item": "item", @@ -548,48 +552,19 @@ export function getPlaylistGeneratorMediaContainerFromJSON( } /** @internal */ -export const GetPlaylistGeneratorResponseBody$inboundSchema: z.ZodType< - GetPlaylistGeneratorResponseBody, - z.ZodTypeDef, +export const GetPlaylistGeneratorResponse$inboundSchema: z.ZodType< + GetPlaylistGeneratorResponse, unknown > = z.object({ - MediaContainer: z.lazy(() => GetPlaylistGeneratorMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => GetPlaylistGeneratorMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", }); }); -export function getPlaylistGeneratorResponseBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetPlaylistGeneratorResponseBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetPlaylistGeneratorResponseBody' from JSON`, - ); -} - -/** @internal */ -export const GetPlaylistGeneratorResponse$inboundSchema: z.ZodType< - GetPlaylistGeneratorResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetPlaylistGeneratorResponseBody$inboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - export function getPlaylistGeneratorResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getplaylistgeneratoritems.ts b/src/models/operations/getplaylistgeneratoritems.ts similarity index 76% rename from src/sdk/models/operations/getplaylistgeneratoritems.ts rename to src/models/operations/getplaylistgeneratoritems.ts index 747b2f1f..df34a5a3 100644 --- a/src/sdk/models/operations/getplaylistgeneratoritems.ts +++ b/src/models/operations/getplaylistgeneratoritems.ts @@ -2,14 +2,16 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, safeParse, -} from "../../../lib/schemas.js"; +} from "../../lib/schemas.js"; +import * as openEnums from "../../types/enums.js"; +import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; -import { RFCDate } from "../../types/rfcdate.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -135,6 +137,10 @@ export enum ProcessingState { Error = "error", Pending = "pending", } +/** + * The state of processing if this generator is part of an optimizer playlist + */ +export type ProcessingStateOpen = OpenEnum; /** * The error which could have occurred (or `good`) @@ -153,6 +159,12 @@ export enum ProcessingStateContext { CannotTranscode = "cannotTranscode", CodecInstallError = "codecInstallError", } +/** + * The error which could have occurred (or `good`) + */ +export type ProcessingStateContextOpen = OpenEnum< + typeof ProcessingStateContext +>; /** * Items in a library are referred to as "metadata items." These metadata items are distinct from "media items" which represent actual instances of media that can be consumed. Consider a TV library that has a single video file in it for a particular episode of a show. The library has a single media item, but it has three metadata items: one for the show, one for the season, and one for the episode. Consider a movie library that has two video files in it: the same movie, but two different resolutions. The library has a single metadata item for the movie, but that metadata item has two media items, one for each resolution. Additionally a "media item" will have one or more "media parts" where the the parts are intended to be watched together, such as a CD1 and CD2 parts of the same movie. @@ -283,7 +295,7 @@ export type Metadata = { /** * When present, in the format YYYY-MM-DD [HH:MM:SS] (the hours/minutes/seconds part is not always present). The air date, or a higher resolution release date for an item, depending on type. For example, episodes usually have air date like 1979-08-10 (we don't use epoch seconds because media existed prior to 1970). In some cases, recorded over-the-air content has higher resolution air date which includes a time component. Albums and movies may have day-resolution release dates as well. */ - originallyAvailableAt?: RFCDate | undefined; + originallyAvailableAt?: Date | undefined; /** * When present, used to indicate an item's original title, e.g. a movie's foreign title. */ @@ -418,11 +430,11 @@ export type Metadata = { /** * The state of processing if this generator is part of an optimizer playlist */ - processingState?: ProcessingState | undefined; + processingState?: ProcessingStateOpen | undefined; /** * The error which could have occurred (or `good`) */ - processingStateContext?: ProcessingStateContext | undefined; + processingStateContext?: ProcessingStateContextOpen | undefined; additionalProperties?: { [k: string]: any } | undefined; }; @@ -454,27 +466,8 @@ export type GetPlaylistGeneratorItemsMediaContainer = { /** * OK */ -export type GetPlaylistGeneratorItemsResponseBody = { - mediaContainer?: GetPlaylistGeneratorItemsMediaContainer | undefined; -}; - export type GetPlaylistGeneratorItemsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: GetPlaylistGeneratorItemsResponseBody | undefined; + mediaContainer?: GetPlaylistGeneratorItemsMediaContainer | undefined; }; /** @internal */ @@ -497,7 +490,6 @@ export type GetPlaylistGeneratorItemsRequest$Outbound = { /** @internal */ export const GetPlaylistGeneratorItemsRequest$outboundSchema: z.ZodType< GetPlaylistGeneratorItemsRequest$Outbound, - z.ZodTypeDef, GetPlaylistGeneratorItemsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -511,8 +503,8 @@ export const GetPlaylistGeneratorItemsRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - playlistId: z.number().int(), - generatorId: z.number().int(), + playlistId: z.int(), + generatorId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -541,10 +533,9 @@ export function getPlaylistGeneratorItemsRequestToJSON( /** @internal */ export const GetPlaylistGeneratorItemsGuid$inboundSchema: z.ZodType< GetPlaylistGeneratorItemsGuid, - z.ZodTypeDef, unknown > = z.object({ - id: z.string(), + id: types.string(), }); export function getPlaylistGeneratorItemsGuidFromJSON( @@ -558,115 +549,117 @@ export function getPlaylistGeneratorItemsGuidFromJSON( } /** @internal */ -export const ProcessingState$inboundSchema: z.ZodNativeEnum< - typeof ProcessingState -> = z.nativeEnum(ProcessingState); - -/** @internal */ -export const ProcessingStateContext$inboundSchema: z.ZodNativeEnum< - typeof ProcessingStateContext -> = z.nativeEnum(ProcessingStateContext); - -/** @internal */ -export const Metadata$inboundSchema: z.ZodType< - Metadata, - z.ZodTypeDef, +export const ProcessingState$inboundSchema: z.ZodType< + ProcessingStateOpen, unknown -> = collectExtraKeys$( - z.object({ - title: z.string(), - type: z.string(), - absoluteIndex: z.number().int().optional(), - addedAt: z.number().int(), - art: z.string().optional(), - audienceRating: z.number().optional(), - audienceRatingImage: z.string().optional(), - Autotag: z.array(shared.Tag$inboundSchema).optional(), - banner: z.string().optional(), - chapterSource: z.string().optional(), - childCount: z.number().int().optional(), - composite: z.string().optional(), - contentRating: z.string().optional(), - Country: z.array(shared.Tag$inboundSchema).optional(), - Director: z.array(shared.Tag$inboundSchema).optional(), - duration: z.number().int().optional(), - Filter: z.array(shared.Filter$inboundSchema).optional(), - Genre: z.array(shared.Tag$inboundSchema).optional(), - grandparentArt: z.string().optional(), - grandparentGuid: z.string().optional(), - grandparentHero: z.string().optional(), - grandparentKey: z.string().optional(), - grandparentRatingKey: z.string().optional(), - grandparentTheme: z.string().optional(), - grandparentThumb: z.string().optional(), - grandparentTitle: z.string().optional(), - guid: z.string().optional(), - Guid: z.array(z.lazy(() => GetPlaylistGeneratorItemsGuid$inboundSchema)) - .optional(), - hero: z.string().optional(), - Image: z.array(shared.Image$inboundSchema).optional(), - index: z.number().int().optional(), - key: z.string(), - lastViewedAt: z.number().int().optional(), - leafCount: z.number().int().optional(), - Media: z.array(shared.Media$inboundSchema).optional(), - originallyAvailableAt: z.string().transform(v => new RFCDate(v)).optional(), - originalTitle: z.string().optional(), - parentGuid: z.string().optional(), - parentHero: z.string().optional(), - parentIndex: z.number().int().optional(), - parentKey: z.string().optional(), - parentRatingKey: z.string().optional(), - parentThumb: z.string().optional(), - parentTitle: z.string().optional(), - primaryExtraKey: z.string().optional(), - prompt: z.string().optional(), - rating: z.number().optional(), - Rating: z.array(shared.Tag$inboundSchema).optional(), - ratingCount: z.number().int().optional(), - ratingImage: z.string().optional(), - ratingKey: z.string().optional(), - Role: z.array(shared.Tag$inboundSchema).optional(), - search: z.boolean().optional(), - secondary: z.boolean().optional(), - skipChildren: z.boolean().optional(), - skipParent: z.boolean().optional(), - Sort: z.array(shared.Sort$inboundSchema).optional(), - studio: z.string().optional(), - subtype: z.string().optional(), - summary: z.string().optional(), - tagline: z.string().optional(), - theme: z.string().optional(), - thumb: z.string().optional(), - titleSort: z.string().optional(), - updatedAt: z.number().int().optional(), - userRating: z.number().optional(), - viewCount: z.number().int().optional(), - viewedLeafCount: z.number().int().optional(), - viewOffset: z.number().int().optional(), - Writer: z.array(shared.Tag$inboundSchema).optional(), - year: z.number().int().optional(), - processingState: ProcessingState$inboundSchema.optional(), - processingStateContext: ProcessingStateContext$inboundSchema.optional(), - }).catchall(z.any()), - "additionalProperties", - true, -).transform((v) => { - return remap$(v, { - "Autotag": "autotag", - "Country": "country", - "Director": "director", - "Filter": "filter", - "Genre": "genre", - "Guid": "guids", - "Image": "image", - "Media": "media", - "Rating": "ratingArray", - "Role": "role", - "Sort": "sort", - "Writer": "writer", +> = openEnums.inboundSchema(ProcessingState); + +/** @internal */ +export const ProcessingStateContext$inboundSchema: z.ZodType< + ProcessingStateContextOpen, + unknown +> = openEnums.inboundSchema(ProcessingStateContext); + +/** @internal */ +export const Metadata$inboundSchema: z.ZodType = + collectExtraKeys$( + z.object({ + title: types.string(), + type: types.string(), + absoluteIndex: types.optional(types.number()), + addedAt: types.number(), + art: types.optional(types.string()), + audienceRating: types.optional(types.number()), + audienceRatingImage: types.optional(types.string()), + Autotag: types.optional(z.array(shared.Tag$inboundSchema)), + banner: types.optional(types.string()), + chapterSource: types.optional(types.string()), + childCount: types.optional(types.number()), + composite: types.optional(types.string()), + contentRating: types.optional(types.string()), + Country: types.optional(z.array(shared.Tag$inboundSchema)), + Director: types.optional(z.array(shared.Tag$inboundSchema)), + duration: types.optional(types.number()), + Filter: types.optional(z.array(shared.Filter$inboundSchema)), + Genre: types.optional(z.array(shared.Tag$inboundSchema)), + grandparentArt: types.optional(types.string()), + grandparentGuid: types.optional(types.string()), + grandparentHero: types.optional(types.string()), + grandparentKey: types.optional(types.string()), + grandparentRatingKey: types.optional(types.string()), + grandparentTheme: types.optional(types.string()), + grandparentThumb: types.optional(types.string()), + grandparentTitle: types.optional(types.string()), + guid: types.optional(types.string()), + Guid: types.optional( + z.array(z.lazy(() => GetPlaylistGeneratorItemsGuid$inboundSchema)), + ), + hero: types.optional(types.string()), + Image: types.optional(z.array(shared.Image$inboundSchema)), + index: types.optional(types.number()), + key: types.string(), + lastViewedAt: types.optional(types.number()), + leafCount: types.optional(types.number()), + Media: types.optional(z.array(shared.Media$inboundSchema)), + originallyAvailableAt: types.optional(types.date()), + originalTitle: types.optional(types.string()), + parentGuid: types.optional(types.string()), + parentHero: types.optional(types.string()), + parentIndex: types.optional(types.number()), + parentKey: types.optional(types.string()), + parentRatingKey: types.optional(types.string()), + parentThumb: types.optional(types.string()), + parentTitle: types.optional(types.string()), + primaryExtraKey: types.optional(types.string()), + prompt: types.optional(types.string()), + rating: types.optional(types.number()), + Rating: types.optional(z.array(shared.Tag$inboundSchema)), + ratingCount: types.optional(types.number()), + ratingImage: types.optional(types.string()), + ratingKey: types.optional(types.string()), + Role: types.optional(z.array(shared.Tag$inboundSchema)), + search: types.optional(types.boolean()), + secondary: types.optional(types.boolean()), + skipChildren: types.optional(types.boolean()), + skipParent: types.optional(types.boolean()), + Sort: types.optional(z.array(shared.Sort$inboundSchema)), + studio: types.optional(types.string()), + subtype: types.optional(types.string()), + summary: types.optional(types.string()), + tagline: types.optional(types.string()), + theme: types.optional(types.string()), + thumb: types.optional(types.string()), + titleSort: types.optional(types.string()), + updatedAt: types.optional(types.number()), + userRating: types.optional(types.number()), + viewCount: types.optional(types.number()), + viewedLeafCount: types.optional(types.number()), + viewOffset: types.optional(types.number()), + Writer: types.optional(z.array(shared.Tag$inboundSchema)), + year: types.optional(types.number()), + processingState: types.optional(ProcessingState$inboundSchema), + processingStateContext: types.optional( + ProcessingStateContext$inboundSchema, + ), + }).catchall(z.any()), + "additionalProperties", + true, + ).transform((v) => { + return remap$(v, { + "Autotag": "autotag", + "Country": "country", + "Director": "director", + "Filter": "filter", + "Genre": "genre", + "Guid": "guids", + "Image": "image", + "Media": "media", + "Rating": "ratingArray", + "Role": "role", + "Sort": "sort", + "Writer": "writer", + }); }); -}); export function metadataFromJSON( jsonString: string, @@ -681,14 +674,13 @@ export function metadataFromJSON( /** @internal */ export const GetPlaylistGeneratorItemsMediaContainer$inboundSchema: z.ZodType< GetPlaylistGeneratorItemsMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - Metadata: z.lazy(() => Metadata$inboundSchema).optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + Metadata: types.optional(z.lazy(() => Metadata$inboundSchema)), }).transform((v) => { return remap$(v, { "Metadata": "metadata", @@ -712,50 +704,19 @@ export function getPlaylistGeneratorItemsMediaContainerFromJSON( } /** @internal */ -export const GetPlaylistGeneratorItemsResponseBody$inboundSchema: z.ZodType< - GetPlaylistGeneratorItemsResponseBody, - z.ZodTypeDef, +export const GetPlaylistGeneratorItemsResponse$inboundSchema: z.ZodType< + GetPlaylistGeneratorItemsResponse, unknown > = z.object({ - MediaContainer: z.lazy(() => - GetPlaylistGeneratorItemsMediaContainer$inboundSchema - ).optional(), + MediaContainer: types.optional( + z.lazy(() => GetPlaylistGeneratorItemsMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", }); }); -export function getPlaylistGeneratorItemsResponseBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - GetPlaylistGeneratorItemsResponseBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetPlaylistGeneratorItemsResponseBody' from JSON`, - ); -} - -/** @internal */ -export const GetPlaylistGeneratorItemsResponse$inboundSchema: z.ZodType< - GetPlaylistGeneratorItemsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetPlaylistGeneratorItemsResponseBody$inboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - export function getPlaylistGeneratorItemsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getplaylistgenerators.ts b/src/models/operations/getplaylistgenerators.ts similarity index 77% rename from src/sdk/models/operations/getplaylistgenerators.ts rename to src/models/operations/getplaylistgenerators.ts index a4a9ff12..b6be20e2 100644 --- a/src/sdk/models/operations/getplaylistgenerators.ts +++ b/src/models/operations/getplaylistgenerators.ts @@ -2,10 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import * as openEnums from "../../types/enums.js"; +import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -119,6 +122,17 @@ export enum GetPlaylistGeneratorsType { Minus1 = -1, FortyTwo = 42, } +/** + * The type of playlist generator. + * + * @remarks + * + * - -1: A smart playlist generator + * - 42: A optimized version generator + */ +export type GetPlaylistGeneratorsTypeOpen = OpenEnum< + typeof GetPlaylistGeneratorsType +>; export type PlayQueueGenerator = { changedAt?: number | undefined; @@ -133,7 +147,7 @@ export type PlayQueueGenerator = { * - -1: A smart playlist generator * - 42: A optimized version generator */ - type?: GetPlaylistGeneratorsType | undefined; + type?: GetPlaylistGeneratorsTypeOpen | undefined; updatedAt?: number | undefined; /** * The URI indicating the search for this generator @@ -169,27 +183,8 @@ export type GetPlaylistGeneratorsMediaContainer = { /** * OK */ -export type GetPlaylistGeneratorsResponseBody = { - mediaContainer?: GetPlaylistGeneratorsMediaContainer | undefined; -}; - export type GetPlaylistGeneratorsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: GetPlaylistGeneratorsResponseBody | undefined; + mediaContainer?: GetPlaylistGeneratorsMediaContainer | undefined; }; /** @internal */ @@ -211,7 +206,6 @@ export type GetPlaylistGeneratorsRequest$Outbound = { /** @internal */ export const GetPlaylistGeneratorsRequest$outboundSchema: z.ZodType< GetPlaylistGeneratorsRequest$Outbound, - z.ZodTypeDef, GetPlaylistGeneratorsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -225,7 +219,7 @@ export const GetPlaylistGeneratorsRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - playlistId: z.number().int(), + playlistId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -252,23 +246,23 @@ export function getPlaylistGeneratorsRequestToJSON( } /** @internal */ -export const GetPlaylistGeneratorsType$inboundSchema: z.ZodNativeEnum< - typeof GetPlaylistGeneratorsType -> = z.nativeEnum(GetPlaylistGeneratorsType); +export const GetPlaylistGeneratorsType$inboundSchema: z.ZodType< + GetPlaylistGeneratorsTypeOpen, + unknown +> = openEnums.inboundSchemaInt(GetPlaylistGeneratorsType); /** @internal */ export const PlayQueueGenerator$inboundSchema: z.ZodType< PlayQueueGenerator, - z.ZodTypeDef, unknown > = z.object({ - changedAt: z.number().int().optional(), - createdAt: z.number().int().optional(), - id: z.number().int().optional(), - playlistID: z.number().int().optional(), - type: GetPlaylistGeneratorsType$inboundSchema.optional(), - updatedAt: z.number().int().optional(), - uri: z.string().optional(), + changedAt: types.optional(types.number()), + createdAt: types.optional(types.number()), + id: types.optional(types.number()), + playlistID: types.optional(types.number()), + type: types.optional(GetPlaylistGeneratorsType$inboundSchema), + updatedAt: types.optional(types.number()), + uri: types.optional(types.string()), }); export function playQueueGeneratorFromJSON( @@ -284,15 +278,15 @@ export function playQueueGeneratorFromJSON( /** @internal */ export const GetPlaylistGeneratorsMediaContainer$inboundSchema: z.ZodType< GetPlaylistGeneratorsMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - PlayQueueGenerator: z.array(z.lazy(() => PlayQueueGenerator$inboundSchema)) - .optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + PlayQueueGenerator: types.optional( + z.array(z.lazy(() => PlayQueueGenerator$inboundSchema)), + ), }).transform((v) => { return remap$(v, { "PlayQueueGenerator": "playQueueGenerator", @@ -311,49 +305,19 @@ export function getPlaylistGeneratorsMediaContainerFromJSON( } /** @internal */ -export const GetPlaylistGeneratorsResponseBody$inboundSchema: z.ZodType< - GetPlaylistGeneratorsResponseBody, - z.ZodTypeDef, +export const GetPlaylistGeneratorsResponse$inboundSchema: z.ZodType< + GetPlaylistGeneratorsResponse, unknown > = z.object({ - MediaContainer: z.lazy(() => - GetPlaylistGeneratorsMediaContainer$inboundSchema - ).optional(), + MediaContainer: types.optional( + z.lazy(() => GetPlaylistGeneratorsMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", }); }); -export function getPlaylistGeneratorsResponseBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetPlaylistGeneratorsResponseBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetPlaylistGeneratorsResponseBody' from JSON`, - ); -} - -/** @internal */ -export const GetPlaylistGeneratorsResponse$inboundSchema: z.ZodType< - GetPlaylistGeneratorsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetPlaylistGeneratorsResponseBody$inboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - export function getPlaylistGeneratorsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getplaylistitems.ts b/src/models/operations/getplaylistitems.ts similarity index 82% rename from src/sdk/models/operations/getplaylistitems.ts rename to src/models/operations/getplaylistitems.ts index 870d6431..5277d7e7 100644 --- a/src/sdk/models/operations/getplaylistitems.ts +++ b/src/models/operations/getplaylistitems.ts @@ -2,9 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +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"; @@ -112,23 +112,8 @@ export type GetPlaylistItemsRequest = { }; export type GetPlaylistItemsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; headers: { [k: string]: Array }; + result: shared.MediaContainerWithMetadata; }; /** @internal */ @@ -151,7 +136,6 @@ export type GetPlaylistItemsRequest$Outbound = { /** @internal */ export const GetPlaylistItemsRequest$outboundSchema: z.ZodType< GetPlaylistItemsRequest$Outbound, - z.ZodTypeDef, GetPlaylistItemsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -165,8 +149,8 @@ export const GetPlaylistItemsRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - playlistId: z.number().int(), - type: z.array(z.number().int()).optional(), + playlistId: z.int(), + type: z.array(z.int()).optional(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -193,22 +177,14 @@ export function getPlaylistItemsRequestToJSON( /** @internal */ export const GetPlaylistItemsResponse$inboundSchema: z.ZodType< GetPlaylistItemsResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema - .optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: shared.MediaContainerWithMetadata$inboundSchema, }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithMetadata": "mediaContainerWithMetadata", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/getplayqueue.ts b/src/models/operations/getplayqueue.ts similarity index 74% rename from src/sdk/models/operations/getplayqueue.ts rename to src/models/operations/getplayqueue.ts index e720e7cd..b2d52c35 100644 --- a/src/sdk/models/operations/getplayqueue.ts +++ b/src/models/operations/getplayqueue.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type GetPlayQueueGlobals = { @@ -127,27 +124,6 @@ export type GetPlayQueueRequest = { includeAfter?: shared.BoolInt | undefined; }; -export type GetPlayQueueResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithPlaylistMetadata?: - | shared.MediaContainerWithPlaylistMetadata - | undefined; -}; - /** @internal */ export type GetPlayQueueRequest$Outbound = { accepts: string; @@ -172,7 +148,6 @@ export type GetPlayQueueRequest$Outbound = { /** @internal */ export const GetPlayQueueRequest$outboundSchema: z.ZodType< GetPlayQueueRequest$Outbound, - z.ZodTypeDef, GetPlayQueueRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -186,10 +161,10 @@ export const GetPlayQueueRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - playQueueId: z.number().int(), + playQueueId: z.int(), own: shared.BoolInt$outboundSchema.default(shared.BoolInt.False), center: z.string().optional(), - window: z.number().int().optional(), + window: z.int().optional(), includeBefore: shared.BoolInt$outboundSchema.default(shared.BoolInt.False), includeAfter: shared.BoolInt$outboundSchema.default(shared.BoolInt.False), }).transform((v) => { @@ -214,33 +189,3 @@ export function getPlayQueueRequestToJSON( GetPlayQueueRequest$outboundSchema.parse(getPlayQueueRequest), ); } - -/** @internal */ -export const GetPlayQueueResponse$inboundSchema: z.ZodType< - GetPlayQueueResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithPlaylistMetadata: shared - .MediaContainerWithPlaylistMetadata$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithPlaylistMetadata": "mediaContainerWithPlaylistMetadata", - }); -}); - -export function getPlayQueueResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetPlayQueueResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetPlayQueueResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/getpostplayhubs.ts b/src/models/operations/getpostplayhubs.ts similarity index 83% rename from src/sdk/models/operations/getpostplayhubs.ts rename to src/models/operations/getpostplayhubs.ts index 5f8b197f..4a541eb1 100644 --- a/src/sdk/models/operations/getpostplayhubs.ts +++ b/src/models/operations/getpostplayhubs.ts @@ -2,9 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +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"; @@ -116,23 +116,8 @@ export type GetPostplayHubsRequest = { }; export type GetPostplayHubsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithHubs?: shared.MediaContainerWithHubs | undefined; headers: { [k: string]: Array }; + result: shared.MediaContainerWithHubs; }; /** @internal */ @@ -156,7 +141,6 @@ export type GetPostplayHubsRequest$Outbound = { /** @internal */ export const GetPostplayHubsRequest$outboundSchema: z.ZodType< GetPostplayHubsRequest$Outbound, - z.ZodTypeDef, GetPostplayHubsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -170,8 +154,8 @@ export const GetPostplayHubsRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - metadataId: z.number().int(), - count: z.number().int().optional(), + metadataId: z.int(), + count: z.int().optional(), onlyTransient: shared.BoolInt$outboundSchema.default(shared.BoolInt.False), }).transform((v) => { return remap$(v, { @@ -199,22 +183,14 @@ export function getPostplayHubsRequestToJSON( /** @internal */ export const GetPostplayHubsResponse$inboundSchema: z.ZodType< GetPostplayHubsResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithHubs: shared.MediaContainerWithHubs$inboundSchema - .optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: shared.MediaContainerWithHubs$inboundSchema, }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithHubs": "mediaContainerWithHubs", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/getpreference.ts b/src/models/operations/getpreference.ts similarity index 71% rename from src/sdk/models/operations/getpreference.ts rename to src/models/operations/getpreference.ts index dde83359..c92b4280 100644 --- a/src/sdk/models/operations/getpreference.ts +++ b/src/models/operations/getpreference.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type GetPreferenceGlobals = { @@ -107,25 +104,6 @@ export type GetPreferenceRequest = { id?: string | undefined; }; -export type GetPreferenceResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithSettings?: shared.MediaContainerWithSettings | undefined; -}; - /** @internal */ export type GetPreferenceRequest$Outbound = { accepts: string; @@ -145,7 +123,6 @@ export type GetPreferenceRequest$Outbound = { /** @internal */ export const GetPreferenceRequest$outboundSchema: z.ZodType< GetPreferenceRequest$Outbound, - z.ZodTypeDef, GetPreferenceRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -182,33 +159,3 @@ export function getPreferenceRequestToJSON( GetPreferenceRequest$outboundSchema.parse(getPreferenceRequest), ); } - -/** @internal */ -export const GetPreferenceResponse$inboundSchema: z.ZodType< - GetPreferenceResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithSettings: shared.MediaContainerWithSettings$inboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithSettings": "mediaContainerWithSettings", - }); -}); - -export function getPreferenceResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetPreferenceResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetPreferenceResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/getpromotedhubs.ts b/src/models/operations/getpromotedhubs.ts similarity index 85% rename from src/sdk/models/operations/getpromotedhubs.ts rename to src/models/operations/getpromotedhubs.ts index 27358a2a..574a556d 100644 --- a/src/sdk/models/operations/getpromotedhubs.ts +++ b/src/models/operations/getpromotedhubs.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -140,23 +141,8 @@ export type GetPromotedHubsResponseBody = { }; export type GetPromotedHubsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: GetPromotedHubsResponseBody | undefined; headers: { [k: string]: Array }; + result: GetPromotedHubsResponseBody; }; /** @internal */ @@ -178,7 +164,6 @@ export type GetPromotedHubsRequest$Outbound = { /** @internal */ export const GetPromotedHubsRequest$outboundSchema: z.ZodType< GetPromotedHubsRequest$Outbound, - z.ZodTypeDef, GetPromotedHubsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -192,7 +177,7 @@ export const GetPromotedHubsRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - count: z.number().int().optional(), + count: z.int().optional(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -219,14 +204,13 @@ export function getPromotedHubsRequestToJSON( /** @internal */ export const GetPromotedHubsMediaContainer$inboundSchema: z.ZodType< GetPromotedHubsMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - Hub: z.array(shared.Hub$inboundSchema).optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + Hub: types.optional(z.array(shared.Hub$inboundSchema)), }).transform((v) => { return remap$(v, { "Hub": "hub", @@ -246,11 +230,11 @@ export function getPromotedHubsMediaContainerFromJSON( /** @internal */ export const GetPromotedHubsResponseBody$inboundSchema: z.ZodType< GetPromotedHubsResponseBody, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => GetPromotedHubsMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => GetPromotedHubsMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -270,20 +254,14 @@ export function getPromotedHubsResponseBodyFromJSON( /** @internal */ export const GetPromotedHubsResponse$inboundSchema: z.ZodType< GetPromotedHubsResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetPromotedHubsResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: z.lazy(() => GetPromotedHubsResponseBody$inboundSchema), }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/getrandomartwork.ts b/src/models/operations/getrandomartwork.ts similarity index 71% rename from src/sdk/models/operations/getrandomartwork.ts rename to src/models/operations/getrandomartwork.ts index ce25820c..1fdb8bb6 100644 --- a/src/sdk/models/operations/getrandomartwork.ts +++ b/src/models/operations/getrandomartwork.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type GetRandomArtworkGlobals = { @@ -107,25 +104,6 @@ export type GetRandomArtworkRequest = { sections?: Array | undefined; }; -export type GetRandomArtworkResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithArtwork?: shared.MediaContainerWithArtwork | undefined; -}; - /** @internal */ export type GetRandomArtworkRequest$Outbound = { accepts: string; @@ -145,7 +123,6 @@ export type GetRandomArtworkRequest$Outbound = { /** @internal */ export const GetRandomArtworkRequest$outboundSchema: z.ZodType< GetRandomArtworkRequest$Outbound, - z.ZodTypeDef, GetRandomArtworkRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -159,7 +136,7 @@ export const GetRandomArtworkRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - sections: z.array(z.number().int()).optional(), + sections: z.array(z.int()).optional(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -182,33 +159,3 @@ export function getRandomArtworkRequestToJSON( GetRandomArtworkRequest$outboundSchema.parse(getRandomArtworkRequest), ); } - -/** @internal */ -export const GetRandomArtworkResponse$inboundSchema: z.ZodType< - GetRandomArtworkResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithArtwork: shared.MediaContainerWithArtwork$inboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithArtwork": "mediaContainerWithArtwork", - }); -}); - -export function getRandomArtworkResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetRandomArtworkResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetRandomArtworkResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/getrelatedhubs.ts b/src/models/operations/getrelatedhubs.ts similarity index 83% rename from src/sdk/models/operations/getrelatedhubs.ts rename to src/models/operations/getrelatedhubs.ts index 4e8e190e..cd4748e5 100644 --- a/src/sdk/models/operations/getrelatedhubs.ts +++ b/src/models/operations/getrelatedhubs.ts @@ -2,9 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +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"; @@ -116,23 +116,8 @@ export type GetRelatedHubsRequest = { }; export type GetRelatedHubsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithHubs?: shared.MediaContainerWithHubs | undefined; headers: { [k: string]: Array }; + result: shared.MediaContainerWithHubs; }; /** @internal */ @@ -156,7 +141,6 @@ export type GetRelatedHubsRequest$Outbound = { /** @internal */ export const GetRelatedHubsRequest$outboundSchema: z.ZodType< GetRelatedHubsRequest$Outbound, - z.ZodTypeDef, GetRelatedHubsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -170,8 +154,8 @@ export const GetRelatedHubsRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - metadataId: z.number().int(), - count: z.number().int().optional(), + metadataId: z.int(), + count: z.int().optional(), onlyTransient: shared.BoolInt$outboundSchema.default(shared.BoolInt.False), }).transform((v) => { return remap$(v, { @@ -199,22 +183,14 @@ export function getRelatedHubsRequestToJSON( /** @internal */ export const GetRelatedHubsResponse$inboundSchema: z.ZodType< GetRelatedHubsResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithHubs: shared.MediaContainerWithHubs$inboundSchema - .optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: shared.MediaContainerWithHubs$inboundSchema, }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithHubs": "mediaContainerWithHubs", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/getrelateditems.ts b/src/models/operations/getrelateditems.ts similarity index 79% rename from src/sdk/models/operations/getrelateditems.ts rename to src/models/operations/getrelateditems.ts index 7bea133d..bc316f9e 100644 --- a/src/sdk/models/operations/getrelateditems.ts +++ b/src/models/operations/getrelateditems.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -132,27 +133,8 @@ export type GetRelatedItemsMediaContainer = { /** * OK */ -export type GetRelatedItemsResponseBody = { - mediaContainer?: GetRelatedItemsMediaContainer | undefined; -}; - export type GetRelatedItemsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: GetRelatedItemsResponseBody | undefined; + mediaContainer?: GetRelatedItemsMediaContainer | undefined; }; /** @internal */ @@ -174,7 +156,6 @@ export type GetRelatedItemsRequest$Outbound = { /** @internal */ export const GetRelatedItemsRequest$outboundSchema: z.ZodType< GetRelatedItemsRequest$Outbound, - z.ZodTypeDef, GetRelatedItemsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -215,14 +196,13 @@ export function getRelatedItemsRequestToJSON( /** @internal */ export const GetRelatedItemsMediaContainer$inboundSchema: z.ZodType< GetRelatedItemsMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - Hub: z.array(shared.Hub$inboundSchema).optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + Hub: types.optional(z.array(shared.Hub$inboundSchema)), }).transform((v) => { return remap$(v, { "Hub": "hub", @@ -240,47 +220,19 @@ export function getRelatedItemsMediaContainerFromJSON( } /** @internal */ -export const GetRelatedItemsResponseBody$inboundSchema: z.ZodType< - GetRelatedItemsResponseBody, - z.ZodTypeDef, +export const GetRelatedItemsResponse$inboundSchema: z.ZodType< + GetRelatedItemsResponse, unknown > = z.object({ - MediaContainer: z.lazy(() => GetRelatedItemsMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => GetRelatedItemsMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", }); }); -export function getRelatedItemsResponseBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetRelatedItemsResponseBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetRelatedItemsResponseBody' from JSON`, - ); -} - -/** @internal */ -export const GetRelatedItemsResponse$inboundSchema: z.ZodType< - GetRelatedItemsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetRelatedItemsResponseBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - export function getRelatedItemsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getscheduledrecordings.ts b/src/models/operations/getscheduledrecordings.ts similarity index 74% rename from src/sdk/models/operations/getscheduledrecordings.ts rename to src/models/operations/getscheduledrecordings.ts index de9242e0..394e4cf4 100644 --- a/src/sdk/models/operations/getscheduledrecordings.ts +++ b/src/models/operations/getscheduledrecordings.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -42,37 +43,22 @@ export type GetScheduledRecordingsResponseBody = { }; export type GetScheduledRecordingsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: GetScheduledRecordingsResponseBody | undefined; headers: { [k: string]: Array }; + result: GetScheduledRecordingsResponseBody; }; /** @internal */ export const GetScheduledRecordingsMediaContainer$inboundSchema: z.ZodType< GetScheduledRecordingsMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - MediaGrabOperation: z.array(shared.MediaGrabOperation$inboundSchema) - .optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + MediaGrabOperation: types.optional( + z.array(shared.MediaGrabOperation$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaGrabOperation": "mediaGrabOperation", @@ -93,12 +79,11 @@ export function getScheduledRecordingsMediaContainerFromJSON( /** @internal */ export const GetScheduledRecordingsResponseBody$inboundSchema: z.ZodType< GetScheduledRecordingsResponseBody, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => - GetScheduledRecordingsMediaContainer$inboundSchema - ).optional(), + MediaContainer: types.optional( + z.lazy(() => GetScheduledRecordingsMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -119,21 +104,14 @@ export function getScheduledRecordingsResponseBodyFromJSON( /** @internal */ export const GetScheduledRecordingsResponse$inboundSchema: z.ZodType< GetScheduledRecordingsResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetScheduledRecordingsResponseBody$inboundSchema) - .optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: z.lazy(() => GetScheduledRecordingsResponseBody$inboundSchema), }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/getsectionfilters.ts b/src/models/operations/getsectionfilters.ts similarity index 78% rename from src/sdk/models/operations/getsectionfilters.ts rename to src/models/operations/getsectionfilters.ts index 8a3f1d11..0a5f3b32 100644 --- a/src/sdk/models/operations/getsectionfilters.ts +++ b/src/models/operations/getsectionfilters.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -135,27 +136,8 @@ export type GetSectionFiltersMediaContainer = { /** * The filters on the section */ -export type GetSectionFiltersResponseBody = { - mediaContainer?: GetSectionFiltersMediaContainer | undefined; -}; - export type GetSectionFiltersResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * The filters on the section - */ - object?: GetSectionFiltersResponseBody | undefined; + mediaContainer?: GetSectionFiltersMediaContainer | undefined; }; /** @internal */ @@ -177,7 +159,6 @@ export type GetSectionFiltersRequest$Outbound = { /** @internal */ export const GetSectionFiltersRequest$outboundSchema: z.ZodType< GetSectionFiltersRequest$Outbound, - z.ZodTypeDef, GetSectionFiltersRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -191,7 +172,7 @@ export const GetSectionFiltersRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - sectionId: z.number().int(), + sectionId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -218,14 +199,13 @@ export function getSectionFiltersRequestToJSON( /** @internal */ export const GetSectionFiltersMediaContainer$inboundSchema: z.ZodType< GetSectionFiltersMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - Directory: z.array(shared.Directory$inboundSchema).optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + Directory: types.optional(z.array(shared.Directory$inboundSchema)), }).transform((v) => { return remap$(v, { "Directory": "directory", @@ -243,47 +223,19 @@ export function getSectionFiltersMediaContainerFromJSON( } /** @internal */ -export const GetSectionFiltersResponseBody$inboundSchema: z.ZodType< - GetSectionFiltersResponseBody, - z.ZodTypeDef, +export const GetSectionFiltersResponse$inboundSchema: z.ZodType< + GetSectionFiltersResponse, unknown > = z.object({ - MediaContainer: z.lazy(() => GetSectionFiltersMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => GetSectionFiltersMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", }); }); -export function getSectionFiltersResponseBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetSectionFiltersResponseBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSectionFiltersResponseBody' from JSON`, - ); -} - -/** @internal */ -export const GetSectionFiltersResponse$inboundSchema: z.ZodType< - GetSectionFiltersResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetSectionFiltersResponseBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - export function getSectionFiltersResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getsectionhubs.ts b/src/models/operations/getsectionhubs.ts similarity index 85% rename from src/sdk/models/operations/getsectionhubs.ts rename to src/models/operations/getsectionhubs.ts index 7130bb60..2134f949 100644 --- a/src/sdk/models/operations/getsectionhubs.ts +++ b/src/models/operations/getsectionhubs.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -148,23 +149,8 @@ export type GetSectionHubsResponseBody = { }; export type GetSectionHubsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: GetSectionHubsResponseBody | undefined; headers: { [k: string]: Array }; + result: GetSectionHubsResponseBody; }; /** @internal */ @@ -188,7 +174,6 @@ export type GetSectionHubsRequest$Outbound = { /** @internal */ export const GetSectionHubsRequest$outboundSchema: z.ZodType< GetSectionHubsRequest$Outbound, - z.ZodTypeDef, GetSectionHubsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -202,8 +187,8 @@ export const GetSectionHubsRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - sectionId: z.number().int(), - count: z.number().int().optional(), + sectionId: z.int(), + count: z.int().optional(), onlyTransient: shared.BoolInt$outboundSchema.default(shared.BoolInt.False), }).transform((v) => { return remap$(v, { @@ -231,14 +216,13 @@ export function getSectionHubsRequestToJSON( /** @internal */ export const GetSectionHubsMediaContainer$inboundSchema: z.ZodType< GetSectionHubsMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - Hub: z.array(shared.Hub$inboundSchema).optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + Hub: types.optional(z.array(shared.Hub$inboundSchema)), }).transform((v) => { return remap$(v, { "Hub": "hub", @@ -258,11 +242,11 @@ export function getSectionHubsMediaContainerFromJSON( /** @internal */ export const GetSectionHubsResponseBody$inboundSchema: z.ZodType< GetSectionHubsResponseBody, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => GetSectionHubsMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => GetSectionHubsMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -282,20 +266,14 @@ export function getSectionHubsResponseBodyFromJSON( /** @internal */ export const GetSectionHubsResponse$inboundSchema: z.ZodType< GetSectionHubsResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetSectionHubsResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: z.lazy(() => GetSectionHubsResponseBody$inboundSchema), }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/getsectionimage.ts b/src/models/operations/getsectionimage.ts similarity index 79% rename from src/sdk/models/operations/getsectionimage.ts rename to src/models/operations/getsectionimage.ts index c3454a68..135f0ae0 100644 --- a/src/sdk/models/operations/getsectionimage.ts +++ b/src/models/operations/getsectionimage.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type GetSectionImageGlobals = { @@ -133,21 +130,6 @@ export type GetSectionImageRequest = { composite?: shared.Composite | undefined; }; -export type GetSectionImageResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type GetSectionImageRequest$Outbound = { accepts: string; @@ -170,7 +152,6 @@ export type GetSectionImageRequest$Outbound = { /** @internal */ export const GetSectionImageRequest$outboundSchema: z.ZodType< GetSectionImageRequest$Outbound, - z.ZodTypeDef, GetSectionImageRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -184,8 +165,8 @@ export const GetSectionImageRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - sectionId: z.number().int(), - updatedAt: z.number().int(), + sectionId: z.int(), + updatedAt: z.int(), mediaQuery: shared.MediaQuery$outboundSchema.optional(), composite: shared.Composite$outboundSchema.optional(), }).transform((v) => { @@ -210,30 +191,3 @@ export function getSectionImageRequestToJSON( GetSectionImageRequest$outboundSchema.parse(getSectionImageRequest), ); } - -/** @internal */ -export const GetSectionImageResponse$inboundSchema: z.ZodType< - GetSectionImageResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function getSectionImageResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetSectionImageResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSectionImageResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/getsectionpreferences.ts b/src/models/operations/getsectionpreferences.ts similarity index 71% rename from src/sdk/models/operations/getsectionpreferences.ts rename to src/models/operations/getsectionpreferences.ts index 717601b9..cf942372 100644 --- a/src/sdk/models/operations/getsectionpreferences.ts +++ b/src/models/operations/getsectionpreferences.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type GetSectionPreferencesGlobals = { @@ -108,25 +105,6 @@ export type GetSectionPreferencesRequest = { agent?: string | undefined; }; -export type GetSectionPreferencesResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithSettings?: shared.MediaContainerWithSettings | undefined; -}; - /** @internal */ export type GetSectionPreferencesRequest$Outbound = { accepts: string; @@ -147,7 +125,6 @@ export type GetSectionPreferencesRequest$Outbound = { /** @internal */ export const GetSectionPreferencesRequest$outboundSchema: z.ZodType< GetSectionPreferencesRequest$Outbound, - z.ZodTypeDef, GetSectionPreferencesRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -161,7 +138,7 @@ export const GetSectionPreferencesRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - sectionId: z.number().int(), + sectionId: z.int(), agent: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -187,33 +164,3 @@ export function getSectionPreferencesRequestToJSON( ), ); } - -/** @internal */ -export const GetSectionPreferencesResponse$inboundSchema: z.ZodType< - GetSectionPreferencesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithSettings: shared.MediaContainerWithSettings$inboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithSettings": "mediaContainerWithSettings", - }); -}); - -export function getSectionPreferencesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetSectionPreferencesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSectionPreferencesResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/getsections.ts b/src/models/operations/getsections.ts similarity index 73% rename from src/sdk/models/operations/getsections.ts rename to src/models/operations/getsections.ts index bd44faae..264e0b2a 100644 --- a/src/sdk/models/operations/getsections.ts +++ b/src/models/operations/getsections.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -47,38 +48,22 @@ export type GetSectionsResponseBody = { }; export type GetSectionsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: GetSectionsResponseBody | undefined; headers: { [k: string]: Array }; + result: GetSectionsResponseBody; }; /** @internal */ export const GetSectionsMediaContainer$inboundSchema: z.ZodType< GetSectionsMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - allowSync: z.boolean().optional(), - Directory: z.array(shared.LibrarySection$inboundSchema).optional(), - title1: z.string().optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + allowSync: types.optional(types.boolean()), + Directory: types.optional(z.array(shared.LibrarySection$inboundSchema)), + title1: types.optional(types.string()), }).transform((v) => { return remap$(v, { "Directory": "directory", @@ -98,11 +83,11 @@ export function getSectionsMediaContainerFromJSON( /** @internal */ export const GetSectionsResponseBody$inboundSchema: z.ZodType< GetSectionsResponseBody, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => GetSectionsMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => GetSectionsMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -122,20 +107,14 @@ export function getSectionsResponseBodyFromJSON( /** @internal */ export const GetSectionsResponse$inboundSchema: z.ZodType< GetSectionsResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetSectionsResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: z.lazy(() => GetSectionsResponseBody$inboundSchema), }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/getsectionsprefs.ts b/src/models/operations/getsectionsprefs.ts similarity index 72% rename from src/sdk/models/operations/getsectionsprefs.ts rename to src/models/operations/getsectionsprefs.ts index a93fa2a0..8892b447 100644 --- a/src/sdk/models/operations/getsectionsprefs.ts +++ b/src/models/operations/getsectionsprefs.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type GetSectionsPrefsGlobals = { @@ -111,25 +108,6 @@ export type GetSectionsPrefsRequest = { agent?: string | undefined; }; -export type GetSectionsPrefsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - librarySections?: shared.LibrarySections | undefined; -}; - /** @internal */ export type GetSectionsPrefsRequest$Outbound = { accepts: string; @@ -150,7 +128,6 @@ export type GetSectionsPrefsRequest$Outbound = { /** @internal */ export const GetSectionsPrefsRequest$outboundSchema: z.ZodType< GetSectionsPrefsRequest$Outbound, - z.ZodTypeDef, GetSectionsPrefsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -164,7 +141,7 @@ export const GetSectionsPrefsRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - type: z.number().int(), + type: z.int(), agent: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -188,32 +165,3 @@ export function getSectionsPrefsRequestToJSON( GetSectionsPrefsRequest$outboundSchema.parse(getSectionsPrefsRequest), ); } - -/** @internal */ -export const GetSectionsPrefsResponse$inboundSchema: z.ZodType< - GetSectionsPrefsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - LibrarySections: shared.LibrarySections$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "LibrarySections": "librarySections", - }); -}); - -export function getSectionsPrefsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetSectionsPrefsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSectionsPrefsResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/getserverinfo.ts b/src/models/operations/getserverinfo.ts similarity index 71% rename from src/sdk/models/operations/getserverinfo.ts rename to src/models/operations/getserverinfo.ts index 3fc3e4b5..59f2b76d 100644 --- a/src/sdk/models/operations/getserverinfo.ts +++ b/src/models/operations/getserverinfo.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type GetServerInfoGlobals = { @@ -103,25 +100,6 @@ export type GetServerInfoRequest = { marketplace?: string | undefined; }; -export type GetServerInfoResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithDirectory?: shared.MediaContainerWithDirectory | undefined; -}; - /** @internal */ export type GetServerInfoRequest$Outbound = { accepts: string; @@ -140,7 +118,6 @@ export type GetServerInfoRequest$Outbound = { /** @internal */ export const GetServerInfoRequest$outboundSchema: z.ZodType< GetServerInfoRequest$Outbound, - z.ZodTypeDef, GetServerInfoRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -176,33 +153,3 @@ export function getServerInfoRequestToJSON( GetServerInfoRequest$outboundSchema.parse(getServerInfoRequest), ); } - -/** @internal */ -export const GetServerInfoResponse$inboundSchema: z.ZodType< - GetServerInfoResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithDirectory: shared.MediaContainerWithDirectory$inboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithDirectory": "mediaContainerWithDirectory", - }); -}); - -export function getServerInfoResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetServerInfoResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetServerInfoResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/getserverresources.ts b/src/models/operations/getserverresources.ts similarity index 63% rename from src/sdk/models/operations/getserverresources.ts rename to src/models/operations/getserverresources.ts index 4d925ffd..aaa7ae81 100644 --- a/src/sdk/models/operations/getserverresources.ts +++ b/src/models/operations/getserverresources.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -83,36 +84,18 @@ export type GetServerResourcesError = { status?: number | undefined; }; -export type GetServerResourcesResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * List of Plex Devices. This includes Plex hosted servers and clients - */ - plexDevices?: Array | undefined; -}; +/** @internal */ +export const IncludeHttps$outboundSchema: z.ZodEnum = z + .enum(IncludeHttps); /** @internal */ -export const IncludeHttps$outboundSchema: z.ZodNativeEnum = - z.nativeEnum(IncludeHttps); +export const IncludeRelay$outboundSchema: z.ZodEnum = z + .enum(IncludeRelay); /** @internal */ -export const IncludeRelay$outboundSchema: z.ZodNativeEnum = - z.nativeEnum(IncludeRelay); - -/** @internal */ -export const IncludeIPv6$outboundSchema: z.ZodNativeEnum = z - .nativeEnum(IncludeIPv6); +export const IncludeIPv6$outboundSchema: z.ZodEnum = z.enum( + IncludeIPv6, +); /** @internal */ export type GetServerResourcesRequest$Outbound = { @@ -126,7 +109,6 @@ export type GetServerResourcesRequest$Outbound = { /** @internal */ export const GetServerResourcesRequest$outboundSchema: z.ZodType< GetServerResourcesRequest$Outbound, - z.ZodTypeDef, GetServerResourcesRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -151,12 +133,11 @@ export function getServerResourcesRequestToJSON( /** @internal */ export const GetServerResourcesError$inboundSchema: z.ZodType< GetServerResourcesError, - z.ZodTypeDef, unknown > = z.object({ - code: z.number().int().optional(), - message: z.string().optional(), - status: z.number().int().optional(), + code: types.optional(types.number()), + message: types.optional(types.string()), + status: types.optional(types.number()), }); export function getServerResourcesErrorFromJSON( @@ -168,32 +149,3 @@ export function getServerResourcesErrorFromJSON( `Failed to parse 'GetServerResourcesError' from JSON`, ); } - -/** @internal */ -export const GetServerResourcesResponse$inboundSchema: z.ZodType< - GetServerResourcesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - PlexDevices: z.array(shared.PlexDevice$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "PlexDevices": "plexDevices", - }); -}); - -export function getServerResourcesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetServerResourcesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetServerResourcesResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/getsessionplaylistindex.ts b/src/models/operations/getsessionplaylistindex.ts similarity index 75% rename from src/sdk/models/operations/getsessionplaylistindex.ts rename to src/models/operations/getsessionplaylistindex.ts index 3c50b35b..2361744c 100644 --- a/src/sdk/models/operations/getsessionplaylistindex.ts +++ b/src/models/operations/getsessionplaylistindex.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type GetSessionPlaylistIndexGlobals = { @@ -111,21 +108,6 @@ export type GetSessionPlaylistIndexRequest = { consumerId: string; }; -export type GetSessionPlaylistIndexResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type GetSessionPlaylistIndexRequest$Outbound = { accepts: string; @@ -146,7 +128,6 @@ export type GetSessionPlaylistIndexRequest$Outbound = { /** @internal */ export const GetSessionPlaylistIndexRequest$outboundSchema: z.ZodType< GetSessionPlaylistIndexRequest$Outbound, - z.ZodTypeDef, GetSessionPlaylistIndexRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -186,30 +167,3 @@ export function getSessionPlaylistIndexRequestToJSON( ), ); } - -/** @internal */ -export const GetSessionPlaylistIndexResponse$inboundSchema: z.ZodType< - GetSessionPlaylistIndexResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function getSessionPlaylistIndexResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetSessionPlaylistIndexResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSessionPlaylistIndexResponse' from JSON`, - ); -} diff --git a/src/models/operations/getsessions.ts b/src/models/operations/getsessions.ts new file mode 100644 index 00000000..72c62047 --- /dev/null +++ b/src/models/operations/getsessions.ts @@ -0,0 +1,39 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v4"; +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 GetSessionsResponse = { + headers: { [k: string]: Array }; + result: shared.MediaContainerWithMetadata; +}; + +/** @internal */ +export const GetSessionsResponse$inboundSchema: z.ZodType< + GetSessionsResponse, + unknown +> = z.object({ + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: shared.MediaContainerWithMetadata$inboundSchema, +}).transform((v) => { + return remap$(v, { + "Headers": "headers", + "Result": "result", + }); +}); + +export function getSessionsResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetSessionsResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetSessionsResponse' from JSON`, + ); +} diff --git a/src/sdk/models/operations/getsessionsegment.ts b/src/models/operations/getsessionsegment.ts similarity index 75% rename from src/sdk/models/operations/getsessionsegment.ts rename to src/models/operations/getsessionsegment.ts index 97ab6fcc..60bef5cc 100644 --- a/src/sdk/models/operations/getsessionsegment.ts +++ b/src/models/operations/getsessionsegment.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type GetSessionSegmentGlobals = { @@ -115,21 +112,6 @@ export type GetSessionSegmentRequest = { segmentId: string; }; -export type GetSessionSegmentResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type GetSessionSegmentRequest$Outbound = { accepts: string; @@ -151,7 +133,6 @@ export type GetSessionSegmentRequest$Outbound = { /** @internal */ export const GetSessionSegmentRequest$outboundSchema: z.ZodType< GetSessionSegmentRequest$Outbound, - z.ZodTypeDef, GetSessionSegmentRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -190,30 +171,3 @@ export function getSessionSegmentRequestToJSON( GetSessionSegmentRequest$outboundSchema.parse(getSessionSegmentRequest), ); } - -/** @internal */ -export const GetSessionSegmentResponse$inboundSchema: z.ZodType< - GetSessionSegmentResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function getSessionSegmentResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetSessionSegmentResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSessionSegmentResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/getsonicallysimilar.ts b/src/models/operations/getsonicallysimilar.ts similarity index 72% rename from src/sdk/models/operations/getsonicallysimilar.ts rename to src/models/operations/getsonicallysimilar.ts index fa54c2c9..3713baca 100644 --- a/src/sdk/models/operations/getsonicallysimilar.ts +++ b/src/models/operations/getsonicallysimilar.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type GetSonicallySimilarGlobals = { @@ -123,25 +120,6 @@ export type GetSonicallySimilarRequest = { maxDistance?: number | undefined; }; -export type GetSonicallySimilarResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; -}; - /** @internal */ export type GetSonicallySimilarRequest$Outbound = { accepts: string; @@ -165,7 +143,6 @@ export type GetSonicallySimilarRequest$Outbound = { /** @internal */ export const GetSonicallySimilarRequest$outboundSchema: z.ZodType< GetSonicallySimilarRequest$Outbound, - z.ZodTypeDef, GetSonicallySimilarRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -179,10 +156,10 @@ export const GetSonicallySimilarRequest$outboundSchema: z.ZodType< 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()), - limit: z.number().int().optional(), + sectionId: z.int(), + type: z.int().optional(), + values: z.array(z.int()), + limit: z.int().optional(), maxDistance: z.number().optional(), }).transform((v) => { return remap$(v, { @@ -206,33 +183,3 @@ export function getSonicallySimilarRequestToJSON( GetSonicallySimilarRequest$outboundSchema.parse(getSonicallySimilarRequest), ); } - -/** @internal */ -export const GetSonicallySimilarResponse$inboundSchema: z.ZodType< - GetSonicallySimilarResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithMetadata": "mediaContainerWithMetadata", - }); -}); - -export function getSonicallySimilarResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetSonicallySimilarResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSonicallySimilarResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/getsonicpath.ts b/src/models/operations/getsonicpath.ts similarity index 72% rename from src/sdk/models/operations/getsonicpath.ts rename to src/models/operations/getsonicpath.ts index ff8537e2..f8f16ead 100644 --- a/src/sdk/models/operations/getsonicpath.ts +++ b/src/models/operations/getsonicpath.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type GetSonicPathGlobals = { @@ -123,25 +120,6 @@ export type GetSonicPathRequest = { maxDistance?: number | undefined; }; -export type GetSonicPathResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; -}; - /** @internal */ export type GetSonicPathRequest$Outbound = { accepts: string; @@ -165,7 +143,6 @@ export type GetSonicPathRequest$Outbound = { /** @internal */ export const GetSonicPathRequest$outboundSchema: z.ZodType< GetSonicPathRequest$Outbound, - z.ZodTypeDef, GetSonicPathRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -179,10 +156,10 @@ export const GetSonicPathRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - sectionId: z.number().int(), - startID: z.number().int(), - endID: z.number().int(), - count: z.number().int().optional(), + sectionId: z.int(), + startID: z.int(), + endID: z.int(), + count: z.int().optional(), maxDistance: z.number().optional(), }).transform((v) => { return remap$(v, { @@ -206,33 +183,3 @@ export function getSonicPathRequestToJSON( GetSonicPathRequest$outboundSchema.parse(getSonicPathRequest), ); } - -/** @internal */ -export const GetSonicPathResponse$inboundSchema: z.ZodType< - GetSonicPathResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithMetadata": "mediaContainerWithMetadata", - }); -}); - -export function getSonicPathResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetSonicPathResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSonicPathResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/getsourceconnectioninformation.ts b/src/models/operations/getsourceconnectioninformation.ts similarity index 76% rename from src/sdk/models/operations/getsourceconnectioninformation.ts rename to src/models/operations/getsourceconnectioninformation.ts index 6ae8f380..64c30d0b 100644 --- a/src/sdk/models/operations/getsourceconnectioninformation.ts +++ b/src/models/operations/getsourceconnectioninformation.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -161,27 +162,8 @@ export type GetSourceConnectionInformationMediaContainer = { /** * OK */ -export type GetSourceConnectionInformationResponseBody = { - mediaContainer?: GetSourceConnectionInformationMediaContainer | undefined; -}; - export type GetSourceConnectionInformationResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: GetSourceConnectionInformationResponseBody | undefined; + mediaContainer?: GetSourceConnectionInformationMediaContainer | undefined; }; /** @internal */ @@ -204,7 +186,6 @@ export type GetSourceConnectionInformationRequest$Outbound = { /** @internal */ export const GetSourceConnectionInformationRequest$outboundSchema: z.ZodType< GetSourceConnectionInformationRequest$Outbound, - z.ZodTypeDef, GetSourceConnectionInformationRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -246,18 +227,15 @@ export function getSourceConnectionInformationRequestToJSON( } /** @internal */ -export const Connection$inboundSchema: z.ZodType< - Connection, - z.ZodTypeDef, - unknown -> = z.object({ - address: z.string().optional(), - local: z.boolean().optional(), - port: z.number().int().optional(), - protocol: z.string().optional(), - relay: z.boolean().optional(), - uri: z.string().optional(), -}); +export const Connection$inboundSchema: z.ZodType = z + .object({ + address: types.optional(types.string()), + local: types.optional(types.boolean()), + port: types.optional(types.number()), + protocol: types.optional(types.string()), + relay: types.optional(types.boolean()), + uri: types.optional(types.string()), + }); export function connectionFromJSON( jsonString: string, @@ -272,13 +250,12 @@ export function connectionFromJSON( /** @internal */ export const GetSourceConnectionInformationDevice$inboundSchema: z.ZodType< GetSourceConnectionInformationDevice, - z.ZodTypeDef, unknown > = z.object({ - accessToken: z.string().optional(), - clientIdentifier: z.string().optional(), - Connection: z.array(z.lazy(() => Connection$inboundSchema)).optional(), - name: z.string().optional(), + accessToken: types.optional(types.string()), + clientIdentifier: types.optional(types.string()), + Connection: types.optional(z.array(z.lazy(() => Connection$inboundSchema))), + name: types.optional(types.string()), }).transform((v) => { return remap$(v, { "Connection": "connection", @@ -298,17 +275,14 @@ export function getSourceConnectionInformationDeviceFromJSON( /** @internal */ export const GetSourceConnectionInformationMediaContainer$inboundSchema: - z.ZodType< - GetSourceConnectionInformationMediaContainer, - z.ZodTypeDef, - unknown - > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - Device: z.lazy(() => GetSourceConnectionInformationDevice$inboundSchema) - .optional(), + z.ZodType = z.object({ + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + Device: types.optional( + z.lazy(() => GetSourceConnectionInformationDevice$inboundSchema), + ), }).transform((v) => { return remap$(v, { "Device": "device", @@ -331,51 +305,17 @@ export function getSourceConnectionInformationMediaContainerFromJSON( ); } -/** @internal */ -export const GetSourceConnectionInformationResponseBody$inboundSchema: - z.ZodType = - z.object({ - MediaContainer: z.lazy(() => - GetSourceConnectionInformationMediaContainer$inboundSchema - ).optional(), - }).transform((v) => { - return remap$(v, { - "MediaContainer": "mediaContainer", - }); - }); - -export function getSourceConnectionInformationResponseBodyFromJSON( - jsonString: string, -): SafeParseResult< - GetSourceConnectionInformationResponseBody, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - GetSourceConnectionInformationResponseBody$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'GetSourceConnectionInformationResponseBody' from JSON`, - ); -} - /** @internal */ export const GetSourceConnectionInformationResponse$inboundSchema: z.ZodType< GetSourceConnectionInformationResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetSourceConnectionInformationResponseBody$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => GetSourceConnectionInformationMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", + "MediaContainer": "mediaContainer", }); }); diff --git a/src/sdk/models/operations/getstream.ts b/src/models/operations/getstream.ts similarity index 78% rename from src/sdk/models/operations/getstream.ts rename to src/models/operations/getstream.ts index c8d433ca..5147a03d 100644 --- a/src/sdk/models/operations/getstream.ts +++ b/src/models/operations/getstream.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type GetStreamGlobals = { @@ -123,21 +120,6 @@ export type GetStreamRequest = { autoAdjustSubtitle?: shared.BoolInt | undefined; }; -export type GetStreamResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type GetStreamRequest$Outbound = { accepts: string; @@ -161,7 +143,6 @@ export type GetStreamRequest$Outbound = { /** @internal */ export const GetStreamRequest$outboundSchema: z.ZodType< GetStreamRequest$Outbound, - z.ZodTypeDef, GetStreamRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -175,7 +156,7 @@ export const GetStreamRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - streamId: z.number().int(), + streamId: z.int(), ext: z.string(), encoding: z.string().optional(), format: z.string().optional(), @@ -204,30 +185,3 @@ export function getStreamRequestToJSON( GetStreamRequest$outboundSchema.parse(getStreamRequest), ); } - -/** @internal */ -export const GetStreamResponse$inboundSchema: z.ZodType< - GetStreamResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function getStreamResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetStreamResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetStreamResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/getstreamlevels.ts b/src/models/operations/getstreamlevels.ts similarity index 79% rename from src/sdk/models/operations/getstreamlevels.ts rename to src/models/operations/getstreamlevels.ts index 8ff51c2e..76b736ae 100644 --- a/src/sdk/models/operations/getstreamlevels.ts +++ b/src/models/operations/getstreamlevels.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -150,27 +151,8 @@ export type GetStreamLevelsMediaContainer = { /** * OK */ -export type GetStreamLevelsResponseBody = { - mediaContainer?: GetStreamLevelsMediaContainer | undefined; -}; - export type GetStreamLevelsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: GetStreamLevelsResponseBody | undefined; + mediaContainer?: GetStreamLevelsMediaContainer | undefined; }; /** @internal */ @@ -193,7 +175,6 @@ export type GetStreamLevelsRequest$Outbound = { /** @internal */ export const GetStreamLevelsRequest$outboundSchema: z.ZodType< GetStreamLevelsRequest$Outbound, - z.ZodTypeDef, GetStreamLevelsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -207,8 +188,8 @@ export const GetStreamLevelsRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - streamId: z.number().int(), - subsample: z.number().int().optional(), + streamId: z.int(), + subsample: z.int().optional(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -235,10 +216,9 @@ export function getStreamLevelsRequestToJSON( /** @internal */ export const GetStreamLevelsLevel$inboundSchema: z.ZodType< GetStreamLevelsLevel, - z.ZodTypeDef, unknown > = z.object({ - v: z.number().optional(), + v: types.optional(types.number()), }); export function getStreamLevelsLevelFromJSON( @@ -254,15 +234,16 @@ export function getStreamLevelsLevelFromJSON( /** @internal */ export const GetStreamLevelsMediaContainer$inboundSchema: z.ZodType< GetStreamLevelsMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - Level: z.array(z.lazy(() => GetStreamLevelsLevel$inboundSchema)).optional(), - totalSamples: z.string().optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + Level: types.optional( + z.array(z.lazy(() => GetStreamLevelsLevel$inboundSchema)), + ), + totalSamples: types.optional(types.string()), }).transform((v) => { return remap$(v, { "Level": "level", @@ -280,47 +261,19 @@ export function getStreamLevelsMediaContainerFromJSON( } /** @internal */ -export const GetStreamLevelsResponseBody$inboundSchema: z.ZodType< - GetStreamLevelsResponseBody, - z.ZodTypeDef, +export const GetStreamLevelsResponse$inboundSchema: z.ZodType< + GetStreamLevelsResponse, unknown > = z.object({ - MediaContainer: z.lazy(() => GetStreamLevelsMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => GetStreamLevelsMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", }); }); -export function getStreamLevelsResponseBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetStreamLevelsResponseBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetStreamLevelsResponseBody' from JSON`, - ); -} - -/** @internal */ -export const GetStreamLevelsResponse$inboundSchema: z.ZodType< - GetStreamLevelsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetStreamLevelsResponseBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - export function getStreamLevelsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getstreamloudness.ts b/src/models/operations/getstreamloudness.ts similarity index 73% rename from src/sdk/models/operations/getstreamloudness.ts rename to src/models/operations/getstreamloudness.ts index 4de1909b..afce2724 100644 --- a/src/sdk/models/operations/getstreamloudness.ts +++ b/src/models/operations/getstreamloudness.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type GetStreamLoudnessGlobals = { @@ -111,25 +108,6 @@ export type GetStreamLoudnessRequest = { subsample?: number | undefined; }; -export type GetStreamLoudnessResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - res?: string | undefined; -}; - /** @internal */ export type GetStreamLoudnessRequest$Outbound = { accepts: string; @@ -150,7 +128,6 @@ export type GetStreamLoudnessRequest$Outbound = { /** @internal */ export const GetStreamLoudnessRequest$outboundSchema: z.ZodType< GetStreamLoudnessRequest$Outbound, - z.ZodTypeDef, GetStreamLoudnessRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -164,8 +141,8 @@ export const GetStreamLoudnessRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - streamId: z.number().int(), - subsample: z.number().int().optional(), + streamId: z.int(), + subsample: z.int().optional(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -188,31 +165,3 @@ export function getStreamLoudnessRequestToJSON( GetStreamLoudnessRequest$outboundSchema.parse(getStreamLoudnessRequest), ); } - -/** @internal */ -export const GetStreamLoudnessResponse$inboundSchema: z.ZodType< - GetStreamLoudnessResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - res: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function getStreamLoudnessResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetStreamLoudnessResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetStreamLoudnessResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/getsubscription.ts b/src/models/operations/getsubscription.ts similarity index 72% rename from src/sdk/models/operations/getsubscription.ts rename to src/models/operations/getsubscription.ts index e116a073..f15d1e98 100644 --- a/src/sdk/models/operations/getsubscription.ts +++ b/src/models/operations/getsubscription.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type GetSubscriptionGlobals = { @@ -112,27 +109,6 @@ export type GetSubscriptionRequest = { includeStorage?: shared.BoolInt | undefined; }; -export type GetSubscriptionResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithSubscription?: - | shared.MediaContainerWithSubscription - | undefined; -}; - /** @internal */ export type GetSubscriptionRequest$Outbound = { accepts: string; @@ -154,7 +130,6 @@ export type GetSubscriptionRequest$Outbound = { /** @internal */ export const GetSubscriptionRequest$outboundSchema: z.ZodType< GetSubscriptionRequest$Outbound, - z.ZodTypeDef, GetSubscriptionRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -168,7 +143,7 @@ export const GetSubscriptionRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - subscriptionId: z.number().int(), + subscriptionId: z.int(), includeGrabs: shared.BoolInt$outboundSchema.default(shared.BoolInt.False), includeStorage: shared.BoolInt$outboundSchema.default(shared.BoolInt.False), }).transform((v) => { @@ -193,33 +168,3 @@ export function getSubscriptionRequestToJSON( GetSubscriptionRequest$outboundSchema.parse(getSubscriptionRequest), ); } - -/** @internal */ -export const GetSubscriptionResponse$inboundSchema: z.ZodType< - GetSubscriptionResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithSubscription: shared - .MediaContainerWithSubscription$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithSubscription": "mediaContainerWithSubscription", - }); -}); - -export function getSubscriptionResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetSubscriptionResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSubscriptionResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/gettags.ts b/src/models/operations/gettags.ts similarity index 80% rename from src/sdk/models/operations/gettags.ts rename to src/models/operations/gettags.ts index 56db054f..2eea11b8 100644 --- a/src/sdk/models/operations/gettags.ts +++ b/src/models/operations/gettags.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -173,27 +174,8 @@ export type GetTagsMediaContainer = { /** * OK */ -export type GetTagsResponseBody = { - mediaContainer?: GetTagsMediaContainer | undefined; -}; - export type GetTagsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: GetTagsResponseBody | undefined; + mediaContainer?: GetTagsMediaContainer | undefined; }; /** @internal */ @@ -215,7 +197,6 @@ export type GetTagsRequest$Outbound = { /** @internal */ export const GetTagsRequest$outboundSchema: z.ZodType< GetTagsRequest$Outbound, - z.ZodTypeDef, GetTagsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -252,15 +233,14 @@ export function getTagsRequestToJSON(getTagsRequest: GetTagsRequest): string { /** @internal */ export const GetTagsDirectory$inboundSchema: z.ZodType< GetTagsDirectory, - z.ZodTypeDef, unknown > = z.object({ - filter: z.string().optional(), - id: z.number().int().optional(), - tag: z.string().optional(), - tagKey: z.string().optional(), - tagType: z.number().int().optional(), - thumb: z.string().optional(), + filter: types.optional(types.string()), + id: types.optional(types.number()), + tag: types.optional(types.string()), + tagKey: types.optional(types.string()), + tagType: types.optional(types.number()), + thumb: types.optional(types.string()), }); export function getTagsDirectoryFromJSON( @@ -276,14 +256,15 @@ export function getTagsDirectoryFromJSON( /** @internal */ export const GetTagsMediaContainer$inboundSchema: z.ZodType< GetTagsMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - Directory: z.array(z.lazy(() => GetTagsDirectory$inboundSchema)).optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + Directory: types.optional( + z.array(z.lazy(() => GetTagsDirectory$inboundSchema)), + ), }).transform((v) => { return remap$(v, { "Directory": "directory", @@ -301,46 +282,19 @@ export function getTagsMediaContainerFromJSON( } /** @internal */ -export const GetTagsResponseBody$inboundSchema: z.ZodType< - GetTagsResponseBody, - z.ZodTypeDef, +export const GetTagsResponse$inboundSchema: z.ZodType< + GetTagsResponse, unknown > = z.object({ - MediaContainer: z.lazy(() => GetTagsMediaContainer$inboundSchema).optional(), + MediaContainer: types.optional( + z.lazy(() => GetTagsMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", }); }); -export function getTagsResponseBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetTagsResponseBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetTagsResponseBody' from JSON`, - ); -} - -/** @internal */ -export const GetTagsResponse$inboundSchema: z.ZodType< - GetTagsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetTagsResponseBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - export function getTagsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/gettasks.ts b/src/models/operations/gettasks.ts similarity index 54% rename from src/sdk/models/operations/gettasks.ts rename to src/models/operations/gettasks.ts index 341c5e29..5e431a8c 100644 --- a/src/sdk/models/operations/gettasks.ts +++ b/src/models/operations/gettasks.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetTasksButlerTask = { @@ -42,41 +43,21 @@ export type ButlerTasks = { /** * Butler tasks */ -export type GetTasksResponseBody = { - butlerTasks?: ButlerTasks | undefined; -}; - export type GetTasksResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * Butler tasks - */ - object?: GetTasksResponseBody | undefined; + butlerTasks?: ButlerTasks | undefined; }; /** @internal */ export const GetTasksButlerTask$inboundSchema: z.ZodType< GetTasksButlerTask, - z.ZodTypeDef, unknown > = z.object({ - description: z.string().optional(), - enabled: z.boolean().optional(), - interval: z.number().int().optional(), - name: z.string().optional(), - scheduleRandomized: z.boolean().optional(), - title: z.string().optional(), + description: types.optional(types.string()), + enabled: types.optional(types.boolean()), + interval: types.optional(types.number()), + name: types.optional(types.string()), + scheduleRandomized: types.optional(types.boolean()), + title: types.optional(types.string()), }); export function getTasksButlerTaskFromJSON( @@ -90,18 +71,16 @@ export function getTasksButlerTaskFromJSON( } /** @internal */ -export const ButlerTasks$inboundSchema: z.ZodType< - ButlerTasks, - z.ZodTypeDef, - unknown -> = z.object({ - ButlerTask: z.array(z.lazy(() => GetTasksButlerTask$inboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - "ButlerTask": "butlerTask", +export const ButlerTasks$inboundSchema: z.ZodType = z + .object({ + ButlerTask: types.optional( + z.array(z.lazy(() => GetTasksButlerTask$inboundSchema)), + ), + }).transform((v) => { + return remap$(v, { + "ButlerTask": "butlerTask", + }); }); -}); export function butlerTasksFromJSON( jsonString: string, @@ -114,46 +93,17 @@ export function butlerTasksFromJSON( } /** @internal */ -export const GetTasksResponseBody$inboundSchema: z.ZodType< - GetTasksResponseBody, - z.ZodTypeDef, +export const GetTasksResponse$inboundSchema: z.ZodType< + GetTasksResponse, unknown > = z.object({ - ButlerTasks: z.lazy(() => ButlerTasks$inboundSchema).optional(), + ButlerTasks: types.optional(z.lazy(() => ButlerTasks$inboundSchema)), }).transform((v) => { return remap$(v, { "ButlerTasks": "butlerTasks", }); }); -export function getTasksResponseBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetTasksResponseBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetTasksResponseBody' from JSON`, - ); -} - -/** @internal */ -export const GetTasksResponse$inboundSchema: z.ZodType< - GetTasksResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetTasksResponseBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - export function getTasksResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/gettemplate.ts b/src/models/operations/gettemplate.ts similarity index 82% rename from src/sdk/models/operations/gettemplate.ts rename to src/models/operations/gettemplate.ts index a6b955f5..6ac39ed8 100644 --- a/src/sdk/models/operations/gettemplate.ts +++ b/src/models/operations/gettemplate.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -200,23 +201,8 @@ export type GetTemplateResponseBody = { }; export type GetTemplateResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: GetTemplateResponseBody | undefined; headers: { [k: string]: Array }; + result: GetTemplateResponseBody; }; /** @internal */ @@ -238,7 +224,6 @@ export type GetTemplateRequest$Outbound = { /** @internal */ export const GetTemplateRequest$outboundSchema: z.ZodType< GetTemplateRequest$Outbound, - z.ZodTypeDef, GetTemplateRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -279,28 +264,28 @@ export function getTemplateRequestToJSON( /** @internal */ export const MediaSubscription$inboundSchema: z.ZodType< MediaSubscription, - z.ZodTypeDef, unknown > = z.object({ - title: z.string().optional(), - type: z.number().int().optional(), - airingsType: z.string().optional(), - createdAt: z.number().int().optional(), - Directory: z.record(z.any()).optional(), - durationTotal: z.number().int().optional(), - key: z.string().optional(), - librarySectionTitle: z.string().optional(), - locationPath: z.string().optional(), - MediaGrabOperation: z.array(shared.MediaGrabOperation$inboundSchema) - .optional(), - Playlist: z.record(z.any()).optional(), - Setting: z.array(shared.Setting$inboundSchema).optional(), - storageTotal: z.number().int().optional(), - targetLibrarySectionID: z.number().int().optional(), - targetSectionLocationID: z.number().int().optional(), - Video: z.record(z.any()).optional(), - parameters: z.string().optional(), - selected: z.boolean().optional(), + title: types.optional(types.string()), + type: types.optional(types.number()), + airingsType: types.optional(types.string()), + createdAt: types.optional(types.number()), + Directory: types.optional(z.record(z.string(), z.any())), + durationTotal: types.optional(types.number()), + key: types.optional(types.string()), + librarySectionTitle: types.optional(types.string()), + locationPath: types.optional(types.string()), + MediaGrabOperation: types.optional( + z.array(shared.MediaGrabOperation$inboundSchema), + ), + Playlist: types.optional(z.record(z.string(), z.any())), + Setting: types.optional(z.array(shared.Setting$inboundSchema)), + storageTotal: types.optional(types.number()), + targetLibrarySectionID: types.optional(types.number()), + targetSectionLocationID: types.optional(types.number()), + Video: types.optional(z.record(z.string(), z.any())), + parameters: types.optional(types.string()), + selected: types.optional(types.boolean()), }).transform((v) => { return remap$(v, { "Directory": "directory", @@ -324,11 +309,11 @@ export function mediaSubscriptionFromJSON( /** @internal */ export const SubscriptionTemplate$inboundSchema: z.ZodType< SubscriptionTemplate, - z.ZodTypeDef, unknown > = z.object({ - MediaSubscription: z.array(z.lazy(() => MediaSubscription$inboundSchema)) - .optional(), + MediaSubscription: types.optional( + z.array(z.lazy(() => MediaSubscription$inboundSchema)), + ), }).transform((v) => { return remap$(v, { "MediaSubscription": "mediaSubscription", @@ -348,16 +333,15 @@ export function subscriptionTemplateFromJSON( /** @internal */ export const GetTemplateMediaContainer$inboundSchema: z.ZodType< GetTemplateMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - SubscriptionTemplate: z.array( - z.lazy(() => SubscriptionTemplate$inboundSchema), - ).optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + SubscriptionTemplate: types.optional( + z.array(z.lazy(() => SubscriptionTemplate$inboundSchema)), + ), }).transform((v) => { return remap$(v, { "SubscriptionTemplate": "subscriptionTemplate", @@ -377,11 +361,11 @@ export function getTemplateMediaContainerFromJSON( /** @internal */ export const GetTemplateResponseBody$inboundSchema: z.ZodType< GetTemplateResponseBody, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => GetTemplateMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => GetTemplateMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -401,20 +385,14 @@ export function getTemplateResponseBodyFromJSON( /** @internal */ export const GetTemplateResponse$inboundSchema: z.ZodType< GetTemplateResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetTemplateResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: z.lazy(() => GetTemplateResponseBody$inboundSchema), }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/getthumb.ts b/src/models/operations/getthumb.ts similarity index 74% rename from src/sdk/models/operations/getthumb.ts rename to src/models/operations/getthumb.ts index 4e06b6e5..ee13091e 100644 --- a/src/sdk/models/operations/getthumb.ts +++ b/src/models/operations/getthumb.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type GetThumbGlobals = { @@ -111,21 +108,6 @@ export type GetThumbRequest = { versionPathParameter: number; }; -export type GetThumbResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type GetThumbRequest$Outbound = { accepts: string; @@ -146,7 +128,6 @@ export type GetThumbRequest$Outbound = { /** @internal */ export const GetThumbRequest$outboundSchema: z.ZodType< GetThumbRequest$Outbound, - z.ZodTypeDef, GetThumbRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -160,8 +141,8 @@ export const GetThumbRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - deviceId: z.number().int(), - versionPathParameter: z.number().int(), + deviceId: z.int(), + versionPathParameter: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -182,30 +163,3 @@ export function getThumbRequestToJSON( ): string { return JSON.stringify(GetThumbRequest$outboundSchema.parse(getThumbRequest)); } - -/** @internal */ -export const GetThumbResponse$inboundSchema: z.ZodType< - GetThumbResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function getThumbResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetThumbResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetThumbResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/gettokendetails.ts b/src/models/operations/gettokendetails.ts similarity index 76% rename from src/sdk/models/operations/gettokendetails.ts rename to src/models/operations/gettokendetails.ts index f86d466f..da1f9a47 100644 --- a/src/sdk/models/operations/gettokendetails.ts +++ b/src/models/operations/gettokendetails.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -119,25 +120,6 @@ export type GetTokenDetailsBadRequestError = { status?: number | undefined; }; -export type GetTokenDetailsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * Logged in user details - */ - userPlexAccount?: shared.UserPlexAccount | undefined; -}; - /** @internal */ export type GetTokenDetailsRequest$Outbound = { accepts: string; @@ -156,7 +138,6 @@ export type GetTokenDetailsRequest$Outbound = { /** @internal */ export const GetTokenDetailsRequest$outboundSchema: z.ZodType< GetTokenDetailsRequest$Outbound, - z.ZodTypeDef, GetTokenDetailsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -196,12 +177,11 @@ export function getTokenDetailsRequestToJSON( /** @internal */ export const GetTokenDetailsUnauthorizedError$inboundSchema: z.ZodType< GetTokenDetailsUnauthorizedError, - z.ZodTypeDef, unknown > = z.object({ - code: z.number().int().optional(), - message: z.string().optional(), - status: z.number().int().optional(), + code: types.optional(types.number()), + message: types.optional(types.string()), + status: types.optional(types.number()), }); export function getTokenDetailsUnauthorizedErrorFromJSON( @@ -217,12 +197,11 @@ export function getTokenDetailsUnauthorizedErrorFromJSON( /** @internal */ export const GetTokenDetailsBadRequestError$inboundSchema: z.ZodType< GetTokenDetailsBadRequestError, - z.ZodTypeDef, unknown > = z.object({ - code: z.number().int().optional(), - message: z.string().optional(), - status: z.number().int().optional(), + code: types.optional(types.number()), + message: types.optional(types.string()), + status: types.optional(types.number()), }); export function getTokenDetailsBadRequestErrorFromJSON( @@ -234,32 +213,3 @@ export function getTokenDetailsBadRequestErrorFromJSON( `Failed to parse 'GetTokenDetailsBadRequestError' from JSON`, ); } - -/** @internal */ -export const GetTokenDetailsResponse$inboundSchema: z.ZodType< - GetTokenDetailsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - UserPlexAccount: shared.UserPlexAccount$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "UserPlexAccount": "userPlexAccount", - }); -}); - -export function getTokenDetailsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetTokenDetailsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetTokenDetailsResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/gettransienttoken.ts b/src/models/operations/gettransienttoken.ts similarity index 78% rename from src/sdk/models/operations/gettransienttoken.ts rename to src/models/operations/gettransienttoken.ts index d973be68..c9739af0 100644 --- a/src/sdk/models/operations/gettransienttoken.ts +++ b/src/models/operations/gettransienttoken.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -156,38 +157,19 @@ export type GetTransientTokenMediaContainer = { /** * OK */ -export type GetTransientTokenResponseBody = { +export type GetTransientTokenResponse = { mediaContainer?: GetTransientTokenMediaContainer | undefined; }; -export type GetTransientTokenResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: GetTransientTokenResponseBody | undefined; -}; - /** @internal */ -export const GetTransientTokenType$outboundSchema: z.ZodNativeEnum< +export const GetTransientTokenType$outboundSchema: z.ZodEnum< typeof GetTransientTokenType -> = z.nativeEnum(GetTransientTokenType); +> = z.enum(GetTransientTokenType); /** @internal */ -export const GetTransientTokenScope$outboundSchema: z.ZodNativeEnum< +export const GetTransientTokenScope$outboundSchema: z.ZodEnum< typeof GetTransientTokenScope -> = z.nativeEnum(GetTransientTokenScope); +> = z.enum(GetTransientTokenScope); /** @internal */ export type GetTransientTokenRequest$Outbound = { @@ -209,7 +191,6 @@ export type GetTransientTokenRequest$Outbound = { /** @internal */ export const GetTransientTokenRequest$outboundSchema: z.ZodType< GetTransientTokenRequest$Outbound, - z.ZodTypeDef, GetTransientTokenRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -251,14 +232,13 @@ export function getTransientTokenRequestToJSON( /** @internal */ export const GetTransientTokenMediaContainer$inboundSchema: z.ZodType< GetTransientTokenMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - token: z.string().optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + token: types.optional(types.string()), }); export function getTransientTokenMediaContainerFromJSON( @@ -272,47 +252,19 @@ export function getTransientTokenMediaContainerFromJSON( } /** @internal */ -export const GetTransientTokenResponseBody$inboundSchema: z.ZodType< - GetTransientTokenResponseBody, - z.ZodTypeDef, +export const GetTransientTokenResponse$inboundSchema: z.ZodType< + GetTransientTokenResponse, unknown > = z.object({ - MediaContainer: z.lazy(() => GetTransientTokenMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => GetTransientTokenMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", }); }); -export function getTransientTokenResponseBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetTransientTokenResponseBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetTransientTokenResponseBody' from JSON`, - ); -} - -/** @internal */ -export const GetTransientTokenResponse$inboundSchema: z.ZodType< - GetTransientTokenResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetTransientTokenResponseBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - export function getTransientTokenResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getupdatesstatus.ts b/src/models/operations/getupdatesstatus.ts similarity index 64% rename from src/sdk/models/operations/getupdatesstatus.ts rename to src/models/operations/getupdatesstatus.ts index 78d755e6..7487cf58 100644 --- a/src/sdk/models/operations/getupdatesstatus.ts +++ b/src/models/operations/getupdatesstatus.ts @@ -2,10 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import * as openEnums from "../../types/enums.js"; +import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** @@ -34,6 +37,22 @@ export enum GetUpdatesStatusState { Notify = "notify", Done = "done", } +/** + * The status of this update. + * + * @remarks + * + * - available - This release is available + * - downloading - This release is downloading + * - downloaded - This release has been downloaded + * - installing - This release is installing + * - tonight - This release will be installed tonight + * - skipped - This release has been skipped + * - error - This release has an error + * - notify - This release is only notifying it is available (typically because it cannot be installed on this setup) + * - done - This release is complete + */ +export type GetUpdatesStatusStateOpen = OpenEnum; export type Release = { /** @@ -67,7 +86,7 @@ export type Release = { * - notify - This release is only notifying it is available (typically because it cannot be installed on this setup) * - done - This release is complete */ - state?: GetUpdatesStatusState | undefined; + state?: GetUpdatesStatusStateOpen | undefined; /** * The version available */ @@ -101,44 +120,25 @@ export type GetUpdatesStatusMediaContainer = { /** * OK */ -export type GetUpdatesStatusResponseBody = { +export type GetUpdatesStatusResponse = { mediaContainer?: GetUpdatesStatusMediaContainer | undefined; }; -export type GetUpdatesStatusResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: GetUpdatesStatusResponseBody | undefined; -}; +/** @internal */ +export const GetUpdatesStatusState$inboundSchema: z.ZodType< + GetUpdatesStatusStateOpen, + unknown +> = openEnums.inboundSchema(GetUpdatesStatusState); /** @internal */ -export const GetUpdatesStatusState$inboundSchema: z.ZodNativeEnum< - typeof GetUpdatesStatusState -> = z.nativeEnum(GetUpdatesStatusState); - -/** @internal */ -export const Release$inboundSchema: z.ZodType = - z.object({ - added: z.string().optional(), - downloadURL: z.string().optional(), - fixed: z.string().optional(), - key: z.string().optional(), - state: GetUpdatesStatusState$inboundSchema.optional(), - version: z.string().optional(), - }); +export const Release$inboundSchema: z.ZodType = z.object({ + added: types.optional(types.string()), + downloadURL: types.optional(types.string()), + fixed: types.optional(types.string()), + key: types.optional(types.string()), + state: types.optional(GetUpdatesStatusState$inboundSchema), + version: types.optional(types.string()), +}); export function releaseFromJSON( jsonString: string, @@ -153,15 +153,14 @@ export function releaseFromJSON( /** @internal */ export const GetUpdatesStatusMediaContainer$inboundSchema: z.ZodType< GetUpdatesStatusMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - autoUpdateVersion: z.number().int().optional(), - canInstall: z.boolean().optional(), - checkedAt: z.number().int().optional(), - downloadURL: z.string().optional(), - Release: z.array(z.lazy(() => Release$inboundSchema)).optional(), - status: z.number().int().optional(), + autoUpdateVersion: types.optional(types.number()), + canInstall: types.optional(types.boolean()), + checkedAt: types.optional(types.number()), + downloadURL: types.optional(types.string()), + Release: types.optional(z.array(z.lazy(() => Release$inboundSchema))), + status: types.optional(types.number()), }).transform((v) => { return remap$(v, { "Release": "release", @@ -179,47 +178,19 @@ export function getUpdatesStatusMediaContainerFromJSON( } /** @internal */ -export const GetUpdatesStatusResponseBody$inboundSchema: z.ZodType< - GetUpdatesStatusResponseBody, - z.ZodTypeDef, +export const GetUpdatesStatusResponse$inboundSchema: z.ZodType< + GetUpdatesStatusResponse, unknown > = z.object({ - MediaContainer: z.lazy(() => GetUpdatesStatusMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => GetUpdatesStatusMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", }); }); -export function getUpdatesStatusResponseBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetUpdatesStatusResponseBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetUpdatesStatusResponseBody' from JSON`, - ); -} - -/** @internal */ -export const GetUpdatesStatusResponse$inboundSchema: z.ZodType< - GetUpdatesStatusResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetUpdatesStatusResponseBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - export function getUpdatesStatusResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getusers.ts b/src/models/operations/getusers.ts similarity index 65% rename from src/sdk/models/operations/getusers.ts rename to src/models/operations/getusers.ts index d7a534e8..b62f7f64 100644 --- a/src/sdk/models/operations/getusers.ts +++ b/src/models/operations/getusers.ts @@ -2,10 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import * as openEnums from "../../types/enums.js"; +import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -126,6 +129,10 @@ export enum Protected { Disable = 0, Enable = 1, } +/** + * Indicates whether the account is protected. + */ +export type ProtectedOpen = OpenEnum; /** * Indicates if the user is part of a home group. @@ -134,6 +141,10 @@ export enum Home { Disable = 0, Enable = 1, } +/** + * Indicates if the user is part of a home group. + */ +export type HomeOpen = OpenEnum; /** * Indicates if the user is allowed to use tuners. @@ -142,6 +153,10 @@ export enum AllowTuners { Disable = 0, Enable = 1, } +/** + * Indicates if the user is allowed to use tuners. + */ +export type AllowTunersOpen = OpenEnum; /** * Indicates if the user is allowed to sync media. @@ -150,6 +165,10 @@ export enum AllowSync { Disable = 0, Enable = 1, } +/** + * Indicates if the user is allowed to sync media. + */ +export type AllowSyncOpen = OpenEnum; /** * Indicates if the user is allowed to upload from a camera. @@ -158,6 +177,10 @@ export enum AllowCameraUpload { Disable = 0, Enable = 1, } +/** + * Indicates if the user is allowed to upload from a camera. + */ +export type AllowCameraUploadOpen = OpenEnum; /** * Indicates if the user has access to channels. @@ -166,6 +189,10 @@ export enum AllowChannels { Disable = 0, Enable = 1, } +/** + * Indicates if the user has access to channels. + */ +export type AllowChannelsOpen = OpenEnum; /** * Indicates if the user can manage subtitles. @@ -174,6 +201,10 @@ export enum AllowSubtitleAdmin { Disable = 0, Enable = 1, } +/** + * Indicates if the user can manage subtitles. + */ +export type AllowSubtitleAdminOpen = OpenEnum; /** * Indicates if the user has restricted access. @@ -182,6 +213,10 @@ export enum Restricted { Disable = 0, Enable = 1, } +/** + * Indicates if the user has restricted access. + */ +export type RestrictedOpen = OpenEnum; /** * Indicates if the user has access to all libraries. @@ -190,6 +225,10 @@ export enum AllLibraries { Disable = 0, Enable = 1, } +/** + * Indicates if the user has access to all libraries. + */ +export type AllLibrariesOpen = OpenEnum; /** * Indicates if the user owns the server. @@ -198,6 +237,10 @@ export enum Owned { Disable = 0, Enable = 1, } +/** + * Indicates if the user owns the server. + */ +export type OwnedOpen = OpenEnum; /** * Indicates if the server is pending approval. @@ -206,6 +249,10 @@ export enum Pending { Disable = 0, Enable = 1, } +/** + * Indicates if the server is pending approval. + */ +export type PendingOpen = OpenEnum; export type Server = { /** @@ -232,9 +279,9 @@ export type Server = { * Number of libraries in the server this user has access to. */ numLibraries: number; - allLibraries?: AllLibraries | undefined; - owned?: Owned | undefined; - pending?: Pending | undefined; + allLibraries?: AllLibrariesOpen | undefined; + owned?: OwnedOpen | undefined; + pending?: PendingOpen | undefined; }; export type User = { @@ -262,13 +309,13 @@ export type User = { * URL to the user's avatar image. */ thumb: string; - protected?: Protected | undefined; - home?: Home | undefined; - allowTuners?: AllowTuners | undefined; - allowSync?: AllowSync | undefined; - allowCameraUpload?: AllowCameraUpload | undefined; - allowChannels?: AllowChannels | undefined; - allowSubtitleAdmin?: AllowSubtitleAdmin | undefined; + protected?: ProtectedOpen | undefined; + home?: HomeOpen | undefined; + allowTuners?: AllowTunersOpen | undefined; + allowSync?: AllowSyncOpen | undefined; + allowCameraUpload?: AllowCameraUploadOpen | undefined; + allowChannels?: AllowChannelsOpen | undefined; + allowSubtitleAdmin?: AllowSubtitleAdminOpen | undefined; /** * Filters applied for all content. */ @@ -289,7 +336,7 @@ export type User = { * Filters applied for television. */ filterTelevision?: string | undefined; - restricted?: Restricted | undefined; + restricted?: RestrictedOpen | undefined; /** * List of servers owned by the user. */ @@ -326,32 +373,13 @@ export type GetUsersMediaContainer = { /** * Successful response with media container data in JSON */ -export type GetUsersResponseBody = { +export type GetUsersResponse = { /** * Container holding user and server details. */ mediaContainer?: GetUsersMediaContainer | undefined; }; -export type GetUsersResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * Successful response with media container data in JSON - */ - object?: GetUsersResponseBody | undefined; -}; - /** @internal */ export type GetUsersRequest$Outbound = { accepts: string; @@ -370,7 +398,6 @@ export type GetUsersRequest$Outbound = { /** @internal */ export const GetUsersRequest$outboundSchema: z.ZodType< GetUsersRequest$Outbound, - z.ZodTypeDef, GetUsersRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -408,12 +435,11 @@ export function getUsersRequestToJSON( /** @internal */ export const GetUsersUnauthorizedError$inboundSchema: z.ZodType< GetUsersUnauthorizedError, - z.ZodTypeDef, unknown > = z.object({ - code: z.number().int().optional(), - message: z.string().optional(), - status: z.number().int().optional(), + code: types.optional(types.number()), + message: types.optional(types.string()), + status: types.optional(types.number()), }); export function getUsersUnauthorizedErrorFromJSON( @@ -429,12 +455,11 @@ export function getUsersUnauthorizedErrorFromJSON( /** @internal */ export const GetUsersBadRequestError$inboundSchema: z.ZodType< GetUsersBadRequestError, - z.ZodTypeDef, unknown > = z.object({ - code: z.number().int().optional(), - message: z.string().optional(), - status: z.number().int().optional(), + code: types.optional(types.number()), + message: types.optional(types.string()), + status: types.optional(types.number()), }); export function getUsersBadRequestErrorFromJSON( @@ -448,67 +473,67 @@ export function getUsersBadRequestErrorFromJSON( } /** @internal */ -export const Protected$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(Protected); +export const Protected$inboundSchema: z.ZodType = + openEnums.inboundSchemaInt(Protected); /** @internal */ -export const Home$inboundSchema: z.ZodNativeEnum = z.nativeEnum( - Home, -); +export const Home$inboundSchema: z.ZodType = openEnums + .inboundSchemaInt(Home); /** @internal */ -export const AllowTuners$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(AllowTuners); +export const AllowTuners$inboundSchema: z.ZodType = + openEnums.inboundSchemaInt(AllowTuners); /** @internal */ -export const AllowSync$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(AllowSync); +export const AllowSync$inboundSchema: z.ZodType = + openEnums.inboundSchemaInt(AllowSync); /** @internal */ -export const AllowCameraUpload$inboundSchema: z.ZodNativeEnum< - typeof AllowCameraUpload -> = z.nativeEnum(AllowCameraUpload); +export const AllowCameraUpload$inboundSchema: z.ZodType< + AllowCameraUploadOpen, + unknown +> = openEnums.inboundSchemaInt(AllowCameraUpload); /** @internal */ -export const AllowChannels$inboundSchema: z.ZodNativeEnum< - typeof AllowChannels -> = z.nativeEnum(AllowChannels); +export const AllowChannels$inboundSchema: z.ZodType< + AllowChannelsOpen, + unknown +> = openEnums.inboundSchemaInt(AllowChannels); /** @internal */ -export const AllowSubtitleAdmin$inboundSchema: z.ZodNativeEnum< - typeof AllowSubtitleAdmin -> = z.nativeEnum(AllowSubtitleAdmin); +export const AllowSubtitleAdmin$inboundSchema: z.ZodType< + AllowSubtitleAdminOpen, + unknown +> = openEnums.inboundSchemaInt(AllowSubtitleAdmin); /** @internal */ -export const Restricted$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(Restricted); +export const Restricted$inboundSchema: z.ZodType = + openEnums.inboundSchemaInt(Restricted); /** @internal */ -export const AllLibraries$inboundSchema: z.ZodNativeEnum = - z.nativeEnum(AllLibraries); +export const AllLibraries$inboundSchema: z.ZodType = + openEnums.inboundSchemaInt(AllLibraries); /** @internal */ -export const Owned$inboundSchema: z.ZodNativeEnum = z.nativeEnum( - Owned, -); +export const Owned$inboundSchema: z.ZodType = openEnums + .inboundSchemaInt(Owned); /** @internal */ -export const Pending$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(Pending); +export const Pending$inboundSchema: z.ZodType = openEnums + .inboundSchemaInt(Pending); /** @internal */ -export const Server$inboundSchema: z.ZodType = z - .object({ - id: z.number().int(), - serverId: z.number().int(), - machineIdentifier: z.string(), - name: z.string(), - lastSeenAt: z.number().int(), - numLibraries: z.number().int(), - allLibraries: AllLibraries$inboundSchema.default(AllLibraries.Disable), - owned: Owned$inboundSchema.default(Owned.Disable), - pending: Pending$inboundSchema.default(Pending.Disable), - }); +export const Server$inboundSchema: z.ZodType = z.object({ + id: types.number(), + serverId: types.number(), + machineIdentifier: types.string(), + name: types.string(), + lastSeenAt: types.number(), + numLibraries: types.number(), + allLibraries: AllLibraries$inboundSchema.default(AllLibraries.Disable), + owned: Owned$inboundSchema.default(Owned.Disable), + pending: Pending$inboundSchema.default(Pending.Disable), +}); export function serverFromJSON( jsonString: string, @@ -521,37 +546,36 @@ export function serverFromJSON( } /** @internal */ -export const User$inboundSchema: z.ZodType = z - .object({ - id: z.number().int(), - title: z.string(), - username: z.string(), - email: z.string(), - recommendationsPlaylistId: z.nullable(z.string()).optional(), - thumb: z.string(), - protected: Protected$inboundSchema.default(Protected.Disable), - home: Home$inboundSchema.default(Home.Disable), - allowTuners: AllowTuners$inboundSchema.default(AllowTuners.Disable), - allowSync: AllowSync$inboundSchema.default(AllowSync.Disable), - allowCameraUpload: AllowCameraUpload$inboundSchema.default( - AllowCameraUpload.Disable, - ), - allowChannels: AllowChannels$inboundSchema.default(AllowChannels.Disable), - allowSubtitleAdmin: AllowSubtitleAdmin$inboundSchema.default( - AllowSubtitleAdmin.Disable, - ), - filterAll: z.nullable(z.string()).optional(), - filterMovies: z.nullable(z.string()).optional(), - filterMusic: z.nullable(z.string()).optional(), - filterPhotos: z.nullable(z.string()).optional(), - filterTelevision: z.string().optional(), - restricted: Restricted$inboundSchema.default(Restricted.Disable), - Server: z.array(z.lazy(() => Server$inboundSchema)), - }).transform((v) => { - return remap$(v, { - "Server": "server", - }); +export const User$inboundSchema: z.ZodType = z.object({ + id: types.number(), + title: types.string(), + username: types.string(), + email: types.string(), + recommendationsPlaylistId: z.nullable(types.string()).optional(), + thumb: types.string(), + protected: Protected$inboundSchema.default(Protected.Disable), + home: Home$inboundSchema.default(Home.Disable), + allowTuners: AllowTuners$inboundSchema.default(AllowTuners.Disable), + allowSync: AllowSync$inboundSchema.default(AllowSync.Disable), + allowCameraUpload: AllowCameraUpload$inboundSchema.default( + AllowCameraUpload.Disable, + ), + allowChannels: AllowChannels$inboundSchema.default(AllowChannels.Disable), + allowSubtitleAdmin: AllowSubtitleAdmin$inboundSchema.default( + AllowSubtitleAdmin.Disable, + ), + filterAll: z.nullable(types.string()).optional(), + filterMovies: z.nullable(types.string()).optional(), + filterMusic: z.nullable(types.string()).optional(), + filterPhotos: z.nullable(types.string()).optional(), + filterTelevision: types.optional(types.string()), + restricted: Restricted$inboundSchema.default(Restricted.Disable), + Server: z.array(z.lazy(() => Server$inboundSchema)), +}).transform((v) => { + return remap$(v, { + "Server": "server", }); +}); export function userFromJSON( jsonString: string, @@ -566,14 +590,13 @@ export function userFromJSON( /** @internal */ export const GetUsersMediaContainer$inboundSchema: z.ZodType< GetUsersMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - friendlyName: z.string(), - identifier: z.string(), - machineIdentifier: z.string(), - totalSize: z.number().int(), - size: z.number().int(), + friendlyName: types.string(), + identifier: types.string(), + machineIdentifier: types.string(), + totalSize: types.number(), + size: types.number(), User: z.array(z.lazy(() => User$inboundSchema)), }).transform((v) => { return remap$(v, { @@ -592,46 +615,19 @@ export function getUsersMediaContainerFromJSON( } /** @internal */ -export const GetUsersResponseBody$inboundSchema: z.ZodType< - GetUsersResponseBody, - z.ZodTypeDef, +export const GetUsersResponse$inboundSchema: z.ZodType< + GetUsersResponse, unknown > = z.object({ - MediaContainer: z.lazy(() => GetUsersMediaContainer$inboundSchema).optional(), + MediaContainer: types.optional( + z.lazy(() => GetUsersMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", }); }); -export function getUsersResponseBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetUsersResponseBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetUsersResponseBody' from JSON`, - ); -} - -/** @internal */ -export const GetUsersResponse$inboundSchema: z.ZodType< - GetUsersResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetUsersResponseBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - export function getUsersResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/index.ts b/src/models/operations/index.ts similarity index 96% rename from src/sdk/models/operations/index.ts rename to src/models/operations/index.ts index 83b46881..02c39eb4 100644 --- a/src/sdk/models/operations/index.ts +++ b/src/models/operations/index.ts @@ -20,7 +20,6 @@ export * from "./cancelactivity.js"; export * from "./cancelgrab.js"; export * from "./cancelrefresh.js"; export * from "./checkupdates.js"; -export * from "./cleanbundles.js"; export * from "./clearplaylistitems.js"; export * from "./clearplayqueue.js"; export * from "./computechannelmap.js"; @@ -33,7 +32,6 @@ export * from "./createmarker.js"; export * from "./createplaylist.js"; export * from "./createplayqueue.js"; export * from "./createsubscription.js"; -export * from "./deletecaches.js"; export * from "./deletecollection.js"; export * from "./deletecollectionitem.js"; export * from "./deletecustomhub.js"; @@ -56,7 +54,6 @@ export * from "./detectads.js"; export * from "./detectcredits.js"; export * from "./detectintros.js"; export * from "./detectvoiceactivity.js"; -export * from "./discoverdevices.js"; export * from "./editmarker.js"; export * from "./editmetadataitem.js"; export * from "./editsection.js"; @@ -69,7 +66,6 @@ export * from "./getallhubs.js"; export * from "./getallitemleaves.js"; export * from "./getalllanguages.js"; export * from "./getallleaves.js"; -export * from "./getallpreferences.js"; export * from "./getallsubscriptions.js"; export * from "./getarts.js"; export * from "./getaugmentationstatus.js"; @@ -191,7 +187,6 @@ export * from "./postuserssignindata.js"; export * from "./processsubscriptions.js"; export * from "./refreshitemsmetadata.js"; export * from "./refreshplaylist.js"; -export * from "./refreshproviders.js"; export * from "./refreshsection.js"; export * from "./refreshsectionsmetadata.js"; export * from "./reloadguide.js"; @@ -220,13 +215,10 @@ export * from "./splititem.js"; export * from "./startanalysis.js"; export * from "./startbifgeneration.js"; export * from "./starttask.js"; -export * from "./starttasks.js"; export * from "./starttranscodesession.js"; -export * from "./stopallrefreshes.js"; export * from "./stopdvrreload.js"; export * from "./stopscan.js"; export * from "./stoptask.js"; -export * from "./stoptasks.js"; export * from "./terminatesession.js"; export * from "./transcodeimage.js"; export * from "./transcodesubtitles.js"; @@ -241,5 +233,4 @@ export * from "./updateitems.js"; export * from "./updateplaylist.js"; export * from "./uploadplaylist.js"; export * from "./voicesearchhubs.js"; -export * from "./writelog.js"; export * from "./writemessage.js"; diff --git a/src/sdk/models/operations/ingesttransientitem.ts b/src/models/operations/ingesttransientitem.ts similarity index 85% rename from src/sdk/models/operations/ingesttransientitem.ts rename to src/models/operations/ingesttransientitem.ts index 65646aab..3b8927d1 100644 --- a/src/sdk/models/operations/ingesttransientitem.ts +++ b/src/models/operations/ingesttransientitem.ts @@ -2,9 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +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"; @@ -120,23 +120,8 @@ export type IngestTransientItemRequest = { }; export type IngestTransientItemResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; headers: { [k: string]: Array }; + result: shared.MediaContainerWithMetadata; }; /** @internal */ @@ -161,7 +146,6 @@ export type IngestTransientItemRequest$Outbound = { /** @internal */ export const IngestTransientItemRequest$outboundSchema: z.ZodType< IngestTransientItemRequest$Outbound, - z.ZodTypeDef, IngestTransientItemRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -205,22 +189,14 @@ export function ingestTransientItemRequestToJSON( /** @internal */ export const IngestTransientItemResponse$inboundSchema: z.ZodType< IngestTransientItemResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema - .optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: shared.MediaContainerWithMetadata$inboundSchema, }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithMetadata": "mediaContainerWithMetadata", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/listactivities.ts b/src/models/operations/listactivities.ts similarity index 58% rename from src/sdk/models/operations/listactivities.ts rename to src/models/operations/listactivities.ts index 3e718263..ac6a97db 100644 --- a/src/sdk/models/operations/listactivities.ts +++ b/src/models/operations/listactivities.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type Activity = { @@ -54,44 +55,21 @@ export type ListActivitiesMediaContainer = { /** * OK */ -export type ListActivitiesResponseBody = { +export type ListActivitiesResponse = { mediaContainer?: ListActivitiesMediaContainer | undefined; }; -export type ListActivitiesResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: ListActivitiesResponseBody | undefined; -}; - /** @internal */ -export const Activity$inboundSchema: z.ZodType< - Activity, - z.ZodTypeDef, - unknown -> = z.object({ - cancellable: z.boolean().optional(), - Context: z.record(z.any()).optional(), - progress: z.number().optional(), - Response: z.record(z.any()).optional(), - subtitle: z.string().optional(), - title: z.string().optional(), - type: z.string().optional(), - userID: z.number().int().optional(), - uuid: z.string().optional(), +export const Activity$inboundSchema: z.ZodType = z.object({ + cancellable: types.optional(types.boolean()), + Context: types.optional(z.record(z.string(), z.any())), + progress: types.optional(types.number()), + Response: types.optional(z.record(z.string(), z.any())), + subtitle: types.optional(types.string()), + title: types.optional(types.string()), + type: types.optional(types.string()), + userID: types.optional(types.number()), + uuid: types.optional(types.string()), }).transform((v) => { return remap$(v, { "Context": "context", @@ -112,10 +90,9 @@ export function activityFromJSON( /** @internal */ export const ListActivitiesMediaContainer$inboundSchema: z.ZodType< ListActivitiesMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - Activity: z.array(z.lazy(() => Activity$inboundSchema)).optional(), + Activity: types.optional(z.array(z.lazy(() => Activity$inboundSchema))), }).transform((v) => { return remap$(v, { "Activity": "activity", @@ -133,47 +110,19 @@ export function listActivitiesMediaContainerFromJSON( } /** @internal */ -export const ListActivitiesResponseBody$inboundSchema: z.ZodType< - ListActivitiesResponseBody, - z.ZodTypeDef, +export const ListActivitiesResponse$inboundSchema: z.ZodType< + ListActivitiesResponse, unknown > = z.object({ - MediaContainer: z.lazy(() => ListActivitiesMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => ListActivitiesMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", }); }); -export function listActivitiesResponseBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListActivitiesResponseBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListActivitiesResponseBody' from JSON`, - ); -} - -/** @internal */ -export const ListActivitiesResponse$inboundSchema: z.ZodType< - ListActivitiesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => ListActivitiesResponseBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - export function listActivitiesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/listcontent.ts b/src/models/operations/listcontent.ts similarity index 86% rename from src/sdk/models/operations/listcontent.ts rename to src/models/operations/listcontent.ts index 8172c8d8..64326ff2 100644 --- a/src/sdk/models/operations/listcontent.ts +++ b/src/models/operations/listcontent.ts @@ -2,9 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +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"; @@ -157,23 +157,8 @@ export type ListContentRequest = { }; export type ListContentResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; headers: { [k: string]: Array }; + result: shared.MediaContainerWithMetadata; }; /** @internal */ @@ -200,7 +185,6 @@ export type ListContentRequest$Outbound = { /** @internal */ export const ListContentRequest$outboundSchema: z.ZodType< ListContentRequest$Outbound, - z.ZodTypeDef, ListContentRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -214,8 +198,8 @@ export const ListContentRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - xPlexContainerStart: z.number().int().default(0), - xPlexContainerSize: z.number().int().default(50), + xPlexContainerStart: z.int().default(0), + xPlexContainerSize: z.int().default(50), mediaQuery: shared.MediaQuery$outboundSchema.optional(), includeMeta: shared.BoolInt$outboundSchema.default(shared.BoolInt.False), includeGuids: shared.BoolInt$outboundSchema.default(shared.BoolInt.False), @@ -248,22 +232,14 @@ export function listContentRequestToJSON( /** @internal */ export const ListContentResponse$inboundSchema: z.ZodType< ListContentResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema - .optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: shared.MediaContainerWithMetadata$inboundSchema, }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithMetadata": "mediaContainerWithMetadata", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/models/operations/listdevices.ts b/src/models/operations/listdevices.ts new file mode 100644 index 00000000..a68b510c --- /dev/null +++ b/src/models/operations/listdevices.ts @@ -0,0 +1,39 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v4"; +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 ListDevicesResponse = { + headers: { [k: string]: Array }; + result: shared.MediaContainerWithDevice; +}; + +/** @internal */ +export const ListDevicesResponse$inboundSchema: z.ZodType< + ListDevicesResponse, + unknown +> = z.object({ + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: shared.MediaContainerWithDevice$inboundSchema, +}).transform((v) => { + return remap$(v, { + "Headers": "headers", + "Result": "result", + }); +}); + +export function listDevicesResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListDevicesResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListDevicesResponse' from JSON`, + ); +} diff --git a/src/sdk/models/operations/listdownloadqueueitems.ts b/src/models/operations/listdownloadqueueitems.ts similarity index 78% rename from src/sdk/models/operations/listdownloadqueueitems.ts rename to src/models/operations/listdownloadqueueitems.ts index 883af287..bb60da3c 100644 --- a/src/sdk/models/operations/listdownloadqueueitems.ts +++ b/src/models/operations/listdownloadqueueitems.ts @@ -2,10 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import * as openEnums from "../../types/enums.js"; +import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -147,6 +150,20 @@ export enum ListDownloadQueueItemsStatus { Error = "error", Expired = "expired", } +/** + * The state of the item: + * + * @remarks + * - deciding: The item decision is pending + * - waiting: The item is waiting for transcode + * - processing: The item is being transcoded + * - available: The item is available for download + * - error: The item encountered an error in the decision or transcode + * - expired: The transcoded item has timed out and is no longer available + */ +export type ListDownloadQueueItemsStatusOpen = OpenEnum< + typeof ListDownloadQueueItemsStatus +>; /** * The transcode session object which is not yet documented otherwise it'd be a $ref here. @@ -173,7 +190,7 @@ export type ListDownloadQueueItemsDownloadQueueItem = { * - error: The item encountered an error in the decision or transcode * - expired: The transcoded item has timed out and is no longer available */ - status?: ListDownloadQueueItemsStatus | undefined; + status?: ListDownloadQueueItemsStatusOpen | undefined; /** * The transcode session object which is not yet documented otherwise it'd be a $ref here. */ @@ -214,27 +231,8 @@ export type ListDownloadQueueItemsMediaContainer = { /** * OK */ -export type ListDownloadQueueItemsResponseBody = { - mediaContainer?: ListDownloadQueueItemsMediaContainer | undefined; -}; - export type ListDownloadQueueItemsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: ListDownloadQueueItemsResponseBody | undefined; + mediaContainer?: ListDownloadQueueItemsMediaContainer | undefined; }; /** @internal */ @@ -256,7 +254,6 @@ export type ListDownloadQueueItemsRequest$Outbound = { /** @internal */ export const ListDownloadQueueItemsRequest$outboundSchema: z.ZodType< ListDownloadQueueItemsRequest$Outbound, - z.ZodTypeDef, ListDownloadQueueItemsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -270,7 +267,7 @@ export const ListDownloadQueueItemsRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - queueId: z.number().int(), + queueId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -299,18 +296,17 @@ export function listDownloadQueueItemsRequestToJSON( /** @internal */ export const ListDownloadQueueItemsDecisionResult$inboundSchema: z.ZodType< ListDownloadQueueItemsDecisionResult, - z.ZodTypeDef, unknown > = z.object({ - availableBandwidth: z.number().int().optional(), - directPlayDecisionCode: z.number().int().optional(), - directPlayDecisionText: z.string().optional(), - generalDecisionCode: z.number().int().optional(), - generalDecisionText: z.string().optional(), - mdeDecisionCode: z.number().int().optional(), - mdeDecisionText: z.string().optional(), - transcodeDecisionCode: z.number().int().optional(), - transcodeDecisionText: z.string().optional(), + availableBandwidth: types.optional(types.number()), + directPlayDecisionCode: types.optional(types.number()), + directPlayDecisionText: types.optional(types.string()), + generalDecisionCode: types.optional(types.number()), + generalDecisionText: types.optional(types.string()), + mdeDecisionCode: types.optional(types.number()), + mdeDecisionText: types.optional(types.string()), + transcodeDecisionCode: types.optional(types.number()), + transcodeDecisionText: types.optional(types.string()), }); export function listDownloadQueueItemsDecisionResultFromJSON( @@ -325,14 +321,14 @@ export function listDownloadQueueItemsDecisionResultFromJSON( } /** @internal */ -export const ListDownloadQueueItemsStatus$inboundSchema: z.ZodNativeEnum< - typeof ListDownloadQueueItemsStatus -> = z.nativeEnum(ListDownloadQueueItemsStatus); +export const ListDownloadQueueItemsStatus$inboundSchema: z.ZodType< + ListDownloadQueueItemsStatusOpen, + unknown +> = openEnums.inboundSchema(ListDownloadQueueItemsStatus); /** @internal */ export const ListDownloadQueueItemsTranscode$inboundSchema: z.ZodType< ListDownloadQueueItemsTranscode, - z.ZodTypeDef, unknown > = z.object({}); @@ -349,20 +345,20 @@ export function listDownloadQueueItemsTranscodeFromJSON( /** @internal */ export const ListDownloadQueueItemsDownloadQueueItem$inboundSchema: z.ZodType< ListDownloadQueueItemsDownloadQueueItem, - z.ZodTypeDef, unknown > = z.object({ - DecisionResult: z.lazy(() => - ListDownloadQueueItemsDecisionResult$inboundSchema - ).optional(), - error: z.string().optional(), - id: z.number().int().optional(), - key: z.string().optional(), - queueId: z.number().int().optional(), - status: ListDownloadQueueItemsStatus$inboundSchema.optional(), - transcode: z.lazy(() => ListDownloadQueueItemsTranscode$inboundSchema) - .optional(), - TranscodeSession: shared.TranscodeSession$inboundSchema.optional(), + DecisionResult: types.optional( + z.lazy(() => ListDownloadQueueItemsDecisionResult$inboundSchema), + ), + error: types.optional(types.string()), + id: types.optional(types.number()), + key: types.optional(types.string()), + queueId: types.optional(types.number()), + status: types.optional(ListDownloadQueueItemsStatus$inboundSchema), + transcode: types.optional( + z.lazy(() => ListDownloadQueueItemsTranscode$inboundSchema), + ), + TranscodeSession: types.optional(shared.TranscodeSession$inboundSchema), }).transform((v) => { return remap$(v, { "DecisionResult": "decisionResult", @@ -389,16 +385,17 @@ export function listDownloadQueueItemsDownloadQueueItemFromJSON( /** @internal */ export const ListDownloadQueueItemsMediaContainer$inboundSchema: z.ZodType< ListDownloadQueueItemsMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - DownloadQueueItem: z.array( - z.lazy(() => ListDownloadQueueItemsDownloadQueueItem$inboundSchema), - ).optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + DownloadQueueItem: types.optional( + z.array( + z.lazy(() => ListDownloadQueueItemsDownloadQueueItem$inboundSchema), + ), + ), }).transform((v) => { return remap$(v, { "DownloadQueueItem": "downloadQueueItem", @@ -417,50 +414,19 @@ export function listDownloadQueueItemsMediaContainerFromJSON( } /** @internal */ -export const ListDownloadQueueItemsResponseBody$inboundSchema: z.ZodType< - ListDownloadQueueItemsResponseBody, - z.ZodTypeDef, +export const ListDownloadQueueItemsResponse$inboundSchema: z.ZodType< + ListDownloadQueueItemsResponse, unknown > = z.object({ - MediaContainer: z.lazy(() => - ListDownloadQueueItemsMediaContainer$inboundSchema - ).optional(), + MediaContainer: types.optional( + z.lazy(() => ListDownloadQueueItemsMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", }); }); -export function listDownloadQueueItemsResponseBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - ListDownloadQueueItemsResponseBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListDownloadQueueItemsResponseBody' from JSON`, - ); -} - -/** @internal */ -export const ListDownloadQueueItemsResponse$inboundSchema: z.ZodType< - ListDownloadQueueItemsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => ListDownloadQueueItemsResponseBody$inboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - export function listDownloadQueueItemsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/listdvrs.ts b/src/models/operations/listdvrs.ts similarity index 72% rename from src/sdk/models/operations/listdvrs.ts rename to src/models/operations/listdvrs.ts index 5228bef3..bd76d21b 100644 --- a/src/sdk/models/operations/listdvrs.ts +++ b/src/models/operations/listdvrs.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -58,36 +59,20 @@ export type ListDVRsResponseBody = { }; export type ListDVRsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: ListDVRsResponseBody | undefined; headers: { [k: string]: Array }; + result: ListDVRsResponseBody; }; /** @internal */ export const ListDVRsMediaContainerMediaContainer$inboundSchema: z.ZodType< ListDVRsMediaContainerMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - status: z.number().int().optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + status: types.optional(types.number()), }); export function listDVRsMediaContainerMediaContainerFromJSON( @@ -102,21 +87,18 @@ export function listDVRsMediaContainerMediaContainerFromJSON( } /** @internal */ -export const ListDVRsDVR$inboundSchema: z.ZodType< - ListDVRsDVR, - z.ZodTypeDef, - unknown -> = z.object({ - Device: z.array(shared.Device$inboundSchema).optional(), - key: z.string().optional(), - language: z.string().optional(), - lineup: z.string().optional(), - uuid: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Device": "device", +export const ListDVRsDVR$inboundSchema: z.ZodType = z + .object({ + Device: types.optional(z.array(shared.Device$inboundSchema)), + key: types.optional(types.string()), + language: types.optional(types.string()), + lineup: types.optional(types.string()), + uuid: types.optional(types.string()), + }).transform((v) => { + return remap$(v, { + "Device": "device", + }); }); -}); export function listDVRsDVRFromJSON( jsonString: string, @@ -131,13 +113,12 @@ export function listDVRsDVRFromJSON( /** @internal */ export const ListDVRsMediaContainer$inboundSchema: z.ZodType< ListDVRsMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => - ListDVRsMediaContainerMediaContainer$inboundSchema - ).optional(), - DVR: z.array(z.lazy(() => ListDVRsDVR$inboundSchema)).optional(), + MediaContainer: types.optional( + z.lazy(() => ListDVRsMediaContainerMediaContainer$inboundSchema), + ), + DVR: types.optional(z.array(z.lazy(() => ListDVRsDVR$inboundSchema))), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -158,10 +139,11 @@ export function listDVRsMediaContainerFromJSON( /** @internal */ export const ListDVRsResponseBody$inboundSchema: z.ZodType< ListDVRsResponseBody, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => ListDVRsMediaContainer$inboundSchema).optional(), + MediaContainer: types.optional( + z.lazy(() => ListDVRsMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -181,20 +163,14 @@ export function listDVRsResponseBodyFromJSON( /** @internal */ export const ListDVRsResponse$inboundSchema: z.ZodType< ListDVRsResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => ListDVRsResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: z.lazy(() => ListDVRsResponseBody$inboundSchema), }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/listhubs.ts b/src/models/operations/listhubs.ts similarity index 79% rename from src/sdk/models/operations/listhubs.ts rename to src/models/operations/listhubs.ts index 3aeaa6bd..8b9994b8 100644 --- a/src/sdk/models/operations/listhubs.ts +++ b/src/models/operations/listhubs.ts @@ -2,10 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import * as openEnums from "../../types/enums.js"; +import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -126,6 +129,16 @@ export enum HomeVisibility { Admin = "admin", Shared = "shared", } +/** + * Whether this hub is visible on the home screen + * + * @remarks + * - all: Visible to all users + * - none: Visible to no users + * - admin: Visible to only admin users + * - shared: Visible to shared users + */ +export type HomeVisibilityOpen = OpenEnum; /** * The visibility of this hub in recommendations: @@ -142,6 +155,18 @@ export enum RecommendationsVisibility { Admin = "admin", Shared = "shared", } +/** + * The visibility of this hub in recommendations: + * + * @remarks + * - all: Visible to all users + * - none: Visible to no users + * - admin: Visible to only admin users + * - shared: Visible to shared users + */ +export type RecommendationsVisibilityOpen = OpenEnum< + typeof RecommendationsVisibility +>; export type Hub = { /** @@ -153,7 +178,7 @@ export type Hub = { * - admin: Visible to only admin users * - shared: Visible to shared users */ - homeVisibility?: HomeVisibility | undefined; + homeVisibility?: HomeVisibilityOpen | undefined; /** * The identifier for this hub */ @@ -179,7 +204,7 @@ export type Hub = { * - admin: Visible to only admin users * - shared: Visible to shared users */ - recommendationsVisibility?: RecommendationsVisibility | undefined; + recommendationsVisibility?: RecommendationsVisibilityOpen | undefined; /** * The title of this hub */ @@ -219,23 +244,8 @@ export type ListHubsResponseBody = { }; export type ListHubsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: ListHubsResponseBody | undefined; headers: { [k: string]: Array }; + result: ListHubsResponseBody; }; /** @internal */ @@ -258,7 +268,6 @@ export type ListHubsRequest$Outbound = { /** @internal */ export const ListHubsRequest$outboundSchema: z.ZodType< ListHubsRequest$Outbound, - z.ZodTypeDef, ListHubsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -272,8 +281,8 @@ export const ListHubsRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - sectionId: z.number().int(), - metadataItemId: z.number().int().optional(), + sectionId: z.int(), + metadataItemId: z.int().optional(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -296,27 +305,29 @@ export function listHubsRequestToJSON( } /** @internal */ -export const HomeVisibility$inboundSchema: z.ZodNativeEnum< - typeof HomeVisibility -> = z.nativeEnum(HomeVisibility); +export const HomeVisibility$inboundSchema: z.ZodType< + HomeVisibilityOpen, + unknown +> = openEnums.inboundSchema(HomeVisibility); /** @internal */ -export const RecommendationsVisibility$inboundSchema: z.ZodNativeEnum< - typeof RecommendationsVisibility -> = z.nativeEnum(RecommendationsVisibility); +export const RecommendationsVisibility$inboundSchema: z.ZodType< + RecommendationsVisibilityOpen, + unknown +> = openEnums.inboundSchema(RecommendationsVisibility); /** @internal */ -export const Hub$inboundSchema: z.ZodType = z - .object({ - homeVisibility: HomeVisibility$inboundSchema.optional(), - identifier: z.string().optional(), - promotedToOwnHome: z.boolean().optional(), - promotedToRecommended: z.boolean().optional(), - promotedToSharedHome: z.boolean().optional(), - recommendationsVisibility: RecommendationsVisibility$inboundSchema - .optional(), - title: z.string().optional(), - }); +export const Hub$inboundSchema: z.ZodType = z.object({ + homeVisibility: types.optional(HomeVisibility$inboundSchema), + identifier: types.optional(types.string()), + promotedToOwnHome: types.optional(types.boolean()), + promotedToRecommended: types.optional(types.boolean()), + promotedToSharedHome: types.optional(types.boolean()), + recommendationsVisibility: types.optional( + RecommendationsVisibility$inboundSchema, + ), + title: types.optional(types.string()), +}); export function hubFromJSON( jsonString: string, @@ -331,14 +342,13 @@ export function hubFromJSON( /** @internal */ export const ListHubsMediaContainer$inboundSchema: z.ZodType< ListHubsMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - Hub: z.array(z.lazy(() => Hub$inboundSchema)).optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + Hub: types.optional(z.array(z.lazy(() => Hub$inboundSchema))), }).transform((v) => { return remap$(v, { "Hub": "hub", @@ -358,10 +368,11 @@ export function listHubsMediaContainerFromJSON( /** @internal */ export const ListHubsResponseBody$inboundSchema: z.ZodType< ListHubsResponseBody, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => ListHubsMediaContainer$inboundSchema).optional(), + MediaContainer: types.optional( + z.lazy(() => ListHubsMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -381,20 +392,14 @@ export function listHubsResponseBodyFromJSON( /** @internal */ export const ListHubsResponse$inboundSchema: z.ZodType< ListHubsResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => ListHubsResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: z.lazy(() => ListHubsResponseBody$inboundSchema), }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/listlineups.ts b/src/models/operations/listlineups.ts similarity index 83% rename from src/sdk/models/operations/listlineups.ts rename to src/models/operations/listlineups.ts index baa857eb..30b8d9c4 100644 --- a/src/sdk/models/operations/listlineups.ts +++ b/src/models/operations/listlineups.ts @@ -2,9 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +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"; @@ -116,23 +116,8 @@ export type ListLineupsRequest = { }; export type ListLineupsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithLineup?: shared.MediaContainerWithLineup | undefined; headers: { [k: string]: Array }; + result: shared.MediaContainerWithLineup; }; /** @internal */ @@ -156,7 +141,6 @@ export type ListLineupsRequest$Outbound = { /** @internal */ export const ListLineupsRequest$outboundSchema: z.ZodType< ListLineupsRequest$Outbound, - z.ZodTypeDef, ListLineupsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -199,22 +183,14 @@ export function listLineupsRequestToJSON( /** @internal */ export const ListLineupsResponse$inboundSchema: z.ZodType< ListLineupsResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithLineup: shared.MediaContainerWithLineup$inboundSchema - .optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: shared.MediaContainerWithLineup$inboundSchema, }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithLineup": "mediaContainerWithLineup", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/listmatches.ts b/src/models/operations/listmatches.ts similarity index 73% rename from src/sdk/models/operations/listmatches.ts rename to src/models/operations/listmatches.ts index edc0a792..a712e939 100644 --- a/src/sdk/models/operations/listmatches.ts +++ b/src/models/operations/listmatches.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type ListMatchesGlobals = { @@ -110,25 +107,6 @@ export type ListMatchesRequest = { manual?: shared.BoolInt | undefined; }; -export type ListMatchesResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; -}; - /** @internal */ export type ListMatchesRequest$Outbound = { accepts: string; @@ -154,7 +132,6 @@ export type ListMatchesRequest$Outbound = { /** @internal */ export const ListMatchesRequest$outboundSchema: z.ZodType< ListMatchesRequest$Outbound, - z.ZodTypeDef, ListMatchesRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -173,7 +150,7 @@ export const ListMatchesRequest$outboundSchema: z.ZodType< parentTitle: z.string().optional(), agent: z.string().optional(), language: z.string().optional(), - year: z.number().int().optional(), + year: z.int().optional(), manual: shared.BoolInt$outboundSchema.default(shared.BoolInt.False), }).transform((v) => { return remap$(v, { @@ -197,33 +174,3 @@ export function listMatchesRequestToJSON( ListMatchesRequest$outboundSchema.parse(listMatchesRequest), ); } - -/** @internal */ -export const ListMatchesResponse$inboundSchema: z.ZodType< - ListMatchesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithMetadata": "mediaContainerWithMetadata", - }); -}); - -export function listMatchesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListMatchesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListMatchesResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/listmoments.ts b/src/models/operations/listmoments.ts similarity index 71% rename from src/sdk/models/operations/listmoments.ts rename to src/models/operations/listmoments.ts index 7e35fdac..911f7385 100644 --- a/src/sdk/models/operations/listmoments.ts +++ b/src/models/operations/listmoments.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type ListMomentsGlobals = { @@ -107,25 +104,6 @@ export type ListMomentsRequest = { sectionId: number; }; -export type ListMomentsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithArtwork?: shared.MediaContainerWithArtwork | undefined; -}; - /** @internal */ export type ListMomentsRequest$Outbound = { accepts: string; @@ -145,7 +123,6 @@ export type ListMomentsRequest$Outbound = { /** @internal */ export const ListMomentsRequest$outboundSchema: z.ZodType< ListMomentsRequest$Outbound, - z.ZodTypeDef, ListMomentsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -159,7 +136,7 @@ export const ListMomentsRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - sectionId: z.number().int(), + sectionId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -182,33 +159,3 @@ export function listMomentsRequestToJSON( ListMomentsRequest$outboundSchema.parse(listMomentsRequest), ); } - -/** @internal */ -export const ListMomentsResponse$inboundSchema: z.ZodType< - ListMomentsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithArtwork: shared.MediaContainerWithArtwork$inboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithArtwork": "mediaContainerWithArtwork", - }); -}); - -export function listMomentsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListMomentsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListMomentsResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/listpersonmedia.ts b/src/models/operations/listpersonmedia.ts similarity index 72% rename from src/sdk/models/operations/listpersonmedia.ts rename to src/models/operations/listpersonmedia.ts index 419ace28..68fc3b6e 100644 --- a/src/sdk/models/operations/listpersonmedia.ts +++ b/src/models/operations/listpersonmedia.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type ListPersonMediaGlobals = { @@ -107,25 +104,6 @@ export type ListPersonMediaRequest = { personId: string; }; -export type ListPersonMediaResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; -}; - /** @internal */ export type ListPersonMediaRequest$Outbound = { accepts: string; @@ -145,7 +123,6 @@ export type ListPersonMediaRequest$Outbound = { /** @internal */ export const ListPersonMediaRequest$outboundSchema: z.ZodType< ListPersonMediaRequest$Outbound, - z.ZodTypeDef, ListPersonMediaRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -182,33 +159,3 @@ export function listPersonMediaRequestToJSON( ListPersonMediaRequest$outboundSchema.parse(listPersonMediaRequest), ); } - -/** @internal */ -export const ListPersonMediaResponse$inboundSchema: z.ZodType< - ListPersonMediaResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithMetadata": "mediaContainerWithMetadata", - }); -}); - -export function listPersonMediaResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListPersonMediaResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListPersonMediaResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/listplaybackhistory.ts b/src/models/operations/listplaybackhistory.ts similarity index 84% rename from src/sdk/models/operations/listplaybackhistory.ts rename to src/models/operations/listplaybackhistory.ts index 6aa6526a..d5d2aa4d 100644 --- a/src/sdk/models/operations/listplaybackhistory.ts +++ b/src/models/operations/listplaybackhistory.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -203,23 +204,8 @@ export type ListPlaybackHistoryResponseBody = { }; export type ListPlaybackHistoryResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: ListPlaybackHistoryResponseBody | undefined; headers: { [k: string]: Array }; + result: ListPlaybackHistoryResponseBody; }; /** @internal */ @@ -245,7 +231,6 @@ export type ListPlaybackHistoryRequest$Outbound = { /** @internal */ export const ListPlaybackHistoryRequest$outboundSchema: z.ZodType< ListPlaybackHistoryRequest$Outbound, - z.ZodTypeDef, ListPlaybackHistoryRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -259,10 +244,10 @@ export const ListPlaybackHistoryRequest$outboundSchema: z.ZodType< 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(), - metadataItemID: z.number().int().optional(), + accountID: z.int().optional(), + viewedAt: z.int().optional(), + librarySectionID: z.int().optional(), + metadataItemID: z.int().optional(), sort: z.array(z.string()).optional(), }).transform((v) => { return remap$(v, { @@ -290,20 +275,19 @@ export function listPlaybackHistoryRequestToJSON( /** @internal */ export const ListPlaybackHistoryMetadatum$inboundSchema: z.ZodType< ListPlaybackHistoryMetadatum, - z.ZodTypeDef, unknown > = z.object({ - accountID: z.number().int().optional(), - deviceID: z.number().int().optional(), - historyKey: z.string().optional(), - key: z.string().optional(), - librarySectionID: z.string().optional(), - originallyAvailableAt: z.string().optional(), - ratingKey: z.string().optional(), - thumb: z.string().optional(), - title: z.string().optional(), - type: z.string().optional(), - viewedAt: z.number().int().optional(), + accountID: types.optional(types.number()), + deviceID: types.optional(types.number()), + historyKey: types.optional(types.string()), + key: types.optional(types.string()), + librarySectionID: types.optional(types.string()), + originallyAvailableAt: types.optional(types.string()), + ratingKey: types.optional(types.string()), + thumb: types.optional(types.string()), + title: types.optional(types.string()), + type: types.optional(types.string()), + viewedAt: types.optional(types.number()), }); export function listPlaybackHistoryMetadatumFromJSON( @@ -319,15 +303,15 @@ export function listPlaybackHistoryMetadatumFromJSON( /** @internal */ export const ListPlaybackHistoryMediaContainer$inboundSchema: z.ZodType< ListPlaybackHistoryMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - Metadata: z.array(z.lazy(() => ListPlaybackHistoryMetadatum$inboundSchema)) - .optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + Metadata: types.optional( + z.array(z.lazy(() => ListPlaybackHistoryMetadatum$inboundSchema)), + ), }).transform((v) => { return remap$(v, { "Metadata": "metadata", @@ -347,11 +331,11 @@ export function listPlaybackHistoryMediaContainerFromJSON( /** @internal */ export const ListPlaybackHistoryResponseBody$inboundSchema: z.ZodType< ListPlaybackHistoryResponseBody, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => ListPlaybackHistoryMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => ListPlaybackHistoryMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -371,21 +355,14 @@ export function listPlaybackHistoryResponseBodyFromJSON( /** @internal */ export const ListPlaybackHistoryResponse$inboundSchema: z.ZodType< ListPlaybackHistoryResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => ListPlaybackHistoryResponseBody$inboundSchema) - .optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: z.lazy(() => ListPlaybackHistoryResponseBody$inboundSchema), }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/listplaylists.ts b/src/models/operations/listplaylists.ts similarity index 81% rename from src/sdk/models/operations/listplaylists.ts rename to src/models/operations/listplaylists.ts index 5c924fdc..18215b8c 100644 --- a/src/sdk/models/operations/listplaylists.ts +++ b/src/models/operations/listplaylists.ts @@ -2,9 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +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"; @@ -121,30 +121,13 @@ export type ListPlaylistsRequest = { }; export type ListPlaylistsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithPlaylistMetadata?: - | shared.MediaContainerWithPlaylistMetadata - | undefined; headers: { [k: string]: Array }; + result: shared.MediaContainerWithPlaylistMetadata; }; /** @internal */ -export const PlaylistType$outboundSchema: z.ZodNativeEnum = - z.nativeEnum(PlaylistType); +export const PlaylistType$outboundSchema: z.ZodEnum = z + .enum(PlaylistType); /** @internal */ export type ListPlaylistsRequest$Outbound = { @@ -166,7 +149,6 @@ export type ListPlaylistsRequest$Outbound = { /** @internal */ export const ListPlaylistsRequest$outboundSchema: z.ZodType< ListPlaylistsRequest$Outbound, - z.ZodTypeDef, ListPlaylistsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -208,22 +190,14 @@ export function listPlaylistsRequestToJSON( /** @internal */ export const ListPlaylistsResponse$inboundSchema: z.ZodType< ListPlaylistsResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithPlaylistMetadata: shared - .MediaContainerWithPlaylistMetadata$inboundSchema.optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: shared.MediaContainerWithPlaylistMetadata$inboundSchema, }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithPlaylistMetadata": "mediaContainerWithPlaylistMetadata", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/listproviders.ts b/src/models/operations/listproviders.ts similarity index 59% rename from src/sdk/models/operations/listproviders.ts rename to src/models/operations/listproviders.ts index cbe8a3a4..dfc90eca 100644 --- a/src/sdk/models/operations/listproviders.ts +++ b/src/models/operations/listproviders.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -118,40 +119,20 @@ export type ListProvidersMediaContainer = { /** * OK */ -export type ListProvidersResponseBody = { +export type ListProvidersResponse = { mediaContainer?: ListProvidersMediaContainer | undefined; }; -export type ListProvidersResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: ListProvidersResponseBody | undefined; -}; - /** @internal */ -export const Feature$inboundSchema: z.ZodType = - z.object({ - Directory: z.array(shared.Directory$inboundSchema).optional(), - key: z.string().optional(), - type: z.string().optional(), - }).transform((v) => { - return remap$(v, { - "Directory": "directory", - }); +export const Feature$inboundSchema: z.ZodType = z.object({ + Directory: types.optional(z.array(shared.Directory$inboundSchema)), + key: types.optional(types.string()), + type: types.optional(types.string()), +}).transform((v) => { + return remap$(v, { + "Directory": "directory", }); +}); export function featureFromJSON( jsonString: string, @@ -166,65 +147,64 @@ export function featureFromJSON( /** @internal */ export const ListProvidersMediaContainer$inboundSchema: z.ZodType< ListProvidersMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - allowCameraUpload: z.boolean().optional(), - allowChannelAccess: z.boolean().optional(), - allowMediaDeletion: z.boolean().optional(), - allowSharing: z.boolean().optional(), - allowSync: z.boolean().optional(), - allowTuners: z.boolean().optional(), - backgroundProcessing: z.boolean().optional(), - certificate: z.boolean().optional(), - companionProxy: z.boolean().optional(), - countryCode: z.string().optional(), - diagnostics: z.string().optional(), - eventStream: z.boolean().optional(), - friendlyName: z.string().optional(), - hubSearch: z.boolean().optional(), - itemClusters: z.boolean().optional(), - livetv: z.number().int().optional(), - machineIdentifier: z.any().optional(), - mediaProviders: z.boolean().optional(), - multiuser: z.boolean().optional(), - musicAnalysis: z.number().int().optional(), - myPlex: z.boolean().optional(), - myPlexMappingState: z.any().optional(), - myPlexSigninState: z.any().optional(), - myPlexSubscription: z.boolean().optional(), - myPlexUsername: z.string().optional(), - offlineTranscode: z.any().optional(), - ownerFeatures: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - pluginHost: z.boolean().optional(), - pushNotifications: z.boolean().optional(), - readOnlyLibraries: z.boolean().optional(), - streamingBrainABRVersion: z.number().int().optional(), - streamingBrainVersion: z.number().int().optional(), - sync: z.boolean().optional(), - transcoderActiveVideoSessions: z.number().int().optional(), - transcoderAudio: z.boolean().optional(), - transcoderLyrics: z.boolean().optional(), - transcoderPhoto: z.boolean().optional(), - transcoderSubtitles: z.boolean().optional(), - transcoderVideo: z.boolean().optional(), - transcoderVideoBitrates: z.any().optional(), - transcoderVideoQualities: z.string().optional(), - transcoderVideoResolutions: z.any().optional(), - updatedAt: z.number().int().optional(), - updater: z.boolean().optional(), - version: z.string().optional(), - voiceSearch: z.boolean().optional(), - Feature: z.array(z.lazy(() => Feature$inboundSchema)).optional(), - protocols: z.string().optional(), - title: z.string().optional(), - types: z.string().optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + allowCameraUpload: types.optional(types.boolean()), + allowChannelAccess: types.optional(types.boolean()), + allowMediaDeletion: types.optional(types.boolean()), + allowSharing: types.optional(types.boolean()), + allowSync: types.optional(types.boolean()), + allowTuners: types.optional(types.boolean()), + backgroundProcessing: types.optional(types.boolean()), + certificate: types.optional(types.boolean()), + companionProxy: types.optional(types.boolean()), + countryCode: types.optional(types.string()), + diagnostics: types.optional(types.string()), + eventStream: types.optional(types.boolean()), + friendlyName: types.optional(types.string()), + hubSearch: types.optional(types.boolean()), + itemClusters: types.optional(types.boolean()), + livetv: types.optional(types.number()), + machineIdentifier: types.optional(z.any()), + mediaProviders: types.optional(types.boolean()), + multiuser: types.optional(types.boolean()), + musicAnalysis: types.optional(types.number()), + myPlex: types.optional(types.boolean()), + myPlexMappingState: types.optional(z.any()), + myPlexSigninState: types.optional(z.any()), + myPlexSubscription: types.optional(types.boolean()), + myPlexUsername: types.optional(types.string()), + offlineTranscode: types.optional(z.any()), + ownerFeatures: types.optional(types.string()), + platform: types.optional(types.string()), + platformVersion: types.optional(types.string()), + pluginHost: types.optional(types.boolean()), + pushNotifications: types.optional(types.boolean()), + readOnlyLibraries: types.optional(types.boolean()), + streamingBrainABRVersion: types.optional(types.number()), + streamingBrainVersion: types.optional(types.number()), + sync: types.optional(types.boolean()), + transcoderActiveVideoSessions: types.optional(types.number()), + transcoderAudio: types.optional(types.boolean()), + transcoderLyrics: types.optional(types.boolean()), + transcoderPhoto: types.optional(types.boolean()), + transcoderSubtitles: types.optional(types.boolean()), + transcoderVideo: types.optional(types.boolean()), + transcoderVideoBitrates: types.optional(z.any()), + transcoderVideoQualities: types.optional(types.string()), + transcoderVideoResolutions: types.optional(z.any()), + updatedAt: types.optional(types.number()), + updater: types.optional(types.boolean()), + version: types.optional(types.string()), + voiceSearch: types.optional(types.boolean()), + Feature: types.optional(z.array(z.lazy(() => Feature$inboundSchema))), + protocols: types.optional(types.string()), + title: types.optional(types.string()), + types: types.optional(types.string()), }).transform((v) => { return remap$(v, { "Feature": "feature", @@ -242,47 +222,19 @@ export function listProvidersMediaContainerFromJSON( } /** @internal */ -export const ListProvidersResponseBody$inboundSchema: z.ZodType< - ListProvidersResponseBody, - z.ZodTypeDef, +export const ListProvidersResponse$inboundSchema: z.ZodType< + ListProvidersResponse, unknown > = z.object({ - MediaContainer: z.lazy(() => ListProvidersMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => ListProvidersMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", }); }); -export function listProvidersResponseBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListProvidersResponseBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListProvidersResponseBody' from JSON`, - ); -} - -/** @internal */ -export const ListProvidersResponse$inboundSchema: z.ZodType< - ListProvidersResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => ListProvidersResponseBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - export function listProvidersResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/listsessions.ts b/src/models/operations/listsessions.ts similarity index 77% rename from src/sdk/models/operations/listsessions.ts rename to src/models/operations/listsessions.ts index 647ea7b4..8c449c2a 100644 --- a/src/sdk/models/operations/listsessions.ts +++ b/src/models/operations/listsessions.ts @@ -2,14 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, safeParse, -} from "../../../lib/schemas.js"; +} from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; -import { RFCDate } from "../../types/rfcdate.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -163,7 +163,7 @@ export type ListSessionsMetadatum = { /** * When present, in the format YYYY-MM-DD [HH:MM:SS] (the hours/minutes/seconds part is not always present). The air date, or a higher resolution release date for an item, depending on type. For example, episodes usually have air date like 1979-08-10 (we don't use epoch seconds because media existed prior to 1970). In some cases, recorded over-the-air content has higher resolution air date which includes a time component. Albums and movies may have day-resolution release dates as well. */ - originallyAvailableAt?: RFCDate | undefined; + originallyAvailableAt?: Date | undefined; /** * When present, used to indicate an item's original title, e.g. a movie's foreign title. */ @@ -331,32 +331,16 @@ export type ListSessionsResponseBody = { }; export type ListSessionsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: ListSessionsResponseBody | undefined; headers: { [k: string]: Array }; + result: ListSessionsResponseBody; }; /** @internal */ export const ListSessionsGuid$inboundSchema: z.ZodType< ListSessionsGuid, - z.ZodTypeDef, unknown > = z.object({ - id: z.string(), + id: types.string(), }); export function listSessionsGuidFromJSON( @@ -372,84 +356,83 @@ export function listSessionsGuidFromJSON( /** @internal */ export const ListSessionsMetadatum$inboundSchema: z.ZodType< ListSessionsMetadatum, - z.ZodTypeDef, unknown > = collectExtraKeys$( z.object({ - Player: shared.Player$inboundSchema.optional(), - Session: shared.Session$inboundSchema.optional(), - User: shared.User$inboundSchema.optional(), - title: z.string(), - type: z.string(), - absoluteIndex: z.number().int().optional(), - addedAt: z.number().int(), - art: z.string().optional(), - audienceRating: z.number().optional(), - audienceRatingImage: z.string().optional(), - Autotag: z.array(shared.Tag$inboundSchema).optional(), - banner: z.string().optional(), - chapterSource: z.string().optional(), - childCount: z.number().int().optional(), - composite: z.string().optional(), - contentRating: z.string().optional(), - Country: z.array(shared.Tag$inboundSchema).optional(), - Director: z.array(shared.Tag$inboundSchema).optional(), - duration: z.number().int().optional(), - Filter: z.array(shared.Filter$inboundSchema).optional(), - Genre: z.array(shared.Tag$inboundSchema).optional(), - grandparentArt: z.string().optional(), - grandparentGuid: z.string().optional(), - grandparentHero: z.string().optional(), - grandparentKey: z.string().optional(), - grandparentRatingKey: z.string().optional(), - grandparentTheme: z.string().optional(), - grandparentThumb: z.string().optional(), - grandparentTitle: z.string().optional(), - guid: z.string().optional(), - Guid: z.array(z.lazy(() => ListSessionsGuid$inboundSchema)).optional(), - hero: z.string().optional(), - Image: z.array(shared.Image$inboundSchema).optional(), - index: z.number().int().optional(), - key: z.string(), - lastViewedAt: z.number().int().optional(), - leafCount: z.number().int().optional(), - Media: z.array(shared.Media$inboundSchema).optional(), - originallyAvailableAt: z.string().transform(v => new RFCDate(v)).optional(), - originalTitle: z.string().optional(), - parentGuid: z.string().optional(), - parentHero: z.string().optional(), - parentIndex: z.number().int().optional(), - parentKey: z.string().optional(), - parentRatingKey: z.string().optional(), - parentThumb: z.string().optional(), - parentTitle: z.string().optional(), - primaryExtraKey: z.string().optional(), - prompt: z.string().optional(), - rating: z.number().optional(), - Rating: z.array(shared.Tag$inboundSchema).optional(), - ratingCount: z.number().int().optional(), - ratingImage: z.string().optional(), - ratingKey: z.string().optional(), - Role: z.array(shared.Tag$inboundSchema).optional(), - search: z.boolean().optional(), - secondary: z.boolean().optional(), - skipChildren: z.boolean().optional(), - skipParent: z.boolean().optional(), - Sort: z.array(shared.Sort$inboundSchema).optional(), - studio: z.string().optional(), - subtype: z.string().optional(), - summary: z.string().optional(), - tagline: z.string().optional(), - theme: z.string().optional(), - thumb: z.string().optional(), - titleSort: z.string().optional(), - updatedAt: z.number().int().optional(), - userRating: z.number().optional(), - viewCount: z.number().int().optional(), - viewedLeafCount: z.number().int().optional(), - viewOffset: z.number().int().optional(), - Writer: z.array(shared.Tag$inboundSchema).optional(), - year: z.number().int().optional(), + Player: types.optional(shared.Player$inboundSchema), + Session: types.optional(shared.Session$inboundSchema), + User: types.optional(shared.User$inboundSchema), + title: types.string(), + type: types.string(), + absoluteIndex: types.optional(types.number()), + addedAt: types.number(), + art: types.optional(types.string()), + audienceRating: types.optional(types.number()), + audienceRatingImage: types.optional(types.string()), + Autotag: types.optional(z.array(shared.Tag$inboundSchema)), + banner: types.optional(types.string()), + chapterSource: types.optional(types.string()), + childCount: types.optional(types.number()), + composite: types.optional(types.string()), + contentRating: types.optional(types.string()), + Country: types.optional(z.array(shared.Tag$inboundSchema)), + Director: types.optional(z.array(shared.Tag$inboundSchema)), + duration: types.optional(types.number()), + Filter: types.optional(z.array(shared.Filter$inboundSchema)), + Genre: types.optional(z.array(shared.Tag$inboundSchema)), + grandparentArt: types.optional(types.string()), + grandparentGuid: types.optional(types.string()), + grandparentHero: types.optional(types.string()), + grandparentKey: types.optional(types.string()), + grandparentRatingKey: types.optional(types.string()), + grandparentTheme: types.optional(types.string()), + grandparentThumb: types.optional(types.string()), + grandparentTitle: types.optional(types.string()), + guid: types.optional(types.string()), + Guid: types.optional(z.array(z.lazy(() => ListSessionsGuid$inboundSchema))), + hero: types.optional(types.string()), + Image: types.optional(z.array(shared.Image$inboundSchema)), + index: types.optional(types.number()), + key: types.string(), + lastViewedAt: types.optional(types.number()), + leafCount: types.optional(types.number()), + Media: types.optional(z.array(shared.Media$inboundSchema)), + originallyAvailableAt: types.optional(types.date()), + originalTitle: types.optional(types.string()), + parentGuid: types.optional(types.string()), + parentHero: types.optional(types.string()), + parentIndex: types.optional(types.number()), + parentKey: types.optional(types.string()), + parentRatingKey: types.optional(types.string()), + parentThumb: types.optional(types.string()), + parentTitle: types.optional(types.string()), + primaryExtraKey: types.optional(types.string()), + prompt: types.optional(types.string()), + rating: types.optional(types.number()), + Rating: types.optional(z.array(shared.Tag$inboundSchema)), + ratingCount: types.optional(types.number()), + ratingImage: types.optional(types.string()), + ratingKey: types.optional(types.string()), + Role: types.optional(z.array(shared.Tag$inboundSchema)), + search: types.optional(types.boolean()), + secondary: types.optional(types.boolean()), + skipChildren: types.optional(types.boolean()), + skipParent: types.optional(types.boolean()), + Sort: types.optional(z.array(shared.Sort$inboundSchema)), + studio: types.optional(types.string()), + subtype: types.optional(types.string()), + summary: types.optional(types.string()), + tagline: types.optional(types.string()), + theme: types.optional(types.string()), + thumb: types.optional(types.string()), + titleSort: types.optional(types.string()), + updatedAt: types.optional(types.number()), + userRating: types.optional(types.number()), + viewCount: types.optional(types.number()), + viewedLeafCount: types.optional(types.number()), + viewOffset: types.optional(types.number()), + Writer: types.optional(z.array(shared.Tag$inboundSchema)), + year: types.optional(types.number()), }).catchall(z.any()), "additionalProperties", true, @@ -486,15 +469,15 @@ export function listSessionsMetadatumFromJSON( /** @internal */ export const ListSessionsMediaContainer$inboundSchema: z.ZodType< ListSessionsMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - Metadata: z.array(z.lazy(() => ListSessionsMetadatum$inboundSchema)) - .optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + Metadata: types.optional( + z.array(z.lazy(() => ListSessionsMetadatum$inboundSchema)), + ), }).transform((v) => { return remap$(v, { "Metadata": "metadata", @@ -514,11 +497,11 @@ export function listSessionsMediaContainerFromJSON( /** @internal */ export const ListSessionsResponseBody$inboundSchema: z.ZodType< ListSessionsResponseBody, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => ListSessionsMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => ListSessionsMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -538,20 +521,14 @@ export function listSessionsResponseBodyFromJSON( /** @internal */ export const ListSessionsResponse$inboundSchema: z.ZodType< ListSessionsResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => ListSessionsResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: z.lazy(() => ListSessionsResponseBody$inboundSchema), }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/listsimilar.ts b/src/models/operations/listsimilar.ts similarity index 71% rename from src/sdk/models/operations/listsimilar.ts rename to src/models/operations/listsimilar.ts index f7809239..4ec1f5d8 100644 --- a/src/sdk/models/operations/listsimilar.ts +++ b/src/models/operations/listsimilar.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type ListSimilarGlobals = { @@ -108,25 +105,6 @@ export type ListSimilarRequest = { count?: number | undefined; }; -export type ListSimilarResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; -}; - /** @internal */ export type ListSimilarRequest$Outbound = { accepts: string; @@ -147,7 +125,6 @@ export type ListSimilarRequest$Outbound = { /** @internal */ export const ListSimilarRequest$outboundSchema: z.ZodType< ListSimilarRequest$Outbound, - z.ZodTypeDef, ListSimilarRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -162,7 +139,7 @@ export const ListSimilarRequest$outboundSchema: z.ZodType< deviceName: z.string().optional(), marketplace: z.string().optional(), ids: z.string(), - count: z.number().int().optional(), + count: z.int().optional(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -185,33 +162,3 @@ export function listSimilarRequestToJSON( ListSimilarRequest$outboundSchema.parse(listSimilarRequest), ); } - -/** @internal */ -export const ListSimilarResponse$inboundSchema: z.ZodType< - ListSimilarResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithMetadata": "mediaContainerWithMetadata", - }); -}); - -export function listSimilarResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListSimilarResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListSimilarResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/listsonicallysimilar.ts b/src/models/operations/listsonicallysimilar.ts similarity index 71% rename from src/sdk/models/operations/listsonicallysimilar.ts rename to src/models/operations/listsonicallysimilar.ts index 670e8197..ea420f95 100644 --- a/src/sdk/models/operations/listsonicallysimilar.ts +++ b/src/models/operations/listsonicallysimilar.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type ListSonicallySimilarGlobals = { @@ -108,25 +105,6 @@ export type ListSonicallySimilarRequest = { maxDistance?: number | undefined; }; -export type ListSonicallySimilarResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; -}; - /** @internal */ export type ListSonicallySimilarRequest$Outbound = { accepts: string; @@ -150,7 +128,6 @@ export type ListSonicallySimilarRequest$Outbound = { /** @internal */ export const ListSonicallySimilarRequest$outboundSchema: z.ZodType< ListSonicallySimilarRequest$Outbound, - z.ZodTypeDef, ListSonicallySimilarRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -165,9 +142,9 @@ export const ListSonicallySimilarRequest$outboundSchema: z.ZodType< deviceName: z.string().optional(), marketplace: z.string().optional(), ids: z.string(), - excludeParentID: z.number().int().optional(), - excludeGrandparentID: z.number().int().optional(), - limit: z.number().int().optional(), + excludeParentID: z.int().optional(), + excludeGrandparentID: z.int().optional(), + limit: z.int().optional(), maxDistance: z.number().optional(), }).transform((v) => { return remap$(v, { @@ -193,33 +170,3 @@ export function listSonicallySimilarRequestToJSON( ), ); } - -/** @internal */ -export const ListSonicallySimilarResponse$inboundSchema: z.ZodType< - ListSonicallySimilarResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithMetadata": "mediaContainerWithMetadata", - }); -}); - -export function listSonicallySimilarResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListSonicallySimilarResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListSonicallySimilarResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/listtopusers.ts b/src/models/operations/listtopusers.ts similarity index 78% rename from src/sdk/models/operations/listtopusers.ts rename to src/models/operations/listtopusers.ts index 7ca9dbc7..17c812a4 100644 --- a/src/sdk/models/operations/listtopusers.ts +++ b/src/models/operations/listtopusers.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -137,27 +138,8 @@ export type ListTopUsersMediaContainer = { /** * OK */ -export type ListTopUsersResponseBody = { - mediaContainer?: ListTopUsersMediaContainer | undefined; -}; - export type ListTopUsersResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: ListTopUsersResponseBody | undefined; + mediaContainer?: ListTopUsersMediaContainer | undefined; }; /** @internal */ @@ -179,7 +161,6 @@ export type ListTopUsersRequest$Outbound = { /** @internal */ export const ListTopUsersRequest$outboundSchema: z.ZodType< ListTopUsersRequest$Outbound, - z.ZodTypeDef, ListTopUsersRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -218,11 +199,10 @@ export function listTopUsersRequestToJSON( } /** @internal */ -export const Account$inboundSchema: z.ZodType = - z.object({ - globalViewCount: z.number().int().optional(), - id: z.number().int().optional(), - }); +export const Account$inboundSchema: z.ZodType = z.object({ + globalViewCount: types.optional(types.number()), + id: types.optional(types.number()), +}); export function accountFromJSON( jsonString: string, @@ -237,14 +217,13 @@ export function accountFromJSON( /** @internal */ export const ListTopUsersMediaContainer$inboundSchema: z.ZodType< ListTopUsersMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - Account: z.array(z.lazy(() => Account$inboundSchema)).optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + Account: types.optional(z.array(z.lazy(() => Account$inboundSchema))), }).transform((v) => { return remap$(v, { "Account": "account", @@ -262,47 +241,19 @@ export function listTopUsersMediaContainerFromJSON( } /** @internal */ -export const ListTopUsersResponseBody$inboundSchema: z.ZodType< - ListTopUsersResponseBody, - z.ZodTypeDef, +export const ListTopUsersResponse$inboundSchema: z.ZodType< + ListTopUsersResponse, unknown > = z.object({ - MediaContainer: z.lazy(() => ListTopUsersMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => ListTopUsersMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", }); }); -export function listTopUsersResponseBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListTopUsersResponseBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListTopUsersResponseBody' from JSON`, - ); -} - -/** @internal */ -export const ListTopUsersResponse$inboundSchema: z.ZodType< - ListTopUsersResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => ListTopUsersResponseBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - export function listTopUsersResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/makedecision.ts b/src/models/operations/makedecision.ts similarity index 84% rename from src/sdk/models/operations/makedecision.ts rename to src/models/operations/makedecision.ts index 59354b68..99dcd323 100644 --- a/src/sdk/models/operations/makedecision.ts +++ b/src/models/operations/makedecision.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type MakeDecisionGlobals = { @@ -268,39 +265,20 @@ export type MakeDecisionRequest = { xPlexSessionIdentifier?: string | undefined; }; -export type MakeDecisionResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithDecision?: shared.MediaContainerWithDecision | undefined; -}; - /** @internal */ -export const MakeDecisionLocation$outboundSchema: z.ZodNativeEnum< +export const MakeDecisionLocation$outboundSchema: z.ZodEnum< typeof MakeDecisionLocation -> = z.nativeEnum(MakeDecisionLocation); +> = z.enum(MakeDecisionLocation); /** @internal */ -export const MakeDecisionProtocol$outboundSchema: z.ZodNativeEnum< +export const MakeDecisionProtocol$outboundSchema: z.ZodEnum< typeof MakeDecisionProtocol -> = z.nativeEnum(MakeDecisionProtocol); +> = z.enum(MakeDecisionProtocol); /** @internal */ -export const MakeDecisionSubtitles$outboundSchema: z.ZodNativeEnum< +export const MakeDecisionSubtitles$outboundSchema: z.ZodEnum< typeof MakeDecisionSubtitles -> = z.nativeEnum(MakeDecisionSubtitles); +> = z.enum(MakeDecisionSubtitles); /** @internal */ export type MakeDecisionRequest$Outbound = { @@ -351,7 +329,6 @@ export type MakeDecisionRequest$Outbound = { /** @internal */ export const MakeDecisionRequest$outboundSchema: z.ZodType< MakeDecisionRequest$Outbound, - z.ZodTypeDef, MakeDecisionRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -368,8 +345,8 @@ export const MakeDecisionRequest$outboundSchema: z.ZodType< transcodeType: shared.TranscodeType$outboundSchema, transcodeSessionId: z.string().optional(), advancedSubtitles: shared.AdvancedSubtitles$outboundSchema.optional(), - audioBoost: z.number().int().optional(), - audioChannelCount: z.number().int().optional(), + audioBoost: z.int().optional(), + audioChannelCount: z.int().optional(), autoAdjustQuality: shared.BoolInt$outboundSchema.default( shared.BoolInt.False, ), @@ -386,20 +363,20 @@ export const MakeDecisionRequest$outboundSchema: z.ZodType< ), hasMDE: shared.BoolInt$outboundSchema.default(shared.BoolInt.False), location: MakeDecisionLocation$outboundSchema.optional(), - mediaBufferSize: z.number().int().optional(), - mediaIndex: z.number().int().optional(), - musicBitrate: z.number().int().optional(), + mediaBufferSize: z.int().optional(), + mediaIndex: z.int().optional(), + musicBitrate: z.int().optional(), offset: z.number().optional(), - partIndex: z.number().int().optional(), + partIndex: z.int().optional(), path: z.string().optional(), - peakBitrate: z.number().int().optional(), + peakBitrate: z.int().optional(), photoResolution: z.string().optional(), protocol: MakeDecisionProtocol$outboundSchema.optional(), - secondsPerSegment: z.number().int().optional(), - subtitleSize: z.number().int().optional(), + secondsPerSegment: z.int().optional(), + subtitleSize: z.int().optional(), subtitles: MakeDecisionSubtitles$outboundSchema.optional(), - videoBitrate: z.number().int().optional(), - videoQuality: z.number().int().optional(), + videoBitrate: z.int().optional(), + videoQuality: z.int().optional(), videoResolution: z.string().optional(), xPlexClientProfileExtra: z.string().optional(), xPlexClientProfileName: z.string().optional(), @@ -429,33 +406,3 @@ export function makeDecisionRequestToJSON( MakeDecisionRequest$outboundSchema.parse(makeDecisionRequest), ); } - -/** @internal */ -export const MakeDecisionResponse$inboundSchema: z.ZodType< - MakeDecisionResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithDecision: shared.MediaContainerWithDecision$inboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithDecision": "mediaContainerWithDecision", - }); -}); - -export function makeDecisionResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MakeDecisionResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MakeDecisionResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/markplayed.ts b/src/models/operations/markplayed.ts similarity index 77% rename from src/sdk/models/operations/markplayed.ts rename to src/models/operations/markplayed.ts index 89f93f2d..0bc6ce80 100644 --- a/src/sdk/models/operations/markplayed.ts +++ b/src/models/operations/markplayed.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type MarkPlayedGlobals = { @@ -115,21 +112,6 @@ export type MarkPlayedRequest = { uri?: string | undefined; }; -export type MarkPlayedResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type MarkPlayedRequest$Outbound = { accepts: string; @@ -151,7 +133,6 @@ export type MarkPlayedRequest$Outbound = { /** @internal */ export const MarkPlayedRequest$outboundSchema: z.ZodType< MarkPlayedRequest$Outbound, - z.ZodTypeDef, MarkPlayedRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -190,30 +171,3 @@ export function markPlayedRequestToJSON( MarkPlayedRequest$outboundSchema.parse(markPlayedRequest), ); } - -/** @internal */ -export const MarkPlayedResponse$inboundSchema: z.ZodType< - MarkPlayedResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function markPlayedResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MarkPlayedResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MarkPlayedResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/matchitem.ts b/src/models/operations/matchitem.ts similarity index 75% rename from src/sdk/models/operations/matchitem.ts rename to src/models/operations/matchitem.ts index d724c8f4..45846211 100644 --- a/src/sdk/models/operations/matchitem.ts +++ b/src/models/operations/matchitem.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type MatchItemGlobals = { @@ -107,21 +104,6 @@ export type MatchItemRequest = { year?: number | undefined; }; -export type MatchItemResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type MatchItemRequest$Outbound = { accepts: string; @@ -144,7 +126,6 @@ export type MatchItemRequest$Outbound = { /** @internal */ export const MatchItemRequest$outboundSchema: z.ZodType< MatchItemRequest$Outbound, - z.ZodTypeDef, MatchItemRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -161,7 +142,7 @@ export const MatchItemRequest$outboundSchema: z.ZodType< ids: z.string(), guid: z.string().optional(), name: z.string().optional(), - year: z.number().int().optional(), + year: z.int().optional(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -184,30 +165,3 @@ export function matchItemRequestToJSON( MatchItemRequest$outboundSchema.parse(matchItemRequest), ); } - -/** @internal */ -export const MatchItemResponse$inboundSchema: z.ZodType< - MatchItemResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function matchItemResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MatchItemResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MatchItemResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/mergeitems.ts b/src/models/operations/mergeitems.ts similarity index 75% rename from src/sdk/models/operations/mergeitems.ts rename to src/models/operations/mergeitems.ts index 810f4cdb..066f6442 100644 --- a/src/sdk/models/operations/mergeitems.ts +++ b/src/models/operations/mergeitems.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type MergeItemsGlobals = { @@ -105,21 +102,6 @@ export type MergeItemsRequest = { idsQueryParameter?: Array | undefined; }; -export type MergeItemsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type MergeItemsRequest$Outbound = { accepts: string; @@ -140,7 +122,6 @@ export type MergeItemsRequest$Outbound = { /** @internal */ export const MergeItemsRequest$outboundSchema: z.ZodType< MergeItemsRequest$Outbound, - z.ZodTypeDef, MergeItemsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -178,30 +159,3 @@ export function mergeItemsRequestToJSON( MergeItemsRequest$outboundSchema.parse(mergeItemsRequest), ); } - -/** @internal */ -export const MergeItemsResponse$inboundSchema: z.ZodType< - MergeItemsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function mergeItemsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MergeItemsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MergeItemsResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/modifydevice.ts b/src/models/operations/modifydevice.ts similarity index 85% rename from src/sdk/models/operations/modifydevice.ts rename to src/models/operations/modifydevice.ts index a581c62a..e70bf918 100644 --- a/src/sdk/models/operations/modifydevice.ts +++ b/src/models/operations/modifydevice.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -145,23 +146,8 @@ export type ModifyDeviceResponseBody = { }; export type ModifyDeviceResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: ModifyDeviceResponseBody | undefined; headers: { [k: string]: Array }; + result: ModifyDeviceResponseBody; }; /** @internal */ @@ -184,7 +170,6 @@ export type ModifyDeviceRequest$Outbound = { /** @internal */ export const ModifyDeviceRequest$outboundSchema: z.ZodType< ModifyDeviceRequest$Outbound, - z.ZodTypeDef, ModifyDeviceRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -198,7 +183,7 @@ export const ModifyDeviceRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - deviceId: z.number().int(), + deviceId: z.int(), enabled: shared.BoolInt$outboundSchema.default(shared.BoolInt.False), }).transform((v) => { return remap$(v, { @@ -226,15 +211,14 @@ export function modifyDeviceRequestToJSON( /** @internal */ export const ModifyDeviceMediaContainer$inboundSchema: z.ZodType< ModifyDeviceMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - message: z.string().optional(), - status: z.number().int().optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + message: types.optional(types.string()), + status: types.optional(types.number()), }); export function modifyDeviceMediaContainerFromJSON( @@ -250,11 +234,11 @@ export function modifyDeviceMediaContainerFromJSON( /** @internal */ export const ModifyDeviceResponseBody$inboundSchema: z.ZodType< ModifyDeviceResponseBody, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => ModifyDeviceMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => ModifyDeviceMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -274,20 +258,14 @@ export function modifyDeviceResponseBodyFromJSON( /** @internal */ export const ModifyDeviceResponse$inboundSchema: z.ZodType< ModifyDeviceResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => ModifyDeviceResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: z.lazy(() => ModifyDeviceResponseBody$inboundSchema), }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/modifyplaylistgenerator.ts b/src/models/operations/modifyplaylistgenerator.ts similarity index 80% rename from src/sdk/models/operations/modifyplaylistgenerator.ts rename to src/models/operations/modifyplaylistgenerator.ts index 42c54a70..6f226137 100644 --- a/src/sdk/models/operations/modifyplaylistgenerator.ts +++ b/src/models/operations/modifyplaylistgenerator.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type ModifyPlaylistGeneratorGlobals = { @@ -151,27 +148,6 @@ export type ModifyPlaylistGeneratorRequest = { item?: ModifyPlaylistGeneratorItem | undefined; }; -export type ModifyPlaylistGeneratorResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithPlaylistMetadata?: - | shared.MediaContainerWithPlaylistMetadata - | undefined; -}; - /** @internal */ export type ModifyPlaylistGeneratorLocation$Outbound = { uri?: string | undefined; @@ -180,7 +156,6 @@ export type ModifyPlaylistGeneratorLocation$Outbound = { /** @internal */ export const ModifyPlaylistGeneratorLocation$outboundSchema: z.ZodType< ModifyPlaylistGeneratorLocation$Outbound, - z.ZodTypeDef, ModifyPlaylistGeneratorLocation > = z.object({ uri: z.string().optional(), @@ -197,9 +172,9 @@ export function modifyPlaylistGeneratorLocationToJSON( } /** @internal */ -export const ModifyPlaylistGeneratorScope$outboundSchema: z.ZodNativeEnum< +export const ModifyPlaylistGeneratorScope$outboundSchema: z.ZodEnum< typeof ModifyPlaylistGeneratorScope -> = z.nativeEnum(ModifyPlaylistGeneratorScope); +> = z.enum(ModifyPlaylistGeneratorScope); /** @internal */ export type ModifyPlaylistGeneratorPolicy$Outbound = { @@ -211,10 +186,9 @@ export type ModifyPlaylistGeneratorPolicy$Outbound = { /** @internal */ export const ModifyPlaylistGeneratorPolicy$outboundSchema: z.ZodType< ModifyPlaylistGeneratorPolicy$Outbound, - z.ZodTypeDef, ModifyPlaylistGeneratorPolicy > = z.object({ - value: z.number().int().optional(), + value: z.int().optional(), scope: ModifyPlaylistGeneratorScope$outboundSchema.optional(), unwatched: shared.BoolInt$outboundSchema.default(shared.BoolInt.False), }); @@ -243,17 +217,16 @@ export type ModifyPlaylistGeneratorItem$Outbound = { /** @internal */ export const ModifyPlaylistGeneratorItem$outboundSchema: z.ZodType< ModifyPlaylistGeneratorItem$Outbound, - z.ZodTypeDef, ModifyPlaylistGeneratorItem > = z.object({ location: z.lazy(() => ModifyPlaylistGeneratorLocation$outboundSchema) .optional(), - locationID: z.number().int().optional(), + locationID: z.int().optional(), policy: z.lazy(() => ModifyPlaylistGeneratorPolicy$outboundSchema).optional(), target: z.string().optional(), - targetTagID: z.number().int().optional(), + targetTagID: z.int().optional(), title: z.string().optional(), - type: z.number().int().optional(), + type: z.int().optional(), }).transform((v) => { return remap$(v, { location: "Location", @@ -292,7 +265,6 @@ export type ModifyPlaylistGeneratorRequest$Outbound = { /** @internal */ export const ModifyPlaylistGeneratorRequest$outboundSchema: z.ZodType< ModifyPlaylistGeneratorRequest$Outbound, - z.ZodTypeDef, ModifyPlaylistGeneratorRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -306,8 +278,8 @@ export const ModifyPlaylistGeneratorRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - playlistId: z.number().int(), - generatorId: z.number().int(), + playlistId: z.int(), + generatorId: z.int(), item: z.lazy(() => ModifyPlaylistGeneratorItem$outboundSchema).optional(), }).transform((v) => { return remap$(v, { @@ -334,33 +306,3 @@ export function modifyPlaylistGeneratorRequestToJSON( ), ); } - -/** @internal */ -export const ModifyPlaylistGeneratorResponse$inboundSchema: z.ZodType< - ModifyPlaylistGeneratorResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithPlaylistMetadata: shared - .MediaContainerWithPlaylistMetadata$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithPlaylistMetadata": "mediaContainerWithPlaylistMetadata", - }); -}); - -export function modifyPlaylistGeneratorResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ModifyPlaylistGeneratorResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ModifyPlaylistGeneratorResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/movecollectionitem.ts b/src/models/operations/movecollectionitem.ts similarity index 71% rename from src/sdk/models/operations/movecollectionitem.ts rename to src/models/operations/movecollectionitem.ts index 75ff1939..06f7bf16 100644 --- a/src/sdk/models/operations/movecollectionitem.ts +++ b/src/models/operations/movecollectionitem.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type MoveCollectionItemGlobals = { @@ -115,25 +112,6 @@ export type MoveCollectionItemRequest = { after?: number | undefined; }; -export type MoveCollectionItemResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; -}; - /** @internal */ export type MoveCollectionItemRequest$Outbound = { accepts: string; @@ -155,7 +133,6 @@ export type MoveCollectionItemRequest$Outbound = { /** @internal */ export const MoveCollectionItemRequest$outboundSchema: z.ZodType< MoveCollectionItemRequest$Outbound, - z.ZodTypeDef, MoveCollectionItemRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -169,9 +146,9 @@ export const MoveCollectionItemRequest$outboundSchema: z.ZodType< 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(), + collectionId: z.int(), + itemId: z.int(), + after: z.int().optional(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -194,33 +171,3 @@ export function moveCollectionItemRequestToJSON( MoveCollectionItemRequest$outboundSchema.parse(moveCollectionItemRequest), ); } - -/** @internal */ -export const MoveCollectionItemResponse$inboundSchema: z.ZodType< - MoveCollectionItemResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithMetadata": "mediaContainerWithMetadata", - }); -}); - -export function moveCollectionItemResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MoveCollectionItemResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MoveCollectionItemResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/movehub.ts b/src/models/operations/movehub.ts similarity index 84% rename from src/sdk/models/operations/movehub.ts rename to src/models/operations/movehub.ts index d3798b90..431c5da4 100644 --- a/src/sdk/models/operations/movehub.ts +++ b/src/models/operations/movehub.ts @@ -2,9 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +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"; @@ -116,23 +116,8 @@ export type MoveHubRequest = { }; export type MoveHubResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - getResponses200?: shared.GetResponses200 | undefined; headers: { [k: string]: Array }; + result: shared.GetResponses200; }; /** @internal */ @@ -156,7 +141,6 @@ export type MoveHubRequest$Outbound = { /** @internal */ export const MoveHubRequest$outboundSchema: z.ZodType< MoveHubRequest$Outbound, - z.ZodTypeDef, MoveHubRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -170,7 +154,7 @@ export const MoveHubRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - sectionId: z.number().int(), + sectionId: z.int(), identifier: z.string(), after: z.string().optional(), }).transform((v) => { @@ -195,21 +179,14 @@ export function moveHubRequestToJSON(moveHubRequest: MoveHubRequest): string { /** @internal */ export const MoveHubResponse$inboundSchema: z.ZodType< MoveHubResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - "get-responses-200": shared.GetResponses200$inboundSchema.optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: shared.GetResponses200$inboundSchema, }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "get-responses-200": "getResponses200", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/moveplaylistitem.ts b/src/models/operations/moveplaylistitem.ts similarity index 70% rename from src/sdk/models/operations/moveplaylistitem.ts rename to src/models/operations/moveplaylistitem.ts index 9a473c12..dacedb9c 100644 --- a/src/sdk/models/operations/moveplaylistitem.ts +++ b/src/models/operations/moveplaylistitem.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type MovePlaylistItemGlobals = { @@ -115,27 +112,6 @@ export type MovePlaylistItemRequest = { after?: number | undefined; }; -export type MovePlaylistItemResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithPlaylistMetadata?: - | shared.MediaContainerWithPlaylistMetadata - | undefined; -}; - /** @internal */ export type MovePlaylistItemRequest$Outbound = { accepts: string; @@ -157,7 +133,6 @@ export type MovePlaylistItemRequest$Outbound = { /** @internal */ export const MovePlaylistItemRequest$outboundSchema: z.ZodType< MovePlaylistItemRequest$Outbound, - z.ZodTypeDef, MovePlaylistItemRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -171,9 +146,9 @@ export const MovePlaylistItemRequest$outboundSchema: z.ZodType< 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(), + playlistId: z.int(), + playlistItemId: z.int(), + after: z.int().optional(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -196,33 +171,3 @@ export function movePlaylistItemRequestToJSON( MovePlaylistItemRequest$outboundSchema.parse(movePlaylistItemRequest), ); } - -/** @internal */ -export const MovePlaylistItemResponse$inboundSchema: z.ZodType< - MovePlaylistItemResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithPlaylistMetadata: shared - .MediaContainerWithPlaylistMetadata$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithPlaylistMetadata": "mediaContainerWithPlaylistMetadata", - }); -}); - -export function movePlaylistItemResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MovePlaylistItemResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MovePlaylistItemResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/moveplayqueueitem.ts b/src/models/operations/moveplayqueueitem.ts similarity index 70% rename from src/sdk/models/operations/moveplayqueueitem.ts rename to src/models/operations/moveplayqueueitem.ts index 1fa072c4..2357b0b3 100644 --- a/src/sdk/models/operations/moveplayqueueitem.ts +++ b/src/models/operations/moveplayqueueitem.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type MovePlayQueueItemGlobals = { @@ -115,27 +112,6 @@ export type MovePlayQueueItemRequest = { after?: number | undefined; }; -export type MovePlayQueueItemResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithPlaylistMetadata?: - | shared.MediaContainerWithPlaylistMetadata - | undefined; -}; - /** @internal */ export type MovePlayQueueItemRequest$Outbound = { accepts: string; @@ -157,7 +133,6 @@ export type MovePlayQueueItemRequest$Outbound = { /** @internal */ export const MovePlayQueueItemRequest$outboundSchema: z.ZodType< MovePlayQueueItemRequest$Outbound, - z.ZodTypeDef, MovePlayQueueItemRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -171,9 +146,9 @@ export const MovePlayQueueItemRequest$outboundSchema: z.ZodType< 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(), + playQueueId: z.int(), + playQueueItemId: z.int(), + after: z.int().optional(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -196,33 +171,3 @@ export function movePlayQueueItemRequestToJSON( MovePlayQueueItemRequest$outboundSchema.parse(movePlayQueueItemRequest), ); } - -/** @internal */ -export const MovePlayQueueItemResponse$inboundSchema: z.ZodType< - MovePlayQueueItemResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithPlaylistMetadata: shared - .MediaContainerWithPlaylistMetadata$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithPlaylistMetadata": "mediaContainerWithPlaylistMetadata", - }); -}); - -export function movePlayQueueItemResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MovePlayQueueItemResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MovePlayQueueItemResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/optimizedatabase.ts b/src/models/operations/optimizedatabase.ts similarity index 75% rename from src/sdk/models/operations/optimizedatabase.ts rename to src/models/operations/optimizedatabase.ts index 20214cf9..fc361323 100644 --- a/src/sdk/models/operations/optimizedatabase.ts +++ b/src/models/operations/optimizedatabase.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type OptimizeDatabaseGlobals = { @@ -107,21 +104,6 @@ export type OptimizeDatabaseRequest = { async?: shared.BoolInt | undefined; }; -export type OptimizeDatabaseResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type OptimizeDatabaseRequest$Outbound = { accepts: string; @@ -141,7 +123,6 @@ export type OptimizeDatabaseRequest$Outbound = { /** @internal */ export const OptimizeDatabaseRequest$outboundSchema: z.ZodType< OptimizeDatabaseRequest$Outbound, - z.ZodTypeDef, OptimizeDatabaseRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -178,30 +159,3 @@ export function optimizeDatabaseRequestToJSON( OptimizeDatabaseRequest$outboundSchema.parse(optimizeDatabaseRequest), ); } - -/** @internal */ -export const OptimizeDatabaseResponse$inboundSchema: z.ZodType< - OptimizeDatabaseResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function optimizeDatabaseResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => OptimizeDatabaseResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'OptimizeDatabaseResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/postuserssignindata.ts b/src/models/operations/postuserssignindata.ts similarity index 75% rename from src/sdk/models/operations/postuserssignindata.ts rename to src/models/operations/postuserssignindata.ts index 6008134a..12a5ed76 100644 --- a/src/sdk/models/operations/postuserssignindata.ts +++ b/src/models/operations/postuserssignindata.ts @@ -2,12 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import * as openEnums from "../../types/enums.js"; import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -143,6 +144,10 @@ export enum MailingListStatus { Unsubscribed = "unsubscribed", Removed = "removed", } +/** + * Your current mailing list status + */ +export type MailingListStatusOpen = OpenEnum; export enum ServiceStatus { Online = "online", @@ -362,7 +367,7 @@ export type UserPlexAccount = { /** * Your current mailing list status */ - mailingListStatus?: MailingListStatus | undefined; + mailingListStatus?: MailingListStatusOpen | undefined; /** * The maximum number of accounts allowed in the Plex Home */ @@ -429,25 +434,6 @@ export type UserPlexAccount = { trials: Array; }; -export type PostUsersSignInDataResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * Returns the user account data with a valid auth token - */ - userPlexAccount?: UserPlexAccount | undefined; -}; - /** @internal */ export type PostUsersSignInDataRequestBody$Outbound = { login: string; @@ -459,7 +445,6 @@ export type PostUsersSignInDataRequestBody$Outbound = { /** @internal */ export const PostUsersSignInDataRequestBody$outboundSchema: z.ZodType< PostUsersSignInDataRequestBody$Outbound, - z.ZodTypeDef, PostUsersSignInDataRequestBody > = z.object({ login: z.string(), @@ -497,7 +482,6 @@ export type PostUsersSignInDataRequest$Outbound = { /** @internal */ export const PostUsersSignInDataRequest$outboundSchema: z.ZodType< PostUsersSignInDataRequest$Outbound, - z.ZodTypeDef, PostUsersSignInDataRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -540,12 +524,11 @@ export function postUsersSignInDataRequestToJSON( /** @internal */ export const PostUsersSignInDataUnauthorizedError$inboundSchema: z.ZodType< PostUsersSignInDataUnauthorizedError, - z.ZodTypeDef, unknown > = z.object({ - code: z.number().int().optional(), - message: z.string().optional(), - status: z.number().int().optional(), + code: types.optional(types.number()), + message: types.optional(types.string()), + status: types.optional(types.number()), }); export function postUsersSignInDataUnauthorizedErrorFromJSON( @@ -562,12 +545,11 @@ export function postUsersSignInDataUnauthorizedErrorFromJSON( /** @internal */ export const PostUsersSignInDataBadRequestError$inboundSchema: z.ZodType< PostUsersSignInDataBadRequestError, - z.ZodTypeDef, unknown > = z.object({ - code: z.number().int().optional(), - message: z.string().optional(), - status: z.number().int().optional(), + code: types.optional(types.number()), + message: types.optional(types.string()), + status: types.optional(types.number()), }); export function postUsersSignInDataBadRequestErrorFromJSON( @@ -582,26 +564,25 @@ export function postUsersSignInDataBadRequestErrorFromJSON( } /** @internal */ -export const MailingListStatus$inboundSchema: z.ZodNativeEnum< - typeof MailingListStatus -> = z.nativeEnum(MailingListStatus); +export const MailingListStatus$inboundSchema: z.ZodType< + MailingListStatusOpen, + unknown +> = openEnums.inboundSchema(MailingListStatus); /** @internal */ export const ServiceStatus$inboundSchema: z.ZodType< ServiceStatusOpen, - z.ZodTypeDef, unknown > = openEnums.inboundSchema(ServiceStatus); /** @internal */ -export const Service$inboundSchema: z.ZodType = - z.object({ - identifier: z.string(), - endpoint: z.string(), - token: z.nullable(z.string()), - secret: z.nullable(z.string()), - status: ServiceStatus$inboundSchema, - }); +export const Service$inboundSchema: z.ZodType = z.object({ + identifier: types.string(), + endpoint: types.string(), + token: types.nullable(types.string()), + secret: types.nullable(types.string()), + status: ServiceStatus$inboundSchema, +}); export function serviceFromJSON( jsonString: string, @@ -616,23 +597,19 @@ export function serviceFromJSON( /** @internal */ export const SubscriptionStatus1$inboundSchema: z.ZodType< SubscriptionStatus1Open, - z.ZodTypeDef, unknown > = openEnums.inboundSchema(SubscriptionStatus1); /** @internal */ -export const Subscription1$inboundSchema: z.ZodType< - Subscription1, - z.ZodTypeDef, - unknown -> = z.object({ - features: z.array(z.string()).optional(), - active: z.boolean().optional(), - subscribedAt: z.nullable(z.string()).optional(), - status: SubscriptionStatus1$inboundSchema.optional(), - paymentService: z.nullable(z.string()).optional(), - plan: z.nullable(z.string()).optional(), -}); +export const Subscription1$inboundSchema: z.ZodType = z + .object({ + features: types.optional(z.array(types.string())), + active: types.optional(types.boolean()), + subscribedAt: z.nullable(types.string()).optional(), + status: types.optional(SubscriptionStatus1$inboundSchema), + paymentService: z.nullable(types.string()).optional(), + plan: z.nullable(types.string()).optional(), + }); export function subscription1FromJSON( jsonString: string, @@ -647,23 +624,19 @@ export function subscription1FromJSON( /** @internal */ export const SubscriptionStatus2$inboundSchema: z.ZodType< SubscriptionStatus2Open, - z.ZodTypeDef, unknown > = openEnums.inboundSchema(SubscriptionStatus2); /** @internal */ -export const Subscription2$inboundSchema: z.ZodType< - Subscription2, - z.ZodTypeDef, - unknown -> = z.object({ - features: z.array(z.string()).optional(), - active: z.boolean().optional(), - subscribedAt: z.nullable(z.string()).optional(), - status: SubscriptionStatus2$inboundSchema.optional(), - paymentService: z.nullable(z.string()).optional(), - plan: z.nullable(z.string()).optional(), -}); +export const Subscription2$inboundSchema: z.ZodType = z + .object({ + features: types.optional(z.array(types.string())), + active: types.optional(types.boolean()), + subscribedAt: z.nullable(types.string()).optional(), + status: types.optional(SubscriptionStatus2$inboundSchema), + paymentService: z.nullable(types.string()).optional(), + plan: z.nullable(types.string()).optional(), + }); export function subscription2FromJSON( jsonString: string, @@ -678,14 +651,12 @@ export function subscription2FromJSON( /** @internal */ export const PostUsersSignInDataState$inboundSchema: z.ZodType< PostUsersSignInDataStateOpen, - z.ZodTypeDef, unknown > = openEnums.inboundSchema(PostUsersSignInDataState); /** @internal */ export const InternalPaymentMethod$inboundSchema: z.ZodType< InternalPaymentMethod, - z.ZodTypeDef, unknown > = z.object({}); @@ -700,11 +671,10 @@ export function internalPaymentMethodFromJSON( } /** @internal */ -export const Billing$inboundSchema: z.ZodType = - z.object({ - internalPaymentMethod: z.lazy(() => InternalPaymentMethod$inboundSchema), - paymentMethodId: z.nullable(z.number().int()), - }); +export const Billing$inboundSchema: z.ZodType = z.object({ + internalPaymentMethod: z.lazy(() => InternalPaymentMethod$inboundSchema), + paymentMethodId: types.nullable(types.number()), +}); export function billingFromJSON( jsonString: string, @@ -719,22 +689,21 @@ export function billingFromJSON( /** @internal */ export const PastSubscription$inboundSchema: z.ZodType< PastSubscription, - z.ZodTypeDef, unknown > = z.object({ - id: z.nullable(z.string()), - mode: z.nullable(z.string()), - renewsAt: z.nullable(z.number().int()), - endsAt: z.nullable(z.number().int()), - canceled: z.boolean().default(false), - gracePeriod: z.boolean().default(false), - onHold: z.boolean().default(false), - canReactivate: z.boolean().default(false), - canUpgrade: z.boolean().default(false), - canDowngrade: z.boolean().default(false), - canConvert: z.boolean().default(false), - type: z.string(), - transfer: z.nullable(z.string()), + id: types.nullable(types.string()), + mode: types.nullable(types.string()), + renewsAt: types.nullable(types.number()), + endsAt: types.nullable(types.number()), + canceled: types.boolean().default(false), + gracePeriod: types.boolean().default(false), + onHold: types.boolean().default(false), + canReactivate: types.boolean().default(false), + canUpgrade: types.boolean().default(false), + canDowngrade: types.boolean().default(false), + canConvert: types.boolean().default(false), + type: types.string(), + transfer: types.nullable(types.string()), state: PostUsersSignInDataState$inboundSchema, billing: z.lazy(() => Billing$inboundSchema), }); @@ -750,8 +719,7 @@ export function pastSubscriptionFromJSON( } /** @internal */ -export const Trial$inboundSchema: z.ZodType = z - .object({}); +export const Trial$inboundSchema: z.ZodType = z.object({}); export function trialFromJSON( jsonString: string, @@ -766,50 +734,51 @@ export function trialFromJSON( /** @internal */ export const UserPlexAccount$inboundSchema: z.ZodType< UserPlexAccount, - z.ZodTypeDef, unknown > = z.object({ - adsConsent: z.nullable(z.boolean()).optional(), - adsConsentReminderAt: z.nullable(z.number().int()).optional(), - adsConsentSetAt: z.nullable(z.number().int()).optional(), - anonymous: z.nullable(z.boolean().default(false)), - authToken: z.string(), - backupCodesCreated: z.boolean().default(false), - confirmed: z.boolean().default(false), - country: z.string().optional(), - email: z.string(), - emailOnlyAuth: z.boolean().default(false), - experimentalFeatures: z.boolean().default(false), - friendlyName: z.string(), - entitlements: z.array(z.string()).optional(), - guest: z.boolean().default(false), - hasPassword: z.boolean().default(true), - home: z.boolean().default(false), - homeAdmin: z.boolean().default(false), - homeSize: z.number().int().optional(), - id: z.number().int(), - joinedAt: z.number().int(), - locale: z.nullable(z.string()).optional(), - mailingListActive: z.boolean().default(false), - mailingListStatus: MailingListStatus$inboundSchema.optional(), - maxHomeSize: z.number().int().optional(), - pin: z.string().optional(), - profile: shared.UserProfile$inboundSchema.optional(), - protected: z.boolean().default(false), - rememberExpiresAt: z.number().int().optional(), - restricted: z.boolean().default(false), - roles: z.array(z.string()).optional(), - scrobbleTypes: z.string().optional(), - services: z.array(z.lazy(() => Service$inboundSchema)).optional(), - subscription: z.lazy(() => Subscription1$inboundSchema).optional(), - subscriptionDescription: z.nullable(z.string()).optional(), - subscriptions: z.array(z.lazy(() => Subscription2$inboundSchema)).optional(), - thumb: z.string().optional(), - title: z.string(), - twoFactorEnabled: z.boolean().default(false), - username: z.string(), - uuid: z.string(), - attributionPartner: z.nullable(z.string()).optional(), + adsConsent: z.nullable(types.boolean()).optional(), + adsConsentReminderAt: z.nullable(types.number()).optional(), + adsConsentSetAt: z.nullable(types.number()).optional(), + anonymous: z.nullable(types.boolean().default(false)), + authToken: types.string(), + backupCodesCreated: types.boolean().default(false), + confirmed: types.boolean().default(false), + country: types.optional(types.string()), + email: types.string(), + emailOnlyAuth: types.boolean().default(false), + experimentalFeatures: types.boolean().default(false), + friendlyName: types.string(), + entitlements: types.optional(z.array(types.string())), + guest: types.boolean().default(false), + hasPassword: types.boolean().default(true), + home: types.boolean().default(false), + homeAdmin: types.boolean().default(false), + homeSize: types.optional(types.number()), + id: types.number(), + joinedAt: types.number(), + locale: z.nullable(types.string()).optional(), + mailingListActive: types.boolean().default(false), + mailingListStatus: types.optional(MailingListStatus$inboundSchema), + maxHomeSize: types.optional(types.number()), + pin: types.optional(types.string()), + profile: types.optional(shared.UserProfile$inboundSchema), + protected: types.boolean().default(false), + rememberExpiresAt: types.optional(types.number()), + restricted: types.boolean().default(false), + roles: types.optional(z.array(types.string())), + scrobbleTypes: types.optional(types.string()), + services: types.optional(z.array(z.lazy(() => Service$inboundSchema))), + subscription: types.optional(z.lazy(() => Subscription1$inboundSchema)), + subscriptionDescription: z.nullable(types.string()).optional(), + subscriptions: types.optional( + z.array(z.lazy(() => Subscription2$inboundSchema)), + ), + thumb: types.optional(types.string()), + title: types.string(), + twoFactorEnabled: types.boolean().default(false), + username: types.string(), + uuid: types.string(), + attributionPartner: z.nullable(types.string()).optional(), pastSubscriptions: z.array(z.lazy(() => PastSubscription$inboundSchema)), trials: z.array(z.lazy(() => Trial$inboundSchema)), }); @@ -823,32 +792,3 @@ export function userPlexAccountFromJSON( `Failed to parse 'UserPlexAccount' from JSON`, ); } - -/** @internal */ -export const PostUsersSignInDataResponse$inboundSchema: z.ZodType< - PostUsersSignInDataResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - UserPlexAccount: z.lazy(() => UserPlexAccount$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "UserPlexAccount": "userPlexAccount", - }); -}); - -export function postUsersSignInDataResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostUsersSignInDataResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostUsersSignInDataResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/processsubscriptions.ts b/src/models/operations/processsubscriptions.ts similarity index 55% rename from src/sdk/models/operations/processsubscriptions.ts rename to src/models/operations/processsubscriptions.ts index 5970310b..233bdfa6 100644 --- a/src/sdk/models/operations/processsubscriptions.ts +++ b/src/models/operations/processsubscriptions.ts @@ -2,43 +2,24 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +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 ProcessSubscriptionsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; headers: { [k: string]: Array }; }; /** @internal */ export const ProcessSubscriptionsResponse$inboundSchema: z.ZodType< ProcessSubscriptionsResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", "Headers": "headers", }); }); diff --git a/src/sdk/models/operations/refreshitemsmetadata.ts b/src/models/operations/refreshitemsmetadata.ts similarity index 75% rename from src/sdk/models/operations/refreshitemsmetadata.ts rename to src/models/operations/refreshitemsmetadata.ts index e8020599..b6768e5d 100644 --- a/src/sdk/models/operations/refreshitemsmetadata.ts +++ b/src/models/operations/refreshitemsmetadata.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type RefreshItemsMetadataGlobals = { @@ -106,21 +103,6 @@ export type RefreshItemsMetadataRequest = { markUpdated?: shared.BoolInt | undefined; }; -export type RefreshItemsMetadataResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type RefreshItemsMetadataRequest$Outbound = { accepts: string; @@ -142,7 +124,6 @@ export type RefreshItemsMetadataRequest$Outbound = { /** @internal */ export const RefreshItemsMetadataRequest$outboundSchema: z.ZodType< RefreshItemsMetadataRequest$Outbound, - z.ZodTypeDef, RefreshItemsMetadataRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -183,30 +164,3 @@ export function refreshItemsMetadataRequestToJSON( ), ); } - -/** @internal */ -export const RefreshItemsMetadataResponse$inboundSchema: z.ZodType< - RefreshItemsMetadataResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function refreshItemsMetadataResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RefreshItemsMetadataResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RefreshItemsMetadataResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/refreshplaylist.ts b/src/models/operations/refreshplaylist.ts similarity index 74% rename from src/sdk/models/operations/refreshplaylist.ts rename to src/models/operations/refreshplaylist.ts index 9b5139e7..b7818953 100644 --- a/src/sdk/models/operations/refreshplaylist.ts +++ b/src/models/operations/refreshplaylist.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type RefreshPlaylistGlobals = { @@ -128,24 +125,8 @@ export type RefreshPlaylistRequest = { action: Action; }; -export type RefreshPlaylistResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ -export const Action$outboundSchema: z.ZodNativeEnum = z - .nativeEnum(Action); +export const Action$outboundSchema: z.ZodEnum = z.enum(Action); /** @internal */ export type RefreshPlaylistRequest$Outbound = { @@ -169,7 +150,6 @@ export type RefreshPlaylistRequest$Outbound = { /** @internal */ export const RefreshPlaylistRequest$outboundSchema: z.ZodType< RefreshPlaylistRequest$Outbound, - z.ZodTypeDef, RefreshPlaylistRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -183,9 +163,9 @@ export const RefreshPlaylistRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - playlistId: z.number().int(), - generatorId: z.number().int(), - metadataId: z.number().int(), + playlistId: z.int(), + generatorId: z.int(), + metadataId: z.int(), action: Action$outboundSchema, }).transform((v) => { return remap$(v, { @@ -209,30 +189,3 @@ export function refreshPlaylistRequestToJSON( RefreshPlaylistRequest$outboundSchema.parse(refreshPlaylistRequest), ); } - -/** @internal */ -export const RefreshPlaylistResponse$inboundSchema: z.ZodType< - RefreshPlaylistResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function refreshPlaylistResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RefreshPlaylistResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RefreshPlaylistResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/refreshsection.ts b/src/models/operations/refreshsection.ts similarity index 76% rename from src/sdk/models/operations/refreshsection.ts rename to src/models/operations/refreshsection.ts index 940121b4..40282c8c 100644 --- a/src/sdk/models/operations/refreshsection.ts +++ b/src/models/operations/refreshsection.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type RefreshSectionGlobals = { @@ -115,21 +112,6 @@ export type RefreshSectionRequest = { path?: string | undefined; }; -export type RefreshSectionResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type RefreshSectionRequest$Outbound = { accepts: string; @@ -151,7 +133,6 @@ export type RefreshSectionRequest$Outbound = { /** @internal */ export const RefreshSectionRequest$outboundSchema: z.ZodType< RefreshSectionRequest$Outbound, - z.ZodTypeDef, RefreshSectionRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -165,7 +146,7 @@ export const RefreshSectionRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - sectionId: z.number().int(), + sectionId: z.int(), force: shared.BoolInt$outboundSchema.default(shared.BoolInt.False), path: z.string().optional(), }).transform((v) => { @@ -190,30 +171,3 @@ export function refreshSectionRequestToJSON( RefreshSectionRequest$outboundSchema.parse(refreshSectionRequest), ); } - -/** @internal */ -export const RefreshSectionResponse$inboundSchema: z.ZodType< - RefreshSectionResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function refreshSectionResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RefreshSectionResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RefreshSectionResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/refreshsectionsmetadata.ts b/src/models/operations/refreshsectionsmetadata.ts similarity index 74% rename from src/sdk/models/operations/refreshsectionsmetadata.ts rename to src/models/operations/refreshsectionsmetadata.ts index b8fa673e..00635b87 100644 --- a/src/sdk/models/operations/refreshsectionsmetadata.ts +++ b/src/models/operations/refreshsectionsmetadata.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type RefreshSectionsMetadataGlobals = { @@ -107,21 +104,6 @@ export type RefreshSectionsMetadataRequest = { force?: boolean | undefined; }; -export type RefreshSectionsMetadataResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type RefreshSectionsMetadataRequest$Outbound = { accepts: string; @@ -141,7 +123,6 @@ export type RefreshSectionsMetadataRequest$Outbound = { /** @internal */ export const RefreshSectionsMetadataRequest$outboundSchema: z.ZodType< RefreshSectionsMetadataRequest$Outbound, - z.ZodTypeDef, RefreshSectionsMetadataRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -180,30 +161,3 @@ export function refreshSectionsMetadataRequestToJSON( ), ); } - -/** @internal */ -export const RefreshSectionsMetadataResponse$inboundSchema: z.ZodType< - RefreshSectionsMetadataResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function refreshSectionsMetadataResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RefreshSectionsMetadataResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RefreshSectionsMetadataResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/reloadguide.ts b/src/models/operations/reloadguide.ts similarity index 86% rename from src/sdk/models/operations/reloadguide.ts rename to src/models/operations/reloadguide.ts index 24d37150..1dd9961b 100644 --- a/src/sdk/models/operations/reloadguide.ts +++ b/src/models/operations/reloadguide.ts @@ -2,9 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +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"; @@ -108,18 +108,6 @@ export type ReloadGuideRequest = { }; export type ReloadGuideResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; headers: { [k: string]: Array }; }; @@ -142,7 +130,6 @@ export type ReloadGuideRequest$Outbound = { /** @internal */ export const ReloadGuideRequest$outboundSchema: z.ZodType< ReloadGuideRequest$Outbound, - z.ZodTypeDef, ReloadGuideRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -156,7 +143,7 @@ export const ReloadGuideRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - dvrId: z.number().int(), + dvrId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -183,18 +170,11 @@ export function reloadGuideRequestToJSON( /** @internal */ export const ReloadGuideResponse$inboundSchema: z.ZodType< ReloadGuideResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", "Headers": "headers", }); }); diff --git a/src/sdk/models/operations/removedevice.ts b/src/models/operations/removedevice.ts similarity index 85% rename from src/sdk/models/operations/removedevice.ts rename to src/models/operations/removedevice.ts index 841d81af..eb186d34 100644 --- a/src/sdk/models/operations/removedevice.ts +++ b/src/models/operations/removedevice.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -141,23 +142,8 @@ export type RemoveDeviceResponseBody = { }; export type RemoveDeviceResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: RemoveDeviceResponseBody | undefined; headers: { [k: string]: Array }; + result: RemoveDeviceResponseBody; }; /** @internal */ @@ -179,7 +165,6 @@ export type RemoveDeviceRequest$Outbound = { /** @internal */ export const RemoveDeviceRequest$outboundSchema: z.ZodType< RemoveDeviceRequest$Outbound, - z.ZodTypeDef, RemoveDeviceRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -193,7 +178,7 @@ export const RemoveDeviceRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - deviceId: z.number().int(), + deviceId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -220,15 +205,14 @@ export function removeDeviceRequestToJSON( /** @internal */ export const RemoveDeviceMediaContainer$inboundSchema: z.ZodType< RemoveDeviceMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - message: z.string().optional(), - status: z.number().int().optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + message: types.optional(types.string()), + status: types.optional(types.number()), }); export function removeDeviceMediaContainerFromJSON( @@ -244,11 +228,11 @@ export function removeDeviceMediaContainerFromJSON( /** @internal */ export const RemoveDeviceResponseBody$inboundSchema: z.ZodType< RemoveDeviceResponseBody, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => RemoveDeviceMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => RemoveDeviceMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -268,20 +252,14 @@ export function removeDeviceResponseBodyFromJSON( /** @internal */ export const RemoveDeviceResponse$inboundSchema: z.ZodType< RemoveDeviceResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => RemoveDeviceResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: z.lazy(() => RemoveDeviceResponseBody$inboundSchema), }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/removedevicefromdvr.ts b/src/models/operations/removedevicefromdvr.ts similarity index 83% rename from src/sdk/models/operations/removedevicefromdvr.ts rename to src/models/operations/removedevicefromdvr.ts index c783259e..0b26b6c2 100644 --- a/src/sdk/models/operations/removedevicefromdvr.ts +++ b/src/models/operations/removedevicefromdvr.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -160,23 +161,8 @@ export type RemoveDeviceFromDVRResponseBody = { }; export type RemoveDeviceFromDVRResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: RemoveDeviceFromDVRResponseBody | undefined; headers: { [k: string]: Array }; + result: RemoveDeviceFromDVRResponseBody; }; /** @internal */ @@ -199,7 +185,6 @@ export type RemoveDeviceFromDVRRequest$Outbound = { /** @internal */ export const RemoveDeviceFromDVRRequest$outboundSchema: z.ZodType< RemoveDeviceFromDVRRequest$Outbound, - z.ZodTypeDef, RemoveDeviceFromDVRRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -213,8 +198,8 @@ export const RemoveDeviceFromDVRRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - dvrId: z.number().int(), - deviceId: z.number().int(), + dvrId: z.int(), + deviceId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -240,17 +225,14 @@ export function removeDeviceFromDVRRequestToJSON( /** @internal */ export const RemoveDeviceFromDVRMediaContainerMediaContainer$inboundSchema: - z.ZodType< - RemoveDeviceFromDVRMediaContainerMediaContainer, - z.ZodTypeDef, - unknown - > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - status: z.number().int().optional(), - }); + z.ZodType = z + .object({ + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + status: types.optional(types.number()), + }); export function removeDeviceFromDVRMediaContainerMediaContainerFromJSON( jsonString: string, @@ -271,14 +253,13 @@ export function removeDeviceFromDVRMediaContainerMediaContainerFromJSON( /** @internal */ export const RemoveDeviceFromDVRDVR$inboundSchema: z.ZodType< RemoveDeviceFromDVRDVR, - z.ZodTypeDef, unknown > = z.object({ - Device: z.array(shared.Device$inboundSchema).optional(), - key: z.string().optional(), - language: z.string().optional(), - lineup: z.string().optional(), - uuid: z.string().optional(), + Device: types.optional(z.array(shared.Device$inboundSchema)), + key: types.optional(types.string()), + language: types.optional(types.string()), + lineup: types.optional(types.string()), + uuid: types.optional(types.string()), }).transform((v) => { return remap$(v, { "Device": "device", @@ -298,13 +279,14 @@ export function removeDeviceFromDVRDVRFromJSON( /** @internal */ export const RemoveDeviceFromDVRMediaContainer$inboundSchema: z.ZodType< RemoveDeviceFromDVRMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => - RemoveDeviceFromDVRMediaContainerMediaContainer$inboundSchema - ).optional(), - DVR: z.array(z.lazy(() => RemoveDeviceFromDVRDVR$inboundSchema)).optional(), + MediaContainer: types.optional( + z.lazy(() => RemoveDeviceFromDVRMediaContainerMediaContainer$inboundSchema), + ), + DVR: types.optional( + z.array(z.lazy(() => RemoveDeviceFromDVRDVR$inboundSchema)), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -325,11 +307,11 @@ export function removeDeviceFromDVRMediaContainerFromJSON( /** @internal */ export const RemoveDeviceFromDVRResponseBody$inboundSchema: z.ZodType< RemoveDeviceFromDVRResponseBody, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => RemoveDeviceFromDVRMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => RemoveDeviceFromDVRMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -349,21 +331,14 @@ export function removeDeviceFromDVRResponseBodyFromJSON( /** @internal */ export const RemoveDeviceFromDVRResponse$inboundSchema: z.ZodType< RemoveDeviceFromDVRResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => RemoveDeviceFromDVRResponseBody$inboundSchema) - .optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: z.lazy(() => RemoveDeviceFromDVRResponseBody$inboundSchema), }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/removedownloadqueueitems.ts b/src/models/operations/removedownloadqueueitems.ts similarity index 74% rename from src/sdk/models/operations/removedownloadqueueitems.ts rename to src/models/operations/removedownloadqueueitems.ts index 24664572..3b4d513f 100644 --- a/src/sdk/models/operations/removedownloadqueueitems.ts +++ b/src/models/operations/removedownloadqueueitems.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type RemoveDownloadQueueItemsGlobals = { @@ -111,21 +108,6 @@ export type RemoveDownloadQueueItemsRequest = { itemId: Array; }; -export type RemoveDownloadQueueItemsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type RemoveDownloadQueueItemsRequest$Outbound = { accepts: string; @@ -146,7 +128,6 @@ export type RemoveDownloadQueueItemsRequest$Outbound = { /** @internal */ export const RemoveDownloadQueueItemsRequest$outboundSchema: z.ZodType< RemoveDownloadQueueItemsRequest$Outbound, - z.ZodTypeDef, RemoveDownloadQueueItemsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -160,8 +141,8 @@ export const RemoveDownloadQueueItemsRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - queueId: z.number().int(), - itemId: z.array(z.number().int()), + queueId: z.int(), + itemId: z.array(z.int()), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -186,30 +167,3 @@ export function removeDownloadQueueItemsRequestToJSON( ), ); } - -/** @internal */ -export const RemoveDownloadQueueItemsResponse$inboundSchema: z.ZodType< - RemoveDownloadQueueItemsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function removeDownloadQueueItemsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RemoveDownloadQueueItemsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RemoveDownloadQueueItemsResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/reordersubscription.ts b/src/models/operations/reordersubscription.ts similarity index 70% rename from src/sdk/models/operations/reordersubscription.ts rename to src/models/operations/reordersubscription.ts index 2711c2a1..1f339c58 100644 --- a/src/sdk/models/operations/reordersubscription.ts +++ b/src/models/operations/reordersubscription.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type ReorderSubscriptionGlobals = { @@ -108,27 +105,6 @@ export type ReorderSubscriptionRequest = { after?: number | undefined; }; -export type ReorderSubscriptionResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithSubscription?: - | shared.MediaContainerWithSubscription - | undefined; -}; - /** @internal */ export type ReorderSubscriptionRequest$Outbound = { accepts: string; @@ -149,7 +125,6 @@ export type ReorderSubscriptionRequest$Outbound = { /** @internal */ export const ReorderSubscriptionRequest$outboundSchema: z.ZodType< ReorderSubscriptionRequest$Outbound, - z.ZodTypeDef, ReorderSubscriptionRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -163,8 +138,8 @@ export const ReorderSubscriptionRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - subscriptionId: z.number().int(), - after: z.number().int().optional(), + subscriptionId: z.int(), + after: z.int().optional(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -187,33 +162,3 @@ export function reorderSubscriptionRequestToJSON( ReorderSubscriptionRequest$outboundSchema.parse(reorderSubscriptionRequest), ); } - -/** @internal */ -export const ReorderSubscriptionResponse$inboundSchema: z.ZodType< - ReorderSubscriptionResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithSubscription: shared - .MediaContainerWithSubscription$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithSubscription": "mediaContainerWithSubscription", - }); -}); - -export function reorderSubscriptionResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ReorderSubscriptionResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ReorderSubscriptionResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/report.ts b/src/models/operations/report.ts similarity index 72% rename from src/sdk/models/operations/report.ts rename to src/models/operations/report.ts index 6940b211..9806f54e 100644 --- a/src/sdk/models/operations/report.ts +++ b/src/models/operations/report.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -291,32 +292,14 @@ export type ReportMediaContainer = { /** * OK */ -export type ReportResponseBody = { +export type ReportResponse = { mediaContainer?: ReportMediaContainer | undefined; }; -export type ReportResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: ReportResponseBody | undefined; -}; - /** @internal */ -export const ReportState$outboundSchema: z.ZodNativeEnum = z - .nativeEnum(ReportState); +export const ReportState$outboundSchema: z.ZodEnum = z.enum( + ReportState, +); /** @internal */ export type ReportRequest$Outbound = { @@ -351,7 +334,6 @@ export type ReportRequest$Outbound = { /** @internal */ export const ReportRequest$outboundSchema: z.ZodType< ReportRequest$Outbound, - z.ZodTypeDef, ReportRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -369,16 +351,16 @@ export const ReportRequest$outboundSchema: z.ZodType< ratingKey: z.string().optional(), state: ReportState$outboundSchema.optional(), playQueueItemID: z.string().optional(), - time: z.number().int().optional(), - duration: z.number().int().optional(), + time: z.int().optional(), + duration: z.int().optional(), continuing: shared.BoolInt$outboundSchema.default(shared.BoolInt.False), - updated: z.number().int().optional(), + updated: z.int().optional(), offline: shared.BoolInt$outboundSchema.default(shared.BoolInt.False), - timeToFirstFrame: z.number().int().optional(), - timeStalled: z.number().int().optional(), - bandwidth: z.number().int().optional(), - bufferedTime: z.number().int().optional(), - bufferedSize: z.number().int().optional(), + timeToFirstFrame: z.int().optional(), + timeStalled: z.int().optional(), + bandwidth: z.int().optional(), + bufferedTime: z.int().optional(), + bufferedSize: z.int().optional(), xPlexSessionIdentifier: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -401,14 +383,10 @@ export function reportRequestToJSON(reportRequest: ReportRequest): string { } /** @internal */ -export const Bandwidth$inboundSchema: z.ZodType< - Bandwidth, - z.ZodTypeDef, - unknown -> = z.object({ - bandwidth: z.number().int().optional(), - resolution: z.string().optional(), - time: z.number().int().optional(), +export const Bandwidth$inboundSchema: z.ZodType = z.object({ + bandwidth: types.optional(types.number()), + resolution: types.optional(types.string()), + time: types.optional(types.number()), }); export function bandwidthFromJSON( @@ -422,17 +400,14 @@ export function bandwidthFromJSON( } /** @internal */ -export const Bandwidths$inboundSchema: z.ZodType< - Bandwidths, - z.ZodTypeDef, - unknown -> = z.object({ - Bandwidth: z.array(z.lazy(() => Bandwidth$inboundSchema)).optional(), -}).transform((v) => { - return remap$(v, { - "Bandwidth": "bandwidth", +export const Bandwidths$inboundSchema: z.ZodType = z + .object({ + Bandwidth: types.optional(z.array(z.lazy(() => Bandwidth$inboundSchema))), + }).transform((v) => { + return remap$(v, { + "Bandwidth": "bandwidth", + }); }); -}); export function bandwidthsFromJSON( jsonString: string, @@ -447,64 +422,63 @@ export function bandwidthsFromJSON( /** @internal */ export const ReportMediaContainer$inboundSchema: z.ZodType< ReportMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - allowCameraUpload: z.boolean().optional(), - allowChannelAccess: z.boolean().optional(), - allowMediaDeletion: z.boolean().optional(), - allowSharing: z.boolean().optional(), - allowSync: z.boolean().optional(), - allowTuners: z.boolean().optional(), - backgroundProcessing: z.boolean().optional(), - certificate: z.boolean().optional(), - companionProxy: z.boolean().optional(), - countryCode: z.string().optional(), - diagnostics: z.string().optional(), - eventStream: z.boolean().optional(), - friendlyName: z.string().optional(), - hubSearch: z.boolean().optional(), - itemClusters: z.boolean().optional(), - livetv: z.number().int().optional(), - machineIdentifier: z.any().optional(), - mediaProviders: z.boolean().optional(), - multiuser: z.boolean().optional(), - musicAnalysis: z.number().int().optional(), - myPlex: z.boolean().optional(), - myPlexMappingState: z.any().optional(), - myPlexSigninState: z.any().optional(), - myPlexSubscription: z.boolean().optional(), - myPlexUsername: z.string().optional(), - offlineTranscode: z.any().optional(), - ownerFeatures: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - pluginHost: z.boolean().optional(), - pushNotifications: z.boolean().optional(), - readOnlyLibraries: z.boolean().optional(), - streamingBrainABRVersion: z.number().int().optional(), - streamingBrainVersion: z.number().int().optional(), - sync: z.boolean().optional(), - transcoderActiveVideoSessions: z.number().int().optional(), - transcoderAudio: z.boolean().optional(), - transcoderLyrics: z.boolean().optional(), - transcoderPhoto: z.boolean().optional(), - transcoderSubtitles: z.boolean().optional(), - transcoderVideo: z.boolean().optional(), - transcoderVideoBitrates: z.any().optional(), - transcoderVideoQualities: z.string().optional(), - transcoderVideoResolutions: z.any().optional(), - updatedAt: z.number().int().optional(), - updater: z.boolean().optional(), - version: z.string().optional(), - voiceSearch: z.boolean().optional(), - Bandwidths: z.lazy(() => Bandwidths$inboundSchema).optional(), - terminationCode: z.number().int().optional(), - terminationText: z.string().optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + allowCameraUpload: types.optional(types.boolean()), + allowChannelAccess: types.optional(types.boolean()), + allowMediaDeletion: types.optional(types.boolean()), + allowSharing: types.optional(types.boolean()), + allowSync: types.optional(types.boolean()), + allowTuners: types.optional(types.boolean()), + backgroundProcessing: types.optional(types.boolean()), + certificate: types.optional(types.boolean()), + companionProxy: types.optional(types.boolean()), + countryCode: types.optional(types.string()), + diagnostics: types.optional(types.string()), + eventStream: types.optional(types.boolean()), + friendlyName: types.optional(types.string()), + hubSearch: types.optional(types.boolean()), + itemClusters: types.optional(types.boolean()), + livetv: types.optional(types.number()), + machineIdentifier: types.optional(z.any()), + mediaProviders: types.optional(types.boolean()), + multiuser: types.optional(types.boolean()), + musicAnalysis: types.optional(types.number()), + myPlex: types.optional(types.boolean()), + myPlexMappingState: types.optional(z.any()), + myPlexSigninState: types.optional(z.any()), + myPlexSubscription: types.optional(types.boolean()), + myPlexUsername: types.optional(types.string()), + offlineTranscode: types.optional(z.any()), + ownerFeatures: types.optional(types.string()), + platform: types.optional(types.string()), + platformVersion: types.optional(types.string()), + pluginHost: types.optional(types.boolean()), + pushNotifications: types.optional(types.boolean()), + readOnlyLibraries: types.optional(types.boolean()), + streamingBrainABRVersion: types.optional(types.number()), + streamingBrainVersion: types.optional(types.number()), + sync: types.optional(types.boolean()), + transcoderActiveVideoSessions: types.optional(types.number()), + transcoderAudio: types.optional(types.boolean()), + transcoderLyrics: types.optional(types.boolean()), + transcoderPhoto: types.optional(types.boolean()), + transcoderSubtitles: types.optional(types.boolean()), + transcoderVideo: types.optional(types.boolean()), + transcoderVideoBitrates: types.optional(z.any()), + transcoderVideoQualities: types.optional(types.string()), + transcoderVideoResolutions: types.optional(z.any()), + updatedAt: types.optional(types.number()), + updater: types.optional(types.boolean()), + version: types.optional(types.string()), + voiceSearch: types.optional(types.boolean()), + Bandwidths: types.optional(z.lazy(() => Bandwidths$inboundSchema)), + terminationCode: types.optional(types.number()), + terminationText: types.optional(types.string()), }).transform((v) => { return remap$(v, { "Bandwidths": "bandwidths", @@ -522,45 +496,16 @@ export function reportMediaContainerFromJSON( } /** @internal */ -export const ReportResponseBody$inboundSchema: z.ZodType< - ReportResponseBody, - z.ZodTypeDef, - unknown -> = z.object({ - MediaContainer: z.lazy(() => ReportMediaContainer$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "MediaContainer": "mediaContainer", +export const ReportResponse$inboundSchema: z.ZodType = + z.object({ + MediaContainer: types.optional( + z.lazy(() => ReportMediaContainer$inboundSchema), + ), + }).transform((v) => { + return remap$(v, { + "MediaContainer": "mediaContainer", + }); }); -}); - -export function reportResponseBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ReportResponseBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ReportResponseBody' from JSON`, - ); -} - -/** @internal */ -export const ReportResponse$inboundSchema: z.ZodType< - ReportResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => ReportResponseBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); export function reportResponseFromJSON( jsonString: string, diff --git a/src/sdk/models/operations/resetplayqueue.ts b/src/models/operations/resetplayqueue.ts similarity index 70% rename from src/sdk/models/operations/resetplayqueue.ts rename to src/models/operations/resetplayqueue.ts index 467367e2..6fbf6bcc 100644 --- a/src/sdk/models/operations/resetplayqueue.ts +++ b/src/models/operations/resetplayqueue.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type ResetPlayQueueGlobals = { @@ -107,27 +104,6 @@ export type ResetPlayQueueRequest = { playQueueId: number; }; -export type ResetPlayQueueResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithPlaylistMetadata?: - | shared.MediaContainerWithPlaylistMetadata - | undefined; -}; - /** @internal */ export type ResetPlayQueueRequest$Outbound = { accepts: string; @@ -147,7 +123,6 @@ export type ResetPlayQueueRequest$Outbound = { /** @internal */ export const ResetPlayQueueRequest$outboundSchema: z.ZodType< ResetPlayQueueRequest$Outbound, - z.ZodTypeDef, ResetPlayQueueRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -161,7 +136,7 @@ export const ResetPlayQueueRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - playQueueId: z.number().int(), + playQueueId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -184,33 +159,3 @@ export function resetPlayQueueRequestToJSON( ResetPlayQueueRequest$outboundSchema.parse(resetPlayQueueRequest), ); } - -/** @internal */ -export const ResetPlayQueueResponse$inboundSchema: z.ZodType< - ResetPlayQueueResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithPlaylistMetadata: shared - .MediaContainerWithPlaylistMetadata$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithPlaylistMetadata": "mediaContainerWithPlaylistMetadata", - }); -}); - -export function resetPlayQueueResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ResetPlayQueueResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ResetPlayQueueResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/resetsectiondefaults.ts b/src/models/operations/resetsectiondefaults.ts similarity index 74% rename from src/sdk/models/operations/resetsectiondefaults.ts rename to src/models/operations/resetsectiondefaults.ts index 99d3580e..4999bd51 100644 --- a/src/sdk/models/operations/resetsectiondefaults.ts +++ b/src/models/operations/resetsectiondefaults.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type ResetSectionDefaultsGlobals = { @@ -107,21 +104,6 @@ export type ResetSectionDefaultsRequest = { sectionId: number; }; -export type ResetSectionDefaultsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type ResetSectionDefaultsRequest$Outbound = { accepts: string; @@ -141,7 +123,6 @@ export type ResetSectionDefaultsRequest$Outbound = { /** @internal */ export const ResetSectionDefaultsRequest$outboundSchema: z.ZodType< ResetSectionDefaultsRequest$Outbound, - z.ZodTypeDef, ResetSectionDefaultsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -155,7 +136,7 @@ export const ResetSectionDefaultsRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - sectionId: z.number().int(), + sectionId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -180,30 +161,3 @@ export function resetSectionDefaultsRequestToJSON( ), ); } - -/** @internal */ -export const ResetSectionDefaultsResponse$inboundSchema: z.ZodType< - ResetSectionDefaultsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function resetSectionDefaultsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ResetSectionDefaultsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ResetSectionDefaultsResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/restartprocessingdownloadqueueitems.ts b/src/models/operations/restartprocessingdownloadqueueitems.ts similarity index 73% rename from src/sdk/models/operations/restartprocessingdownloadqueueitems.ts rename to src/models/operations/restartprocessingdownloadqueueitems.ts index 2cef992e..1baa6d7c 100644 --- a/src/sdk/models/operations/restartprocessingdownloadqueueitems.ts +++ b/src/models/operations/restartprocessingdownloadqueueitems.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type RestartProcessingDownloadQueueItemsGlobals = { @@ -111,21 +108,6 @@ export type RestartProcessingDownloadQueueItemsRequest = { itemId: Array; }; -export type RestartProcessingDownloadQueueItemsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type RestartProcessingDownloadQueueItemsRequest$Outbound = { accepts: string; @@ -147,7 +129,6 @@ export type RestartProcessingDownloadQueueItemsRequest$Outbound = { export const RestartProcessingDownloadQueueItemsRequest$outboundSchema: z.ZodType< RestartProcessingDownloadQueueItemsRequest$Outbound, - z.ZodTypeDef, RestartProcessingDownloadQueueItemsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default( @@ -163,8 +144,8 @@ export const RestartProcessingDownloadQueueItemsRequest$outboundSchema: deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - queueId: z.number().int(), - itemId: z.array(z.number().int()), + queueId: z.int(), + itemId: z.array(z.int()), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -190,37 +171,3 @@ export function restartProcessingDownloadQueueItemsRequestToJSON( ), ); } - -/** @internal */ -export const RestartProcessingDownloadQueueItemsResponse$inboundSchema: - z.ZodType< - RestartProcessingDownloadQueueItemsResponse, - z.ZodTypeDef, - unknown - > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - }).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); - }); - -export function restartProcessingDownloadQueueItemsResponseFromJSON( - jsonString: string, -): SafeParseResult< - RestartProcessingDownloadQueueItemsResponse, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - RestartProcessingDownloadQueueItemsResponse$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'RestartProcessingDownloadQueueItemsResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/scan.ts b/src/models/operations/scan.ts similarity index 79% rename from src/sdk/models/operations/scan.ts rename to src/models/operations/scan.ts index a49b1d19..2e9b0644 100644 --- a/src/sdk/models/operations/scan.ts +++ b/src/models/operations/scan.ts @@ -2,9 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +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"; @@ -112,23 +112,8 @@ export type ScanRequest = { }; export type ScanResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithDevice?: shared.MediaContainerWithDevice | undefined; headers: { [k: string]: Array }; + result: shared.MediaContainerWithDevice; }; /** @internal */ @@ -151,7 +136,6 @@ export type ScanRequest$Outbound = { /** @internal */ export const ScanRequest$outboundSchema: z.ZodType< ScanRequest$Outbound, - z.ZodTypeDef, ScanRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -165,7 +149,7 @@ export const ScanRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - deviceId: z.number().int(), + deviceId: z.int(), source: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -187,26 +171,16 @@ export function scanRequestToJSON(scanRequest: ScanRequest): string { } /** @internal */ -export const ScanResponse$inboundSchema: z.ZodType< - ScanResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithDevice: shared.MediaContainerWithDevice$inboundSchema - .optional(), - Headers: z.record(z.array(z.string())).default({}), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithDevice": "mediaContainerWithDevice", - "Headers": "headers", +export const ScanResponse$inboundSchema: z.ZodType = z + .object({ + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: shared.MediaContainerWithDevice$inboundSchema, + }).transform((v) => { + return remap$(v, { + "Headers": "headers", + "Result": "result", + }); }); -}); export function scanResponseFromJSON( jsonString: string, diff --git a/src/sdk/models/operations/searchhubs.ts b/src/models/operations/searchhubs.ts similarity index 85% rename from src/sdk/models/operations/searchhubs.ts rename to src/models/operations/searchhubs.ts index 3c35cae3..a360f694 100644 --- a/src/sdk/models/operations/searchhubs.ts +++ b/src/models/operations/searchhubs.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -148,23 +149,8 @@ export type SearchHubsResponseBody = { }; export type SearchHubsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: SearchHubsResponseBody | undefined; headers: { [k: string]: Array }; + result: SearchHubsResponseBody; }; /** @internal */ @@ -188,7 +174,6 @@ export type SearchHubsRequest$Outbound = { /** @internal */ export const SearchHubsRequest$outboundSchema: z.ZodType< SearchHubsRequest$Outbound, - z.ZodTypeDef, SearchHubsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -203,8 +188,8 @@ export const SearchHubsRequest$outboundSchema: z.ZodType< deviceName: z.string().optional(), marketplace: z.string().optional(), query: z.string(), - sectionId: z.number().int().optional(), - limit: z.number().int().optional(), + sectionId: z.int().optional(), + limit: z.int().optional(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -231,14 +216,13 @@ export function searchHubsRequestToJSON( /** @internal */ export const SearchHubsMediaContainer$inboundSchema: z.ZodType< SearchHubsMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - Hub: z.array(shared.Hub$inboundSchema).optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + Hub: types.optional(z.array(shared.Hub$inboundSchema)), }).transform((v) => { return remap$(v, { "Hub": "hub", @@ -258,11 +242,11 @@ export function searchHubsMediaContainerFromJSON( /** @internal */ export const SearchHubsResponseBody$inboundSchema: z.ZodType< SearchHubsResponseBody, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => SearchHubsMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => SearchHubsMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -282,20 +266,14 @@ export function searchHubsResponseBodyFromJSON( /** @internal */ export const SearchHubsResponse$inboundSchema: z.ZodType< SearchHubsResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => SearchHubsResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: z.lazy(() => SearchHubsResponseBody$inboundSchema), }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/setchannelmap.ts b/src/models/operations/setchannelmap.ts similarity index 78% rename from src/sdk/models/operations/setchannelmap.ts rename to src/models/operations/setchannelmap.ts index f5fd4364..0bf99231 100644 --- a/src/sdk/models/operations/setchannelmap.ts +++ b/src/models/operations/setchannelmap.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type SetChannelmapGlobals = { @@ -129,32 +126,12 @@ export type SetChannelmapRequest = { channelsEnabled?: Array | undefined; }; -export type SetChannelmapResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithDevice?: shared.MediaContainerWithDevice | undefined; -}; - /** @internal */ export type SetChannelmapChannelMapping$Outbound = {}; /** @internal */ export const SetChannelmapChannelMapping$outboundSchema: z.ZodType< SetChannelmapChannelMapping$Outbound, - z.ZodTypeDef, SetChannelmapChannelMapping > = z.object({}); @@ -174,7 +151,6 @@ export type ChannelMappingByKey$Outbound = {}; /** @internal */ export const ChannelMappingByKey$outboundSchema: z.ZodType< ChannelMappingByKey$Outbound, - z.ZodTypeDef, ChannelMappingByKey > = z.object({}); @@ -208,7 +184,6 @@ export type SetChannelmapRequest$Outbound = { /** @internal */ export const SetChannelmapRequest$outboundSchema: z.ZodType< SetChannelmapRequest$Outbound, - z.ZodTypeDef, SetChannelmapRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -222,7 +197,7 @@ export const SetChannelmapRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - deviceId: z.number().int(), + deviceId: z.int(), channelMapping: z.lazy(() => SetChannelmapChannelMapping$outboundSchema) .optional(), channelMappingByKey: z.lazy(() => ChannelMappingByKey$outboundSchema) @@ -250,33 +225,3 @@ export function setChannelmapRequestToJSON( SetChannelmapRequest$outboundSchema.parse(setChannelmapRequest), ); } - -/** @internal */ -export const SetChannelmapResponse$inboundSchema: z.ZodType< - SetChannelmapResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithDevice: shared.MediaContainerWithDevice$inboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithDevice": "mediaContainerWithDevice", - }); -}); - -export function setChannelmapResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SetChannelmapResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SetChannelmapResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/setdevicepreferences.ts b/src/models/operations/setdevicepreferences.ts similarity index 75% rename from src/sdk/models/operations/setdevicepreferences.ts rename to src/models/operations/setdevicepreferences.ts index e63b9b08..3b95a6bb 100644 --- a/src/sdk/models/operations/setdevicepreferences.ts +++ b/src/models/operations/setdevicepreferences.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type SetDevicePreferencesGlobals = { @@ -111,21 +108,6 @@ export type SetDevicePreferencesRequest = { name?: string | undefined; }; -export type SetDevicePreferencesResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type SetDevicePreferencesRequest$Outbound = { accepts: string; @@ -146,7 +128,6 @@ export type SetDevicePreferencesRequest$Outbound = { /** @internal */ export const SetDevicePreferencesRequest$outboundSchema: z.ZodType< SetDevicePreferencesRequest$Outbound, - z.ZodTypeDef, SetDevicePreferencesRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -160,7 +141,7 @@ export const SetDevicePreferencesRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - deviceId: z.number().int(), + deviceId: z.int(), name: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -186,30 +167,3 @@ export function setDevicePreferencesRequestToJSON( ), ); } - -/** @internal */ -export const SetDevicePreferencesResponse$inboundSchema: z.ZodType< - SetDevicePreferencesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function setDevicePreferencesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SetDevicePreferencesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SetDevicePreferencesResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/setdvrpreferences.ts b/src/models/operations/setdvrpreferences.ts similarity index 83% rename from src/sdk/models/operations/setdvrpreferences.ts rename to src/models/operations/setdvrpreferences.ts index 037ca667..272a244f 100644 --- a/src/sdk/models/operations/setdvrpreferences.ts +++ b/src/models/operations/setdvrpreferences.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -160,23 +161,8 @@ export type SetDVRPreferencesResponseBody = { }; export type SetDVRPreferencesResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: SetDVRPreferencesResponseBody | undefined; headers: { [k: string]: Array }; + result: SetDVRPreferencesResponseBody; }; /** @internal */ @@ -199,7 +185,6 @@ export type SetDVRPreferencesRequest$Outbound = { /** @internal */ export const SetDVRPreferencesRequest$outboundSchema: z.ZodType< SetDVRPreferencesRequest$Outbound, - z.ZodTypeDef, SetDVRPreferencesRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -213,7 +198,7 @@ export const SetDVRPreferencesRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - dvrId: z.number().int(), + dvrId: z.int(), name: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -240,16 +225,12 @@ export function setDVRPreferencesRequestToJSON( /** @internal */ export const SetDVRPreferencesMediaContainerMediaContainer$inboundSchema: - z.ZodType< - SetDVRPreferencesMediaContainerMediaContainer, - z.ZodTypeDef, - unknown - > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - status: z.number().int().optional(), + z.ZodType = z.object({ + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + status: types.optional(types.number()), }); export function setDVRPreferencesMediaContainerMediaContainerFromJSON( @@ -271,14 +252,13 @@ export function setDVRPreferencesMediaContainerMediaContainerFromJSON( /** @internal */ export const SetDVRPreferencesDVR$inboundSchema: z.ZodType< SetDVRPreferencesDVR, - z.ZodTypeDef, unknown > = z.object({ - Device: z.array(shared.Device$inboundSchema).optional(), - key: z.string().optional(), - language: z.string().optional(), - lineup: z.string().optional(), - uuid: z.string().optional(), + Device: types.optional(z.array(shared.Device$inboundSchema)), + key: types.optional(types.string()), + language: types.optional(types.string()), + lineup: types.optional(types.string()), + uuid: types.optional(types.string()), }).transform((v) => { return remap$(v, { "Device": "device", @@ -298,13 +278,14 @@ export function setDVRPreferencesDVRFromJSON( /** @internal */ export const SetDVRPreferencesMediaContainer$inboundSchema: z.ZodType< SetDVRPreferencesMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => - SetDVRPreferencesMediaContainerMediaContainer$inboundSchema - ).optional(), - DVR: z.array(z.lazy(() => SetDVRPreferencesDVR$inboundSchema)).optional(), + MediaContainer: types.optional( + z.lazy(() => SetDVRPreferencesMediaContainerMediaContainer$inboundSchema), + ), + DVR: types.optional( + z.array(z.lazy(() => SetDVRPreferencesDVR$inboundSchema)), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -325,11 +306,11 @@ export function setDVRPreferencesMediaContainerFromJSON( /** @internal */ export const SetDVRPreferencesResponseBody$inboundSchema: z.ZodType< SetDVRPreferencesResponseBody, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => SetDVRPreferencesMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => SetDVRPreferencesMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -349,20 +330,14 @@ export function setDVRPreferencesResponseBodyFromJSON( /** @internal */ export const SetDVRPreferencesResponse$inboundSchema: z.ZodType< SetDVRPreferencesResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => SetDVRPreferencesResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: z.lazy(() => SetDVRPreferencesResponseBody$inboundSchema), }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/setitemartwork.ts b/src/models/operations/setitemartwork.ts similarity index 75% rename from src/sdk/models/operations/setitemartwork.ts rename to src/models/operations/setitemartwork.ts index d913ab56..137fd599 100644 --- a/src/sdk/models/operations/setitemartwork.ts +++ b/src/models/operations/setitemartwork.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type SetItemArtworkGlobals = { @@ -118,25 +115,10 @@ export type SetItemArtworkRequest = { url?: string | undefined; }; -export type SetItemArtworkResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ -export const SetItemArtworkElement$outboundSchema: z.ZodNativeEnum< +export const SetItemArtworkElement$outboundSchema: z.ZodEnum< typeof SetItemArtworkElement -> = z.nativeEnum(SetItemArtworkElement); +> = z.enum(SetItemArtworkElement); /** @internal */ export type SetItemArtworkRequest$Outbound = { @@ -159,7 +141,6 @@ export type SetItemArtworkRequest$Outbound = { /** @internal */ export const SetItemArtworkRequest$outboundSchema: z.ZodType< SetItemArtworkRequest$Outbound, - z.ZodTypeDef, SetItemArtworkRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -198,30 +179,3 @@ export function setItemArtworkRequestToJSON( SetItemArtworkRequest$outboundSchema.parse(setItemArtworkRequest), ); } - -/** @internal */ -export const SetItemArtworkResponse$inboundSchema: z.ZodType< - SetItemArtworkResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function setItemArtworkResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SetItemArtworkResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SetItemArtworkResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/setitempreferences.ts b/src/models/operations/setitempreferences.ts similarity index 77% rename from src/sdk/models/operations/setitempreferences.ts rename to src/models/operations/setitempreferences.ts index 20d28b86..59e04b84 100644 --- a/src/sdk/models/operations/setitempreferences.ts +++ b/src/models/operations/setitempreferences.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type SetItemPreferencesGlobals = { @@ -107,28 +104,12 @@ export type SetItemPreferencesRequest = { args?: SetItemPreferencesArgs | undefined; }; -export type SetItemPreferencesResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type SetItemPreferencesArgs$Outbound = {}; /** @internal */ export const SetItemPreferencesArgs$outboundSchema: z.ZodType< SetItemPreferencesArgs$Outbound, - z.ZodTypeDef, SetItemPreferencesArgs > = z.object({}); @@ -160,7 +141,6 @@ export type SetItemPreferencesRequest$Outbound = { /** @internal */ export const SetItemPreferencesRequest$outboundSchema: z.ZodType< SetItemPreferencesRequest$Outbound, - z.ZodTypeDef, SetItemPreferencesRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -198,30 +178,3 @@ export function setItemPreferencesRequestToJSON( SetItemPreferencesRequest$outboundSchema.parse(setItemPreferencesRequest), ); } - -/** @internal */ -export const SetItemPreferencesResponse$inboundSchema: z.ZodType< - SetItemPreferencesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function setItemPreferencesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SetItemPreferencesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SetItemPreferencesResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/setpreferences.ts b/src/models/operations/setpreferences.ts similarity index 76% rename from src/sdk/models/operations/setpreferences.ts rename to src/models/operations/setpreferences.ts index e0582e90..bb9ee9c3 100644 --- a/src/sdk/models/operations/setpreferences.ts +++ b/src/models/operations/setpreferences.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type SetPreferencesGlobals = { @@ -106,28 +103,12 @@ export type SetPreferencesRequest = { prefs: SetPreferencesPrefs; }; -export type SetPreferencesResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type SetPreferencesPrefs$Outbound = {}; /** @internal */ export const SetPreferencesPrefs$outboundSchema: z.ZodType< SetPreferencesPrefs$Outbound, - z.ZodTypeDef, SetPreferencesPrefs > = z.object({}); @@ -158,7 +139,6 @@ export type SetPreferencesRequest$Outbound = { /** @internal */ export const SetPreferencesRequest$outboundSchema: z.ZodType< SetPreferencesRequest$Outbound, - z.ZodTypeDef, SetPreferencesRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -195,30 +175,3 @@ export function setPreferencesRequestToJSON( SetPreferencesRequest$outboundSchema.parse(setPreferencesRequest), ); } - -/** @internal */ -export const SetPreferencesResponse$inboundSchema: z.ZodType< - SetPreferencesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function setPreferencesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SetPreferencesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SetPreferencesResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/setrating.ts b/src/models/operations/setrating.ts similarity index 76% rename from src/sdk/models/operations/setrating.ts rename to src/models/operations/setrating.ts index 5999b3ee..9d8607db 100644 --- a/src/sdk/models/operations/setrating.ts +++ b/src/models/operations/setrating.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type SetRatingGlobals = { @@ -119,21 +116,6 @@ export type SetRatingRequest = { ratedAt?: number | undefined; }; -export type SetRatingResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type SetRatingRequest$Outbound = { accepts: string; @@ -156,7 +138,6 @@ export type SetRatingRequest$Outbound = { /** @internal */ export const SetRatingRequest$outboundSchema: z.ZodType< SetRatingRequest$Outbound, - z.ZodTypeDef, SetRatingRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -173,7 +154,7 @@ export const SetRatingRequest$outboundSchema: z.ZodType< identifier: z.string(), key: z.string(), rating: z.number(), - ratedAt: z.number().int().optional(), + ratedAt: z.int().optional(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -196,30 +177,3 @@ export function setRatingRequestToJSON( SetRatingRequest$outboundSchema.parse(setRatingRequest), ); } - -/** @internal */ -export const SetRatingResponse$inboundSchema: z.ZodType< - SetRatingResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function setRatingResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SetRatingResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SetRatingResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/setsectionpreferences.ts b/src/models/operations/setsectionpreferences.ts similarity index 76% rename from src/sdk/models/operations/setsectionpreferences.ts rename to src/models/operations/setsectionpreferences.ts index 69f9d816..a836b9ed 100644 --- a/src/sdk/models/operations/setsectionpreferences.ts +++ b/src/models/operations/setsectionpreferences.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type SetSectionPreferencesGlobals = { @@ -110,28 +107,12 @@ export type SetSectionPreferencesRequest = { prefs: SetSectionPreferencesPrefs; }; -export type SetSectionPreferencesResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type SetSectionPreferencesPrefs$Outbound = {}; /** @internal */ export const SetSectionPreferencesPrefs$outboundSchema: z.ZodType< SetSectionPreferencesPrefs$Outbound, - z.ZodTypeDef, SetSectionPreferencesPrefs > = z.object({}); @@ -163,7 +144,6 @@ export type SetSectionPreferencesRequest$Outbound = { /** @internal */ export const SetSectionPreferencesRequest$outboundSchema: z.ZodType< SetSectionPreferencesRequest$Outbound, - z.ZodTypeDef, SetSectionPreferencesRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -177,7 +157,7 @@ export const SetSectionPreferencesRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - sectionId: z.number().int(), + sectionId: z.int(), prefs: z.lazy(() => SetSectionPreferencesPrefs$outboundSchema), }).transform((v) => { return remap$(v, { @@ -203,30 +183,3 @@ export function setSectionPreferencesRequestToJSON( ), ); } - -/** @internal */ -export const SetSectionPreferencesResponse$inboundSchema: z.ZodType< - SetSectionPreferencesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function setSectionPreferencesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SetSectionPreferencesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SetSectionPreferencesResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/setstreamoffset.ts b/src/models/operations/setstreamoffset.ts similarity index 75% rename from src/sdk/models/operations/setstreamoffset.ts rename to src/models/operations/setstreamoffset.ts index 1e186003..8523c5fb 100644 --- a/src/sdk/models/operations/setstreamoffset.ts +++ b/src/models/operations/setstreamoffset.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type SetStreamOffsetGlobals = { @@ -115,21 +112,6 @@ export type SetStreamOffsetRequest = { offset?: number | undefined; }; -export type SetStreamOffsetResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type SetStreamOffsetRequest$Outbound = { accepts: string; @@ -151,7 +133,6 @@ export type SetStreamOffsetRequest$Outbound = { /** @internal */ export const SetStreamOffsetRequest$outboundSchema: z.ZodType< SetStreamOffsetRequest$Outbound, - z.ZodTypeDef, SetStreamOffsetRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -165,9 +146,9 @@ export const SetStreamOffsetRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - streamId: z.number().int(), + streamId: z.int(), ext: z.string(), - offset: z.number().int().optional(), + offset: z.int().optional(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -190,30 +171,3 @@ export function setStreamOffsetRequestToJSON( SetStreamOffsetRequest$outboundSchema.parse(setStreamOffsetRequest), ); } - -/** @internal */ -export const SetStreamOffsetResponse$inboundSchema: z.ZodType< - SetStreamOffsetResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function setStreamOffsetResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SetStreamOffsetResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SetStreamOffsetResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/setstreamselection.ts b/src/models/operations/setstreamselection.ts similarity index 75% rename from src/sdk/models/operations/setstreamselection.ts rename to src/models/operations/setstreamselection.ts index 19d47597..32a0aa40 100644 --- a/src/sdk/models/operations/setstreamselection.ts +++ b/src/models/operations/setstreamselection.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type SetStreamSelectionGlobals = { @@ -119,21 +116,6 @@ export type SetStreamSelectionRequest = { allParts?: shared.BoolInt | undefined; }; -export type SetStreamSelectionResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type SetStreamSelectionRequest$Outbound = { accepts: string; @@ -156,7 +138,6 @@ export type SetStreamSelectionRequest$Outbound = { /** @internal */ export const SetStreamSelectionRequest$outboundSchema: z.ZodType< SetStreamSelectionRequest$Outbound, - z.ZodTypeDef, SetStreamSelectionRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -170,9 +151,9 @@ export const SetStreamSelectionRequest$outboundSchema: z.ZodType< 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(), + partId: z.int(), + audioStreamID: z.int().optional(), + subtitleStreamID: z.int().optional(), allParts: shared.BoolInt$outboundSchema.default(shared.BoolInt.False), }).transform((v) => { return remap$(v, { @@ -196,30 +177,3 @@ export function setStreamSelectionRequestToJSON( SetStreamSelectionRequest$outboundSchema.parse(setStreamSelectionRequest), ); } - -/** @internal */ -export const SetStreamSelectionResponse$inboundSchema: z.ZodType< - SetStreamSelectionResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function setStreamSelectionResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SetStreamSelectionResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SetStreamSelectionResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/shuffle.ts b/src/models/operations/shuffle.ts similarity index 70% rename from src/sdk/models/operations/shuffle.ts rename to src/models/operations/shuffle.ts index 1c3a0ead..ef31d378 100644 --- a/src/sdk/models/operations/shuffle.ts +++ b/src/models/operations/shuffle.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type ShuffleGlobals = { @@ -107,27 +104,6 @@ export type ShuffleRequest = { playQueueId: number; }; -export type ShuffleResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithPlaylistMetadata?: - | shared.MediaContainerWithPlaylistMetadata - | undefined; -}; - /** @internal */ export type ShuffleRequest$Outbound = { accepts: string; @@ -147,7 +123,6 @@ export type ShuffleRequest$Outbound = { /** @internal */ export const ShuffleRequest$outboundSchema: z.ZodType< ShuffleRequest$Outbound, - z.ZodTypeDef, ShuffleRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -161,7 +136,7 @@ export const ShuffleRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - playQueueId: z.number().int(), + playQueueId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -180,33 +155,3 @@ export const ShuffleRequest$outboundSchema: z.ZodType< export function shuffleRequestToJSON(shuffleRequest: ShuffleRequest): string { return JSON.stringify(ShuffleRequest$outboundSchema.parse(shuffleRequest)); } - -/** @internal */ -export const ShuffleResponse$inboundSchema: z.ZodType< - ShuffleResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithPlaylistMetadata: shared - .MediaContainerWithPlaylistMetadata$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithPlaylistMetadata": "mediaContainerWithPlaylistMetadata", - }); -}); - -export function shuffleResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ShuffleResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ShuffleResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/splititem.ts b/src/models/operations/splititem.ts similarity index 75% rename from src/sdk/models/operations/splititem.ts rename to src/models/operations/splititem.ts index bfa93767..01dbb062 100644 --- a/src/sdk/models/operations/splititem.ts +++ b/src/models/operations/splititem.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type SplitItemGlobals = { @@ -104,21 +101,6 @@ export type SplitItemRequest = { ids: string; }; -export type SplitItemResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type SplitItemRequest$Outbound = { accepts: string; @@ -138,7 +120,6 @@ export type SplitItemRequest$Outbound = { /** @internal */ export const SplitItemRequest$outboundSchema: z.ZodType< SplitItemRequest$Outbound, - z.ZodTypeDef, SplitItemRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -175,30 +156,3 @@ export function splitItemRequestToJSON( SplitItemRequest$outboundSchema.parse(splitItemRequest), ); } - -/** @internal */ -export const SplitItemResponse$inboundSchema: z.ZodType< - SplitItemResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function splitItemResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SplitItemResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SplitItemResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/startanalysis.ts b/src/models/operations/startanalysis.ts similarity index 74% rename from src/sdk/models/operations/startanalysis.ts rename to src/models/operations/startanalysis.ts index 28b7802f..2a6a04f6 100644 --- a/src/sdk/models/operations/startanalysis.ts +++ b/src/models/operations/startanalysis.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type StartAnalysisGlobals = { @@ -107,21 +104,6 @@ export type StartAnalysisRequest = { sectionId: number; }; -export type StartAnalysisResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type StartAnalysisRequest$Outbound = { accepts: string; @@ -141,7 +123,6 @@ export type StartAnalysisRequest$Outbound = { /** @internal */ export const StartAnalysisRequest$outboundSchema: z.ZodType< StartAnalysisRequest$Outbound, - z.ZodTypeDef, StartAnalysisRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -155,7 +136,7 @@ export const StartAnalysisRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - sectionId: z.number().int(), + sectionId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -178,30 +159,3 @@ export function startAnalysisRequestToJSON( StartAnalysisRequest$outboundSchema.parse(startAnalysisRequest), ); } - -/** @internal */ -export const StartAnalysisResponse$inboundSchema: z.ZodType< - StartAnalysisResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function startAnalysisResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => StartAnalysisResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'StartAnalysisResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/startbifgeneration.ts b/src/models/operations/startbifgeneration.ts similarity index 75% rename from src/sdk/models/operations/startbifgeneration.ts rename to src/models/operations/startbifgeneration.ts index 814001fc..bf840812 100644 --- a/src/sdk/models/operations/startbifgeneration.ts +++ b/src/models/operations/startbifgeneration.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type StartBifGenerationGlobals = { @@ -105,21 +102,6 @@ export type StartBifGenerationRequest = { force?: shared.BoolInt | undefined; }; -export type StartBifGenerationResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type StartBifGenerationRequest$Outbound = { accepts: string; @@ -140,7 +122,6 @@ export type StartBifGenerationRequest$Outbound = { /** @internal */ export const StartBifGenerationRequest$outboundSchema: z.ZodType< StartBifGenerationRequest$Outbound, - z.ZodTypeDef, StartBifGenerationRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -178,30 +159,3 @@ export function startBifGenerationRequestToJSON( StartBifGenerationRequest$outboundSchema.parse(startBifGenerationRequest), ); } - -/** @internal */ -export const StartBifGenerationResponse$inboundSchema: z.ZodType< - StartBifGenerationResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function startBifGenerationResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => StartBifGenerationResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'StartBifGenerationResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/starttask.ts b/src/models/operations/starttask.ts similarity index 78% rename from src/sdk/models/operations/starttask.ts rename to src/models/operations/starttask.ts index 94d47442..3f616925 100644 --- a/src/sdk/models/operations/starttask.ts +++ b/src/models/operations/starttask.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type StartTaskGlobals = { @@ -135,25 +132,10 @@ export type StartTaskRequest = { butlerTask: StartTaskButlerTask; }; -export type StartTaskResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ -export const StartTaskButlerTask$outboundSchema: z.ZodNativeEnum< +export const StartTaskButlerTask$outboundSchema: z.ZodEnum< typeof StartTaskButlerTask -> = z.nativeEnum(StartTaskButlerTask); +> = z.enum(StartTaskButlerTask); /** @internal */ export type StartTaskRequest$Outbound = { @@ -174,7 +156,6 @@ export type StartTaskRequest$Outbound = { /** @internal */ export const StartTaskRequest$outboundSchema: z.ZodType< StartTaskRequest$Outbound, - z.ZodTypeDef, StartTaskRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -211,30 +192,3 @@ export function startTaskRequestToJSON( StartTaskRequest$outboundSchema.parse(startTaskRequest), ); } - -/** @internal */ -export const StartTaskResponse$inboundSchema: z.ZodType< - StartTaskResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function startTaskResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => StartTaskResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'StartTaskResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/starttranscodesession.ts b/src/models/operations/starttranscodesession.ts similarity index 84% rename from src/sdk/models/operations/starttranscodesession.ts rename to src/models/operations/starttranscodesession.ts index da9bfbc4..7cbfa05d 100644 --- a/src/sdk/models/operations/starttranscodesession.ts +++ b/src/models/operations/starttranscodesession.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type StartTranscodeSessionGlobals = { @@ -284,43 +281,25 @@ export type StartTranscodeSessionRequest = { xPlexSessionIdentifier?: string | undefined; }; -export type StartTranscodeSessionResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * MPD file (see ISO/IEC 23009-1:2022), m3u8 file (see RFC 8216), or binary http stream - */ - responseStream?: ReadableStream | undefined; -}; +/** @internal */ +export const Extension$outboundSchema: z.ZodEnum = z.enum( + Extension, +); /** @internal */ -export const Extension$outboundSchema: z.ZodNativeEnum = z - .nativeEnum(Extension); - -/** @internal */ -export const StartTranscodeSessionLocation$outboundSchema: z.ZodNativeEnum< +export const StartTranscodeSessionLocation$outboundSchema: z.ZodEnum< typeof StartTranscodeSessionLocation -> = z.nativeEnum(StartTranscodeSessionLocation); +> = z.enum(StartTranscodeSessionLocation); /** @internal */ -export const StartTranscodeSessionProtocol$outboundSchema: z.ZodNativeEnum< +export const StartTranscodeSessionProtocol$outboundSchema: z.ZodEnum< typeof StartTranscodeSessionProtocol -> = z.nativeEnum(StartTranscodeSessionProtocol); +> = z.enum(StartTranscodeSessionProtocol); /** @internal */ -export const StartTranscodeSessionSubtitles$outboundSchema: z.ZodNativeEnum< +export const StartTranscodeSessionSubtitles$outboundSchema: z.ZodEnum< typeof StartTranscodeSessionSubtitles -> = z.nativeEnum(StartTranscodeSessionSubtitles); +> = z.enum(StartTranscodeSessionSubtitles); /** @internal */ export type StartTranscodeSessionRequest$Outbound = { @@ -372,7 +351,6 @@ export type StartTranscodeSessionRequest$Outbound = { /** @internal */ export const StartTranscodeSessionRequest$outboundSchema: z.ZodType< StartTranscodeSessionRequest$Outbound, - z.ZodTypeDef, StartTranscodeSessionRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -390,8 +368,8 @@ export const StartTranscodeSessionRequest$outboundSchema: z.ZodType< transcodeSessionId: z.string().optional(), extension: Extension$outboundSchema, advancedSubtitles: shared.AdvancedSubtitles$outboundSchema.optional(), - audioBoost: z.number().int().optional(), - audioChannelCount: z.number().int().optional(), + audioBoost: z.int().optional(), + audioChannelCount: z.int().optional(), autoAdjustQuality: shared.BoolInt$outboundSchema.default( shared.BoolInt.False, ), @@ -408,20 +386,20 @@ export const StartTranscodeSessionRequest$outboundSchema: z.ZodType< ), hasMDE: shared.BoolInt$outboundSchema.default(shared.BoolInt.False), location: StartTranscodeSessionLocation$outboundSchema.optional(), - mediaBufferSize: z.number().int().optional(), - mediaIndex: z.number().int().optional(), - musicBitrate: z.number().int().optional(), + mediaBufferSize: z.int().optional(), + mediaIndex: z.int().optional(), + musicBitrate: z.int().optional(), offset: z.number().optional(), - partIndex: z.number().int().optional(), + partIndex: z.int().optional(), path: z.string().optional(), - peakBitrate: z.number().int().optional(), + peakBitrate: z.int().optional(), photoResolution: z.string().optional(), protocol: StartTranscodeSessionProtocol$outboundSchema.optional(), - secondsPerSegment: z.number().int().optional(), - subtitleSize: z.number().int().optional(), + secondsPerSegment: z.int().optional(), + subtitleSize: z.int().optional(), subtitles: StartTranscodeSessionSubtitles$outboundSchema.optional(), - videoBitrate: z.number().int().optional(), - videoQuality: z.number().int().optional(), + videoBitrate: z.int().optional(), + videoQuality: z.int().optional(), videoResolution: z.string().optional(), xPlexClientProfileExtra: z.string().optional(), xPlexClientProfileName: z.string().optional(), @@ -453,32 +431,3 @@ export function startTranscodeSessionRequestToJSON( ), ); } - -/** @internal */ -export const StartTranscodeSessionResponse$inboundSchema: z.ZodType< - StartTranscodeSessionResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - "response-stream": z.instanceof(ReadableStream).optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "response-stream": "responseStream", - }); -}); - -export function startTranscodeSessionResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => StartTranscodeSessionResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'StartTranscodeSessionResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/stopdvrreload.ts b/src/models/operations/stopdvrreload.ts similarity index 74% rename from src/sdk/models/operations/stopdvrreload.ts rename to src/models/operations/stopdvrreload.ts index 6babd479..69bcecca 100644 --- a/src/sdk/models/operations/stopdvrreload.ts +++ b/src/models/operations/stopdvrreload.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type StopDVRReloadGlobals = { @@ -107,21 +104,6 @@ export type StopDVRReloadRequest = { dvrId: number; }; -export type StopDVRReloadResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type StopDVRReloadRequest$Outbound = { accepts: string; @@ -141,7 +123,6 @@ export type StopDVRReloadRequest$Outbound = { /** @internal */ export const StopDVRReloadRequest$outboundSchema: z.ZodType< StopDVRReloadRequest$Outbound, - z.ZodTypeDef, StopDVRReloadRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -155,7 +136,7 @@ export const StopDVRReloadRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - dvrId: z.number().int(), + dvrId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -178,30 +159,3 @@ export function stopDVRReloadRequestToJSON( StopDVRReloadRequest$outboundSchema.parse(stopDVRReloadRequest), ); } - -/** @internal */ -export const StopDVRReloadResponse$inboundSchema: z.ZodType< - StopDVRReloadResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function stopDVRReloadResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => StopDVRReloadResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'StopDVRReloadResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/stopscan.ts b/src/models/operations/stopscan.ts similarity index 71% rename from src/sdk/models/operations/stopscan.ts rename to src/models/operations/stopscan.ts index 79ab0188..4fc087c8 100644 --- a/src/sdk/models/operations/stopscan.ts +++ b/src/models/operations/stopscan.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type StopScanGlobals = { @@ -107,25 +104,6 @@ export type StopScanRequest = { deviceId: number; }; -export type StopScanResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithDevice?: shared.MediaContainerWithDevice | undefined; -}; - /** @internal */ export type StopScanRequest$Outbound = { accepts: string; @@ -145,7 +123,6 @@ export type StopScanRequest$Outbound = { /** @internal */ export const StopScanRequest$outboundSchema: z.ZodType< StopScanRequest$Outbound, - z.ZodTypeDef, StopScanRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -159,7 +136,7 @@ export const StopScanRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - deviceId: z.number().int(), + deviceId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -180,33 +157,3 @@ export function stopScanRequestToJSON( ): string { return JSON.stringify(StopScanRequest$outboundSchema.parse(stopScanRequest)); } - -/** @internal */ -export const StopScanResponse$inboundSchema: z.ZodType< - StopScanResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithDevice: shared.MediaContainerWithDevice$inboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithDevice": "mediaContainerWithDevice", - }); -}); - -export function stopScanResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => StopScanResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'StopScanResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/stoptask.ts b/src/models/operations/stoptask.ts similarity index 78% rename from src/sdk/models/operations/stoptask.ts rename to src/models/operations/stoptask.ts index a3f393ad..084891f8 100644 --- a/src/sdk/models/operations/stoptask.ts +++ b/src/models/operations/stoptask.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type StopTaskGlobals = { @@ -135,25 +132,10 @@ export type StopTaskRequest = { butlerTask: StopTaskButlerTask; }; -export type StopTaskResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ -export const StopTaskButlerTask$outboundSchema: z.ZodNativeEnum< +export const StopTaskButlerTask$outboundSchema: z.ZodEnum< typeof StopTaskButlerTask -> = z.nativeEnum(StopTaskButlerTask); +> = z.enum(StopTaskButlerTask); /** @internal */ export type StopTaskRequest$Outbound = { @@ -174,7 +156,6 @@ export type StopTaskRequest$Outbound = { /** @internal */ export const StopTaskRequest$outboundSchema: z.ZodType< StopTaskRequest$Outbound, - z.ZodTypeDef, StopTaskRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -209,30 +190,3 @@ export function stopTaskRequestToJSON( ): string { return JSON.stringify(StopTaskRequest$outboundSchema.parse(stopTaskRequest)); } - -/** @internal */ -export const StopTaskResponse$inboundSchema: z.ZodType< - StopTaskResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function stopTaskResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => StopTaskResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'StopTaskResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/terminatesession.ts b/src/models/operations/terminatesession.ts similarity index 76% rename from src/sdk/models/operations/terminatesession.ts rename to src/models/operations/terminatesession.ts index eb023672..4d918f20 100644 --- a/src/sdk/models/operations/terminatesession.ts +++ b/src/models/operations/terminatesession.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type TerminateSessionGlobals = { @@ -111,21 +108,6 @@ export type TerminateSessionRequest = { reason?: string | undefined; }; -export type TerminateSessionResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type TerminateSessionRequest$Outbound = { accepts: string; @@ -146,7 +128,6 @@ export type TerminateSessionRequest$Outbound = { /** @internal */ export const TerminateSessionRequest$outboundSchema: z.ZodType< TerminateSessionRequest$Outbound, - z.ZodTypeDef, TerminateSessionRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -184,30 +165,3 @@ export function terminateSessionRequestToJSON( TerminateSessionRequest$outboundSchema.parse(terminateSessionRequest), ); } - -/** @internal */ -export const TerminateSessionResponse$inboundSchema: z.ZodType< - TerminateSessionResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function terminateSessionResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => TerminateSessionResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'TerminateSessionResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/transcodeimage.ts b/src/models/operations/transcodeimage.ts similarity index 78% rename from src/sdk/models/operations/transcodeimage.ts rename to src/models/operations/transcodeimage.ts index 0672ba15..780dad3f 100644 --- a/src/sdk/models/operations/transcodeimage.ts +++ b/src/models/operations/transcodeimage.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import { smartUnion } from "../../types/smartUnion.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -193,43 +194,18 @@ export type TranscodeImageRequest = { blendColor?: string | undefined; }; -export type TranscodeImageResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * The resulting image - */ - twoHundredImageJpegResponseStream?: ReadableStream | undefined; - /** - * The resulting image - */ - twoHundredImagePngResponseStream?: ReadableStream | undefined; - /** - * The resulting image - */ - twoHundredImageXPortablePixmapResponseStream?: - | ReadableStream - | undefined; -}; +export type TranscodeImageResponse = + | ReadableStream + | ReadableStream + | ReadableStream; /** @internal */ -export const Format$outboundSchema: z.ZodNativeEnum = z - .nativeEnum(Format); +export const Format$outboundSchema: z.ZodEnum = z.enum(Format); /** @internal */ -export const ChromaSubsampling$outboundSchema: z.ZodNativeEnum< +export const ChromaSubsampling$outboundSchema: z.ZodEnum< typeof ChromaSubsampling -> = z.nativeEnum(ChromaSubsampling); +> = z.enum(ChromaSubsampling); /** @internal */ export type TranscodeImageRequest$Outbound = { @@ -263,7 +239,6 @@ export type TranscodeImageRequest$Outbound = { /** @internal */ export const TranscodeImageRequest$outboundSchema: z.ZodType< TranscodeImageRequest$Outbound, - z.ZodTypeDef, TranscodeImageRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -279,16 +254,16 @@ export const TranscodeImageRequest$outboundSchema: z.ZodType< marketplace: z.string().optional(), url: z.string().optional(), format: Format$outboundSchema.optional(), - width: z.number().int().optional(), - height: z.number().int().optional(), - quality: z.number().int().optional(), + width: z.int().optional(), + height: z.int().optional(), + quality: z.int().optional(), background: z.string().optional(), upscale: shared.BoolInt$outboundSchema.default(shared.BoolInt.False), minSize: shared.BoolInt$outboundSchema.default(shared.BoolInt.False), rotate: shared.BoolInt$outboundSchema.default(shared.BoolInt.False), - blur: z.number().int().optional(), - saturation: z.number().int().optional(), - opacity: z.number().int().optional(), + blur: z.int().optional(), + saturation: z.int().optional(), + opacity: z.int().optional(), chromaSubsampling: ChromaSubsampling$outboundSchema.optional(), blendColor: z.string().optional(), }).transform((v) => { @@ -317,30 +292,12 @@ export function transcodeImageRequestToJSON( /** @internal */ export const TranscodeImageResponse$inboundSchema: z.ZodType< TranscodeImageResponse, - z.ZodTypeDef, unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - "200_image/jpeg_response-stream": z.instanceof(ReadableStream) - .optional(), - "200_image/png_response-stream": z.instanceof(ReadableStream) - .optional(), - "200_image/x-portable-pixmap_response-stream": z.instanceof( - ReadableStream, - ).optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "200_image/jpeg_response-stream": "twoHundredImageJpegResponseStream", - "200_image/png_response-stream": "twoHundredImagePngResponseStream", - "200_image/x-portable-pixmap_response-stream": - "twoHundredImageXPortablePixmapResponseStream", - }); -}); +> = smartUnion([ + z.custom>(x => x instanceof ReadableStream), + z.custom>(x => x instanceof ReadableStream), + z.custom>(x => x instanceof ReadableStream), +]); export function transcodeImageResponseFromJSON( jsonString: string, diff --git a/src/sdk/models/operations/transcodesubtitles.ts b/src/models/operations/transcodesubtitles.ts similarity index 85% rename from src/sdk/models/operations/transcodesubtitles.ts rename to src/models/operations/transcodesubtitles.ts index b5a6a361..028b93eb 100644 --- a/src/sdk/models/operations/transcodesubtitles.ts +++ b/src/models/operations/transcodesubtitles.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type TranscodeSubtitlesGlobals = { @@ -268,35 +265,20 @@ export type TranscodeSubtitlesRequest = { xPlexSessionIdentifier?: string | undefined; }; -export type TranscodeSubtitlesResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ -export const TranscodeSubtitlesLocation$outboundSchema: z.ZodNativeEnum< +export const TranscodeSubtitlesLocation$outboundSchema: z.ZodEnum< typeof TranscodeSubtitlesLocation -> = z.nativeEnum(TranscodeSubtitlesLocation); +> = z.enum(TranscodeSubtitlesLocation); /** @internal */ -export const TranscodeSubtitlesProtocol$outboundSchema: z.ZodNativeEnum< +export const TranscodeSubtitlesProtocol$outboundSchema: z.ZodEnum< typeof TranscodeSubtitlesProtocol -> = z.nativeEnum(TranscodeSubtitlesProtocol); +> = z.enum(TranscodeSubtitlesProtocol); /** @internal */ -export const TranscodeSubtitlesSubtitles$outboundSchema: z.ZodNativeEnum< +export const TranscodeSubtitlesSubtitles$outboundSchema: z.ZodEnum< typeof TranscodeSubtitlesSubtitles -> = z.nativeEnum(TranscodeSubtitlesSubtitles); +> = z.enum(TranscodeSubtitlesSubtitles); /** @internal */ export type TranscodeSubtitlesRequest$Outbound = { @@ -347,7 +329,6 @@ export type TranscodeSubtitlesRequest$Outbound = { /** @internal */ export const TranscodeSubtitlesRequest$outboundSchema: z.ZodType< TranscodeSubtitlesRequest$Outbound, - z.ZodTypeDef, TranscodeSubtitlesRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -364,8 +345,8 @@ export const TranscodeSubtitlesRequest$outboundSchema: z.ZodType< transcodeType: shared.TranscodeType$outboundSchema, transcodeSessionId: z.string().optional(), advancedSubtitles: shared.AdvancedSubtitles$outboundSchema.optional(), - audioBoost: z.number().int().optional(), - audioChannelCount: z.number().int().optional(), + audioBoost: z.int().optional(), + audioChannelCount: z.int().optional(), autoAdjustQuality: shared.BoolInt$outboundSchema.default( shared.BoolInt.False, ), @@ -382,20 +363,20 @@ export const TranscodeSubtitlesRequest$outboundSchema: z.ZodType< ), hasMDE: shared.BoolInt$outboundSchema.default(shared.BoolInt.False), location: TranscodeSubtitlesLocation$outboundSchema.optional(), - mediaBufferSize: z.number().int().optional(), - mediaIndex: z.number().int().optional(), - musicBitrate: z.number().int().optional(), + mediaBufferSize: z.int().optional(), + mediaIndex: z.int().optional(), + musicBitrate: z.int().optional(), offset: z.number().optional(), - partIndex: z.number().int().optional(), + partIndex: z.int().optional(), path: z.string().optional(), - peakBitrate: z.number().int().optional(), + peakBitrate: z.int().optional(), photoResolution: z.string().optional(), protocol: TranscodeSubtitlesProtocol$outboundSchema.optional(), - secondsPerSegment: z.number().int().optional(), - subtitleSize: z.number().int().optional(), + secondsPerSegment: z.int().optional(), + subtitleSize: z.int().optional(), subtitles: TranscodeSubtitlesSubtitles$outboundSchema.optional(), - videoBitrate: z.number().int().optional(), - videoQuality: z.number().int().optional(), + videoBitrate: z.int().optional(), + videoQuality: z.int().optional(), videoResolution: z.string().optional(), xPlexClientProfileExtra: z.string().optional(), xPlexClientProfileName: z.string().optional(), @@ -425,30 +406,3 @@ export function transcodeSubtitlesRequestToJSON( TranscodeSubtitlesRequest$outboundSchema.parse(transcodeSubtitlesRequest), ); } - -/** @internal */ -export const TranscodeSubtitlesResponse$inboundSchema: z.ZodType< - TranscodeSubtitlesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function transcodeSubtitlesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => TranscodeSubtitlesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'TranscodeSubtitlesResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/triggerfallback.ts b/src/models/operations/triggerfallback.ts similarity index 76% rename from src/sdk/models/operations/triggerfallback.ts rename to src/models/operations/triggerfallback.ts index 49bb2c28..b03e921e 100644 --- a/src/sdk/models/operations/triggerfallback.ts +++ b/src/models/operations/triggerfallback.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type TriggerFallbackGlobals = { @@ -111,21 +108,6 @@ export type TriggerFallbackRequest = { transcodeSessionId?: string | undefined; }; -export type TriggerFallbackResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type TriggerFallbackRequest$Outbound = { accepts: string; @@ -146,7 +128,6 @@ export type TriggerFallbackRequest$Outbound = { /** @internal */ export const TriggerFallbackRequest$outboundSchema: z.ZodType< TriggerFallbackRequest$Outbound, - z.ZodTypeDef, TriggerFallbackRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -184,30 +165,3 @@ export function triggerFallbackRequestToJSON( TriggerFallbackRequest$outboundSchema.parse(triggerFallbackRequest), ); } - -/** @internal */ -export const TriggerFallbackResponse$inboundSchema: z.ZodType< - TriggerFallbackResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function triggerFallbackResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => TriggerFallbackResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'TriggerFallbackResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/tunechannel.ts b/src/models/operations/tunechannel.ts similarity index 82% rename from src/sdk/models/operations/tunechannel.ts rename to src/models/operations/tunechannel.ts index a4b74864..6b74f72c 100644 --- a/src/sdk/models/operations/tunechannel.ts +++ b/src/models/operations/tunechannel.ts @@ -2,9 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +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"; @@ -112,23 +112,8 @@ export type TuneChannelRequest = { }; export type TuneChannelResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; headers: { [k: string]: Array }; + result: shared.MediaContainerWithMetadata; }; /** @internal */ @@ -151,7 +136,6 @@ export type TuneChannelRequest$Outbound = { /** @internal */ export const TuneChannelRequest$outboundSchema: z.ZodType< TuneChannelRequest$Outbound, - z.ZodTypeDef, TuneChannelRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -165,7 +149,7 @@ export const TuneChannelRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - dvrId: z.number().int(), + dvrId: z.int(), channel: z.string(), }).transform((v) => { return remap$(v, { @@ -193,22 +177,14 @@ export function tuneChannelRequestToJSON( /** @internal */ export const TuneChannelResponse$inboundSchema: z.ZodType< TuneChannelResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema - .optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: shared.MediaContainerWithMetadata$inboundSchema, }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithMetadata": "mediaContainerWithMetadata", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/unmatch.ts b/src/models/operations/unmatch.ts similarity index 75% rename from src/sdk/models/operations/unmatch.ts rename to src/models/operations/unmatch.ts index c3e3c741..9a8a656c 100644 --- a/src/sdk/models/operations/unmatch.ts +++ b/src/models/operations/unmatch.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type UnmatchGlobals = { @@ -104,21 +101,6 @@ export type UnmatchRequest = { ids: string; }; -export type UnmatchResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type UnmatchRequest$Outbound = { accepts: string; @@ -138,7 +120,6 @@ export type UnmatchRequest$Outbound = { /** @internal */ export const UnmatchRequest$outboundSchema: z.ZodType< UnmatchRequest$Outbound, - z.ZodTypeDef, UnmatchRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -171,30 +152,3 @@ export const UnmatchRequest$outboundSchema: z.ZodType< export function unmatchRequestToJSON(unmatchRequest: UnmatchRequest): string { return JSON.stringify(UnmatchRequest$outboundSchema.parse(unmatchRequest)); } - -/** @internal */ -export const UnmatchResponse$inboundSchema: z.ZodType< - UnmatchResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function unmatchResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UnmatchResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UnmatchResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/unscrobble.ts b/src/models/operations/unscrobble.ts similarity index 77% rename from src/sdk/models/operations/unscrobble.ts rename to src/models/operations/unscrobble.ts index 7cfdb5df..aa71eba8 100644 --- a/src/sdk/models/operations/unscrobble.ts +++ b/src/models/operations/unscrobble.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type UnscrobbleGlobals = { @@ -115,21 +112,6 @@ export type UnscrobbleRequest = { uri?: string | undefined; }; -export type UnscrobbleResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type UnscrobbleRequest$Outbound = { accepts: string; @@ -151,7 +133,6 @@ export type UnscrobbleRequest$Outbound = { /** @internal */ export const UnscrobbleRequest$outboundSchema: z.ZodType< UnscrobbleRequest$Outbound, - z.ZodTypeDef, UnscrobbleRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -190,30 +171,3 @@ export function unscrobbleRequestToJSON( UnscrobbleRequest$outboundSchema.parse(unscrobbleRequest), ); } - -/** @internal */ -export const UnscrobbleResponse$inboundSchema: z.ZodType< - UnscrobbleResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function unscrobbleResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UnscrobbleResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UnscrobbleResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/unshuffle.ts b/src/models/operations/unshuffle.ts similarity index 70% rename from src/sdk/models/operations/unshuffle.ts rename to src/models/operations/unshuffle.ts index d908891f..608bc2b4 100644 --- a/src/sdk/models/operations/unshuffle.ts +++ b/src/models/operations/unshuffle.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type UnshuffleGlobals = { @@ -107,27 +104,6 @@ export type UnshuffleRequest = { playQueueId: number; }; -export type UnshuffleResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithPlaylistMetadata?: - | shared.MediaContainerWithPlaylistMetadata - | undefined; -}; - /** @internal */ export type UnshuffleRequest$Outbound = { accepts: string; @@ -147,7 +123,6 @@ export type UnshuffleRequest$Outbound = { /** @internal */ export const UnshuffleRequest$outboundSchema: z.ZodType< UnshuffleRequest$Outbound, - z.ZodTypeDef, UnshuffleRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -161,7 +136,7 @@ export const UnshuffleRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - playQueueId: z.number().int(), + playQueueId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -184,33 +159,3 @@ export function unshuffleRequestToJSON( UnshuffleRequest$outboundSchema.parse(unshuffleRequest), ); } - -/** @internal */ -export const UnshuffleResponse$inboundSchema: z.ZodType< - UnshuffleResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithPlaylistMetadata: shared - .MediaContainerWithPlaylistMetadata$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithPlaylistMetadata": "mediaContainerWithPlaylistMetadata", - }); -}); - -export function unshuffleResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UnshuffleResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UnshuffleResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/updatehubvisibility.ts b/src/models/operations/updatehubvisibility.ts similarity index 77% rename from src/sdk/models/operations/updatehubvisibility.ts rename to src/models/operations/updatehubvisibility.ts index a5458e55..35b3abca 100644 --- a/src/sdk/models/operations/updatehubvisibility.ts +++ b/src/models/operations/updatehubvisibility.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type UpdateHubVisibilityGlobals = { @@ -123,21 +120,6 @@ export type UpdateHubVisibilityRequest = { promotedToSharedHome?: shared.BoolInt | undefined; }; -export type UpdateHubVisibilityResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type UpdateHubVisibilityRequest$Outbound = { accepts: string; @@ -161,7 +143,6 @@ export type UpdateHubVisibilityRequest$Outbound = { /** @internal */ export const UpdateHubVisibilityRequest$outboundSchema: z.ZodType< UpdateHubVisibilityRequest$Outbound, - z.ZodTypeDef, UpdateHubVisibilityRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -175,7 +156,7 @@ export const UpdateHubVisibilityRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - sectionId: z.number().int(), + sectionId: z.int(), identifier: z.string(), promotedToRecommended: shared.BoolInt$outboundSchema.default( shared.BoolInt.False, @@ -208,30 +189,3 @@ export function updateHubVisibilityRequestToJSON( UpdateHubVisibilityRequest$outboundSchema.parse(updateHubVisibilityRequest), ); } - -/** @internal */ -export const UpdateHubVisibilityResponse$inboundSchema: z.ZodType< - UpdateHubVisibilityResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function updateHubVisibilityResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UpdateHubVisibilityResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UpdateHubVisibilityResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/updateitemartwork.ts b/src/models/operations/updateitemartwork.ts similarity index 75% rename from src/sdk/models/operations/updateitemartwork.ts rename to src/models/operations/updateitemartwork.ts index 255208c5..bd4cda45 100644 --- a/src/sdk/models/operations/updateitemartwork.ts +++ b/src/models/operations/updateitemartwork.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type UpdateItemArtworkGlobals = { @@ -118,25 +115,10 @@ export type UpdateItemArtworkRequest = { url?: string | undefined; }; -export type UpdateItemArtworkResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ -export const UpdateItemArtworkElement$outboundSchema: z.ZodNativeEnum< +export const UpdateItemArtworkElement$outboundSchema: z.ZodEnum< typeof UpdateItemArtworkElement -> = z.nativeEnum(UpdateItemArtworkElement); +> = z.enum(UpdateItemArtworkElement); /** @internal */ export type UpdateItemArtworkRequest$Outbound = { @@ -159,7 +141,6 @@ export type UpdateItemArtworkRequest$Outbound = { /** @internal */ export const UpdateItemArtworkRequest$outboundSchema: z.ZodType< UpdateItemArtworkRequest$Outbound, - z.ZodTypeDef, UpdateItemArtworkRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -198,30 +179,3 @@ export function updateItemArtworkRequestToJSON( UpdateItemArtworkRequest$outboundSchema.parse(updateItemArtworkRequest), ); } - -/** @internal */ -export const UpdateItemArtworkResponse$inboundSchema: z.ZodType< - UpdateItemArtworkResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function updateItemArtworkResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UpdateItemArtworkResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UpdateItemArtworkResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/updateitems.ts b/src/models/operations/updateitems.ts similarity index 84% rename from src/sdk/models/operations/updateitems.ts rename to src/models/operations/updateitems.ts index 88599843..1c48b605 100644 --- a/src/sdk/models/operations/updateitems.ts +++ b/src/models/operations/updateitems.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type UpdateItemsGlobals = { @@ -156,21 +153,6 @@ export type UpdateItemsRequest = { tagtypeTag?: string | undefined; }; -export type UpdateItemsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type UpdateItemsRequest$Outbound = { accepts: string; @@ -203,7 +185,6 @@ export type UpdateItemsRequest$Outbound = { /** @internal */ export const UpdateItemsRequest$outboundSchema: z.ZodType< UpdateItemsRequest$Outbound, - z.ZodTypeDef, UpdateItemsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -264,30 +245,3 @@ export function updateItemsRequestToJSON( UpdateItemsRequest$outboundSchema.parse(updateItemsRequest), ); } - -/** @internal */ -export const UpdateItemsResponse$inboundSchema: z.ZodType< - UpdateItemsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function updateItemsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UpdateItemsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UpdateItemsResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/updateplaylist.ts b/src/models/operations/updateplaylist.ts similarity index 74% rename from src/sdk/models/operations/updateplaylist.ts rename to src/models/operations/updateplaylist.ts index 6e8740b7..7452ee99 100644 --- a/src/sdk/models/operations/updateplaylist.ts +++ b/src/models/operations/updateplaylist.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type UpdatePlaylistGlobals = { @@ -107,21 +104,6 @@ export type UpdatePlaylistRequest = { playlistId: number; }; -export type UpdatePlaylistResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type UpdatePlaylistRequest$Outbound = { accepts: string; @@ -141,7 +123,6 @@ export type UpdatePlaylistRequest$Outbound = { /** @internal */ export const UpdatePlaylistRequest$outboundSchema: z.ZodType< UpdatePlaylistRequest$Outbound, - z.ZodTypeDef, UpdatePlaylistRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -155,7 +136,7 @@ export const UpdatePlaylistRequest$outboundSchema: z.ZodType< deviceVendor: z.string().optional(), deviceName: z.string().optional(), marketplace: z.string().optional(), - playlistId: z.number().int(), + playlistId: z.int(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -178,30 +159,3 @@ export function updatePlaylistRequestToJSON( UpdatePlaylistRequest$outboundSchema.parse(updatePlaylistRequest), ); } - -/** @internal */ -export const UpdatePlaylistResponse$inboundSchema: z.ZodType< - UpdatePlaylistResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function updatePlaylistResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UpdatePlaylistResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UpdatePlaylistResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/uploadplaylist.ts b/src/models/operations/uploadplaylist.ts similarity index 79% rename from src/sdk/models/operations/uploadplaylist.ts rename to src/models/operations/uploadplaylist.ts index b73ec1ef..883d22e8 100644 --- a/src/sdk/models/operations/uploadplaylist.ts +++ b/src/models/operations/uploadplaylist.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type UploadPlaylistGlobals = { @@ -111,21 +108,6 @@ export type UploadPlaylistRequest = { force?: shared.BoolInt | undefined; }; -export type UploadPlaylistResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export type UploadPlaylistRequest$Outbound = { accepts: string; @@ -146,7 +128,6 @@ export type UploadPlaylistRequest$Outbound = { /** @internal */ export const UploadPlaylistRequest$outboundSchema: z.ZodType< UploadPlaylistRequest$Outbound, - z.ZodTypeDef, UploadPlaylistRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -184,30 +165,3 @@ export function uploadPlaylistRequestToJSON( UploadPlaylistRequest$outboundSchema.parse(uploadPlaylistRequest), ); } - -/** @internal */ -export const UploadPlaylistResponse$inboundSchema: z.ZodType< - UploadPlaylistResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function uploadPlaylistResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UploadPlaylistResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UploadPlaylistResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/voicesearchhubs.ts b/src/models/operations/voicesearchhubs.ts similarity index 86% rename from src/sdk/models/operations/voicesearchhubs.ts rename to src/models/operations/voicesearchhubs.ts index 90b65aa0..fd00effe 100644 --- a/src/sdk/models/operations/voicesearchhubs.ts +++ b/src/models/operations/voicesearchhubs.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; @@ -162,23 +163,8 @@ export type VoiceSearchHubsResponseBody = { }; export type VoiceSearchHubsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - object?: VoiceSearchHubsResponseBody | undefined; headers: { [k: string]: Array }; + result: VoiceSearchHubsResponseBody; }; /** @internal */ @@ -202,7 +188,6 @@ export type VoiceSearchHubsRequest$Outbound = { /** @internal */ export const VoiceSearchHubsRequest$outboundSchema: z.ZodType< VoiceSearchHubsRequest$Outbound, - z.ZodTypeDef, VoiceSearchHubsRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -218,7 +203,7 @@ export const VoiceSearchHubsRequest$outboundSchema: z.ZodType< marketplace: z.string().optional(), query: z.string(), type: shared.MediaType$outboundSchema.optional(), - limit: z.number().int().optional(), + limit: z.int().optional(), }).transform((v) => { return remap$(v, { clientIdentifier: "Client-Identifier", @@ -245,14 +230,13 @@ export function voiceSearchHubsRequestToJSON( /** @internal */ export const VoiceSearchHubsMediaContainer$inboundSchema: z.ZodType< VoiceSearchHubsMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - Hub: z.array(shared.Hub$inboundSchema).optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + Hub: types.optional(z.array(shared.Hub$inboundSchema)), }).transform((v) => { return remap$(v, { "Hub": "hub", @@ -272,11 +256,11 @@ export function voiceSearchHubsMediaContainerFromJSON( /** @internal */ export const VoiceSearchHubsResponseBody$inboundSchema: z.ZodType< VoiceSearchHubsResponseBody, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => VoiceSearchHubsMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => VoiceSearchHubsMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", @@ -296,20 +280,14 @@ export function voiceSearchHubsResponseBodyFromJSON( /** @internal */ export const VoiceSearchHubsResponse$inboundSchema: z.ZodType< VoiceSearchHubsResponse, - z.ZodTypeDef, unknown > = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => VoiceSearchHubsResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())).default({}), + Headers: z.record(z.string(), z.array(z.string())).default({}), + Result: z.lazy(() => VoiceSearchHubsResponseBody$inboundSchema), }).transform((v) => { return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", "Headers": "headers", + "Result": "result", }); }); diff --git a/src/sdk/models/operations/writemessage.ts b/src/models/operations/writemessage.ts similarity index 77% rename from src/sdk/models/operations/writemessage.ts rename to src/models/operations/writemessage.ts index 9eca931d..a20f729f 100644 --- a/src/sdk/models/operations/writemessage.ts +++ b/src/models/operations/writemessage.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -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 z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import * as shared from "../shared/index.js"; export type WriteMessageGlobals = { @@ -140,25 +137,10 @@ export type WriteMessageRequest = { source?: string | undefined; }; -export type WriteMessageResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ -export const WriteMessageLevel$outboundSchema: z.ZodNativeEnum< +export const WriteMessageLevel$outboundSchema: z.ZodEnum< typeof WriteMessageLevel -> = z.nativeEnum(WriteMessageLevel); +> = z.enum(WriteMessageLevel); /** @internal */ export type WriteMessageRequest$Outbound = { @@ -181,7 +163,6 @@ export type WriteMessageRequest$Outbound = { /** @internal */ export const WriteMessageRequest$outboundSchema: z.ZodType< WriteMessageRequest$Outbound, - z.ZodTypeDef, WriteMessageRequest > = z.object({ accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), @@ -220,30 +201,3 @@ export function writeMessageRequestToJSON( WriteMessageRequest$outboundSchema.parse(writeMessageRequest), ); } - -/** @internal */ -export const WriteMessageResponse$inboundSchema: z.ZodType< - WriteMessageResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function writeMessageResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => WriteMessageResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'WriteMessageResponse' from JSON`, - ); -} diff --git a/src/sdk/models/shared/accepts.ts b/src/models/shared/accepts.ts similarity index 61% rename from src/sdk/models/shared/accepts.ts rename to src/models/shared/accepts.ts index c6961fee..0b0245ef 100644 --- a/src/sdk/models/shared/accepts.ts +++ b/src/models/shared/accepts.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; +import * as z from "zod/v4"; export enum Accepts { ApplicationJson = "application/json", @@ -10,5 +10,6 @@ export enum Accepts { } /** @internal */ -export const Accepts$outboundSchema: z.ZodNativeEnum = z - .nativeEnum(Accepts); +export const Accepts$outboundSchema: z.ZodEnum = z.enum( + Accepts, +); diff --git a/src/sdk/models/shared/advancedsubtitles.ts b/src/models/shared/advancedsubtitles.ts similarity index 62% rename from src/sdk/models/shared/advancedsubtitles.ts rename to src/models/shared/advancedsubtitles.ts index 3fca43e7..5bf8afc1 100644 --- a/src/sdk/models/shared/advancedsubtitles.ts +++ b/src/models/shared/advancedsubtitles.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; +import * as z from "zod/v4"; export enum AdvancedSubtitles { Burn = "burn", @@ -11,6 +11,6 @@ export enum AdvancedSubtitles { } /** @internal */ -export const AdvancedSubtitles$outboundSchema: z.ZodNativeEnum< +export const AdvancedSubtitles$outboundSchema: z.ZodEnum< typeof AdvancedSubtitles -> = z.nativeEnum(AdvancedSubtitles); +> = z.enum(AdvancedSubtitles); diff --git a/src/sdk/models/shared/boolint.ts b/src/models/shared/boolint.ts similarity index 53% rename from src/sdk/models/shared/boolint.ts rename to src/models/shared/boolint.ts index 23f5f665..61cd5f5a 100644 --- a/src/sdk/models/shared/boolint.ts +++ b/src/models/shared/boolint.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; +import * as z from "zod/v4"; export enum BoolInt { False = 0, @@ -10,5 +10,6 @@ export enum BoolInt { } /** @internal */ -export const BoolInt$outboundSchema: z.ZodNativeEnum = z - .nativeEnum(BoolInt); +export const BoolInt$outboundSchema: z.ZodEnum = z.enum( + BoolInt, +); diff --git a/src/sdk/models/shared/channel.ts b/src/models/shared/channel.ts similarity index 57% rename from src/sdk/models/shared/channel.ts rename to src/models/shared/channel.ts index 07d47613..24545612 100644 --- a/src/sdk/models/shared/channel.ts +++ b/src/models/shared/channel.ts @@ -2,9 +2,10 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type Channel = { @@ -19,17 +20,16 @@ export type Channel = { }; /** @internal */ -export const Channel$inboundSchema: z.ZodType = - z.object({ - title: z.string().optional(), - callSign: z.string().optional(), - channelVcn: z.string().optional(), - hd: z.boolean().optional(), - identifier: z.string().optional(), - key: z.string().optional(), - language: z.string().optional(), - thumb: z.string().optional(), - }); +export const Channel$inboundSchema: z.ZodType = z.object({ + title: types.optional(types.string()), + callSign: types.optional(types.string()), + channelVcn: types.optional(types.string()), + hd: types.optional(types.boolean()), + identifier: types.optional(types.string()), + key: types.optional(types.string()), + language: types.optional(types.string()), + thumb: types.optional(types.string()), +}); export function channelFromJSON( jsonString: string, diff --git a/src/sdk/models/shared/channelmapping.ts b/src/models/shared/channelmapping.ts similarity index 61% rename from src/sdk/models/shared/channelmapping.ts rename to src/models/shared/channelmapping.ts index f4f223e6..3392a6f7 100644 --- a/src/sdk/models/shared/channelmapping.ts +++ b/src/models/shared/channelmapping.ts @@ -2,9 +2,10 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ChannelMapping = { @@ -15,16 +16,13 @@ export type ChannelMapping = { }; /** @internal */ -export const ChannelMapping$inboundSchema: z.ZodType< - ChannelMapping, - z.ZodTypeDef, - unknown -> = z.object({ - channelKey: z.string().optional(), - deviceIdentifier: z.string().optional(), - enabled: z.string().optional(), - lineupIdentifier: z.string().optional(), -}); +export const ChannelMapping$inboundSchema: z.ZodType = + z.object({ + channelKey: types.optional(types.string()), + deviceIdentifier: types.optional(types.string()), + enabled: types.optional(types.string()), + lineupIdentifier: types.optional(types.string()), + }); export function channelMappingFromJSON( jsonString: string, diff --git a/src/sdk/models/shared/composite.ts b/src/models/shared/composite.ts similarity index 81% rename from src/sdk/models/shared/composite.ts rename to src/models/shared/composite.ts index 369249df..8754c03e 100644 --- a/src/sdk/models/shared/composite.ts +++ b/src/models/shared/composite.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; +import * as z from "zod/v4"; /** * The image type @@ -77,18 +77,16 @@ export type Composite = { }; /** @internal */ -export const Format$outboundSchema: z.ZodNativeEnum = z - .nativeEnum(Format); +export const Format$outboundSchema: z.ZodEnum = z.enum(Format); /** @internal */ -export const Crop$outboundSchema: z.ZodNativeEnum = z.nativeEnum( - Crop, +export const Crop$outboundSchema: z.ZodEnum = z.enum(Crop); + +/** @internal */ +export const MediaEnum$outboundSchema: z.ZodEnum = z.enum( + MediaEnum, ); -/** @internal */ -export const MediaEnum$outboundSchema: z.ZodNativeEnum = z - .nativeEnum(MediaEnum); - /** @internal */ export type Composite$Outbound = { type?: number | undefined; @@ -107,20 +105,19 @@ export type Composite$Outbound = { /** @internal */ export const Composite$outboundSchema: z.ZodType< Composite$Outbound, - z.ZodTypeDef, Composite > = z.object({ - type: z.number().int().optional(), + type: z.int().optional(), format: Format$outboundSchema.optional(), backgroundColor: z.string().optional(), - border: z.number().int().optional(), - cols: z.number().int().optional(), + border: z.int().optional(), + cols: z.int().optional(), crop: Crop$outboundSchema.optional(), - height: z.number().int().optional(), + height: z.int().optional(), media: MediaEnum$outboundSchema.optional(), repeat: z.boolean().optional(), - rows: z.number().int().optional(), - width: z.number().int().optional(), + rows: z.int().optional(), + width: z.int().optional(), }); export function compositeToJSON(composite: Composite): string { diff --git a/src/sdk/models/shared/device.ts b/src/models/shared/device.ts similarity index 52% rename from src/sdk/models/shared/device.ts rename to src/models/shared/device.ts index 261474e0..adc07704 100644 --- a/src/sdk/models/shared/device.ts +++ b/src/models/shared/device.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ChannelMapping, @@ -29,26 +30,25 @@ export type Device = { }; /** @internal */ -export const Device$inboundSchema: z.ZodType = z - .object({ - ChannelMapping: z.array(ChannelMapping$inboundSchema).optional(), - key: z.string().optional(), - lastSeenAt: z.number().int().optional(), - make: z.string().optional(), - model: z.string().optional(), - modelNumber: z.string().optional(), - protocol: z.string().optional(), - sources: z.string().optional(), - state: z.string().optional(), - status: z.string().optional(), - tuners: z.string().optional(), - uri: z.string().optional(), - uuid: z.string().optional(), - }).transform((v) => { - return remap$(v, { - "ChannelMapping": "channelMapping", - }); +export const Device$inboundSchema: z.ZodType = z.object({ + ChannelMapping: types.optional(z.array(ChannelMapping$inboundSchema)), + key: types.optional(types.string()), + lastSeenAt: types.optional(types.number()), + make: types.optional(types.string()), + model: types.optional(types.string()), + modelNumber: types.optional(types.string()), + protocol: types.optional(types.string()), + sources: types.optional(types.string()), + state: types.optional(types.string()), + status: types.optional(types.string()), + tuners: types.optional(types.string()), + uri: types.optional(types.string()), + uuid: types.optional(types.string()), +}).transform((v) => { + return remap$(v, { + "ChannelMapping": "channelMapping", }); +}); export function deviceFromJSON( jsonString: string, diff --git a/src/sdk/models/shared/directory.ts b/src/models/shared/directory.ts similarity index 52% rename from src/sdk/models/shared/directory.ts rename to src/models/shared/directory.ts index 3b73eff4..48516ef2 100644 --- a/src/sdk/models/shared/directory.ts +++ b/src/models/shared/directory.ts @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, safeParse, -} from "../../../lib/schemas.js"; +} from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type DirectoryPivot = { @@ -40,18 +41,15 @@ export type Directory = { }; /** @internal */ -export const DirectoryPivot$inboundSchema: z.ZodType< - DirectoryPivot, - z.ZodTypeDef, - unknown -> = z.object({ - title: z.string().optional(), - type: z.string().optional(), - context: z.string().optional(), - id: z.string().optional(), - key: z.string().optional(), - symbol: z.string().optional(), -}); +export const DirectoryPivot$inboundSchema: z.ZodType = + z.object({ + title: types.optional(types.string()), + type: types.optional(types.string()), + context: types.optional(types.string()), + id: types.optional(types.string()), + key: types.optional(types.string()), + symbol: types.optional(types.string()), + }); export function directoryPivotFromJSON( jsonString: string, @@ -64,35 +62,34 @@ export function directoryPivotFromJSON( } /** @internal */ -export const Directory$inboundSchema: z.ZodType< - Directory, - z.ZodTypeDef, - unknown -> = collectExtraKeys$( - z.object({ - title: z.string().optional(), - type: z.string().optional(), - art: z.string().optional(), - content: z.boolean().optional(), - filter: z.string().optional(), - hasPrefs: z.boolean().optional(), - hasStoreServices: z.boolean().optional(), - hubKey: z.string().optional(), - identifier: z.string().optional(), - key: z.string().optional(), - lastAccessedAt: z.number().int().optional(), - Pivot: z.array(z.lazy(() => DirectoryPivot$inboundSchema)).optional(), - share: z.number().int().optional(), - thumb: z.string().optional(), - titleBar: z.string().optional(), - }).catchall(z.any()), - "additionalProperties", - true, -).transform((v) => { - return remap$(v, { - "Pivot": "pivot", +export const Directory$inboundSchema: z.ZodType = + collectExtraKeys$( + z.object({ + title: types.optional(types.string()), + type: types.optional(types.string()), + art: types.optional(types.string()), + content: types.optional(types.boolean()), + filter: types.optional(types.string()), + hasPrefs: types.optional(types.boolean()), + hasStoreServices: types.optional(types.boolean()), + hubKey: types.optional(types.string()), + identifier: types.optional(types.string()), + key: types.optional(types.string()), + lastAccessedAt: types.optional(types.number()), + Pivot: types.optional( + z.array(z.lazy(() => DirectoryPivot$inboundSchema)), + ), + share: types.optional(types.number()), + thumb: types.optional(types.string()), + titleBar: types.optional(types.string()), + }).catchall(z.any()), + "additionalProperties", + true, + ).transform((v) => { + return remap$(v, { + "Pivot": "pivot", + }); }); -}); export function directoryFromJSON( jsonString: string, diff --git a/src/sdk/models/shared/dvrrequesthandlerslashgetresponses200.ts b/src/models/shared/dvrrequesthandlerslashgetresponses200.ts similarity index 76% rename from src/sdk/models/shared/dvrrequesthandlerslashgetresponses200.ts rename to src/models/shared/dvrrequesthandlerslashgetresponses200.ts index 38da3671..7704fb6d 100644 --- a/src/sdk/models/shared/dvrrequesthandlerslashgetresponses200.ts +++ b/src/models/shared/dvrrequesthandlerslashgetresponses200.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Device, Device$inboundSchema } from "./device.js"; @@ -66,14 +67,13 @@ export type DvrRequestHandlerSlashGetResponses200 = { export const DvrRequestHandlerSlashGetResponses200MediaContainerMediaContainer$inboundSchema: z.ZodType< DvrRequestHandlerSlashGetResponses200MediaContainerMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - status: z.number().int().optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + status: types.optional(types.number()), }); export function dvrRequestHandlerSlashGetResponses200MediaContainerMediaContainerFromJSON( @@ -92,18 +92,17 @@ export function dvrRequestHandlerSlashGetResponses200MediaContainerMediaContaine } /** @internal */ -export const Dvr$inboundSchema: z.ZodType = z - .object({ - Device: z.array(Device$inboundSchema).optional(), - key: z.string().optional(), - language: z.string().optional(), - lineup: z.string().optional(), - uuid: z.string().optional(), - }).transform((v) => { - return remap$(v, { - "Device": "device", - }); +export const Dvr$inboundSchema: z.ZodType = z.object({ + Device: types.optional(z.array(Device$inboundSchema)), + key: types.optional(types.string()), + language: types.optional(types.string()), + lineup: types.optional(types.string()), + uuid: types.optional(types.string()), +}).transform((v) => { + return remap$(v, { + "Device": "device", }); +}); export function dvrFromJSON( jsonString: string, @@ -117,21 +116,20 @@ export function dvrFromJSON( /** @internal */ export const DvrRequestHandlerSlashGetResponses200MediaContainer$inboundSchema: - z.ZodType< - DvrRequestHandlerSlashGetResponses200MediaContainer, - z.ZodTypeDef, - unknown - > = z.object({ - MediaContainer: z.lazy(() => - DvrRequestHandlerSlashGetResponses200MediaContainerMediaContainer$inboundSchema - ).optional(), - DVR: z.array(z.lazy(() => Dvr$inboundSchema)).optional(), - }).transform((v) => { - return remap$(v, { - "MediaContainer": "mediaContainer", - "DVR": "dvr", + z.ZodType = z + .object({ + MediaContainer: types.optional( + z.lazy(() => + DvrRequestHandlerSlashGetResponses200MediaContainerMediaContainer$inboundSchema + ), + ), + DVR: types.optional(z.array(z.lazy(() => Dvr$inboundSchema))), + }).transform((v) => { + return remap$(v, { + "MediaContainer": "mediaContainer", + "DVR": "dvr", + }); }); - }); export function dvrRequestHandlerSlashGetResponses200MediaContainerFromJSON( jsonString: string, @@ -152,12 +150,13 @@ export function dvrRequestHandlerSlashGetResponses200MediaContainerFromJSON( /** @internal */ export const DvrRequestHandlerSlashGetResponses200$inboundSchema: z.ZodType< DvrRequestHandlerSlashGetResponses200, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => - DvrRequestHandlerSlashGetResponses200MediaContainer$inboundSchema - ).optional(), + MediaContainer: types.optional( + z.lazy(() => + DvrRequestHandlerSlashGetResponses200MediaContainer$inboundSchema + ), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", diff --git a/src/sdk/models/shared/filter.ts b/src/models/shared/filter.ts similarity index 65% rename from src/sdk/models/shared/filter.ts rename to src/models/shared/filter.ts index dd22749b..67480005 100644 --- a/src/sdk/models/shared/filter.ts +++ b/src/models/shared/filter.ts @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, safeParse, -} from "../../../lib/schemas.js"; +} from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type FilterPivot = { @@ -58,18 +59,15 @@ export type Filter = { }; /** @internal */ -export const FilterPivot$inboundSchema: z.ZodType< - FilterPivot, - z.ZodTypeDef, - unknown -> = z.object({ - title: z.string().optional(), - type: z.string().optional(), - context: z.string().optional(), - id: z.string().optional(), - key: z.string().optional(), - symbol: z.string().optional(), -}); +export const FilterPivot$inboundSchema: z.ZodType = z + .object({ + title: types.optional(types.string()), + type: types.optional(types.string()), + context: types.optional(types.string()), + id: types.optional(types.string()), + key: types.optional(types.string()), + symbol: types.optional(types.string()), + }); export function filterPivotFromJSON( jsonString: string, @@ -82,25 +80,25 @@ export function filterPivotFromJSON( } /** @internal */ -export const Filter$inboundSchema: z.ZodType = +export const Filter$inboundSchema: z.ZodType = collectExtraKeys$( z.object({ - title: z.string().optional(), - type: z.string().optional(), - art: z.string().optional(), - content: z.boolean().optional(), - filter: z.string().optional(), - hasPrefs: z.boolean().optional(), - hasStoreServices: z.boolean().optional(), - hubKey: z.string().optional(), - identifier: z.string().optional(), - key: z.string().optional(), - lastAccessedAt: z.number().int().optional(), - Pivot: z.array(z.lazy(() => FilterPivot$inboundSchema)).optional(), - share: z.number().int().optional(), - thumb: z.string().optional(), - titleBar: z.string().optional(), - filterType: z.string().optional(), + title: types.optional(types.string()), + type: types.optional(types.string()), + art: types.optional(types.string()), + content: types.optional(types.boolean()), + filter: types.optional(types.string()), + hasPrefs: types.optional(types.boolean()), + hasStoreServices: types.optional(types.boolean()), + hubKey: types.optional(types.string()), + identifier: types.optional(types.string()), + key: types.optional(types.string()), + lastAccessedAt: types.optional(types.number()), + Pivot: types.optional(z.array(z.lazy(() => FilterPivot$inboundSchema))), + share: types.optional(types.number()), + thumb: types.optional(types.string()), + titleBar: types.optional(types.string()), + filterType: types.optional(types.string()), }).catchall(z.any()), "additionalProperties", true, diff --git a/src/sdk/models/shared/getresponses200.ts b/src/models/shared/getresponses200.ts similarity index 68% rename from src/sdk/models/shared/getresponses200.ts rename to src/models/shared/getresponses200.ts index 8b4b419f..308cf6a1 100644 --- a/src/sdk/models/shared/getresponses200.ts +++ b/src/models/shared/getresponses200.ts @@ -2,10 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import * as openEnums from "../../types/enums.js"; +import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** @@ -23,6 +26,16 @@ export enum HomeVisibility { Admin = "admin", Shared = "shared", } +/** + * Whether this hub is visible on the home screen + * + * @remarks + * - all: Visible to all users + * - none: Visible to no users + * - admin: Visible to only admin users + * - shared: Visible to shared users + */ +export type HomeVisibilityOpen = OpenEnum; /** * The visibility of this hub in recommendations: @@ -39,6 +52,18 @@ export enum RecommendationsVisibility { Admin = "admin", Shared = "shared", } +/** + * The visibility of this hub in recommendations: + * + * @remarks + * - all: Visible to all users + * - none: Visible to no users + * - admin: Visible to only admin users + * - shared: Visible to shared users + */ +export type RecommendationsVisibilityOpen = OpenEnum< + typeof RecommendationsVisibility +>; export type HubResponse = { /** @@ -50,7 +75,7 @@ export type HubResponse = { * - admin: Visible to only admin users * - shared: Visible to shared users */ - homeVisibility?: HomeVisibility | undefined; + homeVisibility?: HomeVisibilityOpen | undefined; /** * The identifier for this hub */ @@ -76,7 +101,7 @@ export type HubResponse = { * - admin: Visible to only admin users * - shared: Visible to shared users */ - recommendationsVisibility?: RecommendationsVisibility | undefined; + recommendationsVisibility?: RecommendationsVisibilityOpen | undefined; /** * The title of this hub */ @@ -116,29 +141,30 @@ export type GetResponses200 = { }; /** @internal */ -export const HomeVisibility$inboundSchema: z.ZodNativeEnum< - typeof HomeVisibility -> = z.nativeEnum(HomeVisibility); - -/** @internal */ -export const RecommendationsVisibility$inboundSchema: z.ZodNativeEnum< - typeof RecommendationsVisibility -> = z.nativeEnum(RecommendationsVisibility); - -/** @internal */ -export const HubResponse$inboundSchema: z.ZodType< - HubResponse, - z.ZodTypeDef, +export const HomeVisibility$inboundSchema: z.ZodType< + HomeVisibilityOpen, unknown -> = z.object({ - homeVisibility: HomeVisibility$inboundSchema.optional(), - identifier: z.string().optional(), - promotedToOwnHome: z.boolean().optional(), - promotedToRecommended: z.boolean().optional(), - promotedToSharedHome: z.boolean().optional(), - recommendationsVisibility: RecommendationsVisibility$inboundSchema.optional(), - title: z.string().optional(), -}); +> = openEnums.inboundSchema(HomeVisibility); + +/** @internal */ +export const RecommendationsVisibility$inboundSchema: z.ZodType< + RecommendationsVisibilityOpen, + unknown +> = openEnums.inboundSchema(RecommendationsVisibility); + +/** @internal */ +export const HubResponse$inboundSchema: z.ZodType = z + .object({ + homeVisibility: types.optional(HomeVisibility$inboundSchema), + identifier: types.optional(types.string()), + promotedToOwnHome: types.optional(types.boolean()), + promotedToRecommended: types.optional(types.boolean()), + promotedToSharedHome: types.optional(types.boolean()), + recommendationsVisibility: types.optional( + RecommendationsVisibility$inboundSchema, + ), + title: types.optional(types.string()), + }); export function hubResponseFromJSON( jsonString: string, @@ -153,14 +179,13 @@ export function hubResponseFromJSON( /** @internal */ export const GetResponses200MediaContainer$inboundSchema: z.ZodType< GetResponses200MediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - Hub: z.array(z.lazy(() => HubResponse$inboundSchema)).optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + Hub: types.optional(z.array(z.lazy(() => HubResponse$inboundSchema))), }).transform((v) => { return remap$(v, { "Hub": "hub", @@ -180,11 +205,11 @@ export function getResponses200MediaContainerFromJSON( /** @internal */ export const GetResponses200$inboundSchema: z.ZodType< GetResponses200, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => GetResponses200MediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => GetResponses200MediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", diff --git a/src/sdk/models/shared/historyallgetresponses200.ts b/src/models/shared/historyallgetresponses200.ts similarity index 80% rename from src/sdk/models/shared/historyallgetresponses200.ts rename to src/models/shared/historyallgetresponses200.ts index 61791c72..78bb1be6 100644 --- a/src/sdk/models/shared/historyallgetresponses200.ts +++ b/src/models/shared/historyallgetresponses200.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type MetadatumResponse = { @@ -90,20 +91,19 @@ export type HistoryAllGetResponses200 = { /** @internal */ export const MetadatumResponse$inboundSchema: z.ZodType< MetadatumResponse, - z.ZodTypeDef, unknown > = z.object({ - accountID: z.number().int().optional(), - deviceID: z.number().int().optional(), - historyKey: z.string().optional(), - key: z.string().optional(), - librarySectionID: z.string().optional(), - originallyAvailableAt: z.string().optional(), - ratingKey: z.string().optional(), - thumb: z.string().optional(), - title: z.string().optional(), - type: z.string().optional(), - viewedAt: z.number().int().optional(), + accountID: types.optional(types.number()), + deviceID: types.optional(types.number()), + historyKey: types.optional(types.string()), + key: types.optional(types.string()), + librarySectionID: types.optional(types.string()), + originallyAvailableAt: types.optional(types.string()), + ratingKey: types.optional(types.string()), + thumb: types.optional(types.string()), + title: types.optional(types.string()), + type: types.optional(types.string()), + viewedAt: types.optional(types.number()), }); export function metadatumResponseFromJSON( @@ -119,14 +119,15 @@ export function metadatumResponseFromJSON( /** @internal */ export const HistoryAllGetResponses200MediaContainer$inboundSchema: z.ZodType< HistoryAllGetResponses200MediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - Metadata: z.array(z.lazy(() => MetadatumResponse$inboundSchema)).optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + Metadata: types.optional( + z.array(z.lazy(() => MetadatumResponse$inboundSchema)), + ), }).transform((v) => { return remap$(v, { "Metadata": "metadata", @@ -152,12 +153,11 @@ export function historyAllGetResponses200MediaContainerFromJSON( /** @internal */ export const HistoryAllGetResponses200$inboundSchema: z.ZodType< HistoryAllGetResponses200, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => - HistoryAllGetResponses200MediaContainer$inboundSchema - ).optional(), + MediaContainer: types.optional( + z.lazy(() => HistoryAllGetResponses200MediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", diff --git a/src/sdk/models/shared/hub.ts b/src/models/shared/hub.ts similarity index 68% rename from src/sdk/models/shared/hub.ts rename to src/models/shared/hub.ts index 82d4ff4f..fe5ac433 100644 --- a/src/sdk/models/shared/hub.ts +++ b/src/models/shared/hub.ts @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, safeParse, -} from "../../../lib/schemas.js"; +} from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Metadata, Metadata$inboundSchema } from "./metadata.js"; @@ -65,31 +66,30 @@ export type Hub = { }; /** @internal */ -export const Hub$inboundSchema: z.ZodType = - collectExtraKeys$( - z.object({ - title: z.string().optional(), - type: z.string().optional(), - context: z.string().optional(), - hubIdentifier: z.string().optional(), - hubKey: z.string().optional(), - key: z.string().optional(), - Metadata: z.array(Metadata$inboundSchema).optional(), - more: z.boolean().optional(), - promoted: z.boolean().optional(), - random: z.boolean().optional(), - size: z.number().int().optional(), - style: z.string().optional(), - subtype: z.string().optional(), - totalSize: z.number().int().optional(), - }).catchall(z.any()), - "additionalProperties", - true, - ).transform((v) => { - return remap$(v, { - "Metadata": "metadata", - }); +export const Hub$inboundSchema: z.ZodType = collectExtraKeys$( + z.object({ + title: types.optional(types.string()), + type: types.optional(types.string()), + context: types.optional(types.string()), + hubIdentifier: types.optional(types.string()), + hubKey: types.optional(types.string()), + key: types.optional(types.string()), + Metadata: types.optional(z.array(Metadata$inboundSchema)), + more: types.optional(types.boolean()), + promoted: types.optional(types.boolean()), + random: types.optional(types.boolean()), + size: types.optional(types.number()), + style: types.optional(types.string()), + subtype: types.optional(types.string()), + totalSize: types.optional(types.number()), + }).catchall(z.any()), + "additionalProperties", + true, +).transform((v) => { + return remap$(v, { + "Metadata": "metadata", }); +}); export function hubFromJSON( jsonString: string, diff --git a/src/sdk/models/shared/image.ts b/src/models/shared/image.ts similarity index 62% rename from src/sdk/models/shared/image.ts rename to src/models/shared/image.ts index d30d2a4d..3a7bb227 100644 --- a/src/sdk/models/shared/image.ts +++ b/src/models/shared/image.ts @@ -2,9 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { safeParse } from "../../lib/schemas.js"; +import * as openEnums from "../../types/enums.js"; +import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** @@ -17,6 +20,10 @@ export enum ImageType { CoverPoster = "coverPoster", Snapshot = "snapshot", } +/** + * Describes both the purpose and intended presentation of the image. + */ +export type ImageTypeOpen = OpenEnum; /** * Images such as movie posters and background artwork are represented by Image elements. @@ -27,7 +34,7 @@ export type Image = { /** * Describes both the purpose and intended presentation of the image. */ - type?: ImageType | undefined; + type?: ImageTypeOpen | undefined; /** * Title to use for accessibility. */ @@ -39,16 +46,15 @@ export type Image = { }; /** @internal */ -export const ImageType$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(ImageType); +export const ImageType$inboundSchema: z.ZodType = + openEnums.inboundSchema(ImageType); /** @internal */ -export const Image$inboundSchema: z.ZodType = z - .object({ - type: ImageType$inboundSchema.optional(), - alt: z.string().optional(), - url: z.string().optional(), - }); +export const Image$inboundSchema: z.ZodType = z.object({ + type: types.optional(ImageType$inboundSchema), + alt: types.optional(types.string()), + url: types.optional(types.string()), +}); export function imageFromJSON( jsonString: string, diff --git a/src/sdk/models/shared/index.ts b/src/models/shared/index.ts similarity index 100% rename from src/sdk/models/shared/index.ts rename to src/models/shared/index.ts diff --git a/src/sdk/models/shared/items.ts b/src/models/shared/items.ts similarity index 73% rename from src/sdk/models/shared/items.ts rename to src/models/shared/items.ts index 6f1744ae..056e1640 100644 --- a/src/sdk/models/shared/items.ts +++ b/src/models/shared/items.ts @@ -2,14 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, safeParse, -} from "../../../lib/schemas.js"; +} from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; -import { RFCDate } from "../../types/rfcdate.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Filter, Filter$inboundSchema } from "./filter.js"; import { Image, Image$inboundSchema } from "./image.js"; @@ -155,7 +155,7 @@ export type Items = { /** * When present, in the format YYYY-MM-DD [HH:MM:SS] (the hours/minutes/seconds part is not always present). The air date, or a higher resolution release date for an item, depending on type. For example, episodes usually have air date like 1979-08-10 (we don't use epoch seconds because media existed prior to 1970). In some cases, recorded over-the-air content has higher resolution air date which includes a time component. Albums and movies may have day-resolution release dates as well. */ - originallyAvailableAt?: RFCDate | undefined; + originallyAvailableAt?: Date | undefined; /** * When present, used to indicate an item's original title, e.g. a movie's foreign title. */ @@ -292,12 +292,8 @@ export type Items = { }; /** @internal */ -export const ItemsGuid$inboundSchema: z.ZodType< - ItemsGuid, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), +export const ItemsGuid$inboundSchema: z.ZodType = z.object({ + id: types.string(), }); export function itemsGuidFromJSON( @@ -311,102 +307,100 @@ export function itemsGuidFromJSON( } /** @internal */ -export const Items$inboundSchema: z.ZodType = - collectExtraKeys$( - z.object({ - title: z.string(), - type: z.string(), - absoluteIndex: z.number().int().optional(), - addedAt: z.number().int(), - art: z.string().optional(), - audienceRating: z.number().optional(), - audienceRatingImage: z.string().optional(), - Autotag: z.array(Tag$inboundSchema).optional(), - banner: z.string().optional(), - chapterSource: z.string().optional(), - childCount: z.number().int().optional(), - composite: z.string().optional(), - contentRating: z.string().optional(), - Country: z.array(Tag$inboundSchema).optional(), - Director: z.array(Tag$inboundSchema).optional(), - duration: z.number().int().optional(), - Filter: z.array(Filter$inboundSchema).optional(), - Genre: z.array(Tag$inboundSchema).optional(), - grandparentArt: z.string().optional(), - grandparentGuid: z.string().optional(), - grandparentHero: z.string().optional(), - grandparentKey: z.string().optional(), - grandparentRatingKey: z.string().optional(), - grandparentTheme: z.string().optional(), - grandparentThumb: z.string().optional(), - grandparentTitle: z.string().optional(), - guid: z.string().optional(), - Guid: z.array(z.lazy(() => ItemsGuid$inboundSchema)).optional(), - hero: z.string().optional(), - Image: z.array(Image$inboundSchema).optional(), - index: z.number().int().optional(), - key: z.string(), - lastViewedAt: z.number().int().optional(), - leafCount: z.number().int().optional(), - Media: z.array(Media$inboundSchema).optional(), - originallyAvailableAt: z.string().transform(v => new RFCDate(v)) - .optional(), - originalTitle: z.string().optional(), - parentGuid: z.string().optional(), - parentHero: z.string().optional(), - parentIndex: z.number().int().optional(), - parentKey: z.string().optional(), - parentRatingKey: z.string().optional(), - parentThumb: z.string().optional(), - parentTitle: z.string().optional(), - primaryExtraKey: z.string().optional(), - prompt: z.string().optional(), - rating: z.number().optional(), - Rating: z.array(Tag$inboundSchema).optional(), - ratingCount: z.number().int().optional(), - ratingImage: z.string().optional(), - ratingKey: z.string().optional(), - Role: z.array(Tag$inboundSchema).optional(), - search: z.boolean().optional(), - secondary: z.boolean().optional(), - skipChildren: z.boolean().optional(), - skipParent: z.boolean().optional(), - Sort: z.array(Sort$inboundSchema).optional(), - studio: z.string().optional(), - subtype: z.string().optional(), - summary: z.string().optional(), - tagline: z.string().optional(), - theme: z.string().optional(), - thumb: z.string().optional(), - titleSort: z.string().optional(), - updatedAt: z.number().int().optional(), - userRating: z.number().optional(), - viewCount: z.number().int().optional(), - viewedLeafCount: z.number().int().optional(), - viewOffset: z.number().int().optional(), - Writer: z.array(Tag$inboundSchema).optional(), - year: z.number().int().optional(), - MetadataItem: z.array(z.lazy(() => Items$inboundSchema)).optional(), - }).catchall(z.any()), - "additionalProperties", - true, - ).transform((v) => { - return remap$(v, { - "Autotag": "autotag", - "Country": "country", - "Director": "director", - "Filter": "filter", - "Genre": "genre", - "Guid": "guids", - "Image": "image", - "Media": "media", - "Rating": "ratingArray", - "Role": "role", - "Sort": "sort", - "Writer": "writer", - "MetadataItem": "metadataItem", - }); +export const Items$inboundSchema: z.ZodType = collectExtraKeys$( + z.object({ + title: types.string(), + type: types.string(), + absoluteIndex: types.optional(types.number()), + addedAt: types.number(), + art: types.optional(types.string()), + audienceRating: types.optional(types.number()), + audienceRatingImage: types.optional(types.string()), + Autotag: types.optional(z.array(Tag$inboundSchema)), + banner: types.optional(types.string()), + chapterSource: types.optional(types.string()), + childCount: types.optional(types.number()), + composite: types.optional(types.string()), + contentRating: types.optional(types.string()), + Country: types.optional(z.array(Tag$inboundSchema)), + Director: types.optional(z.array(Tag$inboundSchema)), + duration: types.optional(types.number()), + Filter: types.optional(z.array(Filter$inboundSchema)), + Genre: types.optional(z.array(Tag$inboundSchema)), + grandparentArt: types.optional(types.string()), + grandparentGuid: types.optional(types.string()), + grandparentHero: types.optional(types.string()), + grandparentKey: types.optional(types.string()), + grandparentRatingKey: types.optional(types.string()), + grandparentTheme: types.optional(types.string()), + grandparentThumb: types.optional(types.string()), + grandparentTitle: types.optional(types.string()), + guid: types.optional(types.string()), + Guid: types.optional(z.array(z.lazy(() => ItemsGuid$inboundSchema))), + hero: types.optional(types.string()), + Image: types.optional(z.array(Image$inboundSchema)), + index: types.optional(types.number()), + key: types.string(), + lastViewedAt: types.optional(types.number()), + leafCount: types.optional(types.number()), + Media: types.optional(z.array(Media$inboundSchema)), + originallyAvailableAt: types.optional(types.date()), + originalTitle: types.optional(types.string()), + parentGuid: types.optional(types.string()), + parentHero: types.optional(types.string()), + parentIndex: types.optional(types.number()), + parentKey: types.optional(types.string()), + parentRatingKey: types.optional(types.string()), + parentThumb: types.optional(types.string()), + parentTitle: types.optional(types.string()), + primaryExtraKey: types.optional(types.string()), + prompt: types.optional(types.string()), + rating: types.optional(types.number()), + Rating: types.optional(z.array(Tag$inboundSchema)), + ratingCount: types.optional(types.number()), + ratingImage: types.optional(types.string()), + ratingKey: types.optional(types.string()), + Role: types.optional(z.array(Tag$inboundSchema)), + search: types.optional(types.boolean()), + secondary: types.optional(types.boolean()), + skipChildren: types.optional(types.boolean()), + skipParent: types.optional(types.boolean()), + Sort: types.optional(z.array(Sort$inboundSchema)), + studio: types.optional(types.string()), + subtype: types.optional(types.string()), + summary: types.optional(types.string()), + tagline: types.optional(types.string()), + theme: types.optional(types.string()), + thumb: types.optional(types.string()), + titleSort: types.optional(types.string()), + updatedAt: types.optional(types.number()), + userRating: types.optional(types.number()), + viewCount: types.optional(types.number()), + viewedLeafCount: types.optional(types.number()), + viewOffset: types.optional(types.number()), + Writer: types.optional(z.array(Tag$inboundSchema)), + year: types.optional(types.number()), + MetadataItem: types.optional(z.array(z.lazy(() => Items$inboundSchema))), + }).catchall(z.any()), + "additionalProperties", + true, +).transform((v) => { + return remap$(v, { + "Autotag": "autotag", + "Country": "country", + "Director": "director", + "Filter": "filter", + "Genre": "genre", + "Guid": "guids", + "Image": "image", + "Media": "media", + "Rating": "ratingArray", + "Role": "role", + "Sort": "sort", + "Writer": "writer", + "MetadataItem": "metadataItem", }); +}); export function itemsFromJSON( jsonString: string, diff --git a/src/sdk/models/shared/librarysection.ts b/src/models/shared/librarysection.ts similarity index 61% rename from src/sdk/models/shared/librarysection.ts rename to src/models/shared/librarysection.ts index 9ab0b2f5..a4fb46b7 100644 --- a/src/sdk/models/shared/librarysection.ts +++ b/src/models/shared/librarysection.ts @@ -2,14 +2,15 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { - MediaTypeString, MediaTypeString$inboundSchema, + MediaTypeStringOpen, } from "./mediatypestring.js"; /** @@ -33,7 +34,7 @@ export type LibrarySection = { * * @remarks */ - type: MediaTypeString; + type: MediaTypeStringOpen; agent?: string | undefined; allowSync?: boolean | undefined; art?: string | undefined; @@ -67,11 +68,10 @@ export type LibrarySection = { /** @internal */ export const LibrarySectionLocation$inboundSchema: z.ZodType< LibrarySectionLocation, - z.ZodTypeDef, unknown > = z.object({ - id: z.number().int().optional(), - path: z.any().optional(), + id: types.optional(types.number()), + path: types.optional(z.any()), }); export function librarySectionLocationFromJSON( @@ -85,38 +85,36 @@ export function librarySectionLocationFromJSON( } /** @internal */ -export const LibrarySection$inboundSchema: z.ZodType< - LibrarySection, - z.ZodTypeDef, - unknown -> = z.object({ - title: z.string().optional(), - type: MediaTypeString$inboundSchema, - agent: z.string().optional(), - allowSync: z.boolean().optional(), - art: z.string().optional(), - composite: z.string().optional(), - content: z.boolean().optional(), - contentChangedAt: z.number().int().optional(), - createdAt: z.number().int().optional(), - directory: z.boolean().optional(), - filters: z.boolean().optional(), - hidden: z.boolean().optional(), - key: z.string().optional(), - language: z.string(), - uuid: z.string(), - Location: z.array(z.lazy(() => LibrarySectionLocation$inboundSchema)) - .optional(), - refreshing: z.boolean().optional(), - scannedAt: z.number().int().optional(), - scanner: z.string().optional(), - thumb: z.string().optional(), - updatedAt: z.number().int().optional(), -}).transform((v) => { - return remap$(v, { - "Location": "location", +export const LibrarySection$inboundSchema: z.ZodType = + z.object({ + title: types.optional(types.string()), + type: MediaTypeString$inboundSchema, + agent: types.optional(types.string()), + allowSync: types.optional(types.boolean()), + art: types.optional(types.string()), + composite: types.optional(types.string()), + content: types.optional(types.boolean()), + contentChangedAt: types.optional(types.number()), + createdAt: types.optional(types.number()), + directory: types.optional(types.boolean()), + filters: types.optional(types.boolean()), + hidden: types.optional(types.boolean()), + key: types.optional(types.string()), + language: types.string(), + uuid: types.string(), + Location: types.optional( + z.array(z.lazy(() => LibrarySectionLocation$inboundSchema)), + ), + refreshing: types.optional(types.boolean()), + scannedAt: types.optional(types.number()), + scanner: types.optional(types.string()), + thumb: types.optional(types.string()), + updatedAt: types.optional(types.number()), + }).transform((v) => { + return remap$(v, { + "Location": "location", + }); }); -}); export function librarySectionFromJSON( jsonString: string, diff --git a/src/sdk/models/shared/librarysections.ts b/src/models/shared/librarysections.ts similarity index 63% rename from src/sdk/models/shared/librarysections.ts rename to src/models/shared/librarysections.ts index ada3fafa..ef66deb3 100644 --- a/src/sdk/models/shared/librarysections.ts +++ b/src/models/shared/librarysections.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type DirectoryResponse = { @@ -109,12 +110,11 @@ export type LibrarySections = { /** @internal */ export const DirectoryResponse$inboundSchema: z.ZodType< DirectoryResponse, - z.ZodTypeDef, unknown > = z.object({ - count: z.number().int().optional(), - key: z.string().optional(), - title: z.string().optional(), + count: types.optional(types.number()), + key: types.optional(types.string()), + title: types.optional(types.string()), }); export function directoryResponseFromJSON( @@ -130,62 +130,63 @@ export function directoryResponseFromJSON( /** @internal */ export const LibrarySectionsMediaContainer$inboundSchema: z.ZodType< LibrarySectionsMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - allowCameraUpload: z.boolean().optional(), - allowChannelAccess: z.boolean().optional(), - allowMediaDeletion: z.boolean().optional(), - allowSharing: z.boolean().optional(), - allowSync: z.boolean().optional(), - allowTuners: z.boolean().optional(), - backgroundProcessing: z.boolean().optional(), - certificate: z.boolean().optional(), - companionProxy: z.boolean().optional(), - countryCode: z.string().optional(), - diagnostics: z.string().optional(), - eventStream: z.boolean().optional(), - friendlyName: z.string().optional(), - hubSearch: z.boolean().optional(), - itemClusters: z.boolean().optional(), - livetv: z.number().int().optional(), - machineIdentifier: z.any().optional(), - mediaProviders: z.boolean().optional(), - multiuser: z.boolean().optional(), - musicAnalysis: z.number().int().optional(), - myPlex: z.boolean().optional(), - myPlexMappingState: z.any().optional(), - myPlexSigninState: z.any().optional(), - myPlexSubscription: z.boolean().optional(), - myPlexUsername: z.string().optional(), - offlineTranscode: z.any().optional(), - ownerFeatures: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - pluginHost: z.boolean().optional(), - pushNotifications: z.boolean().optional(), - readOnlyLibraries: z.boolean().optional(), - streamingBrainABRVersion: z.number().int().optional(), - streamingBrainVersion: z.number().int().optional(), - sync: z.boolean().optional(), - transcoderActiveVideoSessions: z.number().int().optional(), - transcoderAudio: z.boolean().optional(), - transcoderLyrics: z.boolean().optional(), - transcoderPhoto: z.boolean().optional(), - transcoderSubtitles: z.boolean().optional(), - transcoderVideo: z.boolean().optional(), - transcoderVideoBitrates: z.any().optional(), - transcoderVideoQualities: z.string().optional(), - transcoderVideoResolutions: z.any().optional(), - updatedAt: z.number().int().optional(), - updater: z.boolean().optional(), - version: z.string().optional(), - voiceSearch: z.boolean().optional(), - Directory: z.array(z.lazy(() => DirectoryResponse$inboundSchema)).optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + allowCameraUpload: types.optional(types.boolean()), + allowChannelAccess: types.optional(types.boolean()), + allowMediaDeletion: types.optional(types.boolean()), + allowSharing: types.optional(types.boolean()), + allowSync: types.optional(types.boolean()), + allowTuners: types.optional(types.boolean()), + backgroundProcessing: types.optional(types.boolean()), + certificate: types.optional(types.boolean()), + companionProxy: types.optional(types.boolean()), + countryCode: types.optional(types.string()), + diagnostics: types.optional(types.string()), + eventStream: types.optional(types.boolean()), + friendlyName: types.optional(types.string()), + hubSearch: types.optional(types.boolean()), + itemClusters: types.optional(types.boolean()), + livetv: types.optional(types.number()), + machineIdentifier: types.optional(z.any()), + mediaProviders: types.optional(types.boolean()), + multiuser: types.optional(types.boolean()), + musicAnalysis: types.optional(types.number()), + myPlex: types.optional(types.boolean()), + myPlexMappingState: types.optional(z.any()), + myPlexSigninState: types.optional(z.any()), + myPlexSubscription: types.optional(types.boolean()), + myPlexUsername: types.optional(types.string()), + offlineTranscode: types.optional(z.any()), + ownerFeatures: types.optional(types.string()), + platform: types.optional(types.string()), + platformVersion: types.optional(types.string()), + pluginHost: types.optional(types.boolean()), + pushNotifications: types.optional(types.boolean()), + readOnlyLibraries: types.optional(types.boolean()), + streamingBrainABRVersion: types.optional(types.number()), + streamingBrainVersion: types.optional(types.number()), + sync: types.optional(types.boolean()), + transcoderActiveVideoSessions: types.optional(types.number()), + transcoderAudio: types.optional(types.boolean()), + transcoderLyrics: types.optional(types.boolean()), + transcoderPhoto: types.optional(types.boolean()), + transcoderSubtitles: types.optional(types.boolean()), + transcoderVideo: types.optional(types.boolean()), + transcoderVideoBitrates: types.optional(z.any()), + transcoderVideoQualities: types.optional(types.string()), + transcoderVideoResolutions: types.optional(z.any()), + updatedAt: types.optional(types.number()), + updater: types.optional(types.boolean()), + version: types.optional(types.string()), + voiceSearch: types.optional(types.boolean()), + Directory: types.optional( + z.array(z.lazy(() => DirectoryResponse$inboundSchema)), + ), }).transform((v) => { return remap$(v, { "Directory": "directory", @@ -205,11 +206,11 @@ export function librarySectionsMediaContainerFromJSON( /** @internal */ export const LibrarySections$inboundSchema: z.ZodType< LibrarySections, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => LibrarySectionsMediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => LibrarySectionsMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", diff --git a/src/sdk/models/shared/lineup.ts b/src/models/shared/lineup.ts similarity index 56% rename from src/sdk/models/shared/lineup.ts rename to src/models/shared/lineup.ts index 0d25f4d6..f8918dd7 100644 --- a/src/sdk/models/shared/lineup.ts +++ b/src/models/shared/lineup.ts @@ -2,9 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { safeParse } from "../../lib/schemas.js"; +import * as openEnums from "../../types/enums.js"; +import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** @@ -25,6 +28,17 @@ export enum LineupType { Three = 3, Four = 4, } +/** + * - `-1`: N/A + * + * @remarks + * - `0`: Over the air + * - `1`: Cable + * - `2`: Satellite + * - `3`: IPTV + * - `4`: Virtual + */ +export type LineupTypeOpen = OpenEnum; export type Lineup = { title?: string | undefined; @@ -42,7 +56,7 @@ export type Lineup = { * - `3`: IPTV * - `4`: Virtual */ - lineupType?: LineupType | undefined; + lineupType?: LineupTypeOpen | undefined; location?: string | undefined; /** * The uuid of this lineup @@ -51,18 +65,17 @@ export type Lineup = { }; /** @internal */ -export const LineupType$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(LineupType); +export const LineupType$inboundSchema: z.ZodType = + openEnums.inboundSchemaInt(LineupType); /** @internal */ -export const Lineup$inboundSchema: z.ZodType = z - .object({ - title: z.string().optional(), - type: z.string().optional(), - lineupType: LineupType$inboundSchema.optional(), - location: z.string().optional(), - uuid: z.string().optional(), - }); +export const Lineup$inboundSchema: z.ZodType = z.object({ + title: types.optional(types.string()), + type: types.optional(types.string()), + lineupType: types.optional(LineupType$inboundSchema), + location: types.optional(types.string()), + uuid: types.optional(types.string()), +}); export function lineupFromJSON( jsonString: string, diff --git a/src/sdk/models/shared/locationparameter.ts b/src/models/shared/locationparameter.ts similarity index 61% rename from src/sdk/models/shared/locationparameter.ts rename to src/models/shared/locationparameter.ts index ae9caa59..be284886 100644 --- a/src/sdk/models/shared/locationparameter.ts +++ b/src/models/shared/locationparameter.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; +import * as z from "zod/v4"; export enum LocationParameter { Lan = "lan", @@ -11,6 +11,6 @@ export enum LocationParameter { } /** @internal */ -export const LocationParameter$outboundSchema: z.ZodNativeEnum< +export const LocationParameter$outboundSchema: z.ZodEnum< typeof LocationParameter -> = z.nativeEnum(LocationParameter); +> = z.enum(LocationParameter); diff --git a/src/sdk/models/shared/media.ts b/src/models/shared/media.ts similarity index 58% rename from src/sdk/models/shared/media.ts rename to src/models/shared/media.ts index 740e6204..a065daf1 100644 --- a/src/sdk/models/shared/media.ts +++ b/src/models/shared/media.ts @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, safeParse, -} from "../../../lib/schemas.js"; +} from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Part, Part$inboundSchema } from "./part.js"; @@ -40,35 +41,34 @@ export type Media = { }; /** @internal */ -export const Media$inboundSchema: z.ZodType = - collectExtraKeys$( - z.object({ - aspectRatio: z.number().optional(), - audioChannels: z.number().int().optional(), - audioCodec: z.string().optional(), - audioProfile: z.string().optional(), - bitrate: z.number().int().optional(), - container: z.string().optional(), - duration: z.number().int().optional(), - has64bitOffsets: z.boolean().optional(), - hasVoiceActivity: z.boolean().optional(), - height: z.number().int().optional(), - id: z.number().int(), - optimizedForStreaming: z.boolean().optional(), - Part: z.array(Part$inboundSchema).optional(), - videoCodec: z.string().optional(), - videoFrameRate: z.string().optional(), - videoProfile: z.string().optional(), - videoResolution: z.string().optional(), - width: z.number().int().optional(), - }).catchall(z.any()), - "additionalProperties", - true, - ).transform((v) => { - return remap$(v, { - "Part": "part", - }); +export const Media$inboundSchema: z.ZodType = collectExtraKeys$( + z.object({ + aspectRatio: types.optional(types.number()), + audioChannels: types.optional(types.number()), + audioCodec: types.optional(types.string()), + audioProfile: types.optional(types.string()), + bitrate: types.optional(types.number()), + container: types.optional(types.string()), + duration: types.optional(types.number()), + has64bitOffsets: types.optional(types.boolean()), + hasVoiceActivity: types.optional(types.boolean()), + height: types.optional(types.number()), + id: types.number(), + optimizedForStreaming: types.optional(types.boolean()), + Part: types.optional(z.array(Part$inboundSchema)), + videoCodec: types.optional(types.string()), + videoFrameRate: types.optional(types.string()), + videoProfile: types.optional(types.string()), + videoResolution: types.optional(types.string()), + width: types.optional(types.number()), + }).catchall(z.any()), + "additionalProperties", + true, +).transform((v) => { + return remap$(v, { + "Part": "part", }); +}); export function mediaFromJSON( jsonString: string, diff --git a/src/sdk/models/shared/mediacontainer.ts b/src/models/shared/mediacontainer.ts similarity index 80% rename from src/sdk/models/shared/mediacontainer.ts rename to src/models/shared/mediacontainer.ts index 82304888..545dd1f3 100644 --- a/src/sdk/models/shared/mediacontainer.ts +++ b/src/models/shared/mediacontainer.ts @@ -2,9 +2,10 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** @@ -32,16 +33,13 @@ export type MediaContainer = { }; /** @internal */ -export const MediaContainer$inboundSchema: z.ZodType< - MediaContainer, - z.ZodTypeDef, - unknown -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), -}); +export const MediaContainer$inboundSchema: z.ZodType = + z.object({ + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + }); export function mediaContainerFromJSON( jsonString: string, diff --git a/src/sdk/models/shared/mediacontainerwithartwork.ts b/src/models/shared/mediacontainerwithartwork.ts similarity index 82% rename from src/sdk/models/shared/mediacontainerwithartwork.ts rename to src/models/shared/mediacontainerwithartwork.ts index be3d1269..f5990238 100644 --- a/src/sdk/models/shared/mediacontainerwithartwork.ts +++ b/src/models/shared/mediacontainerwithartwork.ts @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, safeParse, -} from "../../../lib/schemas.js"; +} from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export enum MediaContainerWithArtworkType { @@ -58,20 +59,19 @@ export type MediaContainerWithArtwork = { }; /** @internal */ -export const MediaContainerWithArtworkType$inboundSchema: z.ZodNativeEnum< +export const MediaContainerWithArtworkType$inboundSchema: z.ZodEnum< typeof MediaContainerWithArtworkType -> = z.nativeEnum(MediaContainerWithArtworkType); +> = z.enum(MediaContainerWithArtworkType); /** @internal */ export const MediaContainerWithArtworkMetadatum$inboundSchema: z.ZodType< MediaContainerWithArtworkMetadatum, - z.ZodTypeDef, unknown > = collectExtraKeys$( z.object({ - title: z.string().optional(), - type: MediaContainerWithArtworkType$inboundSchema.optional(), - key: z.string().optional(), + title: types.optional(types.string()), + type: types.optional(MediaContainerWithArtworkType$inboundSchema), + key: types.optional(types.string()), }).catchall(z.any()), "additionalProperties", true, @@ -91,16 +91,15 @@ export function mediaContainerWithArtworkMetadatumFromJSON( /** @internal */ export const MediaContainerWithArtworkMediaContainer$inboundSchema: z.ZodType< MediaContainerWithArtworkMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - Metadata: z.array( - z.lazy(() => MediaContainerWithArtworkMetadatum$inboundSchema), - ).optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + Metadata: types.optional( + z.array(z.lazy(() => MediaContainerWithArtworkMetadatum$inboundSchema)), + ), }).transform((v) => { return remap$(v, { "Metadata": "metadata", @@ -126,12 +125,11 @@ export function mediaContainerWithArtworkMediaContainerFromJSON( /** @internal */ export const MediaContainerWithArtwork$inboundSchema: z.ZodType< MediaContainerWithArtwork, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => - MediaContainerWithArtworkMediaContainer$inboundSchema - ).optional(), + MediaContainer: types.optional( + z.lazy(() => MediaContainerWithArtworkMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", diff --git a/src/sdk/models/shared/mediacontainerwithdecision.ts b/src/models/shared/mediacontainerwithdecision.ts similarity index 73% rename from src/sdk/models/shared/mediacontainerwithdecision.ts rename to src/models/shared/mediacontainerwithdecision.ts index 50e1a62f..e639d46e 100644 --- a/src/sdk/models/shared/mediacontainerwithdecision.ts +++ b/src/models/shared/mediacontainerwithdecision.ts @@ -2,14 +2,16 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, safeParse, -} from "../../../lib/schemas.js"; +} from "../../lib/schemas.js"; +import * as openEnums from "../../types/enums.js"; +import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; -import { RFCDate } from "../../types/rfcdate.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Filter, Filter$inboundSchema } from "./filter.js"; import { Image, Image$inboundSchema } from "./image.js"; @@ -33,6 +35,7 @@ export enum StreamDecision { Ignore = "ignore", None = "none", } +export type StreamDecisionOpen = OpenEnum; export enum MediaContainerWithDecisionLocation { Direct = "direct", @@ -44,6 +47,9 @@ export enum MediaContainerWithDecisionLocation { Embedded = "embedded", Sidecar = "sidecar", } +export type MediaContainerWithDecisionLocationOpen = OpenEnum< + typeof MediaContainerWithDecisionLocation +>; /** * `Stream` represents a particular stream from a media item, such as the video stream, audio stream, or subtitle stream. The stream may either be part of the file represented by the parent `Part` or, especially for subtitles, an external file. The stream contains more detailed information about the specific stream. For example, a video may include the `aspectRatio` at the `Media` level, but detailed information about the video stream like the color space will be included on the `Stream` for the video stream. Note that photos do not have streams (mostly as an optimization). @@ -246,8 +252,8 @@ export type MediaContainerWithDecisionStream = { * Width of the video stream. */ width?: number | undefined; - decision?: StreamDecision | undefined; - location?: MediaContainerWithDecisionLocation | undefined; + decision?: StreamDecisionOpen | undefined; + location?: MediaContainerWithDecisionLocationOpen | undefined; additionalProperties?: { [k: string]: any } | undefined; }; @@ -256,6 +262,7 @@ export enum Decision { Transcode = "transcode", None = "none", } +export type DecisionOpen = OpenEnum; /** * `Part` represents a particular file or "part" of a media item. The part is the playable unit of the media hierarchy. Suppose that a movie library contains a movie that is broken up into files, reminiscent of a movie split across two BDs. The metadata item represents information about the movie, the media item represents this instance of the movie at this resolution and quality, and the part items represent the two playable files. If another media were added which contained the joining of these two parts transcoded down to a lower resolution, then this metadata would contain 2 medias, one with 2 parts and one with 1 part. @@ -298,7 +305,7 @@ export type MediaContainerWithDecisionPart = { size?: number | undefined; stream?: Array | undefined; videoProfile?: string | undefined; - decision?: Decision | undefined; + decision?: DecisionOpen | undefined; selected?: boolean | undefined; additionalProperties?: { [k: string]: any } | undefined; }; @@ -462,7 +469,7 @@ export type MediaContainerWithDecisionMetadatum = { /** * When present, in the format YYYY-MM-DD [HH:MM:SS] (the hours/minutes/seconds part is not always present). The air date, or a higher resolution release date for an item, depending on type. For example, episodes usually have air date like 1979-08-10 (we don't use epoch seconds because media existed prior to 1970). In some cases, recorded over-the-air content has higher resolution air date which includes a time component. Albums and movies may have day-resolution release dates as well. */ - originallyAvailableAt?: RFCDate | undefined; + originallyAvailableAt?: Date | undefined; /** * When present, used to indicate an item's original title, e.g. a movie's foreign title. */ @@ -657,10 +664,9 @@ export type MediaContainerWithDecision = { /** @internal */ export const MediaContainerWithDecisionGuid$inboundSchema: z.ZodType< MediaContainerWithDecisionGuid, - z.ZodTypeDef, unknown > = z.object({ - id: z.string(), + id: types.string(), }); export function mediaContainerWithDecisionGuidFromJSON( @@ -674,76 +680,77 @@ export function mediaContainerWithDecisionGuidFromJSON( } /** @internal */ -export const StreamDecision$inboundSchema: z.ZodNativeEnum< - typeof StreamDecision -> = z.nativeEnum(StreamDecision); +export const StreamDecision$inboundSchema: z.ZodType< + StreamDecisionOpen, + unknown +> = openEnums.inboundSchema(StreamDecision); /** @internal */ -export const MediaContainerWithDecisionLocation$inboundSchema: z.ZodNativeEnum< - typeof MediaContainerWithDecisionLocation -> = z.nativeEnum(MediaContainerWithDecisionLocation); +export const MediaContainerWithDecisionLocation$inboundSchema: z.ZodType< + MediaContainerWithDecisionLocationOpen, + unknown +> = openEnums.inboundSchema(MediaContainerWithDecisionLocation); /** @internal */ export const MediaContainerWithDecisionStream$inboundSchema: z.ZodType< MediaContainerWithDecisionStream, - z.ZodTypeDef, unknown > = collectExtraKeys$( z.object({ - default: z.boolean().optional(), - audioChannelLayout: z.string().optional(), - channels: z.number().int().optional(), - bitDepth: z.number().int().optional(), - DOVIBLCompatID: z.number().int().optional(), - DOVIBLPresent: z.boolean().optional(), - DOVIELPresent: z.boolean().optional(), - DOVILevel: z.number().int().optional(), - DOVIPresent: z.boolean().optional(), - DOVIProfile: z.number().int().optional(), - DOVIRPUPresent: z.boolean().optional(), - DOVIVersion: z.string().optional(), - bitrate: z.number().int().optional(), - canAutoSync: z.boolean().optional(), - chromaLocation: z.string().optional(), - chromaSubsampling: z.string().optional(), - codedHeight: z.number().int().optional(), - codedWidth: z.number().int().optional(), - closedCaptions: z.boolean().optional(), - codec: z.string(), - colorPrimaries: z.string().optional(), - colorRange: z.string().optional(), - colorSpace: z.string().optional(), - colorTrc: z.string().optional(), - displayTitle: z.string(), - extendedDisplayTitle: z.string().optional(), - frameRate: z.number().optional(), - hasScalingMatrix: z.boolean().optional(), - height: z.number().int().optional(), - id: z.number().int(), - index: z.number().int().optional(), - key: z.string(), - language: z.string().optional(), - languageCode: z.string().optional(), - languageTag: z.string().optional(), - format: z.string().optional(), - headerCompression: z.boolean().optional(), - level: z.number().int().optional(), - original: z.boolean().optional(), - profile: z.string().optional(), - refFrames: z.number().int().optional(), - samplingRate: z.number().int().optional(), - scanType: z.string().optional(), - embeddedInVideo: z.string().optional(), - selected: z.boolean().optional(), - forced: z.boolean().optional(), - hearingImpaired: z.boolean().optional(), - dub: z.boolean().optional(), - title: z.string().optional(), - streamIdentifier: z.number().int().optional(), - streamType: z.literal(1).default(1).optional(), - width: z.number().int().optional(), - decision: StreamDecision$inboundSchema.optional(), - location: MediaContainerWithDecisionLocation$inboundSchema.optional(), + default: types.optional(types.boolean()), + audioChannelLayout: types.optional(types.string()), + channels: types.optional(types.number()), + bitDepth: types.optional(types.number()), + DOVIBLCompatID: types.optional(types.number()), + DOVIBLPresent: types.optional(types.boolean()), + DOVIELPresent: types.optional(types.boolean()), + DOVILevel: types.optional(types.number()), + DOVIPresent: types.optional(types.boolean()), + DOVIProfile: types.optional(types.number()), + DOVIRPUPresent: types.optional(types.boolean()), + DOVIVersion: types.optional(types.string()), + bitrate: types.optional(types.number()), + canAutoSync: types.optional(types.boolean()), + chromaLocation: types.optional(types.string()), + chromaSubsampling: types.optional(types.string()), + codedHeight: types.optional(types.number()), + codedWidth: types.optional(types.number()), + closedCaptions: types.optional(types.boolean()), + codec: types.string(), + colorPrimaries: types.optional(types.string()), + colorRange: types.optional(types.string()), + colorSpace: types.optional(types.string()), + colorTrc: types.optional(types.string()), + displayTitle: types.string(), + extendedDisplayTitle: types.optional(types.string()), + frameRate: types.optional(types.number()), + hasScalingMatrix: types.optional(types.boolean()), + height: types.optional(types.number()), + id: types.number(), + index: types.optional(types.number()), + key: types.string(), + language: types.optional(types.string()), + languageCode: types.optional(types.string()), + languageTag: types.optional(types.string()), + format: types.optional(types.string()), + headerCompression: types.optional(types.boolean()), + level: types.optional(types.number()), + original: types.optional(types.boolean()), + profile: types.optional(types.string()), + refFrames: types.optional(types.number()), + samplingRate: types.optional(types.number()), + scanType: types.optional(types.string()), + embeddedInVideo: types.optional(types.string()), + selected: types.optional(types.boolean()), + forced: types.optional(types.boolean()), + hearingImpaired: types.optional(types.boolean()), + dub: types.optional(types.boolean()), + title: types.optional(types.string()), + streamIdentifier: types.optional(types.number()), + streamType: types.optional(types.literal(1)), + width: types.optional(types.number()), + decision: types.optional(StreamDecision$inboundSchema), + location: types.optional(MediaContainerWithDecisionLocation$inboundSchema), }).catchall(z.any()), "additionalProperties", true, @@ -771,34 +778,33 @@ export function mediaContainerWithDecisionStreamFromJSON( } /** @internal */ -export const Decision$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(Decision); +export const Decision$inboundSchema: z.ZodType = + openEnums.inboundSchema(Decision); /** @internal */ export const MediaContainerWithDecisionPart$inboundSchema: z.ZodType< MediaContainerWithDecisionPart, - z.ZodTypeDef, unknown > = collectExtraKeys$( z.object({ - accessible: z.boolean().optional(), - audioProfile: z.string().optional(), - container: z.string().optional(), - duration: z.number().int().optional(), - exists: z.boolean().optional(), - file: z.string().optional(), - has64bitOffsets: z.boolean().optional(), - id: z.number().int(), - indexes: z.string().optional(), - key: z.string(), - optimizedForStreaming: z.boolean().optional(), - size: z.number().int().optional(), - Stream: z.array( - z.lazy(() => MediaContainerWithDecisionStream$inboundSchema), - ).optional(), - videoProfile: z.string().optional(), - decision: Decision$inboundSchema.optional(), - selected: z.boolean().optional(), + accessible: types.optional(types.boolean()), + audioProfile: types.optional(types.string()), + container: types.optional(types.string()), + duration: types.optional(types.number()), + exists: types.optional(types.boolean()), + file: types.optional(types.string()), + has64bitOffsets: types.optional(types.boolean()), + id: types.number(), + indexes: types.optional(types.string()), + key: types.string(), + optimizedForStreaming: types.optional(types.boolean()), + size: types.optional(types.number()), + Stream: types.optional( + z.array(z.lazy(() => MediaContainerWithDecisionStream$inboundSchema)), + ), + videoProfile: types.optional(types.string()), + decision: types.optional(Decision$inboundSchema), + selected: types.optional(types.boolean()), }).catchall(z.any()), "additionalProperties", true, @@ -821,32 +827,32 @@ export function mediaContainerWithDecisionPartFromJSON( /** @internal */ export const MediaContainerWithDecisionMedia$inboundSchema: z.ZodType< MediaContainerWithDecisionMedia, - z.ZodTypeDef, unknown > = collectExtraKeys$( z.object({ - aspectRatio: z.number().optional(), - audioChannels: z.number().int().optional(), - audioCodec: z.string().optional(), - audioProfile: z.string().optional(), - bitrate: z.number().int().optional(), - container: z.string().optional(), - duration: z.number().int().optional(), - has64bitOffsets: z.boolean().optional(), - hasVoiceActivity: z.boolean().optional(), - height: z.number().int().optional(), - id: z.number().int(), - optimizedForStreaming: z.boolean().optional(), - Part: z.array(z.lazy(() => MediaContainerWithDecisionPart$inboundSchema)) - .optional(), - videoCodec: z.string().optional(), - videoFrameRate: z.string().optional(), - videoProfile: z.string().optional(), - videoResolution: z.string().optional(), - width: z.number().int().optional(), - abr: z.boolean().optional(), - resourceSession: z.string().optional(), - selected: z.boolean().optional(), + aspectRatio: types.optional(types.number()), + audioChannels: types.optional(types.number()), + audioCodec: types.optional(types.string()), + audioProfile: types.optional(types.string()), + bitrate: types.optional(types.number()), + container: types.optional(types.string()), + duration: types.optional(types.number()), + has64bitOffsets: types.optional(types.boolean()), + hasVoiceActivity: types.optional(types.boolean()), + height: types.optional(types.number()), + id: types.number(), + optimizedForStreaming: types.optional(types.boolean()), + Part: types.optional( + z.array(z.lazy(() => MediaContainerWithDecisionPart$inboundSchema)), + ), + videoCodec: types.optional(types.string()), + videoFrameRate: types.optional(types.string()), + videoProfile: types.optional(types.string()), + videoResolution: types.optional(types.string()), + width: types.optional(types.number()), + abr: types.optional(types.boolean()), + resourceSession: types.optional(types.string()), + selected: types.optional(types.boolean()), }).catchall(z.any()), "additionalProperties", true, @@ -869,83 +875,84 @@ export function mediaContainerWithDecisionMediaFromJSON( /** @internal */ export const MediaContainerWithDecisionMetadatum$inboundSchema: z.ZodType< MediaContainerWithDecisionMetadatum, - z.ZodTypeDef, unknown > = collectExtraKeys$( z.object({ - title: z.string(), - type: z.string(), - absoluteIndex: z.number().int().optional(), - addedAt: z.number().int(), - art: z.string().optional(), - audienceRating: z.number().optional(), - audienceRatingImage: z.string().optional(), - Autotag: z.array(Tag$inboundSchema).optional(), - banner: z.string().optional(), - chapterSource: z.string().optional(), - childCount: z.number().int().optional(), - composite: z.string().optional(), - contentRating: z.string().optional(), - Country: z.array(Tag$inboundSchema).optional(), - Director: z.array(Tag$inboundSchema).optional(), - duration: z.number().int().optional(), - Filter: z.array(Filter$inboundSchema).optional(), - Genre: z.array(Tag$inboundSchema).optional(), - grandparentArt: z.string().optional(), - grandparentGuid: z.string().optional(), - grandparentHero: z.string().optional(), - grandparentKey: z.string().optional(), - grandparentRatingKey: z.string().optional(), - grandparentTheme: z.string().optional(), - grandparentThumb: z.string().optional(), - grandparentTitle: z.string().optional(), - guid: z.string().optional(), - Guid: z.array(z.lazy(() => MediaContainerWithDecisionGuid$inboundSchema)) - .optional(), - hero: z.string().optional(), - Image: z.array(Image$inboundSchema).optional(), - index: z.number().int().optional(), - key: z.string(), - lastViewedAt: z.number().int().optional(), - leafCount: z.number().int().optional(), - Media: z.array(z.lazy(() => MediaContainerWithDecisionMedia$inboundSchema)) - .optional(), - originallyAvailableAt: z.string().transform(v => new RFCDate(v)).optional(), - originalTitle: z.string().optional(), - parentGuid: z.string().optional(), - parentHero: z.string().optional(), - parentIndex: z.number().int().optional(), - parentKey: z.string().optional(), - parentRatingKey: z.string().optional(), - parentThumb: z.string().optional(), - parentTitle: z.string().optional(), - primaryExtraKey: z.string().optional(), - prompt: z.string().optional(), - rating: z.number().optional(), - Rating: z.array(Tag$inboundSchema).optional(), - ratingCount: z.number().int().optional(), - ratingImage: z.string().optional(), - ratingKey: z.string().optional(), - Role: z.array(Tag$inboundSchema).optional(), - search: z.boolean().optional(), - secondary: z.boolean().optional(), - skipChildren: z.boolean().optional(), - skipParent: z.boolean().optional(), - Sort: z.array(Sort$inboundSchema).optional(), - studio: z.string().optional(), - subtype: z.string().optional(), - summary: z.string().optional(), - tagline: z.string().optional(), - theme: z.string().optional(), - thumb: z.string().optional(), - titleSort: z.string().optional(), - updatedAt: z.number().int().optional(), - userRating: z.number().optional(), - viewCount: z.number().int().optional(), - viewedLeafCount: z.number().int().optional(), - viewOffset: z.number().int().optional(), - Writer: z.array(Tag$inboundSchema).optional(), - year: z.number().int().optional(), + title: types.string(), + type: types.string(), + absoluteIndex: types.optional(types.number()), + addedAt: types.number(), + art: types.optional(types.string()), + audienceRating: types.optional(types.number()), + audienceRatingImage: types.optional(types.string()), + Autotag: types.optional(z.array(Tag$inboundSchema)), + banner: types.optional(types.string()), + chapterSource: types.optional(types.string()), + childCount: types.optional(types.number()), + composite: types.optional(types.string()), + contentRating: types.optional(types.string()), + Country: types.optional(z.array(Tag$inboundSchema)), + Director: types.optional(z.array(Tag$inboundSchema)), + duration: types.optional(types.number()), + Filter: types.optional(z.array(Filter$inboundSchema)), + Genre: types.optional(z.array(Tag$inboundSchema)), + grandparentArt: types.optional(types.string()), + grandparentGuid: types.optional(types.string()), + grandparentHero: types.optional(types.string()), + grandparentKey: types.optional(types.string()), + grandparentRatingKey: types.optional(types.string()), + grandparentTheme: types.optional(types.string()), + grandparentThumb: types.optional(types.string()), + grandparentTitle: types.optional(types.string()), + guid: types.optional(types.string()), + Guid: types.optional( + z.array(z.lazy(() => MediaContainerWithDecisionGuid$inboundSchema)), + ), + hero: types.optional(types.string()), + Image: types.optional(z.array(Image$inboundSchema)), + index: types.optional(types.number()), + key: types.string(), + lastViewedAt: types.optional(types.number()), + leafCount: types.optional(types.number()), + Media: types.optional( + z.array(z.lazy(() => MediaContainerWithDecisionMedia$inboundSchema)), + ), + originallyAvailableAt: types.optional(types.date()), + originalTitle: types.optional(types.string()), + parentGuid: types.optional(types.string()), + parentHero: types.optional(types.string()), + parentIndex: types.optional(types.number()), + parentKey: types.optional(types.string()), + parentRatingKey: types.optional(types.string()), + parentThumb: types.optional(types.string()), + parentTitle: types.optional(types.string()), + primaryExtraKey: types.optional(types.string()), + prompt: types.optional(types.string()), + rating: types.optional(types.number()), + Rating: types.optional(z.array(Tag$inboundSchema)), + ratingCount: types.optional(types.number()), + ratingImage: types.optional(types.string()), + ratingKey: types.optional(types.string()), + Role: types.optional(z.array(Tag$inboundSchema)), + search: types.optional(types.boolean()), + secondary: types.optional(types.boolean()), + skipChildren: types.optional(types.boolean()), + skipParent: types.optional(types.boolean()), + Sort: types.optional(z.array(Sort$inboundSchema)), + studio: types.optional(types.string()), + subtype: types.optional(types.string()), + summary: types.optional(types.string()), + tagline: types.optional(types.string()), + theme: types.optional(types.string()), + thumb: types.optional(types.string()), + titleSort: types.optional(types.string()), + updatedAt: types.optional(types.number()), + userRating: types.optional(types.number()), + viewCount: types.optional(types.number()), + viewedLeafCount: types.optional(types.number()), + viewOffset: types.optional(types.number()), + Writer: types.optional(z.array(Tag$inboundSchema)), + year: types.optional(types.number()), }).catchall(z.any()), "additionalProperties", true, @@ -980,25 +987,24 @@ export function mediaContainerWithDecisionMetadatumFromJSON( /** @internal */ export const MediaContainerWithDecisionMediaContainer$inboundSchema: z.ZodType< MediaContainerWithDecisionMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - availableBandwidth: z.number().int().optional(), - directPlayDecisionCode: z.number().int().optional(), - directPlayDecisionText: z.string().optional(), - generalDecisionCode: z.number().int().optional(), - generalDecisionText: z.string().optional(), - mdeDecisionCode: z.number().int().optional(), - mdeDecisionText: z.string().optional(), - Metadata: z.array( - z.lazy(() => MediaContainerWithDecisionMetadatum$inboundSchema), - ).optional(), - transcodeDecisionCode: z.number().int().optional(), - transcodeDecisionText: z.string().optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + availableBandwidth: types.optional(types.number()), + directPlayDecisionCode: types.optional(types.number()), + directPlayDecisionText: types.optional(types.string()), + generalDecisionCode: types.optional(types.number()), + generalDecisionText: types.optional(types.string()), + mdeDecisionCode: types.optional(types.number()), + mdeDecisionText: types.optional(types.string()), + Metadata: types.optional( + z.array(z.lazy(() => MediaContainerWithDecisionMetadatum$inboundSchema)), + ), + transcodeDecisionCode: types.optional(types.number()), + transcodeDecisionText: types.optional(types.string()), }).transform((v) => { return remap$(v, { "Metadata": "metadata", @@ -1024,12 +1030,11 @@ export function mediaContainerWithDecisionMediaContainerFromJSON( /** @internal */ export const MediaContainerWithDecision$inboundSchema: z.ZodType< MediaContainerWithDecision, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => - MediaContainerWithDecisionMediaContainer$inboundSchema - ).optional(), + MediaContainer: types.optional( + z.lazy(() => MediaContainerWithDecisionMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", diff --git a/src/sdk/models/shared/mediacontainerwithdevice.ts b/src/models/shared/mediacontainerwithdevice.ts similarity index 77% rename from src/sdk/models/shared/mediacontainerwithdevice.ts rename to src/models/shared/mediacontainerwithdevice.ts index 1c650d52..101edf73 100644 --- a/src/sdk/models/shared/mediacontainerwithdevice.ts +++ b/src/models/shared/mediacontainerwithdevice.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ChannelMapping, @@ -60,22 +61,21 @@ export type MediaContainerWithDevice = { /** @internal */ export const MediaContainerWithDeviceDevice$inboundSchema: z.ZodType< MediaContainerWithDeviceDevice, - z.ZodTypeDef, unknown > = z.object({ - ChannelMapping: z.array(ChannelMapping$inboundSchema).optional(), - key: z.string().optional(), - lastSeenAt: z.number().int().optional(), - make: z.string().optional(), - model: z.string().optional(), - modelNumber: z.string().optional(), - protocol: z.string().optional(), - sources: z.string().optional(), - state: z.string().optional(), - status: z.string().optional(), - tuners: z.string().optional(), - uri: z.string().optional(), - uuid: z.string().optional(), + ChannelMapping: types.optional(z.array(ChannelMapping$inboundSchema)), + key: types.optional(types.string()), + lastSeenAt: types.optional(types.number()), + make: types.optional(types.string()), + model: types.optional(types.string()), + modelNumber: types.optional(types.string()), + protocol: types.optional(types.string()), + sources: types.optional(types.string()), + state: types.optional(types.string()), + status: types.optional(types.string()), + tuners: types.optional(types.string()), + uri: types.optional(types.string()), + uuid: types.optional(types.string()), }).transform((v) => { return remap$(v, { "ChannelMapping": "channelMapping", @@ -95,15 +95,15 @@ export function mediaContainerWithDeviceDeviceFromJSON( /** @internal */ export const MediaContainerWithDeviceMediaContainer$inboundSchema: z.ZodType< MediaContainerWithDeviceMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - Device: z.array(z.lazy(() => MediaContainerWithDeviceDevice$inboundSchema)) - .optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + Device: types.optional( + z.array(z.lazy(() => MediaContainerWithDeviceDevice$inboundSchema)), + ), }).transform((v) => { return remap$(v, { "Device": "device", @@ -124,12 +124,11 @@ export function mediaContainerWithDeviceMediaContainerFromJSON( /** @internal */ export const MediaContainerWithDevice$inboundSchema: z.ZodType< MediaContainerWithDevice, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => - MediaContainerWithDeviceMediaContainer$inboundSchema - ).optional(), + MediaContainer: types.optional( + z.lazy(() => MediaContainerWithDeviceMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", diff --git a/src/sdk/models/shared/mediacontainerwithdirectory.ts b/src/models/shared/mediacontainerwithdirectory.ts similarity index 84% rename from src/sdk/models/shared/mediacontainerwithdirectory.ts rename to src/models/shared/mediacontainerwithdirectory.ts index 37fde71d..7dc9dba2 100644 --- a/src/sdk/models/shared/mediacontainerwithdirectory.ts +++ b/src/models/shared/mediacontainerwithdirectory.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Directory, Directory$inboundSchema } from "./directory.js"; @@ -41,14 +42,13 @@ export type MediaContainerWithDirectory = { /** @internal */ export const MediaContainerWithDirectoryMediaContainer$inboundSchema: z.ZodType< MediaContainerWithDirectoryMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - Directory: z.array(Directory$inboundSchema).optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + Directory: types.optional(z.array(Directory$inboundSchema)), }).transform((v) => { return remap$(v, { "Directory": "directory", @@ -74,12 +74,11 @@ export function mediaContainerWithDirectoryMediaContainerFromJSON( /** @internal */ export const MediaContainerWithDirectory$inboundSchema: z.ZodType< MediaContainerWithDirectory, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => - MediaContainerWithDirectoryMediaContainer$inboundSchema - ).optional(), + MediaContainer: types.optional( + z.lazy(() => MediaContainerWithDirectoryMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", diff --git a/src/sdk/models/shared/mediacontainerwithhubs.ts b/src/models/shared/mediacontainerwithhubs.ts similarity index 84% rename from src/sdk/models/shared/mediacontainerwithhubs.ts rename to src/models/shared/mediacontainerwithhubs.ts index 966bb831..d0dd5f53 100644 --- a/src/sdk/models/shared/mediacontainerwithhubs.ts +++ b/src/models/shared/mediacontainerwithhubs.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Hub, Hub$inboundSchema } from "./hub.js"; @@ -44,14 +45,13 @@ export type MediaContainerWithHubs = { /** @internal */ export const MediaContainerWithHubsMediaContainer$inboundSchema: z.ZodType< MediaContainerWithHubsMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - Hub: z.array(Hub$inboundSchema).optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + Hub: types.optional(z.array(Hub$inboundSchema)), }).transform((v) => { return remap$(v, { "Hub": "hub", @@ -72,12 +72,11 @@ export function mediaContainerWithHubsMediaContainerFromJSON( /** @internal */ export const MediaContainerWithHubs$inboundSchema: z.ZodType< MediaContainerWithHubs, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => - MediaContainerWithHubsMediaContainer$inboundSchema - ).optional(), + MediaContainer: types.optional( + z.lazy(() => MediaContainerWithHubsMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", diff --git a/src/sdk/models/shared/mediacontainerwithlineup.ts b/src/models/shared/mediacontainerwithlineup.ts similarity index 83% rename from src/sdk/models/shared/mediacontainerwithlineup.ts rename to src/models/shared/mediacontainerwithlineup.ts index c943ba67..bcc95581 100644 --- a/src/sdk/models/shared/mediacontainerwithlineup.ts +++ b/src/models/shared/mediacontainerwithlineup.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Lineup, Lineup$inboundSchema } from "./lineup.js"; @@ -45,15 +46,14 @@ export type MediaContainerWithLineup = { /** @internal */ export const MediaContainerWithLineupMediaContainer$inboundSchema: z.ZodType< MediaContainerWithLineupMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - Lineup: z.array(Lineup$inboundSchema).optional(), - uuid: z.string().optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + Lineup: types.optional(z.array(Lineup$inboundSchema)), + uuid: types.optional(types.string()), }).transform((v) => { return remap$(v, { "Lineup": "lineup", @@ -74,12 +74,11 @@ export function mediaContainerWithLineupMediaContainerFromJSON( /** @internal */ export const MediaContainerWithLineup$inboundSchema: z.ZodType< MediaContainerWithLineup, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => - MediaContainerWithLineupMediaContainer$inboundSchema - ).optional(), + MediaContainer: types.optional( + z.lazy(() => MediaContainerWithLineupMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", diff --git a/src/sdk/models/shared/mediacontainerwithmetadata.ts b/src/models/shared/mediacontainerwithmetadata.ts similarity index 84% rename from src/sdk/models/shared/mediacontainerwithmetadata.ts rename to src/models/shared/mediacontainerwithmetadata.ts index c2127616..80c37b15 100644 --- a/src/sdk/models/shared/mediacontainerwithmetadata.ts +++ b/src/models/shared/mediacontainerwithmetadata.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Metadata, Metadata$inboundSchema } from "./metadata.js"; @@ -41,14 +42,13 @@ export type MediaContainerWithMetadata = { /** @internal */ export const MediaContainerWithMetadataMediaContainer$inboundSchema: z.ZodType< MediaContainerWithMetadataMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - Metadata: z.array(Metadata$inboundSchema).optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + Metadata: types.optional(z.array(Metadata$inboundSchema)), }).transform((v) => { return remap$(v, { "Metadata": "metadata", @@ -74,12 +74,11 @@ export function mediaContainerWithMetadataMediaContainerFromJSON( /** @internal */ export const MediaContainerWithMetadata$inboundSchema: z.ZodType< MediaContainerWithMetadata, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => - MediaContainerWithMetadataMediaContainer$inboundSchema - ).optional(), + MediaContainer: types.optional( + z.lazy(() => MediaContainerWithMetadataMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", diff --git a/src/sdk/models/shared/mediacontainerwithnestedmetadata.ts b/src/models/shared/mediacontainerwithnestedmetadata.ts similarity index 74% rename from src/sdk/models/shared/mediacontainerwithnestedmetadata.ts rename to src/models/shared/mediacontainerwithnestedmetadata.ts index 7ea9eb22..2e4ca34f 100644 --- a/src/sdk/models/shared/mediacontainerwithnestedmetadata.ts +++ b/src/models/shared/mediacontainerwithnestedmetadata.ts @@ -2,14 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, safeParse, -} from "../../../lib/schemas.js"; +} from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; -import { RFCDate } from "../../types/rfcdate.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Filter, Filter$inboundSchema } from "./filter.js"; import { Image, Image$inboundSchema } from "./image.js"; @@ -156,7 +156,7 @@ export type MetadataItem = { /** * When present, in the format YYYY-MM-DD [HH:MM:SS] (the hours/minutes/seconds part is not always present). The air date, or a higher resolution release date for an item, depending on type. For example, episodes usually have air date like 1979-08-10 (we don't use epoch seconds because media existed prior to 1970). In some cases, recorded over-the-air content has higher resolution air date which includes a time component. Albums and movies may have day-resolution release dates as well. */ - originallyAvailableAt?: RFCDate | undefined; + originallyAvailableAt?: Date | undefined; /** * When present, used to indicate an item's original title, e.g. a movie's foreign title. */ @@ -324,10 +324,9 @@ export type MediaContainerWithNestedMetadata = { /** @internal */ export const MediaContainerWithNestedMetadataGuid$inboundSchema: z.ZodType< MediaContainerWithNestedMetadataGuid, - z.ZodTypeDef, unknown > = z.object({ - id: z.string(), + id: types.string(), }); export function mediaContainerWithNestedMetadataGuidFromJSON( @@ -342,106 +341,105 @@ export function mediaContainerWithNestedMetadataGuidFromJSON( } /** @internal */ -export const MetadataItem$inboundSchema: z.ZodType< - MetadataItem, - z.ZodTypeDef, - unknown -> = collectExtraKeys$( - z.object({ - title: z.string(), - type: z.string(), - absoluteIndex: z.number().int().optional(), - addedAt: z.number().int(), - art: z.string().optional(), - audienceRating: z.number().optional(), - audienceRatingImage: z.string().optional(), - Autotag: z.array(Tag$inboundSchema).optional(), - banner: z.string().optional(), - chapterSource: z.string().optional(), - childCount: z.number().int().optional(), - composite: z.string().optional(), - contentRating: z.string().optional(), - Country: z.array(Tag$inboundSchema).optional(), - Director: z.array(Tag$inboundSchema).optional(), - duration: z.number().int().optional(), - Filter: z.array(Filter$inboundSchema).optional(), - Genre: z.array(Tag$inboundSchema).optional(), - grandparentArt: z.string().optional(), - grandparentGuid: z.string().optional(), - grandparentHero: z.string().optional(), - grandparentKey: z.string().optional(), - grandparentRatingKey: z.string().optional(), - grandparentTheme: z.string().optional(), - grandparentThumb: z.string().optional(), - grandparentTitle: z.string().optional(), - guid: z.string().optional(), - Guid: z.array( - z.lazy(() => MediaContainerWithNestedMetadataGuid$inboundSchema), - ).optional(), - hero: z.string().optional(), - Image: z.array(Image$inboundSchema).optional(), - index: z.number().int().optional(), - key: z.string(), - lastViewedAt: z.number().int().optional(), - leafCount: z.number().int().optional(), - Media: z.array(Media$inboundSchema).optional(), - originallyAvailableAt: z.string().transform(v => new RFCDate(v)).optional(), - originalTitle: z.string().optional(), - parentGuid: z.string().optional(), - parentHero: z.string().optional(), - parentIndex: z.number().int().optional(), - parentKey: z.string().optional(), - parentRatingKey: z.string().optional(), - parentThumb: z.string().optional(), - parentTitle: z.string().optional(), - primaryExtraKey: z.string().optional(), - prompt: z.string().optional(), - rating: z.number().optional(), - Rating: z.array(Tag$inboundSchema).optional(), - ratingCount: z.number().int().optional(), - ratingImage: z.string().optional(), - ratingKey: z.string().optional(), - Role: z.array(Tag$inboundSchema).optional(), - search: z.boolean().optional(), - secondary: z.boolean().optional(), - skipChildren: z.boolean().optional(), - skipParent: z.boolean().optional(), - Sort: z.array(Sort$inboundSchema).optional(), - studio: z.string().optional(), - subtype: z.string().optional(), - summary: z.string().optional(), - tagline: z.string().optional(), - theme: z.string().optional(), - thumb: z.string().optional(), - titleSort: z.string().optional(), - updatedAt: z.number().int().optional(), - userRating: z.number().optional(), - viewCount: z.number().int().optional(), - viewedLeafCount: z.number().int().optional(), - viewOffset: z.number().int().optional(), - Writer: z.array(Tag$inboundSchema).optional(), - year: z.number().int().optional(), - MetadataItem: z.array(Items$inboundSchema).optional(), - }).catchall(z.any()), - "additionalProperties", - true, -).transform((v) => { - return remap$(v, { - "Autotag": "autotag", - "Country": "country", - "Director": "director", - "Filter": "filter", - "Genre": "genre", - "Guid": "guids", - "Image": "image", - "Media": "media", - "Rating": "ratingArray", - "Role": "role", - "Sort": "sort", - "Writer": "writer", - "MetadataItem": "metadataItem", +export const MetadataItem$inboundSchema: z.ZodType = + collectExtraKeys$( + z.object({ + title: types.string(), + type: types.string(), + absoluteIndex: types.optional(types.number()), + addedAt: types.number(), + art: types.optional(types.string()), + audienceRating: types.optional(types.number()), + audienceRatingImage: types.optional(types.string()), + Autotag: types.optional(z.array(Tag$inboundSchema)), + banner: types.optional(types.string()), + chapterSource: types.optional(types.string()), + childCount: types.optional(types.number()), + composite: types.optional(types.string()), + contentRating: types.optional(types.string()), + Country: types.optional(z.array(Tag$inboundSchema)), + Director: types.optional(z.array(Tag$inboundSchema)), + duration: types.optional(types.number()), + Filter: types.optional(z.array(Filter$inboundSchema)), + Genre: types.optional(z.array(Tag$inboundSchema)), + grandparentArt: types.optional(types.string()), + grandparentGuid: types.optional(types.string()), + grandparentHero: types.optional(types.string()), + grandparentKey: types.optional(types.string()), + grandparentRatingKey: types.optional(types.string()), + grandparentTheme: types.optional(types.string()), + grandparentThumb: types.optional(types.string()), + grandparentTitle: types.optional(types.string()), + guid: types.optional(types.string()), + Guid: types.optional( + z.array( + z.lazy(() => MediaContainerWithNestedMetadataGuid$inboundSchema), + ), + ), + hero: types.optional(types.string()), + Image: types.optional(z.array(Image$inboundSchema)), + index: types.optional(types.number()), + key: types.string(), + lastViewedAt: types.optional(types.number()), + leafCount: types.optional(types.number()), + Media: types.optional(z.array(Media$inboundSchema)), + originallyAvailableAt: types.optional(types.date()), + originalTitle: types.optional(types.string()), + parentGuid: types.optional(types.string()), + parentHero: types.optional(types.string()), + parentIndex: types.optional(types.number()), + parentKey: types.optional(types.string()), + parentRatingKey: types.optional(types.string()), + parentThumb: types.optional(types.string()), + parentTitle: types.optional(types.string()), + primaryExtraKey: types.optional(types.string()), + prompt: types.optional(types.string()), + rating: types.optional(types.number()), + Rating: types.optional(z.array(Tag$inboundSchema)), + ratingCount: types.optional(types.number()), + ratingImage: types.optional(types.string()), + ratingKey: types.optional(types.string()), + Role: types.optional(z.array(Tag$inboundSchema)), + search: types.optional(types.boolean()), + secondary: types.optional(types.boolean()), + skipChildren: types.optional(types.boolean()), + skipParent: types.optional(types.boolean()), + Sort: types.optional(z.array(Sort$inboundSchema)), + studio: types.optional(types.string()), + subtype: types.optional(types.string()), + summary: types.optional(types.string()), + tagline: types.optional(types.string()), + theme: types.optional(types.string()), + thumb: types.optional(types.string()), + titleSort: types.optional(types.string()), + updatedAt: types.optional(types.number()), + userRating: types.optional(types.number()), + viewCount: types.optional(types.number()), + viewedLeafCount: types.optional(types.number()), + viewOffset: types.optional(types.number()), + Writer: types.optional(z.array(Tag$inboundSchema)), + year: types.optional(types.number()), + MetadataItem: types.optional(z.array(Items$inboundSchema)), + }).catchall(z.any()), + "additionalProperties", + true, + ).transform((v) => { + return remap$(v, { + "Autotag": "autotag", + "Country": "country", + "Director": "director", + "Filter": "filter", + "Genre": "genre", + "Guid": "guids", + "Image": "image", + "Media": "media", + "Rating": "ratingArray", + "Role": "role", + "Sort": "sort", + "Writer": "writer", + "MetadataItem": "metadataItem", + }); }); -}); export function metadataItemFromJSON( jsonString: string, @@ -455,17 +453,17 @@ export function metadataItemFromJSON( /** @internal */ export const MediaContainerWithNestedMetadataMediaContainer$inboundSchema: - z.ZodType< - MediaContainerWithNestedMetadataMediaContainer, - z.ZodTypeDef, - unknown - > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - MetadataItem: z.array(z.lazy(() => MetadataItem$inboundSchema)).optional(), - }).transform((v) => { + z.ZodType = z.object( + { + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + MetadataItem: types.optional(z.array(z.lazy(() => + MetadataItem$inboundSchema + ))), + }, + ).transform((v) => { return remap$(v, { "MetadataItem": "metadataItem", }); @@ -490,12 +488,11 @@ export function mediaContainerWithNestedMetadataMediaContainerFromJSON( /** @internal */ export const MediaContainerWithNestedMetadata$inboundSchema: z.ZodType< MediaContainerWithNestedMetadata, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => - MediaContainerWithNestedMetadataMediaContainer$inboundSchema - ).optional(), + MediaContainer: types.optional( + z.lazy(() => MediaContainerWithNestedMetadataMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", diff --git a/src/sdk/models/shared/mediacontainerwithplaylistmetadata.ts b/src/models/shared/mediacontainerwithplaylistmetadata.ts similarity index 73% rename from src/sdk/models/shared/mediacontainerwithplaylistmetadata.ts rename to src/models/shared/mediacontainerwithplaylistmetadata.ts index de42cef9..079013ca 100644 --- a/src/sdk/models/shared/mediacontainerwithplaylistmetadata.ts +++ b/src/models/shared/mediacontainerwithplaylistmetadata.ts @@ -2,14 +2,16 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, safeParse, -} from "../../../lib/schemas.js"; +} from "../../lib/schemas.js"; +import * as openEnums from "../../types/enums.js"; +import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; -import { RFCDate } from "../../types/rfcdate.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Filter, Filter$inboundSchema } from "./filter.js"; import { Image, Image$inboundSchema } from "./image.js"; @@ -25,6 +27,10 @@ export enum PlaylistType { Video = "video", Photo = "photo", } +/** + * The type of the playlist. + */ +export type PlaylistTypeOpen = OpenEnum; export type MediaContainerWithPlaylistMetadataGuid = { /** @@ -68,7 +74,7 @@ export type MediaContainerWithPlaylistMetadataMetadatum = { /** * The type of the playlist. */ - playlistType?: PlaylistType | undefined; + playlistType?: PlaylistTypeOpen | undefined; /** * Whether or not the playlist is smart. */ @@ -180,7 +186,7 @@ export type MediaContainerWithPlaylistMetadataMetadatum = { /** * When present, in the format YYYY-MM-DD [HH:MM:SS] (the hours/minutes/seconds part is not always present). The air date, or a higher resolution release date for an item, depending on type. For example, episodes usually have air date like 1979-08-10 (we don't use epoch seconds because media existed prior to 1970). In some cases, recorded over-the-air content has higher resolution air date which includes a time component. Albums and movies may have day-resolution release dates as well. */ - originallyAvailableAt?: RFCDate | undefined; + originallyAvailableAt?: Date | undefined; /** * When present, used to indicate an item's original title, e.g. a movie's foreign title. */ @@ -345,16 +351,15 @@ export type MediaContainerWithPlaylistMetadata = { }; /** @internal */ -export const PlaylistType$inboundSchema: z.ZodNativeEnum = - z.nativeEnum(PlaylistType); +export const PlaylistType$inboundSchema: z.ZodType = + openEnums.inboundSchema(PlaylistType); /** @internal */ export const MediaContainerWithPlaylistMetadataGuid$inboundSchema: z.ZodType< MediaContainerWithPlaylistMetadataGuid, - z.ZodTypeDef, unknown > = z.object({ - id: z.string(), + id: types.string(), }); export function mediaContainerWithPlaylistMetadataGuidFromJSON( @@ -370,109 +375,105 @@ export function mediaContainerWithPlaylistMetadataGuidFromJSON( /** @internal */ export const MediaContainerWithPlaylistMetadataMetadatum$inboundSchema: - z.ZodType< - MediaContainerWithPlaylistMetadataMetadatum, - z.ZodTypeDef, - unknown - > = collectExtraKeys$( - z.object({ - readOnly: z.boolean().optional(), - composite: z.string().optional(), - duration: z.number().int().optional(), - key: z.string(), - leafCount: z.number().int().optional(), - playlistType: PlaylistType$inboundSchema.optional(), - smart: z.boolean().optional(), - specialPlaylistType: z.string().optional(), - title: z.string(), - type: z.string(), - absoluteIndex: z.number().int().optional(), - addedAt: z.number().int(), - art: z.string().optional(), - audienceRating: z.number().optional(), - audienceRatingImage: z.string().optional(), - Autotag: z.array(Tag$inboundSchema).optional(), - banner: z.string().optional(), - chapterSource: z.string().optional(), - childCount: z.number().int().optional(), - contentRating: z.string().optional(), - Country: z.array(Tag$inboundSchema).optional(), - Director: z.array(Tag$inboundSchema).optional(), - Filter: z.array(Filter$inboundSchema).optional(), - Genre: z.array(Tag$inboundSchema).optional(), - grandparentArt: z.string().optional(), - grandparentGuid: z.string().optional(), - grandparentHero: z.string().optional(), - grandparentKey: z.string().optional(), - grandparentRatingKey: z.string().optional(), - grandparentTheme: z.string().optional(), - grandparentThumb: z.string().optional(), - grandparentTitle: z.string().optional(), - guid: z.string().optional(), - Guid: z.array( - z.lazy(() => MediaContainerWithPlaylistMetadataGuid$inboundSchema), - ).optional(), - hero: z.string().optional(), - Image: z.array(Image$inboundSchema).optional(), - index: z.number().int().optional(), - lastViewedAt: z.number().int().optional(), - Media: z.array(Media$inboundSchema).optional(), - originallyAvailableAt: z.string().transform(v => new RFCDate(v)) - .optional(), - originalTitle: z.string().optional(), - parentGuid: z.string().optional(), - parentHero: z.string().optional(), - parentIndex: z.number().int().optional(), - parentKey: z.string().optional(), - parentRatingKey: z.string().optional(), - parentThumb: z.string().optional(), - parentTitle: z.string().optional(), - primaryExtraKey: z.string().optional(), - prompt: z.string().optional(), - rating: z.number().optional(), - Rating: z.array(Tag$inboundSchema).optional(), - ratingCount: z.number().int().optional(), - ratingImage: z.string().optional(), - ratingKey: z.string().optional(), - Role: z.array(Tag$inboundSchema).optional(), - search: z.boolean().optional(), - secondary: z.boolean().optional(), - skipChildren: z.boolean().optional(), - skipParent: z.boolean().optional(), - Sort: z.array(Sort$inboundSchema).optional(), - studio: z.string().optional(), - subtype: z.string().optional(), - summary: z.string().optional(), - tagline: z.string().optional(), - theme: z.string().optional(), - thumb: z.string().optional(), - titleSort: z.string().optional(), - updatedAt: z.number().int().optional(), - userRating: z.number().optional(), - viewCount: z.number().int().optional(), - viewedLeafCount: z.number().int().optional(), - viewOffset: z.number().int().optional(), - Writer: z.array(Tag$inboundSchema).optional(), - year: z.number().int().optional(), - }).catchall(z.any()), - "additionalProperties", - true, - ).transform((v) => { - return remap$(v, { - "Autotag": "autotag", - "Country": "country", - "Director": "director", - "Filter": "filter", - "Genre": "genre", - "Guid": "guids", - "Image": "image", - "Media": "media", - "Rating": "ratingArray", - "Role": "role", - "Sort": "sort", - "Writer": "writer", + z.ZodType = + collectExtraKeys$( + z.object({ + readOnly: types.optional(types.boolean()), + composite: types.optional(types.string()), + duration: types.optional(types.number()), + key: types.string(), + leafCount: types.optional(types.number()), + playlistType: types.optional(PlaylistType$inboundSchema), + smart: types.optional(types.boolean()), + specialPlaylistType: types.optional(types.string()), + title: types.string(), + type: types.string(), + absoluteIndex: types.optional(types.number()), + addedAt: types.number(), + art: types.optional(types.string()), + audienceRating: types.optional(types.number()), + audienceRatingImage: types.optional(types.string()), + Autotag: types.optional(z.array(Tag$inboundSchema)), + banner: types.optional(types.string()), + chapterSource: types.optional(types.string()), + childCount: types.optional(types.number()), + contentRating: types.optional(types.string()), + Country: types.optional(z.array(Tag$inboundSchema)), + Director: types.optional(z.array(Tag$inboundSchema)), + Filter: types.optional(z.array(Filter$inboundSchema)), + Genre: types.optional(z.array(Tag$inboundSchema)), + grandparentArt: types.optional(types.string()), + grandparentGuid: types.optional(types.string()), + grandparentHero: types.optional(types.string()), + grandparentKey: types.optional(types.string()), + grandparentRatingKey: types.optional(types.string()), + grandparentTheme: types.optional(types.string()), + grandparentThumb: types.optional(types.string()), + grandparentTitle: types.optional(types.string()), + guid: types.optional(types.string()), + Guid: types.optional(z.array(z.lazy(() => + MediaContainerWithPlaylistMetadataGuid$inboundSchema + ))), + hero: types.optional(types.string()), + Image: types.optional(z.array(Image$inboundSchema)), + index: types.optional(types.number()), + lastViewedAt: types.optional(types.number()), + Media: types.optional(z.array(Media$inboundSchema)), + originallyAvailableAt: types.optional(types.date()), + originalTitle: types.optional(types.string()), + parentGuid: types.optional(types.string()), + parentHero: types.optional(types.string()), + parentIndex: types.optional(types.number()), + parentKey: types.optional(types.string()), + parentRatingKey: types.optional(types.string()), + parentThumb: types.optional(types.string()), + parentTitle: types.optional(types.string()), + primaryExtraKey: types.optional(types.string()), + prompt: types.optional(types.string()), + rating: types.optional(types.number()), + Rating: types.optional(z.array(Tag$inboundSchema)), + ratingCount: types.optional(types.number()), + ratingImage: types.optional(types.string()), + ratingKey: types.optional(types.string()), + Role: types.optional(z.array(Tag$inboundSchema)), + search: types.optional(types.boolean()), + secondary: types.optional(types.boolean()), + skipChildren: types.optional(types.boolean()), + skipParent: types.optional(types.boolean()), + Sort: types.optional(z.array(Sort$inboundSchema)), + studio: types.optional(types.string()), + subtype: types.optional(types.string()), + summary: types.optional(types.string()), + tagline: types.optional(types.string()), + theme: types.optional(types.string()), + thumb: types.optional(types.string()), + titleSort: types.optional(types.string()), + updatedAt: types.optional(types.number()), + userRating: types.optional(types.number()), + viewCount: types.optional(types.number()), + viewedLeafCount: types.optional(types.number()), + viewOffset: types.optional(types.number()), + Writer: types.optional(z.array(Tag$inboundSchema)), + year: types.optional(types.number()), + }).catchall(z.any()), + "additionalProperties", + true, + ).transform((v) => { + return remap$(v, { + "Autotag": "autotag", + "Country": "country", + "Director": "director", + "Filter": "filter", + "Genre": "genre", + "Guid": "guids", + "Image": "image", + "Media": "media", + "Rating": "ratingArray", + "Role": "role", + "Sort": "sort", + "Writer": "writer", + }); }); - }); export function mediaContainerWithPlaylistMetadataMetadatumFromJSON( jsonString: string, @@ -492,23 +493,22 @@ export function mediaContainerWithPlaylistMetadataMetadatumFromJSON( /** @internal */ export const MediaContainerWithPlaylistMetadataMediaContainer$inboundSchema: - z.ZodType< - MediaContainerWithPlaylistMetadataMediaContainer, - z.ZodTypeDef, - unknown - > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - Metadata: z.array( - z.lazy(() => MediaContainerWithPlaylistMetadataMetadatum$inboundSchema), - ).optional(), - }).transform((v) => { - return remap$(v, { - "Metadata": "metadata", + z.ZodType = z + .object({ + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + Metadata: types.optional( + z.array(z.lazy(() => + MediaContainerWithPlaylistMetadataMetadatum$inboundSchema + )), + ), + }).transform((v) => { + return remap$(v, { + "Metadata": "metadata", + }); }); - }); export function mediaContainerWithPlaylistMetadataMediaContainerFromJSON( jsonString: string, @@ -529,12 +529,13 @@ export function mediaContainerWithPlaylistMetadataMediaContainerFromJSON( /** @internal */ export const MediaContainerWithPlaylistMetadata$inboundSchema: z.ZodType< MediaContainerWithPlaylistMetadata, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => - MediaContainerWithPlaylistMetadataMediaContainer$inboundSchema - ).optional(), + MediaContainer: types.optional( + z.lazy(() => + MediaContainerWithPlaylistMetadataMediaContainer$inboundSchema + ), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", diff --git a/src/sdk/models/shared/mediacontainerwithsettings.ts b/src/models/shared/mediacontainerwithsettings.ts similarity index 84% rename from src/sdk/models/shared/mediacontainerwithsettings.ts rename to src/models/shared/mediacontainerwithsettings.ts index a68cf142..a3de7e2b 100644 --- a/src/sdk/models/shared/mediacontainerwithsettings.ts +++ b/src/models/shared/mediacontainerwithsettings.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Setting, Setting$inboundSchema } from "./setting.js"; @@ -41,14 +42,13 @@ export type MediaContainerWithSettings = { /** @internal */ export const MediaContainerWithSettingsMediaContainer$inboundSchema: z.ZodType< MediaContainerWithSettingsMediaContainer, - z.ZodTypeDef, unknown > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - Setting: z.array(Setting$inboundSchema).optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + Setting: types.optional(z.array(Setting$inboundSchema)), }).transform((v) => { return remap$(v, { "Setting": "setting", @@ -74,12 +74,11 @@ export function mediaContainerWithSettingsMediaContainerFromJSON( /** @internal */ export const MediaContainerWithSettings$inboundSchema: z.ZodType< MediaContainerWithSettings, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => - MediaContainerWithSettingsMediaContainer$inboundSchema - ).optional(), + MediaContainer: types.optional( + z.lazy(() => MediaContainerWithSettingsMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", diff --git a/src/sdk/models/shared/mediacontainerwithsubscription.ts b/src/models/shared/mediacontainerwithsubscription.ts similarity index 81% rename from src/sdk/models/shared/mediacontainerwithsubscription.ts rename to src/models/shared/mediacontainerwithsubscription.ts index bc0f817c..b485d6f4 100644 --- a/src/sdk/models/shared/mediacontainerwithsubscription.ts +++ b/src/models/shared/mediacontainerwithsubscription.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { MediaSubscription, @@ -43,16 +44,12 @@ export type MediaContainerWithSubscription = { /** @internal */ export const MediaContainerWithSubscriptionMediaContainer$inboundSchema: - z.ZodType< - MediaContainerWithSubscriptionMediaContainer, - z.ZodTypeDef, - unknown - > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - MediaSubscription: z.array(MediaSubscription$inboundSchema).optional(), + z.ZodType = z.object({ + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + MediaSubscription: types.optional(z.array(MediaSubscription$inboundSchema)), }).transform((v) => { return remap$(v, { "MediaSubscription": "mediaSubscription", @@ -78,12 +75,11 @@ export function mediaContainerWithSubscriptionMediaContainerFromJSON( /** @internal */ export const MediaContainerWithSubscription$inboundSchema: z.ZodType< MediaContainerWithSubscription, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => - MediaContainerWithSubscriptionMediaContainer$inboundSchema - ).optional(), + MediaContainer: types.optional( + z.lazy(() => MediaContainerWithSubscriptionMediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", diff --git a/src/sdk/models/shared/mediagraboperation.ts b/src/models/shared/mediagraboperation.ts similarity index 76% rename from src/sdk/models/shared/mediagraboperation.ts rename to src/models/shared/mediagraboperation.ts index 6e59a41e..a81d26ce 100644 --- a/src/sdk/models/shared/mediagraboperation.ts +++ b/src/models/shared/mediagraboperation.ts @@ -2,10 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import * as openEnums from "../../types/enums.js"; +import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Metadata, Metadata$inboundSchema } from "./metadata.js"; @@ -19,6 +22,9 @@ export enum MediaGrabOperationStatus { Postprocessing = "postprocessing", Paused = "paused", } +export type MediaGrabOperationStatusOpen = OpenEnum< + typeof MediaGrabOperationStatus +>; /** * A media grab opration represents a scheduled or active recording of media @@ -45,31 +51,31 @@ export type MediaGrabOperation = { metadata?: Metadata | undefined; percent?: number | undefined; provider?: string | undefined; - status?: MediaGrabOperationStatus | undefined; + status?: MediaGrabOperationStatusOpen | undefined; }; /** @internal */ -export const MediaGrabOperationStatus$inboundSchema: z.ZodNativeEnum< - typeof MediaGrabOperationStatus -> = z.nativeEnum(MediaGrabOperationStatus); +export const MediaGrabOperationStatus$inboundSchema: z.ZodType< + MediaGrabOperationStatusOpen, + unknown +> = openEnums.inboundSchema(MediaGrabOperationStatus); /** @internal */ export const MediaGrabOperation$inboundSchema: z.ZodType< MediaGrabOperation, - z.ZodTypeDef, unknown > = z.object({ - currentSize: z.number().int().optional(), - grabberIdentifier: z.string().optional(), - grabberProtocol: z.string().optional(), - id: z.string().optional(), - key: z.string().optional(), - mediaIndex: z.number().int().optional(), - mediaSubscriptionID: z.number().int().optional(), - Metadata: Metadata$inboundSchema.optional(), - percent: z.number().optional(), - provider: z.string().optional(), - status: MediaGrabOperationStatus$inboundSchema.optional(), + currentSize: types.optional(types.number()), + grabberIdentifier: types.optional(types.string()), + grabberProtocol: types.optional(types.string()), + id: types.optional(types.string()), + key: types.optional(types.string()), + mediaIndex: types.optional(types.number()), + mediaSubscriptionID: types.optional(types.number()), + Metadata: types.optional(Metadata$inboundSchema), + percent: types.optional(types.number()), + provider: types.optional(types.string()), + status: types.optional(MediaGrabOperationStatus$inboundSchema), }).transform((v) => { return remap$(v, { "Metadata": "metadata", diff --git a/src/sdk/models/shared/mediaquery.ts b/src/models/shared/mediaquery.ts similarity index 94% rename from src/sdk/models/shared/mediaquery.ts rename to src/models/shared/mediaquery.ts index a1c72de1..273d5445 100644 --- a/src/sdk/models/shared/mediaquery.ts +++ b/src/models/shared/mediaquery.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; +import * as z from "zod/v4"; import { MediaType, MediaType$outboundSchema } from "./mediatype.js"; /** @@ -61,14 +61,13 @@ export type MediaQuery$Outbound = { /** @internal */ export const MediaQuery$outboundSchema: z.ZodType< MediaQuery$Outbound, - z.ZodTypeDef, MediaQuery > = z.object({ type: MediaType$outboundSchema.optional(), - sourceType: z.number().int().optional(), + sourceType: z.int().optional(), sort: z.string().optional(), group: z.string().optional(), - limit: z.number().int().optional(), + limit: z.int().optional(), }); export function mediaQueryToJSON(mediaQuery: MediaQuery): string { diff --git a/src/sdk/models/shared/mediasubscription.ts b/src/models/shared/mediasubscription.ts similarity index 63% rename from src/sdk/models/shared/mediasubscription.ts rename to src/models/shared/mediasubscription.ts index d2af4153..cd7c5568 100644 --- a/src/sdk/models/shared/mediasubscription.ts +++ b/src/models/shared/mediasubscription.ts @@ -2,10 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import * as openEnums from "../../types/enums.js"; +import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { MediaGrabOperation, @@ -17,6 +20,7 @@ export enum AiringsType { NewAiringsOnly = "New Airings Only", NewAndRepeatAirings = "New and Repeat Airings", } +export type AiringsTypeOpen = OpenEnum; /** * A media subscription contains a representation of metadata desired to be recorded @@ -29,7 +33,7 @@ export type MediaSubscription = { * The metadata type of the root item of the subscription */ type?: number | undefined; - airingsType?: AiringsType | undefined; + airingsType?: AiringsTypeOpen | undefined; createdAt?: number | undefined; /** * Media Matching Hints @@ -67,31 +71,30 @@ export type MediaSubscription = { }; /** @internal */ -export const AiringsType$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(AiringsType); +export const AiringsType$inboundSchema: z.ZodType = + openEnums.inboundSchema(AiringsType); /** @internal */ export const MediaSubscription$inboundSchema: z.ZodType< MediaSubscription, - z.ZodTypeDef, unknown > = z.object({ - title: z.string().optional(), - type: z.number().int().optional(), - airingsType: AiringsType$inboundSchema.optional(), - createdAt: z.number().int().optional(), - Directory: z.record(z.any()).optional(), - durationTotal: z.number().int().optional(), - key: z.string().optional(), - librarySectionTitle: z.string().optional(), - locationPath: z.string().optional(), - MediaGrabOperation: z.array(MediaGrabOperation$inboundSchema).optional(), - Playlist: z.record(z.any()).optional(), - Setting: z.array(Setting$inboundSchema).optional(), - storageTotal: z.number().int().optional(), - targetLibrarySectionID: z.number().int().optional(), - targetSectionLocationID: z.number().int().optional(), - Video: z.record(z.any()).optional(), + title: types.optional(types.string()), + type: types.optional(types.number()), + airingsType: types.optional(AiringsType$inboundSchema), + createdAt: types.optional(types.number()), + Directory: types.optional(z.record(z.string(), z.any())), + durationTotal: types.optional(types.number()), + key: types.optional(types.string()), + librarySectionTitle: types.optional(types.string()), + locationPath: types.optional(types.string()), + MediaGrabOperation: types.optional(z.array(MediaGrabOperation$inboundSchema)), + Playlist: types.optional(z.record(z.string(), z.any())), + Setting: types.optional(z.array(Setting$inboundSchema)), + storageTotal: types.optional(types.number()), + targetLibrarySectionID: types.optional(types.number()), + targetSectionLocationID: types.optional(types.number()), + Video: types.optional(z.record(z.string(), z.any())), }).transform((v) => { return remap$(v, { "Directory": "directory", diff --git a/src/sdk/models/shared/mediatype.ts b/src/models/shared/mediatype.ts similarity index 80% rename from src/sdk/models/shared/mediatype.ts rename to src/models/shared/mediatype.ts index 083c047f..4a2b6eb7 100644 --- a/src/sdk/models/shared/mediatype.ts +++ b/src/models/shared/mediatype.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; +import * as z from "zod/v4"; /** * The type of media to retrieve or filter by. @@ -34,5 +34,6 @@ export enum MediaType { } /** @internal */ -export const MediaType$outboundSchema: z.ZodNativeEnum = z - .nativeEnum(MediaType); +export const MediaType$outboundSchema: z.ZodEnum = z.enum( + MediaType, +); diff --git a/src/sdk/models/shared/mediatypestring.ts b/src/models/shared/mediatypestring.ts similarity index 50% rename from src/sdk/models/shared/mediatypestring.ts rename to src/models/shared/mediatypestring.ts index c8cd2ea3..6cb417c8 100644 --- a/src/sdk/models/shared/mediatypestring.ts +++ b/src/models/shared/mediatypestring.ts @@ -2,7 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; +import * as z from "zod/v4"; +import * as openEnums from "../../types/enums.js"; +import { OpenEnum } from "../../types/enums.js"; /** * The type of media content in the Plex library. This can represent videos, music, or photos. @@ -21,8 +23,15 @@ export enum MediaTypeString { Photo = "photo", Collection = "collection", } +/** + * The type of media content in the Plex library. This can represent videos, music, or photos. + * + * @remarks + */ +export type MediaTypeStringOpen = OpenEnum; /** @internal */ -export const MediaTypeString$inboundSchema: z.ZodNativeEnum< - typeof MediaTypeString -> = z.nativeEnum(MediaTypeString); +export const MediaTypeString$inboundSchema: z.ZodType< + MediaTypeStringOpen, + unknown +> = openEnums.inboundSchema(MediaTypeString); diff --git a/src/sdk/models/shared/metadata.ts b/src/models/shared/metadata.ts similarity index 72% rename from src/sdk/models/shared/metadata.ts rename to src/models/shared/metadata.ts index d859cad9..087cdfbc 100644 --- a/src/sdk/models/shared/metadata.ts +++ b/src/models/shared/metadata.ts @@ -2,14 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, safeParse, -} from "../../../lib/schemas.js"; +} from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; -import { RFCDate } from "../../types/rfcdate.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Filter, Filter$inboundSchema } from "./filter.js"; import { Image, Image$inboundSchema } from "./image.js"; @@ -155,7 +155,7 @@ export type Metadata = { /** * When present, in the format YYYY-MM-DD [HH:MM:SS] (the hours/minutes/seconds part is not always present). The air date, or a higher resolution release date for an item, depending on type. For example, episodes usually have air date like 1979-08-10 (we don't use epoch seconds because media existed prior to 1970). In some cases, recorded over-the-air content has higher resolution air date which includes a time component. Albums and movies may have day-resolution release dates as well. */ - originallyAvailableAt?: RFCDate | undefined; + originallyAvailableAt?: Date | undefined; /** * When present, used to indicate an item's original title, e.g. a movie's foreign title. */ @@ -291,13 +291,10 @@ export type Metadata = { }; /** @internal */ -export const MetadataGuid$inboundSchema: z.ZodType< - MetadataGuid, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), -}); +export const MetadataGuid$inboundSchema: z.ZodType = z + .object({ + id: types.string(), + }); export function metadataGuidFromJSON( jsonString: string, @@ -310,102 +307,99 @@ export function metadataGuidFromJSON( } /** @internal */ -export const Metadata$inboundSchema: z.ZodType< - Metadata, - z.ZodTypeDef, - unknown -> = collectExtraKeys$( - z.object({ - title: z.string(), - type: z.string(), - absoluteIndex: z.number().int().optional(), - addedAt: z.number().int(), - art: z.string().optional(), - audienceRating: z.number().optional(), - audienceRatingImage: z.string().optional(), - Autotag: z.array(Tag$inboundSchema).optional(), - banner: z.string().optional(), - chapterSource: z.string().optional(), - childCount: z.number().int().optional(), - composite: z.string().optional(), - contentRating: z.string().optional(), - Country: z.array(Tag$inboundSchema).optional(), - Director: z.array(Tag$inboundSchema).optional(), - duration: z.number().int().optional(), - Filter: z.array(Filter$inboundSchema).optional(), - Genre: z.array(Tag$inboundSchema).optional(), - grandparentArt: z.string().optional(), - grandparentGuid: z.string().optional(), - grandparentHero: z.string().optional(), - grandparentKey: z.string().optional(), - grandparentRatingKey: z.string().optional(), - grandparentTheme: z.string().optional(), - grandparentThumb: z.string().optional(), - grandparentTitle: z.string().optional(), - guid: z.string().optional(), - Guid: z.array(z.lazy(() => MetadataGuid$inboundSchema)).optional(), - hero: z.string().optional(), - Image: z.array(Image$inboundSchema).optional(), - index: z.number().int().optional(), - key: z.string(), - lastViewedAt: z.number().int().optional(), - leafCount: z.number().int().optional(), - Media: z.array(Media$inboundSchema).optional(), - originallyAvailableAt: z.string().transform(v => new RFCDate(v)).optional(), - originalTitle: z.string().optional(), - parentGuid: z.string().optional(), - parentHero: z.string().optional(), - parentIndex: z.number().int().optional(), - parentKey: z.string().optional(), - parentRatingKey: z.string().optional(), - parentThumb: z.string().optional(), - parentTitle: z.string().optional(), - primaryExtraKey: z.string().optional(), - prompt: z.string().optional(), - rating: z.number().optional(), - Rating: z.array(Tag$inboundSchema).optional(), - ratingCount: z.number().int().optional(), - ratingImage: z.string().optional(), - ratingKey: z.string().optional(), - Role: z.array(Tag$inboundSchema).optional(), - search: z.boolean().optional(), - secondary: z.boolean().optional(), - skipChildren: z.boolean().optional(), - skipParent: z.boolean().optional(), - Sort: z.array(Sort$inboundSchema).optional(), - studio: z.string().optional(), - subtype: z.string().optional(), - summary: z.string().optional(), - tagline: z.string().optional(), - theme: z.string().optional(), - thumb: z.string().optional(), - titleSort: z.string().optional(), - updatedAt: z.number().int().optional(), - userRating: z.number().optional(), - viewCount: z.number().int().optional(), - viewedLeafCount: z.number().int().optional(), - viewOffset: z.number().int().optional(), - Writer: z.array(Tag$inboundSchema).optional(), - year: z.number().int().optional(), - }).catchall(z.any()), - "additionalProperties", - true, -).transform((v) => { - return remap$(v, { - "Autotag": "autotag", - "Country": "country", - "Director": "director", - "Filter": "filter", - "Genre": "genre", - "Guid": "guids", - "Image": "image", - "Media": "media", - "Rating": "ratingArray", - "Role": "role", - "Sort": "sort", - "Writer": "writer", +export const Metadata$inboundSchema: z.ZodType = + collectExtraKeys$( + z.object({ + title: types.string(), + type: types.string(), + absoluteIndex: types.optional(types.number()), + addedAt: types.number(), + art: types.optional(types.string()), + audienceRating: types.optional(types.number()), + audienceRatingImage: types.optional(types.string()), + Autotag: types.optional(z.array(Tag$inboundSchema)), + banner: types.optional(types.string()), + chapterSource: types.optional(types.string()), + childCount: types.optional(types.number()), + composite: types.optional(types.string()), + contentRating: types.optional(types.string()), + Country: types.optional(z.array(Tag$inboundSchema)), + Director: types.optional(z.array(Tag$inboundSchema)), + duration: types.optional(types.number()), + Filter: types.optional(z.array(Filter$inboundSchema)), + Genre: types.optional(z.array(Tag$inboundSchema)), + grandparentArt: types.optional(types.string()), + grandparentGuid: types.optional(types.string()), + grandparentHero: types.optional(types.string()), + grandparentKey: types.optional(types.string()), + grandparentRatingKey: types.optional(types.string()), + grandparentTheme: types.optional(types.string()), + grandparentThumb: types.optional(types.string()), + grandparentTitle: types.optional(types.string()), + guid: types.optional(types.string()), + Guid: types.optional(z.array(z.lazy(() => MetadataGuid$inboundSchema))), + hero: types.optional(types.string()), + Image: types.optional(z.array(Image$inboundSchema)), + index: types.optional(types.number()), + key: types.string(), + lastViewedAt: types.optional(types.number()), + leafCount: types.optional(types.number()), + Media: types.optional(z.array(Media$inboundSchema)), + originallyAvailableAt: types.optional(types.date()), + originalTitle: types.optional(types.string()), + parentGuid: types.optional(types.string()), + parentHero: types.optional(types.string()), + parentIndex: types.optional(types.number()), + parentKey: types.optional(types.string()), + parentRatingKey: types.optional(types.string()), + parentThumb: types.optional(types.string()), + parentTitle: types.optional(types.string()), + primaryExtraKey: types.optional(types.string()), + prompt: types.optional(types.string()), + rating: types.optional(types.number()), + Rating: types.optional(z.array(Tag$inboundSchema)), + ratingCount: types.optional(types.number()), + ratingImage: types.optional(types.string()), + ratingKey: types.optional(types.string()), + Role: types.optional(z.array(Tag$inboundSchema)), + search: types.optional(types.boolean()), + secondary: types.optional(types.boolean()), + skipChildren: types.optional(types.boolean()), + skipParent: types.optional(types.boolean()), + Sort: types.optional(z.array(Sort$inboundSchema)), + studio: types.optional(types.string()), + subtype: types.optional(types.string()), + summary: types.optional(types.string()), + tagline: types.optional(types.string()), + theme: types.optional(types.string()), + thumb: types.optional(types.string()), + titleSort: types.optional(types.string()), + updatedAt: types.optional(types.number()), + userRating: types.optional(types.number()), + viewCount: types.optional(types.number()), + viewedLeafCount: types.optional(types.number()), + viewOffset: types.optional(types.number()), + Writer: types.optional(z.array(Tag$inboundSchema)), + year: types.optional(types.number()), + }).catchall(z.any()), + "additionalProperties", + true, + ).transform((v) => { + return remap$(v, { + "Autotag": "autotag", + "Country": "country", + "Director": "director", + "Filter": "filter", + "Genre": "genre", + "Guid": "guids", + "Image": "image", + "Media": "media", + "Rating": "ratingArray", + "Role": "role", + "Sort": "sort", + "Writer": "writer", + }); }); -}); export function metadataFromJSON( jsonString: string, diff --git a/src/sdk/models/shared/part.ts b/src/models/shared/part.ts similarity index 68% rename from src/sdk/models/shared/part.ts rename to src/models/shared/part.ts index da3a7ae1..fd966b75 100644 --- a/src/sdk/models/shared/part.ts +++ b/src/models/shared/part.ts @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, safeParse, -} from "../../../lib/schemas.js"; +} from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Stream, Stream$inboundSchema } from "./stream.js"; @@ -57,31 +58,30 @@ export type Part = { }; /** @internal */ -export const Part$inboundSchema: z.ZodType = - collectExtraKeys$( - z.object({ - accessible: z.boolean().optional(), - audioProfile: z.string().optional(), - container: z.string().optional(), - duration: z.number().int().optional(), - exists: z.boolean().optional(), - file: z.string().optional(), - has64bitOffsets: z.boolean().optional(), - id: z.number().int(), - indexes: z.string().optional(), - key: z.string(), - optimizedForStreaming: z.boolean().optional(), - size: z.number().int().optional(), - Stream: z.array(Stream$inboundSchema).optional(), - videoProfile: z.string().optional(), - }).catchall(z.any()), - "additionalProperties", - true, - ).transform((v) => { - return remap$(v, { - "Stream": "stream", - }); +export const Part$inboundSchema: z.ZodType = collectExtraKeys$( + z.object({ + accessible: types.optional(types.boolean()), + audioProfile: types.optional(types.string()), + container: types.optional(types.string()), + duration: types.optional(types.number()), + exists: types.optional(types.boolean()), + file: types.optional(types.string()), + has64bitOffsets: types.optional(types.boolean()), + id: types.number(), + indexes: types.optional(types.string()), + key: types.string(), + optimizedForStreaming: types.optional(types.boolean()), + size: types.optional(types.number()), + Stream: types.optional(z.array(Stream$inboundSchema)), + videoProfile: types.optional(types.string()), + }).catchall(z.any()), + "additionalProperties", + true, +).transform((v) => { + return remap$(v, { + "Stream": "stream", }); +}); export function partFromJSON( jsonString: string, diff --git a/src/sdk/models/shared/player.ts b/src/models/shared/player.ts similarity index 67% rename from src/sdk/models/shared/player.ts rename to src/models/shared/player.ts index 0d45ae7a..b647091b 100644 --- a/src/sdk/models/shared/player.ts +++ b/src/models/shared/player.ts @@ -2,9 +2,10 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** @@ -74,24 +75,23 @@ export type Player = { }; /** @internal */ -export const Player$inboundSchema: z.ZodType = z - .object({ - title: z.string().optional(), - address: z.string().optional(), - local: z.boolean().optional(), - machineIdentifier: z.string().optional(), - model: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - product: z.string().optional(), - relayed: z.boolean().optional(), - remotePublicAddress: z.string().optional(), - secure: z.boolean().optional(), - state: z.string().optional(), - userID: z.number().int().optional(), - vendor: z.string().optional(), - version: z.string().optional(), - }); +export const Player$inboundSchema: z.ZodType = z.object({ + title: types.optional(types.string()), + address: types.optional(types.string()), + local: types.optional(types.boolean()), + machineIdentifier: types.optional(types.string()), + model: types.optional(types.string()), + platform: types.optional(types.string()), + platformVersion: types.optional(types.string()), + product: types.optional(types.string()), + relayed: types.optional(types.boolean()), + remotePublicAddress: types.optional(types.string()), + secure: types.optional(types.boolean()), + state: types.optional(types.string()), + userID: types.optional(types.number()), + vendor: types.optional(types.string()), + version: types.optional(types.string()), +}); export function playerFromJSON( jsonString: string, diff --git a/src/sdk/models/shared/plexdevice.ts b/src/models/shared/plexdevice.ts similarity index 52% rename from src/sdk/models/shared/plexdevice.ts rename to src/models/shared/plexdevice.ts index 4bfe68c3..fdea1b94 100644 --- a/src/sdk/models/shared/plexdevice.ts +++ b/src/models/shared/plexdevice.ts @@ -2,10 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import * as openEnums from "../../types/enums.js"; +import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** @@ -15,12 +18,16 @@ export enum PlexDeviceProtocol { Http = "http", Https = "https", } +/** + * The protocol used for the connection (http, https, etc) + */ +export type PlexDeviceProtocolOpen = OpenEnum; export type Connection = { /** * The protocol used for the connection (http, https, etc) */ - protocol: PlexDeviceProtocol; + protocol: PlexDeviceProtocolOpen; /** * The (ip) address or domain name used for the connection */ @@ -78,28 +85,26 @@ export type PlexDevice = { }; /** @internal */ -export const PlexDeviceProtocol$inboundSchema: z.ZodNativeEnum< - typeof PlexDeviceProtocol -> = z.nativeEnum(PlexDeviceProtocol); +export const PlexDeviceProtocol$inboundSchema: z.ZodType< + PlexDeviceProtocolOpen, + unknown +> = openEnums.inboundSchema(PlexDeviceProtocol); /** @internal */ -export const Connection$inboundSchema: z.ZodType< - Connection, - z.ZodTypeDef, - unknown -> = z.object({ - protocol: PlexDeviceProtocol$inboundSchema, - address: z.string(), - port: z.number().int(), - uri: z.string(), - local: z.boolean(), - relay: z.boolean(), - IPv6: z.boolean(), -}).transform((v) => { - return remap$(v, { - "IPv6": "iPv6", +export const Connection$inboundSchema: z.ZodType = z + .object({ + protocol: PlexDeviceProtocol$inboundSchema, + address: types.string(), + port: types.number(), + uri: types.string(), + local: types.boolean(), + relay: types.boolean(), + IPv6: types.boolean(), + }).transform((v) => { + return remap$(v, { + "IPv6": "iPv6", + }); }); -}); export function connectionFromJSON( jsonString: string, @@ -112,36 +117,33 @@ export function connectionFromJSON( } /** @internal */ -export const PlexDevice$inboundSchema: z.ZodType< - PlexDevice, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.string(), - product: z.string(), - productVersion: z.string(), - platform: z.nullable(z.string()), - platformVersion: z.nullable(z.string()), - device: z.nullable(z.string()), - clientIdentifier: z.string(), - createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)), - lastSeenAt: z.string().datetime({ offset: true }).transform(v => new Date(v)), - provides: z.string(), - ownerId: z.nullable(z.number().int()), - sourceTitle: z.nullable(z.string()), - publicAddress: z.string(), - accessToken: z.string(), - owned: z.boolean(), - home: z.boolean(), - synced: z.boolean(), - relay: z.boolean(), - presence: z.boolean(), - httpsRequired: z.boolean(), - publicAddressMatches: z.boolean(), - dnsRebindingProtection: z.boolean(), - natLoopbackSupported: z.boolean(), - connections: z.array(z.lazy(() => Connection$inboundSchema)), -}); +export const PlexDevice$inboundSchema: z.ZodType = z + .object({ + name: types.string(), + product: types.string(), + productVersion: types.string(), + platform: types.nullable(types.string()), + platformVersion: types.nullable(types.string()), + device: types.nullable(types.string()), + clientIdentifier: types.string(), + createdAt: types.date(), + lastSeenAt: types.date(), + provides: types.string(), + ownerId: types.nullable(types.number()), + sourceTitle: types.nullable(types.string()), + publicAddress: types.string(), + accessToken: types.string(), + owned: types.boolean(), + home: types.boolean(), + synced: types.boolean(), + relay: types.boolean(), + presence: types.boolean(), + httpsRequired: types.boolean(), + publicAddressMatches: types.boolean(), + dnsRebindingProtection: types.boolean(), + natLoopbackSupported: types.boolean(), + connections: z.array(z.lazy(() => Connection$inboundSchema)), + }); export function plexDeviceFromJSON( jsonString: string, diff --git a/src/sdk/models/shared/postresponses200.ts b/src/models/shared/postresponses200.ts similarity index 74% rename from src/sdk/models/shared/postresponses200.ts rename to src/models/shared/postresponses200.ts index 30238e4e..af90b605 100644 --- a/src/sdk/models/shared/postresponses200.ts +++ b/src/models/shared/postresponses200.ts @@ -2,13 +2,16 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, safeParse, -} from "../../../lib/schemas.js"; +} from "../../lib/schemas.js"; +import * as openEnums from "../../types/enums.js"; +import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export enum TypeResponse { @@ -18,6 +21,7 @@ export enum TypeResponse { Resume = "resume", Credit = "credit", } +export type TypeResponseOpen = OpenEnum; /** * `MediaContainer` is the root element of most Plex API responses. It serves as a generic container for various types of content (Metadata, Hubs, Directories, etc.) and includes pagination information (offset, size, totalSize) when applicable. @@ -46,7 +50,7 @@ export type PostResponses200MediaContainer = { id?: number | undefined; startTimeOffset?: number | undefined; title?: string | undefined; - type?: TypeResponse | undefined; + type?: TypeResponseOpen | undefined; additionalProperties?: { [k: string]: any } | undefined; }; @@ -58,26 +62,25 @@ export type PostResponses200 = { }; /** @internal */ -export const TypeResponse$inboundSchema: z.ZodNativeEnum = - z.nativeEnum(TypeResponse); +export const TypeResponse$inboundSchema: z.ZodType = + openEnums.inboundSchema(TypeResponse); /** @internal */ export const PostResponses200MediaContainer$inboundSchema: z.ZodType< PostResponses200MediaContainer, - z.ZodTypeDef, unknown > = collectExtraKeys$( z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - color: z.string().optional(), - endTimeOffset: z.number().int().optional(), - id: z.number().int().optional(), - startTimeOffset: z.number().int().optional(), - title: z.string().optional(), - type: TypeResponse$inboundSchema.optional(), + identifier: types.optional(types.string()), + offset: types.optional(types.number()), + size: types.optional(types.number()), + totalSize: types.optional(types.number()), + color: types.optional(types.string()), + endTimeOffset: types.optional(types.number()), + id: types.optional(types.number()), + startTimeOffset: types.optional(types.number()), + title: types.optional(types.string()), + type: types.optional(TypeResponse$inboundSchema), }).catchall(z.any()), "additionalProperties", true, @@ -96,11 +99,11 @@ export function postResponses200MediaContainerFromJSON( /** @internal */ export const PostResponses200$inboundSchema: z.ZodType< PostResponses200, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => PostResponses200MediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => PostResponses200MediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", diff --git a/src/sdk/models/shared/protocolparameter.ts b/src/models/shared/protocolparameter.ts similarity index 61% rename from src/sdk/models/shared/protocolparameter.ts rename to src/models/shared/protocolparameter.ts index ea8fdfe5..56602cf8 100644 --- a/src/sdk/models/shared/protocolparameter.ts +++ b/src/models/shared/protocolparameter.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; +import * as z from "zod/v4"; export enum ProtocolParameter { Http = "http", @@ -11,6 +11,6 @@ export enum ProtocolParameter { } /** @internal */ -export const ProtocolParameter$outboundSchema: z.ZodNativeEnum< +export const ProtocolParameter$outboundSchema: z.ZodEnum< typeof ProtocolParameter -> = z.nativeEnum(ProtocolParameter); +> = z.enum(ProtocolParameter); diff --git a/src/sdk/models/shared/security.ts b/src/models/shared/security.ts similarity index 67% rename from src/sdk/models/shared/security.ts rename to src/models/shared/security.ts index 20ed13cc..65936ad5 100644 --- a/src/sdk/models/shared/security.ts +++ b/src/models/shared/security.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; +import * as z from "zod/v4"; export type Security = { token?: string | undefined; @@ -14,13 +14,10 @@ export type Security$Outbound = { }; /** @internal */ -export const Security$outboundSchema: z.ZodType< - Security$Outbound, - z.ZodTypeDef, - Security -> = z.object({ - token: z.string().optional(), -}); +export const Security$outboundSchema: z.ZodType = z + .object({ + token: z.string().optional(), + }); export function securityToJSON(security: Security): string { return JSON.stringify(Security$outboundSchema.parse(security)); diff --git a/src/sdk/models/shared/session.ts b/src/models/shared/session.ts similarity index 54% rename from src/sdk/models/shared/session.ts rename to src/models/shared/session.ts index 41df56f7..9c34fc0a 100644 --- a/src/sdk/models/shared/session.ts +++ b/src/models/shared/session.ts @@ -2,9 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { safeParse } from "../../lib/schemas.js"; +import * as openEnums from "../../types/enums.js"; +import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** @@ -14,6 +17,10 @@ export enum SessionLocation { Lan = "lan", Wan = "wan", } +/** + * The location of the client + */ +export type SessionLocationOpen = OpenEnum; /** * Information about the playback session @@ -30,21 +37,21 @@ export type Session = { /** * The location of the client */ - location?: SessionLocation | undefined; + location?: SessionLocationOpen | undefined; }; /** @internal */ -export const SessionLocation$inboundSchema: z.ZodNativeEnum< - typeof SessionLocation -> = z.nativeEnum(SessionLocation); +export const SessionLocation$inboundSchema: z.ZodType< + SessionLocationOpen, + unknown +> = openEnums.inboundSchema(SessionLocation); /** @internal */ -export const Session$inboundSchema: z.ZodType = - z.object({ - bandwidth: z.number().int().optional(), - id: z.string().optional(), - location: SessionLocation$inboundSchema.optional(), - }); +export const Session$inboundSchema: z.ZodType = z.object({ + bandwidth: types.optional(types.number()), + id: types.optional(types.string()), + location: types.optional(SessionLocation$inboundSchema), +}); export function sessionFromJSON( jsonString: string, diff --git a/src/sdk/models/shared/setting.ts b/src/models/shared/setting.ts similarity index 62% rename from src/sdk/models/shared/setting.ts rename to src/models/shared/setting.ts index eb00a3c5..2fd52855 100644 --- a/src/sdk/models/shared/setting.ts +++ b/src/models/shared/setting.ts @@ -2,9 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { safeParse } from "../../lib/schemas.js"; +import * as openEnums from "../../types/enums.js"; +import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; +import { smartUnion } from "../../types/smartUnion.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** @@ -16,6 +20,10 @@ export enum SettingType { Text = "text", Double = "double", } +/** + * The type of the value of this setting + */ +export type SettingTypeOpen = OpenEnum; /** * The default value of this setting @@ -34,7 +42,7 @@ export type Setting = { /** * The type of the value of this setting */ - type?: SettingType | undefined; + type?: SettingTypeOpen | undefined; /** * The default value of this setting */ @@ -74,12 +82,15 @@ export type Setting = { }; /** @internal */ -export const SettingType$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(SettingType); +export const SettingType$inboundSchema: z.ZodType = + openEnums.inboundSchema(SettingType); /** @internal */ -export const Default$inboundSchema: z.ZodType = - z.union([z.string(), z.number(), z.boolean()]); +export const Default$inboundSchema: z.ZodType = smartUnion([ + types.string(), + types.number(), + types.boolean(), +]); export function defaultFromJSON( jsonString: string, @@ -92,8 +103,11 @@ export function defaultFromJSON( } /** @internal */ -export const Value$inboundSchema: z.ZodType = z - .union([z.string(), z.number(), z.boolean()]); +export const Value$inboundSchema: z.ZodType = smartUnion([ + types.string(), + types.number(), + types.boolean(), +]); export function valueFromJSON( jsonString: string, @@ -106,19 +120,22 @@ export function valueFromJSON( } /** @internal */ -export const Setting$inboundSchema: z.ZodType = - z.object({ - type: SettingType$inboundSchema.optional(), - default: z.union([z.string(), z.number(), z.boolean()]).optional(), - advanced: z.boolean().optional(), - enumValues: z.string().optional(), - group: z.string().optional(), - hidden: z.boolean().optional(), - id: z.string().optional(), - label: z.string().optional(), - summary: z.string().optional(), - value: z.union([z.string(), z.number(), z.boolean()]).optional(), - }); +export const Setting$inboundSchema: z.ZodType = z.object({ + type: types.optional(SettingType$inboundSchema), + default: types.optional( + smartUnion([types.string(), types.number(), types.boolean()]), + ), + advanced: types.optional(types.boolean()), + enumValues: types.optional(types.string()), + group: types.optional(types.string()), + hidden: types.optional(types.boolean()), + id: types.optional(types.string()), + label: types.optional(types.string()), + summary: types.optional(types.string()), + value: types.optional( + smartUnion([types.string(), types.number(), types.boolean()]), + ), +}); export function settingFromJSON( jsonString: string, diff --git a/src/sdk/models/shared/slashgetresponses200.ts b/src/models/shared/slashgetresponses200.ts similarity index 74% rename from src/sdk/models/shared/slashgetresponses200.ts rename to src/models/shared/slashgetresponses200.ts index e109c2a8..ab7d4f48 100644 --- a/src/sdk/models/shared/slashgetresponses200.ts +++ b/src/models/shared/slashgetresponses200.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Metadata, Metadata$inboundSchema } from "./metadata.js"; @@ -44,23 +45,22 @@ export type SlashGetResponses200 = { /** @internal */ export const SlashGetResponses200MediaContainer$inboundSchema: z.ZodType< SlashGetResponses200MediaContainer, - z.ZodTypeDef, unknown > = z.object({ - content: z.string().optional(), - allowSync: z.boolean().optional(), - art: z.string().optional(), - Directory: z.array(Metadata$inboundSchema).optional(), - identifier: z.string().optional(), - librarySectionID: z.number().int().optional(), - mediaTagPrefix: z.string().optional(), - mediaTagVersion: z.number().int().optional(), - size: z.number().int().optional(), - sortAsc: z.boolean().optional(), - thumb: z.string().optional(), - title1: z.string().optional(), - viewGroup: z.string().optional(), - viewMode: z.number().int().optional(), + content: types.optional(types.string()), + allowSync: types.optional(types.boolean()), + art: types.optional(types.string()), + Directory: types.optional(z.array(Metadata$inboundSchema)), + identifier: types.optional(types.string()), + librarySectionID: types.optional(types.number()), + mediaTagPrefix: types.optional(types.string()), + mediaTagVersion: types.optional(types.number()), + size: types.optional(types.number()), + sortAsc: types.optional(types.boolean()), + thumb: types.optional(types.string()), + title1: types.optional(types.string()), + viewGroup: types.optional(types.string()), + viewMode: types.optional(types.number()), }).transform((v) => { return remap$(v, { "Directory": "directory", @@ -81,11 +81,11 @@ export function slashGetResponses200MediaContainerFromJSON( /** @internal */ export const SlashGetResponses200$inboundSchema: z.ZodType< SlashGetResponses200, - z.ZodTypeDef, unknown > = z.object({ - MediaContainer: z.lazy(() => SlashGetResponses200MediaContainer$inboundSchema) - .optional(), + MediaContainer: types.optional( + z.lazy(() => SlashGetResponses200MediaContainer$inboundSchema), + ), }).transform((v) => { return remap$(v, { "MediaContainer": "mediaContainer", diff --git a/src/sdk/models/shared/sort.ts b/src/models/shared/sort.ts similarity index 51% rename from src/sdk/models/shared/sort.ts rename to src/models/shared/sort.ts index 1fb95802..c876a258 100644 --- a/src/sdk/models/shared/sort.ts +++ b/src/models/shared/sort.ts @@ -2,13 +2,16 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, safeParse, -} from "../../../lib/schemas.js"; +} from "../../lib/schemas.js"; +import * as openEnums from "../../types/enums.js"; +import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type SortPivot = { @@ -27,6 +30,10 @@ export enum DefaultEnum { Asc = "asc", Desc = "desc", } +/** + * If present, this sort is the default and in this direction + */ +export type DefaultEnumOpen = OpenEnum; /** * This default diction of this sort @@ -35,6 +42,10 @@ export enum DefaultDirection { Asc = "asc", Desc = "desc", } +/** + * This default diction of this sort + */ +export type DefaultDirectionOpen = OpenEnum; /** * Each `Sort` object contains a description of the sort field. @@ -66,11 +77,11 @@ export type Sort = { /** * If present, this sort is the default and in this direction */ - default?: DefaultEnum | undefined; + default?: DefaultEnumOpen | undefined; /** * This default diction of this sort */ - defaultDirection?: DefaultDirection | undefined; + defaultDirection?: DefaultDirectionOpen | undefined; /** * The key for sorting this field in reverse order */ @@ -83,17 +94,13 @@ export type Sort = { }; /** @internal */ -export const SortPivot$inboundSchema: z.ZodType< - SortPivot, - z.ZodTypeDef, - unknown -> = z.object({ - title: z.string().optional(), - type: z.string().optional(), - context: z.string().optional(), - id: z.string().optional(), - key: z.string().optional(), - symbol: z.string().optional(), +export const SortPivot$inboundSchema: z.ZodType = z.object({ + title: types.optional(types.string()), + type: types.optional(types.string()), + context: types.optional(types.string()), + id: types.optional(types.string()), + key: types.optional(types.string()), + symbol: types.optional(types.string()), }); export function sortPivotFromJSON( @@ -107,45 +114,45 @@ export function sortPivotFromJSON( } /** @internal */ -export const DefaultEnum$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(DefaultEnum); +export const DefaultEnum$inboundSchema: z.ZodType = + openEnums.inboundSchema(DefaultEnum); /** @internal */ -export const DefaultDirection$inboundSchema: z.ZodNativeEnum< - typeof DefaultDirection -> = z.nativeEnum(DefaultDirection); +export const DefaultDirection$inboundSchema: z.ZodType< + DefaultDirectionOpen, + unknown +> = openEnums.inboundSchema(DefaultDirection); /** @internal */ -export const Sort$inboundSchema: z.ZodType = - collectExtraKeys$( - z.object({ - title: z.string().optional(), - type: z.string().optional(), - art: z.string().optional(), - content: z.boolean().optional(), - filter: z.string().optional(), - hasPrefs: z.boolean().optional(), - hasStoreServices: z.boolean().optional(), - hubKey: z.string().optional(), - identifier: z.string().optional(), - key: z.string().optional(), - lastAccessedAt: z.number().int().optional(), - Pivot: z.array(z.lazy(() => SortPivot$inboundSchema)).optional(), - share: z.number().int().optional(), - thumb: z.string().optional(), - titleBar: z.string().optional(), - default: DefaultEnum$inboundSchema.optional(), - defaultDirection: DefaultDirection$inboundSchema.optional(), - descKey: z.string().optional(), - firstCharacterKey: z.string().optional(), - }).catchall(z.any()), - "additionalProperties", - true, - ).transform((v) => { - return remap$(v, { - "Pivot": "pivot", - }); +export const Sort$inboundSchema: z.ZodType = collectExtraKeys$( + z.object({ + title: types.optional(types.string()), + type: types.optional(types.string()), + art: types.optional(types.string()), + content: types.optional(types.boolean()), + filter: types.optional(types.string()), + hasPrefs: types.optional(types.boolean()), + hasStoreServices: types.optional(types.boolean()), + hubKey: types.optional(types.string()), + identifier: types.optional(types.string()), + key: types.optional(types.string()), + lastAccessedAt: types.optional(types.number()), + Pivot: types.optional(z.array(z.lazy(() => SortPivot$inboundSchema))), + share: types.optional(types.number()), + thumb: types.optional(types.string()), + titleBar: types.optional(types.string()), + default: types.optional(DefaultEnum$inboundSchema), + defaultDirection: types.optional(DefaultDirection$inboundSchema), + descKey: types.optional(types.string()), + firstCharacterKey: types.optional(types.string()), + }).catchall(z.any()), + "additionalProperties", + true, +).transform((v) => { + return remap$(v, { + "Pivot": "pivot", }); +}); export function sortFromJSON( jsonString: string, diff --git a/src/sdk/models/shared/stream.ts b/src/models/shared/stream.ts similarity index 67% rename from src/sdk/models/shared/stream.ts rename to src/models/shared/stream.ts index 0640f9af..60b27b6a 100644 --- a/src/sdk/models/shared/stream.ts +++ b/src/models/shared/stream.ts @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod/v4"; +import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, safeParse, -} from "../../../lib/schemas.js"; +} from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** @@ -216,61 +217,61 @@ export type Stream = { }; /** @internal */ -export const Stream$inboundSchema: z.ZodType = +export const Stream$inboundSchema: z.ZodType = collectExtraKeys$( z.object({ - default: z.boolean().optional(), - audioChannelLayout: z.string().optional(), - channels: z.number().int().optional(), - bitDepth: z.number().int().optional(), - DOVIBLCompatID: z.number().int().optional(), - DOVIBLPresent: z.boolean().optional(), - DOVIELPresent: z.boolean().optional(), - DOVILevel: z.number().int().optional(), - DOVIPresent: z.boolean().optional(), - DOVIProfile: z.number().int().optional(), - DOVIRPUPresent: z.boolean().optional(), - DOVIVersion: z.string().optional(), - bitrate: z.number().int().optional(), - canAutoSync: z.boolean().optional(), - chromaLocation: z.string().optional(), - chromaSubsampling: z.string().optional(), - codedHeight: z.number().int().optional(), - codedWidth: z.number().int().optional(), - closedCaptions: z.boolean().optional(), - codec: z.string(), - colorPrimaries: z.string().optional(), - colorRange: z.string().optional(), - colorSpace: z.string().optional(), - colorTrc: z.string().optional(), - displayTitle: z.string(), - extendedDisplayTitle: z.string().optional(), - frameRate: z.number().optional(), - hasScalingMatrix: z.boolean().optional(), - height: z.number().int().optional(), - id: z.number().int(), - index: z.number().int().optional(), - key: z.string(), - language: z.string().optional(), - languageCode: z.string().optional(), - languageTag: z.string().optional(), - format: z.string().optional(), - headerCompression: z.boolean().optional(), - level: z.number().int().optional(), - original: z.boolean().optional(), - profile: z.string().optional(), - refFrames: z.number().int().optional(), - samplingRate: z.number().int().optional(), - scanType: z.string().optional(), - embeddedInVideo: z.string().optional(), - selected: z.boolean().optional(), - forced: z.boolean().optional(), - hearingImpaired: z.boolean().optional(), - dub: z.boolean().optional(), - title: z.string().optional(), - streamIdentifier: z.number().int().optional(), - streamType: z.literal(1).default(1).optional(), - width: z.number().int().optional(), + default: types.optional(types.boolean()), + audioChannelLayout: types.optional(types.string()), + channels: types.optional(types.number()), + bitDepth: types.optional(types.number()), + DOVIBLCompatID: types.optional(types.number()), + DOVIBLPresent: types.optional(types.boolean()), + DOVIELPresent: types.optional(types.boolean()), + DOVILevel: types.optional(types.number()), + DOVIPresent: types.optional(types.boolean()), + DOVIProfile: types.optional(types.number()), + DOVIRPUPresent: types.optional(types.boolean()), + DOVIVersion: types.optional(types.string()), + bitrate: types.optional(types.number()), + canAutoSync: types.optional(types.boolean()), + chromaLocation: types.optional(types.string()), + chromaSubsampling: types.optional(types.string()), + codedHeight: types.optional(types.number()), + codedWidth: types.optional(types.number()), + closedCaptions: types.optional(types.boolean()), + codec: types.string(), + colorPrimaries: types.optional(types.string()), + colorRange: types.optional(types.string()), + colorSpace: types.optional(types.string()), + colorTrc: types.optional(types.string()), + displayTitle: types.string(), + extendedDisplayTitle: types.optional(types.string()), + frameRate: types.optional(types.number()), + hasScalingMatrix: types.optional(types.boolean()), + height: types.optional(types.number()), + id: types.number(), + index: types.optional(types.number()), + key: types.string(), + language: types.optional(types.string()), + languageCode: types.optional(types.string()), + languageTag: types.optional(types.string()), + format: types.optional(types.string()), + headerCompression: types.optional(types.boolean()), + level: types.optional(types.number()), + original: types.optional(types.boolean()), + profile: types.optional(types.string()), + refFrames: types.optional(types.number()), + samplingRate: types.optional(types.number()), + scanType: types.optional(types.string()), + embeddedInVideo: types.optional(types.string()), + selected: types.optional(types.boolean()), + forced: types.optional(types.boolean()), + hearingImpaired: types.optional(types.boolean()), + dub: types.optional(types.boolean()), + title: types.optional(types.string()), + streamIdentifier: types.optional(types.number()), + streamType: types.optional(types.literal(1)), + width: types.optional(types.number()), }).catchall(z.any()), "additionalProperties", true, diff --git a/src/sdk/models/shared/subtitles.ts b/src/models/shared/subtitles.ts similarity index 67% rename from src/sdk/models/shared/subtitles.ts rename to src/models/shared/subtitles.ts index 02b9b61d..acdf1dea 100644 --- a/src/sdk/models/shared/subtitles.ts +++ b/src/models/shared/subtitles.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; +import * as z from "zod/v4"; export enum Subtitles { Auto = "auto", @@ -15,5 +15,6 @@ export enum Subtitles { } /** @internal */ -export const Subtitles$outboundSchema: z.ZodNativeEnum = z - .nativeEnum(Subtitles); +export const Subtitles$outboundSchema: z.ZodEnum = z.enum( + Subtitles, +); diff --git a/src/sdk/models/shared/tag.ts b/src/models/shared/tag.ts similarity index 71% rename from src/sdk/models/shared/tag.ts rename to src/models/shared/tag.ts index 34d84a70..1c2f326a 100644 --- a/src/sdk/models/shared/tag.ts +++ b/src/models/shared/tag.ts @@ -2,9 +2,10 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** @@ -44,19 +45,18 @@ export type Tag = { }; /** @internal */ -export const Tag$inboundSchema: z.ZodType = z - .object({ - confidence: z.number().optional(), - context: z.string().optional(), - filter: z.string().optional(), - id: z.number().int().optional(), - ratingKey: z.string().optional(), - role: z.string().optional(), - tag: z.string(), - tagKey: z.string().optional(), - tagType: z.number().int().optional(), - thumb: z.string().optional(), - }); +export const Tag$inboundSchema: z.ZodType = z.object({ + confidence: types.optional(types.number()), + context: types.optional(types.string()), + filter: types.optional(types.string()), + id: types.optional(types.number()), + ratingKey: types.optional(types.string()), + role: types.optional(types.string()), + tag: types.string(), + tagKey: types.optional(types.string()), + tagType: types.optional(types.number()), + thumb: types.optional(types.string()), +}); export function tagFromJSON( jsonString: string, diff --git a/src/sdk/models/shared/transcodesession.ts b/src/models/shared/transcodesession.ts similarity index 60% rename from src/sdk/models/shared/transcodesession.ts rename to src/models/shared/transcodesession.ts index 6f3cfee9..60195720 100644 --- a/src/sdk/models/shared/transcodesession.ts +++ b/src/models/shared/transcodesession.ts @@ -2,9 +2,10 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** @@ -30,23 +31,22 @@ export type TranscodeSession = { /** @internal */ export const TranscodeSession$inboundSchema: z.ZodType< TranscodeSession, - z.ZodTypeDef, unknown > = z.object({ - complete: z.boolean().optional(), - context: z.string().optional(), - duration: z.number().int().optional(), - error: z.boolean().optional(), - key: z.string().optional(), - progress: z.number().optional(), - protocol: z.string().optional(), - size: z.number().int().optional(), - sourceAudioCodec: z.string().optional(), - sourceVideoCodec: z.string().optional(), - speed: z.number().optional(), - throttled: z.boolean().optional(), - transcodeHwFullPipeline: z.boolean().optional(), - transcodeHwRequested: z.boolean().optional(), + complete: types.optional(types.boolean()), + context: types.optional(types.string()), + duration: types.optional(types.number()), + error: types.optional(types.boolean()), + key: types.optional(types.string()), + progress: types.optional(types.number()), + protocol: types.optional(types.string()), + size: types.optional(types.number()), + sourceAudioCodec: types.optional(types.string()), + sourceVideoCodec: types.optional(types.string()), + speed: types.optional(types.number()), + throttled: types.optional(types.boolean()), + transcodeHwFullPipeline: types.optional(types.boolean()), + transcodeHwRequested: types.optional(types.boolean()), }); export function transcodeSessionFromJSON( diff --git a/src/sdk/models/shared/transcodetype.ts b/src/models/shared/transcodetype.ts similarity index 59% rename from src/sdk/models/shared/transcodetype.ts rename to src/models/shared/transcodetype.ts index b97ba047..398bf392 100644 --- a/src/sdk/models/shared/transcodetype.ts +++ b/src/models/shared/transcodetype.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; +import * as z from "zod/v4"; export enum TranscodeType { Video = "video", @@ -12,6 +12,5 @@ export enum TranscodeType { } /** @internal */ -export const TranscodeType$outboundSchema: z.ZodNativeEnum< - typeof TranscodeType -> = z.nativeEnum(TranscodeType); +export const TranscodeType$outboundSchema: z.ZodEnum = z + .enum(TranscodeType); diff --git a/src/sdk/models/shared/user.ts b/src/models/shared/user.ts similarity index 69% rename from src/sdk/models/shared/user.ts rename to src/models/shared/user.ts index ea98adce..5279bcb0 100644 --- a/src/sdk/models/shared/user.ts +++ b/src/models/shared/user.ts @@ -2,9 +2,10 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** @@ -26,12 +27,11 @@ export type User = { }; /** @internal */ -export const User$inboundSchema: z.ZodType = z - .object({ - title: z.string().optional(), - id: z.string().optional(), - thumb: z.string().optional(), - }); +export const User$inboundSchema: z.ZodType = z.object({ + title: types.optional(types.string()), + id: types.optional(types.string()), + thumb: types.optional(types.string()), +}); export function userFromJSON( jsonString: string, diff --git a/src/sdk/models/shared/userplexaccount.ts b/src/models/shared/userplexaccount.ts similarity index 69% rename from src/sdk/models/shared/userplexaccount.ts rename to src/models/shared/userplexaccount.ts index 3e981795..04263e7f 100644 --- a/src/sdk/models/shared/userplexaccount.ts +++ b/src/models/shared/userplexaccount.ts @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { safeParse } from "../../../lib/schemas.js"; +import * as z from "zod/v4"; +import { safeParse } from "../../lib/schemas.js"; import * as openEnums from "../../types/enums.js"; import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { UserProfile, UserProfile$inboundSchema } from "./userprofile.js"; @@ -18,6 +19,10 @@ export enum MailingListStatus { Unsubscribed = "unsubscribed", Removed = "removed", } +/** + * Your current mailing list status + */ +export type MailingListStatusOpen = OpenEnum; export enum ServiceStatus { Online = "online", @@ -200,7 +205,7 @@ export type UserPlexAccount = { /** * Your current mailing list status */ - mailingListStatus?: MailingListStatus | undefined; + mailingListStatus?: MailingListStatusOpen | undefined; /** * The maximum number of accounts allowed in the Plex Home */ @@ -266,26 +271,25 @@ export type UserPlexAccount = { }; /** @internal */ -export const MailingListStatus$inboundSchema: z.ZodNativeEnum< - typeof MailingListStatus -> = z.nativeEnum(MailingListStatus); +export const MailingListStatus$inboundSchema: z.ZodType< + MailingListStatusOpen, + unknown +> = openEnums.inboundSchema(MailingListStatus); /** @internal */ export const ServiceStatus$inboundSchema: z.ZodType< ServiceStatusOpen, - z.ZodTypeDef, unknown > = openEnums.inboundSchema(ServiceStatus); /** @internal */ -export const Service$inboundSchema: z.ZodType = - z.object({ - identifier: z.string(), - endpoint: z.string(), - token: z.nullable(z.string()), - secret: z.nullable(z.string()), - status: ServiceStatus$inboundSchema, - }); +export const Service$inboundSchema: z.ZodType = z.object({ + identifier: types.string(), + endpoint: types.string(), + token: types.nullable(types.string()), + secret: types.nullable(types.string()), + status: ServiceStatus$inboundSchema, +}); export function serviceFromJSON( jsonString: string, @@ -300,23 +304,19 @@ export function serviceFromJSON( /** @internal */ export const SubscriptionStatus1$inboundSchema: z.ZodType< SubscriptionStatus1Open, - z.ZodTypeDef, unknown > = openEnums.inboundSchema(SubscriptionStatus1); /** @internal */ -export const Subscription1$inboundSchema: z.ZodType< - Subscription1, - z.ZodTypeDef, - unknown -> = z.object({ - features: z.array(z.string()).optional(), - active: z.boolean().optional(), - subscribedAt: z.nullable(z.string()).optional(), - status: SubscriptionStatus1$inboundSchema.optional(), - paymentService: z.nullable(z.string()).optional(), - plan: z.nullable(z.string()).optional(), -}); +export const Subscription1$inboundSchema: z.ZodType = z + .object({ + features: types.optional(z.array(types.string())), + active: types.optional(types.boolean()), + subscribedAt: z.nullable(types.string()).optional(), + status: types.optional(SubscriptionStatus1$inboundSchema), + paymentService: z.nullable(types.string()).optional(), + plan: z.nullable(types.string()).optional(), + }); export function subscription1FromJSON( jsonString: string, @@ -331,23 +331,19 @@ export function subscription1FromJSON( /** @internal */ export const SubscriptionStatus2$inboundSchema: z.ZodType< SubscriptionStatus2Open, - z.ZodTypeDef, unknown > = openEnums.inboundSchema(SubscriptionStatus2); /** @internal */ -export const Subscription2$inboundSchema: z.ZodType< - Subscription2, - z.ZodTypeDef, - unknown -> = z.object({ - features: z.array(z.string()).optional(), - active: z.boolean().optional(), - subscribedAt: z.nullable(z.string()).optional(), - status: SubscriptionStatus2$inboundSchema.optional(), - paymentService: z.nullable(z.string()).optional(), - plan: z.nullable(z.string()).optional(), -}); +export const Subscription2$inboundSchema: z.ZodType = z + .object({ + features: types.optional(z.array(types.string())), + active: types.optional(types.boolean()), + subscribedAt: z.nullable(types.string()).optional(), + status: types.optional(SubscriptionStatus2$inboundSchema), + paymentService: z.nullable(types.string()).optional(), + plan: z.nullable(types.string()).optional(), + }); export function subscription2FromJSON( jsonString: string, @@ -362,50 +358,51 @@ export function subscription2FromJSON( /** @internal */ export const UserPlexAccount$inboundSchema: z.ZodType< UserPlexAccount, - z.ZodTypeDef, unknown > = z.object({ - adsConsent: z.nullable(z.boolean()).optional(), - adsConsentReminderAt: z.nullable(z.number().int()).optional(), - adsConsentSetAt: z.nullable(z.number().int()).optional(), - anonymous: z.nullable(z.boolean().default(false)), - authToken: z.string(), - backupCodesCreated: z.boolean().default(false), - confirmed: z.boolean().default(false), - country: z.string().optional(), - email: z.string(), - emailOnlyAuth: z.boolean().default(false), - experimentalFeatures: z.boolean().default(false), - friendlyName: z.string(), - entitlements: z.array(z.string()).optional(), - guest: z.boolean().default(false), - hasPassword: z.boolean().default(true), - home: z.boolean().default(false), - homeAdmin: z.boolean().default(false), - homeSize: z.number().int().optional(), - id: z.number().int(), - joinedAt: z.number().int(), - locale: z.nullable(z.string()).optional(), - mailingListActive: z.boolean().default(false), - mailingListStatus: MailingListStatus$inboundSchema.optional(), - maxHomeSize: z.number().int().optional(), - pin: z.string().optional(), - profile: UserProfile$inboundSchema.optional(), - protected: z.boolean().default(false), - rememberExpiresAt: z.number().int().optional(), - restricted: z.boolean().default(false), - roles: z.array(z.string()).optional(), - scrobbleTypes: z.string().optional(), - services: z.array(z.lazy(() => Service$inboundSchema)).optional(), - subscription: z.lazy(() => Subscription1$inboundSchema).optional(), - subscriptionDescription: z.nullable(z.string()).optional(), - subscriptions: z.array(z.lazy(() => Subscription2$inboundSchema)).optional(), - thumb: z.string().optional(), - title: z.string(), - twoFactorEnabled: z.boolean().default(false), - username: z.string(), - uuid: z.string(), - attributionPartner: z.nullable(z.string()).optional(), + adsConsent: z.nullable(types.boolean()).optional(), + adsConsentReminderAt: z.nullable(types.number()).optional(), + adsConsentSetAt: z.nullable(types.number()).optional(), + anonymous: z.nullable(types.boolean().default(false)), + authToken: types.string(), + backupCodesCreated: types.boolean().default(false), + confirmed: types.boolean().default(false), + country: types.optional(types.string()), + email: types.string(), + emailOnlyAuth: types.boolean().default(false), + experimentalFeatures: types.boolean().default(false), + friendlyName: types.string(), + entitlements: types.optional(z.array(types.string())), + guest: types.boolean().default(false), + hasPassword: types.boolean().default(true), + home: types.boolean().default(false), + homeAdmin: types.boolean().default(false), + homeSize: types.optional(types.number()), + id: types.number(), + joinedAt: types.number(), + locale: z.nullable(types.string()).optional(), + mailingListActive: types.boolean().default(false), + mailingListStatus: types.optional(MailingListStatus$inboundSchema), + maxHomeSize: types.optional(types.number()), + pin: types.optional(types.string()), + profile: types.optional(UserProfile$inboundSchema), + protected: types.boolean().default(false), + rememberExpiresAt: types.optional(types.number()), + restricted: types.boolean().default(false), + roles: types.optional(z.array(types.string())), + scrobbleTypes: types.optional(types.string()), + services: types.optional(z.array(z.lazy(() => Service$inboundSchema))), + subscription: types.optional(z.lazy(() => Subscription1$inboundSchema)), + subscriptionDescription: z.nullable(types.string()).optional(), + subscriptions: types.optional( + z.array(z.lazy(() => Subscription2$inboundSchema)), + ), + thumb: types.optional(types.string()), + title: types.string(), + twoFactorEnabled: types.boolean().default(false), + username: types.string(), + uuid: types.string(), + attributionPartner: z.nullable(types.string()).optional(), }); export function userPlexAccountFromJSON( diff --git a/src/models/shared/userprofile.ts b/src/models/shared/userprofile.ts new file mode 100644 index 00000000..bf823f9c --- /dev/null +++ b/src/models/shared/userprofile.ts @@ -0,0 +1,207 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v4"; +import { safeParse } from "../../lib/schemas.js"; +import * as openEnums from "../../types/enums.js"; +import { OpenEnum } from "../../types/enums.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import * as types from "../../types/primitives.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +/** + * The audio accessibility mode (0 = Prefer non-accessibility audio, 1 = Prefer accessibility audio, 2 = Only show accessibility audio, 3 = Only show non-accessibility audio) + */ +export enum DefaultAudioAccessibility { + PreferNonAccessibility = 0, + PreferAccessibility = 1, + OnlyAccessibility = 2, + OnlyNonAccessibility = 3, +} +/** + * The audio accessibility mode (0 = Prefer non-accessibility audio, 1 = Prefer accessibility audio, 2 = Only show accessibility audio, 3 = Only show non-accessibility audio) + */ +export type DefaultAudioAccessibilityOpen = OpenEnum< + typeof DefaultAudioAccessibility +>; + +/** + * The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) + */ +export enum AutoSelectSubtitle { + ManuallySelected = 0, + ShownWithForeignAudio = 1, + AlwaysEnabled = 2, +} +/** + * The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) + */ +export type AutoSelectSubtitleOpen = OpenEnum; + +/** + * The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only show non-SDH subtitles) + */ +export enum DefaultSubtitleAccessibility { + PreferNonSdh = 0, + PreferSdh = 1, + OnlySdh = 2, + OnlyNonSdh = 3, +} +/** + * The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only show non-SDH subtitles) + */ +export type DefaultSubtitleAccessibilityOpen = OpenEnum< + typeof DefaultSubtitleAccessibility +>; + +/** + * The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) + */ +export enum DefaultSubtitleForced { + PreferNonForced = 0, + PreferForced = 1, + OnlyForced = 2, + OnlyNonForced = 3, +} +/** + * The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) + */ +export type DefaultSubtitleForcedOpen = OpenEnum; + +/** + * Whether or not media watched indicators are enabled (little orange dot on media) + */ +export enum WatchedIndicator { + None = 0, + MoviesAndTvShows = 1, + Movies = 2, + TvShows = 3, +} +/** + * Whether or not media watched indicators are enabled (little orange dot on media) + */ +export type WatchedIndicatorOpen = OpenEnum; + +/** + * Whether or not the account has media reviews visibility enabled + */ +export enum MediaReviewsVisibility { + NoOne = 0, + CriticsOnly = 1, + PlexUsersOnly = 2, + PlexUsersAndCritics = 3, +} +/** + * Whether or not the account has media reviews visibility enabled + */ +export type MediaReviewsVisibilityOpen = OpenEnum< + typeof MediaReviewsVisibility +>; + +export type UserProfile = { + /** + * If the account has automatically select audio and subtitle tracks enabled + */ + autoSelectAudio?: boolean | undefined; + /** + * The preferred audio language for the account + */ + defaultAudioLanguage: string | null; + defaultAudioAccessibility?: DefaultAudioAccessibilityOpen | undefined; + /** + * The preferred audio languages for the account + */ + defaultAudioLanguages?: Array | null | undefined; + /** + * The preferred subtitle language for the account + */ + defaultSubtitleLanguage: string | null; + /** + * The preferred subtitle languages for the account + */ + defaultSubtitleLanguages?: Array | null | undefined; + autoSelectSubtitle?: AutoSelectSubtitleOpen | undefined; + defaultSubtitleAccessibility?: DefaultSubtitleAccessibilityOpen | undefined; + defaultSubtitleForced?: DefaultSubtitleForcedOpen | undefined; + watchedIndicator?: WatchedIndicatorOpen | undefined; + mediaReviewsVisibility?: MediaReviewsVisibilityOpen | undefined; + /** + * The languages for media reviews visibility + */ + mediaReviewsLanguages?: Array | null | undefined; +}; + +/** @internal */ +export const DefaultAudioAccessibility$inboundSchema: z.ZodType< + DefaultAudioAccessibilityOpen, + unknown +> = openEnums.inboundSchemaInt(DefaultAudioAccessibility); + +/** @internal */ +export const AutoSelectSubtitle$inboundSchema: z.ZodType< + AutoSelectSubtitleOpen, + unknown +> = openEnums.inboundSchemaInt(AutoSelectSubtitle); + +/** @internal */ +export const DefaultSubtitleAccessibility$inboundSchema: z.ZodType< + DefaultSubtitleAccessibilityOpen, + unknown +> = openEnums.inboundSchemaInt(DefaultSubtitleAccessibility); + +/** @internal */ +export const DefaultSubtitleForced$inboundSchema: z.ZodType< + DefaultSubtitleForcedOpen, + unknown +> = openEnums.inboundSchemaInt(DefaultSubtitleForced); + +/** @internal */ +export const WatchedIndicator$inboundSchema: z.ZodType< + WatchedIndicatorOpen, + unknown +> = openEnums.inboundSchemaInt(WatchedIndicator); + +/** @internal */ +export const MediaReviewsVisibility$inboundSchema: z.ZodType< + MediaReviewsVisibilityOpen, + unknown +> = openEnums.inboundSchemaInt(MediaReviewsVisibility); + +/** @internal */ +export const UserProfile$inboundSchema: z.ZodType = z + .object({ + autoSelectAudio: types.boolean().default(true), + defaultAudioLanguage: types.nullable(types.string()), + defaultAudioAccessibility: DefaultAudioAccessibility$inboundSchema.default( + DefaultAudioAccessibility.PreferNonAccessibility, + ), + defaultAudioLanguages: z.nullable(z.array(types.string())).optional(), + defaultSubtitleLanguage: types.nullable(types.string()), + defaultSubtitleLanguages: z.nullable(z.array(types.string())).optional(), + autoSelectSubtitle: AutoSelectSubtitle$inboundSchema.default( + AutoSelectSubtitle.ManuallySelected, + ), + defaultSubtitleAccessibility: DefaultSubtitleAccessibility$inboundSchema + .default(DefaultSubtitleAccessibility.PreferNonSdh), + defaultSubtitleForced: DefaultSubtitleForced$inboundSchema.default( + DefaultSubtitleForced.PreferNonForced, + ), + watchedIndicator: WatchedIndicator$inboundSchema.default( + WatchedIndicator.None, + ), + mediaReviewsVisibility: MediaReviewsVisibility$inboundSchema.default( + MediaReviewsVisibility.NoOne, + ), + mediaReviewsLanguages: z.nullable(z.array(types.string())).optional(), + }); + +export function userProfileFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UserProfile$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UserProfile' from JSON`, + ); +} diff --git a/src/sdk/activities.ts b/src/sdk/activities.ts index 52ef1500..230457d0 100644 --- a/src/sdk/activities.ts +++ b/src/sdk/activities.ts @@ -5,8 +5,8 @@ import { activitiesCancelActivity } from "../funcs/activitiesCancelActivity.js"; import { activitiesListActivities } from "../funcs/activitiesListActivities.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "./models/operations/index.js"; -import { unwrapAsync } from "./types/fp.js"; +import * as operations from "../models/operations/index.js"; +import { unwrapAsync } from "../types/fp.js"; export class Activities extends ClientSDK { /** @@ -33,7 +33,7 @@ export class Activities extends ClientSDK { async cancelActivity( request: operations.CancelActivityRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(activitiesCancelActivity( this, request, diff --git a/src/sdk/authentication.ts b/src/sdk/authentication.ts index 19f460ac..fb665eb7 100644 --- a/src/sdk/authentication.ts +++ b/src/sdk/authentication.ts @@ -5,8 +5,9 @@ import { authenticationGetTokenDetails } from "../funcs/authenticationGetTokenDetails.js"; import { authenticationPostUsersSignInData } from "../funcs/authenticationPostUsersSignInData.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "./models/operations/index.js"; -import { unwrapAsync } from "./types/fp.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { unwrapAsync } from "../types/fp.js"; export class Authentication extends ClientSDK { /** @@ -18,7 +19,7 @@ export class Authentication extends ClientSDK { async getTokenDetails( request: operations.GetTokenDetailsRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(authenticationGetTokenDetails( this, request, @@ -35,7 +36,7 @@ export class Authentication extends ClientSDK { async postUsersSignInData( request: operations.PostUsersSignInDataRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(authenticationPostUsersSignInData( this, request, diff --git a/src/sdk/butler.ts b/src/sdk/butler.ts index 4144a2e3..a815c0cb 100644 --- a/src/sdk/butler.ts +++ b/src/sdk/butler.ts @@ -8,8 +8,8 @@ import { butlerStartTasks } from "../funcs/butlerStartTasks.js"; import { butlerStopTask } from "../funcs/butlerStopTask.js"; import { butlerStopTasks } from "../funcs/butlerStopTasks.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "./models/operations/index.js"; -import { unwrapAsync } from "./types/fp.js"; +import * as operations from "../models/operations/index.js"; +import { unwrapAsync } from "../types/fp.js"; export class Butler extends ClientSDK { /** @@ -20,7 +20,7 @@ export class Butler extends ClientSDK { */ async stopTasks( options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(butlerStopTasks( this, options, @@ -55,7 +55,7 @@ export class Butler extends ClientSDK { */ async startTasks( options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(butlerStartTasks( this, options, @@ -71,7 +71,7 @@ export class Butler extends ClientSDK { async stopTask( request: operations.StopTaskRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(butlerStopTask( this, request, @@ -88,7 +88,7 @@ export class Butler extends ClientSDK { async startTask( request: operations.StartTaskRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(butlerStartTask( this, request, diff --git a/src/sdk/collections.ts b/src/sdk/collections.ts index 32beea8e..6018b9b6 100644 --- a/src/sdk/collections.ts +++ b/src/sdk/collections.ts @@ -4,8 +4,9 @@ import { collectionsCreateCollection } from "../funcs/collectionsCreateCollection.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "./models/operations/index.js"; -import { unwrapAsync } from "./types/fp.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { unwrapAsync } from "../types/fp.js"; export class Collections extends ClientSDK { /** @@ -17,7 +18,7 @@ export class Collections extends ClientSDK { async createCollection( request: operations.CreateCollectionRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(collectionsCreateCollection( this, request, diff --git a/src/sdk/content.ts b/src/sdk/content.ts index 63bc399c..3a38fc7e 100644 --- a/src/sdk/content.ts +++ b/src/sdk/content.ts @@ -16,8 +16,9 @@ import { contentGetSonicPath } from "../funcs/contentGetSonicPath.js"; import { contentListContent } from "../funcs/contentListContent.js"; import { contentListMoments } from "../funcs/contentListMoments.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "./models/operations/index.js"; -import { unwrapAsync } from "./types/fp.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { unwrapAsync } from "../types/fp.js"; export class Content extends ClientSDK { /** @@ -29,7 +30,7 @@ export class Content extends ClientSDK { async getCollectionItems( request: operations.GetCollectionItemsRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(contentGetCollectionItems( this, request, @@ -63,7 +64,7 @@ export class Content extends ClientSDK { async getAlbums( request: operations.GetAlbumsRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(contentGetAlbums( this, request, @@ -97,7 +98,7 @@ export class Content extends ClientSDK { async getAllLeaves( request: operations.GetAllLeavesRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(contentGetAllLeaves( this, request, @@ -114,7 +115,7 @@ export class Content extends ClientSDK { async getArts( request: operations.GetArtsRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(contentGetArts( this, request, @@ -131,7 +132,7 @@ export class Content extends ClientSDK { async getCategories( request: operations.GetCategoriesRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(contentGetCategories( this, request, @@ -148,7 +149,7 @@ export class Content extends ClientSDK { async getCluster( request: operations.GetClusterRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(contentGetCluster( this, request, @@ -165,7 +166,7 @@ export class Content extends ClientSDK { async getSonicPath( request: operations.GetSonicPathRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(contentGetSonicPath( this, request, @@ -199,7 +200,7 @@ export class Content extends ClientSDK { async listMoments( request: operations.ListMomentsRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(contentListMoments( this, request, @@ -216,7 +217,7 @@ export class Content extends ClientSDK { async getSonicallySimilar( request: operations.GetSonicallySimilarRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(contentGetSonicallySimilar( this, request, @@ -233,7 +234,7 @@ export class Content extends ClientSDK { async getCollectionImage( request: operations.GetCollectionImageRequest, options?: RequestOptions, - ): Promise { + ): Promise> { return unwrapAsync(contentGetCollectionImage( this, request, diff --git a/src/sdk/devices.ts b/src/sdk/devices.ts index fa7a2d14..9a0bbaef 100644 --- a/src/sdk/devices.ts +++ b/src/sdk/devices.ts @@ -16,8 +16,9 @@ import { devicesSetChannelmap } from "../funcs/devicesSetChannelmap.js"; import { devicesSetDevicePreferences } from "../funcs/devicesSetDevicePreferences.js"; import { devicesStopScan } from "../funcs/devicesStopScan.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "./models/operations/index.js"; -import { unwrapAsync } from "./types/fp.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { unwrapAsync } from "../types/fp.js"; export class Devices extends ClientSDK { /** @@ -61,7 +62,7 @@ export class Devices extends ClientSDK { async addDevice( request: operations.AddDeviceRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(devicesAddDevice( this, request, @@ -77,7 +78,7 @@ export class Devices extends ClientSDK { */ async discoverDevices( options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(devicesDiscoverDevices( this, options, @@ -110,7 +111,7 @@ export class Devices extends ClientSDK { async getDeviceDetails( request: operations.GetDeviceDetailsRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(devicesGetDeviceDetails( this, request, @@ -144,7 +145,7 @@ export class Devices extends ClientSDK { async setChannelmap( request: operations.SetChannelmapRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(devicesSetChannelmap( this, request, @@ -178,7 +179,7 @@ export class Devices extends ClientSDK { async setDevicePreferences( request: operations.SetDevicePreferencesRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(devicesSetDevicePreferences( this, request, @@ -195,7 +196,7 @@ export class Devices extends ClientSDK { async stopScan( request: operations.StopScanRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(devicesStopScan( this, request, @@ -229,7 +230,7 @@ export class Devices extends ClientSDK { async getThumb( request: operations.GetThumbRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(devicesGetThumb( this, request, diff --git a/src/sdk/downloadqueue.ts b/src/sdk/downloadqueue.ts index 3520731f..5367c4a5 100644 --- a/src/sdk/downloadqueue.ts +++ b/src/sdk/downloadqueue.ts @@ -12,8 +12,9 @@ import { downloadQueueListDownloadQueueItems } from "../funcs/downloadQueueListD import { downloadQueueRemoveDownloadQueueItems } from "../funcs/downloadQueueRemoveDownloadQueueItems.js"; import { downloadQueueRestartProcessingDownloadQueueItems } from "../funcs/downloadQueueRestartProcessingDownloadQueueItems.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "./models/operations/index.js"; -import { unwrapAsync } from "./types/fp.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { unwrapAsync } from "../types/fp.js"; export class DownloadQueue extends ClientSDK { /** @@ -101,7 +102,7 @@ export class DownloadQueue extends ClientSDK { async getItemDecision( request: operations.GetItemDecisionRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(downloadQueueGetItemDecision( this, request, @@ -120,7 +121,7 @@ export class DownloadQueue extends ClientSDK { async getDownloadQueueMedia( request: operations.GetDownloadQueueMediaRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(downloadQueueGetDownloadQueueMedia( this, request, @@ -137,7 +138,7 @@ export class DownloadQueue extends ClientSDK { async removeDownloadQueueItems( request: operations.RemoveDownloadQueueItemsRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(downloadQueueRemoveDownloadQueueItems( this, request, @@ -175,7 +176,7 @@ export class DownloadQueue extends ClientSDK { async restartProcessingDownloadQueueItems( request: operations.RestartProcessingDownloadQueueItemsRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(downloadQueueRestartProcessingDownloadQueueItems( this, request, diff --git a/src/sdk/dvrs.ts b/src/sdk/dvrs.ts index 820d8c06..8700d491 100644 --- a/src/sdk/dvrs.ts +++ b/src/sdk/dvrs.ts @@ -15,8 +15,8 @@ import { dvRsSetDVRPreferences } from "../funcs/dvRsSetDVRPreferences.js"; import { dvRsStopDVRReload } from "../funcs/dvRsStopDVRReload.js"; import { dvRsTuneChannel } from "../funcs/dvRsTuneChannel.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "./models/operations/index.js"; -import { unwrapAsync } from "./types/fp.js"; +import * as operations from "../models/operations/index.js"; +import { unwrapAsync } from "../types/fp.js"; export class DVRs extends ClientSDK { /** @@ -60,7 +60,7 @@ export class DVRs extends ClientSDK { async deleteDVR( request: operations.DeleteDVRRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(dvRsDeleteDVR( this, request, @@ -145,7 +145,7 @@ export class DVRs extends ClientSDK { async stopDVRReload( request: operations.StopDVRReloadRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(dvRsStopDVRReload( this, request, @@ -162,7 +162,7 @@ export class DVRs extends ClientSDK { async reloadGuide( request: operations.ReloadGuideRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(dvRsReloadGuide( this, request, diff --git a/src/sdk/epg.ts b/src/sdk/epg.ts index b7501fd3..5b47d882 100644 --- a/src/sdk/epg.ts +++ b/src/sdk/epg.ts @@ -12,8 +12,9 @@ import { epgGetLineup } from "../funcs/epgGetLineup.js"; import { epgGetLineupChannels } from "../funcs/epgGetLineupChannels.js"; import { epgListLineups } from "../funcs/epgListLineups.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "./models/operations/index.js"; -import { unwrapAsync } from "./types/fp.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { unwrapAsync } from "../types/fp.js"; export class Epg extends ClientSDK { /** @@ -89,7 +90,7 @@ export class Epg extends ClientSDK { async getLineup( request: operations.GetLineupRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(epgGetLineup( this, request, @@ -123,7 +124,7 @@ export class Epg extends ClientSDK { async getCountriesLineups( request: operations.GetCountriesLineupsRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(epgGetCountriesLineups( this, request, diff --git a/src/sdk/events.ts b/src/sdk/events.ts index 9df0d1ba..47ac01d4 100644 --- a/src/sdk/events.ts +++ b/src/sdk/events.ts @@ -5,8 +5,8 @@ import { eventsConnectWebSocket } from "../funcs/eventsConnectWebSocket.js"; import { eventsGetNotifications } from "../funcs/eventsGetNotifications.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "./models/operations/index.js"; -import { unwrapAsync } from "./types/fp.js"; +import * as operations from "../models/operations/index.js"; +import { unwrapAsync } from "../types/fp.js"; export class Events extends ClientSDK { /** @@ -18,7 +18,7 @@ export class Events extends ClientSDK { async getNotifications( request: operations.GetNotificationsRequest, options?: RequestOptions, - ): Promise { + ): Promise> { return unwrapAsync(eventsGetNotifications( this, request, @@ -35,7 +35,7 @@ export class Events extends ClientSDK { async connectWebSocket( request: operations.ConnectWebSocketRequest, options?: RequestOptions, - ): Promise { + ): Promise> { return unwrapAsync(eventsConnectWebSocket( this, request, diff --git a/src/sdk/general.ts b/src/sdk/general.ts index 1eefa6dd..bce179a9 100644 --- a/src/sdk/general.ts +++ b/src/sdk/general.ts @@ -7,8 +7,9 @@ import { generalGetServerInfo } from "../funcs/generalGetServerInfo.js"; import { generalGetSourceConnectionInformation } from "../funcs/generalGetSourceConnectionInformation.js"; import { generalGetTransientToken } from "../funcs/generalGetTransientToken.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "./models/operations/index.js"; -import { unwrapAsync } from "./types/fp.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { unwrapAsync } from "../types/fp.js"; export class General extends ClientSDK { /** @@ -20,7 +21,7 @@ export class General extends ClientSDK { async getServerInfo( request: operations.GetServerInfoRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(generalGetServerInfo( this, request, diff --git a/src/sdk/hubs.ts b/src/sdk/hubs.ts index b9409cc8..7d516d39 100644 --- a/src/sdk/hubs.ts +++ b/src/sdk/hubs.ts @@ -17,8 +17,8 @@ import { hubsMoveHub } from "../funcs/hubsMoveHub.js"; import { hubsResetSectionDefaults } from "../funcs/hubsResetSectionDefaults.js"; import { hubsUpdateHubVisibility } from "../funcs/hubsUpdateHubVisibility.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "./models/operations/index.js"; -import { unwrapAsync } from "./types/fp.js"; +import * as operations from "../models/operations/index.js"; +import { unwrapAsync } from "../types/fp.js"; export class Hubs extends ClientSDK { /** @@ -166,7 +166,7 @@ export class Hubs extends ClientSDK { async resetSectionDefaults( request: operations.ResetSectionDefaultsRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(hubsResetSectionDefaults( this, request, @@ -200,7 +200,7 @@ export class Hubs extends ClientSDK { async createCustomHub( request: operations.CreateCustomHubRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(hubsCreateCustomHub( this, request, @@ -234,7 +234,7 @@ export class Hubs extends ClientSDK { async deleteCustomHub( request: operations.DeleteCustomHubRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(hubsDeleteCustomHub( this, request, @@ -251,7 +251,7 @@ export class Hubs extends ClientSDK { async updateHubVisibility( request: operations.UpdateHubVisibilityRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(hubsUpdateHubVisibility( this, request, diff --git a/src/sdk/library.ts b/src/sdk/library.ts index 4f680a7e..efad8b28 100644 --- a/src/sdk/library.ts +++ b/src/sdk/library.ts @@ -85,8 +85,9 @@ import { libraryUnmatch } from "../funcs/libraryUnmatch.js"; import { libraryUpdateItemArtwork } from "../funcs/libraryUpdateItemArtwork.js"; import { libraryUpdateItems } from "../funcs/libraryUpdateItems.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "./models/operations/index.js"; -import { unwrapAsync } from "./types/fp.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { unwrapAsync } from "../types/fp.js"; export { GetFileAcceptEnum } from "../funcs/libraryGetFile.js"; @@ -118,7 +119,7 @@ export class Library extends ClientSDK { */ async deleteCaches( options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryDeleteCaches( this, options, @@ -133,7 +134,7 @@ export class Library extends ClientSDK { */ async cleanBundles( options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryCleanBundles( this, options, @@ -188,7 +189,7 @@ export class Library extends ClientSDK { async optimizeDatabase( request: operations.OptimizeDatabaseRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryOptimizeDatabase( this, request, @@ -207,7 +208,7 @@ export class Library extends ClientSDK { async getRandomArtwork( request: operations.GetRandomArtworkRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryGetRandomArtwork( this, request, @@ -240,7 +241,7 @@ export class Library extends ClientSDK { async addSection( request: operations.AddSectionRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryAddSection( this, request, @@ -256,7 +257,7 @@ export class Library extends ClientSDK { */ async stopAllRefreshes( options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryStopAllRefreshes( this, options, @@ -272,7 +273,7 @@ export class Library extends ClientSDK { async getSectionsPrefs( request: operations.GetSectionsPrefsRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryGetSectionsPrefs( this, request, @@ -289,7 +290,7 @@ export class Library extends ClientSDK { async refreshSectionsMetadata( request: operations.RefreshSectionsMetadataRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryRefreshSectionsMetadata( this, request, @@ -323,7 +324,7 @@ export class Library extends ClientSDK { async deleteMetadataItem( request: operations.DeleteMetadataItemRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryDeleteMetadataItem( this, request, @@ -340,7 +341,7 @@ export class Library extends ClientSDK { async editMetadataItem( request: operations.EditMetadataItemRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryEditMetadataItem( this, request, @@ -357,7 +358,7 @@ export class Library extends ClientSDK { async detectAds( request: operations.DetectAdsRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryDetectAds( this, request, @@ -391,7 +392,7 @@ export class Library extends ClientSDK { async analyzeMetadata( request: operations.AnalyzeMetadataRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryAnalyzeMetadata( this, request, @@ -408,7 +409,7 @@ export class Library extends ClientSDK { async generateThumbs( request: operations.GenerateThumbsRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryGenerateThumbs( this, request, @@ -425,7 +426,7 @@ export class Library extends ClientSDK { async detectCredits( request: operations.DetectCreditsRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryDetectCredits( this, request, @@ -459,7 +460,7 @@ export class Library extends ClientSDK { async addExtras( request: operations.AddExtrasRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryAddExtras( this, request, @@ -493,7 +494,7 @@ export class Library extends ClientSDK { async startBifGeneration( request: operations.StartBifGenerationRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryStartBifGeneration( this, request, @@ -510,7 +511,7 @@ export class Library extends ClientSDK { async detectIntros( request: operations.DetectIntrosRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryDetectIntros( this, request, @@ -544,7 +545,7 @@ export class Library extends ClientSDK { async matchItem( request: operations.MatchItemRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryMatchItem( this, request, @@ -561,7 +562,7 @@ export class Library extends ClientSDK { async listMatches( request: operations.ListMatchesRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryListMatches( this, request, @@ -578,7 +579,7 @@ export class Library extends ClientSDK { async mergeItems( request: operations.MergeItemsRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryMergeItems( this, request, @@ -595,7 +596,7 @@ export class Library extends ClientSDK { async listSonicallySimilar( request: operations.ListSonicallySimilarRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryListSonicallySimilar( this, request, @@ -612,7 +613,7 @@ export class Library extends ClientSDK { async setItemPreferences( request: operations.SetItemPreferencesRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(librarySetItemPreferences( this, request, @@ -629,7 +630,7 @@ export class Library extends ClientSDK { async refreshItemsMetadata( request: operations.RefreshItemsMetadataRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryRefreshItemsMetadata( this, request, @@ -663,7 +664,7 @@ export class Library extends ClientSDK { async listSimilar( request: operations.ListSimilarRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryListSimilar( this, request, @@ -680,7 +681,7 @@ export class Library extends ClientSDK { async splitItem( request: operations.SplitItemRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(librarySplitItem( this, request, @@ -697,7 +698,7 @@ export class Library extends ClientSDK { async addSubtitles( request: operations.AddSubtitlesRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryAddSubtitles( this, request, @@ -714,7 +715,7 @@ export class Library extends ClientSDK { async getItemTree( request: operations.GetItemTreeRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryGetItemTree( this, request, @@ -731,7 +732,7 @@ export class Library extends ClientSDK { async unmatch( request: operations.UnmatchRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryUnmatch( this, request, @@ -765,7 +766,7 @@ export class Library extends ClientSDK { async detectVoiceActivity( request: operations.DetectVoiceActivityRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryDetectVoiceActivity( this, request, @@ -782,7 +783,7 @@ export class Library extends ClientSDK { async getAugmentationStatus( request: operations.GetAugmentationStatusRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryGetAugmentationStatus( this, request, @@ -799,7 +800,7 @@ export class Library extends ClientSDK { async setStreamSelection( request: operations.SetStreamSelectionRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(librarySetStreamSelection( this, request, @@ -833,7 +834,7 @@ export class Library extends ClientSDK { async listPersonMedia( request: operations.ListPersonMediaRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryListPersonMedia( this, request, @@ -850,7 +851,7 @@ export class Library extends ClientSDK { async deleteLibrarySection( request: operations.DeleteLibrarySectionRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryDeleteLibrarySection( this, request, @@ -884,7 +885,7 @@ export class Library extends ClientSDK { async editSection( request: operations.EditSectionRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryEditSection( this, request, @@ -945,7 +946,7 @@ export class Library extends ClientSDK { async updateItems( request: operations.UpdateItemsRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryUpdateItems( this, request, @@ -962,7 +963,7 @@ export class Library extends ClientSDK { async startAnalysis( request: operations.StartAnalysisRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryStartAnalysis( this, request, @@ -1032,7 +1033,7 @@ export class Library extends ClientSDK { async emptyTrash( request: operations.EmptyTrashRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryEmptyTrash( this, request, @@ -1083,7 +1084,7 @@ export class Library extends ClientSDK { async deleteIndexes( request: operations.DeleteIndexesRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryDeleteIndexes( this, request, @@ -1100,7 +1101,7 @@ export class Library extends ClientSDK { async deleteIntros( request: operations.DeleteIntrosRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryDeleteIntros( this, request, @@ -1117,7 +1118,7 @@ export class Library extends ClientSDK { async getSectionPreferences( request: operations.GetSectionPreferencesRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryGetSectionPreferences( this, request, @@ -1134,7 +1135,7 @@ export class Library extends ClientSDK { async setSectionPreferences( request: operations.SetSectionPreferencesRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(librarySetSectionPreferences( this, request, @@ -1151,7 +1152,7 @@ export class Library extends ClientSDK { async cancelRefresh( request: operations.CancelRefreshRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryCancelRefresh( this, request, @@ -1168,7 +1169,7 @@ export class Library extends ClientSDK { async refreshSection( request: operations.RefreshSectionRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryRefreshSection( this, request, @@ -1219,7 +1220,7 @@ export class Library extends ClientSDK { async getStreamLoudness( request: operations.GetStreamLoudnessRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryGetStreamLoudness( this, request, @@ -1236,7 +1237,7 @@ export class Library extends ClientSDK { async getChapterImage( request: operations.GetChapterImageRequest, options?: RequestOptions, - ): Promise { + ): Promise> { return unwrapAsync(libraryGetChapterImage( this, request, @@ -1254,7 +1255,7 @@ export class Library extends ClientSDK { async setItemArtwork( request: operations.SetItemArtworkRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(librarySetItemArtwork( this, request, @@ -1272,7 +1273,7 @@ export class Library extends ClientSDK { async updateItemArtwork( request: operations.UpdateItemArtworkRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryUpdateItemArtwork( this, request, @@ -1289,7 +1290,7 @@ export class Library extends ClientSDK { async deleteMarker( request: operations.DeleteMarkerRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryDeleteMarker( this, request, @@ -1306,7 +1307,7 @@ export class Library extends ClientSDK { async editMarker( request: operations.EditMarkerRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryEditMarker( this, request, @@ -1323,7 +1324,7 @@ export class Library extends ClientSDK { async deleteMediaItem( request: operations.DeleteMediaItemRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryDeleteMediaItem( this, request, @@ -1340,7 +1341,7 @@ export class Library extends ClientSDK { async getPartIndex( request: operations.GetPartIndexRequest, options?: RequestOptions, - ): Promise { + ): Promise> { return unwrapAsync(libraryGetPartIndex( this, request, @@ -1357,7 +1358,7 @@ export class Library extends ClientSDK { async deleteCollection( request: operations.DeleteCollectionRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryDeleteCollection( this, request, @@ -1374,7 +1375,7 @@ export class Library extends ClientSDK { async getSectionImage( request: operations.GetSectionImageRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryGetSectionImage( this, request, @@ -1391,7 +1392,7 @@ export class Library extends ClientSDK { async deleteStream( request: operations.DeleteStreamRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryDeleteStream( this, request, @@ -1408,7 +1409,7 @@ export class Library extends ClientSDK { async getStream( request: operations.GetStreamRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryGetStream( this, request, @@ -1425,7 +1426,7 @@ export class Library extends ClientSDK { async setStreamOffset( request: operations.SetStreamOffsetRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(librarySetStreamOffset( this, request, @@ -1463,7 +1464,7 @@ export class Library extends ClientSDK { async getMediaPart( request: operations.GetMediaPartRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryGetMediaPart( this, request, @@ -1480,7 +1481,7 @@ export class Library extends ClientSDK { async getImageFromBif( request: operations.GetImageFromBifRequest, options?: RequestOptions, - ): Promise { + ): Promise> { return unwrapAsync(libraryGetImageFromBif( this, request, diff --git a/src/sdk/librarycollections.ts b/src/sdk/librarycollections.ts index 140b73d0..0153486f 100644 --- a/src/sdk/librarycollections.ts +++ b/src/sdk/librarycollections.ts @@ -6,8 +6,9 @@ import { libraryCollectionsAddCollectionItems } from "../funcs/libraryCollection import { libraryCollectionsDeleteCollectionItem } from "../funcs/libraryCollectionsDeleteCollectionItem.js"; import { libraryCollectionsMoveCollectionItem } from "../funcs/libraryCollectionsMoveCollectionItem.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "./models/operations/index.js"; -import { unwrapAsync } from "./types/fp.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { unwrapAsync } from "../types/fp.js"; export class LibraryCollections extends ClientSDK { /** @@ -19,7 +20,7 @@ export class LibraryCollections extends ClientSDK { async addCollectionItems( request: operations.AddCollectionItemsRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryCollectionsAddCollectionItems( this, request, @@ -36,7 +37,7 @@ export class LibraryCollections extends ClientSDK { async deleteCollectionItem( request: operations.DeleteCollectionItemRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryCollectionsDeleteCollectionItem( this, request, @@ -53,7 +54,7 @@ export class LibraryCollections extends ClientSDK { async moveCollectionItem( request: operations.MoveCollectionItemRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryCollectionsMoveCollectionItem( this, request, diff --git a/src/sdk/libraryplaylists.ts b/src/sdk/libraryplaylists.ts index eb0a92fa..4354581a 100644 --- a/src/sdk/libraryplaylists.ts +++ b/src/sdk/libraryplaylists.ts @@ -16,8 +16,9 @@ import { libraryPlaylistsRefreshPlaylist } from "../funcs/libraryPlaylistsRefres import { libraryPlaylistsUpdatePlaylist } from "../funcs/libraryPlaylistsUpdatePlaylist.js"; import { libraryPlaylistsUploadPlaylist } from "../funcs/libraryPlaylistsUploadPlaylist.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "./models/operations/index.js"; -import { unwrapAsync } from "./types/fp.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { unwrapAsync } from "../types/fp.js"; export class LibraryPlaylists extends ClientSDK { /** @@ -29,7 +30,7 @@ export class LibraryPlaylists extends ClientSDK { async createPlaylist( request: operations.CreatePlaylistRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryPlaylistsCreatePlaylist( this, request, @@ -46,7 +47,7 @@ export class LibraryPlaylists extends ClientSDK { async uploadPlaylist( request: operations.UploadPlaylistRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryPlaylistsUploadPlaylist( this, request, @@ -63,7 +64,7 @@ export class LibraryPlaylists extends ClientSDK { async deletePlaylist( request: operations.DeletePlaylistRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryPlaylistsDeletePlaylist( this, request, @@ -80,7 +81,7 @@ export class LibraryPlaylists extends ClientSDK { async updatePlaylist( request: operations.UpdatePlaylistRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryPlaylistsUpdatePlaylist( this, request, @@ -114,7 +115,7 @@ export class LibraryPlaylists extends ClientSDK { async clearPlaylistItems( request: operations.ClearPlaylistItemsRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryPlaylistsClearPlaylistItems( this, request, @@ -131,7 +132,7 @@ export class LibraryPlaylists extends ClientSDK { async addPlaylistItems( request: operations.AddPlaylistItemsRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryPlaylistsAddPlaylistItems( this, request, @@ -148,7 +149,7 @@ export class LibraryPlaylists extends ClientSDK { async deletePlaylistItem( request: operations.DeletePlaylistItemRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryPlaylistsDeletePlaylistItem( this, request, @@ -182,7 +183,7 @@ export class LibraryPlaylists extends ClientSDK { async modifyPlaylistGenerator( request: operations.ModifyPlaylistGeneratorRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryPlaylistsModifyPlaylistGenerator( this, request, @@ -216,7 +217,7 @@ export class LibraryPlaylists extends ClientSDK { async movePlaylistItem( request: operations.MovePlaylistItemRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryPlaylistsMovePlaylistItem( this, request, @@ -233,7 +234,7 @@ export class LibraryPlaylists extends ClientSDK { async refreshPlaylist( request: operations.RefreshPlaylistRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(libraryPlaylistsRefreshPlaylist( this, request, diff --git a/src/sdk/livetv.ts b/src/sdk/livetv.ts index 728cfddc..b4c308de 100644 --- a/src/sdk/livetv.ts +++ b/src/sdk/livetv.ts @@ -7,8 +7,8 @@ import { liveTVGetSessionPlaylistIndex } from "../funcs/liveTVGetSessionPlaylist import { liveTVGetSessions } from "../funcs/liveTVGetSessions.js"; import { liveTVGetSessionSegment } from "../funcs/liveTVGetSessionSegment.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "./models/operations/index.js"; -import { unwrapAsync } from "./types/fp.js"; +import * as operations from "../models/operations/index.js"; +import { unwrapAsync } from "../types/fp.js"; export class LiveTV extends ClientSDK { /** @@ -52,7 +52,7 @@ export class LiveTV extends ClientSDK { async getSessionPlaylistIndex( request: operations.GetSessionPlaylistIndexRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(liveTVGetSessionPlaylistIndex( this, request, @@ -69,7 +69,7 @@ export class LiveTV extends ClientSDK { async getSessionSegment( request: operations.GetSessionSegmentRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(liveTVGetSessionSegment( this, request, diff --git a/src/sdk/log.ts b/src/sdk/log.ts index e53f4b99..847b2563 100644 --- a/src/sdk/log.ts +++ b/src/sdk/log.ts @@ -6,8 +6,8 @@ import { logEnablePapertrail } from "../funcs/logEnablePapertrail.js"; import { logWriteLog } from "../funcs/logWriteLog.js"; import { logWriteMessage } from "../funcs/logWriteMessage.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "./models/operations/index.js"; -import { unwrapAsync } from "./types/fp.js"; +import * as operations from "../models/operations/index.js"; +import { unwrapAsync } from "../types/fp.js"; export class Log extends ClientSDK { /** @@ -19,7 +19,7 @@ export class Log extends ClientSDK { async writeLog( request: ReadableStream | Blob | ArrayBuffer | Uint8Array, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(logWriteLog( this, request, @@ -38,7 +38,7 @@ export class Log extends ClientSDK { async writeMessage( request: operations.WriteMessageRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(logWriteMessage( this, request, @@ -57,7 +57,7 @@ export class Log extends ClientSDK { async enablePapertrail( request: operations.EnablePapertrailRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(logEnablePapertrail( this, request, diff --git a/src/sdk/models/errors/sdkvalidationerror.ts b/src/sdk/models/errors/sdkvalidationerror.ts deleted file mode 100644 index 6826e120..00000000 --- a/src/sdk/models/errors/sdkvalidationerror.ts +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod/v3"; - -export class SDKValidationError extends Error { - /** - * The raw value that failed validation. - */ - public readonly rawValue: unknown; - - /** - * The raw message that failed validation. - */ - public readonly rawMessage: unknown; - - // Allows for backwards compatibility for `instanceof` checks of `ResponseValidationError` - static override [Symbol.hasInstance]( - instance: unknown, - ): instance is SDKValidationError { - if (!(instance instanceof Error)) return false; - if (!("rawValue" in instance)) return false; - if (!("rawMessage" in instance)) return false; - if (!("pretty" in instance)) return false; - if (typeof instance.pretty !== "function") return false; - return true; - } - - constructor(message: string, cause: unknown, rawValue: unknown) { - super(`${message}: ${cause}`); - this.name = "SDKValidationError"; - this.cause = cause; - this.rawValue = rawValue; - this.rawMessage = message; - } - - /** - * Return a pretty-formatted error message if the underlying validation error - * is a ZodError or some other recognized error type, otherwise return the - * default error message. - */ - public pretty(): string { - if (this.cause instanceof z.ZodError) { - return `${this.rawMessage}\n${formatZodError(this.cause)}`; - } else { - return this.toString(); - } - } -} - -export function formatZodError(err: z.ZodError, level = 0): string { - let pre = " ".repeat(level); - pre = level > 0 ? `│${pre}` : pre; - pre += " ".repeat(level); - - let message = ""; - const append = (str: string) => (message += `\n${pre}${str}`); - - const len = err.issues.length; - const headline = len === 1 ? `${len} issue found` : `${len} issues found`; - - if (len) { - append(`┌ ${headline}:`); - } - - for (const issue of err.issues) { - let path = issue.path.join("."); - path = path ? `.${path}` : ""; - append(`│ • [${path}]: ${issue.message} (${issue.code})`); - switch (issue.code) { - case "invalid_literal": - case "invalid_type": { - append(`│ Want: ${issue.expected}`); - append(`│ Got: ${issue.received}`); - break; - } - case "unrecognized_keys": { - append(`│ Keys: ${issue.keys.join(", ")}`); - break; - } - case "invalid_enum_value": { - append(`│ Allowed: ${issue.options.join(", ")}`); - append(`│ Got: ${issue.received}`); - break; - } - case "invalid_union_discriminator": { - append(`│ Allowed: ${issue.options.join(", ")}`); - break; - } - case "invalid_union": { - const len = issue.unionErrors.length; - append( - `│ ✖︎ Attemped to deserialize into one of ${len} union members:`, - ); - issue.unionErrors.forEach((err, i) => { - append(`│ ✖︎ Member ${i + 1} of ${len}`); - append(`${formatZodError(err, level + 1)}`); - }); - } - } - } - - if (err.issues.length) { - append(`└─*`); - } - - return message.slice(1); -} diff --git a/src/sdk/models/operations/cleanbundles.ts b/src/sdk/models/operations/cleanbundles.ts deleted file mode 100644 index 6393b17c..00000000 --- a/src/sdk/models/operations/cleanbundles.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod/v3"; -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 CleanBundlesResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - -/** @internal */ -export const CleanBundlesResponse$inboundSchema: z.ZodType< - CleanBundlesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function cleanBundlesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CleanBundlesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CleanBundlesResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/deletecaches.ts b/src/sdk/models/operations/deletecaches.ts deleted file mode 100644 index 32f5269e..00000000 --- a/src/sdk/models/operations/deletecaches.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod/v3"; -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 DeleteCachesResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - -/** @internal */ -export const DeleteCachesResponse$inboundSchema: z.ZodType< - DeleteCachesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function deleteCachesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteCachesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteCachesResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/discoverdevices.ts b/src/sdk/models/operations/discoverdevices.ts deleted file mode 100644 index ee5cf3ae..00000000 --- a/src/sdk/models/operations/discoverdevices.ts +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod/v3"; -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 DiscoverDevicesResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithDevice?: shared.MediaContainerWithDevice | undefined; -}; - -/** @internal */ -export const DiscoverDevicesResponse$inboundSchema: z.ZodType< - DiscoverDevicesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithDevice: shared.MediaContainerWithDevice$inboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithDevice": "mediaContainerWithDevice", - }); -}); - -export function discoverDevicesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DiscoverDevicesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DiscoverDevicesResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/getallpreferences.ts b/src/sdk/models/operations/getallpreferences.ts deleted file mode 100644 index 93cfdc85..00000000 --- a/src/sdk/models/operations/getallpreferences.ts +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod/v3"; -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 GetAllPreferencesResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithSettings?: shared.MediaContainerWithSettings | undefined; -}; - -/** @internal */ -export const GetAllPreferencesResponse$inboundSchema: z.ZodType< - GetAllPreferencesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithSettings: shared.MediaContainerWithSettings$inboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithSettings": "mediaContainerWithSettings", - }); -}); - -export function getAllPreferencesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAllPreferencesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAllPreferencesResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/getsessions.ts b/src/sdk/models/operations/getsessions.ts deleted file mode 100644 index d99a01a6..00000000 --- a/src/sdk/models/operations/getsessions.ts +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod/v3"; -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 GetSessionsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; - headers: { [k: string]: Array }; -}; - -/** @internal */ -export const GetSessionsResponse$inboundSchema: z.ZodType< - GetSessionsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema - .optional(), - Headers: z.record(z.array(z.string())).default({}), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithMetadata": "mediaContainerWithMetadata", - "Headers": "headers", - }); -}); - -export function getSessionsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetSessionsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSessionsResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/listdevices.ts b/src/sdk/models/operations/listdevices.ts deleted file mode 100644 index 851e6400..00000000 --- a/src/sdk/models/operations/listdevices.ts +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod/v3"; -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 ListDevicesResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - mediaContainerWithDevice?: shared.MediaContainerWithDevice | undefined; - headers: { [k: string]: Array }; -}; - -/** @internal */ -export const ListDevicesResponse$inboundSchema: z.ZodType< - ListDevicesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - MediaContainerWithDevice: shared.MediaContainerWithDevice$inboundSchema - .optional(), - Headers: z.record(z.array(z.string())).default({}), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "MediaContainerWithDevice": "mediaContainerWithDevice", - "Headers": "headers", - }); -}); - -export function listDevicesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListDevicesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListDevicesResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/refreshproviders.ts b/src/sdk/models/operations/refreshproviders.ts deleted file mode 100644 index 5e89f041..00000000 --- a/src/sdk/models/operations/refreshproviders.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod/v3"; -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 RefreshProvidersResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - -/** @internal */ -export const RefreshProvidersResponse$inboundSchema: z.ZodType< - RefreshProvidersResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function refreshProvidersResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RefreshProvidersResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RefreshProvidersResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/starttasks.ts b/src/sdk/models/operations/starttasks.ts deleted file mode 100644 index 0887c947..00000000 --- a/src/sdk/models/operations/starttasks.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod/v3"; -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 StartTasksResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - -/** @internal */ -export const StartTasksResponse$inboundSchema: z.ZodType< - StartTasksResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function startTasksResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => StartTasksResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'StartTasksResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/stopallrefreshes.ts b/src/sdk/models/operations/stopallrefreshes.ts deleted file mode 100644 index a73bbdda..00000000 --- a/src/sdk/models/operations/stopallrefreshes.ts +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod/v3"; -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 StopAllRefreshesResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * OK - */ - librarySections?: shared.LibrarySections | undefined; -}; - -/** @internal */ -export const StopAllRefreshesResponse$inboundSchema: z.ZodType< - StopAllRefreshesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - LibrarySections: shared.LibrarySections$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - "LibrarySections": "librarySections", - }); -}); - -export function stopAllRefreshesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => StopAllRefreshesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'StopAllRefreshesResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/stoptasks.ts b/src/sdk/models/operations/stoptasks.ts deleted file mode 100644 index 543abbb3..00000000 --- a/src/sdk/models/operations/stoptasks.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod/v3"; -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 StopTasksResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - -/** @internal */ -export const StopTasksResponse$inboundSchema: z.ZodType< - StopTasksResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function stopTasksResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => StopTasksResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'StopTasksResponse' from JSON`, - ); -} diff --git a/src/sdk/models/operations/writelog.ts b/src/sdk/models/operations/writelog.ts deleted file mode 100644 index 4f4c766d..00000000 --- a/src/sdk/models/operations/writelog.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod/v3"; -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 WriteLogResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - -/** @internal */ -export const WriteLogResponse$inboundSchema: z.ZodType< - WriteLogResponse, - z.ZodTypeDef, - unknown -> = z.object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), -}).transform((v) => { - return remap$(v, { - "ContentType": "contentType", - "StatusCode": "statusCode", - "RawResponse": "rawResponse", - }); -}); - -export function writeLogResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => WriteLogResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'WriteLogResponse' from JSON`, - ); -} diff --git a/src/sdk/models/shared/userprofile.ts b/src/sdk/models/shared/userprofile.ts deleted file mode 100644 index e79c6151..00000000 --- a/src/sdk/models/shared/userprofile.ts +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod/v3"; -import { safeParse } from "../../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -/** - * The audio accessibility mode (0 = Prefer non-accessibility audio, 1 = Prefer accessibility audio, 2 = Only show accessibility audio, 3 = Only show non-accessibility audio) - */ -export enum DefaultAudioAccessibility { - PreferNonAccessibility = 0, - PreferAccessibility = 1, - OnlyAccessibility = 2, - OnlyNonAccessibility = 3, -} - -/** - * The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) - */ -export enum AutoSelectSubtitle { - ManuallySelected = 0, - ShownWithForeignAudio = 1, - AlwaysEnabled = 2, -} - -/** - * The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only show non-SDH subtitles) - */ -export enum DefaultSubtitleAccessibility { - PreferNonSdh = 0, - PreferSdh = 1, - OnlySdh = 2, - OnlyNonSdh = 3, -} - -/** - * The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) - */ -export enum DefaultSubtitleForced { - PreferNonForced = 0, - PreferForced = 1, - OnlyForced = 2, - OnlyNonForced = 3, -} - -/** - * Whether or not media watched indicators are enabled (little orange dot on media) - */ -export enum WatchedIndicator { - None = 0, - MoviesAndTvShows = 1, - Movies = 2, - TvShows = 3, -} - -/** - * Whether or not the account has media reviews visibility enabled - */ -export enum MediaReviewsVisibility { - NoOne = 0, - CriticsOnly = 1, - PlexUsersOnly = 2, - PlexUsersAndCritics = 3, -} - -export type UserProfile = { - /** - * If the account has automatically select audio and subtitle tracks enabled - */ - autoSelectAudio?: boolean | undefined; - /** - * The preferred audio language for the account - */ - defaultAudioLanguage: string | null; - defaultAudioAccessibility?: DefaultAudioAccessibility | undefined; - /** - * The preferred audio languages for the account - */ - defaultAudioLanguages?: Array | null | undefined; - /** - * The preferred subtitle language for the account - */ - defaultSubtitleLanguage: string | null; - /** - * The preferred subtitle languages for the account - */ - defaultSubtitleLanguages?: Array | null | undefined; - autoSelectSubtitle?: AutoSelectSubtitle | undefined; - defaultSubtitleAccessibility?: DefaultSubtitleAccessibility | undefined; - defaultSubtitleForced?: DefaultSubtitleForced | undefined; - watchedIndicator?: WatchedIndicator | undefined; - mediaReviewsVisibility?: MediaReviewsVisibility | undefined; - /** - * The languages for media reviews visibility - */ - mediaReviewsLanguages?: Array | null | undefined; -}; - -/** @internal */ -export const DefaultAudioAccessibility$inboundSchema: z.ZodNativeEnum< - typeof DefaultAudioAccessibility -> = z.nativeEnum(DefaultAudioAccessibility); - -/** @internal */ -export const AutoSelectSubtitle$inboundSchema: z.ZodNativeEnum< - typeof AutoSelectSubtitle -> = z.nativeEnum(AutoSelectSubtitle); - -/** @internal */ -export const DefaultSubtitleAccessibility$inboundSchema: z.ZodNativeEnum< - typeof DefaultSubtitleAccessibility -> = z.nativeEnum(DefaultSubtitleAccessibility); - -/** @internal */ -export const DefaultSubtitleForced$inboundSchema: z.ZodNativeEnum< - typeof DefaultSubtitleForced -> = z.nativeEnum(DefaultSubtitleForced); - -/** @internal */ -export const WatchedIndicator$inboundSchema: z.ZodNativeEnum< - typeof WatchedIndicator -> = z.nativeEnum(WatchedIndicator); - -/** @internal */ -export const MediaReviewsVisibility$inboundSchema: z.ZodNativeEnum< - typeof MediaReviewsVisibility -> = z.nativeEnum(MediaReviewsVisibility); - -/** @internal */ -export const UserProfile$inboundSchema: z.ZodType< - UserProfile, - z.ZodTypeDef, - unknown -> = z.object({ - autoSelectAudio: z.boolean().default(true), - defaultAudioLanguage: z.nullable(z.string()), - defaultAudioAccessibility: DefaultAudioAccessibility$inboundSchema.default( - DefaultAudioAccessibility.PreferNonAccessibility, - ), - defaultAudioLanguages: z.nullable(z.array(z.string())).optional(), - defaultSubtitleLanguage: z.nullable(z.string()), - defaultSubtitleLanguages: z.nullable(z.array(z.string())).optional(), - autoSelectSubtitle: AutoSelectSubtitle$inboundSchema.default( - AutoSelectSubtitle.ManuallySelected, - ), - defaultSubtitleAccessibility: DefaultSubtitleAccessibility$inboundSchema - .default(DefaultSubtitleAccessibility.PreferNonSdh), - defaultSubtitleForced: DefaultSubtitleForced$inboundSchema.default( - DefaultSubtitleForced.PreferNonForced, - ), - watchedIndicator: WatchedIndicator$inboundSchema.default( - WatchedIndicator.None, - ), - mediaReviewsVisibility: MediaReviewsVisibility$inboundSchema.default( - MediaReviewsVisibility.NoOne, - ), - mediaReviewsLanguages: z.nullable(z.array(z.string())).optional(), -}); - -export function userProfileFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UserProfile$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UserProfile' from JSON`, - ); -} diff --git a/src/sdk/playlist.ts b/src/sdk/playlist.ts index 0f518602..936632b4 100644 --- a/src/sdk/playlist.ts +++ b/src/sdk/playlist.ts @@ -6,8 +6,9 @@ import { playlistGetPlaylist } from "../funcs/playlistGetPlaylist.js"; import { playlistGetPlaylistItems } from "../funcs/playlistGetPlaylistItems.js"; import { playlistListPlaylists } from "../funcs/playlistListPlaylists.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "./models/operations/index.js"; -import { unwrapAsync } from "./types/fp.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { unwrapAsync } from "../types/fp.js"; export class Playlist extends ClientSDK { /** @@ -37,7 +38,7 @@ export class Playlist extends ClientSDK { async getPlaylist( request: operations.GetPlaylistRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(playlistGetPlaylist( this, request, diff --git a/src/sdk/playqueue.ts b/src/sdk/playqueue.ts index b832d3a1..93bf2e17 100644 --- a/src/sdk/playqueue.ts +++ b/src/sdk/playqueue.ts @@ -12,8 +12,9 @@ import { playQueueResetPlayQueue } from "../funcs/playQueueResetPlayQueue.js"; import { playQueueShuffle } from "../funcs/playQueueShuffle.js"; import { playQueueUnshuffle } from "../funcs/playQueueUnshuffle.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "./models/operations/index.js"; -import { unwrapAsync } from "./types/fp.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { unwrapAsync } from "../types/fp.js"; export class PlayQueue extends ClientSDK { /** @@ -43,7 +44,7 @@ export class PlayQueue extends ClientSDK { async getPlayQueue( request: operations.GetPlayQueueRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(playQueueGetPlayQueue( this, request, @@ -60,7 +61,7 @@ export class PlayQueue extends ClientSDK { async addToPlayQueue( request: operations.AddToPlayQueueRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(playQueueAddToPlayQueue( this, request, @@ -77,7 +78,7 @@ export class PlayQueue extends ClientSDK { async clearPlayQueue( request: operations.ClearPlayQueueRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(playQueueClearPlayQueue( this, request, @@ -94,7 +95,7 @@ export class PlayQueue extends ClientSDK { async resetPlayQueue( request: operations.ResetPlayQueueRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(playQueueResetPlayQueue( this, request, @@ -111,7 +112,7 @@ export class PlayQueue extends ClientSDK { async shuffle( request: operations.ShuffleRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(playQueueShuffle( this, request, @@ -128,7 +129,7 @@ export class PlayQueue extends ClientSDK { async unshuffle( request: operations.UnshuffleRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(playQueueUnshuffle( this, request, @@ -145,7 +146,7 @@ export class PlayQueue extends ClientSDK { async deletePlayQueueItem( request: operations.DeletePlayQueueItemRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(playQueueDeletePlayQueueItem( this, request, @@ -162,7 +163,7 @@ export class PlayQueue extends ClientSDK { async movePlayQueueItem( request: operations.MovePlayQueueItemRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(playQueueMovePlayQueueItem( this, request, diff --git a/src/sdk/plex.ts b/src/sdk/plex.ts index 2b8f8dee..cbff97b8 100644 --- a/src/sdk/plex.ts +++ b/src/sdk/plex.ts @@ -4,8 +4,9 @@ import { plexGetServerResources } from "../funcs/plexGetServerResources.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "./models/operations/index.js"; -import { unwrapAsync } from "./types/fp.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { unwrapAsync } from "../types/fp.js"; export class Plex extends ClientSDK { /** @@ -17,7 +18,7 @@ export class Plex extends ClientSDK { async getServerResources( request: operations.GetServerResourcesRequest, options?: RequestOptions, - ): Promise { + ): Promise> { return unwrapAsync(plexGetServerResources( this, request, diff --git a/src/sdk/preferences.ts b/src/sdk/preferences.ts index f6230afb..018bf4a5 100644 --- a/src/sdk/preferences.ts +++ b/src/sdk/preferences.ts @@ -6,8 +6,9 @@ import { preferencesGetAllPreferences } from "../funcs/preferencesGetAllPreferen import { preferencesGetPreference } from "../funcs/preferencesGetPreference.js"; import { preferencesSetPreferences } from "../funcs/preferencesSetPreferences.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "./models/operations/index.js"; -import { unwrapAsync } from "./types/fp.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { unwrapAsync } from "../types/fp.js"; export class Preferences extends ClientSDK { /** @@ -18,7 +19,7 @@ export class Preferences extends ClientSDK { */ async getAllPreferences( options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(preferencesGetAllPreferences( this, options, @@ -34,7 +35,7 @@ export class Preferences extends ClientSDK { async setPreferences( request: operations.SetPreferencesRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(preferencesSetPreferences( this, request, @@ -51,7 +52,7 @@ export class Preferences extends ClientSDK { async getPreference( request: operations.GetPreferenceRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(preferencesGetPreference( this, request, diff --git a/src/sdk/provider.ts b/src/sdk/provider.ts index c8f3115a..6ed585c8 100644 --- a/src/sdk/provider.ts +++ b/src/sdk/provider.ts @@ -7,8 +7,8 @@ import { providerDeleteMediaProvider } from "../funcs/providerDeleteMediaProvide import { providerListProviders } from "../funcs/providerListProviders.js"; import { providerRefreshProviders } from "../funcs/providerRefreshProviders.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "./models/operations/index.js"; -import { unwrapAsync } from "./types/fp.js"; +import * as operations from "../models/operations/index.js"; +import { unwrapAsync } from "../types/fp.js"; export class Provider extends ClientSDK { /** @@ -35,7 +35,7 @@ export class Provider extends ClientSDK { async addProvider( request: operations.AddProviderRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(providerAddProvider( this, request, @@ -51,7 +51,7 @@ export class Provider extends ClientSDK { */ async refreshProviders( options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(providerRefreshProviders( this, options, @@ -67,7 +67,7 @@ export class Provider extends ClientSDK { async deleteMediaProvider( request: operations.DeleteMediaProviderRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(providerDeleteMediaProvider( this, request, diff --git a/src/sdk/rate.ts b/src/sdk/rate.ts index 3ab11e21..5c424363 100644 --- a/src/sdk/rate.ts +++ b/src/sdk/rate.ts @@ -4,8 +4,8 @@ import { rateSetRating } from "../funcs/rateSetRating.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "./models/operations/index.js"; -import { unwrapAsync } from "./types/fp.js"; +import * as operations from "../models/operations/index.js"; +import { unwrapAsync } from "../types/fp.js"; export class Rate extends ClientSDK { /** @@ -18,7 +18,7 @@ export class Rate extends ClientSDK { async setRating( request: operations.SetRatingRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(rateSetRating( this, request, diff --git a/src/sdk/search.ts b/src/sdk/search.ts index 29330674..54e894d5 100644 --- a/src/sdk/search.ts +++ b/src/sdk/search.ts @@ -5,8 +5,8 @@ import { searchSearchHubs } from "../funcs/searchSearchHubs.js"; import { searchVoiceSearchHubs } from "../funcs/searchVoiceSearchHubs.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "./models/operations/index.js"; -import { unwrapAsync } from "./types/fp.js"; +import * as operations from "../models/operations/index.js"; +import { unwrapAsync } from "../types/fp.js"; export class Search extends ClientSDK { /** diff --git a/src/sdk/status.ts b/src/sdk/status.ts index fcc1c5d3..4fdff067 100644 --- a/src/sdk/status.ts +++ b/src/sdk/status.ts @@ -9,8 +9,8 @@ import { statusListPlaybackHistory } from "../funcs/statusListPlaybackHistory.js import { statusListSessions } from "../funcs/statusListSessions.js"; import { statusTerminateSession } from "../funcs/statusTerminateSession.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "./models/operations/index.js"; -import { unwrapAsync } from "./types/fp.js"; +import * as operations from "../models/operations/index.js"; +import { unwrapAsync } from "../types/fp.js"; export class Status extends ClientSDK { /** @@ -70,7 +70,7 @@ export class Status extends ClientSDK { async terminateSession( request: operations.TerminateSessionRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(statusTerminateSession( this, request, diff --git a/src/sdk/subscriptions.ts b/src/sdk/subscriptions.ts index 51b01468..23adfb3e 100644 --- a/src/sdk/subscriptions.ts +++ b/src/sdk/subscriptions.ts @@ -13,8 +13,9 @@ import { subscriptionsGetTemplate } from "../funcs/subscriptionsGetTemplate.js"; import { subscriptionsProcessSubscriptions } from "../funcs/subscriptionsProcessSubscriptions.js"; import { subscriptionsReorderSubscription } from "../funcs/subscriptionsReorderSubscription.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "./models/operations/index.js"; -import { unwrapAsync } from "./types/fp.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { unwrapAsync } from "../types/fp.js"; export class Subscriptions extends ClientSDK { /** @@ -59,7 +60,7 @@ export class Subscriptions extends ClientSDK { */ async processSubscriptions( options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(subscriptionsProcessSubscriptions( this, options, @@ -108,7 +109,7 @@ export class Subscriptions extends ClientSDK { async cancelGrab( request: operations.CancelGrabRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(subscriptionsCancelGrab( this, request, @@ -125,7 +126,7 @@ export class Subscriptions extends ClientSDK { async deleteSubscription( request: operations.DeleteSubscriptionRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(subscriptionsDeleteSubscription( this, request, @@ -142,7 +143,7 @@ export class Subscriptions extends ClientSDK { async getSubscription( request: operations.GetSubscriptionRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(subscriptionsGetSubscription( this, request, @@ -159,7 +160,7 @@ export class Subscriptions extends ClientSDK { async editSubscriptionPreferences( request: operations.EditSubscriptionPreferencesRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(subscriptionsEditSubscriptionPreferences( this, request, @@ -176,7 +177,7 @@ export class Subscriptions extends ClientSDK { async reorderSubscription( request: operations.ReorderSubscriptionRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(subscriptionsReorderSubscription( this, request, diff --git a/src/sdk/timeline.ts b/src/sdk/timeline.ts index 1d91c363..a99c7618 100644 --- a/src/sdk/timeline.ts +++ b/src/sdk/timeline.ts @@ -6,8 +6,8 @@ import { timelineMarkPlayed } from "../funcs/timelineMarkPlayed.js"; import { timelineReport } from "../funcs/timelineReport.js"; import { timelineUnscrobble } from "../funcs/timelineUnscrobble.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "./models/operations/index.js"; -import { unwrapAsync } from "./types/fp.js"; +import * as operations from "../models/operations/index.js"; +import { unwrapAsync } from "../types/fp.js"; export class Timeline extends ClientSDK { /** @@ -20,7 +20,7 @@ export class Timeline extends ClientSDK { async markPlayed( request: operations.MarkPlayedRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(timelineMarkPlayed( this, request, @@ -55,7 +55,7 @@ export class Timeline extends ClientSDK { async unscrobble( request: operations.UnscrobbleRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(timelineUnscrobble( this, request, diff --git a/src/sdk/transcoder.ts b/src/sdk/transcoder.ts index da99fed9..e0586807 100644 --- a/src/sdk/transcoder.ts +++ b/src/sdk/transcoder.ts @@ -11,8 +11,9 @@ import { import { transcoderTranscodeSubtitles } from "../funcs/transcoderTranscodeSubtitles.js"; import { transcoderTriggerFallback } from "../funcs/transcoderTriggerFallback.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "./models/operations/index.js"; -import { unwrapAsync } from "./types/fp.js"; +import * as operations from "../models/operations/index.js"; +import * as shared from "../models/shared/index.js"; +import { unwrapAsync } from "../types/fp.js"; export { TranscodeImageAcceptEnum } from "../funcs/transcoderTranscodeImage.js"; @@ -45,7 +46,7 @@ export class Transcoder extends ClientSDK { async makeDecision( request: operations.MakeDecisionRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(transcoderMakeDecision( this, request, @@ -62,7 +63,7 @@ export class Transcoder extends ClientSDK { async triggerFallback( request: operations.TriggerFallbackRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(transcoderTriggerFallback( this, request, @@ -79,7 +80,7 @@ export class Transcoder extends ClientSDK { async transcodeSubtitles( request: operations.TranscodeSubtitlesRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(transcoderTranscodeSubtitles( this, request, @@ -96,7 +97,7 @@ export class Transcoder extends ClientSDK { async startTranscodeSession( request: operations.StartTranscodeSessionRequest, options?: RequestOptions, - ): Promise { + ): Promise> { return unwrapAsync(transcoderStartTranscodeSession( this, request, diff --git a/src/sdk/ultrablur.ts b/src/sdk/ultrablur.ts index 87709736..d8dc66e0 100644 --- a/src/sdk/ultrablur.ts +++ b/src/sdk/ultrablur.ts @@ -5,8 +5,8 @@ import { ultraBlurGetColors } from "../funcs/ultraBlurGetColors.js"; import { ultraBlurGetImage } from "../funcs/ultraBlurGetImage.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "./models/operations/index.js"; -import { unwrapAsync } from "./types/fp.js"; +import * as operations from "../models/operations/index.js"; +import { unwrapAsync } from "../types/fp.js"; export class UltraBlur extends ClientSDK { /** @@ -35,7 +35,7 @@ export class UltraBlur extends ClientSDK { async getImage( request: operations.GetImageRequest, options?: RequestOptions, - ): Promise { + ): Promise> { return unwrapAsync(ultraBlurGetImage( this, request, diff --git a/src/sdk/updater.ts b/src/sdk/updater.ts index 217c2d17..451314b2 100644 --- a/src/sdk/updater.ts +++ b/src/sdk/updater.ts @@ -6,8 +6,8 @@ import { updaterApplyUpdates } from "../funcs/updaterApplyUpdates.js"; import { updaterCheckUpdates } from "../funcs/updaterCheckUpdates.js"; import { updaterGetUpdatesStatus } from "../funcs/updaterGetUpdatesStatus.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "./models/operations/index.js"; -import { unwrapAsync } from "./types/fp.js"; +import * as operations from "../models/operations/index.js"; +import { unwrapAsync } from "../types/fp.js"; export class Updater extends ClientSDK { /** @@ -19,7 +19,7 @@ export class Updater extends ClientSDK { async applyUpdates( request: operations.ApplyUpdatesRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(updaterApplyUpdates( this, request, @@ -36,7 +36,7 @@ export class Updater extends ClientSDK { async checkUpdates( request: operations.CheckUpdatesRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(updaterCheckUpdates( this, request, diff --git a/src/sdk/users.ts b/src/sdk/users.ts index c76bfd77..b5e3353e 100644 --- a/src/sdk/users.ts +++ b/src/sdk/users.ts @@ -4,8 +4,8 @@ import { usersGetUsers } from "../funcs/usersGetUsers.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "./models/operations/index.js"; -import { unwrapAsync } from "./types/fp.js"; +import * as operations from "../models/operations/index.js"; +import { unwrapAsync } from "../types/fp.js"; export class Users extends ClientSDK { /** diff --git a/src/sdk/types/async.ts b/src/types/async.ts similarity index 100% rename from src/sdk/types/async.ts rename to src/types/async.ts diff --git a/src/sdk/types/blobs.ts b/src/types/blobs.ts similarity index 71% rename from src/sdk/types/blobs.ts rename to src/types/blobs.ts index cce2892d..babb51ee 100644 --- a/src/sdk/types/blobs.ts +++ b/src/types/blobs.ts @@ -2,14 +2,15 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; +import * as z from "zod/v4"; -export const blobLikeSchema: z.ZodType = z.custom< - Blob ->(isBlobLike, { - message: "expected a Blob, File or Blob-like object", - fatal: true, -}); +export const blobLikeSchema: z.ZodType = z.custom( + isBlobLike, + { + message: "expected a Blob, File or Blob-like object", + abort: true, + }, +); export function isBlobLike(val: unknown): val is Blob { if (val instanceof Blob) { diff --git a/src/sdk/types/constdatetime.ts b/src/types/constdatetime.ts similarity index 80% rename from src/sdk/types/constdatetime.ts rename to src/types/constdatetime.ts index fe62144e..2a21bec6 100644 --- a/src/sdk/types/constdatetime.ts +++ b/src/types/constdatetime.ts @@ -2,11 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; +import * as z from "zod/v4"; export function constDateTime( val: string, -): z.ZodType { +): z.ZodType { return z.custom((v) => { return ( typeof v === "string" && new Date(v).getTime() === new Date(val).getTime() diff --git a/src/types/defaultToZeroValue.ts b/src/types/defaultToZeroValue.ts new file mode 100644 index 00000000..c4cad53d --- /dev/null +++ b/src/types/defaultToZeroValue.ts @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { type Unrecognized, unrecognized } from "./unrecognized.js"; + +let globalCount = 0; +let refCount = 0; + +export function defaultToZeroValue(value: T): Unrecognized { + globalCount++; + return unrecognized(value); +} + +export function startCountingDefaultToZeroValue() { + refCount++; + const start = globalCount; + return { + /** + * Ends counting and returns the delta. + * @param delta - If provided, only this amount is added to the parent counter + * (used for nested unions where we only want to record the winning option's count). + * If not provided, records all counts since start(). + */ + end: (delta?: number) => { + const count = globalCount - start; + // Reset globalCount back to start, then add only the specified delta + globalCount = start + (delta ?? count); + if (--refCount === 0) globalCount = 0; + return count; + }, + }; +} diff --git a/src/sdk/types/enums.ts b/src/types/enums.ts similarity index 78% rename from src/sdk/types/enums.ts rename to src/types/enums.ts index aba0ffd2..12f862a1 100644 --- a/src/sdk/types/enums.ts +++ b/src/types/enums.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; +import * as z from "zod/v4"; import { Unrecognized, unrecognized } from "./unrecognized.js"; export type ClosedEnum>> = @@ -13,7 +13,7 @@ export type OpenEnum>> = export function inboundSchema>( enumObj: T, -): z.ZodType, z.ZodTypeDef, unknown> { +): z.ZodType, unknown> { const options = Object.values(enumObj); return z.union([ ...options.map(x => z.literal(x)), @@ -23,23 +23,23 @@ export function inboundSchema>( export function inboundSchemaInt>( enumObj: T, -): z.ZodType, z.ZodTypeDef, unknown> { +): z.ZodType, unknown> { // For numeric enums, Object.values returns both numbers and string keys const options = Object.values(enumObj).filter(v => typeof v === "number"); return z.union([ ...options.map(x => z.literal(x)), - z.number().int().transform(x => unrecognized(x)), + z.int().transform(x => unrecognized(x)), ] as any); } export function outboundSchema>( _: T, -): z.ZodType> { +): z.ZodType> { return z.string() as any; } export function outboundSchemaInt>( _: T, -): z.ZodType> { - return z.number().int() as any; +): z.ZodType> { + return z.int() as any; } diff --git a/src/sdk/types/fp.ts b/src/types/fp.ts similarity index 100% rename from src/sdk/types/fp.ts rename to src/types/fp.ts diff --git a/src/sdk/types/index.ts b/src/types/index.ts similarity index 85% rename from src/sdk/types/index.ts rename to src/types/index.ts index abf0b7ab..c7901b64 100644 --- a/src/sdk/types/index.ts +++ b/src/types/index.ts @@ -3,9 +3,11 @@ */ export { blobLikeSchema, isBlobLike } from "./blobs.js"; +export * from "./defaultToZeroValue.js"; export type { ClosedEnum, OpenEnum } from "./enums.js"; export type { Result } from "./fp.js"; export type { PageIterator, Paginator } from "./operations.js"; export { createPageIterator } from "./operations.js"; +export * from "./primitives.js"; export { RFCDate } from "./rfcdate.js"; export * from "./unrecognized.js"; diff --git a/src/sdk/types/operations.ts b/src/types/operations.ts similarity index 100% rename from src/sdk/types/operations.ts rename to src/types/operations.ts diff --git a/src/types/primitives.ts b/src/types/primitives.ts new file mode 100644 index 00000000..420d363e --- /dev/null +++ b/src/types/primitives.ts @@ -0,0 +1,149 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v4"; +import { defaultToZeroValue } from "./defaultToZeroValue.js"; +import { unrecognized } from "./unrecognized.js"; + +export function string(): z.ZodType { + return z.union([ + z.string(), + + // Null or undefined -> "" + zodDefaultToZeroValue(""), + + // Any other value -> String(x) + z.any().transform((x) => unrecognized(JSON.stringify(x))), + ]); +} + +export function boolean(): z.ZodType { + return z.union([ + z.boolean(), + + // String "true" (case insensitive) -> true, "false" -> false + z.string().transform((x, ctx) => { + const lower = x.toLowerCase(); + if (lower === "true") return unrecognized(true); + if (lower === "false") return unrecognized(false); + ctx.addIssue({ + input: x, + code: "invalid_type", + expected: "boolean", + received: "string", + }); + return z.NEVER; + }), + + zodDefaultToZeroValue(false), + ]); +} + +export function number(): z.ZodType { + return z.union([ + z.number(), + + // String -> Number + z.string().transform((x, ctx) => { + const num = Number(x); + if (isNaN(num)) { + ctx.addIssue({ + input: x, + code: "invalid_type", + expected: "number", + received: "string", + }); + return z.NEVER; + } + return unrecognized(num); + }), + + // Null or undefined -> 0 + zodDefaultToZeroValue(0), + ]); +} + +export function bigint(): z.ZodType { + return z.union([ + z.string().transform((x, ctx) => { + try { + return BigInt(x); + } catch (error) { + ctx.addIssue({ + input: x, + code: "invalid_type", + expected: "bigint", + received: "string", + }); + return z.NEVER; + } + }), + zodDefaultToZeroValue(0n), + ]); +} + +export function date(): z.ZodType { + return z.union([ + z.union([z.string(), zodDefaultToZeroValue(0)]).transform((x) => + new Date(x) + ).pipe(z.date()), + z.number().transform((x, ctx) => { + const date = new Date(x); + if (isNaN(date.getTime())) { + ctx.addIssue({ + input: x, + code: "invalid_type", + expected: "date", + received: "number", + }); + return z.NEVER; + } + return unrecognized(date); + }), + ]); +} + +export function literal( + value: T, +): z.ZodType { + return z.union([z.literal(value), zodDefaultToZeroValue(value)]); +} + +export function literalBigInt(value: T): z.ZodType { + return z.literal(String(value)).transform((x) => BigInt(x)) as any; +} + +export function optional(t: T) { + return z.union([ + z.undefined(), + + // Null -> undefined + z.null().transform(() => unrecognized(undefined)), + t, + ]); +} + +export function nullable(t: T) { + return z.union([ + z.null(), + + // Undefined -> null + z.undefined().transform(() => defaultToZeroValue(null)), + t, + ]); +} + +function zodDefaultToZeroValue(value: T): z.ZodType { + return z.any().transform((input, ctx) => { + if (input === undefined) return defaultToZeroValue(value); + if (input === null) return defaultToZeroValue(value); + ctx.addIssue({ + input: input, + code: "invalid_type", + expected: "undefined", + received: "unknown", + }); + return z.NEVER; + }); +} diff --git a/src/sdk/types/rfcdate.ts b/src/types/rfcdate.ts similarity index 100% rename from src/sdk/types/rfcdate.ts rename to src/types/rfcdate.ts diff --git a/src/types/smartUnion.ts b/src/types/smartUnion.ts new file mode 100644 index 00000000..1ccf4e0f --- /dev/null +++ b/src/types/smartUnion.ts @@ -0,0 +1,138 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +// Not needed if lax mode +import * as z from "zod/v4"; +import { startCountingDefaultToZeroValue } from "./defaultToZeroValue.js"; +import { RFCDate } from "./rfcdate.js"; +import { startCountingUnrecognized } from "./unrecognized.js"; + +interface Candidate { + data: unknown; + /** Total number of fields in the parsed data */ + fieldCount: number; + /** Number of fields which only matched due to lax parsing */ + inexactCount: number; + /** Number of fields which defaulted to zero values */ + zeroDefaultCount: number; +} + +/** + * Smart union parser that tries all schemas and returns the best match + * based on the number of populated fields. + */ +export function smartUnion< + Options extends readonly [z.ZodType, z.ZodType, ...z.ZodType[]], +>( + options: Options, +): z.ZodType, z.input> { + return z.unknown().transform((input, ctx) => { + const candidates: Candidate[] = []; + const errors: z.ZodIssue[][] = options.map(() => []); + + const parentUnrecognizedCtr = startCountingUnrecognized(); + const parentZeroDefaultCtr = startCountingDefaultToZeroValue(); + + // Filter out invalid options + for (const [i, option] of options.entries()) { + const unrecognizedCtr = startCountingUnrecognized(); + const zeroDefaultCtr = startCountingDefaultToZeroValue(); + const result = option.safeParse(input); + const inexactCount = unrecognizedCtr.end(); + const zeroDefaultCount = zeroDefaultCtr.end(); + if (result.success) { + candidates.push({ + data: result.data, + inexactCount, + zeroDefaultCount, + fieldCount: -1, // We'll count this later if needed + }); + continue; + } + errors[i]!.push(...result.error.issues); + } + + // No valid options + if (candidates.length === 0) { + parentUnrecognizedCtr.end(0); + parentZeroDefaultCtr.end(0); + ctx.addIssue({ input: input, code: "invalid_union", errors: errors }); + return z.NEVER; + } + + let best = candidates[0]!; + + // Find the best option + for (const candidate of candidates) { + // Minor optimization to avoid counting fields if there's only one candidate + if (candidates.length > 1) { + candidate.fieldCount = countFieldsRecursive(candidate.data); + } + best = better(candidate, best); + } + + // The cost of this union should be the cost of the best candidate not all the candidates + parentUnrecognizedCtr.end(best.inexactCount); + parentZeroDefaultCtr.end(best.zeroDefaultCount); + + return best.data; + }) as any; +} + +function better(a: Candidate, b: Candidate): Candidate { + const actualFieldCountA = a.fieldCount - a.zeroDefaultCount; + const actualFieldCountB = b.fieldCount - b.zeroDefaultCount; + if (actualFieldCountA !== actualFieldCountB) { + return actualFieldCountA > actualFieldCountB ? a : b; + } + return a.inexactCount < b.inexactCount ? a : b; +} + +/** + * Counts the number of fields in a parsed value recursively. + * @param `parsed` assumed to *not* contain cycles + * fieldCount: total number of fields found + * inexactCount: number of primitive values that are not unrecognized enum values + */ +function countFieldsRecursive(parsed: unknown): number { + let fieldCount = 0; + + const queue: unknown[] = [parsed]; + let index = 0; + + while (index < queue.length) { + const value = queue[index++]; + if (value === undefined) { + continue; + } + + // Check if it's a primitive value + const type = typeof value; + if ( + value === null + || type === "number" + || type === "string" + || type === "boolean" + || type === "bigint" + || value instanceof Date + || value instanceof RFCDate + ) { + fieldCount++; + continue; + } + + // Handle arrays + if (Array.isArray(value)) { + queue.push(...value); + continue; + } + + // Handle objects + if (type === "object") { + queue.push(...Object.values(value)); + } + } + + return fieldCount; +} diff --git a/src/sdk/types/streams.ts b/src/types/streams.ts similarity index 100% rename from src/sdk/types/streams.ts rename to src/types/streams.ts diff --git a/src/sdk/types/unrecognized.ts b/src/types/unrecognized.ts similarity index 100% rename from src/sdk/types/unrecognized.ts rename to src/types/unrecognized.ts diff --git a/tsconfig.tsbuildinfo b/tsconfig.tsbuildinfo index ab935d4d..a0c572f0 100644 --- a/tsconfig.tsbuildinfo +++ b/tsconfig.tsbuildinfo @@ -1 +1 @@ -{"fileNames":["./node_modules/typescript/lib/lib.es5.d.ts","./node_modules/typescript/lib/lib.es2015.d.ts","./node_modules/typescript/lib/lib.es2016.d.ts","./node_modules/typescript/lib/lib.es2017.d.ts","./node_modules/typescript/lib/lib.es2018.d.ts","./node_modules/typescript/lib/lib.es2019.d.ts","./node_modules/typescript/lib/lib.es2020.d.ts","./node_modules/typescript/lib/lib.es2021.d.ts","./node_modules/typescript/lib/lib.es2022.d.ts","./node_modules/typescript/lib/lib.dom.d.ts","./node_modules/typescript/lib/lib.dom.iterable.d.ts","./node_modules/typescript/lib/lib.es2015.core.d.ts","./node_modules/typescript/lib/lib.es2015.collection.d.ts","./node_modules/typescript/lib/lib.es2015.generator.d.ts","./node_modules/typescript/lib/lib.es2015.iterable.d.ts","./node_modules/typescript/lib/lib.es2015.promise.d.ts","./node_modules/typescript/lib/lib.es2015.proxy.d.ts","./node_modules/typescript/lib/lib.es2015.reflect.d.ts","./node_modules/typescript/lib/lib.es2015.symbol.d.ts","./node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","./node_modules/typescript/lib/lib.es2016.array.include.d.ts","./node_modules/typescript/lib/lib.es2016.intl.d.ts","./node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","./node_modules/typescript/lib/lib.es2017.date.d.ts","./node_modules/typescript/lib/lib.es2017.object.d.ts","./node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","./node_modules/typescript/lib/lib.es2017.string.d.ts","./node_modules/typescript/lib/lib.es2017.intl.d.ts","./node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","./node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","./node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","./node_modules/typescript/lib/lib.es2018.intl.d.ts","./node_modules/typescript/lib/lib.es2018.promise.d.ts","./node_modules/typescript/lib/lib.es2018.regexp.d.ts","./node_modules/typescript/lib/lib.es2019.array.d.ts","./node_modules/typescript/lib/lib.es2019.object.d.ts","./node_modules/typescript/lib/lib.es2019.string.d.ts","./node_modules/typescript/lib/lib.es2019.symbol.d.ts","./node_modules/typescript/lib/lib.es2019.intl.d.ts","./node_modules/typescript/lib/lib.es2020.bigint.d.ts","./node_modules/typescript/lib/lib.es2020.date.d.ts","./node_modules/typescript/lib/lib.es2020.promise.d.ts","./node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","./node_modules/typescript/lib/lib.es2020.string.d.ts","./node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","./node_modules/typescript/lib/lib.es2020.intl.d.ts","./node_modules/typescript/lib/lib.es2020.number.d.ts","./node_modules/typescript/lib/lib.es2021.promise.d.ts","./node_modules/typescript/lib/lib.es2021.string.d.ts","./node_modules/typescript/lib/lib.es2021.weakref.d.ts","./node_modules/typescript/lib/lib.es2021.intl.d.ts","./node_modules/typescript/lib/lib.es2022.array.d.ts","./node_modules/typescript/lib/lib.es2022.error.d.ts","./node_modules/typescript/lib/lib.es2022.intl.d.ts","./node_modules/typescript/lib/lib.es2022.object.d.ts","./node_modules/typescript/lib/lib.es2022.string.d.ts","./node_modules/typescript/lib/lib.es2022.regexp.d.ts","./node_modules/typescript/lib/lib.decorators.d.ts","./node_modules/typescript/lib/lib.decorators.legacy.d.ts","./src/lib/http.ts","./node_modules/zod/dist/types/v3/helpers/typeAliases.d.ts","./node_modules/zod/dist/types/v3/helpers/util.d.ts","./node_modules/zod/dist/types/v3/ZodError.d.ts","./node_modules/zod/dist/types/v3/locales/en.d.ts","./node_modules/zod/dist/types/v3/errors.d.ts","./node_modules/zod/dist/types/v3/helpers/parseUtil.d.ts","./node_modules/zod/dist/types/v3/helpers/enumUtil.d.ts","./node_modules/zod/dist/types/v3/helpers/errorUtil.d.ts","./node_modules/zod/dist/types/v3/helpers/partialUtil.d.ts","./node_modules/zod/dist/types/v3/standard-schema.d.ts","./node_modules/zod/dist/types/v3/types.d.ts","./node_modules/zod/dist/types/v3/external.d.ts","./node_modules/zod/dist/types/v3/index.d.ts","./node_modules/zod/dist/types/index.d.ts","./src/sdk/models/shared/accepts.ts","./src/sdk/models/shared/advancedsubtitles.ts","./src/sdk/models/shared/boolint.ts","./src/sdk/models/errors/sdkvalidationerror.ts","./src/sdk/types/fp.ts","./src/lib/schemas.ts","./src/sdk/models/shared/channel.ts","./src/sdk/models/shared/channelmapping.ts","./src/sdk/models/shared/composite.ts","./src/lib/primitives.ts","./src/sdk/models/shared/device.ts","./src/sdk/models/shared/directory.ts","./src/sdk/models/shared/dvrrequesthandlerslashgetresponses200.ts","./src/sdk/models/shared/filter.ts","./src/sdk/models/shared/getresponses200.ts","./src/sdk/models/shared/historyallgetresponses200.ts","./src/sdk/types/rfcdate.ts","./src/sdk/models/shared/image.ts","./src/sdk/models/shared/stream.ts","./src/sdk/models/shared/part.ts","./src/sdk/models/shared/media.ts","./src/sdk/models/shared/sort.ts","./src/sdk/models/shared/tag.ts","./src/sdk/models/shared/metadata.ts","./src/sdk/models/shared/hub.ts","./src/sdk/models/shared/items.ts","./src/sdk/models/shared/mediatypestring.ts","./src/sdk/models/shared/librarysection.ts","./src/sdk/models/shared/librarysections.ts","./src/sdk/models/shared/lineup.ts","./src/sdk/models/shared/locationparameter.ts","./src/sdk/models/shared/mediacontainer.ts","./src/sdk/models/shared/mediacontainerwithartwork.ts","./src/sdk/models/shared/mediacontainerwithdecision.ts","./src/sdk/models/shared/mediacontainerwithdevice.ts","./src/sdk/models/shared/mediacontainerwithdirectory.ts","./src/sdk/models/shared/mediacontainerwithhubs.ts","./src/sdk/models/shared/mediacontainerwithlineup.ts","./src/sdk/models/shared/mediacontainerwithmetadata.ts","./src/sdk/models/shared/mediacontainerwithnestedmetadata.ts","./src/sdk/models/shared/mediacontainerwithplaylistmetadata.ts","./src/sdk/models/shared/setting.ts","./src/sdk/models/shared/mediacontainerwithsettings.ts","./src/sdk/models/shared/mediagraboperation.ts","./src/sdk/models/shared/mediasubscription.ts","./src/sdk/models/shared/mediacontainerwithsubscription.ts","./src/sdk/models/shared/mediatype.ts","./src/sdk/models/shared/mediaquery.ts","./src/sdk/models/shared/player.ts","./src/sdk/models/shared/plexdevice.ts","./src/sdk/models/shared/postresponses200.ts","./src/sdk/models/shared/protocolparameter.ts","./src/sdk/models/shared/security.ts","./src/sdk/models/shared/session.ts","./src/sdk/models/shared/slashgetresponses200.ts","./src/sdk/models/shared/subtitles.ts","./src/sdk/models/shared/transcodesession.ts","./src/sdk/models/shared/transcodetype.ts","./src/sdk/models/shared/user.ts","./src/sdk/types/unrecognized.ts","./src/sdk/types/enums.ts","./src/sdk/models/shared/userprofile.ts","./src/sdk/models/shared/userplexaccount.ts","./src/sdk/models/shared/index.ts","./src/lib/logger.ts","./src/lib/retries.ts","./src/lib/url.ts","./src/lib/config.ts","./src/lib/security.ts","./src/hooks/types.ts","./src/hooks/registration.ts","./src/hooks/hooks.ts","./src/sdk/models/errors/httpclienterrors.ts","./src/lib/base64.ts","./src/lib/is-plain-object.ts","./src/lib/encodings.ts","./src/lib/sdks.ts","./src/core.ts","./src/lib/files.ts","./src/sdk/models/errors/plexapierror.ts","./src/sdk/models/errors/responsevalidationerror.ts","./src/sdk/models/errors/sdkerror.ts","./src/lib/matchers.ts","./src/sdk/models/operations/addcollectionitems.ts","./src/sdk/models/operations/adddevice.ts","./src/sdk/models/operations/adddevicetodvr.ts","./src/sdk/models/operations/adddownloadqueueitems.ts","./src/sdk/models/operations/addextras.ts","./src/sdk/models/operations/addlineup.ts","./src/sdk/models/operations/addplaylistitems.ts","./src/sdk/models/operations/addprovider.ts","./src/sdk/models/operations/addsection.ts","./src/sdk/models/operations/addsubtitles.ts","./src/sdk/models/operations/addtoplayqueue.ts","./src/sdk/models/operations/analyzemetadata.ts","./src/sdk/models/operations/applyupdates.ts","./src/sdk/models/operations/autocomplete.ts","./src/sdk/models/operations/cancelactivity.ts","./src/sdk/models/operations/cancelgrab.ts","./src/sdk/models/operations/cancelrefresh.ts","./src/sdk/models/operations/checkupdates.ts","./src/sdk/models/operations/cleanbundles.ts","./src/sdk/models/operations/clearplaylistitems.ts","./src/sdk/models/operations/clearplayqueue.ts","./src/sdk/models/operations/computechannelmap.ts","./src/sdk/models/operations/connectwebsocket.ts","./src/sdk/models/operations/createcollection.ts","./src/sdk/models/operations/createcustomhub.ts","./src/sdk/models/operations/createdownloadqueue.ts","./src/sdk/models/operations/createdvr.ts","./src/sdk/models/operations/createmarker.ts","./src/sdk/models/operations/createplaylist.ts","./src/sdk/models/operations/createplayqueue.ts","./src/sdk/models/operations/createsubscription.ts","./src/sdk/models/operations/deletecaches.ts","./src/sdk/models/operations/deletecollection.ts","./src/sdk/models/operations/deletecollectionitem.ts","./src/sdk/models/operations/deletecustomhub.ts","./src/sdk/models/operations/deletedvr.ts","./src/sdk/models/operations/deletehistory.ts","./src/sdk/models/operations/deleteindexes.ts","./src/sdk/models/operations/deleteintros.ts","./src/sdk/models/operations/deletelibrarysection.ts","./src/sdk/models/operations/deletelineup.ts","./src/sdk/models/operations/deletemarker.ts","./src/sdk/models/operations/deletemediaitem.ts","./src/sdk/models/operations/deletemediaprovider.ts","./src/sdk/models/operations/deletemetadataitem.ts","./src/sdk/models/operations/deleteplaylist.ts","./src/sdk/models/operations/deleteplaylistitem.ts","./src/sdk/models/operations/deleteplayqueueitem.ts","./src/sdk/models/operations/deletestream.ts","./src/sdk/models/operations/deletesubscription.ts","./src/sdk/models/operations/detectads.ts","./src/sdk/models/operations/detectcredits.ts","./src/sdk/models/operations/detectintros.ts","./src/sdk/models/operations/detectvoiceactivity.ts","./src/sdk/models/operations/discoverdevices.ts","./src/sdk/models/operations/editmarker.ts","./src/sdk/models/operations/editmetadataitem.ts","./src/sdk/models/operations/editsection.ts","./src/sdk/models/operations/editsubscriptionpreferences.ts","./src/sdk/models/operations/emptytrash.ts","./src/sdk/models/operations/enablepapertrail.ts","./src/sdk/models/operations/generatethumbs.ts","./src/sdk/models/operations/getalbums.ts","./src/sdk/models/operations/getallhubs.ts","./src/sdk/models/operations/getallitemleaves.ts","./src/sdk/models/operations/getalllanguages.ts","./src/sdk/models/operations/getallleaves.ts","./src/sdk/models/operations/getallpreferences.ts","./src/sdk/models/operations/getallsubscriptions.ts","./src/sdk/models/operations/getarts.ts","./src/sdk/models/operations/getaugmentationstatus.ts","./src/sdk/models/operations/getavailablegrabbers.ts","./src/sdk/models/operations/getavailablesorts.ts","./src/sdk/models/operations/getbackgroundtasks.ts","./src/sdk/models/operations/getcategories.ts","./src/sdk/models/operations/getchannels.ts","./src/sdk/models/operations/getchapterimage.ts","./src/sdk/models/operations/getcluster.ts","./src/sdk/models/operations/getcollectionimage.ts","./src/sdk/models/operations/getcollectionitems.ts","./src/sdk/models/operations/getcollections.ts","./src/sdk/models/operations/getcolors.ts","./src/sdk/models/operations/getcommon.ts","./src/sdk/models/operations/getcontinuewatching.ts","./src/sdk/models/operations/getcountries.ts","./src/sdk/models/operations/getcountrieslineups.ts","./src/sdk/models/operations/getcountryregions.ts","./src/sdk/models/operations/getdevicedetails.ts","./src/sdk/models/operations/getdeviceschannels.ts","./src/sdk/models/operations/getdownloadqueue.ts","./src/sdk/models/operations/getdownloadqueueitems.ts","./src/sdk/models/operations/getdownloadqueuemedia.ts","./src/sdk/models/operations/getdvr.ts","./src/sdk/models/operations/getextras.ts","./src/sdk/models/operations/getfile.ts","./src/sdk/models/operations/getfirstcharacters.ts","./src/sdk/models/operations/getfolders.ts","./src/sdk/models/operations/gethistoryitem.ts","./src/sdk/models/operations/gethubitems.ts","./src/sdk/models/operations/getidentity.ts","./src/sdk/models/operations/getimage.ts","./src/sdk/models/operations/getimagefrombif.ts","./src/sdk/models/operations/getitemartwork.ts","./src/sdk/models/operations/getitemdecision.ts","./src/sdk/models/operations/getitemtree.ts","./src/sdk/models/operations/getlibrarydetails.ts","./src/sdk/models/operations/getlibraryitems.ts","./src/sdk/models/operations/getlibrarymatches.ts","./src/sdk/models/operations/getlineup.ts","./src/sdk/models/operations/getlineupchannels.ts","./src/sdk/models/operations/getlivetvsession.ts","./src/sdk/models/operations/getmediapart.ts","./src/sdk/models/operations/getmetadatahubs.ts","./src/sdk/models/operations/getmetadataitem.ts","./src/sdk/models/operations/getnotifications.ts","./src/sdk/models/operations/getpartindex.ts","./src/sdk/models/operations/getperson.ts","./src/sdk/models/operations/getplaylist.ts","./src/sdk/models/operations/getplaylistgenerator.ts","./src/sdk/models/operations/getplaylistgeneratoritems.ts","./src/sdk/models/operations/getplaylistgenerators.ts","./src/sdk/models/operations/getplaylistitems.ts","./src/sdk/models/operations/getplayqueue.ts","./src/sdk/models/operations/getpostplayhubs.ts","./src/sdk/models/operations/getpreference.ts","./src/sdk/models/operations/getpromotedhubs.ts","./src/sdk/models/operations/getrandomartwork.ts","./src/sdk/models/operations/getrelatedhubs.ts","./src/sdk/models/operations/getrelateditems.ts","./src/sdk/models/operations/getscheduledrecordings.ts","./src/sdk/models/operations/getsectionfilters.ts","./src/sdk/models/operations/getsectionhubs.ts","./src/sdk/models/operations/getsectionimage.ts","./src/sdk/models/operations/getsectionpreferences.ts","./src/sdk/models/operations/getsections.ts","./src/sdk/models/operations/getsectionsprefs.ts","./src/sdk/models/operations/getserverinfo.ts","./src/sdk/models/operations/getserverresources.ts","./src/sdk/models/operations/getsessionplaylistindex.ts","./src/sdk/models/operations/getsessions.ts","./src/sdk/models/operations/getsessionsegment.ts","./src/sdk/models/operations/getsonicallysimilar.ts","./src/sdk/models/operations/getsonicpath.ts","./src/sdk/models/operations/getsourceconnectioninformation.ts","./src/sdk/models/operations/getstream.ts","./src/sdk/models/operations/getstreamlevels.ts","./src/sdk/models/operations/getstreamloudness.ts","./src/sdk/models/operations/getsubscription.ts","./src/sdk/models/operations/gettags.ts","./src/sdk/models/operations/gettasks.ts","./src/sdk/models/operations/gettemplate.ts","./src/sdk/models/operations/getthumb.ts","./src/sdk/models/operations/gettokendetails.ts","./src/sdk/models/operations/gettransienttoken.ts","./src/sdk/models/operations/getupdatesstatus.ts","./src/sdk/models/operations/getusers.ts","./src/sdk/models/operations/ingesttransientitem.ts","./src/sdk/models/operations/listactivities.ts","./src/sdk/models/operations/listcontent.ts","./src/sdk/models/operations/listdevices.ts","./src/sdk/models/operations/listdownloadqueueitems.ts","./src/sdk/models/operations/listdvrs.ts","./src/sdk/models/operations/listhubs.ts","./src/sdk/models/operations/listlineups.ts","./src/sdk/models/operations/listmatches.ts","./src/sdk/models/operations/listmoments.ts","./src/sdk/models/operations/listpersonmedia.ts","./src/sdk/models/operations/listplaybackhistory.ts","./src/sdk/models/operations/listplaylists.ts","./src/sdk/models/operations/listproviders.ts","./src/sdk/models/operations/listsessions.ts","./src/sdk/models/operations/listsimilar.ts","./src/sdk/models/operations/listsonicallysimilar.ts","./src/sdk/models/operations/listtopusers.ts","./src/sdk/models/operations/makedecision.ts","./src/sdk/models/operations/markplayed.ts","./src/sdk/models/operations/matchitem.ts","./src/sdk/models/operations/mergeitems.ts","./src/sdk/models/operations/modifydevice.ts","./src/sdk/models/operations/modifyplaylistgenerator.ts","./src/sdk/models/operations/movecollectionitem.ts","./src/sdk/models/operations/movehub.ts","./src/sdk/models/operations/moveplaylistitem.ts","./src/sdk/models/operations/moveplayqueueitem.ts","./src/sdk/models/operations/optimizedatabase.ts","./src/sdk/models/operations/postuserssignindata.ts","./src/sdk/models/operations/processsubscriptions.ts","./src/sdk/models/operations/refreshitemsmetadata.ts","./src/sdk/models/operations/refreshplaylist.ts","./src/sdk/models/operations/refreshproviders.ts","./src/sdk/models/operations/refreshsection.ts","./src/sdk/models/operations/refreshsectionsmetadata.ts","./src/sdk/models/operations/reloadguide.ts","./src/sdk/models/operations/removedevice.ts","./src/sdk/models/operations/removedevicefromdvr.ts","./src/sdk/models/operations/removedownloadqueueitems.ts","./src/sdk/models/operations/reordersubscription.ts","./src/sdk/models/operations/report.ts","./src/sdk/models/operations/resetplayqueue.ts","./src/sdk/models/operations/resetsectiondefaults.ts","./src/sdk/models/operations/restartprocessingdownloadqueueitems.ts","./src/sdk/models/operations/scan.ts","./src/sdk/models/operations/searchhubs.ts","./src/sdk/models/operations/setchannelmap.ts","./src/sdk/models/operations/setdevicepreferences.ts","./src/sdk/models/operations/setdvrpreferences.ts","./src/sdk/models/operations/setitemartwork.ts","./src/sdk/models/operations/setitempreferences.ts","./src/sdk/models/operations/setpreferences.ts","./src/sdk/models/operations/setrating.ts","./src/sdk/models/operations/setsectionpreferences.ts","./src/sdk/models/operations/setstreamoffset.ts","./src/sdk/models/operations/setstreamselection.ts","./src/sdk/models/operations/shuffle.ts","./src/sdk/models/operations/splititem.ts","./src/sdk/models/operations/startanalysis.ts","./src/sdk/models/operations/startbifgeneration.ts","./src/sdk/models/operations/starttask.ts","./src/sdk/models/operations/starttasks.ts","./src/sdk/models/operations/starttranscodesession.ts","./src/sdk/models/operations/stopallrefreshes.ts","./src/sdk/models/operations/stopdvrreload.ts","./src/sdk/models/operations/stopscan.ts","./src/sdk/models/operations/stoptask.ts","./src/sdk/models/operations/stoptasks.ts","./src/sdk/models/operations/terminatesession.ts","./src/sdk/models/operations/transcodeimage.ts","./src/sdk/models/operations/transcodesubtitles.ts","./src/sdk/models/operations/triggerfallback.ts","./src/sdk/models/operations/tunechannel.ts","./src/sdk/models/operations/unmatch.ts","./src/sdk/models/operations/unscrobble.ts","./src/sdk/models/operations/unshuffle.ts","./src/sdk/models/operations/updatehubvisibility.ts","./src/sdk/models/operations/updateitemartwork.ts","./src/sdk/models/operations/updateitems.ts","./src/sdk/models/operations/updateplaylist.ts","./src/sdk/models/operations/uploadplaylist.ts","./src/sdk/models/operations/voicesearchhubs.ts","./src/sdk/models/operations/writelog.ts","./src/sdk/models/operations/writemessage.ts","./src/sdk/models/operations/index.ts","./src/sdk/types/async.ts","./src/funcs/activitiesCancelActivity.ts","./src/funcs/activitiesListActivities.ts","./src/sdk/activities.ts","./src/sdk/models/errors/getserverresources.ts","./src/sdk/models/errors/gettokendetails.ts","./src/sdk/models/errors/getusers.ts","./src/sdk/models/errors/postuserssignindata.ts","./src/sdk/models/errors/index.ts","./src/funcs/authenticationGetTokenDetails.ts","./src/funcs/authenticationPostUsersSignInData.ts","./src/sdk/authentication.ts","./src/funcs/butlerGetTasks.ts","./src/funcs/butlerStartTask.ts","./src/funcs/butlerStartTasks.ts","./src/funcs/butlerStopTask.ts","./src/funcs/butlerStopTasks.ts","./src/sdk/butler.ts","./src/funcs/collectionsCreateCollection.ts","./src/sdk/collections.ts","./src/funcs/contentGetAlbums.ts","./src/funcs/contentGetAllLeaves.ts","./src/funcs/contentGetArts.ts","./src/funcs/contentGetCategories.ts","./src/funcs/contentGetCluster.ts","./src/funcs/contentGetCollectionImage.ts","./src/funcs/contentGetCollectionItems.ts","./src/funcs/contentGetFolders.ts","./src/funcs/contentGetMetadataItem.ts","./src/funcs/contentGetSonicallySimilar.ts","./src/funcs/contentGetSonicPath.ts","./src/funcs/contentListContent.ts","./src/funcs/contentListMoments.ts","./src/sdk/content.ts","./src/funcs/devicesAddDevice.ts","./src/funcs/devicesDiscoverDevices.ts","./src/funcs/devicesGetAvailableGrabbers.ts","./src/funcs/devicesGetDeviceDetails.ts","./src/funcs/devicesGetDevicesChannels.ts","./src/funcs/devicesGetThumb.ts","./src/funcs/devicesListDevices.ts","./src/funcs/devicesModifyDevice.ts","./src/funcs/devicesRemoveDevice.ts","./src/funcs/devicesScan.ts","./src/funcs/devicesSetChannelmap.ts","./src/funcs/devicesSetDevicePreferences.ts","./src/funcs/devicesStopScan.ts","./src/sdk/devices.ts","./src/funcs/downloadQueueAddDownloadQueueItems.ts","./src/funcs/downloadQueueCreateDownloadQueue.ts","./src/funcs/downloadQueueGetDownloadQueue.ts","./src/funcs/downloadQueueGetDownloadQueueItems.ts","./src/funcs/downloadQueueGetDownloadQueueMedia.ts","./src/funcs/downloadQueueGetItemDecision.ts","./src/funcs/downloadQueueListDownloadQueueItems.ts","./src/funcs/downloadQueueRemoveDownloadQueueItems.ts","./src/funcs/downloadQueueRestartProcessingDownloadQueueItems.ts","./src/sdk/downloadqueue.ts","./src/funcs/dvRsAddDeviceToDVR.ts","./src/funcs/dvRsAddLineup.ts","./src/funcs/dvRsCreateDVR.ts","./src/funcs/dvRsDeleteDVR.ts","./src/funcs/dvRsDeleteLineup.ts","./src/funcs/dvRsGetDVR.ts","./src/funcs/dvRsListDVRs.ts","./src/funcs/dvRsReloadGuide.ts","./src/funcs/dvRsRemoveDeviceFromDVR.ts","./src/funcs/dvRsSetDVRPreferences.ts","./src/funcs/dvRsStopDVRReload.ts","./src/funcs/dvRsTuneChannel.ts","./src/sdk/dvrs.ts","./src/funcs/epgComputeChannelMap.ts","./src/funcs/epgGetAllLanguages.ts","./src/funcs/epgGetChannels.ts","./src/funcs/epgGetCountries.ts","./src/funcs/epgGetCountriesLineups.ts","./src/funcs/epgGetCountryRegions.ts","./src/funcs/epgGetLineup.ts","./src/funcs/epgGetLineupChannels.ts","./src/funcs/epgListLineups.ts","./src/sdk/epg.ts","./src/funcs/eventsConnectWebSocket.ts","./src/funcs/eventsGetNotifications.ts","./src/sdk/events.ts","./src/funcs/generalGetIdentity.ts","./src/funcs/generalGetServerInfo.ts","./src/funcs/generalGetSourceConnectionInformation.ts","./src/funcs/generalGetTransientToken.ts","./src/sdk/general.ts","./src/funcs/hubsCreateCustomHub.ts","./src/funcs/hubsDeleteCustomHub.ts","./src/funcs/hubsGetAllHubs.ts","./src/funcs/hubsGetContinueWatching.ts","./src/funcs/hubsGetHubItems.ts","./src/funcs/hubsGetMetadataHubs.ts","./src/funcs/hubsGetPostplayHubs.ts","./src/funcs/hubsGetPromotedHubs.ts","./src/funcs/hubsGetRelatedHubs.ts","./src/funcs/hubsGetSectionHubs.ts","./src/funcs/hubsListHubs.ts","./src/funcs/hubsMoveHub.ts","./src/funcs/hubsResetSectionDefaults.ts","./src/funcs/hubsUpdateHubVisibility.ts","./src/sdk/hubs.ts","./src/funcs/libraryAddExtras.ts","./src/funcs/libraryAddSection.ts","./src/funcs/libraryAddSubtitles.ts","./src/funcs/libraryAnalyzeMetadata.ts","./src/funcs/libraryAutocomplete.ts","./src/funcs/libraryCancelRefresh.ts","./src/funcs/libraryCleanBundles.ts","./src/funcs/libraryCreateMarker.ts","./src/funcs/libraryDeleteCaches.ts","./src/funcs/libraryDeleteCollection.ts","./src/funcs/libraryDeleteIndexes.ts","./src/funcs/libraryDeleteIntros.ts","./src/funcs/libraryDeleteLibrarySection.ts","./src/funcs/libraryDeleteMarker.ts","./src/funcs/libraryDeleteMediaItem.ts","./src/funcs/libraryDeleteMetadataItem.ts","./src/funcs/libraryDeleteStream.ts","./src/funcs/libraryDetectAds.ts","./src/funcs/libraryDetectCredits.ts","./src/funcs/libraryDetectIntros.ts","./src/funcs/libraryDetectVoiceActivity.ts","./src/funcs/libraryEditMarker.ts","./src/funcs/libraryEditMetadataItem.ts","./src/funcs/libraryEditSection.ts","./src/funcs/libraryEmptyTrash.ts","./src/funcs/libraryGenerateThumbs.ts","./src/funcs/libraryGetAllItemLeaves.ts","./src/funcs/libraryGetAugmentationStatus.ts","./src/funcs/libraryGetAvailableSorts.ts","./src/funcs/libraryGetChapterImage.ts","./src/funcs/libraryGetCollections.ts","./src/funcs/libraryGetCommon.ts","./src/funcs/libraryGetExtras.ts","./src/funcs/libraryGetFile.ts","./src/funcs/libraryGetFirstCharacters.ts","./src/funcs/libraryGetImageFromBif.ts","./src/funcs/libraryGetItemArtwork.ts","./src/funcs/libraryGetItemTree.ts","./src/funcs/libraryGetLibraryDetails.ts","./src/funcs/libraryGetLibraryItems.ts","./src/funcs/libraryGetLibraryMatches.ts","./src/funcs/libraryGetMediaPart.ts","./src/funcs/libraryGetPartIndex.ts","./src/funcs/libraryGetPerson.ts","./src/funcs/libraryGetRandomArtwork.ts","./src/funcs/libraryGetRelatedItems.ts","./src/funcs/libraryGetSectionFilters.ts","./src/funcs/libraryGetSectionImage.ts","./src/funcs/libraryGetSectionPreferences.ts","./src/funcs/libraryGetSections.ts","./src/funcs/libraryGetSectionsPrefs.ts","./src/funcs/libraryGetStream.ts","./src/funcs/libraryGetStreamLevels.ts","./src/funcs/libraryGetStreamLoudness.ts","./src/funcs/libraryGetTags.ts","./src/funcs/libraryIngestTransientItem.ts","./src/funcs/libraryListMatches.ts","./src/funcs/libraryListPersonMedia.ts","./src/funcs/libraryListSimilar.ts","./src/funcs/libraryListSonicallySimilar.ts","./src/funcs/libraryListTopUsers.ts","./src/funcs/libraryMatchItem.ts","./src/funcs/libraryMergeItems.ts","./src/funcs/libraryOptimizeDatabase.ts","./src/funcs/libraryRefreshItemsMetadata.ts","./src/funcs/libraryRefreshSection.ts","./src/funcs/libraryRefreshSectionsMetadata.ts","./src/funcs/librarySetItemArtwork.ts","./src/funcs/librarySetItemPreferences.ts","./src/funcs/librarySetSectionPreferences.ts","./src/funcs/librarySetStreamOffset.ts","./src/funcs/librarySetStreamSelection.ts","./src/funcs/librarySplitItem.ts","./src/funcs/libraryStartAnalysis.ts","./src/funcs/libraryStartBifGeneration.ts","./src/funcs/libraryStopAllRefreshes.ts","./src/funcs/libraryUnmatch.ts","./src/funcs/libraryUpdateItemArtwork.ts","./src/funcs/libraryUpdateItems.ts","./src/sdk/library.ts","./src/funcs/libraryCollectionsAddCollectionItems.ts","./src/funcs/libraryCollectionsDeleteCollectionItem.ts","./src/funcs/libraryCollectionsMoveCollectionItem.ts","./src/sdk/librarycollections.ts","./src/funcs/libraryPlaylistsAddPlaylistItems.ts","./src/funcs/libraryPlaylistsClearPlaylistItems.ts","./src/funcs/libraryPlaylistsCreatePlaylist.ts","./src/funcs/libraryPlaylistsDeletePlaylist.ts","./src/funcs/libraryPlaylistsDeletePlaylistItem.ts","./src/funcs/libraryPlaylistsGetPlaylistGenerator.ts","./src/funcs/libraryPlaylistsGetPlaylistGeneratorItems.ts","./src/funcs/libraryPlaylistsGetPlaylistGenerators.ts","./src/funcs/libraryPlaylistsModifyPlaylistGenerator.ts","./src/funcs/libraryPlaylistsMovePlaylistItem.ts","./src/funcs/libraryPlaylistsRefreshPlaylist.ts","./src/funcs/libraryPlaylistsUpdatePlaylist.ts","./src/funcs/libraryPlaylistsUploadPlaylist.ts","./src/sdk/libraryplaylists.ts","./src/funcs/liveTVGetLiveTVSession.ts","./src/funcs/liveTVGetSessionPlaylistIndex.ts","./src/funcs/liveTVGetSessions.ts","./src/funcs/liveTVGetSessionSegment.ts","./src/sdk/livetv.ts","./src/funcs/logEnablePapertrail.ts","./src/funcs/logWriteLog.ts","./src/funcs/logWriteMessage.ts","./src/sdk/log.ts","./src/funcs/playlistGetPlaylist.ts","./src/funcs/playlistGetPlaylistItems.ts","./src/funcs/playlistListPlaylists.ts","./src/sdk/playlist.ts","./src/funcs/playQueueAddToPlayQueue.ts","./src/funcs/playQueueClearPlayQueue.ts","./src/funcs/playQueueCreatePlayQueue.ts","./src/funcs/playQueueDeletePlayQueueItem.ts","./src/funcs/playQueueGetPlayQueue.ts","./src/funcs/playQueueMovePlayQueueItem.ts","./src/funcs/playQueueResetPlayQueue.ts","./src/funcs/playQueueShuffle.ts","./src/funcs/playQueueUnshuffle.ts","./src/sdk/playqueue.ts","./src/funcs/plexGetServerResources.ts","./src/sdk/plex.ts","./src/funcs/preferencesGetAllPreferences.ts","./src/funcs/preferencesGetPreference.ts","./src/funcs/preferencesSetPreferences.ts","./src/sdk/preferences.ts","./src/funcs/providerAddProvider.ts","./src/funcs/providerDeleteMediaProvider.ts","./src/funcs/providerListProviders.ts","./src/funcs/providerRefreshProviders.ts","./src/sdk/provider.ts","./src/funcs/rateSetRating.ts","./src/sdk/rate.ts","./src/funcs/searchSearchHubs.ts","./src/funcs/searchVoiceSearchHubs.ts","./src/sdk/search.ts","./src/funcs/statusDeleteHistory.ts","./src/funcs/statusGetBackgroundTasks.ts","./src/funcs/statusGetHistoryItem.ts","./src/funcs/statusListPlaybackHistory.ts","./src/funcs/statusListSessions.ts","./src/funcs/statusTerminateSession.ts","./src/sdk/status.ts","./src/funcs/subscriptionsCancelGrab.ts","./src/funcs/subscriptionsCreateSubscription.ts","./src/funcs/subscriptionsDeleteSubscription.ts","./src/funcs/subscriptionsEditSubscriptionPreferences.ts","./src/funcs/subscriptionsGetAllSubscriptions.ts","./src/funcs/subscriptionsGetScheduledRecordings.ts","./src/funcs/subscriptionsGetSubscription.ts","./src/funcs/subscriptionsGetTemplate.ts","./src/funcs/subscriptionsProcessSubscriptions.ts","./src/funcs/subscriptionsReorderSubscription.ts","./src/sdk/subscriptions.ts","./src/funcs/timelineMarkPlayed.ts","./src/funcs/timelineReport.ts","./src/funcs/timelineUnscrobble.ts","./src/sdk/timeline.ts","./src/funcs/transcoderMakeDecision.ts","./src/funcs/transcoderStartTranscodeSession.ts","./src/funcs/transcoderTranscodeImage.ts","./src/funcs/transcoderTranscodeSubtitles.ts","./src/funcs/transcoderTriggerFallback.ts","./src/sdk/transcoder.ts","./src/funcs/ultraBlurGetColors.ts","./src/funcs/ultraBlurGetImage.ts","./src/sdk/ultrablur.ts","./src/funcs/updaterApplyUpdates.ts","./src/funcs/updaterCheckUpdates.ts","./src/funcs/updaterGetUpdatesStatus.ts","./src/sdk/updater.ts","./src/funcs/usersGetUsers.ts","./src/sdk/users.ts","./src/sdk/sdk.ts","./src/index.ts","./src/hooks/index.ts","./src/lib/dlv.ts","./src/sdk/index.ts","./src/sdk/types/blobs.ts","./src/sdk/types/constdatetime.ts","./src/sdk/types/operations.ts","./src/sdk/types/index.ts","./src/sdk/types/streams.ts","./node_modules/@types/estree/index.d.ts","./node_modules/@types/json-schema/index.d.ts"],"fileIdsList":[[73],[61,62,73],[63,64],[61,62,63,65,66,71],[62,63],[71],[72],[63],[61,62,63,66,67,68,69,70],[151],[78,79,80,84,141,143,147,150,151,152,154,155,157,399,400],[78,79,84,141,143,147,151,152,154,155,157,399,400],[78,79,80,84,141,143,147,150,151,152,154,155,157,310,399,400,408],[78,79,80,84,141,147,150,151,152,154,155,157,343,399,400,408],[74,78,79,80,84,141,143,147,151,152,154,155,157,399,400],[78,79,80,84,141,143,147,150,151,152,154,155,157,295,399,400,408],[78,79,80,84,141,143,147,150,151,152,154,155,157,313,399,400,408],[60,144,145],[144,146],[144],[60,140,142,143],[60,142,153,678],[74],[60,138,139,140,141],[148,149],[60,79,149,155,156],[60],[74,78,79],[60,79,139,140,142,143,144,146,147,148,150],[138],[79,151,399,401,402],[79,151,399,409,410],[79,151,399,412,413,414,415,416],[79,151,399,418],[79,151,399,420,421,422,423,424,425,426,427,428,429,430,431,432],[79,151,399,434,435,436,437,438,439,440,441,442,443,444,445,446],[79,151,399,448,449,450,451,452,453,454,455,456],[79,151,399,458,459,460,461,462,463,464,465,466,467,468,469],[79,151,399,471,472,473,474,475,476,477,478,479],[79,151,399,481,482],[79,151,399,484,485,486,487],[79,151,399,489,490,491,492,493,494,495,496,497,498,499,500,501,502],[678],[79,151,399,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582],[79,151,399,584,585,586],[79,151,399,588,589,590,591,592,593,594,595,596,597,598,599,600],[79,151,399,602,603,604,605],[79,151,399,607,608,609],[74,84,154,399],[78,147,154,155,156,404,405,406,407],[74,78,154],[154],[74,78,79,80,84,138],[74,78,79,80,84],[74,78,79,80,84,91,138],[158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398],[74,78,79,80,84,135,138],[74,78,79,80],[74,78,79,80,82,84],[74,78,79,80,84,85],[74,78,79,80,84,98],[75,76,77,81,82,83,85,86,87,88,89,90,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,136,137],[74,78,79,80,84,88,91,92,95,96,97],[74,78,79,80,84,101],[74,78,79,80,84,94],[74,78,79,80,84,88,91,92,96,97],[74,78,79,80,84,86],[74,78,79,80,84,99],[74,78,79,80,84,104],[74,78,79,80,84,88,91,92,95,96,97,100],[74,78,79,80,84,116],[74,78,79,80,84,119],[74,121],[74,78,79,80,84,116,118],[74,78,79,80,84,93],[74,78,79,80,135,136],[79,151,399,611,612,613],[79,151,399,615,616,617,618,619,620,621,622,623],[79,151,399,625],[79,151,399,627,628,629],[79,151,399,631,632,633,634],[79,151,399,636],[151,403,411,417,419,433,447,457,470,480,483,488,503,583,587,601,606,610,614,624,626,630,635,637,640,647,658,662,668,671,675,677],[79,151,399,638,639],[79,151,399,641,642,643,644,645,646],[79,151,399,648,649,650,651,652,653,654,655,656,657],[79,151,399,659,660,661],[79,151,399,663,664,665,666,667],[74,134],[79,91,134,135,683,685],[79],[79,151,399,669,670],[79,151,399,672,673,674],[79,151,399,676]],"fileInfos":[{"version":"69684132aeb9b5642cbcd9e22dff7818ff0ee1aa831728af0ecf97d3364d5546","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"092c2bfe125ce69dbb1223c85d68d4d2397d7d8411867b5cc03cec902c233763","affectsGlobalScope":true,"impliedFormat":1},{"version":"07f073f19d67f74d732b1adea08e1dc66b1b58d77cb5b43931dee3d798a2fd53","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"b5ce7a470bc3628408429040c4e3a53a27755022a32fd05e2cb694e7015386c7","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"7d4040171221b4d6225a59a74c5d091fa4ccbb95c5edb88601ce1f046cf81624","signature":"7748b5e81a4ae1ea5d8e89e879053cec4a29ffc29cbdcd1d3f6e742abddd323a","impliedFormat":1},{"version":"d3cfde44f8089768ebb08098c96d01ca260b88bccf238d55eee93f1c620ff5a5","impliedFormat":1},{"version":"293eadad9dead44c6fd1db6de552663c33f215c55a1bfa2802a1bceed88ff0ec","impliedFormat":1},{"version":"54f6ec6ea75acea6eb23635617252d249145edbc7bcd9d53f2d70280d2aef953","impliedFormat":1},{"version":"c25ce98cca43a3bfa885862044be0d59557be4ecd06989b2001a83dcf69620fd","impliedFormat":1},{"version":"8e71e53b02c152a38af6aec45e288cc65bede077b92b9b43b3cb54a37978bb33","impliedFormat":1},{"version":"754a9396b14ca3a4241591afb4edc644b293ccc8a3397f49be4dfd520c08acb3","impliedFormat":1},{"version":"f672c876c1a04a223cf2023b3d91e8a52bb1544c576b81bf64a8fec82be9969c","impliedFormat":1},{"version":"e4b03ddcf8563b1c0aee782a185286ed85a255ce8a30df8453aade2188bbc904","impliedFormat":1},{"version":"de2316e90fc6d379d83002f04ad9698bc1e5285b4d52779778f454dd12ce9f44","impliedFormat":1},{"version":"25b3f581e12ede11e5739f57a86e8668fbc0124f6649506def306cad2c59d262","impliedFormat":1},{"version":"2da997a01a6aa5c5c09de5d28f0f4407b597c5e1aecfd32f1815809c532650a2","impliedFormat":1},{"version":"5d26d2e47e2352def36f89a3e8bf8581da22b7f857e07ef3114cd52cf4813445","impliedFormat":1},{"version":"3db2efd285e7328d8014b54a7fce3f4861ebcdc655df40517092ed0050983617","impliedFormat":1},{"version":"d5d39a24c759df40480a4bfc0daffd364489702fdbcbdfc1711cde34f8739995","impliedFormat":1},{"version":"f0b0faa1124572012fe96d969dbe3420e6c8c4dcc07a823c7e7251377a451adb","signature":"8880831ad6a317ab7ffed3958a4c454a2a0e3f4f482019a119be0b6d74414703","impliedFormat":1},{"version":"9fa7efedaa6d25785a704d15d84eb3f98452df66df3e236e8ae5c3182d9735b6","signature":"c2ff684c281e0fb640ff9494edc2315f6cc30c256773416e25e8ba3b453d8617","impliedFormat":1},{"version":"f307eee7aa646a65456f94d5751705d93cfe12649af2410058b538ec41c35c68","signature":"2b4a02c120dbaa8119706fc2030bb00f3ab985987515e6637a05413cc8b753d2","impliedFormat":1},{"version":"397b7b2590803a6daa8f432891e40bc840d7ce353c9e0600adee12a0db07454c","signature":"512c1bfc76a43fbe8fcdd7a674663e1aee064292c5d81cd050bdb37716cbd8e6","impliedFormat":1},{"version":"86504e23a63d55878dd54b9b4b69c0bca3d907d7d47cb318abcf356516e72f7c","signature":"24294e95d086f5fddd2e79f58837d15822acb2a317daf9d4ada7bdf2259e0af2","impliedFormat":1},{"version":"f0ef28ecef1a9a37148a5c56c10ba490d9f8e9e66f517ee65acd5a012d7a27c9","signature":"3501431713a28061eff927c87f524ee1d20420e7610fb472eb3b2689d4a9ec05","impliedFormat":1},{"version":"d96bbfe3fa9701bdedcc30ece28ba0895be039b45c3929a8e5d2ad40e40e2d0f","signature":"b577360a26fa2a4837129a1b35d8521ac5b57972df6f52e985813baf1b47b823","impliedFormat":1},{"version":"60e70fd9b5fd21f13445928a632d0f7f30849fce0c4ca624b3e9efe8f11b83d8","signature":"099a5f7e9728f9f418a13ac04ae8d231a1745a6b77ba553c537c9b592b7c1097","impliedFormat":1},{"version":"a07fd941bceb5bf1ced916a07f485313b231521a65910f536eeb3066f7b54906","signature":"546c6a13b1917fa5072723bfd4dffcb480cffa9fce9d2e824862ded098689535","impliedFormat":1},{"version":"59baa6b0600894f8b7ff2a5b50e6ae026b714f06cca13b51406f37eae5a2288f","signature":"c923edcbb2702bea342f2a52a1e1ccfea2e7ab1246b3b32f96ba18f5b1cb0af4","impliedFormat":1},{"version":"d67ca7d29ee8f6572ad6ebcca2fd550e78eb8210cb2d10e797579b8f1437d7ad","signature":"8a61e21be8485d2b9b2652d745fcbf2166485cd6c6b40a5d90273dda86a4876d","impliedFormat":1},{"version":"4274eb800d7a524e6457eacd4b5bbbba90498afe139f7ee47c546a490bbb0ff7","signature":"8fa37dc97cb052b211330a9b59913693aacec221e7bef622c1d98ee5acfa44b9","impliedFormat":1},{"version":"109cd18731c89e59a1ac7e2a2ef04bcc42c789549076eb0671922c24d3a9434f","signature":"ec0bba9edbdc48d37521c0e67b7fd926db6c003431d25c388ffa5dccf872c6c8","impliedFormat":1},{"version":"fc64bc505e72ab1d51dbd170beb93c676848858b3d2a790d1ca84eda43b5fbb9","signature":"f863c64f63cd76f64af40633819baee359e2bebd2fe9f4c0ec50060926f644d6","impliedFormat":1},{"version":"abfb12199845c2ccae2e0288cfd7f265dba0e31deef022920fd5254b1543b56a","signature":"f7493c4ab78bf58502c5f6a30cc4076b08b64301bee7d42bfac124037cf4a4c9","impliedFormat":1},{"version":"7fbcf2f09d6d69c3739d7abf8a7d6e5c8f2ef4afae8ddf844b1fa2c82f0fd06a","signature":"29cb22e7c11558414c27c1d130396967798b6e3cbe21ae9f1e3ad3183bdd1eab","impliedFormat":1},{"version":"66ac7f0b04b446564190f7b177c1bf1362459f596308a4664f2d6bdc685b4c0c","signature":"df95d1def9641a949d1b863875ac231727a29b213c9c711ef44a5ff53990aeb3","impliedFormat":1},{"version":"f78365175a56119ca8ebc707f38e4899b237072dea70661ffafa9b4a3860387a","signature":"ac29635a0252f733f7edd1936e387e3120ae647ac5748683a8e51ce127626fb7","impliedFormat":1},{"version":"eba716ca211e61b473badef49a06ee15b7c81b1eba2bb3e0aa01e1e12d5411ad","signature":"38b80437a7cb4d8c6f1fc0e3ea8d4c6cfe719699de45dec29937959d2aa9a548","impliedFormat":1},{"version":"9a6a1f28f9fcf514eaa7e7251623fb1671a3f00209c00cccf6cd63d6919a3e43","signature":"49ea3e19671b55d4946fd7b3799efb556af98b1a0b9c82fa33cb1de3a5fc6252","impliedFormat":1},{"version":"80e2167470ba522ceee9ba38d3d3fbccc1e8ae9f7c9189c0ce13013ee89bfd32","signature":"d8aba4f156464108d4e85dbbc0adc935add6beb0c001623bacf1537a98c370cc","impliedFormat":1},{"version":"cfb9ab18d0a7a54bd56189750ec2e9e93ae338900ee7b5754e3981f5f54cd18b","signature":"b499b9ab942d5ce1a9c89572787e2948f281fabc32f248af68e93b2c5b593862","impliedFormat":1},{"version":"36ece0463cde8edcb6a0a4d4552da3dc6777551e30a8b347fe6d5ac78cf79302","signature":"8a1429b6ad71fd933695fbffeb48106d774f614dd801ab17a25b5cb3823e8872","impliedFormat":1},{"version":"18723aa45221eb36b54ed4f2fb000ebc03310ecdeb7104c20098a82d62a3c74e","signature":"ac1804ebb06b80a6228c50ac6f8cd9ca6c44e475773bdc83b710652993f351ce","impliedFormat":1},{"version":"4fa1d6643cf5f14b0cf01ec24b318379c9ba665b8398fa5b0a75c789f3027ff2","signature":"3d7f058053c7c4f852cb9e1546e3ca1e2998128003969f7c4799657a376edc3d","impliedFormat":1},{"version":"f04a92807ea7a47a4cbc31a97f92c793987138cc6dc244a3a7ef294380dfa6c4","signature":"7a5978461949c3adfe2d526792966a1d08c1d6aa560dd05bf93528f0aea7e1a7","impliedFormat":1},{"version":"aa905f60848b6a5b454f63000c2e1c059d34ab268ba4f29eeea87a799b8ff9b1","signature":"c83b55d5a0d8f1131802102bf3e5164865b4ccc1dcc36f3239b57e1559ee297e","impliedFormat":1},{"version":"fd03c85707f87fc1bdf35bb8aa70745a65fee0ddbf4f783d1e17334a19bd6a03","signature":"002af280e8792354a546de5d0050c4632e30c360b6e22cbaf16c8c5546997fe4","impliedFormat":1},{"version":"7bbe7f087c2dcb844b1009371c69ac3e58a43fd818040476a1cef7b2e5432143","signature":"dea2f618a0250cc24f833cbca5a8d1ced322d6c27268a048f76eb03ffa22e8b5","impliedFormat":1},{"version":"a47a3a395c01a52989a2f76fdd874b397de49cad0255f22c7d04d6f826936ae4","signature":"4db7d2732b9ef2d14e63d0d90c5b86a9c269b1e03318c13997f17c42368b35db","impliedFormat":1},{"version":"7284ac3f5995f1c4fe060a27057d15c8fb9e559765c4b743e68042dbf5bb0602","signature":"f2d22498a2a95c1f6302fa5c09d996f71ee802759ebcb7f48f7239fbae25fbe5","impliedFormat":1},{"version":"6053a5111c1bd5dd203bfeed0acdfe309da6aafad1981169a6d3c9542a841b68","signature":"67461a5e3f66aa612dbdc3a07886ee70593b8f8cda48fd56f003f8693ffa0d53","impliedFormat":1},{"version":"9ff24f2100cafbb265432a140605cc524506ce6b2a30bb4cda9e02f6d10b3e1c","signature":"3c376a4bfbfdf63f223840ff7522bda29a5ad86116c50997b732614002037275","impliedFormat":1},{"version":"8b91059a43ca4846c956268a02d2571c87770b72a488fa4baacfe3341ca0adb1","signature":"1921799ae2b8cc7a5c9ae79712cf1f903c76a6d645936ad46ec9feb781967682","impliedFormat":1},{"version":"cc872e11ca155f4b56c8c573fed5f6b9b9b3eef4b906280029d8d790c731767f","signature":"ec488f61f6b313513b3960ef94ba3711ed7ed426e064786ea2d5174e21bc5c75","impliedFormat":1},{"version":"4af6966580d22366dc7c3513cba19f4a725388925c8bf542d73304f56d09c77e","signature":"d959b6075c44763cd56bc98cd9466027a797b628abdec52e40fef4f3453e2909","impliedFormat":1},{"version":"7857f030bf4730a670451584f35b56ada30d93efc18b0f9cefba5258b54e836a","signature":"a44261e67929aaacb4767ef107b3be4f505e356f4e7a4c4bd23a9c66162f2d88","impliedFormat":1},{"version":"289d2cbc927a4abb3c4a0b6f756e3122cdb061d0bfe54a6ad613b3174338097a","signature":"e054fd427242b147b6c6c1aae8a05c1a343dad96d727a41bd0b80336465fd929","impliedFormat":1},{"version":"dd95ea4bebcfad33c0a63f33b3fc0f3253ec9fd45da93f5331c9d4b9a60713c3","signature":"114a501e6fc284e94279fd8262884f57128144b9370e7cb8ac9ad1e74f3f1a0a","impliedFormat":1},{"version":"83891cfb86a7015673e7ffc7ed09040d0ae58bb4c5216b51aa98e9c86c553039","signature":"aaf03ad4207450a75e5871d78758edf5800b7e51d2b7dc1e62eadd3bfa4b9698","impliedFormat":1},{"version":"366904c3581e7aa75d5496cf36305f4b6b86df6e2e266e9617da09372e143de0","signature":"85932b666cc0b739e8dd4a641403ec4a5ffab2ae121d86e3659848ae3fa21101","impliedFormat":1},{"version":"87666c392385a45e24bb62e048693755cf9d1d89705ab2281175f57b3c527371","signature":"ca62c7370e3189e5effd0ba3444f4e0ef69882f8fe0f7cc9bf408fa6e7be0b8b","impliedFormat":1},{"version":"ee7c8facce2308545c85a06190a06e2e095bd327c3f2cf41b9049b1a3e28a392","signature":"6c20c0d32e331a97e947b73d247d1aa130b076d0341dd4110dd8333f5e425a33","impliedFormat":1},{"version":"fa995a9bd6a288c4b64948f2ce43635e0f8731f3f25f0ee41e687f0ab5cb785c","signature":"e0b8a052d6e304a1cf37140100b99c06a38f9e85fb0e29e18d30f0249d6c34b7","impliedFormat":1},{"version":"69931d85ffcf74bf9583d1556cd164aa22ab2650a0b4c1e3a4ad3f51c5d3de1d","signature":"633732030c6c530f4ff69088018cb57ff6baf187f6460c522f613374e2729b5c","impliedFormat":1},{"version":"3fa4d7450bf9c3d4c4ea9a00a489752c850da77d95511d730aedcc36fc80a2f2","signature":"59723be6ff6f6887bcfe79bd215fb00aa5571f63d77782137c85cb17549e69cf","impliedFormat":1},{"version":"ddac572c925f34d0d2ff87d6195e6a270b82f248d5be3c306e5b696ccaee607f","signature":"916955a06d7e9cc894d6d3b265abad2520430a37c1a2f4449324fae188c92b31","impliedFormat":1},{"version":"1d4ce87f838983c6f6fd3a65c89895f8f0106ab521731133b9957ea1104b6d79","signature":"7b7b9520e46f440ca0fef09acd9a757e7df33c80408b32d3014fad9fda4fd69c","impliedFormat":1},{"version":"47056be6e2bd1f6756643408d69dfae26cec57c9750a0009aeae475b9d302aa4","signature":"4de315b437ea8714ae78ac895fae55a9c4b0750a78a1af69206212edbc09aa9b","impliedFormat":1},{"version":"987ed01a8b7da0eb3b9794d47251b54bca46b890839944a433fc093086f6d9bb","signature":"02d0b9a09b703a6e7284275c538e2f25ee6aac3298c2dd28415a2b045d27b8dc","impliedFormat":1},{"version":"f1aaa4a0e420b87b8fc99c95a18668d39429a509fa0fa8fc600ae51fe7452b8e","signature":"0a55e711e4bc2e3fb2f60e168500157ea7b376babd0c2a3345cf6325ae8cee68","impliedFormat":1},{"version":"daefc1cc519710e97a1a649ddbcb9960def7ad9fb6c9989b70dd91bbb05e9b01","signature":"3a39abb8a448deafe266e8cbd8d068da4bafc10b946827e2124a56fe5f14176f","impliedFormat":1},{"version":"f6c9e050b22728c724b703e20d3b2008c3497ca368296efcaf39251f2525ac9c","signature":"95cdb44cea16260d83138571c890ca3e13ca737251ec21171444938f8dd62146","impliedFormat":1},{"version":"8adcedb88729994d1be152f5db912900b393169383ba00b9302beb11809b3c70","signature":"fbac0cd8b47b87e4e36264d9c9640749398c282cf25e9e58f54c9853cb1c201c","impliedFormat":1},{"version":"0550a267a92b3d6996a02f377cb7b995f6a65941b910c34a6ab5fa9f3977d2ff","signature":"a5003f75ef138f031b63984bc7ee59f7d7a3a9a70349d9898c685eb2891d053d","impliedFormat":1},{"version":"7b11b5d1acbb09137f3559867f8420fa88691ceb8b4f2ffca80e82b814e585ab","signature":"1d8fc1dd276b9a604d4fbbca6fbb15162d2ec09a17467e5454a716c64e3accf8","impliedFormat":1},{"version":"3c1287b5d757ee81741828d97a28b0f25fc1b8e8262fddcf2e647b8656517879","signature":"6f636617e3c9fe4323e3854006c6c3d01d880d65f951490ba0a01bc521abd30a","impliedFormat":1},{"version":"587ab67e3b20355e08b28824ec70680816aecbbe44b238101b093f25fb3e6446","signature":"8fd06aca0aef6b307662586a44591b3672072d85765c7f21789c856dff3e01f5","impliedFormat":1},{"version":"ad8e371b12ef4d15de5025128cace7c610c67d059c8e1ac05b5d4abf7fb0985f","signature":"f0dace6e2a327ccc78b6e39809e3689449fa324233c3bbb71c1beaa33b70b80b","impliedFormat":1},{"version":"29ab6d4d940aa67837da835a55451ee0edb24d3a9932f6c93835be4f1da27871","signature":"584d1df6d3ce7081c9287a49b2306bb0d725d3886ff0fe257d4bde6cd6b9e6c8","impliedFormat":1},{"version":"9168e8639eba63a806de942915678df36928e73da9680681cdcb57341dcf7403","signature":"fca86a4c931a81470e424a67a43345eccd6c88a01a4b0e2abe7c51ab0f8d1671","impliedFormat":1},{"version":"0cc77f954066a7cdabc0ec5bd626b97732c8a0fa6593d749b5e1296e098f7b2b","signature":"6ecc1474630b48e8594329d26018c58c9d7d88307ab59323638f32df117a4213","impliedFormat":1},{"version":"82ec64549099a993eed62df27fd56122cd1e99f061b530bea61ded7f01081b31","signature":"0e4cef759d7ac8ce0f8e7771ef5a5e9b30bd38d2f43c3f63c2308c60028329b9","impliedFormat":1},{"version":"8ad244eb261b6d7820fdafb517899bf7623088b842e9661657a99ea9d3680c3e","signature":"b09770480dc7094c46daa3d44af6291f90c595b781894bf3ba7fe596c8787e9f","impliedFormat":1},{"version":"c0146e6f59d1156f543ece1f49bbc929884268b7a65872bb9a9f84881e1bdac3","signature":"12f8d4f27ee799ccf99ede024c87fa05a5082628e5eaca169ff8c3a4a410f76f","impliedFormat":1},{"version":"79296a51fdebb9cfe63296ace1d3ab915817d4833a5ec6e224afe6df9ebc1234","signature":"a824859468126eeefbc4df716a1b889f7221af8347c640bdc864cab776fc331f","impliedFormat":1},{"version":"fc6f268e706c6520be093fd6d7e4a4395a96b5dc723d6687c8686154f02595bb","signature":"82432f71846d3117b09e8c099578770069e9bf1f260e5f92760f5763886f7414","impliedFormat":1},{"version":"4048c71d4391a730b5b314540b709c04120ebda10b54937dbe48955f32df079a","signature":"3982eda40ca38668bd574c02244cca25bb8fcb221c290d68ad858cff64c140dc","impliedFormat":1},{"version":"21dd1e7413d098307757aa7a77bf4c2d8a12c32ad45b62168508e1aca9db37db","signature":"37079cff78fc2293e278480ad4825e14639754761f65f9041fa9f99d043a0882","impliedFormat":1},{"version":"fcce700ea57e0d5bd79dedb75050352e6ff1b00e9a77b58e9eb11450c5984146","signature":"501e498352b01df17994bcda386d0b2f30bff3ff0bfa61e180313178404154d8","impliedFormat":1},{"version":"135e216bbcafc10cab779ca6efb81b6e5e187c925107cf8720b7874e69848d12","signature":"15942eb3e543360c3893a898ff7b14a61773e31884e53b47ca6ffeaa4dfb92d5","impliedFormat":1},{"version":"05d1c20bd62d65c9d6fa9ee03fc55bc87123175327165b4c179cfa0a9f894f1a","signature":"24d77fb79a50a14d95b7670275714b1f08e2f60fac3bd62f8498ee224ce52359","impliedFormat":1},{"version":"96b418a8dcd6a5f181c90a435855eafe3e346d7ebd18b8d08149d9d0408caa82","signature":"d0b8f49339483e126e3d9c798e2afdbd2354633dea017d1da43ad71c504c3628","impliedFormat":1},{"version":"7ca87995ebcdcae79b4a44c6748c529676ef675ea2d08295e8ac0a4baab3114d","signature":"c4c425750af59623b74952845b8c0db9233b9b93c9b615b1e3171ab8918f9e86","impliedFormat":1},{"version":"6c6c6c25a40a9edcd06ae0cf8e47a14726dbc3c5ec51c41dddfe7d3728314012","signature":"f2ed2ad0d0ff2e8a3fb29206f0be5dd9efff09963993c710adb697dcb5f36784","impliedFormat":1},{"version":"b4d248ae51b961b7eccb9fe6e778a362b4d24e25927810015569904dfd4b7aa5","signature":"62ff2132c1ce292763711aaccfe181697472d740d964894593fc7ad63cabbfdd","impliedFormat":1},{"version":"193a73a85ca1462cadac967c1437adcb5f46a3a6983f02c395195a0225d70fc3","signature":"2222503093f109ae624013ba4e9b797bc14dbd45b5906110c8707301d6bebb78","impliedFormat":1},{"version":"dc5f6d50091bb91edac3653e3d014bf3180ca9bb0f9d825f154cc4adcc45e98a","signature":"e193b920407ceb7e84805f303d1c549ebfe17ccac06cc5514c08eb4cb9f9f973","impliedFormat":1},{"version":"5f3c7019b4085d32e728b5ffccffac2649d0981d5397b805b20764b9be7421fe","signature":"1f2494189707f9cd4a6415bae634addec32ace3f85248ed9c2181e4320b1bfe9","impliedFormat":1},{"version":"b9c7ef02600af260c049896a75c8874b784cc329bc2ea862e0fca8da5673fe02","signature":"d740fdfcdb66d397d63c4fedb43fe3e6f86c48265d7cf1af3b1884069bc66a7f","impliedFormat":1},{"version":"f8c9b57f19b804af82a7d547249b8327c16985937d8dc397b4a1821ae7a8d4c4","signature":"373b7bef7100cf91c9c7fc5ce639966c2d3521eb14b5f8de093b5ee18336e20c","impliedFormat":1},{"version":"79cc69bf5d4393b9ef182c820bbec978a600bee8a3895b0f6ad24c6fbb640d2e","signature":"5be7964616985eb2fbc5fed25cff4efcf6e4db543f1f04b5cc4157130e35655d","impliedFormat":1},{"version":"35913e9fddd12c64caaf385ee0bd092848b3a84830b5dbc1ec89d9ceb167c63a","signature":"e5ec01f2693782716c2835987f7c395eece28c293c2a550ef7315279a3d46052","impliedFormat":1},{"version":"b0af1e63fdb231853fbe60c91db7ac38070cf47d29d6819eb594f85703154a1d","signature":"6bf06478cdcff84587457c743fcd08b4ae6cf26099efa3c5276bdf579f86e457","impliedFormat":1},{"version":"f7a1d87a22c743d7c48530eb6b7e15df3f784216a2c2110946f66594c4152e1c","signature":"a78025cb0d48a4ec587bf1506c1d82742942dd387cdec46478dd53a1a2fe7a12","impliedFormat":1},{"version":"f21c2759505f454952a4767c6b499bc55e5a51019f86f2e1d3c2a54424c80dcb","signature":"0de3e4ff6b97e0f7bcdaa23e0dfc0b76acda06ff9fdd43b58c36f4e6790179c8","impliedFormat":1},{"version":"0bafece1fab1760043288797a5ff0bdc6920d8c7dd4fcd65ca89e20839a74f42","signature":"bc61305a755ba5d1b9d3498170e2c9b372c8e2c48817cb44f121a02d3c2e3a99","impliedFormat":1},{"version":"63ffbf7a82fce9265d53964526823beeafc3d3f295904326a1b1d08ee78c780d","signature":"0a50792bc31916ec3afbd4597831eb1729f2ced0c1e83dccd80f089f42635159","impliedFormat":1},{"version":"6ef4e66c471065de501876a15df554a353c7d2a2e29bae596effcef34bb6268f","signature":"0667d0a7a1d26e4041997eb09cfe459987c8f287adb98f265a9bd0712c2aa430","impliedFormat":1},{"version":"d25aa0408bfc2283dd347a2b21c023dfd4fab5ad4211d8282b66289c48e5659f","signature":"0dfa71c09681d8479c5b8f03dd87bae326dfc7c8d83629fdb3ed75d0126132a3","impliedFormat":1},{"version":"147003c63e378b1b90d5a86bad581b406461c20ddaac8a275687cc51aa229c14","signature":"d09f55e65775bbb95bca7f5746268373841c63be0c924d2a31f658da520b9bcd","impliedFormat":1},{"version":"e7e9bca42937c2ed79829cfd55f877d02d7c4a4bdd10b01532f1a5fb46f75bc5","signature":"01fdcc2c224c173e26341962cf9d1da54c22193d4326ea078c8d44314c3cf8ac","impliedFormat":1},{"version":"e50fac12c9fb04266c97ef8bcedd40cd9dc3882d5dd74686f0b4333463e4c005","signature":"121f82e40d6e11422cda0c41110df1fcfae68335b653445df13ab41cfb4c92ee","impliedFormat":1},{"version":"cbc88083ba8474618c0d80352fdfb44bbd300b441be8642095c117dd47ba9850","signature":"b12e9fdad2f1328b5e9dbdfe383b1ae6a176a2d9d0557d21482c1e1ee167dc91","impliedFormat":1},{"version":"7d8878a173c6c91564ba4dac3f4319d8bd2b7315d89ea6ee632693e5cb8eb507","signature":"e72424bbaada579d7d6cdc32eec021ca461d12f4833f54db2a11269dc0d206f1","impliedFormat":1},{"version":"bc0e2bf3325bff271ce0056cb3697a5e9f622f52d3a20d4c0df7f3fa31ee5bd0","signature":"c5d3dbcd5752f6b5f49043d65d5f7235acac392c076980165dc0655c6012b68b","impliedFormat":1},{"version":"092eab8f3c864d466d99f4193d9cbbd3a28c3dc0c64623749f6552cf6ce83181","signature":"02208c1e1b0e2aa8100c89791f6a0fe3d76b9c09626b6e10a9341ddba1a3174c","impliedFormat":1},{"version":"43ea4eebe7bc22e839f13937b0163e9aa29f40e08cac5b5052c866d30c154a1b","signature":"ab3b471658926ceb6c8e7a74abbc02990d4e449055a68f8007bf0b0094d587ab","impliedFormat":1},{"version":"14853365eda51457f31d69ebbf43e866e16ea5008622bb75602ae3f7569ee118","signature":"44a6f09639cd1f7932432a91d23f869a97e9091397a8c7645f5e0c4244a0cc33","impliedFormat":1},{"version":"ace1c7df44a7e6f7699418a70f097d676365f384a90fc994de11d8a2592f159d","signature":"66d83c84513d39a45a50be590187e2d14c8d9b4754ac06eef031b8cb3e5bd9df","impliedFormat":1},{"version":"1557812207c3064b96c4c65f4d2b58ca950817061a7b2f7f86612e38fd3681e9","signature":"f0ad639f0d84b6857c33c09cbdb34d600f47ddb28b670c6a45d03863f6424de0","impliedFormat":1},{"version":"10e595e28bfbe881207e072660d1bfc79519a87e28bfba84c58a83d379ca8db2","signature":"785da3bbb9f5fdea0dc38ea1d03a971866d7d37785efc9d123fba70165e1008e","impliedFormat":1},{"version":"8ca381bf2be28e52886b8b2b5ba0601b17e6aa6bcd1c58dc88146f1b1c169c01","signature":"537899ee2221679d05d68afb3e5186ce233bbed18614bba4d878bfeda9da585e","impliedFormat":1},{"version":"be1020f19a3f33eb907fc9e4aa9c27b57fd5673207c199f888e4bd9cd08bbcd9","signature":"10cca85d37e592401632b06d6d5c7555559ce8eb99326f95328e879a3a31f1e6","impliedFormat":1},{"version":"78e673a2bfc6b46ca1ef890fe42e5deecf19fab8a3b6ee9112f9e0edf194e4b3","signature":"c5914c0eb716b4670a77d01fdc3328258f32919df03c5648483e7e6e7572db0a","impliedFormat":1},{"version":"dc93f364fa675068a90ab27f78b797195e35419a3080b2beb623450542e64756","signature":"e6e2443c556b1ac0e8b71ebb7ffc1e07ca6a762f8f6c954994da84e34d27480d","impliedFormat":1},{"version":"5729ff56fc21b096c9dad20a9d8662cb12b39f34543be62dc0ff9e0bbe5f6e18","signature":"e32c4edf360a18e1cc6afa811f6913fdb6b1a26bbbcd212913f1bc0283144eb8","impliedFormat":1},{"version":"f4e8726b0747e624fb190a4cda22a8ffcfbcd72f6cfc325fb6922bced889c102","signature":"7b1d463789f1ad89923e8b9e11401b1567cb345e368423c476e1643ccac6a5fb","impliedFormat":1},{"version":"ae67586d01248ae32227be7a89ab0f7896d90d899dd24622454a7478d17c1d8f","signature":"d417aee133bbc19b0aecca2f3b294a6bd04d00becf706818e4a1973690301d6b","impliedFormat":1},{"version":"5283ac344af93fe8a392861dda226a9bedef086a51b4de6d44223abeb459d880","signature":"9e3ac192506a375ad84602c1a9d0bf81c9d34a7710962d7c4e317df7ec019c64","impliedFormat":1},{"version":"49a5fb25840c7fc59d28b00550ec545bf1a34a0611fc6328e762be396a952b8e","signature":"945ac767f2536b646a1c1203b35a721d1d626d0b8a4bf18d96331393e17f9d53","impliedFormat":1},{"version":"3f12f1e3971bf1945302773d205a9508c1ebbf157cf8cc40ba068a7d2f7948aa","signature":"904ace5de530eaee6482460de957634b4deaf1dde6182dbd642adc0fbf99d637","impliedFormat":1},{"version":"68c7052161144436757db31c0e9ef30240eff78a905c147e9277bbb208c9d5df","signature":"79ec0039dbac6a18e72d631b6418f28a68b52041128191c81afc31561e7a7936","impliedFormat":1},{"version":"4d2c8c12e17e01a5f1283543bbf088d5651d273d5ccd946fcc18c25f02dfb8b8","signature":"08522247ed8473ad28bdfb3e79758303cf25f791c8aa0e455aaaa30efe318458","impliedFormat":1},{"version":"2ab868bc23a4a0ef29a9a462960766148ac8dea4900f17c1cf2c3770221cea54","signature":"cc253013be133c517938ff44cb7e33db5d1a7ca7f527b173c7025b21fc70b85c","impliedFormat":1},{"version":"116eca2eb41292a7b150aa0aa64cb2b2ca2aadcf403d5f5b6739d1f852c1f0eb","signature":"f231674570c88f1c8f6cbb6579d633a0dc728d5d9c717f65d5e30cc98a43ab33","impliedFormat":1},{"version":"99757eacad7f7f90b5f1503d733d3d64555e0cffa1380e9b2925381bd39cfc0e","signature":"7cf3798305252c3881c0982d484e31508316f726fc6450247072c8c318aeefc8","impliedFormat":1},{"version":"430605cd22e9b3a55149da0f1f1955746268586e5526964258f6ead0e86c4cdb","signature":"e01ef383ed0cb1d7f26dfd629e90291254d0d0459834b7ff6eed6180459d8fa9","impliedFormat":1},{"version":"4d890c892117c7aadefd128aaeb14d00b99db35b7999eb7f082852b189baf419","signature":"27e469ef3b5215efbefbb9c2e3fcef80a75491358044c5a462c6b668a76b781f","impliedFormat":1},{"version":"76d324e571b784fc96838565b90bacc0aa83591c2cf56c6ab8a885a45542ede0","signature":"9c584120e79747a5c7ca4fd63005d498bd3990f3754456b765afb568be8aaea3","impliedFormat":1},{"version":"a2b52f4c12d8c5ed7f2f617af78853f4b2b4f51033061be96cc40b1a002c70ae","signature":"0258f9c9d545fc7876ef9e52e41d164112d647065547ddb1bb9511f37cbf2c47","impliedFormat":1},{"version":"4b9466638892bc1926080ef2a61fa77f918bec4caa4e015e41317a35973c788c","signature":"dbd574e671cffe123bba2708ff906bd7154cea31db3d940596dbe7734dfc3227","impliedFormat":1},{"version":"c2267ec195c1cfa817febba26ce4484cedfab4905711fe4c38d353a644477e56","signature":"57f097d533d543446f0fa234886d8dfed3d78fb72fd6e130d0e07a7e260002fa","impliedFormat":1},{"version":"5ade85b97d0a486d32c66f313cf0c7dd12fbd397ebc1e1028e3e731204bb8206","signature":"de672da2d9a887c1886d66e3c738a931c45b6b918e8a48b778517c95dc003746","impliedFormat":1},{"version":"a41e2851a31ac4b8e1972576f84c75748b90ce97f872fec8418ff369b9e14a3c","signature":"978f0c6d8be047be852db9b5c1d31e816ab1b49d269cdf50224959a4d50c8015","impliedFormat":1},{"version":"30761ff128bc7179fad7807c2e6a5116bd5ba266195960531e144f6928336b85","signature":"c28057a459aed5e837d0abd2fe8c03f44c07754d05a9eac4f698569673f6ff24","impliedFormat":1},{"version":"e22ef2fbc20a4d2ec139a47acc6e8132ec82b886ec9c8854cca350c7525da97a","signature":"529fb7cc75fbbdd353dc68a4bee78cad7ab43d058dd278d2fc38ab71740914db","impliedFormat":1},{"version":"b36bde4b7fcb86b67c8d4dcc5950e3ad0776c0d4165b508bcf68fdd751892e77","signature":"4c80b6c7f905e22a68e4110618dcbe19c63774a4e574d01d5cca5636c7dceb64","impliedFormat":1},{"version":"a5a8266c2268e8eb64cf53e5dfb7a5fa978c7b9e418d261703d71663d85c8a09","signature":"88c5368e3124879d7b43d37ce765d474d255ac3580bece203b61319cf5ba7139","impliedFormat":1},{"version":"bea41540f72b23f719a1f60097f9d355642e7e196c0bb485aae3f2ee4a7b34f0","signature":"03ae76288047e6e383bfa6c31a2ce767363136487ad2498f80d450291f00de0b","impliedFormat":1},{"version":"2483f959ae89a2e788d4ce50dd98d93bcfe264474d46fe57092fe33ff824d121","signature":"9da08cd09a194da56fe6eeed09a7f3afdb00ce75edbd83ecbc9fc0b368a57e86","impliedFormat":1},{"version":"bea2db94931a65582ed04aa96089506b86eb90caabe90980ee368d35273874e4","signature":"897da83a053cab5bca39d009e392412958b6d7004b0e3df1f6dec8fb0a1696f8","impliedFormat":1},{"version":"5edfda1c2e95246a14cde3d79160d32875371a676b0c0f7bc4659bfcfafd45ce","signature":"bf35a255a7f61c838995da4f5a68f5476d6f2214cb764b6bab7b3c28c7b3eacd","impliedFormat":1},{"version":"e6d1ecd5a45a34823ff1eaf5b618c16f73cfa6122f78db50cc76cb55942c2a44","signature":"25e98ba135c93920983b0d4781a70628d5d8f87c6c33a6a7e0f07b16feea6f11","impliedFormat":1},{"version":"6fb48ccbe71dc7079889c0367a412fc4926855bbcb2366753a084e3bc9f36b22","signature":"85222c4b940610751aa92ae7bb370d4963cce8b2b46b2e2bfc2afeaee283e592","impliedFormat":1},{"version":"655ddbf240c8f015cfb9cb7ee98cb7b0df6a06bdde4bb6b01656b14372144d10","signature":"6857b56acef5eb88ddd6cdc100affed63da6813015f52241f9d1521de35c7983","impliedFormat":1},{"version":"11c41218414872ea05b02ca911319dcbff72ac2ca23ab066c4abf5c47fc9aa8c","signature":"fbf289ad33ef0446fa85d1040e4cfb5e5feb63a57ddb5157284feed05690270e","impliedFormat":1},{"version":"9bd38baf7aa95bb59d691f92b4a84f276ac19f7c088e1297a9a39ccb598b2ce8","signature":"cb42bf75849e6ee8a381a1615a343e5da8cd89d04d3d63f416f146dc1ceb12e7","impliedFormat":1},{"version":"43a8b19b0bbfa96eddd5b775cdd204183f8d93c3fd4cb7edb48dde7cfb9ca23e","signature":"d5281ccf01fd530779664e072d2062d053b20ccdbe305ee55e26c2cc76b9a3db","impliedFormat":1},{"version":"e773a08a8f466a2a5c15f0f283a0eec0f1965376008769a0aa4c28757d7da498","signature":"6729ebba69313ff2a1257df25a2a3f1d24f5ddc4910b512878fc6dcbc4cc5f11","impliedFormat":1},{"version":"428a9c1266ce3146c5b5c7e0e21ce67910d63579d7a3867947bc204f537c41f3","signature":"a3b4525f9675e3f84844416227fbaed2a76a08a9726774781124c0483d317d3b","impliedFormat":1},{"version":"3891d243ba2b7bd8676c253cd3af58c33b0bdd6b991abc47a853cda6fe38a515","signature":"a322b726f5549c4036a8b447bb8a90a5f42f88050cfc769a532e8dd02580a0ee","impliedFormat":1},{"version":"52c6f968573ec325962d5a17ac457a0bab00209ed3b7fb815ae9013421ff6f48","signature":"743511999e587f68128b1fb810f19087246684e3e792e5b64e715412a16b9659","impliedFormat":1},{"version":"02991005b49c7dff4cd88784d0f90f5d4024c9294c1d7ae1c2e008eaf81b9402","signature":"73ca1b7b4674c45412a3a6cc9f419e22725ee08a51a1941604d3efda3214982f","impliedFormat":1},{"version":"64aaf4953e9f82fb5de879f4eb12ba2c2e94c368c7757467e218a8841828ceb9","signature":"5cdad1e1c61b68cb0a0da51b3127982e90cace938e7f72ffb7ff6cafde29d7f4","impliedFormat":1},{"version":"090922f43979f382a4ae559accc655ce34f6dcda9de0d637129ed5d54ead136d","signature":"ad5627e1d5956e0ff65766a6bf564cb0f28f6ea88efbbfc8a4a60adfe5462259","impliedFormat":1},{"version":"8ab0a35f7677ea283871c7357e44d1a51631c95f40226c6c09b43704a3b74667","signature":"fde97a52ce90249c6beb3aa7f7ac67a2f2749274c8e48b07bc74b0c7beb5c28f","impliedFormat":1},{"version":"dd99eec1c0e8f012cca1e7b31787cf2ee1ff890e22ecf15a542656ef5ad955c1","signature":"1da68d6a7ca3a6e8565dde6a2734e73197af2cd3546140007f633b6cfc373ad5","impliedFormat":1},{"version":"1217b6b35164cd4402c3c0b905e4a4066620c171534fc1856b10bf808ee0493c","signature":"cb17d4d5f90e226fe12da5e38e4b27ec91c268ced42a9f35be4da6dd30970970","impliedFormat":1},{"version":"8e0bd43109d8558a4ac1a4d71ae711c0728dc9e7f04a48931a16a827dfc145d3","signature":"562df07055d4857cc38d2db9ef6feec97bfef035a2762256a25f9c154b96a71a","impliedFormat":1},{"version":"844d40db1511b55f10c7e727f79088638387d45fc111a54437debbb4277f1e22","signature":"0e44fdb69a979309b0251658d9ead9cf273cf41672bb058c6f974dad361d1d0c","impliedFormat":1},{"version":"9870578324960346b725de652cb431d6fa76aedf3e21001e9c8415fdb45dafd8","signature":"83f21dbf6f8a4e3faab4a7a7bfad0d9cfb48e731fb603abbed6ca19becdbf08f","impliedFormat":1},{"version":"89d22272404cf33c682406b108f6218825a5d86334f60f63fd6ddf297763f6df","signature":"d00c7511bae7ef49f3dadb59a0fb4948f46cff0474960a87f4f2baa617e43619","impliedFormat":1},{"version":"f8abc32a1c56aca4f8f49bba6fcb4879054780560bcc6a068629e871750b9888","signature":"56151fcbcac84d143dc12c28b0453632e31b5c2f059344e99234063591603b2b","impliedFormat":1},{"version":"eed91e6b6b8f2b956903b6e1dd06b3ce8858345b7026c0eb1ee83f4c26b36d96","signature":"3588d65993414dbd8004454d4f2bd6efd291ea59200a4b0d36fc33140761d37d","impliedFormat":1},{"version":"85378777d409619abb9fbdc90c2a8a82b78b6cf07174ce3fa6fbc6173a5b5332","signature":"11bd59ba6f5d067970bd72f72116f884fe73cd7c138f1eb687a5d921233c63be","impliedFormat":1},{"version":"a79238886fef02831367a968ab440adfa97e50f55ccedd9b6505bfffb367007d","signature":"f81a796f0154b17216743f27ad2dfee85368d9f894aaaa3fe08dc4a09cf4b317","impliedFormat":1},{"version":"ac68bca6eef0e9aaf5b9ea474b21946b543eed64db5945016dd81adf6e684b49","signature":"4e84ae5ad231c83c86524e784415559dcf340db83d45a0ff90ebc5833a6ed2af","impliedFormat":1},{"version":"1e2c6d2ec9bbc85112d1fe3fc404b3d36a465b700093d49177c129cb34b2bfab","signature":"b043b26397d1174c0a0c0a921375d47f5fd0481b7a15a73d84582c8fa7eaa997","impliedFormat":1},{"version":"489c6dbebe58ab6a3eb4c6f17431c6795e97f168770dd5f6cb6657a0cedfd8cc","signature":"e3289d7e08808d0e1ce062224dfeb781e5e708c0abfbf562be959b36a523f773","impliedFormat":1},{"version":"03e6bb85e815b086205afe2320efb1bef0ea479263940477857b1b7dfdd42669","signature":"0e40e25d6c8abda2e01d008717529750adcad32d4ab050b2f784209e0d46b77e","impliedFormat":1},{"version":"fcf0f39a212f5e871f7784288a34eed2517d355ec4f45f50ba24b05b0cb72610","signature":"e8ede9480c347b16ad36c0dbbf984361612112f116eb6fc6a6968488824ffcbf","impliedFormat":1},{"version":"d1da51aba1735d8757ad690f6fb2e99ad761c6a78f8b681ff33b076a1a4e3364","signature":"7b3c82aa1a8e42028062b47d00311d7f644793ffdcaea6ff5f0129526a396a07","impliedFormat":1},{"version":"7941bb8fb34a84aa5be8a4113be234d611e75eea944a8cfa7792e7c274edc4d1","signature":"a2b6a186b267eb997663842243aef9b32851bd0ea058a918a7e6365523565cc8","impliedFormat":1},{"version":"ed9d2d0c51185fc4a731485bbecd4a32f91061a67c1f7df9d60d8d2860a58da4","signature":"c5f0439b79524b4d1f0e48e05022333746f8ab86f35faebcf3bcb8e174ba4321","impliedFormat":1},{"version":"c693a436606b1da2dd1ab225590d290b6bf802b448fdfd1d49df6f4f847b1a62","signature":"1fc937ef9f1d344db26a7859ee45963f005b0ccf82c159d4bcf7c4006d499514","impliedFormat":1},{"version":"055ae10f3fbb58d246eba9fe3e5f7522c7d2fb05ffb0fdc29e39ab44312a8030","signature":"b90bf724fd749e145eb1a3cd4d827d9765ff5e27d85314fc9e1dd6c113f4fdcc","impliedFormat":1},{"version":"2bdb1504ec9819184dc88be03dada8dceaa86d582fc9bbfa99884444ae6ac56e","signature":"6defb13f4f70d5c656cbdea50eb7a27244eed74d49550adec04255dd3f126a6c","impliedFormat":1},{"version":"1eea2f2ee131e04800015a36122370a3f26cc0cdc2981fd0f48bff938518429d","signature":"e87ac0f83537ef2504e602f9a2f4ba53db120cab73d5b7ab773829816e81a9aa","impliedFormat":1},{"version":"e04c5d842f59c6b7a1ffccbcb309f8401741734f9b7924515d234718510ed039","signature":"5edfc8988b5f5c640502a1ea0f3b457ba64cfc7755029bc6d085104de30a8083","impliedFormat":1},{"version":"f2be667b239ad30d085d0abab6d0de12f7a30a240a17164fffb2ed440808aeae","signature":"47d7f4ef8400ef18c92a769e142730e10b2ff933a187fb25f95ee5b15dd8fe5f","impliedFormat":1},{"version":"89dd073b62d8cadbe854bb05ff520e2fce84471e74286ba8ef780d08a2f1c5f1","signature":"f7c19f306d152290868f502bf45d36ecf5ffe4c6b386b375edab81858021c25c","impliedFormat":1},{"version":"aabd46f6d23557897f1f1512e9730a03b84092fdc3a66123ffc45920b821dcfd","signature":"14f517a8ec32de71eee86e6177d297640bb998a80dc42e37ec37915eb0beb02e","impliedFormat":1},{"version":"c25dbb0c8cf256c4ba418e385c67780fca4fa5106f2206f94f89201c72ae789c","signature":"b96641fcf01bfb1586936b9cf703995eba8ed263febde9aee2ae3fe3d896fd78","impliedFormat":1},{"version":"971f519a550a769603cca5b37ac9126ca871b6b0df6f83e51c2855878fb0707a","signature":"3a54da7091dbcd5832335c38095d48f67183fc5376ea69021529ec70a6ce181e","impliedFormat":1},{"version":"2927b777fd0dabd29258d354eda21a75a526ef86da95fc75fa3b3c993d4be5df","signature":"1dd62d9f63286cb3e24e1147dd2c7b1c39592c51166ef85fb0b395b99aa4ec30","impliedFormat":1},{"version":"dc7bc3577f88ae383662dfff96bae43a32461e6a6a91e6d370135911fecf57ad","signature":"93fdc51457445933905e56106ff88397d3d24dc5f6de678f69872664077afc55","impliedFormat":1},{"version":"6fb5253211e33fd4556fe0b0ea17e578a7d9e4c45147fd56fab0546ca1fc57f9","signature":"d0c4adbaecf3f0f2875ce5edeb50522526061a0baeda3a0dfa30a5f220632c0d","impliedFormat":1},{"version":"eaaff4c0277027533a0ea9da09b78e8ec44e60a4550db9cf6530c96f706d900c","signature":"c64eb4db183bafc9013d672e5b9065643760a4280f621f87cb98ef7e81568bd9","impliedFormat":1},{"version":"b03e6f6800d9fcc010ab2180296894c7c80f4894f089e8718e0a4c9c9f20ad7b","signature":"20ee025fb2e226c6c9ffb84e45dc6af95722dfef34a0d52b25e37beb51e9d84f","impliedFormat":1},{"version":"afd7a1203c5e333d4ee51b9935374e63e74aa931b7978a1df01441aa1c2fab97","signature":"35d8912b08e65748dff3356a925f9faba3492a4fb0cb3cdcd094c0224c02e849","impliedFormat":1},{"version":"6bcffdf2d22aae62fc70fc916921c9fcbbf6426dfa7410fcaba63bfb2d690027","signature":"20980e813773467756de4b5388d04feb5c6a7371fe46de7fa35e6a892876048d","impliedFormat":1},{"version":"47d41b7d0c62a649c1bcae094bc812acfa026d84bca26f5caff6d4581dbfb043","signature":"66aadfd91048c22a2cf771418c53a9ffb5460d459e303e32bb110590901fe59d","impliedFormat":1},{"version":"f5211eb2ecccdb8bd410b830d75b0f8a0f86643cd6cac22556c8b592116b8176","signature":"36369361d46a8e5b9950f6a712a6206842eb469e9daaa242c9209ee2b4ba9826","impliedFormat":1},{"version":"d6b02f8284e0ec3209bc301bd392d523c703573f898563954defa141d1dc8d7b","signature":"002e6731e3d00996e32f2941e11defe790f4aa965dec45e24a9499f86cdafe45","impliedFormat":1},{"version":"5f286a4c94dcf27832b98cf19f392fbeccb71aa6b47065495f26adb8cdf2bf41","signature":"5223ccc535d1baf5752ec08b3ff9a6c83e56aff482ec04c8bea1b1b191a6af15","impliedFormat":1},{"version":"27cf6cf4cb39b252285a7c20bf1c308e9391a0a4a8c35ebbf0ba83af31fdc2fd","signature":"0b3a3a3b336e0a57348421b81eaa72325e5feb818cea9c70ea076ae3d45d8e2b","impliedFormat":1},{"version":"10020808ae71656691fbe294437811cd6dd04a709d44c2524377ce95b7e6f04a","signature":"e8bb31145c46f03c17ae8971364c19c5c5aa98f5553771e3d7c99694f34ec892","impliedFormat":1},{"version":"2bdd9f3bec00cf97672a9215e892ecafeaea9ea003c0fcd11967cb4088755f3a","signature":"a7791406c36a1c231c1ac2a4219fb3f82ea09b301d8f4dcc0848d7ca617ec836","impliedFormat":1},{"version":"3013ff69b55e0e6dd2e60f0738f42563b6be333736dc73f7320907f019d2bc76","signature":"c680b837d907ca7d813d072bdc2e93b516e31ab5664b9919a92735f6a2e69ba8","impliedFormat":1},{"version":"d3f2a7970182769ab205b4dc35728345267bc6963b15c6ad1ae49d25f97b7d78","signature":"a419d3a6a31d248a623704f53c0a4cba866544a088feac2c331adf19f0210392","impliedFormat":1},{"version":"203e1eef3856ce7a2931c5069eb4bd53dcb463d75b737477125edb95f5bc2919","signature":"5f6ff9f900ef204a4e09faacb7e88ac781e5bd5c3bfb0888ebae405e18d04530","impliedFormat":1},{"version":"65bc8138b7f6bfec4f55dba45e1456fbcbd757aa7e1d2cd47ae8b173ca38d6f5","signature":"028d236c734120afe22e09756a056843a37e18169fe3666baf1dfcfa7b303ab2","impliedFormat":1},{"version":"7cd8ae4c88608c0b6037a176be8ce0b372b14dbe00d476e21ba61de3bf393260","signature":"81e3a5ad76b503cd89039aec480b51596dc7a204721f27704645aefcd6fbc110","impliedFormat":1},{"version":"ffb8253752656b5d8fd8064088192973aca076684f753ea5d17b2cd8db8ada04","signature":"c3c4b5d1eec2fac09146cc914a3885280c3b14b2edbf831b492b5e38beb69b8d","impliedFormat":1},{"version":"7c11abf1320cd7f362bfaa658322a459b781879475a73aed4f11011937f3a8ac","signature":"62efb8290ceb000f75e076051ad7cb058fd054560c54a1885591c61191201b3b","impliedFormat":1},{"version":"a1ca0a083cfb954db8ff969b123dd3cb9c4e3e42accd132c1e008599d0e1c805","signature":"2210f2c7b011a840a24d350b879ea26bff496108ee9d3cc4ba2b86310e367767","impliedFormat":1},{"version":"973e98cc76edcd753db085910eb281dde979b3cec3b01dcdad27a4edb0576e7e","signature":"64646eb527c737e9ac946182ea62df08323b9899781b55fe5706c1a87420452c","impliedFormat":1},{"version":"9e894ce6525ac98919229daebf8b7f5edd592635300876511e309cf4a28cfa8e","signature":"fee581273c2e52a210befe3afb814c6fd035c1c189c6f3ec40ffe9606881917d","impliedFormat":1},{"version":"97363681ac12ec522a3ba61103de29146c3c82d85b66900035cadc8d3bd26819","signature":"b924ab2b45a8baf4a4b2320ce3e2b7a4464087f655afd88abd35968db359a1e1","impliedFormat":1},{"version":"ac73458d4472a9126c2a0a3ad2f1a905b6361720ead3a2619399e545a42a7924","signature":"00d2ab127379e0a204e1c32eb3db0f5f3fee7cf25d3d3c399beb6c2e6637906a","impliedFormat":1},{"version":"29760b77301c58e7c8e0e99ac0dd829981b7434847444123d15b945382b7a2cd","signature":"3c4241c06a1d297e3fff7fea093e2f7b893588141d41d1ddbce2250e57a69e8e","impliedFormat":1},{"version":"3b3fafd98cca58d3d050db0c0484580a80884ad4ba30a0e178d33172d7dea72c","signature":"990d55b724dae1681545e99a6b7ddd8ea8eb6820276accc26bfb6e36497a3a05","impliedFormat":1},{"version":"92584056b5b988c70f58e4035d07f2971cf9fc6c46ca433decdf8a6f635faeda","signature":"91f115ffa5b732524635f9084e0688ef66722cb56bf34b3353c0b666f219f020","impliedFormat":1},{"version":"0f349c1dd3c17111dd26a775eca74c9fb12b91c2feb351ea917f968a4f771aa7","signature":"8cc0dfad62ad4e9bbff1b3133a325789198e496ef051e85cba33924692a55496","impliedFormat":1},{"version":"4ceb18eacc5c8ecde2f391e108d7ced3076f6a26a2393af4780eb47831414686","signature":"e6c0f1a2a0df7a308439b9ebdc1223f1967acd996fbe646b8eb6673a2c0363f2","impliedFormat":1},{"version":"9b6d66aee8da5956e1f4d36a0271fe92ff0832fc3447e0a269d60680f215c186","signature":"678ec9ae7e3dddd5973ef02e5ba83aa40608df05729b130c8d438d2c072978ca","impliedFormat":1},{"version":"0dcece4247203616cfc15155d05ba83e39af7afd287fef9e98aeff5e78467cc3","signature":"2b8c442742084fd5ce813f9dd9373c599d886f75223da242d1dee4747ab4f63b","impliedFormat":1},{"version":"d041498b05663de1d0c934c3361ec659d9fba9f32dabf0034f8247e54f90ecde","signature":"7144bb2e8fc0cb9ddcab2e6d49ca59a5a9f1d4319153e84bc3c0bc0d78df9b49","impliedFormat":1},{"version":"ce7434a8d8d1fc8d7d2856c7bcccf3b861ad77708937459c4945faddd1fd82cf","signature":"98e1280eba2a3fcc540ce5d0b6d8e04892286c5be1220abab485ddb6fd380173","impliedFormat":1},{"version":"ef968045cae02fa795d5aae95609b9023f4338f73c0988802ecb7ec4c49421bf","signature":"6b9f1fad8361faa149313c1096bb153fb6f9a6020423ae50688b064b0abaafcb","impliedFormat":1},{"version":"adbeacb464778caba9138f764017056f8b2e52e5467a4d143603dc18a2b2d5fd","signature":"71d97cbc8063ac5dd8cd87a2ee704d3faf16707e442c87688d507c01c4d817fe","impliedFormat":1},{"version":"ceb88c88e24b8eeeb79eef3e9c6189574d9d4ca3c8b5ab2860817d749c35f289","signature":"bda6a239299293984dc2c627c46448a10ff20725f2fb8fd5a3b4a05c956632ed","impliedFormat":1},{"version":"5041aa39f59febaee0cc1350d32bfdd59a180de332970826a9ac97f806f05827","signature":"7f7483089b230f49722a00a36c529186d949a3e4d229167f9f0cae0dddb7204e","impliedFormat":1},{"version":"1f835a5cad3961ddb1c0cad1fd6a44187022debad61de1570a6b1158cb02113c","signature":"6d8ccf3bf2e7401d84a690ae7233af17b8169462314a25da0b0ad133123ef42d","impliedFormat":1},{"version":"cf4c02174f143d57819a9ffe554933b379b7ee62377b55ccf0882cc9900c99d3","signature":"2f134267f0cfa2552b2cc7aa5506a04b0a3372e017d9e20b6a57ff1fb29ec1c0","impliedFormat":1},{"version":"84009868ebdf5acd475d720c15b3312a75d9f6d345428d640d78f1e1d2465f9b","signature":"581b3fa381afe3d2d8662b0af9cd59a134d1b8d042dcaaa0d095b222bcce588b","impliedFormat":1},{"version":"604e2df29bf0e128b665cdfe6262f99724c6aa578d16882e1f81f2193e614783","signature":"e93835da0846353bc1c728a9ddaff86288eb92f6cf0f92a80e69afb0b050e7f3","impliedFormat":1},{"version":"d3197ba087c37eb94b9c1d28dd240cc6c2ef5cb721875d18ed638829c9236f5e","signature":"cb55c8bdc7330668b4aeb68e76e25bcc6402cff6adf8973431fad78b0c82f1cd","impliedFormat":1},{"version":"d9b9a8bb042762ea685e99ed6660a61914395f45a361f1a60b780e2790d060b3","signature":"8ebe3a55813df7ce8f649f052f35b5be651491ee1f5aa3eaaf894d08dae0d4bf","impliedFormat":1},{"version":"1159409dd22f2afc67073ed1c2547911513901e4e35f07f9e9e6768ed816b046","signature":"90ef037905d71d97646b64f49adf693b5e5ef496638c29a6682ce56a2c971b4c","impliedFormat":1},{"version":"affaf216413f722c37f6dc158e4ca7932c449d4ae9db56fdd5bb72559dba2641","signature":"503998c644eb63aca776eb818fafa0f43cb4835fefcd0dfc6d85929bdb736219","impliedFormat":1},{"version":"241c2ce60d7d881664f5788f3d8b75623b30a9883b487642c860cabd4264c69a","signature":"35d7392a41f936915d18e2c106ba1862cd8944af383359a5c12e687e3c7e337b","impliedFormat":1},{"version":"971e94292dead7db77442a4804815a8292d596360fb08726ffec76d119afcc79","signature":"7d877746831984008c8a002a5ed9c22a079c5c0977b6394c3df05b9be66abd2b","impliedFormat":1},{"version":"c382dc7d2d60be7053d03ccaf04c47ca16c1fdecec2bf103fe328451b874b7b2","signature":"2bf0b64ed488715b31b701fdf04547122953ffa88de87a629a6646e623a5dd76","impliedFormat":1},{"version":"701cfda6ae296b813722f73f95a2d0460ed821b988a09e3017572d5d5e1f7c52","signature":"503713653e717ba1af59fbabf4b288132c0bdb1eff5f42878e0eaf1699f103fa","impliedFormat":1},{"version":"3612fd003d8db874b06e47db7629955d088f8854324c01e17a5c046e276846aa","signature":"6f60b3d54d3dbd0f119ca326c795637829e268070cc21a06ee97b10e2842f94e","impliedFormat":1},{"version":"c157db140d3f890b4c29c5f87b96965db192fbdfa457238967796af16f3a527a","signature":"e746dff9982dfaae6ced2ba76d6d27ec483ff76a8ada860268d32ff90223a92a","impliedFormat":1},{"version":"dff459e34d8135b8ef449f380e8af651cfe159dd0b08ade167e1a29f1871bbd0","signature":"d87de487ef482ca390cd410491af90aa108e7ba53aee86a0759cfba40e17c803","impliedFormat":1},{"version":"0b0db8b7e379a32f6b8209a1c0160a2121b0643dfdb939846a563c833e3536ae","signature":"0b20f79dc496e7d8d8d27b6e65f5d2a679b0522e87b7c7ee857364ecc4d2c0a0","impliedFormat":1},{"version":"f0884481b8ef82013e90fa8fb3091dcc85d288bacdef8ced862926ec1f798863","signature":"3880b15e7443b85634c0122724f96822db6bee55d18debcb66bd6f7431048bea","impliedFormat":1},{"version":"65cdab1419b2bc76e998120675cce39bd5030719aa31edc5fef0409192da8467","signature":"2994fb8ca6ca27125fe962010b9d385b83920614c036530349f16865f1d97aa2","impliedFormat":1},{"version":"be9465efbc9afd0804c11b739c59f96e981197fa9291cb1018f4f69995dedeb8","signature":"9d5962d976e2abaa6e45f549ae2261fb22c9f9f11900ca5d79e2c8c0b9a1eb87","impliedFormat":1},{"version":"2eeb5ff592e454322ea2136410659c02250fa625c424107c683426b58687b9bd","signature":"193b924fa1b5f872391a17b7cb616b9618abb869ded362740216b3cfcd418bcd","impliedFormat":1},{"version":"7435d4afaed3431ae198c329cb48cc915d315aab6c773c269994ffee024b7c46","signature":"564e025b34741bc86b9e8ee8fa634dc217179c40bc301cc8e25b4eba9869f137","impliedFormat":1},{"version":"6b7626146e88fb6569d5264c25a5cb72af23935ed91aa88d68f53967f0b2f689","signature":"5279b1a9a71f9a668212bd647931ed312e3a395972ea41ad99a8aff33561243d","impliedFormat":1},{"version":"c1e5fc6befb6acf6bc11a870a13d85e2599957350ccec43130dc0ea11bef7117","signature":"d9bc1b92b6fa17905c02886ef4ffd8ad91edf1a6a22e57999b5eb726379805ae","impliedFormat":1},{"version":"025573c67681613d3c30f303ed94823f4b49c7e37bfceddb255b05f793525c94","signature":"6754c6cba5a787746106f147123326a772a34afeb97e87094b2c8bc3d187c8e9","impliedFormat":1},{"version":"ee359fd957d5a1cf643cb4901c2a5a5344cea1e88861480f0727698e46adad46","signature":"81831c8ddc4212acb6bed3067724714a8b38b0457ee2b40809f171d31f948fd6","impliedFormat":1},{"version":"f0d0397f35a4f9b80b500932c02642590a5be6de03a8c97b8c80af1034e223a5","signature":"c1bcc31fc049258e81eef1238a7f37fe58c2539b1a6e8b979ea640ec055d9836","impliedFormat":1},{"version":"cab8034d99c1d70b31b5a54b011f02ec7acfd8769a23173dbd3c9104d0681041","signature":"018c780ccc75f5e7b37b59045917d13da514f78e2c9b3f94a193a01fda8b0456","impliedFormat":1},{"version":"33b9cc64b527b482a83fdc3db0c28c338d435be90f3e38e4e60e9082c722dbe4","signature":"3d30826ea87eaf18939de2a9b3a1b7cf27530f7df081f3d6dd2ffb7bab6294ff","impliedFormat":1},{"version":"5b81841e29eb7d83c5f94d1999c42bd374fe4dafb46c3b5a293f0078a7292ea0","signature":"5d2aa65ee7dda57d3ce8b4faac6081a3b350ab3effd6c95d59dadd9596b54a7c","impliedFormat":1},{"version":"16eb724c8755d806af332ed87c5e59422010190f7670b41b179fe877465add34","signature":"0c272d061b8881c646f520c318d2ab3197370dc4077c6b145c1278e30b52d1c1","impliedFormat":1},{"version":"d72ab793d7fe6a523bd5898a0f1618bea0d941f1a07b4f1ccebe33da7a84d181","signature":"2b323ce8c31bd76e1d38fd495e4826b5e4cb954c5957e9217194c96db156cd9e","impliedFormat":1},{"version":"6cef70cab277c6a800ad95c577bf0415c9b4960878899bacdcd2767beee1626f","signature":"abc8d4a0a08b93c6bc67a5867f7a738b47b79c93e5f0cf63b422cac3fba94875","impliedFormat":1},{"version":"a0ed9c4a7e8bff327b7c3e453fd9bca1feef8b511ce2c1327508cb8f23173524","signature":"3074b9c86cac778263aacaff9aaf42a21d2f103ef9742b37247f3de9070e8995","impliedFormat":1},{"version":"8f78059349adcaffb3302a19c51790222d8e9452209074b41f7726c885a24d70","signature":"7db840502a9cf7bd0ff12f066f9ece476dfa35e51d3fce1925f0f27f2d21b9da","impliedFormat":1},{"version":"50da2c1e2bb9f80ae4c4838cea5544303dcfd09858dafa5fbec911e9c0c40a50","signature":"e5b04f13a638a9fde6e22d9851beb41f2cfb542d104b1ce6e8bf26c101bf0759","impliedFormat":1},{"version":"bcd637b32d8fdf74eb7074753aa77a14c6a6ed4252da5f50eb12f0764ce56656","signature":"769be4381aa79dbeff843189d4109cb58c84ca0b529586e90df7337b23276adf","impliedFormat":1},{"version":"25e15402719d1b2fcf77cc955229b2cc45e90925874a1ac8fbdaea56de8b3c04","signature":"363ab355e50a5b814e5692d50da5289ea1f0dd08a05c3381be57101fc2bf1c1d","impliedFormat":1},{"version":"b643454cfc9a381c7d32363c29d382c2aec54a7be0907fa7e2e17a4e15da1f3d","signature":"d1dc7719852df18b4c42675e358012a5cb27377efb8d5da0db863821272bf9f0","impliedFormat":1},{"version":"460707fb890a9f0b105fa7712758dd76770f3c4b9571b0c01a5a26dde4e748d8","signature":"b78d89608e0cb8fe679caf16e6b8c6bbf0a1bcdebcda46b95949dd7fb136e8a7","impliedFormat":1},{"version":"e9fb006ac85742fd2fe5c1d87b207fd39e7822751d0417c5f328742c0976d9f8","signature":"01251f6b79177a6e5e7dd101be23d5a6c340d2687a08df03abddd719ad100937","impliedFormat":1},{"version":"e8173f95bf5dc1bd3714cd6f1ffd4de31cc72bafebecb08283e2f7bee98b4e66","signature":"2768fb98fa4250c313b44216283ef02848ada7006ea540fb246512e315f347fa","impliedFormat":1},{"version":"2dcc0e82b24b1fb4b154ed47f84d95ec61cf988804567a26d5a30fee42bebcb0","signature":"73a616cf3c7ab2f60c75f1a5363cc14ef9217cf93a741d5b129661f124d23263","impliedFormat":1},{"version":"dd705ce8504584ff07dfefa7faacefe89673cb99b54401d937f68d9e3958b54d","signature":"f1dd068566a46abf40766f692f4dcf8c833bc4158e70f620273565268354d562","impliedFormat":1},{"version":"75c77431c6467fe6ac78821a1c7cf9ac9b3b95946ad61aaf1959fc1dd0ff48b0","signature":"667171066db80106b9af7758db47c7211ead46461295a4fef084bc5a3dd18b8d","impliedFormat":1},{"version":"cb6ae3ed2eed430d661af43e8ac033e617d3cab9d3620eb4ffb8ff7664c1211d","signature":"ff0745d45a24faf60b69a3a4f1253f137aa9921ebd7f102c826a4546b8969e58","impliedFormat":1},{"version":"642d72fb2184c98c3e60312e1ae45ddb9e67e0c96a1b9750cae9d5506c718005","signature":"543878cc80f33464e7c6ce1257b372e03b859005b8374204fba3fa917b965f27","impliedFormat":1},{"version":"fd8e61dcd7f890a3ce6bc1300c0e45ca3c70b69d37af7c83bd2a1a5baa7305de","signature":"46a3061a1b4a2126923ee3aebc6fd5d0fb54e0b5f9866efd9011996bfacd8bc2","impliedFormat":1},{"version":"c5a4700b5bab2f7ae53c0fad27810a81f1a78a20ab47222dc96735c57e1022c5","signature":"2f5a1faf36e23666a5d2a98c25fbec8be61cd6bbed973b47e00dec11dcfb12a6","impliedFormat":1},{"version":"8f9c8ca395f649597c77faf17bfa58862d90f1038402449c5e6cc98b4ebfa803","signature":"baffa33b49765b6ded8d2c538bb231221c778ffcde83b3bc03c66e7f96ecda4a","impliedFormat":1},{"version":"6e71f518d7d37cb8784a3f5f83d54dd6930d493e7572a9edad41ebe879d9c0fc","signature":"f51f0f45e26aaea743b02a1a5865ad3e32a59c2abd1dcf2e4cf23ea9528f5882","impliedFormat":1},{"version":"b0fbc71676b2714631a5a907785f9b5e187058a51a0683f89146a57c5e6fe3f6","signature":"51beda85537d4475207777a51848a436925affb97fc43618e1cdfb1491cdebe5","impliedFormat":1},{"version":"69eeddf4d77b0ca315a2481951336483c05703404cc6880fb7896dfbc3963d85","signature":"f0cf6ee22b8d2a2364ce6574961e010ecce6fa9920baf11646b670a365bbe11e","impliedFormat":1},{"version":"09c04f5b139726fea9ba8ec382cf4e57ae67af7807c9489c749c46d0145756cd","signature":"0d281b248b75a3a09dc2b61a8355ce8f7547474766d9cde7d67e73fc1d21616f","impliedFormat":1},{"version":"14c39dd63ad9fe4dcfa0313ffe8a48c558b10f6bc614bc88a49a9bb27034c47d","signature":"16a2acd4db796a92320ef5d4cbd322e32a4fdaae61996d37347d474301570baa","impliedFormat":1},{"version":"fb809bd889d410ba6e4217acb62db360eeedebcc806bb6b5b4ca3d9767654329","signature":"46dc32249b741792f6691c721eaa8fabdfeeacba49f6021415ed6fd29bb346de","impliedFormat":1},{"version":"c06727fab3464a25786e5d91698ecb897e67c7749ddadd4e638a073138864cf0","signature":"390e6be1564c45575bcad9ef641662d5c280456815850052fd4b06d2f7dd4106","impliedFormat":1},{"version":"c1e4f70f2b0f0f4c19b54377db9e7a91584c9d65152bc524750b5064925f9b7d","signature":"5de527c24bf87470b12b6ea95ba89f94ca52296be3e5ed9847fd3de25bbf6f7e","impliedFormat":1},{"version":"7b2bf72a8e2a070ad756c5ce2ade6844cd1c72fb51115c0b2e8c43bb0ec9f212","signature":"c48bb885f3b678f1a76415eeecfc0d0e0ac98db828a80b176c3be63860529180","impliedFormat":1},{"version":"e969fb5e0353e4dc61503644b94e27e778cc0a870ea4b4d634de58fde9209689","signature":"e1faed08acc7e51d108eb161eca221f2aead5e6fbd7bde9517440604cecd150b","impliedFormat":1},{"version":"1597700b072f9329bdb348104ea6079cdfd26cf3d4a8244d4aaa2f07c88dc009","signature":"46f40e16e939c841a4ccd9635ecd6e45f9426d7c91bd3c5a6e981009c7ed7d88","impliedFormat":1},{"version":"f455b433a9481f07d4f88063e495f9d13e86d7200505994109b5991e9bfebc3b","signature":"8ff220df4da156d1195a5cfd25ce0103f24257af08b221fd0ad288501015097f","impliedFormat":1},{"version":"d16fa18fe4d9c04a4408c7a023cb960cb911de772a81f3b9d1699a9226ecf3ba","signature":"fa027cb1a268dc579a1b78dbe2866293f40379ebfa39cd29e1e20bdc126a762f","impliedFormat":1},{"version":"d4a7f56de92773c788ef9c17bfa277350645d01b55f7dc951f4d6c92d0ab864f","signature":"a1a94a51f4535fdb4fcd0629a25679634a46345b734b236fc8ca32fdb4fa3576","impliedFormat":1},{"version":"0b4d1191ffd90a00a90dfa7d7907ec653b62c391609efaec92a86b0d88de0531","signature":"75b1d6788466e34989ca701450c6cc1e64a55828255bb10e103762f12e6fdf51","impliedFormat":1},{"version":"d973aa061ca79db14800f873e2e16826f7794f3487a6a5afed352bd51f5a10a6","signature":"8e0cd504c4bd755a458e2d0cbac726cd6b4b8f1069ca5e620f508115854f56fd","impliedFormat":1},{"version":"c459456df733e76df51d75d99afd2c2bded152fd30835d123982949a6eb2a977","signature":"033dfd5051404b9d2cf50e666903910c950058fbda3a045a348f6dccf53bd7f9","impliedFormat":1},{"version":"bf663f84b00cee17f0b333df23aa41f21016d953c339d691093300773ff039af","signature":"05101f44b6269c4b1f2c13eb5841db1a8fd4482df6ab53dfef6183eda9d474ca","impliedFormat":1},{"version":"47c4713bc31b7731fa301a6480b4d45b8751beb9c5fde88e60484612f19a8a41","signature":"4f234b444166016f27ef2abb7d939cd646c5f662ed53911143ae1c40011dcaf8","impliedFormat":1},{"version":"7eb4d7d7a258e2b2c1739f0fe1b59b006df67964aee0d544b6cb4ecbe52b8fbf","signature":"7306bd453f9accd250d28d5463c6a69c1b109c55dd61eaa0094c47df626bde85","impliedFormat":1},{"version":"19d40f216d2f11bf2cb2cde625576ad4a9e41c8bb991e7351e32c3168de142f8","signature":"e1da0f6408591318fdab36f7347423f81d0598fc9efa58bc4cdd50d79fb1b859","impliedFormat":1},{"version":"d9e4b1e7ab5061619b7573fba0b9de1622fd43e489d8c134a247e17a281a6a1f","signature":"e8416486ceb5d5c66e27e6f77aa9d55e633928170a1cf072806fd0907be14a19","impliedFormat":1},{"version":"5dcb8d291c6679454fcbd7e3be1fc6317c958b9d2604f25ec68ed3348d18002f","signature":"c33eac87d27b10c01e23fb6c4a059b409e3890accf6d0c6990eb57c02fcde5ea","impliedFormat":1},{"version":"167661a5566d8db841cb5699341f0c8e782944615a219d0de2c993ee12a278ad","signature":"9879e443295b95f7f67ab9b7d1b78dd3bea4e3b85ca2bac6dd1aeb67467fbbb4","impliedFormat":1},{"version":"2cb139d0ecdfaa8e3cbd7e461e6b912b0342b7e2b9e352437018593dffcfe45f","signature":"01535e68627baa0293b1f648eee1d7fdcc841c3cf5d0598b335954207e7f5d29","impliedFormat":1},{"version":"7e2eaa9a5d374644fe92ed372fdc7fe69e1ba58c7e0eddd212e63902d00c2b6e","signature":"ac0c9feabb74f830a588d6751037b05598111e7a39e95bb0ae952373d4b0502c","impliedFormat":1},{"version":"95ad5ed234879b072405fecafe1e98cdda3fbaa0e4ef285b42f9b80f0f4628ec","signature":"5fec6fbbc1ba096613facf0be0826e5ca6274c91fd6bfdbd6f43dedb89635bb4","impliedFormat":1},{"version":"1ae1a1144bd31ade89a74d14c2fed4b0c3591473fef281c445dca9ff7c109b58","signature":"b9b68b62c9b5aeb4006e6c4dde26d2cb1880d4e97c3a23502877036684eb959f","impliedFormat":1},{"version":"beeb12bb7b8dee5419592b99579e5d7ae8b6dc490a8845e0ea056980cc22eb78","signature":"4c4c481c80a3c3060ace92a2b25f3a4c7a5af2c6ff4056a7aa1a7f69f445b43c","impliedFormat":1},{"version":"0eea4622758cb9ecb1b25ad271243d2f84f822c14ee95e032ee1cb450de7a16a","signature":"c9b5e9f8814c823a3f5f08c0b21d4256992fd60a733f6b36513fb896b0f20d17","impliedFormat":1},{"version":"0a4c53a3c0f26320b5677a6577ebf6f870f75fb98d6c1d9955f01f022ce3c1ef","signature":"551d597777c5670c2e811970645df043d966a6523fe27bd6717926345a8e6d6e","impliedFormat":1},{"version":"1bef64495dbbb40385249cf5921ea197c610d25830e43c6b3798fc7084ffa7fa","signature":"be99fa528dbbef391bc8e7e2fe801aa01ebbc67fdeedae26cb011bc0ee9bfe7a","impliedFormat":1},{"version":"723cf9edc5b531108542670e9fba8a4c0a7ad525b57a26be9fe8a6f974e2948d","signature":"1cd0551f79c1ca4bdb234109df7006b6f0c9b0d88ac7cdff969b0f83e50fc088","impliedFormat":1},{"version":"f31d37f89d8c2a20d287f12332caf9663c7b386acd9490e553485337a5158b2c","signature":"2f02cd6c4bd1698642a654cf30408cc857d10b8b3181932101cd1ea14c867c63","impliedFormat":1},{"version":"a7de1c9ac611dc934b5a145411b54bb91c645c629302b128527ba7ac1a542963","signature":"10eae6ec93270609f36aa02b088208d3fb344fc6b5fed0effd7f7517dbc2023f","impliedFormat":1},{"version":"ca767f6ac450c77447cf4e4241c8d1adcdac931207c8f942f1ef0342631b5805","signature":"04df56ed45f263f890907a993100261dc1d2a0db594d77a3f08615fcf502edd0","impliedFormat":1},{"version":"8fae84107b792dc62c9df662e01c4c0c44b955c674bc54e27d7cee3f60899e12","signature":"43e8ac40470e822f3392afbceeb5aa56989b5fa37efeed5cc83ef7cd1e4309b6","impliedFormat":1},{"version":"1797173bd966cf1eaf31f1f6fa1aceada0c717719e0291b51e85f1bf61eb6b28","signature":"f738b94f4a0b5784ec85bcae60b594848046af4ac9b783406c68b21813020404","impliedFormat":1},{"version":"118b6c6f8338a6a061c089b42bc89be635dec570701abd1ee782b50b563c6758","signature":"03193859449553fe47e27005e5b03e2d7dcacfd6ef86cb4edb804a3af5980289","impliedFormat":1},{"version":"62352ee4bf20199e2c5bbce3f9200eba6bf1ad6ea3fec72efd41531bb2193651","signature":"3da7f45edea8e2eb7bf3647ad7ccd1c59ba8b2970fa38468d30297e7e064f965","impliedFormat":1},{"version":"f10ce61cdc2efe89adf7bdede3ac28d712bc35e1ad9899569e2a7f2a7b40beec","signature":"35ace7780625770dfb85b5d5a9d36fa279c0c5e59030753c8f7cd4505cdd6e6a","impliedFormat":1},{"version":"035fe6013e5948d4de13a105c51e0afbd4ca55337ae0967f992a1a25f6b555ce","signature":"e9547a991cbb9d8c35d25833f6aa525a6a068da4cfa8f71bd7e063ec36c2a95f","impliedFormat":1},{"version":"bc1791b0b133340a2f9d828e638821933d57d429b1e15ac9bfd453e5428a6226","signature":"ea82453e1a4f6e495e98b550d4d10589618bb9b86b0e8be903431dcfccd7b1c1","impliedFormat":1},{"version":"6547b172dd405513ecc794a5197bf92581cc1e4483fbd92469b545f5fb3f13c3","signature":"8c38465609cdf051a4f01e5fd2bf136b13fab5f228930f88a6f2acc0c99a095d","impliedFormat":1},{"version":"9bd9544f70b6ccb2b0cf5cbb79804b02efa09c6b0091b12338ec3c2303b31cd0","signature":"a9929114a2c619cba7556bd93753b36e8f40efa8cf4b9bf8d03aa1b6a4a0a78f","impliedFormat":1},{"version":"af0325be28ca7c40e71d3a2304ec0257018d881011c09f009332d4d38e59b4fd","signature":"5756fee6726b2ff1c09c4147bfe6ea44ff703f74d0d4449f390e430a3cb55cbd","impliedFormat":1},{"version":"679518e71455f84432bfc9d6d77d34903a4223662af8745203d2358667912915","signature":"e788ca63b13d06041f643598e890fcf4c11259d731d9b86f5a8d5201a84f438a","impliedFormat":1},{"version":"98fe85ab16a790e7bbc796c865996742a58f0f85c9866b4577fcf0703baf9de2","signature":"a5e1fda126a03c5698c9831a8a317718cf84108d19a3421858bee38985b0ea6b","impliedFormat":1},{"version":"6dd459ec3f2e675a7d597c2760d5d85610db651f4bb3071d4a745e05937bc547","signature":"3cfb75a8b3b9827dc0ee96e56e9b8189da6b15705673148173e1fcaad110500d","impliedFormat":1},{"version":"0c391c27ba93ae7f9462acc743f75039f4d7c43b8c99baf84f48c7d9a373d1f1","signature":"6d549f53754e7b9d23fee79dc07bb71b3e97e04604bbeb4dcc045bbd7f336553","impliedFormat":1},{"version":"80a56b8d50f58cb36591a92df33cb44df8f6a3f3e06de6a901f0e53e82264937","signature":"f75079c08d4f1130b3b8162d12dd406fe8652df41dda4c701d2d66aabb859bbd","impliedFormat":1},{"version":"65712770dba0913947668d2d6ef2a13f16f6a91880c3db0838c913d5ad91cff9","signature":"ba7894e76d012421baf9c2b52f457b056c0dfca8eb01b06b512f3f8379d04826","impliedFormat":1},{"version":"4314b7dd5d5d3240c6a353d69da26fe1ba50c3b797abdffd29d6382b531f5b53","signature":"3553d1640c6f3342be3e49316f9b4d0fc5ee389222f44e512db064c082e756a3","impliedFormat":1},{"version":"71212127bcac35431c9bf1b7940b3f8ac46dda7e8832feb19819ddc28ac31aa6","signature":"d9e2fb20e4c1cb9220edf8bbbe1139cb1b9670ae5becf917e5e8d8ab47dc032d","impliedFormat":1},{"version":"176f9ba3ae20ce04f497a7f62e84d408e9d1f32dd32d858aadf57e494f2e796c","signature":"74b24072fad5c0cee31295cc5fac685f6386f829b31b131d1ad1049a6c2c01d6","impliedFormat":1},{"version":"3a3b73b76397434e7928983a5a89da501b18bacd54845dc13f3ef4151470e3ea","signature":"9d471d2ad2a062fcf63e3201fe05f4dde9c0bb4a967c75e1af30e551fd4493da","impliedFormat":1},{"version":"27fee5feb5c4ba9c3a689aec3561465e9291a5324829f8855ecf747e02d98ab0","signature":"da6848e3541e9285f99c95ce975ed321d80b566fd73bd89e1bbe5a123c62bee5","impliedFormat":1},{"version":"332947e7d77d02ec4c3290a1b162383b1071ecc9f4d5397644f5cceed8ad900e","signature":"0640b34c7fe7d049999a6af765013f471dbce0ed68d7c49017c93afe2f805e0e","impliedFormat":1},{"version":"02a23286018231fdf185d752bb20da7470b7e7f83019a9bbabccfdfb37ac7d27","signature":"ecb28302ae5641f860772ba7bce1320cbf2949289e1371bc8bf01e421126fd66","impliedFormat":1},{"version":"1a4923ae038284d4db2ae932f79c9283f742d3e6b28ef40d1ed9a1e1e58d4362","signature":"190fbdd2e7f8efbf0f525dfa76c0240b999c133f0d6d0688197b7d651b0a9ce8","impliedFormat":1},{"version":"7008d7e609264b1f1e9573a10e7009da7b8be82dcd05d185d366c8352c4e1343","signature":"87c8e0284f964c3000d3802a57d46e22fedb4963852f329bd6a1f69161caa438","impliedFormat":1},{"version":"54a79e8d63fcb5ee371fe7dbfb2cb6f667276a63714dbe445d722da1e39e53dd","signature":"cb678f73b2df198b2cef9cfabb3de1e052ed8e0da113773c637f109bda5081f5","impliedFormat":1},{"version":"a44f9ec898024c0542155d67892646db8391128c4d34e1d2319daafbea399fa3","signature":"1ad56bb2852ad38fb8a21a03c77ffc43ae0509b9a184b15657d8cff5c9d77a52","impliedFormat":1},{"version":"9c78aa4fd4c6b55f0a31923f31732db94bec7566da20dcd13283a0d3735bdcdc","signature":"c24f359d7c3111c6ca2091a70aefe6397b6f378762c328544076b2dc229add8d","impliedFormat":1},{"version":"712462b7380284a4854a046d8be5c2ee2e419ccb65af0de217e577c345a7625c","signature":"fcc195b2f0a1379cefd1129eaf937ad86c87be92c432d88dc97a9b02104993b7","impliedFormat":1},{"version":"d054c284694bdbf21f27a6403b1cd01be3a20064f645ae5a2d20e069b1752f16","signature":"b9b1a5c09e9f9886446a8dd76a6fcedd21c7bd3222a45241220d225e598e2cb1","impliedFormat":1},{"version":"dbe1329b8fe0ad6ccfef2ea2e6ee85ccac8281310527b9016eaf23e7d8ba418e","signature":"44dc466eefb3d61100b2c66f41e955617517cf31b9d2df14fa1c1c3de79315aa","impliedFormat":1},{"version":"aab814e72513208e2e666afb1a44894cdf7c2b5f3da9dc8788a901548e37f80d","signature":"2b2393c22baabbf13e988cfdb0974e7c45f108f46f7dff20bbab22624b648ddb","impliedFormat":1},{"version":"c3b286fb99710f5b26c4091afd2542ab8da98080f5cd0503659f02b9e7943893","signature":"1091265b57d5455b67946b07b1e8d6e7de069bf1dd10573f84f4fe70eb78612e","impliedFormat":1},{"version":"860cea5c02ecc6bfa89e290b917fe0804cbd2d0fcd1d68c65f44e6cdf1a3a823","signature":"4e97dfe7480f52fb340b31741410569e428b74f2a81e712a6f86d99734766d66","impliedFormat":1},{"version":"ac76f838b776d43bf2651b1eec39f580d2b54877120a9037f623b4033faf3c4c","signature":"7353b99ad84125f62ad90227e000f34a439ea758007bb38651db32772a860107","impliedFormat":1},{"version":"73b4fb8c1109abcb0ee3ab28a447e32451ab9c3e869ddb6b3d4f879d49bd2c9c","signature":"1d2b5a6fc615cf2d2207c9a9dda1b005142ea3ba6ed13839fed92ab73442c6d5","impliedFormat":1},{"version":"e4d1ccb5c3af3f80b930da4c76654b582afcc325ed3b12827f6c471afac6b5b9","signature":"1dbb576ed1798061a1a2abe2fd6d9d022547f9f1008b23e9566423deff6bc6ac","impliedFormat":1},{"version":"d80e83cb7652581d1588dbe2a4918b404696d76cc0dc172671763e34672989ba","signature":"8e123bae4e163f9ef2d7856fbc93e6ef5f665405efe58451f3ede56b1760f695","impliedFormat":1},{"version":"b1f01b648b6c0ea920a235e1dc110f4fc50b8e6ae86e73db4f45687095567865","signature":"caab49f1d5cb892a1416db6ba9d5a21c494f8b31e70b58a825fff69cef6db3cc","impliedFormat":1},{"version":"8012e2d337392dbc4fba739a127a9267ab31aabea89dceb8d4d85bf4ee9334f4","signature":"a6dd1cc80af5637af74864a3d8506d1314e351957ca902096523e482c057c020","impliedFormat":1},{"version":"1b12f76bb4d35093921799a928c8d4738040298e4833c27f3e8917bd5b95f090","signature":"8e4eae247b45857734d46530342167866f2d8fd04a3c34c6c07c9fe9383ffc35","impliedFormat":1},{"version":"040d056afe54007f9107137849b6673e793456bc00fff587c7f79d52ace4761b","signature":"a349477e5aa57f7f68bf3cdf9800a1d94e76736f98af90f8e7709e05ad358199","impliedFormat":1},{"version":"2ec8a10807b520c581bd6c2d92626e2d3d25bd9903d9e3d9df006e97eb6630d2","signature":"48e471d8f1efe1354d896aa1e5853e21488f4e5c3e202589da85b6b056fa9b70","impliedFormat":1},{"version":"b781a5b452b9a9e7a4e31fd8cee0a45b5c168907ca6a388791eae14cecd6206b","signature":"17a814514881836ca35d1c3384d3f4379ecf4422ec044a28c86773c30231f07e","impliedFormat":1},{"version":"7ec647aa517cd86f57e944bfc2a6ca33156a79d92360c1eafa75a0a6c133166b","signature":"634b43f063c8cc46935f5d55a84512abcda4160b9081e51c3f60fac968a3f8dd","impliedFormat":1},{"version":"78617a5dfe72ab148f7743b9d9ca7db24fbc2f9d85f267ac42d7e861a707aafb","signature":"f9cf50b8c1947db6aaa8a4edcef16b24cb071813e36646abd6bd04f9d3b6564e","impliedFormat":1},{"version":"83525fe364a4cf08a260e489e8d8d2cb2da60eec682d63d55cc1c1aa656ba1e2","signature":"51c460ed5d509bef9ae4a747b7bb1360dfd1add64140175a03f8a521e890c108","impliedFormat":1},{"version":"3255b80607baa952a71c4445f2f99a6e267f1b0e3a9e8a7b99e07fb14f771b21","signature":"ff70fc0cdf9ba86a1b7af339911e4a03f7e8fca02387681735e88efaef83fe6e","impliedFormat":1},{"version":"143c74beb6fb993074bfb7128179231bb99e1f47c130278d266d6db3ec99e728","signature":"b8c5fe6c10a43e0082ced2f79a4b105c4c091106fbbf5f865fb6d8cfb9a504d7","impliedFormat":1},{"version":"4c39a1640fe01d07438546db1581a733b24f8202d1150a0347e80c8c34d6cb63","signature":"c7a7f10bd3e12b1b74b7301a5419859f74a769482f258bcf6b80dc6cc07a7db7","impliedFormat":1},{"version":"879ada747996f57f7832758a737f115738a1a4b4afd3b89ff6eb483f56710e21","signature":"6dafb2c86f1447e2e91c7823dbca4b710253c59a729b2e0cbe19e6d101d82ee7","impliedFormat":1},{"version":"b7c249dd248e26f3cf30b8897acdd85fb0e0f9a0310b896299c4ed1d5c80c70a","signature":"2830307ec7bd51b37c7548c6ff765283dc27c12ac92f23e8763108b86895771e","impliedFormat":1},{"version":"4837b2349fed928417408338aca2b2dde28f4c7f79579d974fad14135c55e082","signature":"3fcb7c7d5e1c3fd42d1d22bb62556bbc494e08edc9663f678b0d027bd2d9637c","impliedFormat":1},{"version":"7eee5acac12cf5e617b86442d1f424219b4d45088138c94205c45863e3f374a0","signature":"5c682571787c28a12d3da731812e164110380e55b14d8767e9a908fd7f2c3827","impliedFormat":1},{"version":"e330f4ed51a19916c7167dfe7a7068f3a776b5dc2b128df2571765363d6ba4ac","signature":"1a73ce1f5555aa4a81da0c1a0caef326abd4bb1ca9528405ada6aa25c32820ff","impliedFormat":1},{"version":"0030c86c2499a8e727721d16d3c0fa5eb1736ba7057bf550ff18f2e2e02fa7cb","signature":"58a5009b1431a8900bcf797d338906285346738ac0b620248563f7a44dfda2c5","impliedFormat":1},{"version":"76d944c1dbe484587406909308eb33b71ad064b520725f7333ea833f9cb6f300","signature":"9a695cd656ed098408e1bc3b8806e47cd6ddec23f40f138223395d0b36ffdc6c","impliedFormat":1},{"version":"13c4b0a5dce54212dfb73d9f3d952b274f85d4be3ecbf5caeab702953a5fe72e","signature":"e03c5370a4b6bed166c600f6e26a6894fad105cdba0104465c6808ec6bcee887","impliedFormat":1},{"version":"9726f075ac540404b382e8c3186841efc2c1935e3a1e7849f6e775a40e9d3438","signature":"d6d19b5bd0b2bf9892da8019ee26d9fbefd4fdf8beae03c1f1ca56b5020e3a4a","impliedFormat":1},{"version":"a761ab4d4df93a7b275e81b24219127943426511c9f2fceea33101bba028f753","signature":"e0fbc98e35e4f70d31131f0c834c538d249b0a76b00eccb672a79fc86b2170de","impliedFormat":1},{"version":"ee570201cb29af0bd6e4dac2f205e6ac15babba997b1a9e10d99235691afaea7","signature":"b0c26905f1ead9e6439f3f5816f3896807465402636db11908d9a235007dab86","impliedFormat":1},{"version":"15f2bb2da2745a41479c8f12d667a5d9e22fc8d62ddcb9e32df118ac49cd75d5","signature":"e1fe158a326a06f45d7bec081cc3bdc695dfc52961eb482b16bf37b75187b077","impliedFormat":1},{"version":"e4b1a97d85146f819685a81359872553c172525838e3442d52c90edebe6b5876","signature":"5fbf82bdca7ce4c0946e8efb425f03b4090ab8cca9e5efca884447af60d67d9c","impliedFormat":1},{"version":"03a28c8f3892fed6e88614937867f88308f7cda4f82744a1932ce7d9cb95cd23","signature":"c05641eda86ffdd8ef53f4ab75e96ef06e9cc05a913b259a26f2899a9fc811f1","impliedFormat":1},{"version":"0577bcde45922dc65dc5699866124ed3e2d6f255f7e1bd6f78abc7b718ed2a53","signature":"dbce2dfab0e6e889364bdc385d5ade83c04ebd2a03326c50dc53993bd06fbb40","impliedFormat":1},{"version":"ad885eb0651d3b4751cc6e4f545bf2816169cb59f58ae62ef1f8a9197f1cb121","signature":"3b9215cc84f268225fbe8490d2ce35664b94d1a7f39a8b325c99ac51dd0bb555","impliedFormat":1},{"version":"fdaf459480471498d9a6fa34fac7359ada925b3e53b31575baf2ea03b5b8ca06","signature":"ab86619436eff4402d1d921634d7e17434f934e3f05562cc81b5aad9dfa56d69","impliedFormat":1},{"version":"f60f91fab036682c1bde15b8051bf6a47c7a143991e6236dff34d251f12bdc4a","signature":"c97536171dd7ceee97c11dd379704f47257731c4d87192f6ca31c27ed4e0b5ea","impliedFormat":1},{"version":"c279e54a81f0959ad1c2baefe3c8d4fefecab5bba6017e3205735ee70f99bb8a","signature":"e5cd7bd0df59329b951fca827572e673fcaf9cae978f3e77d801024051bf3a39","impliedFormat":1},{"version":"89dfa6752a5c545488491ccbc88492c8bbc9dd1f214e9362f65d5df5354f7d8b","signature":"7efaafde79da3e50bb4a7284e8d4cffb9f0f9ad1ae9081fe6a9f5b751a2dd774","impliedFormat":1},{"version":"ba985709a7c2dab7bb34ef1e47fef9d237c8b6d08eb20ee7eba9c78c1bb52994","signature":"055ead70ca8f12d2e89cee1f659f1d5aba0d899a96947de7304cc73a81b96661","impliedFormat":1},{"version":"f81b544fb8d412631c35d150b799dd9d3550e5bd971fefc37cef526e0ef85747","signature":"2e5731132f7a257aa96d67f8882cee3ed8cdb8e3548f542036f1f588099aa412","impliedFormat":1},{"version":"7befd35ed34b7bc979bce050bf046959d58e7fd6edcafe4c08a0493058a942cc","signature":"2773a8b97f8a2a9ecd863fa2cee34eb54f8fc067cf82020dbfe877578b644e2c","impliedFormat":1},{"version":"24fdae21f8fa392d5a13555d8389323850e851f90bec66bacf44350df07dbeab","signature":"373ae169c7a24288656b13e05abfc19579316a577cb54b5b74ae968607d7650a","impliedFormat":1},{"version":"6c0927bf216885c7e46c725a928e52c6a2db3c3548b1e78944982537442e7bc0","signature":"e9c112812f6eb5682fc55f6cc5243b828fe6527187fde043655f208664d8b067","impliedFormat":1},{"version":"237b74bb446228bfb0b71980f14a788063e5c5b94adc00661a439de5241e04e8","signature":"94aa253537473bbef530171ffa33a3da74d1a634bbc462da4600461d5e5526e4","impliedFormat":1},{"version":"68e49051432cbb88f787024c00a233365d9b6075d7a5fa91b2672b2123d2646e","signature":"a260351700f3827b24f0c28abd6190572aa7d04cd1e4ecd2c0ffd26c0a8d289d","impliedFormat":1},{"version":"c8bf7147d96f27cce3a22a14d1b232105a555eaba51c28442e75f12f76211dde","signature":"0acd265a2a12aa3f6c5f49155133e473eaeb24d0021daa4ea301cbb0301a1c13","impliedFormat":1},{"version":"a1cf17f85796c1889da346d276fca69277806712e1c2de2164984e71e530e0c4","signature":"f04d0a8de4227ddf4d6fcc048c467ec6db4688708e4c20db5a922d92efac490c","impliedFormat":1},{"version":"8300241bdb9244b8902a98fee00436cc517f55b4457ae122babbf27ab2b9903d","signature":"6f7e8be681d64c526c24fc9971934268841e6f7440bfb406d1b5e7c4deaa4ed5","impliedFormat":1},{"version":"54aebf68a0a36b9e078de31912d4838311f87911e4c21028336ad74d21e4a306","signature":"a2b9701b0f9eb74062fd98870dee6b2e5fa6c6306611e4ab5b6b4d0f3b3361ed","impliedFormat":1},{"version":"60fdd86c9091993b34e38cbc2242cc0624f1eeaf33e41bcd77a4e1f510739c46","signature":"5e3b8f2aaabcc9b41786c8a6be976037124647b3b31d9deb4280584e712e8769","impliedFormat":1},{"version":"f88d8884a53f0736a05ff3c8f57eaf13ee8852e393792703ff5d3e4364ee7251","signature":"51db0b52373e42ad001c6746f2f86685906e538c586b01d672f3b5a1816e7b32","impliedFormat":1},{"version":"f70a8074a0675fe40d96c0c084fbb2b3eda00a18c6594a66b44c1d48310d8230","signature":"5e5baa553da03356228ec1cd50e8af5052fa733dbba8937bdd7abc82792d45a0","impliedFormat":1},{"version":"06f297890006fb2d48809ecdb7f41c45de173ea51d03195420aa689727ad43aa","signature":"e37ac64a70ab7e89138c90865c1e8688ba27e67c0ce80a10d2f087bcea6d598e","impliedFormat":1},{"version":"dee666999950be86fd63dd1bd3d8b48cd1b8f53c3399e207e68f6e8b99a0c773","signature":"848999e52fb0fdbefc5fa254b8272c9ca0da8cf4adac218fdf02c487932146e8","impliedFormat":1},{"version":"9de847a7b3d940a49ffd5770390d2c2b2fd93521c4ab9b1859e0ae0075be10aa","signature":"c6f49e7c2da8e3fa5864c8163e34faa5f6fc2f27f3525d5036c06a0c5f001036","impliedFormat":1},{"version":"f12753ccb3c9d97eb66a71e7fb1f31fc5556a744031efa7bcd271ce78f921449","signature":"1c395bea817d5987bc5d992c87446c9c6b0190059da3ab8739c30223f888f5a9","impliedFormat":1},{"version":"faaa6ce4206e3fadcc6275a7e559acf8f51b4a4647ebdbe5cb895650878cdf9c","signature":"842d4e8d54abb65087e13b1de024a07eb13193a12ce2bb30a59dc8ba6c8ac5cd","impliedFormat":1},{"version":"cafd94d1aa7b62c836eb04cf3a21ad972cd46c243d3f660148f3a22c4af06e2b","signature":"8bbbaaaa64eef5fe49a73d0f613431551103f5eea7cfb3994c11be1b454ae949","impliedFormat":1},{"version":"0674fe689cf050196e962fd8ee7e29edf3aeed24e0bd8b2fbfc69235791f8a81","signature":"69ac081fb0f3573ca0519a79b8c09429806a341ca456182f3a0c8e40bdf536c3","impliedFormat":1},{"version":"e5bef04b81023eed125b6d6598d709360c655d02ab580092bd355fd6dfd71780","signature":"4d4464cfb8b59cadf9ae09897a39236aa7c17fad1c4d25ad9f64bdadbe954dc1","impliedFormat":1},{"version":"24caced62238eb2518de84a250a363ff39035510f83b7b734871909488b69265","signature":"682cecc54b2754ee7769794c51a3c8a2875a9f5a7996153460cd6f5935e6be2d","impliedFormat":1},{"version":"6519d1df4897a8e37f57a3b1b8eab0b9b4a246ad765e423453c44849ed5bc8d5","signature":"0a941eec19ded702daa4f93d9eafa3f1bc1ad60edcf22248d83333b948c007c6","impliedFormat":1},{"version":"dea602d11ce1b7fd4bdc393800f3bb31dbc36e73fc171d3e385e1d36416f51d4","signature":"3be45092847edcfe9ae5b6f4c40d19c9ee86a29ece7dc7068ac8acf912e6bfce","impliedFormat":1},{"version":"d808c8aab58dfff7d2746ff7d068f867cdd0baebc5625f5b02db3188ddfeb7a2","signature":"163531aa57832e46b76c09019bb9fd5ff1d09ee08787c0e5d790a521efc55f31","impliedFormat":1},{"version":"ab80e88bd31af20210d05fb6db340db254264a88b9bb845af07d66007ff0492b","signature":"283a7eebca79a0bf5696e30839b88cb6ad4f0993a9ae5cb2416139eccae5b0e5","impliedFormat":1},{"version":"6713f19599c03e6a16f6bf4dc11f7dc8ed2c264c9fee6ec3ffd6e52557dc6a94","signature":"c7e94b44e9d1df8f8742f90720a34bd6ef0cbf05bc885fe3908bebfc4b45aa5e","impliedFormat":1},{"version":"319bdc591624310dd54ba9681288b76792d5296e1cd69ec683ae8bbb62b01c9e","signature":"65bf793ffc3e3d596389ba2c1cb1abfae31723d41ce124ec64729e5660143f6b","impliedFormat":1},{"version":"10e29aa84c5125d612518ee28a0e641443e8221adcfc84cd3180f03fa2bdce76","signature":"a76af4cc4069b5637eeab80b40bdac98a6b9915d8988305d6b5b43a58143bbd0","impliedFormat":1},{"version":"b018cf0e7538e3f993ec0a8747a9fc28647e3f7ecde865e76dd300f9db7fe8df","signature":"2fa1e0ac09be854ceb8694342b7133a354604b4c32be4ac49cc2965c602f0cc9","impliedFormat":1},{"version":"6cbd723386c4c61526ae98b5f8971e244f7875457549d7f7284921c28b88c86a","signature":"0e5f8cfdd5a59966de62a7c5ef48ac49491e5166669c090d0f68bbf59907feb6","impliedFormat":1},{"version":"8d11bf7d7c565d91e5a06d0732b09eff8aac939eed7ab8f4350a4deb0218beb6","signature":"4cd59f8577c49861fb1389e19f3ea96508af81db44f0f64853af18d62e48dcba","impliedFormat":1},{"version":"c25ea5267bb2ec5f42d772a0c1c5c93baa0850309f921315080f4ee55fcae8c3","signature":"562d079bec56088d580b420e22f91e03c9d946076f91413b44236f08cdad04db","impliedFormat":1},{"version":"a19c74ff0497705c9a8cd07885e3410b745e53d3b1b3feb52801a9a045336e27","signature":"14f51e0dce4262352bccf5ce142820d1581c4eb4feba8197b715913f5df8ec59","impliedFormat":1},{"version":"84e513974890a553142347282a495b6714d57b5f5538f9b4035b4ddc439bf87d","signature":"7ab5108e30f520f5802dfe7d2ebd681a0794459d54316cfec52b11f3e97478e6","impliedFormat":1},{"version":"06bc22c82f7dfc5daa6e790dbd6ab166bbb76c79e612ef32af879aba05e2c043","signature":"f1a2c3ecf11b9e27c25f34795e6fdfec1b7a934012ea9cbf1b9489eaa24e2de5","impliedFormat":1},{"version":"2debdab81eb75b7aef2dfd560951f42564d8520e0a40914c06fa9c9041236868","signature":"d9fa238fd19f3b1ce653fb02140527b96dd0e192e33fd7b372dcd99f3e5b3827","impliedFormat":1},{"version":"e8fef88627e386a855f0af47956d47c4bab324b9210e32f4359016e875b78ea2","signature":"34a38d6bcb7a98fc3d93d8136c7fb88d14f272f8a258cb209da56754329398d7","impliedFormat":1},{"version":"79e84f4601933e32afc28092920341cf9c702e15e3cd077e21c84dae4bf234c5","signature":"72c500bcc6d1f00c7ac9166aecd432b270c2620414e7af3f8563fe73df328e95","impliedFormat":1},{"version":"e1f80b0babc3774aa1b3a12a87bcdc2ffa18c7187df8ca1f4e9b175d3e2af84d","signature":"35f5c6ccae5ca72c54e37b5df1388d7886bb4f73283f921c11c827e23a86e025","impliedFormat":1},{"version":"131de515299eac6b0927fbffd2bb98a03dc1928584553fb5772b78835db633d3","signature":"f22810a7170871e76ee9a2cafbc01bd7e171cdb3af6ec73e831c7903beef2405","impliedFormat":1},{"version":"705b338d632bf4593860ee5ff65cefbaf06bad33f940ebabc95d1bb3bb34ce63","signature":"3f8036123087d1ec712f77d8ffa2eaa11f71d155d27ad9dc31cf5f292291008f","impliedFormat":1},{"version":"8b6648c39af2d1222f14270455358acc9c9bbb33db29e988b2ed3fdee27449e1","signature":"a4213135ed56f84697952191bd40773900f5388f8c001ee6b0949b1180e04f0c","impliedFormat":1},{"version":"110a09c1c97137d3acedaca7da2c5dcc8eabe210f1c5e3a2ad383ae498daf7bb","signature":"8b929dbdb765375a48dd1c3658b0f946e22119eeef5513c08f07498fad02bdca","impliedFormat":1},{"version":"62c5e956cc5293f2673c2b9e3ef2bcbfdaf74b5013273a432119fef1e8f12138","signature":"5fd861cb41aef243312c753314c62fb459976c40aa924acfabb20f5fd1b3f5b4","impliedFormat":1},{"version":"f4f7bd7d85b82cbbe615a2ec705cf77f0d7b4c2d525b84523bcd08f989cdd945","signature":"8a2c5a86901ad1e21590523378d38da0088ba1f6668a45e6e4faf0e8c70f8124","impliedFormat":1},{"version":"2edf1c35885aa275bd1c8995035a7bd1c05e05fefc6e4e6c67d1c0cdbc320f06","signature":"986f995ecaef40b99d2f0ac6f621e35e8a3a14be083616387a8d068b781af93d","impliedFormat":1},{"version":"0d8c34db3e669e583b2ae1eb4ca88257a2062f6c4f5120544c848c7e4aa9085b","signature":"aff7c7a44a809a8b160efc672feb2306e866c9378655b0937fae838062e40faf","impliedFormat":1},{"version":"6b02d319c6301c50bc4f26c5ce49d1a912f36e78f86167e784d621e07879caa2","signature":"534b3df727a9598ce19232f9b9b78196676f3dc15f00fe6060e7797c651064b7","impliedFormat":1},{"version":"a4741c757fc91cd23935bbc82b4979e7143c3d7eeb01bddf20561d6e56bcc51c","signature":"9a1879dae2233af2a1c747a715654fd23dca5021345b6e905ef589a48d3cae48","impliedFormat":1},{"version":"65ff2cf7fc1fa5c87360f7031c6522f50c3fd83102a3a757944e901a865f2392","signature":"bee86b5f94ace8d574bc907b2793f141728312805ce727855fc8657a4dbf3471","impliedFormat":1},{"version":"ced0ae007cfc5787f2176a3f1ee86665989e68a558a1ebf6161119594cffc61f","signature":"8ac9d45c25b11bac857f00665604361cff070e01491b78e3daa05f7175296f40","impliedFormat":1},{"version":"96da5a9523823051afb67a48288ec99dee73a5dcaf09e9a834d2549ba1bb237e","signature":"9ac39c14c1fce7e748b7cf630ca4ab7ef4fbc86a0d909f8d36a5c6957be8147e","impliedFormat":1},{"version":"8ebea9ed5114a2fb057b8f24b1986001ed1331bedce4bcdafa16c1feaa9cf60d","signature":"3c81d58bb8d635cf4a47d567b19dbe69669ed8c5cfa00c3784363c1c14b09127","impliedFormat":1},{"version":"2bb2bbbc348a96478e1c9aee88e378cbb2089c48cf7843a982d16a5d9dd15968","signature":"6b3163649764fa41485acc7c0f018e40e17fad01b286b47c3b57bfb60e9f67d2","impliedFormat":1},{"version":"2670827badaa7eb12895ffe3566d21749df72ff3f7ca1bd7dc9b96cc0ca834ec","signature":"3ef569d36abe2f46c89a8fb56cb2ef241c691a1d2cc92cf2cccf6dbecd557c0e","impliedFormat":1},{"version":"40ae1e289c16616dee72124912274d6b81df3efb6be14f4d2219ce44be555168","signature":"7ac3d7c1739eb0701aed5233c58322a89f1a93e9c77bd1b3b305d85453c45a7a","impliedFormat":1},{"version":"a39fac02402b5aa02fba06d941c70f133e3b2f28dbbc72ca5f94e8f74f63dfbd","signature":"bdfeaa4cfaee68ae454ed04606cace6784ea45c5fe50038711f3d9b37bcf3670","impliedFormat":1},{"version":"bfa99d70bb595ebeea075372a110664aef1d1879ca443cf0ae39ea29fda767a0","signature":"3585070ed6b137ff21290fa3664a9445aecc72eec23302de93cfc70575c7ab79","impliedFormat":1},{"version":"0eb0d48cf7148ed7fba23044af47a91ddc675b1e49d9c43de5cb1dbc36c0db03","signature":"e18eda5753b1cbd02923d06ddb3dcbf0f4606b69d27d1fb30e225e4878eb2214","impliedFormat":1},{"version":"6ffd465b3831e6a637a666a4d97acae09795c66fc830b237548f4f9532124b25","signature":"efd0506d1b55cf4a391342c1df5ba999f970190d479813ae9ff3c354a3c45ba3","impliedFormat":1},{"version":"a11c134f744d8bfaa1ed14561bc159d752eb9ddf1b1415c493cf3e8d4f7b415d","signature":"e7f70f5e854feca7bf295d0656f21cf737f77d0fdeec836b3bd2fee04d69317c","impliedFormat":1},{"version":"f745a7f33f34d0401ca13d33624a6910e68ae97e9af352663ad0d7699abb5c1a","signature":"5ffba8309bd055594494d1120c6589fb59dc83e55e169c9d2f89dd4832e28204","impliedFormat":1},{"version":"89e1952aebcc16d6f086b4e5f1be783cd412a7be0dbeaecd612516ffbb1994a2","signature":"b50b85b3504ca48a67c6b296f528aa9b866bc36c22db94fcd0d958343f4b47c5","impliedFormat":1},{"version":"5513301a2cef7f8787cdbc01ab2ad8b947e028e64d0bdba0b32e807985ae6b1d","signature":"cf8db151668fc20b5c56d3ecd2b474a91e618b2a53e5c985abcc8925b414d1f9","impliedFormat":1},{"version":"9f60d6bdf06496d33e9e11355f4e709054b8b222bd74cfd51501d2b486702ac8","signature":"a4dd1e448d5aaf3ac9d758638f416a0c4af0013fb37348bdbb7678973a5d10f1","impliedFormat":1},{"version":"828c238113d7d536a18352d347fd1013b880688c66b49ab01245ce6741b55448","signature":"3887901aeceb3539910fd14fbf425cc87f3b6520d2f374a80e40eff05693f3de","impliedFormat":1},{"version":"98ff0277da9c711a94a2c1a696c7fdb9b088ad2cc4088e8c4cc29970444af453","signature":"6d5bfde968378697293ccd5ed0b7e9b8c60a6022686f9015301f42fbbef7cadf","impliedFormat":1},{"version":"0dc938852ec486ded9f0a0eca3871137342be08387d2fa917e7a59b6588a8699","signature":"eedbcb167d2d62ca507bed6b703aa2b759e7de96f10d6356f8e77240de714247","impliedFormat":1},{"version":"8334cffdb1a115a49729d08c813d2a51c315b6a4e470ced84c55c5787bb5cd82","signature":"7c0d9f1bb8ca04fdc08887c0d72395eb1f01c3626f159d59539b96aa7f13f7bc","impliedFormat":1},{"version":"c414c617d88f64ad83acd066dcb862e11de4af0534a9a8a3454d1c8e184c2175","signature":"dd22d8a1233203781bcb5e435ecee28c44ae9fc1ad18a6d5d26fcf9ca5dbaa69","impliedFormat":1},{"version":"8116496b1c025722dc834a2afb5ce227218e42598988f6c45326c7ba6c4912a7","signature":"f3e2c696a80775c789c1484fc862441e5ecab527c02303e24baff58b64b5ba7b","impliedFormat":1},{"version":"60b090d85bf5e12f92d1fbb11ef9ef6610fcddf5554a63396f26fba5db4a6ef2","signature":"4926e68f375b1214c0e240a1b6ab151bb91223b3ebbd797d6a4dd0860a843437","impliedFormat":1},{"version":"c7c57e52cdfd66617f8f3e42921ba22f357af67fef774c7dd2213b9b602074eb","signature":"210d461c90df045d1ec17a2a2c87710ab26cd464cff86439b9a79f39d0e532f3","impliedFormat":1},{"version":"4a6557ad38766b579089244d1b4f3c2d2793447fdcd4e073731b5dbd233a9dc5","signature":"a1acac7b00b06bc7411afa5389f5961d09323f03ebe601553f4a433c7c1d89f5","impliedFormat":1},{"version":"d5f5b9c9d7cd7633911fdc9e30169bd0b8d04b782220663c3700be09d9aa9df8","signature":"94fa52b6944148cab11a03ff4cb19c432dc59126962750c89467f2656e57c78c","impliedFormat":1},{"version":"9faf15398ff54e5d2c3041b37e766c23632d7abe92355432d7765f67d166a4e3","signature":"3bce32a422f7e03f267f841dc4c0650f7e4663bbf97d61c1d1361b655989395d","impliedFormat":1},{"version":"f5bf3bd1f983a4a1031e6e0adf9e41e512a21afcaf819b63a26cd9bca350d7ec","signature":"40b75793dfacfde9aa53aaef8ae14c4440bb3b615340c1128106b7cbdb487682","impliedFormat":1},{"version":"8790357db6c26ba57e41bfb2c4d0edd0ecdeb9c4874c18f21e3dbc0f63604955","signature":"a6b44a4f130b594dfdb976387c091ccede0564af0a509ea350e99a21e9201678","impliedFormat":1},{"version":"6d6909785f1f8b84bc433d43198ae6f1fa82db74782b62b14110058d6b27f81e","signature":"39c85199438aafa6e79c6b60e5b3a4613a073d6a0f898dadcca19670e58f0e60","impliedFormat":1},{"version":"4b20a7cc176673aeccd34b0a4d9d899b2c3b3b1ce54abed3a40c38e79175036a","signature":"ae1de3a1cb4bcf118c1e6e545b6c84cef96c04de87718f82aa003ca605064d1c","impliedFormat":1},{"version":"d4f00054d9097f46f7bb95ca9d680ae08759b4e24f99065a0b8e178371c80905","signature":"ed7b2136f105ec1775c6c18f8195ff8ad5d019f481b19fc634b108b4cf97bc5b","impliedFormat":1},{"version":"799f66eabd849f26c46ae3ee9a089aec2e053e875f374a32083dad48ff00586a","signature":"a4b397cf5616a7d74f8ec48bdc785458416a893157a765ab15488fb62c8f8c0f","impliedFormat":1},{"version":"5097170d499aa37dfd101c25d0cb6c05aa2f79167a31cd7f27a45ca340ea451b","signature":"1485fafefa53b77119cadec6fd733c0e96f61023051cf9b5e9f997b5e2bbd356","impliedFormat":1},{"version":"d76b241fc28e664cb33fe6b54453fbe421aeae66f0a167d3d6e1a2580bea6f06","signature":"e34923f082b318adcab30a184d08a45358ff60b44bc9487c893ec117b74cfefa","impliedFormat":1},{"version":"6db1cd904c7436ba13d85d0461cb1265b4b0ba8912122bfc31941359a6de0dca","signature":"bed33e70e53fd3f8ba2569b81164dc8922d25b5b81d4a14e82a27190cf8be637","impliedFormat":1},{"version":"e8e81f688fdd16eefdea7bd70cfdcfc3cf1817f7c5d4a44c8bd718a3baa398a8","signature":"5c16b8051753e92bf83eddd2a1ff03fbdac0e5e6df9af67eba327c1e3765420e","impliedFormat":1},{"version":"7ad686df50d5352438975d82dbc217052f1e06c4b8134590c39916b28578b8cd","signature":"25b712b1ef4975ae22e6402623c34757a23b07808365b0b60573044b96fdc7da","impliedFormat":1},{"version":"cafd14e01695e1ff2e57e931f001a26cda2cdee6a32149e1f64fad739b639cd8","signature":"f06c1d03b2d94f17b329843f89be486dfb2413958556b879ca4b549738e7dc0d","impliedFormat":1},{"version":"f50cac7883f6e12b4a22a6abcf013bf4730452a355399bc0fa786d2a5076e69f","signature":"b23496f9d3849fbd35047cc1201bfc64d0117783601c68294e2e74b015ae364c","impliedFormat":1},{"version":"fd7bbb06ca79d95bd6a3335ff6d7aae9edf33bc128a6128ac0af0f31fa9c5ea0","signature":"b84db4e2b5ba80b1d37d14e5eca7dc5a6eefddc4450aaa800e62cdf3077a47cc","impliedFormat":1},{"version":"1ac95ddb5aff2cf9053a6566e3ddb31f922b1009ac38d642034ab4f55f4ae838","signature":"85283b3b91955c0e8f371391144c2e271927a4af3bb156b5f36f1d9d184525ae","impliedFormat":1},{"version":"75b5e578bcb8898a9c79cb3f3f0cf1bd9c99426f9884731c05afe0232942cc11","signature":"9c6533cd7f2f7ce7a5bee2516a6a53a481332de52aa836920e540973d162a86c","impliedFormat":1},{"version":"1bd2a46e14628d4ad8d6277c580363c2fb57e2532987b2c24e44baabaffb3749","signature":"55e458823b38c64bcf42b64f3f3be44496b72752c2fc5a2ead7fbdc2b2e78a08","impliedFormat":1},{"version":"875661751cc2259623b80a0633cdac6e82fc09e28337d3efd9d33bfc08fd306c","signature":"cccb4422a5560b5b3e5949aaadbc7cce93155f5dc093a7cd7360ea1d66c4ec4e","impliedFormat":1},{"version":"ba0d5385958762d7d67439dc803ae362de702cf586da8df3c00124bf3caec880","signature":"98b6f6a2a8e358cd313eb6699f5700cae0cab2527bf9039f6faec6c887845ebd","impliedFormat":1},{"version":"9cfa3b64bcb3e10f3d5e81f8dd3bde078a10fc7369ff81b045f4748d888dbe9a","signature":"7bdf9b5ae368607cd857a7465ca885b3db88c89dd49d070e46f36f6056599d56","impliedFormat":1},{"version":"56894b23b893ebb6f82f9de57d2416d1d0eef81a1766e93399db0212d44a72df","signature":"e1831213a3643c962dd2ac9953768aa2a71b07c4e314705a2bedc67c4816a7f9","impliedFormat":1},{"version":"fb9c1cb7e5b9dbe56255c201e5c7b7ceb45c7e01250635ccfe188dfeffca6ae1","signature":"8817bc595778beabd264741de63d940f6810ec777841dbb947216fee513095f0","impliedFormat":1},{"version":"0f2068fc4589976b181a8f3c60ad415b941537f24205250a7f2eea52b9c29eb0","signature":"d2f371d37f784ab76417d47cddc4cde29947aaba337059fbf384d29478528e25","impliedFormat":1},{"version":"674003fccfe69308f41f428af013037e58ff95762a0ae4c6e32b430b5826a660","signature":"125fe73fa8624b0f9585c05f1817a3985f37da4d6a3177b833b8256963f07fb5","impliedFormat":1},{"version":"83f5a161a16c5ad44bc2fa7f36a657b829dd59b7e5626d540caa80f862ca6050","signature":"03c8970896f0804eb84501e5e02adcbe054a421539b2538a141076337f82e850","impliedFormat":1},{"version":"adf5c3ecb725e8dccc64e7c7991e6143b4e6c99bbe954aecc67066436fa42888","signature":"45a6770ec525c48fa26694d1f1cbf98a39e4e3e72f8dbe4944739fc24b8644a4","impliedFormat":1},{"version":"b0c7baa98240bba07e2163dfc2289dd2926745c9c6efe790fc9d97748a7b48b3","signature":"a98283f065c4892af100d119b435282f7c5822b8b4216e0b0c5fea0134d8a1e0","impliedFormat":1},{"version":"e5b678ff7e361dbb65c39fec597f521408ae2d7c5ca412872934611cf234f6cd","signature":"1d46de8fa9f111a76f4b0e17b0b4f82dda60727a95e4014b9ee29da3fb09089a","impliedFormat":1},{"version":"9669f403ec8155dd4e299b46986cef6b4a30ed914e7be16115b7817e35ab44c4","signature":"af0fdbc12a9ce083b1f09ba2431bf1406df34d229abe5e21594f482b6d30a086","impliedFormat":1},{"version":"aed4b2967beb74ac4548b5e935734e538e239a398bc26f40bdcae51c84e123d1","signature":"9ba1a9b20801966ec2b47ceaa783c0d342705b422b499080e4b0225048dff4ba","impliedFormat":1},{"version":"63ae318cf2d18b535def2759555a95223a40f0f10a19c56b632bbc3d86cdc198","signature":"3261eac60963c90043b4cd60b4f92115bd3a33c04b4142716a919f8398cc65ba","impliedFormat":1},{"version":"a57263d565ff8cddda4a8c607913b07810e8e06c8f0a60087cf3fec338dc96b3","signature":"92c5ec72255f8ac2c274e7849e028edd554fca3268bf576d92b156fadfac3946","impliedFormat":1},{"version":"81516ebd31b5e7e3d38855a85e0abdd5f096ad992d621ae28c8def5037fec885","signature":"4e122897b05d77f8ee8260e1c86e7a155f80b322cf033e5cf9ef028de37af55e","impliedFormat":1},{"version":"e407ffc3a279b73e1833197729e7242c77acdc50d87592e98eee23c855c5a0cf","signature":"ef1cac00ca7bb96d3334bbfcd48cf6956e8543a89dbcfb085bea26264b63ded6","impliedFormat":1},{"version":"5d541d1768cb3dc4f3ad53161410488e252ebc18007357db6e6957fa323aeaea","signature":"04813cdda0cf528269ab66430bf2c5712e80801765ebb7c2c34258d0680c9b76","impliedFormat":1},{"version":"81ef308979d65c2b5ea18f964dc4bde03ffe7aaf0df651bd472e194b0d681599","signature":"9a746a09d7294bc14079d4baeb68808d601a740e345784e7af172b34d87bba51","impliedFormat":1},{"version":"b07dd0ab6277381512c8383973d87f594583cd628c98df75822abc299473c7da","signature":"77738b358cb7c5eb16ac406f84ca39b9f70027250e550c62da808877e62f6778","impliedFormat":1},{"version":"4733340146eca9d992107433ced65503ea6381133a668055fd451aa9a5fbb521","signature":"247c7d774118e70ee86a5fb92c167b6366cc4d14c4188a846dc3c9f3b266c0f2","impliedFormat":1},{"version":"5a574be11de2a06a0ad51c8a51903b523eeedb7941c6fb09c43e5ad4023ac202","signature":"b2e431eb854fb59c8d9098efeb90afceb3e72ae4466b7b12a973b6910d3c7083","impliedFormat":1},{"version":"89e6a16825424fda660d1932b03635062264286fe0d65131b363639d67e5569b","signature":"0f9bfa64f0995ecd23026960cef40058a31fa6b7aedf54a03db902532033170a","impliedFormat":1},{"version":"118a413c43d509fd76733cfba0d6e89d01e2f083a0a4983108afd231e8e16648","signature":"a71eda3ffef6bee309296887dc5075cd01156880701530c99275941a8604fe39","impliedFormat":1},{"version":"64ca16e13f07edd1b5a8a3e584d1b17996059e2d70f1da19a212912c0394c6c4","signature":"7b75eb3a9062b4adfa999b79bba48cb13eb6246cd37ba413a45681b638bfa56a","impliedFormat":1},{"version":"dd51a61f7a296a5ec502dd2934ba6cafa264b49f4443184bf2e227b494dc30ed","signature":"9abff9b04343b716eacd302dafb11b79cae416e57f42b87c3a9737c736be6306","impliedFormat":1},{"version":"028fc7ef944f561fad7597f7ec3517cb7c4a3d88c994caf588c7c11e3a22e03b","signature":"3daa261141c51dd4c4e1184eb71c022bde41b5a55e6f7477a44e5e5e51ca16dd","impliedFormat":1},{"version":"cc043959c93824112e6baeb81958a8175191fb10869d106854ee315c28c8c333","signature":"2914d3cf536533c65e9b484c373b4616f314fe9f30114c33ec8b33776a9425c9","impliedFormat":1},{"version":"a3f82a69bde514f8a7481e9ebbc5656144b5cb30c386e70ce04ac802d3227b2e","signature":"b5868f9a39d951b92c78e4f42b381d20b01c5e73b4bd5ead97294fa77a800e11","impliedFormat":1},{"version":"1cfca460bf446b06adc535313cf4b5afa36b80dcd85f0fafe860177121452d6c","signature":"459a136edcc085006281c995677c293d3aad8b0cd99d07b51880523bca62d526","impliedFormat":1},{"version":"3683320e48356bdce81a114557e4b3c2cde7ef2873d57c00c8f55134d07b9cf5","signature":"4bb196e762808e5bf4060ddcd7dc9b8dc1ec0be1ffd203cd926cfa6cbf87eb59","impliedFormat":1},{"version":"2cb40ce067bac9dae8a2ef85e79e388f66a68ccef22d628ca218e124b70c144a","signature":"53190da5af750d257c35e67a9247f33ef11c6dbe2886641aef75cc7e9e0d5208","impliedFormat":1},{"version":"8f864cfb509e7a98b7da0ccc2956d91f12e05a59231e77970cf03b5a9e7107fa","signature":"b72ef5f8132a40544997c9502377fe80ce1b5a4afd57f4c067bb9d80f08fd195","impliedFormat":1},{"version":"53e7b6021b2236bf8ef0ae3c9743da7196a23880a4402839bc68342f0f3a8c07","signature":"0608917bc73c2c2e0339b782834afe3867fd94db9db3eb912a350e78131697cd","impliedFormat":1},{"version":"f261ca4595ba4f8b455a3821955b1219683854181bd7f0567d7af7a334ccb0db","signature":"9d5dfcba7e0a0d0bfa4d6609d293bd309e74b47ad09cb955472cbd2808e6ac05","impliedFormat":1},{"version":"7f735e6924ce38092fd0fe29ca9a47b37d4392d8a39dfdbf4639252ae14e149c","signature":"aadae1c73d5f91ce79a28e7181284b2fa893f37e77d572d6bbae2286430dc752","impliedFormat":1},{"version":"d1906e63e7ef8ca042fd2a849113d21a16ea595f78d93a18ea1ff38b73514d44","signature":"be23eedead71d4ae2296734711c4371a79b08eb9468a70ddc40b195cd308339e","impliedFormat":1},{"version":"9429e168d2d152cc6f4bd6ca4282579d3d4b25a67149e4734f00fda4865cde40","signature":"e390f9b910b9fa9c88c46510b774e9712a9034b9f33b1960d29d095b99d8be25","impliedFormat":1},{"version":"4721154a46f1850727ff9e9d9622658628995ce881913ac8def47da418a3265c","signature":"b9645d26bb4f4736ad4e652b9673ec8018ed3a56938b6821921b2a708bb46081","impliedFormat":1},{"version":"d2ca870a6c1f6c694884e6881417adb4ffea37a9837d05b4b95874f1628efa9c","signature":"540004b8087745e2d799e16ddb10507be9bceb6d43b35cb3af727c6a45138753","impliedFormat":1},{"version":"c7074a765ef3bc9a74f8644d4eca1eb3630cd1acf7ae776315ea5a85d3fed93f","signature":"40712bd07bdfb7785c356cf509c738e003313fc1b252dfff3f24ed0459c5f3c0","impliedFormat":1},{"version":"aa5e517d5d0cb18a67e0deb654c27a206e6829ae9c29a93b7576058430d1d9a3","signature":"11c2538bbfa058abb4b84999c08ac4b3c3455f07af64105b3837cd4dbb3624e7","impliedFormat":1},{"version":"d1763fe04ec3aedc4f88c5d3a616658ea488a02a5286845c6e6a07a5dd01e2ac","signature":"ff011f902763ea6dc41c82e368d9f333077f5e61bd7bd2522bc8fb10d184c90a","impliedFormat":1},{"version":"68f51b38295abb7f8149164bf49032c90d684a606cf46c7a45cd6d13c0ff8f61","signature":"ac1c6320a5456c398667f1dc3fb62d02a24c24b0c79ff025a80a0935945c2dfb","impliedFormat":1},{"version":"b100608a94ff4d87bfc0e09f8ad9d3a3fbd47f41091afce5e43eb5dc482db1f0","signature":"9bec47ac7e6a164ffa2c6ded25352b1de7a93361b09505fbdb85c8ebfdd1fc06","impliedFormat":1},{"version":"a307a8f1fc7eadbfe63263ca489995f60ba15bc91dbba6a9c02715f98ccd2fa7","signature":"ed6bf2bdb9b65339e11af325620d652ba4d0db5a7c5b9d42f151cdab34b750af","impliedFormat":1},{"version":"ac9e20897f38c7c289327605ab403b60b3a64bc732ee7380d853eb2bcaffcde8","signature":"976fd7711c35ce3faed2a334dc21326d2ff99c8d82a75f25a53feab2d28fb513","impliedFormat":1},{"version":"f96e9b4148a97b39b0fa5d878d69d4a11abdb28767045bdd51e9070391ab7035","signature":"d21237c14bc8104f98f8b3e5fdbdd6616a534f8192caf456640c8b746a289b24","impliedFormat":1},{"version":"2311d585e445d8895b76ee1339ee9e3e9398d4b079760d677d1feb8e32b32a08","signature":"0a13275da797eb7e737d133ee0a6655ad6129bbd8381e8a9d190dd86906b35b2","impliedFormat":1},{"version":"252ca16b89b9f85d10d62c9fb44faadf0551405e4cd2b60e53e81dd55c52f3cc","signature":"971d9d851ef073840959b99790ceaa10662c94eb3d6629a76218436cda1d8efa","impliedFormat":1},{"version":"6f21f5f68db97edb7ff00405d38f1845138ca13502bd0af0d4dfb287a717ca84","signature":"de0734e60f0df1d82ed3305022cecf4c594707aa1d19b7e2fdd06d71080ec8a8","impliedFormat":1},{"version":"9e238b2090c98266ad8f9091c93fc30ed1e240695f55149ee0b53eaa66e68657","signature":"6b71a6ab24a2a9f31aa0f7bae9be3c02476a6b3e04c97a4777a21f296929c2b8","impliedFormat":1},{"version":"118182199f22c96051ec1a37dc95559fa5e67f4a24f5abeeb6e8d199983f17b7","signature":"5e4366458bc3e6238bd11274a3244b8d41440ad033d1172e492f9933ee2b2bf2","impliedFormat":1},{"version":"0d08851f8c6e3b25a171d66951c56bd54bf3d028eeb62b9cd934f4415d9ec54b","signature":"c34e94f5ab0d8bb8ddee59b8d89e0130dbaccc6440a6f6ade92d2d13cf986684","impliedFormat":1},{"version":"b6fd1dc598a290a413d1ff06f2a6cd2d0c4efc4de4dfa8656bd139874cddde16","signature":"7e571afc096458ddf82049eaf30e4ca313fed89dc9c5cb3f5d9942093d0bd4e5","impliedFormat":1},{"version":"6eba7da4ca50316ba73d736d44eae256f14a6b96a271c74e48a94793b62133e1","signature":"870f64394d461a2d59c9a4fc0fd950919a105594cf8bfd5dea7cc0f3a170ebe4","impliedFormat":1},{"version":"734c4ae22b2fb8975ebfad51bcabc886ec67b619876cfe0ebc641a22c7896d97","signature":"e001ae2738a9684b7ea5da204887b0551a094f75967569f0feea6e310e3f5cd5","impliedFormat":1},{"version":"60ff120cda917f0665dc87f9d3feaeae7c4b779e6932560dba79a7d25bab5e45","signature":"34ecedb14f62cb3c8ab567eafa4d99ecb4f96234da754ded3efbd6bda21c36ca","impliedFormat":1},{"version":"da1eb41cb04d9f06b3938a2584c9d87620eea0e6a409044caf392d3a937be604","signature":"5d4b967f84946710c7f6775dda53d1337f84429597a7a58ffd3b281a1e9f5003","impliedFormat":1},{"version":"d683e9c5ffb475aa30c5fd931c21ee0bdb97991dd2daaf4afe24b58d0f32b0e1","signature":"d55034badd677a24153e12556d3685cf2abf36e796b38713481f8e703540387d","impliedFormat":1},{"version":"2dbe6716498191a9bd74555d73705d95ca3bc1b3e50eb098cced77abf41b34b6","signature":"0804e01130c9d47b33131d4b3d10df391adfa11c3208220c02bfa4f9f72a0f04","impliedFormat":1},{"version":"910676d35a54002ba119d4f5aee10c58c1c2bab149a674f9174b60ee31650464","signature":"2007d50617da2ad73eccb0d269d563c1460155831644a7e73649fe258ff93b09","impliedFormat":1},{"version":"9a625bbf79bd6d6709bb122246698acf7afa1f21a5f7f8e6ecb6da07640f0e21","signature":"4e8a36da472ebaad066173cbd808689875dba22e722d5ce3f209700732098d07","impliedFormat":1},{"version":"cdccb964756a71fc53ae5cf3a7d096f845a3a7a0f6460d955950ea2c4afa9f06","signature":"3cd260bd6bf85c3b5cb08e37f97194bfd7d30d17e15b4586022122d92b338f22","impliedFormat":1},{"version":"4781f6d71fa1b4c73dbc8da476e100ac105ae603e4d0a4c76378f7b54e83872d","signature":"5387332003f6366484dcd81df714e1456ae566c13c7c3f18089f55e32190998f","impliedFormat":1},{"version":"a1bd1ce518fea598748d069b47d6be717fecd68ac7801b7e7cc54f385201958e","signature":"34eba1fc2aff0d2e382f3cae6139379c5a982305a0d4702a4ccec34caf8bac01","impliedFormat":1},{"version":"5131ea4038f45d82822292c56e60699e70f06df11d17658c753f328a254b9a01","signature":"17c87b843c14faa0b930a3184dcc7d8c3273f1c2819d747bcfefaffe4a9c9863","impliedFormat":1},{"version":"531b16ab2db942a2f29cc9714ff7b4d2170cdfc2a1afc738d33d98708ab46538","signature":"d55f84b540bc89052d417604dc4ac127673f5b0e3d06325d34cc33baf5da4c21","impliedFormat":1},{"version":"1988a70adace3797c77336825b3448fa47bcfb5348d1dc23c7dcba3d2aa5ac31","signature":"6a8b4715b4b44f4fd23cff6a6ae86ed6665296f9592079c3ceed2d50d4581f0c","impliedFormat":1},{"version":"ee98adf27046a28bfb8764c8bd421b8350b2b6ec5fe2a3c0223e9c1bf9e34825","signature":"6564ea4a016f24e07c6521c2de796b4af73f8c3fb60700c2d5090251d46056aa","impliedFormat":1},{"version":"e74ef0309859444affd62a7ad794f1db3384b16377777c4231233825aef15ca8","signature":"286c32a5525ef703b221190eb43ce35ff41c3edacbabb484ec2fb02d35fc4436","impliedFormat":1},{"version":"2f33ed5bb2ffe5a1114dd3078eafe73ce8e2c7a5dbb928f7315641e6c46779d2","signature":"543738f7d02c63c1b41a0fcc29cab305955716dc075e2452addaf28ff005daa6","impliedFormat":1},{"version":"e6743de1e8a77b8bb85e6ead0c25d5ab7a4aefa157d40938132751056d494d02","signature":"ba083890aa0b537f2827dbbcab38eff65c0e795917336a2fc4c8627bb6df1de7","impliedFormat":1},{"version":"dafed9eda95166d93df4fbdc7fa60ef5d3b5dfcc3820f2ddef51841679757017","signature":"7c98557b945f0affbbe2a8eec3f066d0babded95f1f514d8175373c7e70f19c5","impliedFormat":1},{"version":"8b55aee1e08b5a4384856d2583570402e02d80c9d2b346e72290f1237551e495","signature":"77d9bfd36245b2eed9e3713a80dba260ce9d72ea245293f59fb901e574429e83","impliedFormat":1},{"version":"1df9409c8d23fe4750c678f5b68006c66d5c007f9d83e1146c40c71d260b135a","signature":"31825079f51a4089d51c789b49f6bad2bdbce07a9275d728a390c6a7ed7623ce","impliedFormat":1},{"version":"848c9adeb21e2efd75dd71ba7e9c08db98bd6e86ac3a65496b18b7d9805a9dde","signature":"cf3ec4d054da6c30f98ecdb0280582d54662915549c204854b6fa8f4c9e30880","impliedFormat":1},{"version":"5bb9cfbe0c1e92b883e2460e92dafa2ac70e69706e2a521a6c28a58e93265f40","signature":"00c2461ef99c606012b7697acb94290b5823052bee8de7b3afcbd5d1491563ae","impliedFormat":1},{"version":"4cd443cdc630eb48f2a9efbb8925293450b62e246e79dd36e4e8630a0b31a2ed","signature":"eddff00e24dc4d1aee54e39eadd21984b8672b1e02cbb2585d83c94b5d21975a","impliedFormat":1},{"version":"02bc53080a41ee770761dd40436bb43143e0584b1c4631571b033d66b2b2c1ca","signature":"c811e30f5190d52f61ac20d26ca0cc3eb375f9b8c26f9ada1c4d3f733d62bcf2","impliedFormat":1},{"version":"489af10f243e7f409e2fc7418cf1ddbbe7468207bf7ae25e8c9b1ffc2965dbf8","signature":"764889112801378e9cde09a0ad4cdfa4339130a554ea1cd06a4c9d3ee512b400","impliedFormat":1},{"version":"a390517dfdc1ac2ba2a0c30c89dfcc8d2c2e23469dfcc9fc9a8765c1841b24ab","signature":"656ea991f9f6250011ec81ee5746eb6d19f86f94603dc3382f046fedf94727c4","impliedFormat":1},{"version":"d032d0d9b0f6ed1704962f02045c908fa99a49d99693a9d8992a5f83746b3478","signature":"8596c47bdabc46c4b5ae4d370b16f26bb1ca84e3c4d32a7e696eb75fd48db4f7","impliedFormat":1},{"version":"7ecf5772b25842601759faae9d8fbee6193d47051a07c94ed8bc293f4075f52d","signature":"a227acd669fd42ed9d7da4a2d1afb8449ef156a4aa924b22f13edc8cd61180f4","impliedFormat":1},{"version":"ff1fdb2b9526849909eac35dcce9856b6d7dec18018dccf204d544a99f8289ed","signature":"e9d0c0bd4b0c347de3db00f71927a71a3949cac47409080c80c730b10c99f830","impliedFormat":1},{"version":"4d4668741c05799c24cb91d99769e3a9e6c857a9eb47f1eb387dab5de49d1a8b","signature":"b40cb1aff96ce62556822e73a1eaf7799e346ba05a5f50b83fed4cf243e45ba9","impliedFormat":1},{"version":"e37fbe0de902c08799c111c6478b8156af998e362b37c43d54e1a089e64b6dac","signature":"4982a568dd221e49d9341acce06b5b7fec1c522e56bedac1fd4c080cf77ee335","impliedFormat":1},{"version":"0c468a4bb71d39a569ddbf17fe271a48abc4d373038179945d35b5bf7aa78f00","signature":"8e6eba8e09b40c4d304da1c183fd330a163a46071c59b3e36389b425f2c7f50b","impliedFormat":1},{"version":"f94573bafcaf1730ca00a9727f52348c933e64950fe6d63855304fc1a0076db7","signature":"582cd92132314d68a628429d530c666ad88146ac56916f2388b791db7b193a53","impliedFormat":1},{"version":"a8b181f9ced0393a127688611d8a4eaa2da40d7b47f3a0275427ceb5e99af8f6","signature":"42aec70d9767a916821355128a54dd4e8d2269a01db29e3ce79191c4d85461d2","impliedFormat":1},{"version":"c16370e83f0d8fab715a62fd08a94cb0d01c79e35ab177d027769b00b5509dc2","signature":"1b865e8a764e205711343c34902763c73eacd2a6cdc2a8e05b521ae7bfb22ccc","impliedFormat":1},{"version":"df59212c3d6e05f1fef24fc2f5645672230b7d81791431565ad6bcaf0aa5f8cc","signature":"cfded129936e3042cccaba74166b88db9fcd5c352e9dc87814f15a505532276e","impliedFormat":1},{"version":"7a592cef5c2056ad8de5da1c568b5f994a327504f41f8505061c648d4f142bd4","signature":"58be0a1bdc655d497765532eb2ebecf902bab5d82801e37ab40684229476116f","impliedFormat":1},{"version":"fe9957fd47562b676e390ffa8718ae077a0bf63b9621269d5e5542c82ce08806","signature":"dbdf2796872ff4d1f6220de8c70821b6a30431a78975665cf616231f654de392","impliedFormat":1},{"version":"dfe045526495371374dc799a586e0a07c8173d7698f05d5523faa05c48040978","signature":"0250c4204faf654274bd007c2485c555af9faf1a69b5fe2c32834817452581da","impliedFormat":1},{"version":"ae3e2c79cdc011512c661cadab5b1bc428b63876f3a9345c8b8ccf469a6f498c","signature":"a4d58268001e1fc2497f42d2cacbe0338065e8ffddddb869515dee8229b7e844","impliedFormat":1},{"version":"06ab61f04b36abee7642bb083416a6af0f501170289040ed845160970ae6320f","signature":"292dee2fc437522112913ac418cef344497d9cc467077e3aed16cd40122628c6","impliedFormat":1},{"version":"c26858f9365ec6425f0bbc9e191d130bbe5bca6e72fbe07b5f27e4b2abecbb42","signature":"587f9616bb678845e89f0ea70ddecaf7f12c34ec93db3f1404cc98dccbfb7ada","impliedFormat":1},{"version":"6cc56c40134ddda6508eeb55aa49f4a0cb0672ac4ae2e21c85f402559cf61d5a","signature":"b28b4b41b1c85528ac52ed66c6cfdea6e009ce552251b8780cfd2833860980f4","impliedFormat":1},{"version":"36cc9c7db6a0cf6a516b397a19255afc260a051ce2a6a30ddb96ef0c4f9710f4","signature":"db03dc4cdc05353e00ee060aa4266b66a4779065a84c3df9e06d7540d68061e9","impliedFormat":1},{"version":"299a62a7cbde377ba5efe8f3bf77f201a90b2c42d1d823a6cc6ff6895489bf8c","signature":"eb0a78b33afc06991980ff126c53269c291fbc825a804636e813df359c08f8c4","impliedFormat":1},{"version":"08d8cef4fb902a210492afa18490c8ab1038c8fa8abfc6abaf62984bc73857ce","signature":"2c48c342fdd78eee827b3daed7af8b71e953ac7e15608aa52b4db8b6ab890cf2","impliedFormat":1},{"version":"ee907d9263cf1ddb79d9dddcc0bd4d0a05ee80337bc6828dcb7146596982da6a","signature":"33c2b6ef052b535d47f80e250ab39604c8e61895c4969c76310ca81794dfd451","impliedFormat":1},{"version":"a90385b8fdbf19b6aa06a2d4641a377db07722b4d3615cd74cffaf992ae28fc6","signature":"3b66c9cd11de796096141f3baff2e1f1fccadd0acdf51d7d3a01411ca56cbd05","impliedFormat":1},{"version":"a70075e5aff99dbb98434cc709cf9ff46aca14067c3e45db076def3ab448cf3d","signature":"fc6fc740e5c631a0026d15fccca1d61c0303148a846a0b4dd253dd40e9ca5317","impliedFormat":1},{"version":"644f52e7dbefcde896b517ec94e22283973223ad347ec53a16a4fc66182045d9","signature":"c7d6081694eb2bcb7c502752a0d7d22e6a201127435aa897600785000390afd8","impliedFormat":1},{"version":"d93d822ec8a1d39013e65bb3dc6d29c949fbfa1e9cc54e9e8dcae7defb05b8ac","signature":"e42c3a5dfb256f8956a13837232cd39ee21ed910c738969f3994d11ed88eb26a","impliedFormat":1},{"version":"5362a90e954db6fe8fa4e36ee5476b971fe7e7860b4e9e030fd5d4ae55033d76","signature":"a43c839d7a44a0958d1f3719704a327f5a98278dc16883626b0b68bf96353adf","impliedFormat":1},{"version":"453497afcb2fde4c13e3dca92c0823fc2875fcb3c6a4c2e243a726fb4d28a1f5","signature":"8a6641194d47fa0b247ca2b90d00756de3329ed95019699bec7da8c5d8e9c3db","impliedFormat":1},{"version":"3e6bf82db1f8d6a671128012bd62d511037ee1076f2578e59a0c0190aee4a1eb","signature":"d12bc1430a46ce7398a2c9d26b1854318309fc9ca4cb85c64d23e08bb834f878","impliedFormat":1},{"version":"97b8eeed4dcad2802e706c53332f262307733beb8a2f25968cfc5a88fef9d261","signature":"1eba8d4fb3c4768c4a8e46373b5f77a061322119f848b0d21526d94654f6ea1d","impliedFormat":1},{"version":"f9104adc66fae6f9373a664ec686291c0304116d91b0ac8519c4ef29aba85e3f","signature":"10d63ce19b58823f6b7c3237af63de2c3a1af25297333a8abf7515bd6c08b06d","impliedFormat":1},{"version":"9cb5f69e5daaeab5a55a706d8ed7245730f6847663401e25c13a098ebc2ca14a","signature":"b7cb69bcbf1606dd485fd16f0657a2ebb8677d7940151809e334742d18380d46","impliedFormat":1},{"version":"29de5158cf4852ebc68e984b6f5889ef76cf5e630874c5c21aad604cec507bb8","signature":"42d6f55ffe6aa2ca0d7706f14e3ac063efa463009a705a2d85be82daea2a6a4f","impliedFormat":1},{"version":"df0bb3e9dd01ba8da05d7ee625c0d7de81ae237451e0743ae0c2480327703bf4","signature":"27ccd45ebd91df434b66629eb949168ab5f8867e701655d56d2c3bbb2d9a823c","impliedFormat":1},{"version":"49a7dfbbe4c499942ce14bff2db76cdfc90212ccebba65bc98fa7d5d00391017","signature":"a4d3cfcc545c0562fce5afb0242aee38f09851024a33b2dc605b350d708504ce","impliedFormat":1},{"version":"3a0e0736009297e23007b87b4de05de3b0de5de20ce6264fba0107685d0e3300","signature":"0cb75c7ee44c8f281c881ea83cb3747b3335be602fa2f4444e730c977f0e3b48","impliedFormat":1},{"version":"3fbf4c6083b839c3adf890c3815dd5ec5b9effacaef3cd880913c39171181eba","signature":"70bce98f1fd320f83b8736aba78c6ec1b0e06be14d2b1d7a86eb7992180ce572","impliedFormat":1},{"version":"fc1c5e5a741fe454aea59f41d93c2e2d2a25984df49875b8a1c8f99f0e0adcda","signature":"fb2c2ea7b6630c974b1843978eb245592e43f60cf58085a627f7f2404e6438da","impliedFormat":1},{"version":"8d1a277f5ac781926dcbf2839beb9c87f13566e30266ee7159d1fad111e320eb","signature":"9f7f657c2e07979ea53a66eb8df97c6fb8249b54d8092d0ab4e370795bdfb078","impliedFormat":1},{"version":"0c63ccad3041dda82da903fbb0f3b0e46b082190de9cf90e5c2ecd8bef45691c","signature":"48162a2044cc4ef8a71ac4880581163811dc1f2bd3a0cdffd566326e74fa7d85","impliedFormat":1},{"version":"c6d3cd7d556081ddb83b8fec752318b649450e2a8068318258b11143b22f826c","signature":"17979fbc3f7ff8ab06b67b5641f55875122cb1540876eecc9d7b14f89ac56dad","impliedFormat":1},{"version":"2b69fe4585527a1cf812e31a2743046f653f88504567fc5444aaaa960a05d5e1","signature":"0ae47261c00fb2f939df534ffcab92140c9fe8e2b7c1750cc635608c2311fc39","impliedFormat":1},{"version":"b33c2384aadc714e91f73326edf05a3ee16cefbf67813486ac2363ef813958d1","signature":"f7333659692510666b3ee997e0dc82457fc89a0ac2833522ced3be30c631a5b2","impliedFormat":1},{"version":"6adad66dab8359bcd4d86c23b652a30d13075cdeed6921bf6251e6432d0c58ec","signature":"ed1d2b70c4376d28dff2a27700305ac015d9e889f2c34f4d73c26604e5b77ecd","impliedFormat":1},{"version":"ba8f3998c31eeecde513e7b11a3c592aa3be7543a29ed0ff78622fb7c1b807be","signature":"3a4c672a48f01c584dd6e83052e153434b1a82e0a32f0a652e7e244e24c12ca3","impliedFormat":1},{"version":"8c6d9dec24e8fc07aa5291be6c10c712bceab24a9bb04950d3cf929fd41021e3","signature":"06218c406ec6b9d305c18b3e1ae353303becf085e7e1713097cd0089551b758a","impliedFormat":1},{"version":"6fd4629e92edc04c25521af2fa2db8934872bd98d58cce662e391ded052a38d7","signature":"a061a0adabeb5c59e01bf70c60e63950ff309d63b7a207d19f21569e4ea16b5c","impliedFormat":1},{"version":"7a9fbaf115b7a67b2953dff3c9a1120f3f376b4ee48dd818f8274ae4daa79a35","signature":"d7c6a19c0faa046d686e921ae12c47520049f053d9562eca460aa861f792b385","impliedFormat":1},{"version":"6e32ad60f92594c50e660e7ab04bdb5b20c450ec24c93bde0b6a40a6659b9544","signature":"395187e63352eabaf8f67a7a7c848801ee82a64ca27dd25ed6159694f86b2e55","impliedFormat":1},{"version":"27d1566e70e4bbab7c1d02a2984edb2277c7be1d13ddc833fa5e061327976350","signature":"559f850525ff67ec08c207be1b4a6a78d7530e014f920e2bcd4d02844325b61c","impliedFormat":1},{"version":"8ab8a2baa511d6611eb4f691d24a46ca733981ecaceb21efef9ba7cdb633d087","signature":"eb60b3446709b1421f1aa1f33eedbc9acbeda759ed6c33b3b8c8b31621d72557","impliedFormat":1},{"version":"5e669fbe30b8179637ccf10636a37c5063e17f65cd000a69d419b8d435fa806f","signature":"30c6cbc4d01dd9cdce41595d648a235bb516dfa2f9419ba0b440602940fe7faf","impliedFormat":1},{"version":"dfee874981b3420f7651018f436fc64544529a24219d26d35c06ac0d405a0e0b","signature":"aa5c92d87b1937792f73e8be1bc06364548de7ea2ae80d08c0c13bcc9a621225","impliedFormat":1},{"version":"6be09fd72a7a6e26cb30e3cedae9f3fa20d78b765a954c00497a1ba3f5e26228","signature":"6edd2aa992b7da85744f25baa747473e3e3c2e4a01f6f69eb0733d4b483c9b77","impliedFormat":1},{"version":"b35774ae9ca2268e434cdde325b93b9ec398503eab91cac3340e6d05f7dcf1e0","signature":"7c0355676428442b33d1eb010eae94366dc5fb182dfa936392257b48dc5a0fa4","impliedFormat":1},{"version":"964af7f00820cee271ddd209fdbe4cf83dc2808cf4f0ac55ad4b582689e8d12a","signature":"b46d79648a1320fb4a84fc69851f013f6d3464bfa987a6a50abc90045612537e","impliedFormat":1},{"version":"8b9fd6932f134f14812cecab552c005db75ae6e7a446ba0bdf4053effe020f5a","signature":"a69e89df8f9182c592df5d9cd15e6c61889b4b79cd40d9a97b925de34d0a45b8","impliedFormat":1},{"version":"b5ee40c83278ba88c36f91b7b1dc6d004bf63df9b89a0d8c4aad2f912496601a","signature":"eaa7cbe8e3cfdbdfdb7b48dd5f70ed5fb6aca17d7c1d33fe7dc5730e89fd685f","impliedFormat":1},{"version":"a5a63c2a5bf2eeabd5d23c6751181b5dda986b0c28c4d4a17310ad8105e5d33e","signature":"36ea7994dafff5cead70639ca546317539a45944da7f49f8d023a429d49729c9","impliedFormat":1},{"version":"fec6c50fa29c6dc7a94f5f6ac0b05bb60bc6572196d674db5d03dae7e3d3610e","signature":"bab6e213e1175b67fcffa436e6a3766cc6f9ad101dcc022e96f98628d0da131c","impliedFormat":1},{"version":"5db713b3337642dce52cab033fb88be66c8feb01dc21faf4f284c7e81b8dea99","signature":"871fe746e2a58f1d4306bdab7222389f16c0184deb63f5067bb5d169e0d069f7","impliedFormat":1},{"version":"7d3ccdf70542f428dc72f09b17699e9a5b8a84bffcb28e42b52a5f01fb176477","signature":"5bb50c1420c5712d39023aa7d7efb2b8a1904e7263501e1b6fb9ab871cf720c9","impliedFormat":1},{"version":"b9a023b8da62010b3579c4f3e1f8ff7ffe3dc972afd2e852d915b8109b5c29b9","signature":"378d9a86c701e51eeca1f0a88e09517de004f6138e898723ee2a17cd4cb408aa","impliedFormat":1},{"version":"d082878401b54b07c0ee5c942064dbae77ec660bbc2bca42440ac27491240b97","signature":"7981af46fcc1a1dbb6fe798d1eacb9d422c89acf7e6b389d4d3c278cabe71710","impliedFormat":1},{"version":"5e753fed74ce41d071465f75a3a263f00a033d8ade308526183d68e5b3b2a1c4","signature":"3df910610db780d4579dcc0552d3d28290d758406863a9aa0fa7fbf7bff4b15e","impliedFormat":1},{"version":"132a64605f6027183747975dd74cafeca5293ad31ca23b5c7f9a594161d777c6","signature":"ab4bb8989a328d754cdb62a18a442f566a388cf7abb5aed52659548f4b1edbfd","impliedFormat":1},{"version":"d91d366a1aa651817cdc2848a7bed09c6cd0e116d1a8fa97d5068a0ce3763399","signature":"ddd585037bbe959be9149f94b6068661c0a52c6f081112a67285cbd48377ac8a","impliedFormat":1},{"version":"2b6453394d3b76498993d1b67aa221ed8529edecc31f4e57865efa767786baee","signature":"a45e89e030400369b97bcceb5e54ec4890bda1ba276a75a9624a6fd882ddb2ce","impliedFormat":1},{"version":"785b9d575b49124ce01b46f5b9402157c7611e6532effa562ac6aebec0074dfc","impliedFormat":1},{"version":"f3d8c757e148ad968f0d98697987db363070abada5f503da3c06aefd9d4248c1","impliedFormat":1}],"root":[60,[75,687]],"options":{"allowJs":true,"allowUnreachableCode":false,"allowUnusedLabels":false,"checkJs":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"exactOptionalPropertyTypes":true,"jsx":4,"module":100,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noImplicitReturns":true,"noPropertyAccessFromIndexSignature":true,"noUncheckedIndexedAccess":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"target":7,"useUnknownInCatchVariables":true},"referencedMap":[[74,1],[63,2],[65,3],[72,4],[66,5],[69,6],[73,7],[64,8],[71,9],[152,10],[401,11],[402,12],[409,13],[410,14],[412,12],[413,11],[414,12],[415,11],[416,12],[418,11],[420,11],[421,11],[422,11],[423,11],[424,11],[425,11],[426,11],[427,11],[428,11],[430,11],[429,11],[431,11],[432,11],[434,11],[435,12],[436,11],[437,11],[438,11],[439,11],[440,12],[441,11],[442,11],[443,11],[444,11],[445,11],[446,11],[448,11],[449,12],[450,11],[451,11],[452,11],[453,11],[454,11],[455,11],[456,11],[458,11],[459,11],[460,11],[461,11],[462,11],[463,11],[464,12],[465,11],[466,11],[467,11],[468,11],[469,11],[471,11],[472,12],[473,11],[474,12],[475,11],[476,11],[477,11],[478,11],[479,11],[481,11],[482,11],[484,12],[485,11],[486,11],[487,11],[489,11],[490,11],[491,11],[492,11],[493,11],[494,11],[495,11],[496,11],[497,11],[498,11],[499,11],[500,11],[501,11],[502,11],[504,11],[505,11],[506,11],[507,11],[508,11],[509,11],[510,12],[584,11],[585,11],[586,11],[511,11],[512,12],[513,11],[514,11],[515,11],[516,11],[517,11],[518,11],[519,11],[520,11],[521,11],[522,11],[523,11],[524,11],[525,11],[526,11],[527,11],[528,11],[529,11],[530,11],[531,11],[532,11],[533,11],[534,11],[535,11],[536,11],[537,11],[538,11],[539,11],[540,11],[541,11],[542,11],[543,11],[544,11],[545,11],[546,11],[547,11],[548,11],[549,11],[550,11],[551,11],[552,11],[553,12],[554,11],[555,11],[556,11],[557,11],[558,11],[559,11],[560,11],[561,11],[562,11],[563,11],[564,11],[565,11],[566,11],[567,11],[588,11],[589,11],[590,11],[591,11],[592,11],[593,11],[594,11],[595,11],[596,11],[597,11],[598,11],[599,11],[600,11],[568,11],[569,11],[570,11],[571,11],[572,11],[573,11],[574,11],[575,11],[576,11],[577,11],[578,11],[579,12],[580,11],[581,11],[582,11],[602,11],[603,11],[605,11],[604,12],[607,11],[608,15],[609,11],[615,11],[616,11],[617,11],[618,11],[619,11],[620,11],[621,11],[622,11],[623,11],[611,11],[612,11],[613,11],[625,16],[627,12],[628,11],[629,11],[631,11],[632,11],[633,12],[634,12],[636,11],[638,11],[639,11],[641,11],[642,12],[643,11],[644,11],[645,12],[646,11],[648,11],[649,11],[650,11],[651,11],[652,11],[653,12],[654,11],[655,11],[656,12],[657,11],[659,11],[660,11],[661,11],[663,11],[664,11],[665,11],[666,11],[667,11],[669,11],[670,11],[672,11],[673,11],[674,12],[676,17],[146,18],[680,19],[145,20],[144,21],[679,22],[148,23],[142,24],[150,25],[157,26],[140,27],[80,28],[151,29],[143,30],[403,31],[411,32],[417,33],[419,34],[433,35],[447,36],[457,37],[470,38],[480,39],[483,40],[488,41],[503,42],[682,43],[583,44],[587,45],[601,46],[606,47],[610,48],[404,49],[405,49],[406,49],[408,50],[407,49],[155,51],[156,52],[78,23],[158,53],[159,53],[160,53],[161,53],[162,53],[163,53],[164,53],[165,53],[166,53],[167,53],[168,53],[169,53],[170,53],[171,53],[172,53],[173,53],[174,53],[175,53],[176,54],[177,53],[178,53],[179,53],[180,53],[181,53],[182,53],[183,54],[184,53],[185,53],[186,53],[187,53],[188,53],[189,54],[190,53],[191,53],[192,53],[193,53],[194,53],[195,53],[196,53],[197,53],[198,53],[199,53],[200,53],[201,53],[202,53],[203,53],[204,53],[205,53],[206,53],[207,53],[208,53],[209,53],[210,53],[211,53],[212,53],[213,53],[214,53],[215,53],[216,53],[217,53],[218,53],[219,53],[220,53],[221,53],[222,53],[223,54],[224,53],[225,53],[226,53],[227,53],[228,53],[229,53],[230,53],[231,54],[232,53],[233,53],[234,53],[235,53],[236,53],[237,53],[238,53],[239,53],[240,53],[241,53],[242,54],[243,53],[244,53],[245,53],[246,53],[247,53],[248,53],[249,53],[250,53],[251,53],[252,53],[253,53],[254,53],[255,53],[256,53],[257,54],[258,53],[259,53],[260,53],[261,53],[262,53],[263,53],[264,53],[265,53],[266,53],[267,53],[268,53],[269,53],[270,53],[271,53],[272,53],[273,53],[274,53],[275,53],[276,53],[277,55],[278,53],[279,53],[280,53],[281,53],[282,53],[283,53],[284,53],[285,53],[286,53],[287,53],[288,53],[289,53],[290,53],[291,53],[292,53],[293,53],[294,53],[295,53],[296,53],[297,53],[298,53],[299,53],[300,53],[301,53],[302,53],[303,53],[304,53],[305,53],[306,53],[307,54],[308,53],[309,53],[310,53],[311,53],[312,54],[313,53],[399,56],[314,53],[315,54],[316,53],[317,53],[318,53],[319,53],[320,53],[321,53],[322,53],[323,53],[324,53],[325,53],[326,53],[327,53],[328,55],[329,53],[330,53],[331,53],[332,53],[333,53],[334,53],[335,53],[336,53],[337,53],[338,53],[339,53],[340,53],[341,53],[342,53],[343,57],[344,54],[345,53],[346,53],[347,54],[348,53],[349,53],[350,53],[351,53],[352,53],[353,53],[354,53],[355,53],[356,53],[357,53],[358,53],[359,53],[360,53],[361,53],[362,53],[363,53],[364,53],[365,53],[366,53],[367,53],[368,53],[369,53],[370,53],[371,53],[372,53],[373,53],[374,53],[375,53],[376,54],[377,53],[378,53],[379,53],[380,53],[381,53],[382,54],[383,53],[384,53],[385,53],[386,53],[387,53],[388,53],[389,53],[390,53],[391,53],[392,53],[393,53],[394,53],[395,53],[396,53],[397,54],[398,53],[75,23],[76,23],[77,23],[81,58],[82,58],[83,23],[85,59],[86,54],[87,60],[88,54],[89,54],[90,54],[99,61],[92,58],[138,62],[100,63],[102,64],[103,54],[104,58],[105,23],[95,65],[106,58],[107,54],[108,66],[109,59],[110,67],[111,68],[112,69],[113,61],[114,70],[115,63],[117,71],[120,72],[118,61],[122,73],[119,74],[121,23],[101,23],[98,63],[94,75],[123,58],[124,54],[125,54],[126,23],[127,23],[128,58],[116,58],[129,61],[96,54],[93,54],[130,23],[97,58],[131,58],[132,23],[133,58],[137,76],[136,58],[614,77],[624,78],[626,79],[630,80],[635,81],[637,82],[678,83],[640,84],[647,85],[658,86],[662,87],[668,88],[683,23],[684,23],[135,89],[686,90],[685,91],[671,92],[675,93],[677,94]],"version":"5.8.3"} \ No newline at end of file +{"fileNames":["./node_modules/typescript/lib/lib.es5.d.ts","./node_modules/typescript/lib/lib.es2015.d.ts","./node_modules/typescript/lib/lib.es2016.d.ts","./node_modules/typescript/lib/lib.es2017.d.ts","./node_modules/typescript/lib/lib.es2018.d.ts","./node_modules/typescript/lib/lib.es2019.d.ts","./node_modules/typescript/lib/lib.es2020.d.ts","./node_modules/typescript/lib/lib.es2021.d.ts","./node_modules/typescript/lib/lib.es2022.d.ts","./node_modules/typescript/lib/lib.dom.d.ts","./node_modules/typescript/lib/lib.dom.iterable.d.ts","./node_modules/typescript/lib/lib.es2015.core.d.ts","./node_modules/typescript/lib/lib.es2015.collection.d.ts","./node_modules/typescript/lib/lib.es2015.generator.d.ts","./node_modules/typescript/lib/lib.es2015.iterable.d.ts","./node_modules/typescript/lib/lib.es2015.promise.d.ts","./node_modules/typescript/lib/lib.es2015.proxy.d.ts","./node_modules/typescript/lib/lib.es2015.reflect.d.ts","./node_modules/typescript/lib/lib.es2015.symbol.d.ts","./node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","./node_modules/typescript/lib/lib.es2016.array.include.d.ts","./node_modules/typescript/lib/lib.es2016.intl.d.ts","./node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","./node_modules/typescript/lib/lib.es2017.date.d.ts","./node_modules/typescript/lib/lib.es2017.object.d.ts","./node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","./node_modules/typescript/lib/lib.es2017.string.d.ts","./node_modules/typescript/lib/lib.es2017.intl.d.ts","./node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","./node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","./node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","./node_modules/typescript/lib/lib.es2018.intl.d.ts","./node_modules/typescript/lib/lib.es2018.promise.d.ts","./node_modules/typescript/lib/lib.es2018.regexp.d.ts","./node_modules/typescript/lib/lib.es2019.array.d.ts","./node_modules/typescript/lib/lib.es2019.object.d.ts","./node_modules/typescript/lib/lib.es2019.string.d.ts","./node_modules/typescript/lib/lib.es2019.symbol.d.ts","./node_modules/typescript/lib/lib.es2019.intl.d.ts","./node_modules/typescript/lib/lib.es2020.bigint.d.ts","./node_modules/typescript/lib/lib.es2020.date.d.ts","./node_modules/typescript/lib/lib.es2020.promise.d.ts","./node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","./node_modules/typescript/lib/lib.es2020.string.d.ts","./node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","./node_modules/typescript/lib/lib.es2020.intl.d.ts","./node_modules/typescript/lib/lib.es2020.number.d.ts","./node_modules/typescript/lib/lib.es2021.promise.d.ts","./node_modules/typescript/lib/lib.es2021.string.d.ts","./node_modules/typescript/lib/lib.es2021.weakref.d.ts","./node_modules/typescript/lib/lib.es2021.intl.d.ts","./node_modules/typescript/lib/lib.es2022.array.d.ts","./node_modules/typescript/lib/lib.es2022.error.d.ts","./node_modules/typescript/lib/lib.es2022.intl.d.ts","./node_modules/typescript/lib/lib.es2022.object.d.ts","./node_modules/typescript/lib/lib.es2022.string.d.ts","./node_modules/typescript/lib/lib.es2022.regexp.d.ts","./node_modules/typescript/lib/lib.decorators.d.ts","./node_modules/typescript/lib/lib.decorators.legacy.d.ts","./src/lib/http.ts","./node_modules/zod/dist/types/v4/core/standard-schema.d.ts","./node_modules/zod/dist/types/v4/core/util.d.ts","./node_modules/zod/dist/types/v4/core/versions.d.ts","./node_modules/zod/dist/types/v4/core/schemas.d.ts","./node_modules/zod/dist/types/v4/core/checks.d.ts","./node_modules/zod/dist/types/v4/core/errors.d.ts","./node_modules/zod/dist/types/v4/core/core.d.ts","./node_modules/zod/dist/types/v4/core/parse.d.ts","./node_modules/zod/dist/types/v4/core/regexes.d.ts","./node_modules/zod/dist/types/v4/locales/ar.d.ts","./node_modules/zod/dist/types/v4/locales/az.d.ts","./node_modules/zod/dist/types/v4/locales/be.d.ts","./node_modules/zod/dist/types/v4/locales/ca.d.ts","./node_modules/zod/dist/types/v4/locales/cs.d.ts","./node_modules/zod/dist/types/v4/locales/de.d.ts","./node_modules/zod/dist/types/v4/locales/en.d.ts","./node_modules/zod/dist/types/v4/locales/es.d.ts","./node_modules/zod/dist/types/v4/locales/fa.d.ts","./node_modules/zod/dist/types/v4/locales/fi.d.ts","./node_modules/zod/dist/types/v4/locales/fr.d.ts","./node_modules/zod/dist/types/v4/locales/fr-CA.d.ts","./node_modules/zod/dist/types/v4/locales/he.d.ts","./node_modules/zod/dist/types/v4/locales/hu.d.ts","./node_modules/zod/dist/types/v4/locales/id.d.ts","./node_modules/zod/dist/types/v4/locales/it.d.ts","./node_modules/zod/dist/types/v4/locales/ja.d.ts","./node_modules/zod/dist/types/v4/locales/kh.d.ts","./node_modules/zod/dist/types/v4/locales/ko.d.ts","./node_modules/zod/dist/types/v4/locales/mk.d.ts","./node_modules/zod/dist/types/v4/locales/ms.d.ts","./node_modules/zod/dist/types/v4/locales/nl.d.ts","./node_modules/zod/dist/types/v4/locales/no.d.ts","./node_modules/zod/dist/types/v4/locales/ota.d.ts","./node_modules/zod/dist/types/v4/locales/pl.d.ts","./node_modules/zod/dist/types/v4/locales/pt.d.ts","./node_modules/zod/dist/types/v4/locales/ru.d.ts","./node_modules/zod/dist/types/v4/locales/sl.d.ts","./node_modules/zod/dist/types/v4/locales/sv.d.ts","./node_modules/zod/dist/types/v4/locales/ta.d.ts","./node_modules/zod/dist/types/v4/locales/th.d.ts","./node_modules/zod/dist/types/v4/locales/tr.d.ts","./node_modules/zod/dist/types/v4/locales/ua.d.ts","./node_modules/zod/dist/types/v4/locales/ur.d.ts","./node_modules/zod/dist/types/v4/locales/vi.d.ts","./node_modules/zod/dist/types/v4/locales/zh-CN.d.ts","./node_modules/zod/dist/types/v4/locales/zh-TW.d.ts","./node_modules/zod/dist/types/v4/locales/index.d.ts","./node_modules/zod/dist/types/v4/core/registries.d.ts","./node_modules/zod/dist/types/v4/core/doc.d.ts","./node_modules/zod/dist/types/v4/core/function.d.ts","./node_modules/zod/dist/types/v4/core/api.d.ts","./node_modules/zod/dist/types/v4/core/json-schema.d.ts","./node_modules/zod/dist/types/v4/core/to-json-schema.d.ts","./node_modules/zod/dist/types/v4/core/index.d.ts","./node_modules/zod/dist/types/v4/classic/errors.d.ts","./node_modules/zod/dist/types/v4/classic/parse.d.ts","./node_modules/zod/dist/types/v4/classic/schemas.d.ts","./node_modules/zod/dist/types/v4/classic/checks.d.ts","./node_modules/zod/dist/types/v4/classic/compat.d.ts","./node_modules/zod/dist/types/v4/classic/iso.d.ts","./node_modules/zod/dist/types/v4/classic/coerce.d.ts","./node_modules/zod/dist/types/v4/classic/external.d.ts","./node_modules/zod/dist/types/v4/classic/index.d.ts","./node_modules/zod/dist/types/v4/index.d.ts","./src/models/shared/accepts.ts","./src/models/shared/advancedsubtitles.ts","./src/models/shared/boolint.ts","./src/models/errors/sdkvalidationerror.ts","./src/types/fp.ts","./src/lib/schemas.ts","./src/types/unrecognized.ts","./src/types/defaultToZeroValue.ts","./src/types/primitives.ts","./src/models/shared/channel.ts","./src/models/shared/channelmapping.ts","./src/models/shared/composite.ts","./src/lib/primitives.ts","./src/models/shared/device.ts","./src/models/shared/directory.ts","./src/models/shared/dvrrequesthandlerslashgetresponses200.ts","./src/models/shared/filter.ts","./src/types/enums.ts","./src/models/shared/getresponses200.ts","./src/models/shared/historyallgetresponses200.ts","./src/models/shared/image.ts","./src/models/shared/stream.ts","./src/models/shared/part.ts","./src/models/shared/media.ts","./src/models/shared/sort.ts","./src/models/shared/tag.ts","./src/models/shared/metadata.ts","./src/models/shared/hub.ts","./src/models/shared/items.ts","./src/models/shared/mediatypestring.ts","./src/models/shared/librarysection.ts","./src/models/shared/librarysections.ts","./src/models/shared/lineup.ts","./src/models/shared/locationparameter.ts","./src/models/shared/mediacontainer.ts","./src/models/shared/mediacontainerwithartwork.ts","./src/models/shared/mediacontainerwithdecision.ts","./src/models/shared/mediacontainerwithdevice.ts","./src/models/shared/mediacontainerwithdirectory.ts","./src/models/shared/mediacontainerwithhubs.ts","./src/models/shared/mediacontainerwithlineup.ts","./src/models/shared/mediacontainerwithmetadata.ts","./src/models/shared/mediacontainerwithnestedmetadata.ts","./src/models/shared/mediacontainerwithplaylistmetadata.ts","./src/types/rfcdate.ts","./src/types/smartUnion.ts","./src/models/shared/setting.ts","./src/models/shared/mediacontainerwithsettings.ts","./src/models/shared/mediagraboperation.ts","./src/models/shared/mediasubscription.ts","./src/models/shared/mediacontainerwithsubscription.ts","./src/models/shared/mediatype.ts","./src/models/shared/mediaquery.ts","./src/models/shared/player.ts","./src/models/shared/plexdevice.ts","./src/models/shared/postresponses200.ts","./src/models/shared/protocolparameter.ts","./src/models/shared/security.ts","./src/models/shared/session.ts","./src/models/shared/slashgetresponses200.ts","./src/models/shared/subtitles.ts","./src/models/shared/transcodesession.ts","./src/models/shared/transcodetype.ts","./src/models/shared/user.ts","./src/models/shared/userprofile.ts","./src/models/shared/userplexaccount.ts","./src/models/shared/index.ts","./src/lib/logger.ts","./src/lib/retries.ts","./src/lib/url.ts","./src/lib/config.ts","./src/lib/security.ts","./src/hooks/types.ts","./src/hooks/registration.ts","./src/hooks/hooks.ts","./src/models/errors/httpclienterrors.ts","./src/lib/base64.ts","./src/lib/is-plain-object.ts","./src/lib/encodings.ts","./src/lib/sdks.ts","./src/core.ts","./src/lib/files.ts","./src/models/errors/plexapierror.ts","./src/models/errors/responsevalidationerror.ts","./src/models/errors/sdkerror.ts","./src/lib/matchers.ts","./src/models/operations/addcollectionitems.ts","./src/models/operations/adddevice.ts","./src/models/operations/adddevicetodvr.ts","./src/models/operations/adddownloadqueueitems.ts","./src/models/operations/addextras.ts","./src/models/operations/addlineup.ts","./src/models/operations/addplaylistitems.ts","./src/models/operations/addprovider.ts","./src/models/operations/addsection.ts","./src/models/operations/addsubtitles.ts","./src/models/operations/addtoplayqueue.ts","./src/models/operations/analyzemetadata.ts","./src/models/operations/applyupdates.ts","./src/models/operations/autocomplete.ts","./src/models/operations/cancelactivity.ts","./src/models/operations/cancelgrab.ts","./src/models/operations/cancelrefresh.ts","./src/models/operations/checkupdates.ts","./src/models/operations/clearplaylistitems.ts","./src/models/operations/clearplayqueue.ts","./src/models/operations/computechannelmap.ts","./src/models/operations/connectwebsocket.ts","./src/models/operations/createcollection.ts","./src/models/operations/createcustomhub.ts","./src/models/operations/createdownloadqueue.ts","./src/models/operations/createdvr.ts","./src/models/operations/createmarker.ts","./src/models/operations/createplaylist.ts","./src/models/operations/createplayqueue.ts","./src/models/operations/createsubscription.ts","./src/models/operations/deletecollection.ts","./src/models/operations/deletecollectionitem.ts","./src/models/operations/deletecustomhub.ts","./src/models/operations/deletedvr.ts","./src/models/operations/deletehistory.ts","./src/models/operations/deleteindexes.ts","./src/models/operations/deleteintros.ts","./src/models/operations/deletelibrarysection.ts","./src/models/operations/deletelineup.ts","./src/models/operations/deletemarker.ts","./src/models/operations/deletemediaitem.ts","./src/models/operations/deletemediaprovider.ts","./src/models/operations/deletemetadataitem.ts","./src/models/operations/deleteplaylist.ts","./src/models/operations/deleteplaylistitem.ts","./src/models/operations/deleteplayqueueitem.ts","./src/models/operations/deletestream.ts","./src/models/operations/deletesubscription.ts","./src/models/operations/detectads.ts","./src/models/operations/detectcredits.ts","./src/models/operations/detectintros.ts","./src/models/operations/detectvoiceactivity.ts","./src/models/operations/editmarker.ts","./src/models/operations/editmetadataitem.ts","./src/models/operations/editsection.ts","./src/models/operations/editsubscriptionpreferences.ts","./src/models/operations/emptytrash.ts","./src/models/operations/enablepapertrail.ts","./src/models/operations/generatethumbs.ts","./src/models/operations/getalbums.ts","./src/models/operations/getallhubs.ts","./src/models/operations/getallitemleaves.ts","./src/models/operations/getalllanguages.ts","./src/models/operations/getallleaves.ts","./src/models/operations/getallsubscriptions.ts","./src/models/operations/getarts.ts","./src/models/operations/getaugmentationstatus.ts","./src/models/operations/getavailablegrabbers.ts","./src/models/operations/getavailablesorts.ts","./src/models/operations/getbackgroundtasks.ts","./src/models/operations/getcategories.ts","./src/models/operations/getchannels.ts","./src/models/operations/getchapterimage.ts","./src/models/operations/getcluster.ts","./src/models/operations/getcollectionimage.ts","./src/models/operations/getcollectionitems.ts","./src/models/operations/getcollections.ts","./src/models/operations/getcolors.ts","./src/models/operations/getcommon.ts","./src/models/operations/getcontinuewatching.ts","./src/models/operations/getcountries.ts","./src/models/operations/getcountrieslineups.ts","./src/models/operations/getcountryregions.ts","./src/models/operations/getdevicedetails.ts","./src/models/operations/getdeviceschannels.ts","./src/models/operations/getdownloadqueue.ts","./src/models/operations/getdownloadqueueitems.ts","./src/models/operations/getdownloadqueuemedia.ts","./src/models/operations/getdvr.ts","./src/models/operations/getextras.ts","./src/models/operations/getfile.ts","./src/models/operations/getfirstcharacters.ts","./src/models/operations/getfolders.ts","./src/models/operations/gethistoryitem.ts","./src/models/operations/gethubitems.ts","./src/models/operations/getidentity.ts","./src/models/operations/getimage.ts","./src/models/operations/getimagefrombif.ts","./src/models/operations/getitemartwork.ts","./src/models/operations/getitemdecision.ts","./src/models/operations/getitemtree.ts","./src/models/operations/getlibrarydetails.ts","./src/models/operations/getlibraryitems.ts","./src/models/operations/getlibrarymatches.ts","./src/models/operations/getlineup.ts","./src/models/operations/getlineupchannels.ts","./src/models/operations/getlivetvsession.ts","./src/models/operations/getmediapart.ts","./src/models/operations/getmetadatahubs.ts","./src/models/operations/getmetadataitem.ts","./src/models/operations/getnotifications.ts","./src/models/operations/getpartindex.ts","./src/models/operations/getperson.ts","./src/models/operations/getplaylist.ts","./src/models/operations/getplaylistgenerator.ts","./src/models/operations/getplaylistgeneratoritems.ts","./src/models/operations/getplaylistgenerators.ts","./src/models/operations/getplaylistitems.ts","./src/models/operations/getplayqueue.ts","./src/models/operations/getpostplayhubs.ts","./src/models/operations/getpreference.ts","./src/models/operations/getpromotedhubs.ts","./src/models/operations/getrandomartwork.ts","./src/models/operations/getrelatedhubs.ts","./src/models/operations/getrelateditems.ts","./src/models/operations/getscheduledrecordings.ts","./src/models/operations/getsectionfilters.ts","./src/models/operations/getsectionhubs.ts","./src/models/operations/getsectionimage.ts","./src/models/operations/getsectionpreferences.ts","./src/models/operations/getsections.ts","./src/models/operations/getsectionsprefs.ts","./src/models/operations/getserverinfo.ts","./src/models/operations/getserverresources.ts","./src/models/operations/getsessionplaylistindex.ts","./src/models/operations/getsessions.ts","./src/models/operations/getsessionsegment.ts","./src/models/operations/getsonicallysimilar.ts","./src/models/operations/getsonicpath.ts","./src/models/operations/getsourceconnectioninformation.ts","./src/models/operations/getstream.ts","./src/models/operations/getstreamlevels.ts","./src/models/operations/getstreamloudness.ts","./src/models/operations/getsubscription.ts","./src/models/operations/gettags.ts","./src/models/operations/gettasks.ts","./src/models/operations/gettemplate.ts","./src/models/operations/getthumb.ts","./src/models/operations/gettokendetails.ts","./src/models/operations/gettransienttoken.ts","./src/models/operations/getupdatesstatus.ts","./src/models/operations/getusers.ts","./src/models/operations/ingesttransientitem.ts","./src/models/operations/listactivities.ts","./src/models/operations/listcontent.ts","./src/models/operations/listdevices.ts","./src/models/operations/listdownloadqueueitems.ts","./src/models/operations/listdvrs.ts","./src/models/operations/listhubs.ts","./src/models/operations/listlineups.ts","./src/models/operations/listmatches.ts","./src/models/operations/listmoments.ts","./src/models/operations/listpersonmedia.ts","./src/models/operations/listplaybackhistory.ts","./src/models/operations/listplaylists.ts","./src/models/operations/listproviders.ts","./src/models/operations/listsessions.ts","./src/models/operations/listsimilar.ts","./src/models/operations/listsonicallysimilar.ts","./src/models/operations/listtopusers.ts","./src/models/operations/makedecision.ts","./src/models/operations/markplayed.ts","./src/models/operations/matchitem.ts","./src/models/operations/mergeitems.ts","./src/models/operations/modifydevice.ts","./src/models/operations/modifyplaylistgenerator.ts","./src/models/operations/movecollectionitem.ts","./src/models/operations/movehub.ts","./src/models/operations/moveplaylistitem.ts","./src/models/operations/moveplayqueueitem.ts","./src/models/operations/optimizedatabase.ts","./src/models/operations/postuserssignindata.ts","./src/models/operations/processsubscriptions.ts","./src/models/operations/refreshitemsmetadata.ts","./src/models/operations/refreshplaylist.ts","./src/models/operations/refreshsection.ts","./src/models/operations/refreshsectionsmetadata.ts","./src/models/operations/reloadguide.ts","./src/models/operations/removedevice.ts","./src/models/operations/removedevicefromdvr.ts","./src/models/operations/removedownloadqueueitems.ts","./src/models/operations/reordersubscription.ts","./src/models/operations/report.ts","./src/models/operations/resetplayqueue.ts","./src/models/operations/resetsectiondefaults.ts","./src/models/operations/restartprocessingdownloadqueueitems.ts","./src/models/operations/scan.ts","./src/models/operations/searchhubs.ts","./src/models/operations/setchannelmap.ts","./src/models/operations/setdevicepreferences.ts","./src/models/operations/setdvrpreferences.ts","./src/models/operations/setitemartwork.ts","./src/models/operations/setitempreferences.ts","./src/models/operations/setpreferences.ts","./src/models/operations/setrating.ts","./src/models/operations/setsectionpreferences.ts","./src/models/operations/setstreamoffset.ts","./src/models/operations/setstreamselection.ts","./src/models/operations/shuffle.ts","./src/models/operations/splititem.ts","./src/models/operations/startanalysis.ts","./src/models/operations/startbifgeneration.ts","./src/models/operations/starttask.ts","./src/models/operations/starttranscodesession.ts","./src/models/operations/stopdvrreload.ts","./src/models/operations/stopscan.ts","./src/models/operations/stoptask.ts","./src/models/operations/terminatesession.ts","./src/models/operations/transcodeimage.ts","./src/models/operations/transcodesubtitles.ts","./src/models/operations/triggerfallback.ts","./src/models/operations/tunechannel.ts","./src/models/operations/unmatch.ts","./src/models/operations/unscrobble.ts","./src/models/operations/unshuffle.ts","./src/models/operations/updatehubvisibility.ts","./src/models/operations/updateitemartwork.ts","./src/models/operations/updateitems.ts","./src/models/operations/updateplaylist.ts","./src/models/operations/uploadplaylist.ts","./src/models/operations/voicesearchhubs.ts","./src/models/operations/writemessage.ts","./src/models/operations/index.ts","./src/types/async.ts","./src/funcs/activitiesCancelActivity.ts","./src/funcs/activitiesListActivities.ts","./src/sdk/activities.ts","./src/models/errors/getserverresources.ts","./src/models/errors/gettokendetails.ts","./src/models/errors/getusers.ts","./src/models/errors/postuserssignindata.ts","./src/models/errors/index.ts","./src/funcs/authenticationGetTokenDetails.ts","./src/funcs/authenticationPostUsersSignInData.ts","./src/sdk/authentication.ts","./src/funcs/butlerGetTasks.ts","./src/funcs/butlerStartTask.ts","./src/funcs/butlerStartTasks.ts","./src/funcs/butlerStopTask.ts","./src/funcs/butlerStopTasks.ts","./src/sdk/butler.ts","./src/funcs/collectionsCreateCollection.ts","./src/sdk/collections.ts","./src/funcs/contentGetAlbums.ts","./src/funcs/contentGetAllLeaves.ts","./src/funcs/contentGetArts.ts","./src/funcs/contentGetCategories.ts","./src/funcs/contentGetCluster.ts","./src/funcs/contentGetCollectionImage.ts","./src/funcs/contentGetCollectionItems.ts","./src/funcs/contentGetFolders.ts","./src/funcs/contentGetMetadataItem.ts","./src/funcs/contentGetSonicallySimilar.ts","./src/funcs/contentGetSonicPath.ts","./src/funcs/contentListContent.ts","./src/funcs/contentListMoments.ts","./src/sdk/content.ts","./src/funcs/devicesAddDevice.ts","./src/funcs/devicesDiscoverDevices.ts","./src/funcs/devicesGetAvailableGrabbers.ts","./src/funcs/devicesGetDeviceDetails.ts","./src/funcs/devicesGetDevicesChannels.ts","./src/funcs/devicesGetThumb.ts","./src/funcs/devicesListDevices.ts","./src/funcs/devicesModifyDevice.ts","./src/funcs/devicesRemoveDevice.ts","./src/funcs/devicesScan.ts","./src/funcs/devicesSetChannelmap.ts","./src/funcs/devicesSetDevicePreferences.ts","./src/funcs/devicesStopScan.ts","./src/sdk/devices.ts","./src/funcs/downloadQueueAddDownloadQueueItems.ts","./src/funcs/downloadQueueCreateDownloadQueue.ts","./src/funcs/downloadQueueGetDownloadQueue.ts","./src/funcs/downloadQueueGetDownloadQueueItems.ts","./src/funcs/downloadQueueGetDownloadQueueMedia.ts","./src/funcs/downloadQueueGetItemDecision.ts","./src/funcs/downloadQueueListDownloadQueueItems.ts","./src/funcs/downloadQueueRemoveDownloadQueueItems.ts","./src/funcs/downloadQueueRestartProcessingDownloadQueueItems.ts","./src/sdk/downloadqueue.ts","./src/funcs/dvRsAddDeviceToDVR.ts","./src/funcs/dvRsAddLineup.ts","./src/funcs/dvRsCreateDVR.ts","./src/funcs/dvRsDeleteDVR.ts","./src/funcs/dvRsDeleteLineup.ts","./src/funcs/dvRsGetDVR.ts","./src/funcs/dvRsListDVRs.ts","./src/funcs/dvRsReloadGuide.ts","./src/funcs/dvRsRemoveDeviceFromDVR.ts","./src/funcs/dvRsSetDVRPreferences.ts","./src/funcs/dvRsStopDVRReload.ts","./src/funcs/dvRsTuneChannel.ts","./src/sdk/dvrs.ts","./src/funcs/epgComputeChannelMap.ts","./src/funcs/epgGetAllLanguages.ts","./src/funcs/epgGetChannels.ts","./src/funcs/epgGetCountries.ts","./src/funcs/epgGetCountriesLineups.ts","./src/funcs/epgGetCountryRegions.ts","./src/funcs/epgGetLineup.ts","./src/funcs/epgGetLineupChannels.ts","./src/funcs/epgListLineups.ts","./src/sdk/epg.ts","./src/funcs/eventsConnectWebSocket.ts","./src/funcs/eventsGetNotifications.ts","./src/sdk/events.ts","./src/funcs/generalGetIdentity.ts","./src/funcs/generalGetServerInfo.ts","./src/funcs/generalGetSourceConnectionInformation.ts","./src/funcs/generalGetTransientToken.ts","./src/sdk/general.ts","./src/funcs/hubsCreateCustomHub.ts","./src/funcs/hubsDeleteCustomHub.ts","./src/funcs/hubsGetAllHubs.ts","./src/funcs/hubsGetContinueWatching.ts","./src/funcs/hubsGetHubItems.ts","./src/funcs/hubsGetMetadataHubs.ts","./src/funcs/hubsGetPostplayHubs.ts","./src/funcs/hubsGetPromotedHubs.ts","./src/funcs/hubsGetRelatedHubs.ts","./src/funcs/hubsGetSectionHubs.ts","./src/funcs/hubsListHubs.ts","./src/funcs/hubsMoveHub.ts","./src/funcs/hubsResetSectionDefaults.ts","./src/funcs/hubsUpdateHubVisibility.ts","./src/sdk/hubs.ts","./src/funcs/libraryAddExtras.ts","./src/funcs/libraryAddSection.ts","./src/funcs/libraryAddSubtitles.ts","./src/funcs/libraryAnalyzeMetadata.ts","./src/funcs/libraryAutocomplete.ts","./src/funcs/libraryCancelRefresh.ts","./src/funcs/libraryCleanBundles.ts","./src/funcs/libraryCreateMarker.ts","./src/funcs/libraryDeleteCaches.ts","./src/funcs/libraryDeleteCollection.ts","./src/funcs/libraryDeleteIndexes.ts","./src/funcs/libraryDeleteIntros.ts","./src/funcs/libraryDeleteLibrarySection.ts","./src/funcs/libraryDeleteMarker.ts","./src/funcs/libraryDeleteMediaItem.ts","./src/funcs/libraryDeleteMetadataItem.ts","./src/funcs/libraryDeleteStream.ts","./src/funcs/libraryDetectAds.ts","./src/funcs/libraryDetectCredits.ts","./src/funcs/libraryDetectIntros.ts","./src/funcs/libraryDetectVoiceActivity.ts","./src/funcs/libraryEditMarker.ts","./src/funcs/libraryEditMetadataItem.ts","./src/funcs/libraryEditSection.ts","./src/funcs/libraryEmptyTrash.ts","./src/funcs/libraryGenerateThumbs.ts","./src/funcs/libraryGetAllItemLeaves.ts","./src/funcs/libraryGetAugmentationStatus.ts","./src/funcs/libraryGetAvailableSorts.ts","./src/funcs/libraryGetChapterImage.ts","./src/funcs/libraryGetCollections.ts","./src/funcs/libraryGetCommon.ts","./src/funcs/libraryGetExtras.ts","./src/funcs/libraryGetFile.ts","./src/funcs/libraryGetFirstCharacters.ts","./src/funcs/libraryGetImageFromBif.ts","./src/funcs/libraryGetItemArtwork.ts","./src/funcs/libraryGetItemTree.ts","./src/funcs/libraryGetLibraryDetails.ts","./src/funcs/libraryGetLibraryItems.ts","./src/funcs/libraryGetLibraryMatches.ts","./src/funcs/libraryGetMediaPart.ts","./src/funcs/libraryGetPartIndex.ts","./src/funcs/libraryGetPerson.ts","./src/funcs/libraryGetRandomArtwork.ts","./src/funcs/libraryGetRelatedItems.ts","./src/funcs/libraryGetSectionFilters.ts","./src/funcs/libraryGetSectionImage.ts","./src/funcs/libraryGetSectionPreferences.ts","./src/funcs/libraryGetSections.ts","./src/funcs/libraryGetSectionsPrefs.ts","./src/funcs/libraryGetStream.ts","./src/funcs/libraryGetStreamLevels.ts","./src/funcs/libraryGetStreamLoudness.ts","./src/funcs/libraryGetTags.ts","./src/funcs/libraryIngestTransientItem.ts","./src/funcs/libraryListMatches.ts","./src/funcs/libraryListPersonMedia.ts","./src/funcs/libraryListSimilar.ts","./src/funcs/libraryListSonicallySimilar.ts","./src/funcs/libraryListTopUsers.ts","./src/funcs/libraryMatchItem.ts","./src/funcs/libraryMergeItems.ts","./src/funcs/libraryOptimizeDatabase.ts","./src/funcs/libraryRefreshItemsMetadata.ts","./src/funcs/libraryRefreshSection.ts","./src/funcs/libraryRefreshSectionsMetadata.ts","./src/funcs/librarySetItemArtwork.ts","./src/funcs/librarySetItemPreferences.ts","./src/funcs/librarySetSectionPreferences.ts","./src/funcs/librarySetStreamOffset.ts","./src/funcs/librarySetStreamSelection.ts","./src/funcs/librarySplitItem.ts","./src/funcs/libraryStartAnalysis.ts","./src/funcs/libraryStartBifGeneration.ts","./src/funcs/libraryStopAllRefreshes.ts","./src/funcs/libraryUnmatch.ts","./src/funcs/libraryUpdateItemArtwork.ts","./src/funcs/libraryUpdateItems.ts","./src/sdk/library.ts","./src/funcs/libraryCollectionsAddCollectionItems.ts","./src/funcs/libraryCollectionsDeleteCollectionItem.ts","./src/funcs/libraryCollectionsMoveCollectionItem.ts","./src/sdk/librarycollections.ts","./src/funcs/libraryPlaylistsAddPlaylistItems.ts","./src/funcs/libraryPlaylistsClearPlaylistItems.ts","./src/funcs/libraryPlaylistsCreatePlaylist.ts","./src/funcs/libraryPlaylistsDeletePlaylist.ts","./src/funcs/libraryPlaylistsDeletePlaylistItem.ts","./src/funcs/libraryPlaylistsGetPlaylistGenerator.ts","./src/funcs/libraryPlaylistsGetPlaylistGeneratorItems.ts","./src/funcs/libraryPlaylistsGetPlaylistGenerators.ts","./src/funcs/libraryPlaylistsModifyPlaylistGenerator.ts","./src/funcs/libraryPlaylistsMovePlaylistItem.ts","./src/funcs/libraryPlaylistsRefreshPlaylist.ts","./src/funcs/libraryPlaylistsUpdatePlaylist.ts","./src/funcs/libraryPlaylistsUploadPlaylist.ts","./src/sdk/libraryplaylists.ts","./src/funcs/liveTVGetLiveTVSession.ts","./src/funcs/liveTVGetSessionPlaylistIndex.ts","./src/funcs/liveTVGetSessions.ts","./src/funcs/liveTVGetSessionSegment.ts","./src/sdk/livetv.ts","./src/funcs/logEnablePapertrail.ts","./src/funcs/logWriteLog.ts","./src/funcs/logWriteMessage.ts","./src/sdk/log.ts","./src/funcs/playlistGetPlaylist.ts","./src/funcs/playlistGetPlaylistItems.ts","./src/funcs/playlistListPlaylists.ts","./src/sdk/playlist.ts","./src/funcs/playQueueAddToPlayQueue.ts","./src/funcs/playQueueClearPlayQueue.ts","./src/funcs/playQueueCreatePlayQueue.ts","./src/funcs/playQueueDeletePlayQueueItem.ts","./src/funcs/playQueueGetPlayQueue.ts","./src/funcs/playQueueMovePlayQueueItem.ts","./src/funcs/playQueueResetPlayQueue.ts","./src/funcs/playQueueShuffle.ts","./src/funcs/playQueueUnshuffle.ts","./src/sdk/playqueue.ts","./src/funcs/plexGetServerResources.ts","./src/sdk/plex.ts","./src/funcs/preferencesGetAllPreferences.ts","./src/funcs/preferencesGetPreference.ts","./src/funcs/preferencesSetPreferences.ts","./src/sdk/preferences.ts","./src/funcs/providerAddProvider.ts","./src/funcs/providerDeleteMediaProvider.ts","./src/funcs/providerListProviders.ts","./src/funcs/providerRefreshProviders.ts","./src/sdk/provider.ts","./src/funcs/rateSetRating.ts","./src/sdk/rate.ts","./src/funcs/searchSearchHubs.ts","./src/funcs/searchVoiceSearchHubs.ts","./src/sdk/search.ts","./src/funcs/statusDeleteHistory.ts","./src/funcs/statusGetBackgroundTasks.ts","./src/funcs/statusGetHistoryItem.ts","./src/funcs/statusListPlaybackHistory.ts","./src/funcs/statusListSessions.ts","./src/funcs/statusTerminateSession.ts","./src/sdk/status.ts","./src/funcs/subscriptionsCancelGrab.ts","./src/funcs/subscriptionsCreateSubscription.ts","./src/funcs/subscriptionsDeleteSubscription.ts","./src/funcs/subscriptionsEditSubscriptionPreferences.ts","./src/funcs/subscriptionsGetAllSubscriptions.ts","./src/funcs/subscriptionsGetScheduledRecordings.ts","./src/funcs/subscriptionsGetSubscription.ts","./src/funcs/subscriptionsGetTemplate.ts","./src/funcs/subscriptionsProcessSubscriptions.ts","./src/funcs/subscriptionsReorderSubscription.ts","./src/sdk/subscriptions.ts","./src/funcs/timelineMarkPlayed.ts","./src/funcs/timelineReport.ts","./src/funcs/timelineUnscrobble.ts","./src/sdk/timeline.ts","./src/funcs/transcoderMakeDecision.ts","./src/funcs/transcoderStartTranscodeSession.ts","./src/funcs/transcoderTranscodeImage.ts","./src/funcs/transcoderTranscodeSubtitles.ts","./src/funcs/transcoderTriggerFallback.ts","./src/sdk/transcoder.ts","./src/funcs/ultraBlurGetColors.ts","./src/funcs/ultraBlurGetImage.ts","./src/sdk/ultrablur.ts","./src/funcs/updaterApplyUpdates.ts","./src/funcs/updaterCheckUpdates.ts","./src/funcs/updaterGetUpdatesStatus.ts","./src/sdk/updater.ts","./src/funcs/usersGetUsers.ts","./src/sdk/users.ts","./src/sdk/sdk.ts","./src/index.ts","./src/hooks/index.ts","./src/lib/dlv.ts","./src/sdk/index.ts","./src/types/blobs.ts","./src/types/constdatetime.ts","./src/types/operations.ts","./src/types/index.ts","./src/types/streams.ts","./node_modules/@types/estree/index.d.ts","./node_modules/@types/json-schema/index.d.ts"],"fileIdsList":[[114],[114,117],[107,114,115,116,117,118,119,120,121],[122],[114,115],[114,116],[62,64,65,66,67],[62,64,66,67],[62,64,66],[62,64,65,67],[62,64,67],[62,63,64,65,66,67,68,69,107,108,109,110,111,112,113],[64,67],[61,62,63,65,66,67],[64,108,112],[64,65,66,67],[123],[66],[70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106],[204],[124,128,129,130,137,194,196,200,203,204,205,207,208,210,443,444],[128,129,137,194,196,200,204,205,207,208,210,443,444],[128,129,130,137,191,194,196,200,203,204,205,207,208,210,359,443,444,452],[128,129,130,137,194,200,203,204,205,207,208,210,392,443,444,452],[124,128,129,137,194,196,200,204,205,207,208,210,444],[128,129,130,137,191,194,196,200,203,204,205,207,208,210,443,444],[128,129,130,137,194,196,200,203,204,205,207,208,210,443,444],[128,129,137,191,194,196,200,204,205,207,208,210,444],[128,129,130,133,137,194,196,200,203,204,205,207,208,210,443,444],[124,128,129,130,137,194,196,200,204,205,207,208,210,444],[124,128,129,130,137,191,194,196,200,203,204,205,207,208,210,344,443,444,452],[128,129,133,137,194,196,200,204,205,207,208,210,443,444],[128,129,130,137,194,196,200,203,204,205,207,208,210,362,443,444,452],[60,197,198],[197,199],[197],[60,193,195,196],[60,195,206,722],[124],[60,191,192,193,194],[201,202],[60,129,202,208,209],[60],[124,128,129],[60,129,192,193,195,196,197,199,200,201,203],[191],[124,133,207,443],[128,200,207,208,209,448,449,450,451],[114,128,207],[207],[124,137,191],[124,128,129,130,133,137,191],[124,128,129,130,137,191],[124,128,129,130,133,137,142],[124,128,129,130,133,137,142,191],[124,128,129,130,133,137],[124,128,129,130,137,170,191],[211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398,399,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442],[124,128,129,130,137],[124,128,129,130,133],[124,128,129,130,133,135,137],[124,128,129,130,133,137,138],[124,128,129,130,133,137,151],[124,128,129,130,133,142],[125,126,127,134,135,136,138,139,140,141,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190],[124,128,129,130,133,137,141,145,148,149,150],[124,128,129,130,133,137,154],[124,128,129,130,133,137,147],[124,128,129,130,133,137,141,142,145,149,150],[124,128,129,130,133,137,139],[124,128,129,130,133,137,152],[124,128,129,130,133,137,157],[124,128,129,130,133,137,141,145,148,149,150,153],[124,128,129,130,133,137,141,142,145,148,149,150],[124,128,129,130,133,137,171],[124,128,129,130,133,137,174],[124,128,129,130,133,137,142,151],[124,176],[124,128,129,130,133,137,142,171,173],[124,142],[124,128,129,130,133,137,146],[124,128,129,130,133,142,170],[124,128,129,130,133,142,189],[129,204,443,445,446],[129,191,204,443,453,454],[129,204,443,456,457,458,459,460],[129,191,204,443,462],[129,191,204,443,464,465,466,467,468,469,470,471,472,473,474,475,476],[129,191,204,443,478,479,480,481,482,483,484,485,486,487,488,489,490],[129,191,204,443,492,493,494,495,496,497,498,499,500],[129,204,443,502,503,504,505,506,507,508,509,510,511,512,513],[129,191,204,443,515,516,517,518,519,520,521,522,523],[129,204,443,525,526],[129,191,204,443,528,529,530,531],[129,204,443,533,534,535,536,537,538,539,540,541,542,543,544,545,546],[722],[129,191,204,443,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611,612,613,614,615,616,617,618,619,620,621,622,623,624,625,626],[129,191,204,443,628,629,630],[129,191,204,443,632,633,634,635,636,637,638,639,640,641,642,643,644],[129,204,443,646,647,648,649],[129,204,443,651,652,653],[129,191,204,443,655,656,657],[129,191,204,443,659,660,661,662,663,664,665,666,667],[129,191,204,443,669],[129,191,204,443,671,672,673],[129,204,443,675,676,677,678],[129,204,443,680],[204,447,455,461,463,477,491,501,514,524,527,532,547,627,631,645,650,654,658,668,670,674,679,681,684,691,702,706,712,715,719,721],[129,204,443,682,683],[129,204,443,685,686,687,688,689,690],[129,191,204,443,692,693,694,695,696,697,698,699,700,701],[129,204,443,703,704,705],[129,191,204,443,707,708,709,710,711],[129,204,443,713,714],[129,204,443,716,717,718],[129,204,443,720],[131],[124,131],[129,131,132,133,142,169,727,729],[129],[124,131,132],[124,131,132,169]],"fileInfos":[{"version":"69684132aeb9b5642cbcd9e22dff7818ff0ee1aa831728af0ecf97d3364d5546","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"092c2bfe125ce69dbb1223c85d68d4d2397d7d8411867b5cc03cec902c233763","affectsGlobalScope":true,"impliedFormat":1},{"version":"07f073f19d67f74d732b1adea08e1dc66b1b58d77cb5b43931dee3d798a2fd53","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"b5ce7a470bc3628408429040c4e3a53a27755022a32fd05e2cb694e7015386c7","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"7d4040171221b4d6225a59a74c5d091fa4ccbb95c5edb88601ce1f046cf81624","signature":"7748b5e81a4ae1ea5d8e89e879053cec4a29ffc29cbdcd1d3f6e742abddd323a","impliedFormat":1},{"version":"309ebd217636d68cf8784cbc3272c16fb94fb8e969e18b6fe88c35200340aef1","impliedFormat":1},{"version":"ae4ca201d763363f092f90c6338ad3d1c63661e12eb4351ead64ec878537487f","impliedFormat":1},{"version":"ef9b6279acc69002a779d0172916ef22e8be5de2d2469ff2f4bb019a21e89de2","impliedFormat":1},{"version":"b89a14b51c4a2994fd7a66383e4f19a93df6707244221995095503d410756517","affectsGlobalScope":true,"impliedFormat":1},{"version":"2b060d4870c5310da5674b70508f943f8fb0bb899397161d6745ebdff9e803ec","impliedFormat":1},{"version":"6c859096094c744d2dd7b733189293a5b2af535e15f7794e69a3b4288b70dcfc","impliedFormat":1},{"version":"d46de7b873cd19455b3dbceab3cc8a098abf519dda95904b8f0fabeb80480343","impliedFormat":1},{"version":"716a022c6d311c8367d830d2839fe017699564de2d0f5446b4a6f3f022a5c0c6","impliedFormat":1},{"version":"c939cb12cb000b4ec9c3eca3fe7dee1fe373ccb801237631d9252bad10206d61","impliedFormat":1},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":1},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":1},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":1},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":1},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":1},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":1},{"version":"3b25e966fd93475d8ca2834194ea78321d741a21ca9d1f606b25ec99c1bbc29a","impliedFormat":1},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":1},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":1},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":1},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":1},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":1},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":1},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":1},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":1},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":1},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":1},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":1},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":1},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":1},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":1},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":1},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":1},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":1},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":1},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":1},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":1},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":1},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":1},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":1},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":1},{"version":"3b25e966fd93475d8ca2834194ea78321d741a21ca9d1f606b25ec99c1bbc29a","impliedFormat":1},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":1},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":1},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":1},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":1},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":1},{"version":"e125ee5bd9c921ed2e27a13e89532c4c44ecad11711018916163f0e708faaf89","impliedFormat":1},{"version":"932dfc48e5dc36c289aeb7730324024202b27998c99cff293684495a490d7b94","impliedFormat":1},{"version":"80e653fbbec818eecfe95d182dc65a1d107b343d970159a71922ac4491caa0af","impliedFormat":1},{"version":"f978b1b63ad690ff2a8f16d6f784acaa0ba0f4bcfc64211d79a2704de34f5913","impliedFormat":1},{"version":"444bcf0bbbae1972a74458b8be75c7bc612c69226823cc0ef50297e6eea40896","impliedFormat":1},{"version":"02e75aceef20d8bfc6c625015a7c23a8a8ca3412bba55599f143057251b331a7","impliedFormat":1},{"version":"9048a2528d014161273178ece75386066d048ba4a56d9b7b4e8052ce4e3adb48","impliedFormat":1},{"version":"f5c8f2ef9603893e25ed86c7112cd2cc60d53e5387b9146c904bce3e707c55de","impliedFormat":1},{"version":"dc01facbb7d88bc5e2eabb7c6eee80a0241538d50a5c3b210fb745683faa1dab","impliedFormat":1},{"version":"5c5197a46686814821229b28e4cfd601ef0a32f2d2d29b9a99050bac0ab03c99","impliedFormat":1},{"version":"7020e307edddab6e5a6b845066663f3bf3053d1426433988bf4a499cce2a6b3a","impliedFormat":1},{"version":"2c6c3af3957e38e6a5190258a666a06893ba5a11e3501585243129afecefd037","impliedFormat":1},{"version":"13e5ea921d6f62171aab19f33a6690e3c6658eecd2e5672425e49ac30d4305e6","impliedFormat":1},{"version":"1e28020a23b28743d5bd708b9e4c7b75fdff606aa080fbaf5b8db3600d5c99cf","impliedFormat":1},{"version":"49e7f03e7e7288397725e823654fdfe61892bb5082f391057e61b9c4f1b54f16","impliedFormat":1},{"version":"b91f4919c0972651793b78baf5a06fa9a7a412d22af20122e011d0ec21506c41","impliedFormat":1},{"version":"d49030b9a324bab9bcf9f663a70298391b0f5a25328409174d86617512bf3037","impliedFormat":1},{"version":"a4b634bb8c97cc700dbf165f3bb0095ec669042da72eaf28a7c5e2ddd98169ce","impliedFormat":1},{"version":"2800573a9807b1989f011c3048ffef9bacca22cbdf87aaaa93c67cd3a18c1264","signature":"1ddbc0f9830a0214f20e43b59405f34554734ec3f8f3d9d7b1c4042d6b75693d","impliedFormat":1},{"version":"6880fb24994c692c91d5ab55e8b9e3610c7760a905722f4673fe79175ab2b9fb","signature":"d1437b452e83a3a316da694ad5af7c30511d1019c245f8cb786a81c3ca0eb427","impliedFormat":1},{"version":"9441a85735d24a595ba535e61fb7e8d328ef035788583492f6f10dcdc31a1644","signature":"9cca0968a4567d2e3e8ec0e5900ca872e5b1e6f7261b8e1d7eaee823e4bc1804","impliedFormat":1},{"version":"07ac0f645686efc63f255c7988e85afd8c37cb279c078528df20a71baa62a47a","signature":"62398c69602504602db0ddaebfe902fc43a13efc9342f007717cbdc132f047d2","impliedFormat":1},{"version":"86504e23a63d55878dd54b9b4b69c0bca3d907d7d47cb318abcf356516e72f7c","signature":"24294e95d086f5fddd2e79f58837d15822acb2a317daf9d4ada7bdf2259e0af2","impliedFormat":1},{"version":"0e8a3a9172713c016d1d84ff0529385379c1b5d8b7a1d856cf4c700d18bf72e7","signature":"9cc44c00c21fa93ecc12b58a1e319ff3ef49a31274a91a612f8be04c9dfd0880","impliedFormat":1},{"version":"29ab6d4d940aa67837da835a55451ee0edb24d3a9932f6c93835be4f1da27871","signature":"584d1df6d3ce7081c9287a49b2306bb0d725d3886ff0fe257d4bde6cd6b9e6c8","impliedFormat":1},{"version":"c8468e70bc9479b6181b134efd6a34908e2293cd1aa42ae798ff77cf5b7a8b83","signature":"b28e793a4da7bffef4082b027038adadbe910aa75d425f4648f57db1be35bd90","impliedFormat":1},{"version":"53a234282a35ba50386c918c7ddae6c595c3da128797a3265bee9a7d461a9c30","signature":"2dbaddeca061b9f80de594f7a29d6a09d486c32988dcbfbb0e059c39aca3e3f2","impliedFormat":1},{"version":"f846a929dc1d73d7a0eb8ddcf629851b45367deb5fb3e08dbc3319b63417e37a","signature":"cc7c5ee5f27e53f9fe191d6c8865ebf201041f10036f655450a5daff19e28a95","impliedFormat":1},{"version":"c0f95c893a1c4b831310f2d4efa0dd4d66a5ac61dfae55fb2d7a9e02faf875b5","signature":"1e7838bb12d10f59fd57f4a56cf629dfeabc6b3e0188844467e5a4ec96e73f4b","impliedFormat":1},{"version":"6e563ec500aef35ffe347d01945774b7b172646152e171cd5b91dbdc47ac7295","signature":"39fae4e74a562e6c3d7a999988ebfc5a6286567eb5543a92dee743874fc4cd29","impliedFormat":1},{"version":"59baa6b0600894f8b7ff2a5b50e6ae026b714f06cca13b51406f37eae5a2288f","signature":"c923edcbb2702bea342f2a52a1e1ccfea2e7ab1246b3b32f96ba18f5b1cb0af4","impliedFormat":1},{"version":"e4661d8174d19991926cb135fa917146420ec92274fffc0fcb913a153b37d4c3","signature":"bcc753a2d97c3fdc2f9ddabfce7e2e0166e2eb370d10dcaab85be917804bf67f","impliedFormat":1},{"version":"09045cc70fd49998803836dcd6a0d8ba8c1afb1aee2f8ff88eadc3ffff655de7","signature":"73d24dffcf43a71245c2983ddc7ce72c93c589d10222e12b6b427171047f4b21","impliedFormat":1},{"version":"72bef8a2f897469d3903fcc9b94f266266c93f5a63071a99203ef8e5b2bfa016","signature":"1d321b0590e3a230c52529b27ebedc78f645f728d8b8f511474fa1a2f4faf1b2","impliedFormat":1},{"version":"c9cece55b8243f311cd32b9d2203560068d38558a8283a3022e3790ca8044349","signature":"a1696b24e11ab74289cda2f697fabc160e56644381acb2929cc5f9a4b7666a72","impliedFormat":1},{"version":"70009264c00192de87e509fe6dad3ef3422adaf3f648e8a1170d7ff945890719","signature":"4a801ebcda5f77bff1cb95c1e2aa054ff41d2a1329a119d43e47f0b71dd7bf3d","impliedFormat":1},{"version":"d865ca7f52e91f274f181c140b585a6b11c17acd7e4d88b4cfe1e018662d7b95","signature":"b4b11a411d5266c2bdea9f3b23e4cdf0864c28995103249020adf94ca37190d7","impliedFormat":1},{"version":"616c1e83038ece0a7715514ecd49fc019080d2dd81f59240435010034055859a","signature":"9337eec19001fb57fa7bee9670f8c024968c44a99cb93d05c2ad65c95ffd8b7a","impliedFormat":1},{"version":"65bfabf9a80640bc35d4ddb5f9e6dc2ec24237544718bb4c9022942b95338a11","signature":"dbfb661a049468dc26e2e984c65f26712475807b8b346a43365ef61bd018d6d6","impliedFormat":1},{"version":"3d45fd2c0aed54602ca026c6875dae0a731a44c9217c837b591e977817295f69","signature":"d1335ae11ec4a9496e78cfdb389123cba3f2bf0390a45fbe36f1c0a5f48a2b56","impliedFormat":1},{"version":"4162b833def6b6c9f128c49e5a960c352b40a3318af6f22c862f2fe0d7c53499","signature":"8c704060468d1fc0db144c314a1f8ce241d085f5d8719e2bb4d18e20ccceed3a","impliedFormat":1},{"version":"e4da6143266346809706f77b311c849c5763f43b394ef72bfae75dd330c437af","signature":"36ea19d0c4b2991a848902e1566ca7d8c0fdaac93f75657cfd4e527802ee0a2d","impliedFormat":1},{"version":"cd428f39df8aecb7deef27b03951fad5856de77ad97b19b4bfb338b81801c0a4","signature":"95db1839614379b132744cc21816389f0ae35fc864d4637215b2f4b44bfe1209","impliedFormat":1},{"version":"c771da3f908d5641ff0d9c13d1983fbef5d505639cb7b810c2c188cff8bc6ecc","signature":"6d0e44d6ad86cf6f2b1f7b688328126b3d4d89547edbe8d5a741fd1917de924c","impliedFormat":1},{"version":"1d12fccd852c2bb5644a4d5c0fc90ab769c6feb75e0d18ae353cbf32522c373d","signature":"b7f718017bc52e6732230b62055b973978738833673a87b38b78186f84eb362d","impliedFormat":1},{"version":"f366a32a5e175981fcac9422112403f09ae99e3eee7e02f716e554a7a46dd17a","signature":"e830afb4b8dd9b7ba42ef8f3b03eb97c83af83c97723788d1b7a23f92c86ce26","impliedFormat":1},{"version":"bff7ca47617749f85e4e612fa588c53016718dfc5e97f2437adeb23992fd66eb","signature":"d195308bc28868e02bd6d6f06b3c8021e307095e2509a1b46c84e37db135c503","impliedFormat":1},{"version":"3e8615fc4740d2cbaea1d5e7f9589d364304522a57ff5a463728c64905b2b19a","signature":"9652f167328170be61d1ba7feb00ad00ed38b20a381fb98d0f2c11d34a0df705","impliedFormat":1},{"version":"61b261e594d6686e9a9fb594694d67a1e8a84d759e7e6dc6a59fdd1c0dd3ed8d","signature":"8c6f9178cbe1edd0c367950d8e7feb9d5d4972592934989b0607149badc84e30","impliedFormat":1},{"version":"28c5e74ece86dd2a56c707a024a0beb6f815ef41565c4173b05ff2235e67a405","signature":"6c1ac023284815afb985c4227dd6f2a0697bc16709060467c9fd868566fa8d6c","impliedFormat":1},{"version":"abb50b9d7eefe09b05221a0714220983b25243673cbcdd772bc72a822351be9c","signature":"6f7d7a03b4336a16c3d95e0141a3ba4be030e6d74be579d237ce5a68c33e136d","impliedFormat":1},{"version":"395d8cbc0b9b787bcb1ddcad4ce5f1c3a376b66e91b72717d93dd8966978dc84","signature":"df1959b5092e1053ed326f6b18ceced449cf0204a7f8b27cad3c2339cf5ee6f6","impliedFormat":1},{"version":"a32d19b3f3e6a5fc7a9ab3c27aff9198e7aef510c047f2c65e9e6f8ef1277cfa","signature":"552ca2464c5c7b221cb8fbad1ef08769812f79b1fccc478e6bd4a16ebe626ca6","impliedFormat":1},{"version":"47db6b42d7654af45dcdc8f8ade2b95d4cabe77d014f2806b67c7cce412c46b0","signature":"848808ae9f0362a7b996085f2952d4f2621977cd37ec0a293333749e981b90fd","impliedFormat":1},{"version":"888f0e6aafe1a121f603e0b091b4d2580fb1d4467638c014b63b77d6526354bb","signature":"e53a99bd22b2ce7c2d3d9b24c8b6fb2ae19f33e8f64a7a9b050728b7934198ff","impliedFormat":1},{"version":"f9dd80632ba1145533bc26d4d1ae4b484cafc373a50a0a8c1a36a5d63a4b8f8e","signature":"4745c4390627550d43d21de7d6dd27cfdf0c1a5511d92859e7ec430983864a7c","impliedFormat":1},{"version":"15ece8234dbcd104fab922a825c61abdecdf649c114de0c2d39287f7a033bb42","signature":"acb5f7c448dad3ce3ba3028ff0ebacb90a29be63f48d075f4ef06afb0cf1bfd9","impliedFormat":1},{"version":"bd2239ff24c5f20bbf8f4267ba21ac2bacf1736f55eb1c807abbbd1a76866c28","signature":"ea26f05e5abd263eedafa3613fa9d7628a3cd1c0a78cba0f131a5dbc757de31c","impliedFormat":1},{"version":"d251831689113fe7ff7f5971831ab972c52e9179d66eb0d8e7d502edee0bec96","signature":"4ed1a2233a49e02414b458b4c67d81e0aec4fb1c174606b16f9cf92e53e7d392","impliedFormat":1},{"version":"9d14b54fbc8934025b90c52cb261e266783ed699ac7762b6020fc8203db82278","signature":"5b42fbc91b0b5d7353ce59f785a59a420cf89802f84a07fcbaa3f4b67a770ec0","impliedFormat":1},{"version":"a5aeb984db6c2d99e3cefe5be987e5ad62a1b2a67ab16039adb3dce8d65b351b","signature":"180219372084d455dc071e9c9b0a22e070d5f4450cecb9dec5f7c51df11f3f97","impliedFormat":1},{"version":"29fc46d1651e5154cd5a467dafa0f1a6b5498a7019296b4347a16a65fce8f0bf","signature":"acdb96e438bc6531da3cb07b442701be775649cb6c81612f8efe0751d9263c4b","impliedFormat":1},{"version":"66ac7f0b04b446564190f7b177c1bf1362459f596308a4664f2d6bdc685b4c0c","signature":"df95d1def9641a949d1b863875ac231727a29b213c9c711ef44a5ff53990aeb3","impliedFormat":1},{"version":"bf474d6812ad0c5925e0957488074b13caed42a8ff5c64316be48f536ba7c639","signature":"ff8fd7a8d1586f40edd6901d19f1ba933b30909e97a756f3eb05aabeb384c738","impliedFormat":1},{"version":"ef855caa3a4acbafa7f7395dccb4928304aec171f48ef91ab266789d94c39db5","signature":"a84312867a2b105101e05c35031c099c15d7f7289f702f6aa409d6706b71b356","impliedFormat":1},{"version":"521f05f7c75810b524883c6b9f11cb1c16f7a4fefbe822834ad90f14b24fcf7d","signature":"0860884293f7ccee3a1196a2609ea1c9eb4dc85720a529c918e603ef500c6c17","impliedFormat":1},{"version":"58b53bcea0c3130e8696d927b531fa559f4dce11895db618bb98521f614515e7","signature":"2019664fbbd2be9938331b32e695eff28e9609561edf07c74014bc13dffad788","impliedFormat":1},{"version":"d2e7685e400d8b3a5b9e1b9a1876103bcbaedf8b0a79fa47f13370c2caf8d6ae","signature":"47643d12486a2fa4c3dbdb1636b05e25af465f0dceed134aa31bf0a1da6381e7","impliedFormat":1},{"version":"0e9089297b726497d3a2b2689b06ff66ef75957d2246268283730b39284d604f","signature":"6b0b79cc89236dd700106cbedda16293e13584586f3190b87c6970970f3c733e","impliedFormat":1},{"version":"c85489dda61fee59914a6c4862c223e788b038fa954018d6673259a85cbad12f","signature":"e38daebc48baa340906ff5f468f58fd97085d53ac18c5e51f70fc7b1ff7ae5ec","impliedFormat":1},{"version":"8d52f7411aeeb6fc06a6b164834d9d1dd08ecbaf3681ba77bbc1ccafcb590c7f","signature":"9e4991875f6ca79a2c25a695c8a35c5a43a0aac90f0dcdc9475a8fcb2889fc63","impliedFormat":1},{"version":"58989bdaf40f146f87673d6b09ce3ec896ecf5004d75b96a45b80ab3dc0825a1","signature":"05a38187976e0b3fcd780d6ce943152e3af246c64437bae7caa55e39d67ecf17","impliedFormat":1},{"version":"897e16417207ffe5f76ee098634433e310298f7f5309ef5792ec65b20c566c60","signature":"8a8a43f95f0b2960eef11682d2ef101ed3ceb5f82c82dafa707b34f84a87e90a","impliedFormat":1},{"version":"692caa75a1500b46908d63cb1d9213454a7815b1cfb3606850b75dadb2f15fd5","signature":"d8fc39c2387e5d72fc07124808e8561d885cb112b550e3fa6a0007f45c01256f","impliedFormat":1},{"version":"fa5b95ad67e3f7d8226ec17338753008f260fad0ce3043e4fe716862c3e35812","signature":"fad03b33a1c84c72f462cb6d039cf46be29232d7e75d9b74783af74e63edf2a0","impliedFormat":1},{"version":"0a88149eee51c26b05800496ba65ce7835cfe6452e4e5cda0a4653ca135289be","signature":"6373cc4b9bb1874128cb8ddf26cde2b9697f2f6fae378539a056910b7c6558e1","impliedFormat":1},{"version":"e1f5fdfb09e3f3258d31df88977a9c97cc7cdd661392f34d0ab3d4b1b1d9b6f8","signature":"13bde062ee532d5fb19915174ed84452b6555103cb3a337eeb14192fdd57b7d5","impliedFormat":1},{"version":"a1cd8d336f998b50c20f3176fd65e4106b145bc1f37424dce510b4869120fe43","signature":"290ed97c379c6a858a8764a05b03da4474ad0a2a9dd3f100ca4b3412fe26e2fd","impliedFormat":1},{"version":"5da65eef7a9d0dbfdfd45744605c200c6df9837094f19c5ec2ec28bda84f388b","signature":"7344bd6a1c94dc6481400b3775a58ff6e71d59a021e38dbd2e783b85575445fe","impliedFormat":1},{"version":"5fcdaa411be079ffc381b83972e8b59ae9fad185836c0a6b7f27e323e8dacfbb","signature":"13e848f704281427fbfd3dfdc8d0f3830a14916b76c8c08758dc3c0aef3ab7b9","impliedFormat":1},{"version":"497ee60c8ac0ed2688e3f50757a924555ddd9c0caec756eaf6f263446d38af9b","signature":"e15757b4986ef516b2e0f827d9dfedc5ff4895e7f602faf603b2da87f46a2a15","impliedFormat":1},{"version":"5f798855df4a23258eac93d425e85f8834a57f4830a396fb123160976973050b","signature":"41b9395b0bcbfa94b21dd5f1b836f8021d77951ed4a754eda30ba8b64316420b","impliedFormat":1},{"version":"f6276d48ff1f2a00d2dd12e8aaa5adfd7a56086ee8bd527f0786ee3179df6c9d","signature":"6e02ee8550f2f336535dff295e47709443fc3c861e2a977250126d33702c1749","impliedFormat":1},{"version":"b7112629c58c5306daf89e5ce381c1931c572d8ee05a129b28ed45a7b4df86ff","signature":"5a4911517cfb41fbf54e6dccbc2f6f94e46c97e359311489b0b5a0ea231311a7","impliedFormat":1},{"version":"8ad244eb261b6d7820fdafb517899bf7623088b842e9661657a99ea9d3680c3e","signature":"b09770480dc7094c46daa3d44af6291f90c595b781894bf3ba7fe596c8787e9f","impliedFormat":1},{"version":"c0146e6f59d1156f543ece1f49bbc929884268b7a65872bb9a9f84881e1bdac3","signature":"12f8d4f27ee799ccf99ede024c87fa05a5082628e5eaca169ff8c3a4a410f76f","impliedFormat":1},{"version":"79296a51fdebb9cfe63296ace1d3ab915817d4833a5ec6e224afe6df9ebc1234","signature":"a824859468126eeefbc4df716a1b889f7221af8347c640bdc864cab776fc331f","impliedFormat":1},{"version":"fc6f268e706c6520be093fd6d7e4a4395a96b5dc723d6687c8686154f02595bb","signature":"82432f71846d3117b09e8c099578770069e9bf1f260e5f92760f5763886f7414","impliedFormat":1},{"version":"5ead5e38382d957fa644f2826bfdd5c0014bfac0464f6e37871f6405caaab2a0","signature":"0fea04069753df7dfed2f99df8a24941b52e0da6862ef150cb70ec7cc8ea97ec","impliedFormat":1},{"version":"0cb688b9c073141a11cc6445fc3aa294a37a6514a5e2977a42e70be54b87d2a1","signature":"8bf2a00da8241ab6ab0d60df02633411b76dcf4ffbcc2840f9eef9504167decc","impliedFormat":1},{"version":"fcce700ea57e0d5bd79dedb75050352e6ff1b00e9a77b58e9eb11450c5984146","signature":"501e498352b01df17994bcda386d0b2f30bff3ff0bfa61e180313178404154d8","impliedFormat":1},{"version":"135e216bbcafc10cab779ca6efb81b6e5e187c925107cf8720b7874e69848d12","signature":"15942eb3e543360c3893a898ff7b14a61773e31884e53b47ca6ffeaa4dfb92d5","impliedFormat":1},{"version":"05d1c20bd62d65c9d6fa9ee03fc55bc87123175327165b4c179cfa0a9f894f1a","signature":"24d77fb79a50a14d95b7670275714b1f08e2f60fac3bd62f8498ee224ce52359","impliedFormat":1},{"version":"96b418a8dcd6a5f181c90a435855eafe3e346d7ebd18b8d08149d9d0408caa82","signature":"d0b8f49339483e126e3d9c798e2afdbd2354633dea017d1da43ad71c504c3628","impliedFormat":1},{"version":"9b826e757de369e482821dae4c94cde508ef61b4026448000005f64dd2de687c","signature":"c83f1edccef5112b6c08714d70434178a4dc606dd1289cba1b9cc7163a48fb42","impliedFormat":1},{"version":"6c6c6c25a40a9edcd06ae0cf8e47a14726dbc3c5ec51c41dddfe7d3728314012","signature":"f2ed2ad0d0ff2e8a3fb29206f0be5dd9efff09963993c710adb697dcb5f36784","impliedFormat":1},{"version":"b4d248ae51b961b7eccb9fe6e778a362b4d24e25927810015569904dfd4b7aa5","signature":"62ff2132c1ce292763711aaccfe181697472d740d964894593fc7ad63cabbfdd","impliedFormat":1},{"version":"7fd8736925427df3b4b33caceb750e48933e6cbe9b44ec4fa7925728d35a5801","signature":"210cf3c623698ee14a352d503042e1536d29db80c374e92a43da640c003f5818","impliedFormat":1},{"version":"dc5f6d50091bb91edac3653e3d014bf3180ca9bb0f9d825f154cc4adcc45e98a","signature":"e193b920407ceb7e84805f303d1c549ebfe17ccac06cc5514c08eb4cb9f9f973","impliedFormat":1},{"version":"5f3c7019b4085d32e728b5ffccffac2649d0981d5397b805b20764b9be7421fe","signature":"1f2494189707f9cd4a6415bae634addec32ace3f85248ed9c2181e4320b1bfe9","impliedFormat":1},{"version":"b9c7ef02600af260c049896a75c8874b784cc329bc2ea862e0fca8da5673fe02","signature":"d740fdfcdb66d397d63c4fedb43fe3e6f86c48265d7cf1af3b1884069bc66a7f","impliedFormat":1},{"version":"63ea1a562f3e7bdd6163e1652792f8be25120293dfd9000f2541f6cd71bfb918","signature":"373b7bef7100cf91c9c7fc5ce639966c2d3521eb14b5f8de093b5ee18336e20c","impliedFormat":1},{"version":"79cc69bf5d4393b9ef182c820bbec978a600bee8a3895b0f6ad24c6fbb640d2e","signature":"5be7964616985eb2fbc5fed25cff4efcf6e4db543f1f04b5cc4157130e35655d","impliedFormat":1},{"version":"f8180ff045e5c35410bbc9d512d435b7561e84ad610dacea4805eb7cd7a205e3","signature":"966c7dfab75ac958ebba5ee15d2bba76a9b32432ae87b1de70678c219bec899a","impliedFormat":1},{"version":"587ab364a1da04d3d645eaedaa5cebc841ca2511df845154f0a34403f4e9a8a7","signature":"66da514284a568251edc8d868e072b9cf107a8261e6444a644d27c481806e4db","impliedFormat":1},{"version":"657e9fcda9b697d527b4eb00752f4268e613d1464c6b219fd717be5685d27c25","signature":"2d373d80e75187c60ad674f71efcdbb7dd8a414ee929d86cab94168b0ffefa04","impliedFormat":1},{"version":"bf83183abe0325e4e61f76dc8e951178829fabe9a04d443373820f4b1cb6298a","signature":"729f5bb4644c6f2b256d4ce0eb9e1c8c9f49be0380d61257a79e2b7aa82d8312","impliedFormat":1},{"version":"fe5d10ab7ecf4f7d0793e5ef1aca800b368225a126c6b6b9c5e2d49a7359a853","signature":"afeebf8811d62fb3320766a8788f567b535236669b37fed80230deb8f63227bf","impliedFormat":1},{"version":"d6a4f0d8acd8efda2493d4414ee28deafe8d96605578e061a81710122ce044f9","signature":"f7aad1c06191ef69a1ff2612e76d5d91853eed268424b8fe2a9e466906330b27","impliedFormat":1},{"version":"99bfa23f669dd2ec165446cd7002b3ec0f2208ddac7ebed74f853ffc7806767a","signature":"3f5ae9ce1053699548a0a019eabba045326f47759b84ee0f17825966b360c73f","impliedFormat":1},{"version":"1f1cf7982a920bde8eda472bf3d683267235f5a2c89baeafe537b599cca082c5","signature":"ed262159461011ae6843e2781225986682ebd7a662e4849d1bbff69ce9a2462c","impliedFormat":1},{"version":"23c081a3b7103f6c8733402e61b8e84b05332c824e4eb18e8ab7cdc3cd348bfd","signature":"347c65340b3c63b11c6941148a36efddce2f9b93a2dbcde92660dccf9a213c88","impliedFormat":1},{"version":"e2868039fe28f71a1bf75e2862b3da69668405c919bdf170e07ab9a64bdecb5e","signature":"3eddfdb09c609c6e32cc67a6b2ff2913d76421f00793dda4d5321ba4d7bf5a8d","impliedFormat":1},{"version":"72638d808dc1ba6ea0d54bea83f2bd3a581b6b54834854d48a89f3ba114c34da","signature":"1718d4e48a2afb83a31ef63ca490e9f78e589c631264c82d2c29fb8050721b20","impliedFormat":1},{"version":"d44756532053875f6ec8027abc0f4296a10b954450c954cf6e42688f3ea0504c","signature":"753114e19ceeedd55f2cb9a5eb0b0aab95a1a1e78eac67c1574d8c9bda1dd76e","impliedFormat":1},{"version":"1f35c06f2b649e537f6191b75fdd18315cffcb65178ede2da894852be9a64496","signature":"6712065af3ec8f0c97550529e504d2ca2191110ac8131f19966885a722c53522","impliedFormat":1},{"version":"693ea9934c2d1477428183b6359bb7c9368f87a4fa5281ea5b0375f73dff28a4","signature":"485ff0a9cfdf8c08ff1150cae064a9155b86f6e67cd6a0e4c2d2e9732c1ff790","impliedFormat":1},{"version":"f011c2db3f8350a4a77c317b719e979ee7fbb74333f24942a86e6c405f7cc732","signature":"4923f154df9f98b0a038f40c6e699fcf861639daf56ad32214916b094363e72f","impliedFormat":1},{"version":"f0a83527077d0386038454bd43d5a5a7e13d48bfa7af38ba36f2e42b2a35ad77","signature":"65b685a4776985b1be854ade0047ab4a70ecb17343476d497a0fcabd0fd2858d","impliedFormat":1},{"version":"e667307d2ec112dd81cede23a2fde537dd3eb54640adf10552fda7b073df372d","signature":"b720a1034f2867334c62fdb99fe7069201622b19e3048b53b39d9d616839f88f","impliedFormat":1},{"version":"018959182d64bb5187e112a3dd3c1683795d399918a4e37a2fa5c064ded2ad5b","signature":"22eb2626fbc3624e574cd497520a01736970988a4f276ee09365b8c6d5a9185f","impliedFormat":1},{"version":"ac492ec0e0c873e80c46bd0146f0495b66edf5b11eb7dd73f4b80de898f75e8d","signature":"a08dab84aa274b062e449de6e694ff3e98773f414887e84a160519c68ec6c680","impliedFormat":1},{"version":"287f581b4d89bce3682a0da6e20a7ab02e4d9bb8db123ba700c586a5fcbd0fb9","signature":"80b00a87781c06256d41ef3ef851c9b64b34566379f4440de4552c094cf86ab4","impliedFormat":1},{"version":"190383d96e96fe232ccb44d87badcfe29f7db156ccb2b9042d1f8f4be9e01467","signature":"d4748d1e13de1ab80ef67eeb4d5c04b195c95c940ac74b16430224abbcdb044c","impliedFormat":1},{"version":"9ce361f10712a2c2bfd62858bb274342595f196f976edf0fd1196a153f7d6ca8","signature":"e8553503d41febb87b3b4d6ecb1aabb033f9b6a1f8fef531a6734c69d381bf33","impliedFormat":1},{"version":"b6b90617902ca7b51a6c45b34fa035bfa08f60674493367ff3b54a717c7dbf4d","signature":"a902f09b3723b021fcc65bc546338ff3b3c20c9fd44f5fd4dbb362d09ddddd4f","impliedFormat":1},{"version":"0beee31a4c00d8119dea7c3d06f9ee3a9967ead206148e000f621a8c2e1e2eb1","signature":"176c1b9c45c3c83c05ab695d7face28af188e88fa740db875ad87de7f220df6d","impliedFormat":1},{"version":"591544cda5d99764cc593b36983c7535a708b1441d2b660b1c4e0f6a07c10972","signature":"5031be571905d1f9eefc5c015a2ca2838209150a67d70fdfe695f8db5e25c763","impliedFormat":1},{"version":"700410b627fb80997e4274cabda551b38406dfad87d7807054c773979bfcd70d","signature":"b1252e63e8d4649c2a0846410904a30f9998a338ae30e43df18695472a7a892b","impliedFormat":1},{"version":"f8ffeae5a55c21a0a2f238ae7f07b8b137d6d2a3bc70fb6bc18c83ee25308100","signature":"250a6e6e308afa811e6d4b3b9043f09d13781f75067ee7280a6b1667d28e83e8","impliedFormat":1},{"version":"b2d7e495533a57507ff14243b18ed65066b05a40a87a80d9b23b72b94a148b00","signature":"ce84e9f917908143cd37b1d53fa82171d01c2ba94ce18a46012c7720353978d3","impliedFormat":1},{"version":"4b80962c22d3640182a7b2a5123f7bf791d9565c48de7666348bb4e0691c9772","signature":"52463894625749ad608b112fe561a503cf41b21e2d6ca37961121c36c3c839b7","impliedFormat":1},{"version":"01729f1ef96b4d494dc14f3c473a92f9584be5546bf64044a4361c703527f94f","signature":"a5bf00c200227bea350d7bee1f0eb8a61d27a60bb84aa0337641dabdfa48b292","impliedFormat":1},{"version":"4af418103fa45ecb08d37b466c54e7e43f4a3f1c1d6dd1895877a433d329de04","signature":"d55e3bc0571317f26cf3cf3c1c23e230f0bf9188d2a8ac947dc5dac01c55bd28","impliedFormat":1},{"version":"43da597032d2c672333688b608644fb0d4988206ef5beac305a3f0881066f4ac","signature":"de21dad15d4e5d69916ad7614b346e0a205917759141fc32765350c412ea4aad","impliedFormat":1},{"version":"1157c1618f6a835c0cf3fb7bd16dc584c391ad776d73339186eaf0ba8a3a3d17","signature":"48f87eb6d6d8b8241649fa89b069e23866a14bad215ea4a679921bfe8cad7077","impliedFormat":1},{"version":"e3d27a704e941cb39a618997a0c4692421fa7284dd0505dfc4208b556db03b97","signature":"d2077499f3d948f15affb46ba8e01914e4eeb018aaaad2541a4541cd825054ac","impliedFormat":1},{"version":"3dfc7dc8d8d769dfaf30e90a58fd554324c0c2b4f633378cc2f8feb26ebfc0f4","signature":"8bdbbfcc4466f07103067c2a35a35e53e716ef2e432dabb710f32d51620c0fc6","impliedFormat":1},{"version":"a6c02d85b4c4b77474bc0b81442560823e4cc340d07827068743f3facbcc97c1","signature":"3f28dfca91b48f9c6a2ea53ff6d5517d3b9a2b491e68396e81d3a46b1c4c6297","impliedFormat":1},{"version":"9fb0f8590b4914afc4b4e2d52d7f4f30d790aa8edd189c24824ce462bd130227","signature":"509f359e67cc87736689d5016a9083af22242dca7e49ddf1d3840f87c0e02ed2","impliedFormat":1},{"version":"08eea795765644b4e570cd1dd0440b5d73aba55ae0158d9212164dab1e7a8254","signature":"8e2bcd2a11bb3d326c425a26a9c7a22f48b86e49e87f562985bc7848dda3231f","impliedFormat":1},{"version":"049c3e300e080e91e4d04d9c8eb97c358ea1077211ba181b1d5b13e559f4cad6","signature":"adfd33c4581c66ee501e4d30b6b7e25750bdcc61d9bc3052f0760f272c5a1f6d","impliedFormat":1},{"version":"768fafd50536ceffd62620c3f2877b7748138cba8870c7a818e34e468cbde0f2","signature":"83a97ac1233b61c5b7d89000dec2ff3d615a4b4f6aa8956e4da4c9dae0558fb3","impliedFormat":1},{"version":"0f71dd17f71323da8c3c334eda44f2d988ca71c7171f8e552656f9f1dab688c4","signature":"5f3e48a15be555b891e6973306141842ff56f6a4d2efbe3d299a4bd0fbd69005","impliedFormat":1},{"version":"73c279466b9e8612724fb0b792ba900a36af0a5ee157985076329cf80d40c30b","signature":"11596f336029566a926aa035cbeacea80ee525fc45235b73632f15f1da2363a6","impliedFormat":1},{"version":"cf88025a3c1e20430433ae31940c92f7b7cc15b6046af14051535003a77a47b3","signature":"7745e96fc33a9263cf5c1659c81ab39f6894ad43c6d885a95e493f968edc7b99","impliedFormat":1},{"version":"f5b4567922958d3bf78858d0589a192a2295574e4825d5cb1ecc4eb41408a034","signature":"15600339c88726f210a63d6ab79a000eea37b3d5060a2f6a178e0b367eac9d00","impliedFormat":1},{"version":"3f851ee78eece636d40227ab63d76b5796a36a9f05ff6b31355aaad7c3295733","signature":"21c3e769527cf308f9b74292f3789636f432039e72a7706045481827ad004214","impliedFormat":1},{"version":"6b2700c6273f7d1e2487d818dbc58a5e761e7f4c94e14d7662eb04b15ce3a8d1","signature":"2152c8d8747236c128f39df95b542a39efe6d9f921a950a9cb0bbc4db06d56c1","impliedFormat":1},{"version":"9a3c18b2a1c7105dee91b932f8aad514e669f816db9cdb9fefb709816cb23de6","signature":"1111985518ad96aa861247b43a7838fb65b0b9f0a19db370ddb6b408b1caff34","impliedFormat":1},{"version":"d13548deb06d0273e9ccebf57f815d08dbe4bcfe4276ea21908f196b492384b4","signature":"bfcc26b7b2c631c327881b959c44af77b5ad2bf9b0e9c720118b278720b5f2ce","impliedFormat":1},{"version":"f0f543c954260eaf9e1d3a7a6013fc9559e0bd911e3d233898a763c8ee42e381","signature":"dd57d8e5f1e79db02a19568934d54d784cc81cdc8b2bca1141d5c2a60399d060","impliedFormat":1},{"version":"7f552f347fa946ac0d18ee234aa1e0ffbdddd38d643b04108c4db0ca524aec4a","signature":"58d4b35b73b489ca6c7ce148a0549cff4852edbf54df7e615ec93f820ce721a7","impliedFormat":1},{"version":"e178f8c1bbd2111051968aeea70e6d5c8cdc18ac5afd625113fc9d23f7859d5d","signature":"bd0f5a25387f0ad3a4fa01eef214848de646a638c9cec6fc4cb1a282bd689449","impliedFormat":1},{"version":"8df02f130283f08537b2a750d89ba8dd57624b2a41bc10165d8275fd04458995","signature":"cb786f56aa6807bdad89122967772366acea52dfb021648b794cd13374cd8f01","impliedFormat":1},{"version":"ad97cde09fdcdeaf2b780724e1f83df7b26df2551bbe996a4aba49478304a47b","signature":"de32b1629c9f8c905eec74257de5bf042a710dd438df2a5765026347387bacf8","impliedFormat":1},{"version":"16c193eddf50570a43cc548efb2a0af09fc7690d502a4e71e3cc07b9c87d61b9","signature":"5fb961affcde75eb8acca24456438b0b1d082525f2ec9eba4e77f4d7e23e3fbc","impliedFormat":1},{"version":"f39f73ff742038bd1f87b347b6118e90d0b8174f4fd28efc326bb6d3ff2bd6c7","signature":"4dc4600bee5aff387cfefb42121bef36de8040c09f81040dd997e38558d95e87","impliedFormat":1},{"version":"20dbaf94e0f0f4fcf7604cd71ff92cb772bf96b17b7f8965daa032593dfb3e1c","signature":"ad5bbf55b151d9d06f2f9ab4f6fe4f1b6484560116a8121bd431ec1779042b97","impliedFormat":1},{"version":"7e789d03c3ef09722a09bf606662daf9c17f4657a9aab68ff5fbbc3b19f57eec","signature":"c334d6709009df9bd094eedb78866f0f2048a66a8fd5ff4748fbabe6224aabab","impliedFormat":1},{"version":"bd5aa6981df62804a9b025d24fcec74b768d9e4335cb9225aae508a4df1b4b74","signature":"dc2329768221c599c06779d9912a306241c117c363c05f3d6d235b9e57555043","impliedFormat":1},{"version":"b1f84004376b5a8c65913b096f4138784ed136684c03ba50595c8edce38b85d6","signature":"8d948da702ed83c06521f10c4ce1bc24ac54509bf4d61c37dc710d445deaf88d","impliedFormat":1},{"version":"9518a6a11a5613c065fb9ebd76c6fcf16e78529738ca47195f423cdfd6a26cfc","signature":"7560fe0a57619d88db95e56951c11c4c8b087cba6041fba6a661c84effaa3c61","impliedFormat":1},{"version":"4c35330971fe67a57f2fab2714ee66036586685e4767aa3a339d1e1991e0127c","signature":"7332363ad3c1771cb64024c254a1341ed90a7ecfd4ae7efb40e623b1d2382047","impliedFormat":1},{"version":"ac8e607c66c669b410af6ddc81d5c070d2770f9085e49922afc36cf32167d701","signature":"792cb9d8d149a21b41f097e9753ab4ade58713f5c49178ed1d12f95f0148c14c","impliedFormat":1},{"version":"2c0eed6fb8727e1a50d368ca7dd4df802b1077c7e67661f9fc3d7afe1629e73b","signature":"4cd284fbe42a0d199a3568189074747f66dec2605f024f7a9b87ef416ac400dc","impliedFormat":1},{"version":"ed003b859cf4edf376b4bab832b535c61c09c5a78f63889088a4dd15c04773a2","signature":"96b612bf6cc4e215a3c94161e46e387c1722cf34989f250446c34f9d4305cfcd","impliedFormat":1},{"version":"409598c9acc7aa3ae64b2c6fa6d3d0ced788ecbcd47845a1efdfccb2c26fabc6","signature":"d05fe4d6ed868c4d4bae339cb7b8342057a88959542570615e5227dd6bf6bde2","impliedFormat":1},{"version":"0e6107880bb29636644042e02aa08c04e49c0ffaa032504b063f9a589907053a","signature":"b11c24b86cc32b41a493503e7bc16b12609bb54376d42c06319467cca350c776","impliedFormat":1},{"version":"8bdcc4b5fceb26c0ac0db59f48f4ff6550990bffc765978884f0a14d0c366c73","signature":"b459d23eb993b8a9a10343d7664631cbacf613d5f01f02943e5266df1cfba247","impliedFormat":1},{"version":"94afda53777fd020d5eaa03c5935c90c399c191d48cc9058c71f83b09dcd9004","signature":"c3716f71694eaac443d9a6a8b3f7e360a68d8129337c48569d9dd5ffd587f65d","impliedFormat":1},{"version":"f6d1389ca5596b925667bea1de7147a9ab6fe59aa8ac7bf23d708d823c9ba2c6","signature":"fc10c435dcd85e418442d31ce7f22a85d4453490dc518ad1d3f228a459e8203e","impliedFormat":1},{"version":"c998409695aa46352a22ca37348d51ded843bf2ce3ffd6c2b6925a3e58d26133","signature":"ff64013826d53bab57305cdde0ab8af776e38da9f5360247274e530ef513001b","impliedFormat":1},{"version":"25ead784a6efe26c75b06376fa74be494d115654e143cf629cd06f1ea31492cb","signature":"c1cedd9d81282309a9ab5ee840b0a9a7a5629edeb7f8cc52b7074746330260ea","impliedFormat":1},{"version":"599f686341820c40729719e18642cf932c3cb9cd5891260471c5c36e8407d690","signature":"fbf0f0a320adc3315d714621473bee91c6e3c82476b29faa5da21763fdeaa5d1","impliedFormat":1},{"version":"491874a04740e2c641e0f15e779d705c0f95ac1fa5343a2959e5c9611a737b52","signature":"af20e73f3d19ddc6bc9ad19b265fca07b13c5e602e72076ca6d6cfbbc8984011","impliedFormat":1},{"version":"1f36626717c2c529abd93af7fe9b0458feffd2788e885f28d9ad33bd1f37b31a","signature":"bf9302d6033e1ee6f5cb6e14573250d70826ddc2bb75970d8c72608dadea2e77","impliedFormat":1},{"version":"23aebcf48f827fe429834cc037b05b35de6e54710cae85b99c42a86874f6152e","signature":"4dc30a28477d1c6e54b3e1534e09017701ee4f0cac46f0e2866f15f70f4fab98","impliedFormat":1},{"version":"c5f54cf0b20a67e49a24cc9c2b4cda3499b7d173597e21f4c03fe4ffb5c26c43","signature":"57a8674f13d22f6b2ea8751e8cc1ddae90fda4fbb69dfe9c3bffc4f9f522f074","impliedFormat":1},{"version":"ae125834094f164bb039d4da2a0dd5c92d77ef2e8b129945a04b6a731e471358","signature":"ca44d5be21b9f344aba858b99aaa1fc4f93bc9af62e25a5a9efa853e23e40c07","impliedFormat":1},{"version":"f69395005cb7c1b5bb4f8bb307b488d279f9233c6283d3d3f2160a7d38dfc297","signature":"8ff59b75aff13e10d1bcc3069d6cb301da53bf27b8be1075c2649667b61ebfbf","impliedFormat":1},{"version":"443f8d9d7d64bd577c34810f8d3d68e2f58b0a4fc6ce83d932bababb4447bc3c","signature":"4440aba49ffea39bfad3f85160b4bdec1e48f17ba18f5e30f702100e3fce293d","impliedFormat":1},{"version":"e5c9f3aefbbf748cadb4ff3d5f5a2e2d38c99d07f9c3f0426db7a53dac6fcda3","signature":"eb4f39a423c822eee70e2c317464a397ecff0007203fe079a4561e0855487861","impliedFormat":1},{"version":"4c7c18dfe2ea81071327386e31e4bbd2e7f3cc738d0d62d24f21917a37de8cbb","signature":"cfe15df161a102fd0a3bd9bfaca60d170cb33d7e3bf1f65bff8652398b7302cf","impliedFormat":1},{"version":"886cc2e7eb8bb9ebcf1b442bb4f3390c363a2ef93329b882e8d30adb43d11222","signature":"eef4b23850978cadde27c6d94c0825d3f6f22ea7131581b027d3f40bc84216e9","impliedFormat":1},{"version":"50d8f57a82ec80a7668970499789ab3980b733853e7ec5f695d190b28a1d30db","signature":"a15ef5c64ea38bf94a50278c179e5ef1699523a29f4fa3e31ac1b8172d86f44a","impliedFormat":1},{"version":"b60d18d33bb1973a18fc014acc1ba63010d998f8cc0b28716d1094236334c869","signature":"34f616aaf61b581f0e0700a2ee86ebe05be6849b2b451f8d4538afc328f5a210","impliedFormat":1},{"version":"f7b2d24fa50681a350f9495c231057d100f1676801aac264ccf90376147f6d42","signature":"73a271d5fb0719de5bb1a29d64776854f50953d5ee8c6fc94170448303fb27ce","impliedFormat":1},{"version":"dfa19c832ffd96cd6c5ce6d55c648a7a8b96e09c858b2d85469ba6fa058608e6","signature":"d4e8c0a3ea8d43ce32cec886822a9c4a5820278f3eec94b2700344fb4d9ef654","impliedFormat":1},{"version":"88ae4dc232b0d17fb606a8c1050fe4e70d1515eb399f4a036d7f1ba56425b99c","signature":"c266cad15fcf1b687de09b4189ae41fd60e31dbeedbfb97718bedde1830f9787","impliedFormat":1},{"version":"de1f8a2761a61cc2302c9db392899628919c5e9e1255cbef3a205d364c48ba65","signature":"4b35277bc64fdd3f691f3c4432020f9515356403a42e4803cef54a506108c051","impliedFormat":1},{"version":"14283b98006b9a4d28567e1a0f56064c8fc87daad961e08dabcfa634de9b3832","signature":"187515756c3769ca028e83167f2e881f67899f572a10bb00ee56b8e864c7c18f","impliedFormat":1},{"version":"37e6ed1055d26778c94995417dc1f175af449864309a242e59b7216a5467f590","signature":"2644197a070919e491a8cbcabc498b0b790f5037e32708c3490d083f12d0afb0","impliedFormat":1},{"version":"7bacd34e24f9f798774a3e58dd279cf0cd1bb9a62ecc8f3fef98e6fd73c5bdec","signature":"af51b33ee9f69d575b6acefd121965de4e3532b3b454aab0095117d190a87e4f","impliedFormat":1},{"version":"be35adc41d47421153435f79160f1e0efe2888c1f77940003c9193c4c611790d","signature":"b60b6352afb1522b7afcee205c35ff8a377c9248adde8b5c8efc335e5a471f7f","impliedFormat":1},{"version":"6c97505d633f486e52a71502e236e871e7cc778658300fbb0330534ca4393ffa","signature":"d8c16a94da8e6acc3d75fd6884ff305bae0575f3c7e9f3e3e393e4c330b145ba","impliedFormat":1},{"version":"12552077975a1abe81fbabbb9d20d018b6c39b6b0eedef92e0b54aa982e24f46","signature":"4c9399d1c6cc99f413abceeea900f82519793872d0a84d3a2e4b655891040ccf","impliedFormat":1},{"version":"611645ec63652dff03027f8ad73ac1a39583587c1a264d3b3640d75c21d57c1b","signature":"7c6c43a2b53a5632d1cd4d74bf078f3ad3692df773011cd8ec6ad31f4364b4ee","impliedFormat":1},{"version":"be4c2e8e76b06d9b45cdf8ea71c3ec715feeb278e73a236ded5267ac6f6e3f54","signature":"62ae9e3f83a233ecbf7c1c790d063744e8778519fdf33ad044a7b372bcc971c7","impliedFormat":1},{"version":"4aeaccfa922bb250deb6df1afcd83de62f39493327e039acb72c9bd6a5e41f34","signature":"3dfef5b2bf9503f2620a3223ec0c5e07b4050a6dc1fab1468f38b4314c93487d","impliedFormat":1},{"version":"e8fe03fac7e8971775e164adf6b0b7a5ce4b00743b00b48632e7cd921a8a181a","signature":"316c9e43586785bb3ac63db320bb1bd444b110066860d721c7fca69d980c7748","impliedFormat":1},{"version":"97b98093b12e765ab0cd75be7e337732b2d371602f42295e246c6a8e552f0a7e","signature":"af0111b7b5630b72ddba7f93696423c0b0a6d2fd52dfc29cc948476e1d3baf86","impliedFormat":1},{"version":"d398d2f7a3008eff14e58f2818a7d081a10fba9671f10dcd526814c13ee26872","signature":"3e7f3c9664f9ceaef962969d0c1c6c55144a1b302ffb88f07bd8bfbf0ce42760","impliedFormat":1},{"version":"78ab6a37418764b22ed33dda36d403603b5280fb7f60561f86a235ea50a96506","signature":"c0f6dbf47d0e779d8fccda973b025987c62bac124f08d52d2ed869127da823ea","impliedFormat":1},{"version":"620d9639c71272d2b47ff653bbaa5b5d7f7eadc2122f234dde93aac51a39eb46","signature":"b94c967ef6fe11c6daf54bfdc282eb1641c48765e3ed241be870e9ae243a8791","impliedFormat":1},{"version":"012e27a659d3709e9a3514f466403c3fecf3c1d803e17d8da77bc34aaab97fbd","signature":"5ca37bc9deddbd9f1f11e5c6d5bcf6989f3f7daa61b2765e7445b42f555ceee5","impliedFormat":1},{"version":"129b1343067a58d31952139751955dc22385259abe88ef4844a8ea1c24ed0a7b","signature":"cc218aec89e69520913869ad19ae614550c7e174c42066dda875d2fc1b35370f","impliedFormat":1},{"version":"6762c2d034f6739e1777c82f4ed72dff17d65850cb85ed9494043b50b2e0c836","signature":"f91b64220f1377da359901b7f35425774502fd52130a53d188002b8bf7ddd57b","impliedFormat":1},{"version":"7fb58b007d1d6beb56bd233cbdcd85f7c4c6d4e16139acc8bf9649c2d7cc23b7","signature":"222ef6e20316b735e595e7c7f93c48a0be9ca977aba7ed88a41ecf07d51e7436","impliedFormat":1},{"version":"34000fbb3f98530153c8ea9ffc227414bda4a1a77dfde3f53f148fc5a3c588de","signature":"5a5115e225135d329c678049310e6345e176938918bf8361f81f4084ed21a889","impliedFormat":1},{"version":"de83c122ac1793b058d8008b05d735c9ddbd90c5258c5a181a6fb3a60536138b","signature":"8bb7e5ed48c5bf67a0ef29db8dcd90ac887a8f59642c4ec02793809a34502524","impliedFormat":1},{"version":"d3eeceba9419da6ac5d6c90124986e764d140493827ddc87addb0a7fa7f510c7","signature":"0edc283e42c513f0688a5c7525767fd55677763401e779c67dc14b4b275a9338","impliedFormat":1},{"version":"3cf4dcbd21a55f5b97a387d7476e83836c1f97c2e69a7c2d6446ff9a27647e3e","signature":"b06dd531d0a580754413a61f7520de222fb5d7ca07ef2c0c23882634c97ba43f","impliedFormat":1},{"version":"135db236837d6193e8acacaa87daf49ed4511d9ddae9bcc23a8f40ee74dc6e0e","signature":"000b2d4e0a96c07506dad93f8ee64edc0c952d201e7b9abac3086df71608f3f4","impliedFormat":1},{"version":"b47a9e0368f71981c7da0a70e7e5fa5cef8a13021ec0313d7f3974e1b09ba7ce","signature":"c3fd5e5e5b07beb2251392acc37f016ec8a721ddcf73fafc7c9b3d7b5945bba8","impliedFormat":1},{"version":"9b1254fc660a4775e9cc8be8d52b143ec92fb4a6ae8f4a23beae7910b0a90e82","signature":"35928db8308ba68f6aaca525d097d57dcf51815e6d655b381ddc024d7fc26466","impliedFormat":1},{"version":"2d02fe0356d9ae7b0888189592296b83c39a0e27d59708ac79f0b62b5fa3bd14","signature":"e50c7263e17647d0dfad906b64b73fe41699c9858abad49f4491b4b00c9863a7","impliedFormat":1},{"version":"8de46b91383824f5b731f1af7efa86c17f5270fbd1dc3062a1e3cb2e1ef9c3ca","signature":"87fe53367f785ede904c66300d9d2ea7a3d1cf6f21a76c7a583283809d698eaa","impliedFormat":1},{"version":"b3744b9acf8382dab850f495aa45cda3ddd419cbf223c19ca27478fcb997d205","signature":"7512a6125cef3c7ef8284012cb4e3a435d3a83abecec18b4f3fd3df0b4887e99","impliedFormat":1},{"version":"41c677d8f9fd82499599375603f7823c22276648a5bddaeafb995aa5772ae2bc","signature":"8041d0d0c9f239ca8034030c5401d1e35f78cdc067aef49f12dd67bb0d649403","impliedFormat":1},{"version":"36579d7c8eefb07dffdc22dec2f94d9a2cce1925e20d47e3f6138ec1ad474fe0","signature":"a27b7e2d9f226c3c2ccb6b09f76921d0e3ee4cb2a8413ca837086e5d406ac349","impliedFormat":1},{"version":"184ac267663e9a9fc16a4aaefd04984d2569729ea0b56b980b641cb4f582b1a2","signature":"d854cd179a0951c93fd5d9303b68b76fa601922193786a8e2d1aade28d64b48b","impliedFormat":1},{"version":"57b2b32668ba55d4cb52032d2b82adb3801074533acb844fb9aabc823150a9f8","signature":"3c17f146f7e1407f01d3389dc4e821ed6fbd83ae54b4a7878773b2c4cb76d115","impliedFormat":1},{"version":"a49204a850f46cab2773b63cc475231cca1361d1a75c717de4c938bc6a454a03","signature":"ae050bbd5d300e4ac840f4b360ef78b5159fc816591833cc53942779e5cc787a","impliedFormat":1},{"version":"42981c769cb878143a8c6c1be8ca8b12f9d89564a3a56f0186de5bb01d8fdd7e","signature":"2db30e30b54b519352a51303865a7f04b088dc414dbeaa9086cca8f91af65998","impliedFormat":1},{"version":"c119284409b9d2d2109bd59394eb8c3586a990c922edbe177355269f82218cac","signature":"dbe9072b99a7eea70da35afb6da35c36c52f221058522cafd25dbdc6757ac045","impliedFormat":1},{"version":"7a29e6c2ea1f087de131c40889c92b009ce428f584db04ed6fc2a96676a2cdc3","signature":"a5a60b4d30ebb10b79c4c581acd88934f0f26bc63fd4f59e4d4396284da8b20e","impliedFormat":1},{"version":"0a2c9f5131993d57858713671716d8418a28e98e7f927f8c9df7f392c53ff108","signature":"bb81b690c69ebc0bea1740c368c2c9644d234b9268191d026317b8699631264e","impliedFormat":1},{"version":"378ddd0ef942ff17e63f98b8051b7fdad0611705fb41741119752e5bf29e717f","signature":"506583171f03bb3b6ec17b2fc460c598e2b6ace6ee1226468f04c59e31869b4f","impliedFormat":1},{"version":"97d813e3a7cf1d6c39b09dc5d3098fd84a8abc90fdd618520759f6407e16e68e","signature":"587c3aab04692a4821de43f05504ce30c4d106c52c3f377af6e868ef1cc0b017","impliedFormat":1},{"version":"7e26e74020a58b3ba304b15feca7d3526055c73413a37d51f81af694e1460376","signature":"a290a3fbed6bed03c7c37fa0aae77185797563d0c523e74c5143d7e3639072b7","impliedFormat":1},{"version":"e0d3caa7dd765977bf292b131c9896e1309de2d3ed7c6799580888695531f6f3","signature":"56a8f38a06b8efff0c0918a83bf885d392834a4d0099fbdf1960dd7ba9fbd10d","impliedFormat":1},{"version":"d9b878e9ed9e5a7495db87245881c46d6872cb82477efe69184966128c516ee7","signature":"4b35aeccc7c8444e25322f6ca052b8edf809d01503c941413cc27e31e8db5511","impliedFormat":1},{"version":"9218986205f7f90c4bb23c1d7a64f1ef67fd900b16625c3611ae0f48d35c4cf4","signature":"8a2500837ef58a82b3f6f173d5a285e5c7ae80186fcef0cfac65c08b2a25b51c","impliedFormat":1},{"version":"fc8b1935dd553dfb98708ea114efecad9947be2c70a3b6d5c85b2279feee2ade","signature":"ab3080fec2a1a7e38361406c538226522986493b9ad3c21f2c1731dc4617996a","impliedFormat":1},{"version":"7fef04c1c5dc9e5c5dbb48082006cdac981068a6cffa572cc8ec4631b15021a3","signature":"efeb8a20c6a3b44370127f58febad32a2b96fa8dc48a59bbd08fa4aa46e0de2e","impliedFormat":1},{"version":"8dac73c3e31398b6e74d07a59e7f291f48e9fc51698090321f1d46ec9f1d2d31","signature":"1ca95e8666e3920098f69543f4ef6e55db72f961301361c76bff122e2bb7dd08","impliedFormat":1},{"version":"5aa832f863bb00c71631c4796a9a244d062188d29c89d584102c082e0e45c4cd","signature":"a054b19e498bda0cb735a206f58d9e9128b4b6d8aa2810ec505f97c37b420881","impliedFormat":1},{"version":"c7ab8e8f56cac91c26b79f4b2ea19f54585e317ffbee2143e6e9b0f783c4a727","signature":"d2afd5fda2129b6ff7b72e136c220d4da831426688592e93a5b2a0608d1727e5","impliedFormat":1},{"version":"6a0f7574477b48266d16afdc76c45f754b4521d0d41e1c5049d97a85d8df4289","signature":"18e5b49b423dfb4929a245978c239cf2c749339fe5c45229f1a174fbde4f751e","impliedFormat":1},{"version":"084008a34e3ada60900506ae4a1ef4ee1d78c045c7f62f494f15c8202fbdf385","signature":"667c3afee33cb3f5aef6279b9c89855d086924fcd5117844e7dcc97197408c8b","impliedFormat":1},{"version":"83ec742cd059c2990a458cc7accde45c9679fc3133600313d8432f4b410cf582","signature":"9193814e7f3d7d1f0dcd5fa87e68d5692338595297b61325ae86b1eeb78810be","impliedFormat":1},{"version":"d9f59d90e604229a58e855180e1ae231a898aaa69d689d648440ee83c4fb6c73","signature":"97e355ee3c17f46945787060df63e7c51f332e37c8256e7becf7448228fe38c9","impliedFormat":1},{"version":"af845c1767fbb82ae979c2e8ab818f52bfd87c7f14db3e61a97bfde0cff6ea45","signature":"3a6f0c2a76521834273bc57a0b4dbea9cedaca8b054d310d83198ccd1892da62","impliedFormat":1},{"version":"1e8928cf1fac7e315a6e123d466c86c511e7a1ab00aab7ac770bbd442c83b16b","signature":"7873cc449662f58f9cfe8c2a2d039fca6fad4a45ea6ca36a0a9ddb8a7fe4c417","impliedFormat":1},{"version":"36564db25b74ee55ab22df5964bab8d3b3ab7016ea27c103c5b77bbea687ad39","signature":"0e6a84e4e91ad9b20b4529f25f088c16ddab6a7eb998731dd93eb4d1f511c62d","impliedFormat":1},{"version":"8922abc529105a8516dd2c50de4ae036f85c826a432cfac1a5cc630e9856fc4c","signature":"6dabd9cc86323ce9a967acd3d00d329a735c65809b694d8ee330e830fb43e2aa","impliedFormat":1},{"version":"15854364bb537893dd04da6564ac843be463d93abd1269ef76a709f821a2f40f","signature":"274410dc4234eb80f3cdc73627dc49bcd7e2f81f508768c2804fcf00184a752f","impliedFormat":1},{"version":"2eceebb66bba015d702012eba2af6ee244a39102b398b7bc84d669971f307e9f","signature":"84c58a489ce5955b4731b6ce60e124f79b176eb8c98b3b78f5376daa3193db53","impliedFormat":1},{"version":"3d2775131842a779b4dd6a1e46dd2b5738bf5e7c9e3d8b8cf48f022d7008c466","signature":"cd7db0ebcd8ad76969e569b45e438eebebf9edb4d21962235abca7477258ee57","impliedFormat":1},{"version":"7c2e4dbe9341c8db4be8d794c3fb0ae184461d4fc56cf051cd04655088493cc5","signature":"40b11c399f80787801cc93c0e50db742c46b8e85efc297069ec3f15522d5789f","impliedFormat":1},{"version":"b20384c19c6f276b9804d4bb4a0032a1f7766e5ce8aadd7172f927a1753584ac","signature":"be870c978b44a16ec7745126c259985403ccef3a59cbed74a1f88f8a76dda650","impliedFormat":1},{"version":"49e215beacd98af0e4be6909d42a9f7d2a7d056311a8c6a36d7aad52a8188cfb","signature":"685508a004609c921fcc3a8d0c92c78cbe4ad2d59c369cb95cebe7f063aad83d","impliedFormat":1},{"version":"a6f6cf006cb8b0bf2749612fcf57d1f44e7501f429f5a7d7c873fab70006971e","signature":"516341a43145b917ead660bdfdbf19ecda59c6983d60c818d7e0bf3080ce411d","impliedFormat":1},{"version":"d715026f1ab72302a4b41995f7e43aea99d211e4dec95796d6e9997c2070d8b1","signature":"2d458a4e8710c914799b4f51a7973c1a057d9b4b08084c32aaa0e610e986e83f","impliedFormat":1},{"version":"9f73e2de3f082eb46f4d04f599f80b95222f8760fb4f4497bea9b2dd62ed5ddd","signature":"cba5f7af2e30c5dedc48dd36fd258069c15d17dbe1a5ad636af2f876fba14f04","impliedFormat":1},{"version":"e8e04890ff0f5a4e5c9b587c7f1e0530f6662f35cd052a1ed8b23cce8b8a4f6a","signature":"5801e97fe06a11d8e5e5fff23fea11cb472ade0d70c0445c453c1a7d669f3ff9","impliedFormat":1},{"version":"f83c46ed7ab085d8ec0b5f3e5f8ecf4e7f4251698d6b9a7e9940a8475483e0d2","signature":"a94856abb26c460675ca9396b3014e5ba55219d24fc6a483580d95a29961f6b0","impliedFormat":1},{"version":"402763ad6374319598e0f5c97e78aacc4a2d5f3e576d1794e578a573b37be378","signature":"c33ea65242570040d9e4806abbe930125bcc2788bfd21f0f97312fccf470651e","impliedFormat":1},{"version":"73051bff42d533611f03c50839802042418f6315083f854a52763158aa3ccd3a","signature":"09e612fc0682309ca1e654185b27cca769710c5a68b015f457f6c8397436677e","impliedFormat":1},{"version":"1d02687305756094fe9bd4c5e9df85d9b970e685e3fea8fb997ecae3e09b9917","signature":"1f237bb1682dd1728437e7118cf0c81265dea22c5fbf3ff82a81d71afcb8055a","impliedFormat":1},{"version":"a60c80b15ebcb6760150d574bb4ea874b943556c130ebd9d53750bf2039043a3","signature":"f9c633de32b000487ea0d9dfcfe9901ad3d038736df00d4e83f98a79d683c44f","impliedFormat":1},{"version":"87be868c778370ab12e8fdc198c37c428d6fe191d6335d5e8386f2b3aa763ce3","signature":"7726eedae66d48ebb4bca2aef7f2c3b5b87cde4e363953512e220719b14ada1e","impliedFormat":1},{"version":"c1395185aea53d26d4965deac0d4f2dcc0efb5951a791b54ad0cf139a5a994e0","signature":"664d42f1d89a6118d96f43d3c50e0173fd99eb746be4e1efade54450355186ad","impliedFormat":1},{"version":"5a02d4690e426bc9cc3708c910d3db23f1593ed7220304eff1b6215525328758","signature":"cc158c9f5c703da85916d08bdd4f1df306e2724c4d993eca8fda7fb9ad7c3743","impliedFormat":1},{"version":"c8f47de43f93870534ddf7d21a2289db67720ec35dc77818c43a79c7ba4aaad7","signature":"e20d4c5ec00846c1a4057f66cdb2350cfe9d29916379240783e1bbb4a47cf864","impliedFormat":1},{"version":"6071ce11b7712ca145bbc5ef56614d9119c7769b2f4c14c6199344200397d3b0","signature":"0d4aa9f4bfdd73794c3599b43479b827c3cbfbb854ebeb97f5d417e036766876","impliedFormat":1},{"version":"6a95fafbbda5528aec69b69208f496bef817799bc9b4418eb5f0afdb05ee981d","signature":"725910779ad16c34ce84d28a8e93045ae7e35a49ffd021cd632738ebd70b08af","impliedFormat":1},{"version":"edb868ed567c8654cc93ae3beeea3013a0ae70485eabff357eef96ef04efac6e","signature":"8363377f1022f6c92aec7fb34298cc341dd10590f770aff0803ecaff5e09b7f7","impliedFormat":1},{"version":"9c67483298ffb7439cf49eef68606e57925d0bab28930e97a4717ba6038af3a8","signature":"38624acdf722d751145fd691cbd4caef3fd21ccf031ca0b7e13233506088883d","impliedFormat":1},{"version":"dc5e60c951f11bbbd0a3097478f5925a623bc01d1e4b7fa44ea15cc503272e7b","signature":"8f4be504aa1383e503e55ddb23b8daa222373a5207487f44d1db1fd9381246a8","impliedFormat":1},{"version":"43c38117793e19dcb6607ee3f9ca4e139b7f9576a21526b4247a2162c820cf02","signature":"43b6e867802caeb46a87e49eeb3161c1bac8c117857760d6dd258b4f4b4f03d1","impliedFormat":1},{"version":"5baa6f83bc7b2c45a1566aa81e2f40571280a4cadc9eb3671ae9921e0c5945e3","signature":"d3910d07278e343f97c8026130153d25fe83879d7751256f8547f2b1d0af938e","impliedFormat":1},{"version":"7aa37cfeee1334b3031dfe44f9e6798007ae27527706ca32828a4b2b334adde2","signature":"495739ecc7d36ba50de70004296a15744529aa506a9ea9b06679794271cc59b2","impliedFormat":1},{"version":"8c6b8870b570419cb7aa6510fc61516ff329f2880269270d99076cead12a5e52","signature":"8889621f07b34f7d082649a1dfb71765bb7f6c3d4c78bdc632683ae7af9bd66a","impliedFormat":1},{"version":"31446e8c0c12459e490800521154ff61ac61c943cc258cfb6ded8b4bea19f128","signature":"24d8d554eaf80ce037d3382c38b0e0850109208d1e98dffe6b757167393f0183","impliedFormat":1},{"version":"0b2e4d31dbf77ecb3b8802c7f726e2145a22ff94e5ae1cd8e12c160d89d4802b","signature":"39b76e3394b7d476bbef49ac3ea2d739377693dc9f7ac58fad4ac1f56b03e406","impliedFormat":1},{"version":"25c7634db8b6af5ea7493cc2934c1be18b451993b03f0116c4d5bcf276c790a7","signature":"67a7d20d83d4934004f5d522aea58fe5de5693b9af32d93f6384a6800ca353cc","impliedFormat":1},{"version":"503d6abbca48d8b2b50ee9533e84af61afa7c1d22278dd611f18c4946cf50eb3","signature":"75feaaf5cea1ab65f17659bcf0ae9648fe02fa74e9c6abc36ddb289739b75da5","impliedFormat":1},{"version":"82ba3ac2fa58ffd9f97848637be9bcc6383245533d227e8d1bcbaeb7fd635fcb","signature":"dbd9b30077635855c5bd86b5c1aa38e101697f84d4f5c762fd083c2474bb4bd9","impliedFormat":1},{"version":"2d97f9ae6372f429ad53b6790486a8705513f0b75f64c422e1c5055a3785dc31","signature":"0ea5dbc2b11e375e9da900494b962877c4190f5f90481cc4b5eb0ea1eb7168ad","impliedFormat":1},{"version":"79e24945554eddd17160abc71eac31154e3efbb7052a91e2b261373c10f4aee4","signature":"5d0c6a68e7b4603de4892ea7416513b1686ecf2a07cd0806f9dc51c2ea62f859","impliedFormat":1},{"version":"05c3dbdae2a26372fb1965aa084e9081e35057f852e7f0cf707f92ac068f2886","signature":"b876f6c8a44b67326cbfe765f64e1b46c9f99f429355a20e6516c5105327864f","impliedFormat":1},{"version":"f737c2fd50aa7e2c7403c52dd12c0cdab3fab1656f5cbaa655925be5ca3a5c1f","signature":"8774985cbc77753cb27aef9aee236a64d73fe490709932c7fd1d0f112ecd4fb6","impliedFormat":1},{"version":"40b1da3bbed83a74f54d309d8de015154960760d3193a8117673ae09ecad010f","signature":"4038a31d84ceebe52cf581149d407a76116d2e64fd629aad149184c3689f7279","impliedFormat":1},{"version":"79003c685c90500506e8623accf3c65fabc777265d428d632f76fb5c78c65fc4","signature":"ed09ab5ac76d2a6ac3ae34a98840a29d63561bdb010b65401647eb614907f7ef","impliedFormat":1},{"version":"615e2aaa763fefa2d01065e2e258a78111bf0bba5205ce92c02c8917c67159c8","signature":"e97a6f669fe884e340e398a7d9609162333464f5a0bea78e2a944ab95f2f05b6","impliedFormat":1},{"version":"b0ed7144bd555a55fad73be792aa09e7cbcd96873e72c807e14ad93b1bc86857","signature":"352270d4ce0d4c79f7f8a992a38e3b19d4776ab09daeefd5799300ca5a8e5663","impliedFormat":1},{"version":"842c713d3bb3fc223dd620dfcb09e62c4c9274c147882a865f85f43734167e2b","signature":"dd430d2a66e1977e04dccba75e38bdebf54bd353fa3f5af8545e4d874f646468","impliedFormat":1},{"version":"6b2b9daa2b7528cc00173967e32048e5d6b9937f5b88b3dee42b9b387688b972","signature":"e59e077588631283c39e722556fa12114fa03ed4df4df297f1d8f5ac39ddd60c","impliedFormat":1},{"version":"e60cd366fefdf8369550f5ee6d40893a227fa0cd282f579bd23fa697184d6147","signature":"613aa4728c94cd0a387820c65bac195e07cc5a6e60f495cb31e5fcc4c1277f8a","impliedFormat":1},{"version":"d24fa375eebf760d755750c30cdfee0de6290b91b3db6fd4ca877018bfc48d74","signature":"c9108f2d6649cf049b9763ed120c7d78cc3a57728ecb47cce1e24187d9541ada","impliedFormat":1},{"version":"fa30886561262d5a0827cb95756e41d335a8a5cc35372b5b00fed936d70e02d8","signature":"28b7f6d62348f1a05cdfdeb7021f53a84e53279747a8be75368d7142ff6f42e9","impliedFormat":1},{"version":"7b52a1ac7d2e7d10e1b4763ff6841e10bf2a4136d95b6f7fc4acefc38aadf405","signature":"1390e9b82b44958cd220b114ed76b612652eddd9f6e46e7cec066f5916556952","impliedFormat":1},{"version":"f485eee905278e7a6989b9b248a281d8f0ffe702d21569fa21fc33a844972ff5","signature":"ab70d2b7fa51a3437cd55285d8242177d3944cef6e45f6ab3398b8d3cc445745","impliedFormat":1},{"version":"6d64db14cded46aa797f08c055fc5d9751bf1c8a94943a6f5b9ac54ccf0541f2","signature":"b5d1423a9ab55deefebeade4060be5990421ae44f55aa427735c433414d568b3","impliedFormat":1},{"version":"170d760be9f803d69c006f72b85573cc40efe8dcb98e55fe1476351f207dc5dc","signature":"8ee726c0a25457ccf5496d9e687b6ee382e5f35f169404c4ff733c8012ce22f6","impliedFormat":1},{"version":"d951eac3faf9e6cdb4f56c5392c265dcfdedd9b598545eb563220c733c92a866","signature":"f5fc04d7001777216d8c387b66ca695286364a65747d8280172f14944d33349d","impliedFormat":1},{"version":"d2f5b8837c90135066a77f4fc8a4de9e7797283af672cc656098e313653e29f2","signature":"5dd29d9f7d2d49a9e17df57848a62be456a32dcf1a24ae94dd5dd9930151049c","impliedFormat":1},{"version":"a2409bdf250832f055b8bdcf9f2bbbec7e7040d851a1822d29b914d2f766e91d","signature":"3388ff305c3855ce6a022462d524efa2e80c269786e7407f5c31f7db8f8e8bd8","impliedFormat":1},{"version":"22669ab2cfe284a75c3c87bbb90b9b13ce69850838d15c97209bebb285faba9f","signature":"b59e7a0e6b765f5fe0cc7d8a6ef52c78b6bdf370f41d9ced3220a0479c92485e","impliedFormat":1},{"version":"679a529a54237bf59e2e9fb1c9855ce07d7d4cd6f8e3ab34e0bd577d74dc51a6","signature":"99657a9421fb8cf174506895259e3a173d0deb8d2887c800e86ee085a18cd318","impliedFormat":1},{"version":"b3411aba4d5c96b36872b4316659502001c01bcdd51223696507d007a2fad46e","signature":"02973cd87207ca93ea65de20f60b5c70c706d6c6fd83f6b694803611e29e47db","impliedFormat":1},{"version":"76edf728fdbbe3e7eba63cc9548bd1be602ea66b76dccaa47c62788d83f0a2fd","signature":"56c58ac03e1208afa75a4749ce2af70cd77e169064826df74bedda1c6b7c8031","impliedFormat":1},{"version":"df25649fe89666e415fe47783b80c975f2b32acf1fad45af517049525e5e4499","signature":"a4d10ec7c6694f5ce91a59f741343f0f99108271e360d2e095b807eb8b9c8e26","impliedFormat":1},{"version":"7b87499df4fb10fa3603fb742833a2ee491f2391f6366eb394bf17e2b8513797","signature":"b1dfc6175e479e5861c7a62653043fe7d203e6cd8e07b0a6177be08e4e3410f0","impliedFormat":1},{"version":"21e97297b057e511b5a8c54001f52ed88d5e6562a7cdf639ef098cf6550bcc6e","signature":"9f676404528d9fbf7a1782b3c1a761ede0108d2c84bcaa14533cd624bd3a06e2","impliedFormat":1},{"version":"b61bcf6ceb36a55a1ceca33d7b9587d40a431ab5058080ed2e5a21ba33ffbcc6","signature":"c825556fb134367297021ab277e7c727f2d4897666059a7b62697f1031819729","impliedFormat":1},{"version":"9bcb8e13fd362b36eba20a27198a29b5e0a631c9a08674a0d30abed53470345e","signature":"7b75a71028ede0ac35b60fa8d802c2fd031c7eeded1e7a05425d7d6ee35e44ae","impliedFormat":1},{"version":"c908245a77352d4c90ae18b6db43bbed81da08cc0720cc117dbd7485780800bc","signature":"015bf0990c1e6b512dd9fbd75549b1949946f539f582a1699364fd591171a530","impliedFormat":1},{"version":"869f742bfdbb784370ea25fbdaad2273b15ae9fdc5d2e25c25c3c2950416a743","signature":"cff9cbd07922a62cbcc2f91313ddf1838a6f27e79ae422dd1ef6eea7e81a00af","impliedFormat":1},{"version":"b86517e29513a2009aaaf3fc7dda323e1712b6f694b67e2615af72760c17c588","signature":"f1f5bf1608481bd6f7a96a2bff0d2e0a0020549c0be2560dd124f2d4343a2402","impliedFormat":1},{"version":"58fd60fc857e275475b24116561945f327349ea28be9bd6eaa0ebd002704826d","signature":"0028a217ecd38367df8fe020b4f77585d6dc325dc25fdb5a78cfe64da17c91b2","impliedFormat":1},{"version":"7b98ca8869106f8d7e7846d325ab53159a4cd1f921300dc14679d5ffa18b7f2f","signature":"5d0c2b96cc6c971e79325846e59957375b4f4539201286a1d6a55239dcd051c4","impliedFormat":1},{"version":"c5d82a21df3d9eae75c653d0995dcd2977ce2ac7b2fee7f066d89243b75e288e","signature":"bc3d0d5ecc669c7cfe4014d53c576ead5413351416070a9fc80ee8abbddf1e61","impliedFormat":1},{"version":"1ee32c3fb398cc9f685c6014666a98b9c7825f00ea7339a6ada46dc486340adb","signature":"fb795a4627a71c978a1a359ba400ff142b2d68fa59cde7c451244c1cc7e15a61","impliedFormat":1},{"version":"7fdf278f49dbf57c22020a1f0f976000cfb06c78305e056cf4b407133d4d74ab","signature":"26f39cf4d71f07b5680bb9362ec7498c809b40fd8813d4992111f33a6b030e04","impliedFormat":1},{"version":"7cd61ff5ac55dfe6d60ea1e2e6295586ec8f37c3da4fbc6d0348bdcbcc84dfe4","signature":"cbc23a231565a883ba7ddf2a633e343a53276994e2418a0583c3b5cd57611850","impliedFormat":1},{"version":"55875fe270211c570a45c012a89e3c92b113508b145b7f13737779d1a47273cb","signature":"5a959d8124e86626043036cb080897f9c4570dbfcb040c8734c7a80e400c0f27","impliedFormat":1},{"version":"76e5028b3a464a35f8b37b061d57ec60b033a65d5990f17ea9b00a9706624ac0","signature":"ded85335a609a1c378973a1bf4636c8fbeeb44e6513f50ca1d562cdc2baf2ea1","impliedFormat":1},{"version":"200fd219898ffc2f3fdaadbfaf0413bd0206e1ee61a21b8f5eb867e9d4520f8e","signature":"eb6b3c0f27a755eec818f17bae029bc28955fa5b66bb9e2f28f4d618bd908b42","impliedFormat":1},{"version":"e5041081f4687e73a8a4608020047a733a2bc1d411e4784a0fffea45b7f5912c","signature":"fd99ccf8dacbc0229e60b73b79baed99e7fbfef2cb99405a80e3a1afaf76d5a8","impliedFormat":1},{"version":"c298d944a14d297f18eeef5c6b04434c4516fdf8c9ffd62b4f60edce313f8fab","signature":"dd72a107463b561089ce9c5081b7dad81e625ee34fa81fdae7fd7614c9356318","impliedFormat":1},{"version":"b8de2595fc539d514ac7dddb77f8e0066d3a0b23c60502cfdecdbf772e86b4fc","signature":"7f6a159931c4f81454bb2041e6788761f8fc2b4ef501684e7a70a411fccd8f55","impliedFormat":1},{"version":"67c395730afc24f4353c20b574b4881f0bc96d5b6db2b76325702889eb7420a8","signature":"cc2198aff60f1df8773aba7f17bb6682e90cbb8d5b6c8ae3b6b2290bfaf5eb7d","impliedFormat":1},{"version":"1fee1184f951efb6e39f0028304c9f44bb0a129eba7eb2d73f83868547ec62a6","signature":"164024f2f4fabcc0d2f521c5d4d94246ca6af567ca90c9a7d82502c2ea0d2867","impliedFormat":1},{"version":"ddda3be752c8af2fe0150b79575773f51157ec2b2248c0a41c9ae94fb94513e0","signature":"9db04acca3e00d9824cdd23ab99feda56ddd4531e97ebb7b8535660bce4cf0b6","impliedFormat":1},{"version":"b8793df803e113dd8a980a9a229b1100027dcb0784618dcf44cb230ed5b00b9b","signature":"e2e06d1947be53251529c4d79a4dbab13b95e2535b51fcf9096fb1c95706c5c7","impliedFormat":1},{"version":"5d9795ef553d8cb8171a7a5366e8075c92f397a2f972f60e9903b94353fe13ac","signature":"9e367d036dcb25da72a6f2d3828b6bf00662b410cf9c3704f5765f70d336a816","impliedFormat":1},{"version":"ab778b710431bf4c47e80d7e5b9253b73232f3ba0f81f3bf92bf29ac3846cdd6","signature":"fc949c76d43c9076bd2bc83f5801e3adc5029ea9648042c074b7d2b1891d55af","impliedFormat":1},{"version":"fe73cd83f037d126c58cf309d87b404486a16b55b5a3a23a632a150c9712a875","signature":"c761743eed5a7d58b12bd545944434013aae4320bacbb36b6a52a51daca34d64","impliedFormat":1},{"version":"5923b6e2c937b5b8e55647c147e35be4788c9634b58d17c434a939ddea7316ba","signature":"bf4660b6054b72eceedcde05c77bcf7bbbb277419dd1a74f93291f2a701a851d","impliedFormat":1},{"version":"dcc7354b50d859dbb183a6ccc52bcf88889c3ffa925a594c1f6a92562d9c1240","signature":"b65626c4762d0b031e12eda8e1380855e9a102dd11b4358c898ae726dd558c2f","impliedFormat":1},{"version":"e36b67ae9df4c3fe808904a2db35b297a8a2bcebeb22615aeab99a41370fafe8","signature":"867b25aa98bb25f919cc7e9efa710065d8ffeb2176972ecd03f3503070a5f5e2","impliedFormat":1},{"version":"909b10e0eb8ed37a85c3c2ad12b3b334db11795c43a742bf3ba8651f88634ad0","signature":"f31d2cab7950b97b7221ec0fecb66d3bc12dc41d1024486bd39df1002a4adb60","impliedFormat":1},{"version":"a9529d1e9d41d16756caa242f03bc9751da464f6d5633f124e19ca6d8242b0e0","signature":"4596d2e10e1310282d2f43ae40f798d6ccd120d718b301a85f586b9bcdad9afb","impliedFormat":1},{"version":"5b50e87f22e2663e818ebee1d4265cce4934d76f76ccb995591b61f408473937","signature":"8d390a9bad3be883786eb7ed9dd35959af396f2e208a023bc1be7d35529830ce","impliedFormat":1},{"version":"a44f9ec898024c0542155d67892646db8391128c4d34e1d2319daafbea399fa3","signature":"1ad56bb2852ad38fb8a21a03c77ffc43ae0509b9a184b15657d8cff5c9d77a52","impliedFormat":1},{"version":"eb8f779942e517bdad4067e421f4fcdb0efb113dfc9aa618742e73f31160c499","signature":"acb0e10b036060eee1077f544feeba9822871733dda519e1ef48a9b8b20da321","impliedFormat":1},{"version":"440c967ab75213b73b73c13a239b22f3b20a4f4b2d0f2385ff1aa633be68fbad","signature":"ecc092f303ed7e8e98225215afc15fcd684cb0024cb51948833d8f75e0636dae","impliedFormat":1},{"version":"5c4ce7506e65fb4e86e705bf3d30743b195100797248b9e013ebd5070d13169d","signature":"b412f6cdacf2eabba714781eab6b84b7e2d6db8fad9b8d54cbcdcd4200e924b2","impliedFormat":1},{"version":"834f98200c83beb333272dcf8fcdb5e80281859ba75669949dc5de026fa976e1","signature":"40a1ece1034c9a741a9ccd5b2399cf8c442db19dbd0f874e6dc9c7a80a875ecc","impliedFormat":1},{"version":"4b5cf5b78be039c96ea09d3af4d6f37f61566301b2f32658d912433cc563e443","signature":"bce5f9962ed075509da020181177aee5206eb8dae06f0e0063bc9fc3a9d2527c","impliedFormat":1},{"version":"01e74cbf04bc47b2f189822fff977108a9b49da6e2eafdad17e07827ac123546","signature":"fda25cc1fb0ffeee44056378ba992231eb6b93017edc657f01e4abccfbdabd53","impliedFormat":1},{"version":"2035795c611521330bc6fbbdd25d4a8cab7ac39e195a4ced52aa13a6a023cdad","signature":"b2fca1a2e7f52b1e110e576b260ae8937b0036413e55e2e849c95e195231ccb1","impliedFormat":1},{"version":"ac76f838b776d43bf2651b1eec39f580d2b54877120a9037f623b4033faf3c4c","signature":"7353b99ad84125f62ad90227e000f34a439ea758007bb38651db32772a860107","impliedFormat":1},{"version":"6b58c3b368e366abbaaaacea993611460e2a553093a2eb4f40fc3d30d26dfb23","signature":"3db1e62fab89637dac589a13050fe571a084f1e8d12b981f25e2dcc97c499f77","impliedFormat":1},{"version":"5bfc6a242284c1d751053d4d009424cc01fcdecad3eb24a4e68df7dc81568c99","signature":"760f2d4325cdfecdf4bc8096c945ca88c8b9b743556af80c8fc76fa4bbb75ead","impliedFormat":1},{"version":"e5eb2723f973e9c74ff9de41c967d9431362d6f76995e834c6429630552ef915","signature":"6c146c2d6cfbbc0baae236e0c360d031194cb67cfe6b84255c42f63c9c018f94","impliedFormat":1},{"version":"e6b233b3cbf790a769ed795aa42894401971f6d9234da64e1a4fe8156108e295","signature":"23a0d3699d953f99e3f3994513e216e4abd9f638624d43feb3617ad70ed0dd19","impliedFormat":1},{"version":"321396e9348d0150097695e87d01ca7ae6ea7ad4d4ad9c4161238b4c3f0f29c8","signature":"4d43ee35d3ec6c59f619bb9ca446e654b8a6268540850b438dce39a5ec1d04e0","impliedFormat":1},{"version":"adbc4ed4db49332d9e7caf7a66e55f34db36f839abeb0efbb83c2d4a13c1dfba","signature":"4d2ced35f29328e376da7799a4186723c2400d188e3b56371d6641b076ee4628","impliedFormat":1},{"version":"da32f0771ebc843f21e7a1d1efa04519a4379db7656e8931cd14e6e3d3490ca7","signature":"26d2bafdf4149ad467c78be7cea7e9a1bc24f9f6ef6506acbf5bf745df7aba79","impliedFormat":1},{"version":"593ff2fd961e3ae71e8ae529b432c79fc93ad4ccd743bd5547d69f50ae32698c","signature":"31aac246cb64d1ad945e2b82be7adb82a4553782cd4e8122b8c3d56c0ca31722","impliedFormat":1},{"version":"8e15b6ddde2cb293e382726abdb1a5327632aad8f4f2700cbe004ad818716328","signature":"22742beadd7314cf8abc1f66846fdd8b1a67e8cf7b70c17bfb9424f9750a183a","impliedFormat":1},{"version":"9fd0657bb8fc3a35a36b3bd70e64dd5c536729bc0e67499fc53a61c419d306fb","signature":"924ecd0005e92af5e6e52a247c31c12b56ef20b6bd4ba62d27c6c7078bc03151","impliedFormat":1},{"version":"8f7d44e7c6071843866cc3a4cc03cb6ebb1376d264c7b536b287e2a956521cbe","signature":"1806ee27d2d1eac80c4e90e33eec557d87084acc869a67f32abb18a62e279df9","impliedFormat":1},{"version":"7f5276ae2e9b4028d7985343b72ccdd54beab72cab3f867b31a332e161dd1e59","signature":"503be6bb9ba787458e514d4edeabbf2f5bbd4b7d1ba4dac03e9793bb4b337730","impliedFormat":1},{"version":"9f9992df3d6be7391edd67a2ed312e33ff0218293e6df9dc56440aea9aa141c0","signature":"6d9084b07a2fac99da9d9a63cd37f7c72ef9b237d5d00c5cda901738b8455183","impliedFormat":1},{"version":"b86cc47e9dd66f7df36287773d63c1637f555e860a926b3fdad11e50f881ca6d","signature":"630a0f6bbe5d03c8dffd5eb0bc24633837152ffcad03fe41db639b2800940973","impliedFormat":1},{"version":"5ce8284c0b79ea350a3ef9755e1d9424304ae73e569c9f98421438dc5ec86c88","signature":"421e799b10b346cdffbd21988f3ab09cd3b29afb282496476a39223cf878b3b2","impliedFormat":1},{"version":"2ac760f848f9ea2c42d1cf91617bbc69375b31b165d8935ab4f156bee9ae10a1","signature":"d164d16687a3bb82840a6048a5f45587a4de4ccf99c3c0237f5a015e05554d1c","impliedFormat":1},{"version":"844aa30e31cf38d83ecf42429e7779565efc0c1eeaba0f609bde4335bd32aee5","signature":"f7fc973f0845beb8a677f162915929f9b8f71c802c43f92800fc5aaaf6c32bf8","impliedFormat":1},{"version":"612b5b72e993ef71d8ac3fb667de1cd11c97d2ce9a121e94a48d9b07405f04a7","signature":"efdad381cb4712041ed8f44143520005893ccd360134cbc61f8ae07146243edb","impliedFormat":1},{"version":"1b326673573053baefeb33ed74ceb0f17cb0bfe93fb1491c0e4e9121f9abe076","signature":"dbd28d1190408f7a67225ba51c5f2ecc7692193feed5e7416cc50701860e5e15","impliedFormat":1},{"version":"e391e26d389bfeaefea7dbafb4a132d48ec8b27b508e2f9a3ef9d9e51d0dd8a7","signature":"d1e339675d40f48e9b88d50e1a963135c8bbe33c1fd605fc337cdf1170cf7fbe","impliedFormat":1},{"version":"157003ad2374a6ed47075d86246e31a727582c84cdd8285911e91010a466453e","signature":"b620703d4d221b7eac46b714f3ad2d42f1ac87e3082bddd819b807022264d726","impliedFormat":1},{"version":"c5abb1e5c87f4c7bdd75e61703791b60e24a715d263f4980616fc9af45cf0139","signature":"645c19afeb8fea04e7a11d2cbd5a9800806966d686c2e18b22eb8c5263ca5910","impliedFormat":1},{"version":"54a50e42b3da956d0a13a507287dfcbf3b5ee16ec975060d7befe98f90850d5d","signature":"cec01d5566b48f5fb086d87468ccf8eb7ec18fe755505a2b76384384e682da27","impliedFormat":1},{"version":"e7e56e9ad2ff227b87a421fffe5640d13a8665a4c096b9d0ddcd3345fe2eecd3","signature":"e1f351407714f522e4194b25aafdb4d233507cc875342b99ddf2622c4d4b9257","impliedFormat":1},{"version":"eb2153323123e0c25a3797c203edb37ef2b4ae5dfaf386d42298c01100277752","signature":"d86bbc32cdd8b056bfd5ca377dd4079ed78d4ea9a311e6bd159363f0c24acf52","impliedFormat":1},{"version":"973a5526ebf671b604cd489153bad2177a4dee90f4dd3804814f44200aa8bee1","signature":"b0b752fd58b3efa33c798ef4da32a6979c939833b80ff110ee4e756b34b8bd7f","impliedFormat":1},{"version":"179c20bdf1bf3c4dad3de4bb0af0e7045dcd1ed7e6e3da2a89e3492381caaf1c","signature":"69c6b7d279605b60600a9a690719a87a354b1709c2ee560217e52b3a1706b023","impliedFormat":1},{"version":"441ce263d45e21ebb5528ec833c0077389eacbe1319ed308327b3379f462db02","signature":"24448aa004201f790bfbba9d81805ae28e91d96fcd628f8d85a45581e54e23c1","impliedFormat":1},{"version":"485c98aa37b0bfad9e5a4fb710a389e0d2f2d699e633ef4a9a053cec79dcbaab","signature":"615bcc66546536f2058f0192dc020bd1677c35a5344a6a4e961d9f92f0a24f5c","impliedFormat":1},{"version":"c837afde8eb409e240aeca3ed908da7f7c540e7599d391dfd7145946c5eb5e79","signature":"78f1204376de828995da107b1a0d2442fbd60539b558b3da7bd15e3146e93e23","impliedFormat":1},{"version":"1bdbb1248e94c09be43f8270635c42b12cc2f956cdb64c54e2a101c4eeb75319","signature":"b24f1d1bee8a743c07e4679030bd74367ecd8c9b8c661d37bf09353c203459c6","impliedFormat":1},{"version":"0447fcd11914350b8bb1f5babadd88e22e0cec2c6fa491a30d53eb998ffc29b0","signature":"b25363b7f931ebd711f0f685b8965475bff183567197f6d2f29fcb182de94598","impliedFormat":1},{"version":"d732f80b143dde1177ef573c07e2ffe010e44d43b1fb4ccf19df56dd34918bca","signature":"6f3ddb1886ab19c2439e2ed7287c70ac29a288b25802f93096fdc38fc1acd716","impliedFormat":1},{"version":"5baa2f9565649fbcebb2abbb5553f61595c727495eaf067b987d9efeb74705cb","signature":"6c4f83bfc302700f025885ccc3689b66524d7c15cca0013ee66b3e4e1b122836","impliedFormat":1},{"version":"b52db456cfd33da0a180388ec8db81476569ed541d801fec3b21d81b043959b7","signature":"3362a324bdded3679a709c2817d8d02a656015f5af7bb9a7eca602dfe121b594","impliedFormat":1},{"version":"3b5871a25aa9240b9d1f7ca91b5718bb74409d92dc1865daf07bf779e3ddcdc8","signature":"0319d03730843c29319d50ef7bfaf9cbc6bf2edebaee7a0560f95adf27e16619","impliedFormat":1},{"version":"adf14907c6c3cdfe70ceb8c6abe592313625b51186c3003880a599e0a30c30e6","signature":"e8b87a9da920dec3d1e7757e54d15d77900af9f131d7aba922730cb34b870848","impliedFormat":1},{"version":"c334bf170049852006d29d2037c6ae5074c12334b441e8afaec040e1914b0cf6","signature":"0265c8cd5c2a165345a6c80e0958b4daa027884609ed3cde1ec0ad82acd1fb2d","impliedFormat":1},{"version":"5151a5dd0215acc26c3e0436119e54297a59f866da4aa09d7b4a279afef11478","signature":"6a90fda4f7415e616d2c0e423ccb4fd193df68e0dcaf8f9e25b1e9b406c50ae9","impliedFormat":1},{"version":"1b9d106d7756ab0d31ac099a6fcfd3c96190b3c6b21fc11c745afd6478074414","signature":"d9d95f5d8463581def36fe73987819aaaf9ae56936bc53c7f8969e65bc4e1129","impliedFormat":1},{"version":"75beafa0bd4ad39c32119fbc83446df5a92c1e36ad01b5120e6cf4988e4d1917","signature":"48d27075661375a995f1c71897cba900f38c7516a1067be295e19bef3bf0e2c6","impliedFormat":1},{"version":"41289f151364b7e5f240c853cac0af037690b98aef2bae1370f4fd9ffff7b9de","signature":"a560afb36d85ac1de53b2ab0d2c719707bc2f62da519e4141a98ac5c8330d88d","impliedFormat":1},{"version":"c7b792071cc550dc5157683c3d8c25f4e83020c990a056546a249ec14682125f","signature":"7e8bd01e2514357b1da30438166b371fa31b8a61df5cfc2cd22ee6f4f3a6ed2c","impliedFormat":1},{"version":"5d681925df57313b3911a139b58fb50c5ec6f611343d3e09007a3c90ebffa628","signature":"d23bb73bf2e42c646b3ff783b6cb08c773e963f190d5a440e189f4372997f8b2","impliedFormat":1},{"version":"ee4292e317eabe0b143e77f3bde19b21c810e22e49e4a66fa0164f39ec861df1","signature":"66ed9f2a1d1404eb7b62fc75d394f7c4b7d7d04cc0ff9e0893ee85bf05ab0ed8","impliedFormat":1},{"version":"1b962cd33f2ef0790c8d1fd3d5be7b00b4d34b41c519214f0afb2016422778d9","signature":"e9781f09c52c308ba8ba9da8190243cfd38296c35feb2ffe1955a7d2a84885b7","impliedFormat":1},{"version":"5927658d681e37b4914d146232f280c26c9e4b3333db91e35cc1e7fef6a255fa","signature":"23754f449c30795b4eee3f2c1725480fa14a9a02e75b5972fad66c8bd23a0881","impliedFormat":1},{"version":"a385198005632d08e97dc2e765fe5ae847824c8bd8f5f78391c0e9de1ebdda46","signature":"0e5a65db7385c8c1313234f9f337ec97215b82bedcc64bc3010f43db50eb5aa2","impliedFormat":1},{"version":"516deb5b2314ff7e1093b3b11a58f36abea34c7408a514e5e08d742342c80cc8","signature":"8f0c72758e017a8e40ec1fa47297451d3e6cd2c56f8dfaf8ee9c8c7fa7ab3ca3","impliedFormat":1},{"version":"4b5ecf72844ba31acbbb81efcc881eb80be0c8c5a581a777758a7dd95e03e3ac","signature":"4e9797db45b22f8db3a74d51a8bb035defbb6610721e07b6b7e6f31ffa3aedf8","impliedFormat":1},{"version":"77016d4d8ad27b9f6bf026fef936179491f69c8eeb7250ff7c3eea96d57a6237","signature":"e8da343d2301663ac15e2e9aa16a7fcbdb1b77cf1af9e30698ce5ef9dfee3013","impliedFormat":1},{"version":"3cab27f01c5100538587f1ebe0bb3b9776d25dbce174af766a00350dcb8fdcbd","signature":"eb762561fd260133ee6fb077cbcb49224e4c766ee9adb825948b1da69cbd3661","impliedFormat":1},{"version":"753b7f83446092c79976b61206005e899186eb8ba609ca4e956b6bff9def665e","signature":"a8460f7a7cfb4bc43ae42fb0a561f3270d1d83519f0dbbceb17c016c4c3d68c9","impliedFormat":1},{"version":"a9ef6984c3eefbe3a5860f5f98d8f243fe6c304cb5423fa494c3e83b48272830","signature":"1e04dbf158df49f75dccae59ca359935a643db92812eb38b93ad8b4c03feac60","impliedFormat":1},{"version":"c51634607683ec34bb6e3cb78025196f41722e86a16789c794f49374a08d1d3a","signature":"eecdaf7e9ce512f1a69ac32d93de64638a7561a522c59b8872616d261ecf0ad9","impliedFormat":1},{"version":"d97241dfbbefaf5b60368f4932991af6365bfd0c6417cd96d290e41d6c128c51","signature":"96a92ec2689ff880574f057d2a669fce53685d50e64350bd4518c225079bf9a8","impliedFormat":1},{"version":"1c1c0dec547c6449e9998d7c10e7ba4ce9323cf225d2fb1d2675c0dcdd6420f9","signature":"3a7e70e57f0c3c353e6ab924869c5d982c6ee17b06ee829f60e48369de5a197a","impliedFormat":1},{"version":"c98879436e9b8883fafe12d19a5fc16e60fa027b38311da1c28cd6c90650f21f","signature":"8f1386a159931371d7b1ca68dc76aa5db892e0213a45b185c754e0baead16ca9","impliedFormat":1},{"version":"7aefe4eef6ae0269a38e5f054b37afcf058c200dfbbb4a29aef3ccfed7f9b4ca","signature":"9fe099965cfae465525cfa2ca1dc44409b64a859c1e973f5ba1c619b31c6e695","impliedFormat":1},{"version":"3ad16dc42f35dce1f7d5756d236b3675daaed965c55fe4a2775d9c7e83d44c22","signature":"735f0065f3eec292f835ae56011409212306eac48f8affbe308e72586bfed245","impliedFormat":1},{"version":"2140564baa229538816462110aff28b0bcc8e8f04b90615255c196a360bbb01b","signature":"1d4b4f85726f18b0d08108cba9d69c349bd41dc651bdea9bfdaa62782d77fcc2","impliedFormat":1},{"version":"0229522874917861b4fd066d3895a4dadc48593ce3f2105f8904d998f84fd7ac","signature":"f5c02737a6c31c86ab9f6a4ed6c61c45192bd95f82c0765a4f23567121a95335","impliedFormat":1},{"version":"7b11d686606ba0ed4c7ab7fc5f3a38f4a107870e0f1efd86252515bba5672a87","signature":"5c2d748a0e6206e5c617204f865048e6cbad4a8e6a4df0121abb09d4a59c272e","impliedFormat":1},{"version":"02d697ca5fc5b8b17ddd11e8a2bcabf79183fa527bb1f63108e3c4192d10f33d","signature":"d53b4ec2b23dbdc9b4c96fcea99ee4e7ecc5e4ceaea646ed3be8bf295883a82f","impliedFormat":1},{"version":"386cd34c8ae40a8d5b656464ff3d26c98add604c06d63762f995732c7baa0896","signature":"46a5ef9d88625cc0047cc8c32db3344e3fa27a70951efff4982960fa30e8e3cc","impliedFormat":1},{"version":"c10c03dfc86560c437383a6e740077b88ec09b638f2b7cb659b0ec3acc59f55c","signature":"d6995199c7bd2d7b95049f06201f276dc16963811035e18df1e4946404be777c","impliedFormat":1},{"version":"2f55a784688453db62a37cd1d12c3730c9f2674d78b8dc5a82953ab704f21325","signature":"93e91c224068a26cd1583856743b896d929012280a6379248a774ea64fc891a8","impliedFormat":1},{"version":"897676146a2283d6158c2a116011fe584b9f3b43e8575ed65637dd0d47d1ef4c","signature":"c05abcc96a75c0a6757069e7d59c72d0ce37cd9d23b12cd8c3518c1b3eaa3f87","impliedFormat":1},{"version":"aeb507ff700b4b7b5f280e5499b76d0884a8a500538de4838fc907b99d11ce0a","signature":"7543e9e6f2b9750ba15360ddaa946459392367a0b12ad0f03dfdc3c064ea8adc","impliedFormat":1},{"version":"9efb7dc3e386ada4ba9fd57b5acea4e3bfb72df8d9df6464f9ae230bfe33a990","signature":"c9625c9c8463ce3a9193ff1d00b0f95bd15e8a2e38c77ace7f94d0907ae95c4f","impliedFormat":1},{"version":"ef3e89c3029ab63be715720c656e62d7d2d0470fbf3313d076e64a79a8c77ae4","signature":"253923f67dc60af889733b932d1be9e4efff6ff8fc0d640cee78ac9f0b89bc79","impliedFormat":1},{"version":"efadad87bcda9d06d9f477fbdbc9f8c53746aa7fb1df730501b705133e0c6c23","signature":"d25bca312021f3610421b517b4c0daf3422acdff8b9c53aac0c7617f99e05bf9","impliedFormat":1},{"version":"bf2baf66a4d17a4ed9ee6bc028951d4c6dde917f1f26a3aa39c7796fc4fa0e69","signature":"733cda8f00e910e5bee46d89aebc6f7fd14cba99d3782530fe6f575f3b1d46f1","impliedFormat":1},{"version":"d258e8f14dc284e5aab3853e920aa90ed21a3d9013e4cc49e3db8a86256a72a1","signature":"fa6fdfacee582970200fc2d116ee5325189d745bd7705ca86ea8377edca2e1e7","impliedFormat":1},{"version":"acf8d29129c92e8d0ed48f8f72b9f4eaded398dc9b049ec7c4ed77c00a6fc7aa","signature":"57e442db50d97661cc18053e92f88109cce8dc00e2d5b534e9adb253adaffd8c","impliedFormat":1},{"version":"ccdb53123d301d7ec23d5037b47c10f701d7d35b64dbec4cce0f820e19a9b4f3","signature":"9969759974793abbb4a41605754c094d0d0675393fa140c28f53f92fbb9b3849","impliedFormat":1},{"version":"cebd3241bb117caaeb7aff34b52dff13dfa939d0257cf44f7de514eb7b3d129f","signature":"4b4006a46111dcf8c3adfab9969568c8597e7bbe8ee5c12f5c5bca3be2bcfbd7","impliedFormat":1},{"version":"c7ebcd118916d9263873d5a1d2a8be7204544b28590a2e2264a5702f5ad4a205","signature":"d6c09f420b0edd26495d79974d0ca90e845ffd5eb18ca95ed762ef68a5b479ea","impliedFormat":1},{"version":"6ca43ef00aede7e13a9811f54259cfc76fe98364ddfec72d137e41764487d663","signature":"a6a7d9e40c83362c11bbeacd760c41188f2df8063b3ba3ba3ef6512a908f0d26","impliedFormat":1},{"version":"fb2ab7fea726d66c9f2d330e35c18e1e3bebabc8e3729aa1174f4bcb828e3c08","signature":"53f3578aa915bad68a6347458800c5adb8ae04ef3fb30e72c1057f61576d884c","impliedFormat":1},{"version":"c83c95a2176bba8b5c79b1a9fc2a91f7fa74521831fc34d6e9e7c9c2c3a4e63d","signature":"5d13b814d1461c08da56c211f7c78dc54fa06406426bc8f3f111a4a98dda60de","impliedFormat":1},{"version":"6f2f85f5a520b06f3a306502dead163852c6553b62b865acd67eafc47c9911f1","signature":"e9dc703ab5a1a1b80e8c4e8339e710f306a640101d9f827e18aa774a32ec3fc5","impliedFormat":1},{"version":"758ce3e6db139a1a0d95427e7422e7311743a00e880690077fc525cce2071c7a","signature":"c2f99e02718dbca950674e37ed6a9feb99b362ca14e9922d855d547151e2b5de","impliedFormat":1},{"version":"f657d0695be23cb27f8e32c5f945b78931b954746604f6e314893e33c4d628c4","signature":"7f785d908147661ffbaae1e69457b57d08333a65998b856895f1031e704e066e","impliedFormat":1},{"version":"b37394e93f26561c0556d0bc9986d02d113015368e84e344859c8eeb82d8368b","signature":"90887ac17161f66d76a7e5cbaf380c2ed8f8633f1ed17c09343f5031534e49ca","impliedFormat":1},{"version":"184899d53a4a6358399dd8efa417d689b0a0b3612adf51a990f7a7068a71aa17","signature":"0a657ae71f852e398f073933c428be020a5421b0dc68b4361479659e12169bc5","impliedFormat":1},{"version":"1b6e9bf728239cd8384bdd49a8993792d963b9540dcf9de785147ebbcb5c1bff","signature":"375d435545c415cb56d468489dcc5e4a467a72a3aa91b161258f8d88431bc466","impliedFormat":1},{"version":"e20d91150bfe5dbce48e908fa94fa026bf1e60cc9a74e30de96aaa8ddc1be9d5","signature":"cf02c0be76adacdab1d352633abbcd8d722520b80800715e475051707f5235f9","impliedFormat":1},{"version":"658d32697a4084d5b3ee5547e6833e572031fb3f560c3e15a6ae02a839ea8ba2","signature":"dd0a1afd5c98d130c61d3537edca4e6c80de323bc1f5b5597793d87ed20c8b19","impliedFormat":1},{"version":"08f8db646e7d7a224a5d7eba9b5b9ee23e3b5912fcb2dbbfedf792ab51466446","signature":"1b2b209186b2637b8b019b276441157194f26b57e556da0ae3d30d55297fb77d","impliedFormat":1},{"version":"8c90ee572008b9b905b4ff5c800124381f3224adc1c585d071efeb8d8f9af419","signature":"5655cb627bfe2ffc57a217a42e7e0df4386a3ce1f88bd0343356698fd97dd946","impliedFormat":1},{"version":"7544d606181fad9b507636ccdb36d329c5d06b341ffb40d8b0b44a3597ca11f0","signature":"865b6ce634309a0fee65cea37c54dbafa54c06f18e368bef9eb305be3bbedd1e","impliedFormat":1},{"version":"475f7566573db6b3af05134a541f3ce84b9f91fbd2560a786e1da03922cb6f20","signature":"3d54b4ba6e58a7d75cd43e1df2a22749bec106f58a4b3641508097af506084d7","impliedFormat":1},{"version":"c339e75abf11fd1ae6907ebab0c8198f7e1e7987d7d3d4dfdbe8b1fd05bab022","signature":"6d84f3c871cc876eda653b7fb3aa5a60f0979c7fa358bcae88825b718832cd1a","impliedFormat":1},{"version":"882b6fa38761755bf6c1b7144e9d053f8d663c8c713166444b44e14b3be332a3","signature":"fe5e9f3cdd1dbeac457c7491d0e69cf5f95fc23fd5bcb92f1f231d3eeb4d0a13","impliedFormat":1},{"version":"e0d9bae7311b9162be06498fdea8c1f27c6cc96eee1fe78c960aa8b99fc82b3a","signature":"bd6210dae17164c820eb438a795768a1104d1b33941daaabc2ed58935ad7e2b8","impliedFormat":1},{"version":"3d2598fb42051c30f982a84f5c545c5083ae1384b2dce5f41b4ab9dbd4650ed2","signature":"08ea9814fc8610e253cc26a0b5f53b61881f2fce3cb7ea02070375bb58294718","impliedFormat":1},{"version":"5fd904bc79536bbabb76c69c291d6a06a360ecd14ea05d1f0b56ee7ad63122b6","signature":"c48059cc2c617e7cefb0e3f2ef00f11ca9b0dabc9bb5da336926a8e28a0ef6c1","impliedFormat":1},{"version":"8b2777e73967c6fa8c81cb18999ae78e60b48e6834b0a365f5ab73c451433d2b","signature":"5d2de9e68c2ff57dd301a8c370d6b821e412f123895d07fcc0a9ad7d9b555cc0","impliedFormat":1},{"version":"9e8b5a4a1212693e92bd6979e169e2e2209816219b1186531976eafd3557442a","signature":"96c259eed5a828b86d11ed01506fd8c92cafa4b6b5ec5aeac867d5909ed9a1c0","impliedFormat":1},{"version":"862a032665299a471329671053b4d56432d8c7d5f820de2d023746624e76e340","signature":"990d01e0b0722b5ff336ffe21f90e41a13cd8a99dfedcc9e13d5dc66d23be52d","impliedFormat":1},{"version":"dd3f88fc60c2b04c95a8f0a1ba1f4c08a7a70ce0821be763002605f5be2241a7","signature":"684a19c36670693d7f27c29cc9806f548bc78f4ae08dabf83e15366f154d97ab","impliedFormat":1},{"version":"b5e98b97d360b13fd5ff49324865606a40aa3ffb1d207abda3bb49c0074cf695","signature":"1bff7a9c218feeaadfe53ecc896a8d999fe2ecb92f2f42b1717075e6e6fd39f5","impliedFormat":1},{"version":"6d3e1c089053130ed5519c0b763f96c3137ef12a24d283a5c2f924a76fa023b8","signature":"0725615dcac19984cf8b367ccb7f60d13c31dfecc2bdb740a456279fcea73767","impliedFormat":1},{"version":"b15abb15e1b3a48b8fbe65505d7185c181892b4bcbb7407a956df3c98f443255","signature":"dd78c7923b0312703d22db004328c94fa3abbe8e5db160ccf58220a2586b6432","impliedFormat":1},{"version":"505c926183ca494e6768fe8ddddc3b5bb41605cc7c1095ed5767791b77dc02cc","signature":"195e421d05bfc6407c6bb202602ceb6697b4418cfd5970735663931853296c44","impliedFormat":1},{"version":"3d1b3e7667a1973f5273e8bc8a1115e402d954f315a28ab3723156da57f1fa24","signature":"0796c660ec88bd3c7a3e9e11638a982900927d2f11cea1aa884df2b24b771b91","impliedFormat":1},{"version":"fbb5e563b1aa8a0d35ceca9a44ee2e993e74beb4ace4c17b32532c5d0274ce48","signature":"d669051936007bc57399abd4a17028fa690b8eef31ec4734dab39b14fbe892cb","impliedFormat":1},{"version":"ec6a97dbce47bcf36f0a2ae28e50f52793c56234c3eb58cc8d8021b028ca4962","signature":"6e41258aa566108874983fa0d07c7bc461440798478acb0966842e9184ebbabb","impliedFormat":1},{"version":"5aa291f3317fd00d62a3b742356f591fc7df27ad681054eac468323ee7274672","signature":"26298908b9d14f742a80e0b27981ee3b154c9e46559a0930afc8b51d9ef3654f","impliedFormat":1},{"version":"32c6c52f21397f8bfdc3df3bf5a60ac21092c54ee45b0eed88cd9706bcd14fa8","signature":"4c57d23b62b4936518318eb39aca4585e4f98a1c03b8d24eeff1b2c94f42f2b1","impliedFormat":1},{"version":"56a45af4567478481c5b7d28d28cc4ea3598900087933788289da2b5c2e5018f","signature":"7bf11752ce9e3828246c954d0cba6d145c494402fa3c621fc74a5d8f2d893a22","impliedFormat":1},{"version":"9452411002427ce299001d2a37a717d2941caec0885d4ed70cb704a08772245c","signature":"cff7f48eb4bbfdba02b07f923d9783f0764543de5d5007b8fc3598326af9d750","impliedFormat":1},{"version":"7bcdfa3ab69048c0bf89ba5dc0e81b3ce4fdb270def91a23665954ec5f732d55","signature":"baf095759a5d00e454d8d6304696f7819aefdabb6b5c8b773441d06355b2dd2d","impliedFormat":1},{"version":"8f41331ed23f4b6f77563f54b1ff8e8904f7a400bbde85be5480acbd4a228274","signature":"8e9f67f77364be97fc1b2d182dc006cdeded7065832e657f60845ddb19115539","impliedFormat":1},{"version":"0a00051c38757f1740bf95dbd8117c9437278b1778c71a6c434933f6b542332c","signature":"7342f14d805e065272507a66b943632d9453d9de4a52ab006c75551fcd404ef3","impliedFormat":1},{"version":"30f723ec654f8534fa8ce6f4b2cdd5c3719fe59cd364c6ac519a34d760c6dd6e","signature":"777e5200e7f0cf2f2cc6a0c5e675a74367341c814d4dd6ffc0c99c7293a0a632","impliedFormat":1},{"version":"3df7ff9406dc2cbbbc80ae02f595762f3ff3bcb44b65a1b751f83ce6ed7cd14f","signature":"8b324abbab84c2f70357c57c08776588adf2a2675298f847df9ea23c405e1243","impliedFormat":1},{"version":"2d3b04331d3051f45d3b1a23554772d654ff5a0b086c6533f629899ba9f6f883","signature":"9ddd1f72ffe7226952d25adee4a4983481c642a80ce1624170dec1a65a8ffff4","impliedFormat":1},{"version":"bfd94cd95b4d3fd1d9fee60b6309502b074296c56dfc7be5e0eaaf8a0de5e40d","signature":"dd32114be82c9c0947475e125cb5019b77e80f08c9f5c12ab24174d8f6c053ea","impliedFormat":1},{"version":"023221bcc356f00932588db62a67f6aa970850e60c9c73c780f8454cf9c19145","signature":"606ea7d78bd37f2580bbdee32e12dea88b2b89086f8424728699a11188dde9cf","impliedFormat":1},{"version":"6760e08725423bf79f9a6b064aa95076dee667af6d35011e38a654696e4808d3","signature":"9e3f2849a6ab14c57ce384865ed768eed001a172a342d0d1ca089e27e4705238","impliedFormat":1},{"version":"329bb4be240dd736c92314465bd58e04bf9199242dd50200b64fde6eeb0f874f","signature":"2dabaa05659d72412987ba063415aa8b70b28ef1d55995448ce60ad91edab8fd","impliedFormat":1},{"version":"615d6a5b13f20977e5360a0a0f54ee6b06c2563f0a8b56e2e31cfdf22f90ab22","signature":"39c5592ea46d5fbf499fea31f32fa972cf52f3f373b494ec9d4a7d5fdcb8c03b","impliedFormat":1},{"version":"62105698f0d18b8df918252cadfe7a72f3c7114e84329615b4ebb09debe2edf4","signature":"dba0a425bce8afb1403a560aff589a22f0f4e62f7247bd8baa51da75bcc18ba8","impliedFormat":1},{"version":"a580f0c566278e723d509c2304d7126503e1ca1367be88d487d57c26de37d520","signature":"b1d93300849221db67ed582c93dc1f4ee3e5a05e974393d4de0fd92e2b2c4d71","impliedFormat":1},{"version":"dc2842adf43bb84e6b0c604751c14ce7a6ffdd34140f153fbecd2fb0227e25de","signature":"dcea02011624fc4a00a0bbe7dd03301ec3f699621f72fe4c75ad0c052bc52786","impliedFormat":1},{"version":"dd225190a08892e5633605620367eaa1fdc480a2e489505a98de3aa3391b2ca7","signature":"cc40cc52e90db6d67dc29adc76673441fadef849960b7f577747bd155660d745","impliedFormat":1},{"version":"821b8b2094fb4a756fc29c8ffd311da0f61e5e2a23b626612ec9789a4a1cdbf3","signature":"1019c1a174cb07d7b29cc88be5c3524789babf928d95dc11973f450b68717a54","impliedFormat":1},{"version":"a4d3c7143e4587d72e1d3bf1c18486b3ff93897ab4e582a38987ab137c2ab5a2","signature":"5f34429b30a8d7b1888a4df45a523c208131fdc26f6974133b10301e3ada662f","impliedFormat":1},{"version":"b7f83dfbfcc7f254afeb46dda5b142e9f8ef02e03039a01542efba4c1bea5634","signature":"06ef5ca7e9061f9bba33ef0fd23b12e47ae8b2adf0d43b3651fdd685b0065655","impliedFormat":1},{"version":"49bde3e3d45b32c61e5a4f177804e2e86e8218334e09c2fb5b327c130a1bdda6","signature":"5c8e199a4db228dcc48270858fd56a04373c91a990471385bcfafe39b9f919ee","impliedFormat":1},{"version":"7adbc3864228127bcb04a68c606f6b417967bb018a0d2729f35cbdf6e0cfc2a4","signature":"3394afa98aea70edfbe34af70286aae8eb188665a908861943900c8e6b66713f","impliedFormat":1},{"version":"c3788436942af1e49ef62e2a076112b73d6490fac86852ce935b0fc2623a5541","signature":"27cfa34d11f255fc4d12cfdd4b6ad54c896f3159002a1cf698340da0db0acbc1","impliedFormat":1},{"version":"fe92373d4ff1bb8373cf844915db64bf52957b8b19e676c606fb6a0b9d784ac1","signature":"b0d038f2513bc68c4122fc4b37e30e1b28a45bebdf3445de7932910becfd4f54","impliedFormat":1},{"version":"3522baf4814a20dd03e63a178eb509f4ebfcf0a9d13f86825bcd4e85e2679416","signature":"12106cbf4e07630053fd453ec9806ac23c4c70460b814852209d3fa2f8f21f2c","impliedFormat":1},{"version":"45d5464566b6ae3383df9417f6e8ab552dfa6676d563761d5907997df6dc0173","signature":"76eb36ebd147faf30af345b677c16ea7556db17b268deffd8cfb219b0345d4c1","impliedFormat":1},{"version":"7f70ea3e9ef2cfc9c68451de7f507f5c1870a86e39c4ceb3ecc5d38c4cdff6d9","signature":"2f02bcefe499f4349731956bb6300976fe93037fc2088b6d1f63027b3705fa68","impliedFormat":1},{"version":"b6737b00a53bf4b9305a21d9ec917750302fd119d90de6bf9884910fb668e897","signature":"1904e404766e9888a805bbed364c851a763d35161d948d619e531205fcc10315","impliedFormat":1},{"version":"e3028b05d43a3bcc60eed83776a16b17517af89e6fb7978a7bd0c1ae91a0ec68","signature":"d5a9cce2c0e41c457dfb13a67e183bbfbcd634cd3d701237dccb938392a3e7bd","impliedFormat":1},{"version":"d6113c884a6b6e52cdf5161a6f5be0f80631d72055d760f223b81ca175f70737","signature":"842adfd8198c90292ea04d5d80f9e7c76f7c6f67269218686fcdc01e3a97cd54","impliedFormat":1},{"version":"d8a373ec470e11e9d4befc913ba81e6328169984d9ce3884b304d2be28c3437b","signature":"ff7378c8f83cb421ceae91e1c2e357f6c388626281af8aff8e3a8578d3bb7c23","impliedFormat":1},{"version":"4d935516d251b6fec996d137a1df961722e269df6adbdea42b6a6cb20079e0bb","signature":"e33b404de99c6c6906457f9143bf854a343813c9de4e697b27baeabf7d7e13ae","impliedFormat":1},{"version":"fc34d621fa8bbd819d47c0f97af586baf83f8dd94d237ebc0a0b4c4b8aa6a550","signature":"5939fd4bb004fa956a3b84236f3cb0f13292a99e232c87abc81852f9c7262bf3","impliedFormat":1},{"version":"26ca8118e3a6812b00a059240cba66d1c22100c0e6e706999fff9f944fcca463","signature":"413c999c1c8f21bdfcdd7a7ce708e6eb152406c301003711c7895dcbcf190cfa","impliedFormat":1},{"version":"100aa2fd9fb7302fc3f6723fbbf853d36a8c5b4518bc89b0e30c79203d85ef03","signature":"7a259883159908e47765db7b1300f549f3bed6144d01ffd9a69e7c767d75dbb8","impliedFormat":1},{"version":"09e3c6ea9b0e930a66582105793a40d62f7610809315c3a0c09468152319b47c","signature":"d291ed58af6bed836a80f1f30cd33e9c68ce22681229309775e4168eb46a4a5d","impliedFormat":1},{"version":"ac00e5457d96fd82bc49a30b129d250b53638b0244068b4fd2e60d612dc5659a","signature":"7a229dc76437793f27da4fe097a38534c668a12fddf0fb512ca7cb8bcfc8ee81","impliedFormat":1},{"version":"bf23e5d4ecdc35faf27fdeba9088345e5bf1b0ecc280df37744cf43e8fd2d301","signature":"e9ec3091c7f36d83a5ff3fba6c9bbc4192fa683583102f1ef7ca2c5d135ad553","impliedFormat":1},{"version":"fc7200c2d0eed6b9af0f3309eb8f97709c20911370fdda13feead3f5b856ee01","signature":"b664a589ae69d1d9633f80bf6e90d057727c8f497894d716871dc7d7ed3a6e29","impliedFormat":1},{"version":"7534055499c0e03d266cee55fdb0baf5a94272440cfbd2af9964975d474fcd1b","signature":"b0b26a35309d7e9dfc0d735bf0a5ecc201cf2f424cd45057b11842fd6fc9363e","impliedFormat":1},{"version":"d9c0950f2a6bc31c7bc93397212f36622689f4c7c259d490d50f55a6e4ad2c35","signature":"82bac0fdc45ade07b4365c61dfc6395d41d0ae33db4f83ee95ea0960fbf6530b","impliedFormat":1},{"version":"aee6bafa3668251084a554ddcaa2bc1d902b50e47f66740474f732207df7b2c2","signature":"9da4eab9ddec59cedddb453b460f786c14f4649f2547f3aab4f3ef411345e7e4","impliedFormat":1},{"version":"95140dafe691a3518940d2193f0d7ae97a366e7d4b864bbba5a566176a19f28d","signature":"43c34f87cc7ab296f03d9c9fb5965d7ed392d6da37352dd274520db3edd36dd5","impliedFormat":1},{"version":"41cc20537d9591eebb9e701787d8bb50d50e367919b157b8d409e47a0d19eeb9","signature":"59f5dc900f3e2eb8bd24b8539fe8a6f4819e8807a77b76d32ea2505f39e7e70b","impliedFormat":1},{"version":"71c9876308e0d1704e28398fb923e1a7cb11c6d8f5ea5e03bf22124f3fca0db4","signature":"8ecadda0dc824e4c227e7e4c3d557da8ef6308f0d1c04b434c4a8617bd6ace96","impliedFormat":1},{"version":"0d06abaadb8793feab4ce7df1812bc15a51d9c96d11160d758c6dca468c198ac","signature":"39911e268ee4ad5cf8ef9638efd45b129d7205c2965149a06516bf413f22954f","impliedFormat":1},{"version":"010fc82e640de2be4773910aad10687f1d3e2b3147be9016c23584f9c87a811d","signature":"d345254abe13f3ee02494c0a9913b6a00f2438e38402928a7185fcf1763cdca0","impliedFormat":1},{"version":"d82e7e315b510d53995c943de435e4a2297f27eb71b356db98f6fc0e879c2d17","signature":"227b82fdea63ee66b0884be0e557e3c6e8934f563fa4045372153e52cf7e3244","impliedFormat":1},{"version":"3aba68cf8d415786dca42e201ee556c63250c84afdf95212bbe00e59b9c5690a","signature":"453032a19370e52fb6c27dd5c6b1019197fe10521e48ad561fcd24eae99cb644","impliedFormat":1},{"version":"f54ff8634bc70b930ee7a0d257ebffcf0081342acb518105f1d40fbb20175901","signature":"f6e6fb995f69b470a9c1afa9a27e2f5d05ccd089219980f288ed7ec320791574","impliedFormat":1},{"version":"5eb1816742808846ecf5f4f7edef9fa45ee8348e21d3c88926b3fa4b992a6526","signature":"8d32b40dcb6fbdc695f97008f07cc29d2af700ba9feb4ce97e131360ff754f01","impliedFormat":1},{"version":"0f2cbe68bc6f05615c9d8967db748acde79f3276896047add7428339b2310440","signature":"fc9337ca1af6513a02007691446b2166220a090336ffece935085f8f73cfbc6f","impliedFormat":1},{"version":"8b3cb1f3067e8458a02540499090fabe2266cc642e890660d9841d700d93c9fd","signature":"bd9701e2bef291a3b17c19ec464a1d3d77094ea0b069fb2d3f4cdd60d6b521a1","impliedFormat":1},{"version":"3255d54a9bc454d8829179dd1b6ef134a5cddb2efc19f6340aa6b9da1cf90cf5","signature":"15927fe7d27cbe1a68f7b8368083e67d3dc0db81f7b5a85e530c354a61e4265d","impliedFormat":1},{"version":"c8e20db8243d96e628d7a6866bb66d483b1784edcde83f50c9c6fd97899c1c87","signature":"ec1a68c234478fe7be537599d95a6d4d64b6275922d3c6289dc100817217db9b","impliedFormat":1},{"version":"ed4cf8295dfbccca7cdd9935b5d4167efdc621a9f231dbcafd6223dd79fea68b","signature":"e988ac27b3fa680651dac3d5bd840e50dd9922114fb81dd1b1739462f8db2e28","impliedFormat":1},{"version":"943327be83247acb3e832689bef1d5d37208740b306333f59eef4168cbc8798f","signature":"6be613ee4b7b54f790849ef80e9a19c999d8118d22ea0f3d8de36d793a78f0bb","impliedFormat":1},{"version":"d2238d7013bf99c00765783e71faa472b7e57140aa87bef3550633ed78ac28a8","signature":"8ba502e116b14880304ceaa6bb4663da69ccaff41c65d4a08879c2fdf035cfe4","impliedFormat":1},{"version":"380a5d1b9deb42222c2bd886b7166d64e6201d84c6bb1b3c4b80459e496bcee0","signature":"53acffab5c6c3fee0002e69bc5609af4e6b662478010bcd6a00e95d0d0a6892c","impliedFormat":1},{"version":"eae310f81aae25ee1fc625a897f2fe66e3b0d29f53efeafd3b9457863f0a36cc","signature":"40d421e9aac32305cb31ed7bdb3592a032b55e003ad4b97068fe8cc5c3eac5b2","impliedFormat":1},{"version":"7ccbe8153984ce5ae2c71888a50df6c92c202635b8f0f2e6158c825ad9401f97","signature":"5501797d57d65387079902cc5d115d8bc65b17473040bc0dcf6460f12b22068e","impliedFormat":1},{"version":"d878779502704e3b558110fcff07d10ff2575ea6965505498f23d3f20ee63fb4","signature":"fe80702b53b9d43046ed24fc5033a35b804d3ddb8bf44301dcb7ac17de7f4e4f","impliedFormat":1},{"version":"c3562d93b2da2cd1e45061b5bf09f828ea34b14ee9e7d57887bce6dd8935bdd9","signature":"d599ab1af8f016300de16785723357b4b127dbc5fbf30d832ade0047d054febd","impliedFormat":1},{"version":"6fb643c8f5d0586c4b1c46ff88bdeb69984d838f8b2c1e8d0f24811f51aded7c","signature":"6d7ebb82e5bb53c0e2208bb4f51424c658905fc3c86bf28d342a19bf52ec4136","impliedFormat":1},{"version":"3baa7f32c6cc5946fc8ea1015f63c691e99723b638a735cb4ba0f6182cee8699","signature":"1310b51ed749eeb78f7f742d344940b0ce24f319a7180e0fd3327847a2a4562c","impliedFormat":1},{"version":"6ddf1ffc5de3dc80dcb56e7779a7a098967c6ef6aaea0d5afc3855ce2f37188a","signature":"3cb901bf27de01a81119caa7cf3777603e3e81489afbc4350892d813acacff67","impliedFormat":1},{"version":"ec13ea73597d85f99f9be3a8dfc0d8f404f70b1d03f08431a6a1d414e80accaf","signature":"8dd31f4d81919f677312602a23a312fd9d6bf0182bd90cab5fa4cb16cd4b4b78","impliedFormat":1},{"version":"384cc6c23b2636c364e4f011dd42b8c5f9a2b772ec30707c1400811162d07aa1","signature":"f642a2a5705df75ef61f10e3fa9820a88d99cef2866e6b765c6d62f0d2649c6f","impliedFormat":1},{"version":"3fbba2ac08a6a334d823a2651da011bb5681455a697af48e51246006f846f4c6","signature":"46569c65a3f974a2ab980b6c2bb6a8a377b27c2182eaf125f949ee710025b2ac","impliedFormat":1},{"version":"bd4e7d3201f66e6bae3b40e52acf6f868b6632cc07fa51dc4cbb438d26783eaa","signature":"8cdab37f0185964ba5685a7939d9787c947dce8d35fee2fc0ef24d7c0653adcc","impliedFormat":1},{"version":"a951770e0272998b75b6c5330e54af2c19ac86873f651a2427676f782c470f63","signature":"0221880d0155d8359729bf81aa7a013e5ebcd23e1ce04874304bca6277cfd4f2","impliedFormat":1},{"version":"5bbca6a83fb62bc5616439a31cb5d677f7004dbef8a441a340b8b55a28418e6a","signature":"b2dc7c9397054a51dd547b882c0f90b48e7807856c3e237270ed4dd56e9abd18","impliedFormat":1},{"version":"f162d9817f51e043ff0ddf84ecea22cd82b15a04309c9fab7758d5bfcf348d51","signature":"7549ec6d7d2361e8757e40d4cd2847cd267c8da5e7b178f459f52fe830e23245","impliedFormat":1},{"version":"c091bba21ca2ddd95a74edfd2bad18c4688f02420a919c3a0617a3df5f225aac","signature":"5e85826bbf83906d3fb3123015a30a755410cdad30d880c077480e2407c83221","impliedFormat":1},{"version":"5c6b90efa3f091bd8b6fcfebc32fba573480cf9f9a34fd66c01180ce7ec054e7","signature":"2515ec883feb468509cb451350364be3ef196e887673a6f2a5223a63af429307","impliedFormat":1},{"version":"7864ccbafa30a5f4ff2e269a78a98a06b4bb5468ec6f13d90967dcad4c78e7b2","signature":"93f546b489ff99e8e99b8b67f1ddeefbd018cf0ded6d271d8db64ed50e7d789a","impliedFormat":1},{"version":"b17a967db61c5df2309d559cff5ca515bb7201575f38203a0170764ac825dbbe","signature":"0228cfeb398010375aed7945af7751f4f23f7ec80bbc2e5b295382202b84b5d3","impliedFormat":1},{"version":"b92753e98f33fe9389490ab8894a71993c74930c760bbdb72287c1bebe7f76c5","signature":"1452967c07506b672bbc947899929989dfbc4ee0eb576c04f004761301db0191","impliedFormat":1},{"version":"c9415f9fc0b1761688fa5b1157fbdf45d5d28763412f7ddc6073e0cfac8e24cb","signature":"76f4f7587504dda11e4ff89fb7d3584d0759281a15417374811cc83b24fb7717","impliedFormat":1},{"version":"bcd90385168458dd62f9c54bd6187d977b45f785d5ce8b44f08a9fd6232dd4af","signature":"12bc3aebf66d5b439853d8530f9a5d5f8a7cec489302f787f8b2dda549057835","impliedFormat":1},{"version":"7b03814556c6f0d1cf782f599ff65f600839a6c25999317d28bcafecf46d9ee4","signature":"5f616a733bcc801edba19882a38a61c08706409fe49bff7a2fcb74955af2236e","impliedFormat":1},{"version":"85da89f6b669314bb53b8fb1d25e98fd0f91b9c3d2ab8ed8df31faf49f2f940d","signature":"e62263562e081d9510bc72cd93980764bc74b274dbdbfa29c4956ca0892005d0","impliedFormat":1},{"version":"0ee80702c2a2e463d718fa495adaa167a56e0418a2be788f16221be5e7542f82","signature":"04efe4f30480b292e5756731e4d32ab5a3d86de2c27bfe5ca2bbd2281ddf3aad","impliedFormat":1},{"version":"6aa26e775ed2733fecf072aa718d171d294477b6a3ea84221d8ddd3b54d409f1","signature":"bbb0c1c9a0b732c504ccdc310e177903e61053509d83b5a0ae436b44b0325544","impliedFormat":1},{"version":"f5ca7e1bbc082da1006c488b7afb7be84197029628320895b891cf08a4415c84","signature":"26db6df7d026550c7c0e99d97c4bbc971a4c98c595262285f7817cae2529a125","impliedFormat":1},{"version":"a39add3e27b0e1d2dbea95c413bc0ad64d7d8c5d737714fc8e8b876e6e983b3d","signature":"3479fc367adc914c8948ffedd6a27890b2f05eaa7cf90b7fe7d6ba9383b3d934","impliedFormat":1},{"version":"af06232c5883b985372b1d4e51c3ac46d41f663a122308a28408bd9eb3d933b7","signature":"7be75b8e32420cb09e2def96f54218987c3f3945a85131ed5c66ad9b4bc99088","impliedFormat":1},{"version":"0c0d72e2cfe1a531acc4c75cc727bd13602311337c11c2584202c13c1f1f00ce","signature":"be5495aaa434edfcbf226aec4f0d2bb03ac73718a4cd5026f17b14ab1e78d08e","impliedFormat":1},{"version":"5f96727e2ecc5fed0eb27c1fef54a9eccdac93cc2f5ba29f7bc4435682a16e25","signature":"bd223bf60616857f102b0a52eb253e62899b0acba22e4192474d1b0a7644f9ba","impliedFormat":1},{"version":"421f22786006067161288e4d5deb18706170b21cabfd5f8cec67c6f0d3ba63e6","signature":"55522dc0b2adc08827a2e52c7c36c5999602863a24248c15d7daead97539fbcb","impliedFormat":1},{"version":"7ea161fe8ee7fc10457ccb86fc13670c98f2cf25d0f4654081184bbfab78abd4","signature":"306772333f775dd3720035867b3087d806ee4a7d7d1cd68d50d00aac66a41ae7","impliedFormat":1},{"version":"7fb6f043b7c996d3bb7f4e73bb603e3b196fca09d98088a295cd6a90f3ecab15","signature":"f5badc74cb8b64187b22efacf9c4fc0e6504202092162d35c67ee8e3f4e377b3","impliedFormat":1},{"version":"e930fb918466c6b685f2ac7d16d284a82df85acb0660c672eceeafc3b6810e72","signature":"5f3b4e28fef703c99d3a45dba0ded36ebeb6152845ade12720d51bef6ebbb2dd","impliedFormat":1},{"version":"d437b98908ac79ea946dc2d0a5b7bee602c99458010a3555e157d6cfb360872c","signature":"b1e2bfae464fdc41e092c1ed08cbd139f9c974d82848301d232cbab8fb2500ea","impliedFormat":1},{"version":"525b60e7134405f35e1a1e3a10b70c6213197aac0463bc51ea3e12940b9f70d9","signature":"c9ac4af73548c196981d590a4c6374971a0a401ac48785f05f073e96aaf494a8","impliedFormat":1},{"version":"3aeebfc4c6448dd942283b9213c998e3697c9dc8c84d46426eead132a81cce2b","signature":"b96bf9c42b3faf39278f5c7bfb5f8c9463995d714b11ee1a37786a46b991f5ce","impliedFormat":1},{"version":"12766e9d4115802ff0b7d377729eba6411611cf1abfe14a9c31b3e04c867e3f8","signature":"db61e83ab58168231b65adc6921972c952ee427ea56b01522775b751cabcfdda","impliedFormat":1},{"version":"eec6e98d2f8af24558a98a427899233df23b1b64bdf04fd6bc475381735390ce","signature":"b56f079cfea81747280356def3487d4b3b677b07e3be0e77e576d640844b7eaa","impliedFormat":1},{"version":"ffab932f68d30cb030f6fb4f3ec25ae6e50d215eef85d547d1d69e9e4c933338","signature":"730077ad6ec2a3a09641da47738788a91dea637e4d0450e6c3249b1f4ce97b54","impliedFormat":1},{"version":"f8c92d004cc144fe3caef057ab5ca389ae6cad26d6703d7539616808f72f32d2","signature":"a9d82712d34cf76008952ed916a5a178eebc2dfdf380be2bed1ce812daa86be9","impliedFormat":1},{"version":"e86fbf33413db7f893685860858775d30d49c997ff02ca29bfe26e5d818ebecd","signature":"a0302e1d341b4feb884e5da7e674e7f01d10a64281b48a095de71fce61e9c17d","impliedFormat":1},{"version":"db9a26cfeb1b07c85cfb3356d0069c14ef27a9df53ff72edc64a757a60335998","signature":"a31a307765025aac954848a7a52db2fd84185a9edacb6327651ad06a58c42f5b","impliedFormat":1},{"version":"f92312fd95d61b8fc0b308673dd5fd2670087ce894d72bf1aa954fbe0a666392","signature":"f564a0016032509a3498968efdd1aad14eb5204d0187281e95a4c8a5bced8ae5","impliedFormat":1},{"version":"e31f9d6e259f32fd447d231945bb9b24e6fd45985e504ecfb78a9ac2fd0e846c","signature":"2aee7feb3e966651fd63d94a7bb89767cee16702747ed3eeddd71d4f0bc582f4","impliedFormat":1},{"version":"100780c20a636c873fd539801ef89a5333771f8739fc171bd783859ff576d22b","signature":"bcb806153be5b69d01b848da646cd6ea03be13fde74e8d73bf2681fce71f9502","impliedFormat":1},{"version":"aed9eef570891131ed91b0eaa202e1e8d74ff172da19b020e1ea1ec891f8896d","signature":"57badeb7e226a8a9fbab8fac389bf87d88902be7847d856fa2967e88cd0fb9a1","impliedFormat":1},{"version":"93eb756026b0e349cf4df8daebb79e557a48710eb9820754bd42b03c2afe3f9c","signature":"a22a71385552fcad410b1824e225c4634f324c2966d4173948a416713e679269","impliedFormat":1},{"version":"73a0ba9f6cbc3cdd8a9edef9b3001abd88cba3418e08c4690e5cb4fa3c73c3ff","signature":"a441df0dfbe14475de474bbe10a160f47f4c946da5751106cdc9942f34230803","impliedFormat":1},{"version":"8f4fced865158aecbfa67f209fafe7b24bf2f01e10379c7106adf0c8d29afa19","signature":"58a7e06be764f4e35fc908633f2a4cb107eb656c469876da6ac36e0ae9dbb119","impliedFormat":1},{"version":"827f601d7dd80dacd9c603410c4ce394acca365f075fac678d2c999b9fefcc24","signature":"699af4ee6a4aa441d255d943bdce9b7651b7d6749b5eef2932b80398bbd1df3c","impliedFormat":1},{"version":"cde8d559f08a92eee35c3d410d5f656a24de856b3b9082b07de809a85e8490c0","signature":"496e34ffea5dd661318ab0ec55dfe9512295d0bdb50ef3bdc995f1146e066d0c","impliedFormat":1},{"version":"b5cd4da5c136f0191e7f9a4c85766a376fd5e57a7c0541250cabb83fdffacb8c","signature":"8ec6bc0c9e53b6453531a9f13435ccc7a468f5ecae885bb3c500f546e9a4f87d","impliedFormat":1},{"version":"a365e3d1e6424e9e2f330da7f594453c7ee73d8cc363aba87db0139772d9f75a","signature":"d78b8888d0b1b2673aaebc72d829a3ef2ee57cd7446f67b41d62503e638659f5","impliedFormat":1},{"version":"bc9ac04c79bf588811b0ba90f8399b4cdcff1b2c0c5bd8983238898e2a2608f8","signature":"60641f9a36b480fa003de3713f5c4fea1519440a59d28960ceb82dd7ccac2bd2","impliedFormat":1},{"version":"a95aed033ff2490512319ca5b4a3f53768afa36c50e16ae8a7517e720c32d887","signature":"eb00b0774b34b451c41610ec49780bc54dd094f89c3b9e6cc5772cbde51f4bfe","impliedFormat":1},{"version":"f5d5e1064fee7ed2fafca4867092c3181efaa84f59bf3dfa734ae184d196b14c","signature":"d4b2bbfde6731a83441ba3f49334a7cadb335db81dabcb035b0350072c4baf8d","impliedFormat":1},{"version":"d17490924f78d9ee2fd4f1f74b9eb5c1411a99aa91bff0fd53568601e4b50130","signature":"cb2ffe7b698787722b119e9bf8f68fad74ea253b9b74d93107c48d44222947f0","impliedFormat":1},{"version":"731b94fc868216d7b99bc519d4e00f98e2a83dff426d78eff28a22277c495b51","signature":"ce713a5ae115643110b1221afe49cadb6ca7953fe9304264db887dcd669e6d21","impliedFormat":1},{"version":"ab248973c7d3e1a9cf8dbe674adb68440effe06a341ab6a083a19ae904659866","signature":"c0ad8e1d31be0a28cb57472dade15b9c2fba3a888b47b069a0ca913796963c47","impliedFormat":1},{"version":"a439b16a136b6a987ef51eae4c3a1713d67da3b9df6adac5929e75b3c7fdf29d","signature":"6a5b56d9987f51ffc4cb038fb579f8528b28c5e7f2f2e9b21befa8a5591805ae","impliedFormat":1},{"version":"8c8a824578c9e425ee79433c8d972f6a4c8b79a735040f7feb14c5711eeacf8a","signature":"4d017179d7978b2b6aaf64b478da0d6c62966a3fe4658638a03ebc349a4e78b4","impliedFormat":1},{"version":"7e2fa1c8f5f1bc348a7a52838ff3ad1817b72f2fa2457202a0b9e4bddae29882","signature":"af8f4d08f962935d10244ca3e6d9b682df1cbee547f8ae8d315101e30f771d5f","impliedFormat":1},{"version":"214498492265376ca0b1339a24771e320b96fe66103a0fddc1d9ef8bd154464c","signature":"bdae96e97063b45e7f275c5bfec49429de9ebdf24a786ba3334ba9c6af9a70b2","impliedFormat":1},{"version":"9da488981b2c4505f5cefe9c3ac81762dd7f85cb7e1e9295ecf8472f21f15095","signature":"f5cd3d87b3f6bad10699ad817bea882261d051068a0c192c67f180b917d28628","impliedFormat":1},{"version":"73268ab57ac3c99f897886f14480dbceb940aa9f0bc95d244c02eec65e875728","signature":"1cab37f503a8e75f0f0c73c7164ef6d3bf1a1e415a495db1f9ccd3d2d2444e9f","impliedFormat":1},{"version":"25780d4696813e05418520747fee3efae4319d2bd2a7e7f8d348720a6c825971","signature":"755e8405ece57f048801beb13d9558feb900e432946f68cd2a8ae934f3724633","impliedFormat":1},{"version":"cc4e4839df2e2d897eea1072c649735db5ff215466d7e5e6c8ace0c185c19b33","signature":"fd1dd9c76a6f4cb55da9f46c42f3de3f8212bbc8b2919cb67675108facbc0e83","impliedFormat":1},{"version":"3b0840c5b63760ffd8f6be9c752b18376383891a4a2fa06700034b77b6c13159","signature":"637e670983580dfad31458f2867ff4577cf248ee0878ef7495ca2d867fa583a4","impliedFormat":1},{"version":"756ca576c00e1e5390ea4390c674a01ace750dd85243b0fbc077c6537eb00e15","signature":"cee4dae6bae463ca673a89ea813535889fd0b1caf6020010ac773b83ad142a6a","impliedFormat":1},{"version":"58e304115caef4222192006e82eb64032222149860a5dee4150ab244c5699a3e","signature":"50f6b422cb16eaf8f54c15cf87439df77147bf94ab960017ca9841642c3d8f8b","impliedFormat":1},{"version":"84ecda287df1463118bd4f19455087ece95d2c185761d3e4298cbaee9288a971","signature":"a2e798405368dcb52c19ebf8298e9acdc7c72f9f8c31200334c70491619dfb8f","impliedFormat":1},{"version":"bba75416016f973bbea79ab6d722916849fb379a589e568b4748f772683822cc","signature":"51ca3c7b8f768682b9f694188907924fcbc545ee54e35af7d3f87274305a0463","impliedFormat":1},{"version":"e7a7333df45adca162e864530734ef7e2069badc3544c6c11e937ad54515c9e4","signature":"155e741cd1a01004b3324d13e748b229a59ebcf9813449ecf7f9dda6becc458c","impliedFormat":1},{"version":"bd5e57c54aa27ee657af541a25e1eb65ffc2adb426172c206d49406c46d03344","signature":"188e02a3a91dfcaa75827ffd64d47911954c1dd56929d8f50af3e9d4598185bb","impliedFormat":1},{"version":"da18aff05d559c120bc39d8b03b7bfc72414b16eafa84cf53e4ccffdd907d6ba","signature":"8437c81888b3451be82d15a2442bd99a2c3e889eee271d87f8a8497a51fa2251","impliedFormat":1},{"version":"60180517dbf12f8b115084d7daeeee92b5d5ed353c4e30213031c41945c5f377","signature":"fc6c05566121670cb7ff1a32f01a958d66c7e97e5437fe3ada7f4c9c164937be","impliedFormat":1},{"version":"f44c6d99760c24f13687f337164307bcbf9cc4b8d448718c51796f7db5eeb846","signature":"954be0720545c276a4eee88cdfb4606b01d2669df9a8d62c5055a7c88ddd1769","impliedFormat":1},{"version":"9de13845bba5021bfbfb954a202112cb526934f950934a0dff56c57112c6034e","signature":"d4bd695956511f30fc5e0babdc7d5561219ca4a88a68d484e4cdda0dce5b3e89","impliedFormat":1},{"version":"f2504dd35a7261a3873ddd286a7e8ef398a247087d26280a44a95fc3fa65d4ad","signature":"8c648f56eb0de5caf86a3e67620954b49855e2e8df985713f05626049e787975","impliedFormat":1},{"version":"0bf65c77a9bfb29257fe1d220c43f9d9057e1f5f3ba0bff23eb89a714ca5ef9c","signature":"fd4cdf4982135d9b5b57432e475f31b848631e934000cc1026bc84fc452dbc96","impliedFormat":1},{"version":"8c57dfcfd430aa0ca2415820a5e165c47877cbac3d1670d14e0808bf06ff5158","signature":"c5fc45a7eb8d49810ead18cd07f1b3cb2fb94eae7521d16eec1d2fcf6c7d0188","impliedFormat":1},{"version":"cd62c5362dc96b5e39781404664564c837f4477e95adde68a547296b211f076d","signature":"2e029effdc827733ade1656e717b781ccec4303c5de9d5e661776a1162c3eea1","impliedFormat":1},{"version":"368e67f80711f03e8b48abed12b8ceb56cbf2b3d045e38f4cbf641d68d1fc14a","signature":"31e9fccf7fd4543567da704e57ff6659d1f84ec6afcd2d9f36ebc2580be81f31","impliedFormat":1},{"version":"c3497b052d2ed3303b5744a2376359ae600c67457c4e5a6aac53b0d555166a69","signature":"de2aba45f1b17904d830635c900e02753db48747b090f84436ac8b7d0adc0196","impliedFormat":1},{"version":"c1074e15005b2da72683cb69d714522f2e4e1817fe46fe0145932c0f4f23fd6b","signature":"8eaeabc8ab8344d3fff2f39076d6a05c00b9e17cdd1c62b679babc24ae1f5b07","impliedFormat":1},{"version":"8fe344a22b3b6c6b2865c4c76f0e62d5e6c0682374a865a4964f97288d001774","signature":"6c9e6f785178feb4221e2b9a10fd5a06578b1c3e3b498ad3b1aaf6ca99f0aff3","impliedFormat":1},{"version":"61f06168ad7c10e436a9879e0c2fc41b55bc9d7aab135df7f29cbfcc3f33ea1f","signature":"0db5e69a61f8fcbf4567cbfcbc4305ae419ed8f039e4cc3b1b3ae33b0fd2f902","impliedFormat":1},{"version":"ae9b39e941d5788013b0c10d1959c8b60790ed2ae8ab1a58971108849d3c296b","signature":"f6545b03ee4cd729491aba2596356395cea14ba1c320231c59be5e6ccf2b652f","impliedFormat":1},{"version":"34bf110ea1a2594015bcd068b694736ad2632169dc6f76c85f7ef92a1116dc53","signature":"b0430042a84e6d73992a37a9350e16cff1c1945ea36e336750007537ee04dbb7","impliedFormat":1},{"version":"83cf26390572da2604e340f75515e87638c13cf30ae226b197337f5d6da6c84f","signature":"b7f72a3de723e5d51f4ac7201fef78195451024cdb66964787a9fbf0466c6315","impliedFormat":1},{"version":"b23d8f143e23c1ab8168a2d9ea4b14656f898c2fd9b44ca9bc60ab993676e55e","signature":"3498cbf5c7c673f716edabf08ade32ac2dd43bee57a2befa957b706eee6de0a7","impliedFormat":1},{"version":"7aeef5dccc13eb24b64a19e926d82c3254ef6bf9fd31ece5ba090c10f31b6c1c","signature":"6aafc362282da8b84bb60acc30f8176570f9f0064df20d9b595afc1f9268158a","impliedFormat":1},{"version":"4b595daf09ac1d1014b160744e0b9b5220da9629ccfde76ec7cc630df40ece7e","signature":"90a0adc38a0eb622bf9793e77854f25a87505f36a6d5260675d07f74e0ffadfe","impliedFormat":1},{"version":"2215eda8273175033a197fb40f4bef18bf0835b2bd21afc5dad987766ffa7b30","signature":"bb3d28a2c9c4fb68d3d791399a636402812359003af3f3296cb660cc74ea6aaf","impliedFormat":1},{"version":"fb7a4da2db2a303063f7ac3546ea4258a3149eae630456d6b59d676ee067b756","signature":"e43de8a1bf291d1b46726930f2b4ec38bed6c62537b7fdb4a8b4ba0c5e7fc773","impliedFormat":1},{"version":"38c9c3e23302b1cbf39910e7e64d0350d07863ebe7ae4649d1d12f4a31233374","signature":"2d73f73759950c86cdfbbed71a77ec38b4fbaed8654d0737134d8093bdf5df55","impliedFormat":1},{"version":"6e0d9749873335e94d8515dcb6d270520ac70b658ddde4b56ac9a2d96326c323","signature":"add03de3eff1d0a8a7e9e21e7bfacb04a992f2a31da8c542fe3eacac696d3211","impliedFormat":1},{"version":"a25d4a8da8481819b1c11fae6d20d2855e2991975755956fff960db352ab3e9a","signature":"261b8747895f693ace72b7cb062bbc184b86e05ec13882e69d8a6f7d9a6edf57","impliedFormat":1},{"version":"a5a63c2a5bf2eeabd5d23c6751181b5dda986b0c28c4d4a17310ad8105e5d33e","signature":"36ea7994dafff5cead70639ca546317539a45944da7f49f8d023a429d49729c9","impliedFormat":1},{"version":"fec6c50fa29c6dc7a94f5f6ac0b05bb60bc6572196d674db5d03dae7e3d3610e","signature":"bab6e213e1175b67fcffa436e6a3766cc6f9ad101dcc022e96f98628d0da131c","impliedFormat":1},{"version":"5db713b3337642dce52cab033fb88be66c8feb01dc21faf4f284c7e81b8dea99","signature":"871fe746e2a58f1d4306bdab7222389f16c0184deb63f5067bb5d169e0d069f7","impliedFormat":1},{"version":"7d3ccdf70542f428dc72f09b17699e9a5b8a84bffcb28e42b52a5f01fb176477","signature":"5bb50c1420c5712d39023aa7d7efb2b8a1904e7263501e1b6fb9ab871cf720c9","impliedFormat":1},{"version":"b9a023b8da62010b3579c4f3e1f8ff7ffe3dc972afd2e852d915b8109b5c29b9","signature":"378d9a86c701e51eeca1f0a88e09517de004f6138e898723ee2a17cd4cb408aa","impliedFormat":1},{"version":"13629d807a8a1f320b707a3e526229e70fd50679225109764b0f7640c24a2415","signature":"94fbee11bbbdc187ebcef30e46478f0e8ae650cebf0814e81de2044dd1aba003","impliedFormat":1},{"version":"11a6b9c896f603da6151fe28d2c42869c485bc0ab9ce0009efbbf7cd4b8e5e76","signature":"e93619365f9431682f577a2a7a279fcaeef8628556f83fa16197fee1db9f09fa","impliedFormat":1},{"version":"132a64605f6027183747975dd74cafeca5293ad31ca23b5c7f9a594161d777c6","signature":"ab4bb8989a328d754cdb62a18a442f566a388cf7abb5aed52659548f4b1edbfd","impliedFormat":1},{"version":"55437b19e1cb0a38682e336d6823fc654ccc837935bf144358f9b9dfdae7c416","signature":"b47e1df001511f64e6be17889b40f3bc39c2eb7acba80db2334aa17e2b78c803","impliedFormat":1},{"version":"2b6453394d3b76498993d1b67aa221ed8529edecc31f4e57865efa767786baee","signature":"a45e89e030400369b97bcceb5e54ec4890bda1ba276a75a9624a6fd882ddb2ce","impliedFormat":1},{"version":"785b9d575b49124ce01b46f5b9402157c7611e6532effa562ac6aebec0074dfc","impliedFormat":1},{"version":"f3d8c757e148ad968f0d98697987db363070abada5f503da3c06aefd9d4248c1","impliedFormat":1}],"root":[60,[125,731]],"options":{"allowJs":true,"allowUnreachableCode":false,"allowUnusedLabels":false,"checkJs":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"exactOptionalPropertyTypes":true,"jsx":4,"module":100,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noImplicitReturns":true,"noPropertyAccessFromIndexSignature":true,"noUncheckedIndexedAccess":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"target":7,"useUnknownInCatchVariables":true},"referencedMap":[[118,1],[121,2],[119,2],[115,1],[122,3],[123,4],[120,2],[116,5],[117,6],[111,7],[65,8],[67,9],[66,10],[110,11],[114,12],[68,8],[108,13],[64,14],[113,15],[62,16],[124,17],[70,18],[71,18],[72,18],[73,18],[74,18],[75,18],[76,18],[77,18],[78,18],[79,18],[81,18],[80,18],[82,18],[83,18],[84,18],[107,19],[85,18],[86,18],[87,18],[88,18],[89,18],[90,18],[91,18],[92,18],[93,18],[94,18],[95,18],[96,18],[97,18],[98,18],[99,18],[100,18],[101,18],[102,18],[103,18],[104,18],[105,18],[106,18],[205,20],[445,21],[446,22],[453,23],[454,24],[456,22],[457,21],[458,25],[459,21],[460,25],[462,26],[464,26],[465,26],[466,26],[467,26],[468,26],[469,21],[470,26],[471,27],[472,27],[474,26],[473,26],[475,27],[476,26],[478,26],[479,28],[480,27],[481,26],[482,27],[483,21],[484,22],[485,27],[486,27],[487,27],[488,26],[489,21],[490,26],[492,27],[493,22],[494,27],[495,27],[496,29],[497,26],[498,27],[499,21],[500,21],[502,27],[503,27],[504,27],[505,21],[506,27],[507,27],[508,22],[509,29],[510,27],[511,27],[512,21],[513,27],[515,27],[516,22],[517,27],[518,22],[519,26],[520,27],[521,29],[522,27],[523,27],[525,21],[526,21],[528,22],[529,26],[530,27],[531,27],[533,21],[534,21],[535,27],[536,27],[537,27],[538,27],[539,27],[540,27],[541,27],[542,27],[543,27],[544,27],[545,21],[546,21],[548,21],[549,26],[550,21],[551,21],[552,27],[553,21],[554,25],[628,26],[629,26],[630,26],[555,27],[556,25],[557,21],[558,21],[559,21],[560,21],[561,21],[562,21],[563,21],[564,21],[565,21],[566,21],[567,21],[568,21],[569,26],[570,21],[571,21],[572,21],[573,21],[574,27],[575,21],[576,27],[577,21],[578,27],[579,27],[580,27],[581,27],[582,27],[583,21],[584,27],[585,26],[586,27],[587,27],[588,27],[589,29],[590,21],[591,27],[592,26],[593,27],[594,27],[595,21],[596,26],[597,22],[598,26],[599,21],[600,27],[601,29],[602,27],[603,27],[604,26],[605,26],[606,26],[607,26],[608,27],[609,21],[610,21],[611,21],[632,26],[633,26],[634,26],[635,21],[636,26],[637,27],[638,27],[639,27],[640,26],[641,26],[642,21],[643,21],[644,21],[612,21],[613,21],[614,21],[615,21],[616,21],[617,21],[618,21],[619,21],[620,21],[621,21],[622,21],[623,28],[624,21],[625,21],[626,21],[646,27],[647,21],[649,21],[648,22],[651,21],[652,30],[653,21],[659,26],[660,26],[661,27],[662,26],[663,26],[664,26],[665,26],[666,26],[667,26],[655,26],[656,27],[657,27],[669,31],[671,28],[672,26],[673,21],[675,21],[676,21],[677,22],[678,25],[680,21],[682,27],[683,27],[685,27],[686,22],[687,27],[688,27],[689,22],[690,21],[692,21],[693,27],[694,21],[695,26],[696,27],[697,22],[698,26],[699,27],[700,32],[701,26],[703,21],[704,27],[705,21],[707,26],[708,21],[709,27],[710,21],[711,21],[713,27],[714,21],[716,21],[717,21],[718,22],[720,33],[199,34],[724,35],[198,36],[197,37],[723,38],[201,39],[195,40],[203,41],[210,42],[193,43],[130,44],[204,45],[196,46],[448,47],[449,47],[450,47],[452,48],[451,47],[208,49],[209,50],[128,1],[211,51],[212,51],[213,52],[214,52],[215,51],[216,52],[217,51],[218,51],[219,51],[220,51],[221,51],[222,51],[223,51],[224,53],[225,51],[226,51],[227,51],[228,51],[229,51],[230,51],[231,52],[232,51],[233,51],[234,51],[235,54],[236,53],[237,55],[238,51],[239,52],[240,52],[241,51],[242,51],[243,51],[244,51],[245,53],[246,51],[247,51],[248,51],[249,52],[250,51],[251,51],[252,51],[253,51],[254,51],[255,51],[256,51],[257,51],[258,51],[259,51],[260,51],[261,51],[262,51],[263,51],[264,51],[265,51],[266,51],[267,51],[268,51],[269,51],[270,51],[271,52],[272,53],[273,56],[274,51],[275,53],[276,51],[277,51],[278,52],[279,52],[280,56],[281,51],[282,52],[283,51],[284,51],[285,51],[286,51],[287,53],[288,52],[289,53],[290,52],[291,54],[292,51],[293,52],[294,51],[295,52],[296,55],[297,55],[298,53],[299,52],[300,53],[301,57],[302,52],[303,52],[304,53],[305,52],[306,56],[307,51],[308,51],[309,57],[310,51],[311,51],[312,52],[313,53],[314,53],[315,53],[316,55],[317,53],[318,53],[319,53],[320,53],[321,51],[322,51],[323,52],[324,51],[325,55],[326,55],[327,55],[328,53],[329,51],[330,53],[331,51],[332,52],[333,51],[334,53],[335,52],[336,52],[337,52],[338,52],[339,51],[340,51],[341,52],[342,51],[343,51],[344,52],[345,51],[346,53],[347,51],[348,51],[349,51],[350,52],[351,51],[352,52],[353,51],[354,51],[355,52],[356,56],[357,52],[358,51],[359,52],[360,52],[361,54],[362,55],[443,58],[363,53],[364,56],[365,53],[366,53],[367,55],[368,52],[369,55],[370,53],[371,51],[372,51],[373,51],[374,52],[375,53],[376,52],[377,52],[378,51],[379,51],[380,52],[381,51],[382,51],[383,51],[384,51],[385,52],[386,51],[387,51],[388,53],[389,51],[390,51],[391,51],[392,55],[393,59],[394,51],[395,51],[396,51],[397,51],[398,53],[399,52],[400,52],[401,51],[402,51],[403,52],[404,51],[405,51],[406,51],[407,53],[408,52],[409,51],[410,51],[411,52],[412,51],[413,51],[414,51],[415,51],[416,51],[417,51],[418,51],[419,51],[420,51],[421,51],[422,51],[423,51],[424,51],[425,51],[426,51],[427,51],[428,51],[429,57],[430,51],[431,51],[432,53],[433,51],[434,51],[435,51],[436,51],[437,51],[438,51],[439,51],[440,51],[441,52],[442,51],[125,39],[126,39],[127,39],[134,60],[135,60],[136,39],[138,61],[139,56],[140,62],[141,56],[143,54],[144,56],[152,63],[145,64],[191,65],[153,66],[155,67],[156,56],[157,64],[158,39],[148,68],[159,60],[160,56],[161,69],[162,61],[163,70],[164,71],[165,72],[166,63],[167,73],[168,74],[172,75],[175,76],[173,77],[177,78],[174,79],[176,39],[154,80],[151,66],[147,81],[178,60],[179,54],[180,54],[181,39],[182,39],[183,64],[171,82],[184,63],[149,54],[146,56],[185,39],[150,60],[186,60],[187,39],[188,60],[190,83],[189,64],[447,84],[455,85],[461,86],[463,87],[477,88],[491,89],[501,90],[514,91],[524,92],[527,93],[532,94],[547,95],[726,96],[627,97],[631,98],[645,99],[650,100],[654,101],[658,102],[668,103],[670,104],[674,105],[679,106],[681,107],[722,108],[684,109],[691,110],[702,111],[706,112],[712,113],[715,114],[719,115],[721,116],[727,39],[728,39],[132,117],[142,118],[730,119],[729,120],[133,121],[170,122]],"version":"5.8.3"} \ No newline at end of file