mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 12:37:46 +00:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b9629abe33 | ||
|
|
f306faa1ff | ||
|
|
e5abca0f3c | ||
|
|
78acc1880a | ||
|
|
a31aae3cd8 | ||
|
|
bc64130459 | ||
|
|
b553c6204c |
478
.speakeasy/gen.lock
Executable file
478
.speakeasy/gen.lock
Executable file
@@ -0,0 +1,478 @@
|
|||||||
|
lockVersion: 2.0.0
|
||||||
|
id: 16f22cbf-f23f-4419-8924-3a4b06381947
|
||||||
|
management:
|
||||||
|
docChecksum: 34d22936f2456c2c461abdfc773e3fc4
|
||||||
|
docVersion: 0.0.3
|
||||||
|
speakeasyVersion: internal
|
||||||
|
generationVersion: 2.230.1
|
||||||
|
releaseVersion: 0.3.2
|
||||||
|
configChecksum: 86f0aaf69f4406cb299c83cad9dc94fe
|
||||||
|
repoURL: https://github.com/LukeHagar/plexjs.git
|
||||||
|
repoSubDirectory: .
|
||||||
|
installationURL: https://github.com/LukeHagar/plexjs
|
||||||
|
published: true
|
||||||
|
features:
|
||||||
|
typescript:
|
||||||
|
core: 3.4.3
|
||||||
|
flattening: 2.81.1
|
||||||
|
globalSecurity: 2.82.2
|
||||||
|
globalServerURLs: 2.82.1
|
||||||
|
nameOverrides: 2.81.1
|
||||||
|
generatedFiles:
|
||||||
|
- src/sdk/server.ts
|
||||||
|
- src/sdk/media.ts
|
||||||
|
- src/sdk/activities.ts
|
||||||
|
- src/sdk/butler.ts
|
||||||
|
- src/sdk/hubs.ts
|
||||||
|
- src/sdk/search.ts
|
||||||
|
- src/sdk/library.ts
|
||||||
|
- src/sdk/log.ts
|
||||||
|
- src/sdk/playlists.ts
|
||||||
|
- src/sdk/security.ts
|
||||||
|
- src/sdk/sessions.ts
|
||||||
|
- src/sdk/updater.ts
|
||||||
|
- src/sdk/video.ts
|
||||||
|
- src/sdk/sdk.ts
|
||||||
|
- .eslintrc.js
|
||||||
|
- .npmignore
|
||||||
|
- package-lock.json
|
||||||
|
- package.json
|
||||||
|
- src/index.ts
|
||||||
|
- src/lib/base64.ts
|
||||||
|
- src/lib/config.ts
|
||||||
|
- src/lib/encodings.ts
|
||||||
|
- src/lib/http.ts
|
||||||
|
- src/lib/retries.ts
|
||||||
|
- src/lib/sdks.ts
|
||||||
|
- src/lib/security.ts
|
||||||
|
- src/lib/url.ts
|
||||||
|
- src/sdk/index.ts
|
||||||
|
- src/models/errors/sdkerror.ts
|
||||||
|
- src/types/blobs.ts
|
||||||
|
- src/types/decimal.ts
|
||||||
|
- src/types/index.ts
|
||||||
|
- src/types/operations.ts
|
||||||
|
- src/types/rfcdate.ts
|
||||||
|
- tsconfig.json
|
||||||
|
- src/models/operations/getservercapabilities.ts
|
||||||
|
- src/models/operations/getserverpreferences.ts
|
||||||
|
- src/models/operations/getavailableclients.ts
|
||||||
|
- src/models/operations/getdevices.ts
|
||||||
|
- src/models/operations/getserveridentity.ts
|
||||||
|
- src/models/operations/getmyplexaccount.ts
|
||||||
|
- src/models/operations/getresizedphoto.ts
|
||||||
|
- src/models/operations/getserverlist.ts
|
||||||
|
- src/models/operations/markplayed.ts
|
||||||
|
- src/models/operations/markunplayed.ts
|
||||||
|
- src/models/operations/updateplayprogress.ts
|
||||||
|
- src/models/operations/getserveractivities.ts
|
||||||
|
- src/models/operations/cancelserveractivities.ts
|
||||||
|
- src/models/operations/getbutlertasks.ts
|
||||||
|
- src/models/operations/startalltasks.ts
|
||||||
|
- src/models/operations/stopalltasks.ts
|
||||||
|
- src/models/operations/starttask.ts
|
||||||
|
- src/models/operations/stoptask.ts
|
||||||
|
- src/models/operations/getglobalhubs.ts
|
||||||
|
- src/models/operations/getlibraryhubs.ts
|
||||||
|
- src/models/operations/performsearch.ts
|
||||||
|
- src/models/operations/performvoicesearch.ts
|
||||||
|
- src/models/operations/getsearchresults.ts
|
||||||
|
- src/models/operations/getfilehash.ts
|
||||||
|
- src/models/operations/getrecentlyadded.ts
|
||||||
|
- src/models/operations/getlibraries.ts
|
||||||
|
- src/models/operations/getlibrary.ts
|
||||||
|
- src/models/operations/deletelibrary.ts
|
||||||
|
- src/models/operations/getlibraryitems.ts
|
||||||
|
- src/models/operations/refreshlibrary.ts
|
||||||
|
- src/models/operations/getlatestlibraryitems.ts
|
||||||
|
- src/models/operations/getcommonlibraryitems.ts
|
||||||
|
- src/models/operations/getmetadata.ts
|
||||||
|
- src/models/operations/getmetadatachildren.ts
|
||||||
|
- src/models/operations/getondeck.ts
|
||||||
|
- src/models/operations/logline.ts
|
||||||
|
- src/models/operations/logmultiline.ts
|
||||||
|
- src/models/operations/enablepapertrail.ts
|
||||||
|
- src/models/operations/createplaylist.ts
|
||||||
|
- src/models/operations/getplaylists.ts
|
||||||
|
- src/models/operations/getplaylist.ts
|
||||||
|
- src/models/operations/deleteplaylist.ts
|
||||||
|
- src/models/operations/updateplaylist.ts
|
||||||
|
- src/models/operations/getplaylistcontents.ts
|
||||||
|
- src/models/operations/clearplaylistcontents.ts
|
||||||
|
- src/models/operations/addplaylistcontents.ts
|
||||||
|
- src/models/operations/uploadplaylist.ts
|
||||||
|
- src/models/operations/gettransienttoken.ts
|
||||||
|
- src/models/operations/getsourceconnectioninformation.ts
|
||||||
|
- src/models/operations/getsessions.ts
|
||||||
|
- src/models/operations/getsessionhistory.ts
|
||||||
|
- src/models/operations/gettranscodesessions.ts
|
||||||
|
- src/models/operations/stoptranscodesession.ts
|
||||||
|
- src/models/operations/getupdatestatus.ts
|
||||||
|
- src/models/operations/checkforupdates.ts
|
||||||
|
- src/models/operations/applyupdates.ts
|
||||||
|
- src/models/operations/startuniversaltranscode.ts
|
||||||
|
- src/models/operations/gettimeline.ts
|
||||||
|
- src/models/errors/getservercapabilities.ts
|
||||||
|
- src/models/errors/getserverpreferences.ts
|
||||||
|
- src/models/errors/getavailableclients.ts
|
||||||
|
- src/models/errors/getdevices.ts
|
||||||
|
- src/models/errors/getserveridentity.ts
|
||||||
|
- src/models/errors/getmyplexaccount.ts
|
||||||
|
- src/models/errors/getresizedphoto.ts
|
||||||
|
- src/models/errors/getserverlist.ts
|
||||||
|
- src/models/errors/markplayed.ts
|
||||||
|
- src/models/errors/markunplayed.ts
|
||||||
|
- src/models/errors/updateplayprogress.ts
|
||||||
|
- src/models/errors/getserveractivities.ts
|
||||||
|
- src/models/errors/cancelserveractivities.ts
|
||||||
|
- src/models/errors/getbutlertasks.ts
|
||||||
|
- src/models/errors/startalltasks.ts
|
||||||
|
- src/models/errors/stopalltasks.ts
|
||||||
|
- src/models/errors/starttask.ts
|
||||||
|
- src/models/errors/stoptask.ts
|
||||||
|
- src/models/errors/getglobalhubs.ts
|
||||||
|
- src/models/errors/getlibraryhubs.ts
|
||||||
|
- src/models/errors/performsearch.ts
|
||||||
|
- src/models/errors/performvoicesearch.ts
|
||||||
|
- src/models/errors/getsearchresults.ts
|
||||||
|
- src/models/errors/getfilehash.ts
|
||||||
|
- src/models/errors/getrecentlyadded.ts
|
||||||
|
- src/models/errors/getlibraries.ts
|
||||||
|
- src/models/errors/getlibrary.ts
|
||||||
|
- src/models/errors/deletelibrary.ts
|
||||||
|
- src/models/errors/getlibraryitems.ts
|
||||||
|
- src/models/errors/refreshlibrary.ts
|
||||||
|
- src/models/errors/getlatestlibraryitems.ts
|
||||||
|
- src/models/errors/getcommonlibraryitems.ts
|
||||||
|
- src/models/errors/getmetadata.ts
|
||||||
|
- src/models/errors/getmetadatachildren.ts
|
||||||
|
- src/models/errors/getondeck.ts
|
||||||
|
- src/models/errors/logline.ts
|
||||||
|
- src/models/errors/logmultiline.ts
|
||||||
|
- src/models/errors/enablepapertrail.ts
|
||||||
|
- src/models/errors/createplaylist.ts
|
||||||
|
- src/models/errors/getplaylists.ts
|
||||||
|
- src/models/errors/getplaylist.ts
|
||||||
|
- src/models/errors/deleteplaylist.ts
|
||||||
|
- src/models/errors/updateplaylist.ts
|
||||||
|
- src/models/errors/getplaylistcontents.ts
|
||||||
|
- src/models/errors/clearplaylistcontents.ts
|
||||||
|
- src/models/errors/addplaylistcontents.ts
|
||||||
|
- src/models/errors/uploadplaylist.ts
|
||||||
|
- src/models/errors/gettransienttoken.ts
|
||||||
|
- src/models/errors/getsourceconnectioninformation.ts
|
||||||
|
- src/models/errors/getsessions.ts
|
||||||
|
- src/models/errors/getsessionhistory.ts
|
||||||
|
- src/models/errors/gettranscodesessions.ts
|
||||||
|
- src/models/errors/stoptranscodesession.ts
|
||||||
|
- src/models/errors/getupdatestatus.ts
|
||||||
|
- src/models/errors/checkforupdates.ts
|
||||||
|
- src/models/errors/applyupdates.ts
|
||||||
|
- src/models/errors/startuniversaltranscode.ts
|
||||||
|
- src/models/errors/gettimeline.ts
|
||||||
|
- src/models/components/security.ts
|
||||||
|
- src/models/errors/index.ts
|
||||||
|
- src/models/operations/index.ts
|
||||||
|
- src/models/components/index.ts
|
||||||
|
- docs/models/operations/directory.md
|
||||||
|
- docs/models/operations/mediacontainer.md
|
||||||
|
- docs/models/operations/getservercapabilitiesresponsebody.md
|
||||||
|
- docs/models/operations/getservercapabilitiesresponse.md
|
||||||
|
- docs/models/operations/getserverpreferencesresponse.md
|
||||||
|
- docs/models/operations/server.md
|
||||||
|
- docs/models/operations/getavailableclientsmediacontainer.md
|
||||||
|
- docs/models/operations/responsebody.md
|
||||||
|
- docs/models/operations/getavailableclientsresponse.md
|
||||||
|
- docs/models/operations/device.md
|
||||||
|
- docs/models/operations/getdevicesmediacontainer.md
|
||||||
|
- docs/models/operations/getdevicesresponsebody.md
|
||||||
|
- docs/models/operations/getdevicesresponse.md
|
||||||
|
- docs/models/operations/getserveridentitymediacontainer.md
|
||||||
|
- docs/models/operations/getserveridentityresponsebody.md
|
||||||
|
- docs/models/operations/getserveridentityresponse.md
|
||||||
|
- docs/models/operations/myplex.md
|
||||||
|
- docs/models/operations/getmyplexaccountresponsebody.md
|
||||||
|
- docs/models/operations/getmyplexaccountresponse.md
|
||||||
|
- docs/models/operations/minsize.md
|
||||||
|
- docs/models/operations/upscale.md
|
||||||
|
- docs/models/operations/getresizedphotorequest.md
|
||||||
|
- docs/models/operations/getresizedphotoresponse.md
|
||||||
|
- docs/models/operations/getserverlistserver.md
|
||||||
|
- docs/models/operations/getserverlistmediacontainer.md
|
||||||
|
- docs/models/operations/getserverlistresponsebody.md
|
||||||
|
- docs/models/operations/getserverlistresponse.md
|
||||||
|
- docs/models/operations/markplayedrequest.md
|
||||||
|
- docs/models/operations/markplayedresponse.md
|
||||||
|
- docs/models/operations/markunplayedrequest.md
|
||||||
|
- docs/models/operations/markunplayedresponse.md
|
||||||
|
- docs/models/operations/updateplayprogressrequest.md
|
||||||
|
- docs/models/operations/updateplayprogressresponse.md
|
||||||
|
- docs/models/operations/context.md
|
||||||
|
- docs/models/operations/activity.md
|
||||||
|
- docs/models/operations/getserveractivitiesmediacontainer.md
|
||||||
|
- docs/models/operations/getserveractivitiesresponsebody.md
|
||||||
|
- docs/models/operations/getserveractivitiesresponse.md
|
||||||
|
- docs/models/operations/cancelserveractivitiesrequest.md
|
||||||
|
- docs/models/operations/cancelserveractivitiesresponse.md
|
||||||
|
- docs/models/operations/butlertask.md
|
||||||
|
- docs/models/operations/butlertasks.md
|
||||||
|
- docs/models/operations/getbutlertasksresponsebody.md
|
||||||
|
- docs/models/operations/getbutlertasksresponse.md
|
||||||
|
- docs/models/operations/startalltasksresponse.md
|
||||||
|
- docs/models/operations/stopalltasksresponse.md
|
||||||
|
- docs/models/operations/taskname.md
|
||||||
|
- docs/models/operations/starttaskrequest.md
|
||||||
|
- docs/models/operations/starttaskresponse.md
|
||||||
|
- docs/models/operations/pathparamtaskname.md
|
||||||
|
- docs/models/operations/stoptaskrequest.md
|
||||||
|
- docs/models/operations/stoptaskresponse.md
|
||||||
|
- docs/models/operations/onlytransient.md
|
||||||
|
- docs/models/operations/getglobalhubsrequest.md
|
||||||
|
- docs/models/operations/getglobalhubsresponse.md
|
||||||
|
- docs/models/operations/queryparamonlytransient.md
|
||||||
|
- docs/models/operations/getlibraryhubsrequest.md
|
||||||
|
- docs/models/operations/getlibraryhubsresponse.md
|
||||||
|
- docs/models/operations/performsearchrequest.md
|
||||||
|
- docs/models/operations/performsearchresponse.md
|
||||||
|
- docs/models/operations/performvoicesearchrequest.md
|
||||||
|
- docs/models/operations/performvoicesearchresponse.md
|
||||||
|
- docs/models/operations/getsearchresultsrequest.md
|
||||||
|
- docs/models/operations/getsearchresultspart.md
|
||||||
|
- docs/models/operations/getsearchresultsmedia.md
|
||||||
|
- docs/models/operations/getsearchresultsgenre.md
|
||||||
|
- docs/models/operations/getsearchresultsdirector.md
|
||||||
|
- docs/models/operations/getsearchresultswriter.md
|
||||||
|
- docs/models/operations/getsearchresultscountry.md
|
||||||
|
- docs/models/operations/getsearchresultsrole.md
|
||||||
|
- docs/models/operations/getsearchresultsmetadata.md
|
||||||
|
- docs/models/operations/provider.md
|
||||||
|
- docs/models/operations/getsearchresultsmediacontainer.md
|
||||||
|
- docs/models/operations/getsearchresultsresponsebody.md
|
||||||
|
- docs/models/operations/getsearchresultsresponse.md
|
||||||
|
- docs/models/operations/getfilehashrequest.md
|
||||||
|
- docs/models/operations/getfilehashresponse.md
|
||||||
|
- docs/models/operations/part.md
|
||||||
|
- docs/models/operations/media.md
|
||||||
|
- docs/models/operations/genre.md
|
||||||
|
- docs/models/operations/director.md
|
||||||
|
- docs/models/operations/writer.md
|
||||||
|
- docs/models/operations/country.md
|
||||||
|
- docs/models/operations/role.md
|
||||||
|
- docs/models/operations/metadata.md
|
||||||
|
- docs/models/operations/getrecentlyaddedmediacontainer.md
|
||||||
|
- docs/models/operations/getrecentlyaddedresponsebody.md
|
||||||
|
- docs/models/operations/getrecentlyaddedresponse.md
|
||||||
|
- docs/models/operations/getlibrariesresponse.md
|
||||||
|
- docs/models/operations/includedetails.md
|
||||||
|
- docs/models/operations/getlibraryrequest.md
|
||||||
|
- docs/models/operations/getlibraryresponse.md
|
||||||
|
- docs/models/operations/deletelibraryrequest.md
|
||||||
|
- docs/models/operations/deletelibraryresponse.md
|
||||||
|
- docs/models/operations/getlibraryitemsrequest.md
|
||||||
|
- docs/models/operations/getlibraryitemsresponse.md
|
||||||
|
- docs/models/operations/refreshlibraryrequest.md
|
||||||
|
- docs/models/operations/refreshlibraryresponse.md
|
||||||
|
- docs/models/operations/getlatestlibraryitemsrequest.md
|
||||||
|
- docs/models/operations/getlatestlibraryitemsresponse.md
|
||||||
|
- docs/models/operations/getcommonlibraryitemsrequest.md
|
||||||
|
- docs/models/operations/getcommonlibraryitemsresponse.md
|
||||||
|
- docs/models/operations/getmetadatarequest.md
|
||||||
|
- docs/models/operations/getmetadataresponse.md
|
||||||
|
- docs/models/operations/getmetadatachildrenrequest.md
|
||||||
|
- docs/models/operations/getmetadatachildrenresponse.md
|
||||||
|
- docs/models/operations/stream.md
|
||||||
|
- docs/models/operations/getondeckpart.md
|
||||||
|
- docs/models/operations/getondeckmedia.md
|
||||||
|
- docs/models/operations/guids.md
|
||||||
|
- docs/models/operations/getondeckmetadata.md
|
||||||
|
- docs/models/operations/getondeckmediacontainer.md
|
||||||
|
- docs/models/operations/getondeckresponsebody.md
|
||||||
|
- docs/models/operations/getondeckresponse.md
|
||||||
|
- docs/models/operations/level.md
|
||||||
|
- docs/models/operations/loglinerequest.md
|
||||||
|
- docs/models/operations/loglineresponse.md
|
||||||
|
- docs/models/operations/logmultilineresponse.md
|
||||||
|
- docs/models/operations/enablepapertrailresponse.md
|
||||||
|
- docs/models/operations/typet.md
|
||||||
|
- docs/models/operations/smart.md
|
||||||
|
- docs/models/operations/createplaylistrequest.md
|
||||||
|
- docs/models/operations/createplaylistresponse.md
|
||||||
|
- docs/models/operations/playlisttype.md
|
||||||
|
- docs/models/operations/queryparamsmart.md
|
||||||
|
- docs/models/operations/getplaylistsrequest.md
|
||||||
|
- docs/models/operations/getplaylistsresponse.md
|
||||||
|
- docs/models/operations/getplaylistrequest.md
|
||||||
|
- docs/models/operations/getplaylistresponse.md
|
||||||
|
- docs/models/operations/deleteplaylistrequest.md
|
||||||
|
- docs/models/operations/deleteplaylistresponse.md
|
||||||
|
- docs/models/operations/updateplaylistrequest.md
|
||||||
|
- docs/models/operations/updateplaylistresponse.md
|
||||||
|
- docs/models/operations/getplaylistcontentsrequest.md
|
||||||
|
- docs/models/operations/getplaylistcontentsresponse.md
|
||||||
|
- docs/models/operations/clearplaylistcontentsrequest.md
|
||||||
|
- docs/models/operations/clearplaylistcontentsresponse.md
|
||||||
|
- docs/models/operations/addplaylistcontentsrequest.md
|
||||||
|
- docs/models/operations/addplaylistcontentsresponse.md
|
||||||
|
- docs/models/operations/force.md
|
||||||
|
- docs/models/operations/uploadplaylistrequest.md
|
||||||
|
- docs/models/operations/uploadplaylistresponse.md
|
||||||
|
- docs/models/operations/queryparamtype.md
|
||||||
|
- docs/models/operations/scope.md
|
||||||
|
- docs/models/operations/gettransienttokenrequest.md
|
||||||
|
- docs/models/operations/gettransienttokenresponse.md
|
||||||
|
- docs/models/operations/getsourceconnectioninformationrequest.md
|
||||||
|
- docs/models/operations/getsourceconnectioninformationresponse.md
|
||||||
|
- docs/models/operations/getsessionsresponse.md
|
||||||
|
- docs/models/operations/getsessionhistoryresponse.md
|
||||||
|
- docs/models/operations/transcodesession.md
|
||||||
|
- docs/models/operations/gettranscodesessionsmediacontainer.md
|
||||||
|
- docs/models/operations/gettranscodesessionsresponsebody.md
|
||||||
|
- docs/models/operations/gettranscodesessionsresponse.md
|
||||||
|
- docs/models/operations/stoptranscodesessionrequest.md
|
||||||
|
- docs/models/operations/stoptranscodesessionresponse.md
|
||||||
|
- docs/models/operations/getupdatestatusresponse.md
|
||||||
|
- docs/models/operations/download.md
|
||||||
|
- docs/models/operations/checkforupdatesrequest.md
|
||||||
|
- docs/models/operations/checkforupdatesresponse.md
|
||||||
|
- docs/models/operations/tonight.md
|
||||||
|
- docs/models/operations/skip.md
|
||||||
|
- docs/models/operations/applyupdatesrequest.md
|
||||||
|
- docs/models/operations/applyupdatesresponse.md
|
||||||
|
- docs/models/operations/startuniversaltranscoderequest.md
|
||||||
|
- docs/models/operations/startuniversaltranscoderesponse.md
|
||||||
|
- docs/models/operations/state.md
|
||||||
|
- docs/models/operations/gettimelinerequest.md
|
||||||
|
- docs/models/operations/gettimelineresponse.md
|
||||||
|
- docs/models/errors/errors.md
|
||||||
|
- docs/models/errors/getservercapabilitiesresponsebody.md
|
||||||
|
- docs/models/errors/getserverpreferenceserrors.md
|
||||||
|
- docs/models/errors/getserverpreferencesresponsebody.md
|
||||||
|
- docs/models/errors/getavailableclientserrors.md
|
||||||
|
- docs/models/errors/getavailableclientsresponsebody.md
|
||||||
|
- docs/models/errors/getdeviceserrors.md
|
||||||
|
- docs/models/errors/getdevicesresponsebody.md
|
||||||
|
- docs/models/errors/getserveridentityerrors.md
|
||||||
|
- docs/models/errors/getserveridentityresponsebody.md
|
||||||
|
- docs/models/errors/getmyplexaccounterrors.md
|
||||||
|
- docs/models/errors/getmyplexaccountresponsebody.md
|
||||||
|
- docs/models/errors/getresizedphotoerrors.md
|
||||||
|
- docs/models/errors/getresizedphotoresponsebody.md
|
||||||
|
- docs/models/errors/getserverlisterrors.md
|
||||||
|
- docs/models/errors/getserverlistresponsebody.md
|
||||||
|
- docs/models/errors/markplayederrors.md
|
||||||
|
- docs/models/errors/markplayedresponsebody.md
|
||||||
|
- docs/models/errors/markunplayederrors.md
|
||||||
|
- docs/models/errors/markunplayedresponsebody.md
|
||||||
|
- docs/models/errors/updateplayprogresserrors.md
|
||||||
|
- docs/models/errors/updateplayprogressresponsebody.md
|
||||||
|
- docs/models/errors/getserveractivitieserrors.md
|
||||||
|
- docs/models/errors/getserveractivitiesresponsebody.md
|
||||||
|
- docs/models/errors/cancelserveractivitieserrors.md
|
||||||
|
- docs/models/errors/cancelserveractivitiesresponsebody.md
|
||||||
|
- docs/models/errors/getbutlertaskserrors.md
|
||||||
|
- docs/models/errors/getbutlertasksresponsebody.md
|
||||||
|
- docs/models/errors/startalltaskserrors.md
|
||||||
|
- docs/models/errors/startalltasksresponsebody.md
|
||||||
|
- docs/models/errors/stopalltaskserrors.md
|
||||||
|
- docs/models/errors/stopalltasksresponsebody.md
|
||||||
|
- docs/models/errors/starttaskerrors.md
|
||||||
|
- docs/models/errors/starttaskresponsebody.md
|
||||||
|
- docs/models/errors/stoptaskerrors.md
|
||||||
|
- docs/models/errors/stoptaskresponsebody.md
|
||||||
|
- docs/models/errors/getglobalhubserrors.md
|
||||||
|
- docs/models/errors/getglobalhubsresponsebody.md
|
||||||
|
- docs/models/errors/getlibraryhubserrors.md
|
||||||
|
- docs/models/errors/getlibraryhubsresponsebody.md
|
||||||
|
- docs/models/errors/performsearcherrors.md
|
||||||
|
- docs/models/errors/performsearchresponsebody.md
|
||||||
|
- docs/models/errors/performvoicesearcherrors.md
|
||||||
|
- docs/models/errors/performvoicesearchresponsebody.md
|
||||||
|
- docs/models/errors/getsearchresultserrors.md
|
||||||
|
- docs/models/errors/getsearchresultsresponsebody.md
|
||||||
|
- docs/models/errors/getfilehasherrors.md
|
||||||
|
- docs/models/errors/getfilehashresponsebody.md
|
||||||
|
- docs/models/errors/getrecentlyaddederrors.md
|
||||||
|
- docs/models/errors/getrecentlyaddedresponsebody.md
|
||||||
|
- docs/models/errors/getlibrarieserrors.md
|
||||||
|
- docs/models/errors/getlibrariesresponsebody.md
|
||||||
|
- docs/models/errors/getlibraryerrors.md
|
||||||
|
- docs/models/errors/getlibraryresponsebody.md
|
||||||
|
- docs/models/errors/deletelibraryerrors.md
|
||||||
|
- docs/models/errors/deletelibraryresponsebody.md
|
||||||
|
- docs/models/errors/getlibraryitemserrors.md
|
||||||
|
- docs/models/errors/getlibraryitemsresponsebody.md
|
||||||
|
- docs/models/errors/refreshlibraryerrors.md
|
||||||
|
- docs/models/errors/refreshlibraryresponsebody.md
|
||||||
|
- docs/models/errors/getlatestlibraryitemserrors.md
|
||||||
|
- docs/models/errors/getlatestlibraryitemsresponsebody.md
|
||||||
|
- docs/models/errors/getcommonlibraryitemserrors.md
|
||||||
|
- docs/models/errors/getcommonlibraryitemsresponsebody.md
|
||||||
|
- docs/models/errors/getmetadataerrors.md
|
||||||
|
- docs/models/errors/getmetadataresponsebody.md
|
||||||
|
- docs/models/errors/getmetadatachildrenerrors.md
|
||||||
|
- docs/models/errors/getmetadatachildrenresponsebody.md
|
||||||
|
- docs/models/errors/getondeckerrors.md
|
||||||
|
- docs/models/errors/getondeckresponsebody.md
|
||||||
|
- docs/models/errors/loglineerrors.md
|
||||||
|
- docs/models/errors/loglineresponsebody.md
|
||||||
|
- docs/models/errors/logmultilineerrors.md
|
||||||
|
- docs/models/errors/logmultilineresponsebody.md
|
||||||
|
- docs/models/errors/enablepapertrailerrors.md
|
||||||
|
- docs/models/errors/enablepapertrailresponsebody.md
|
||||||
|
- docs/models/errors/createplaylisterrors.md
|
||||||
|
- docs/models/errors/createplaylistresponsebody.md
|
||||||
|
- docs/models/errors/getplaylistserrors.md
|
||||||
|
- docs/models/errors/getplaylistsresponsebody.md
|
||||||
|
- docs/models/errors/getplaylisterrors.md
|
||||||
|
- docs/models/errors/getplaylistresponsebody.md
|
||||||
|
- docs/models/errors/deleteplaylisterrors.md
|
||||||
|
- docs/models/errors/deleteplaylistresponsebody.md
|
||||||
|
- docs/models/errors/updateplaylisterrors.md
|
||||||
|
- docs/models/errors/updateplaylistresponsebody.md
|
||||||
|
- docs/models/errors/getplaylistcontentserrors.md
|
||||||
|
- docs/models/errors/getplaylistcontentsresponsebody.md
|
||||||
|
- docs/models/errors/clearplaylistcontentserrors.md
|
||||||
|
- docs/models/errors/clearplaylistcontentsresponsebody.md
|
||||||
|
- docs/models/errors/addplaylistcontentserrors.md
|
||||||
|
- docs/models/errors/addplaylistcontentsresponsebody.md
|
||||||
|
- docs/models/errors/uploadplaylisterrors.md
|
||||||
|
- docs/models/errors/uploadplaylistresponsebody.md
|
||||||
|
- docs/models/errors/gettransienttokenerrors.md
|
||||||
|
- docs/models/errors/gettransienttokenresponsebody.md
|
||||||
|
- docs/models/errors/getsourceconnectioninformationerrors.md
|
||||||
|
- docs/models/errors/getsourceconnectioninformationresponsebody.md
|
||||||
|
- docs/models/errors/getsessionserrors.md
|
||||||
|
- docs/models/errors/getsessionsresponsebody.md
|
||||||
|
- docs/models/errors/getsessionhistoryerrors.md
|
||||||
|
- docs/models/errors/getsessionhistoryresponsebody.md
|
||||||
|
- docs/models/errors/gettranscodesessionserrors.md
|
||||||
|
- docs/models/errors/gettranscodesessionsresponsebody.md
|
||||||
|
- docs/models/errors/stoptranscodesessionerrors.md
|
||||||
|
- docs/models/errors/stoptranscodesessionresponsebody.md
|
||||||
|
- docs/models/errors/getupdatestatuserrors.md
|
||||||
|
- docs/models/errors/getupdatestatusresponsebody.md
|
||||||
|
- docs/models/errors/checkforupdateserrors.md
|
||||||
|
- docs/models/errors/checkforupdatesresponsebody.md
|
||||||
|
- docs/models/errors/applyupdateserrors.md
|
||||||
|
- docs/models/errors/applyupdatesresponsebody.md
|
||||||
|
- docs/models/errors/startuniversaltranscodeerrors.md
|
||||||
|
- docs/models/errors/startuniversaltranscoderesponsebody.md
|
||||||
|
- docs/models/errors/gettimelineerrors.md
|
||||||
|
- docs/models/errors/gettimelineresponsebody.md
|
||||||
|
- docs/models/components/security.md
|
||||||
|
- docs/sdks/plexapi/README.md
|
||||||
|
- docs/sdks/server/README.md
|
||||||
|
- docs/sdks/media/README.md
|
||||||
|
- docs/sdks/activities/README.md
|
||||||
|
- docs/sdks/butler/README.md
|
||||||
|
- docs/sdks/hubs/README.md
|
||||||
|
- docs/sdks/search/README.md
|
||||||
|
- docs/sdks/library/README.md
|
||||||
|
- docs/sdks/log/README.md
|
||||||
|
- docs/sdks/playlists/README.md
|
||||||
|
- docs/sdks/security/README.md
|
||||||
|
- docs/sdks/sessions/README.md
|
||||||
|
- docs/sdks/updater/README.md
|
||||||
|
- docs/sdks/video/README.md
|
||||||
|
- USAGE.md
|
||||||
|
- .gitattributes
|
||||||
12
README.md
12
README.md
@@ -7,15 +7,6 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
## 🏗 **Welcome to your new SDK!** 🏗
|
|
||||||
|
|
||||||
It has been generated successfully based on your OpenAPI spec. However, it is not yet ready for production use. Here are some next steps:
|
|
||||||
- [ ] 🛠 Make your SDK feel handcrafted by [customizing it](https://www.speakeasyapi.dev/docs/customize-sdks)
|
|
||||||
- [ ] ♻️ Refine your SDK quickly by iterating locally with the [Speakeasy CLI](https://github.com/speakeasy-api/speakeasy)
|
|
||||||
- [ ] 🎁 Publish your SDK to package managers by [configuring automatic publishing](https://www.speakeasyapi.dev/docs/productionize-sdks/publish-sdks)
|
|
||||||
- [ ] ✨ When ready to productionize, delete this section from the README
|
|
||||||
|
|
||||||
<!-- Start SDK Installation [installation] -->
|
<!-- Start SDK Installation [installation] -->
|
||||||
## SDK Installation
|
## SDK Installation
|
||||||
|
|
||||||
@@ -211,8 +202,7 @@ You can override the default server globally by passing a server index to the `s
|
|||||||
|
|
||||||
| # | Server | Variables |
|
| # | Server | Variables |
|
||||||
| - | ------ | --------- |
|
| - | ------ | --------- |
|
||||||
| 0 | `http://10.10.10.47:32400` | None |
|
| 0 | `{protocol}://{ip}:{port}` | `protocol` (default is `http`), `ip` (default is `10.10.10.47`), `port` (default is `32400`) |
|
||||||
| 1 | `{protocol}://{ip}:{port}` | `protocol` (default is `http`), `ip` (default is `10.10.10.47`), `port` (default is `32400`) |
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
30
RELEASES.md
30
RELEASES.md
@@ -29,3 +29,33 @@ Based on:
|
|||||||
- [typescript v0.3.0] .
|
- [typescript v0.3.0] .
|
||||||
### Releases
|
### Releases
|
||||||
- [NPM v0.3.0] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.3.0 - .
|
- [NPM v0.3.0] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.3.0 - .
|
||||||
|
|
||||||
|
## 2024-01-05 00:27:32
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc 0.0.3
|
||||||
|
- Speakeasy CLI 1.130.1 (2.225.2) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [typescript v0.3.0] .
|
||||||
|
### Releases
|
||||||
|
- [NPM v0.3.0] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.3.0 - .
|
||||||
|
|
||||||
|
## 2024-01-05 19:51:02
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc 0.0.3
|
||||||
|
- Speakeasy CLI 1.133.1 (2.228.1) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [typescript v0.3.1] .
|
||||||
|
### Releases
|
||||||
|
- [NPM v0.3.1] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.3.1 - .
|
||||||
|
|
||||||
|
## 2024-01-09 00:28:08
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc 0.0.3
|
||||||
|
- Speakeasy CLI 1.134.0 (2.230.1) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [typescript v0.3.2] .
|
||||||
|
### Releases
|
||||||
|
- [NPM v0.3.2] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.3.2 - .
|
||||||
23
gen.yaml
23
gen.yaml
@@ -1,28 +1,14 @@
|
|||||||
configVersion: 1.0.0
|
configVersion: 2.0.0
|
||||||
management:
|
|
||||||
docChecksum: 550154cf1b4d0c237436fb18c418b5db
|
|
||||||
docVersion: 0.0.3
|
|
||||||
speakeasyVersion: 1.129.1
|
|
||||||
generationVersion: 2.223.3
|
|
||||||
generation:
|
generation:
|
||||||
comments: {}
|
|
||||||
sdkClassName: Plex-API
|
sdkClassName: Plex-API
|
||||||
repoURL: https://github.com/LukeHagar/plexjs.git
|
|
||||||
maintainOpenAPIOrder: true
|
maintainOpenAPIOrder: true
|
||||||
usageSnippets:
|
usageSnippets:
|
||||||
optionalPropertyRendering: withExample
|
optionalPropertyRendering: withExample
|
||||||
|
useClassNamesForArrayFields: true
|
||||||
fixes:
|
fixes:
|
||||||
nameResolutionDec2023: false
|
nameResolutionDec2023: false
|
||||||
useClassNamesForArrayFields: true
|
|
||||||
features:
|
|
||||||
typescript:
|
|
||||||
core: 3.3.12
|
|
||||||
flattening: 2.81.1
|
|
||||||
globalSecurity: 2.82.2
|
|
||||||
globalServerURLs: 2.82.1
|
|
||||||
nameOverrides: 2.81.1
|
|
||||||
typescript:
|
typescript:
|
||||||
version: 0.3.0
|
version: 0.3.2
|
||||||
author: LukeHagar
|
author: LukeHagar
|
||||||
clientServerStatusCodesAsErrors: true
|
clientServerStatusCodesAsErrors: true
|
||||||
flattenGlobalSecurity: true
|
flattenGlobalSecurity: true
|
||||||
@@ -35,10 +21,7 @@ typescript:
|
|||||||
shared: models/components
|
shared: models/components
|
||||||
webhooks: models/webhooks
|
webhooks: models/webhooks
|
||||||
inputModelSuffix: input
|
inputModelSuffix: input
|
||||||
installationURL: https://github.com/LukeHagar/plexjs
|
|
||||||
maxMethodParams: 4
|
maxMethodParams: 4
|
||||||
outputModelSuffix: output
|
outputModelSuffix: output
|
||||||
packageName: '@lukehagar/plexjs'
|
packageName: '@lukehagar/plexjs'
|
||||||
published: true
|
|
||||||
repoSubDirectory: .
|
|
||||||
templateVersion: v2
|
templateVersion: v2
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@lukehagar/plexjs",
|
"name": "@lukehagar/plexjs",
|
||||||
"version": "0.3.0",
|
"version": "0.3.2",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@lukehagar/plexjs",
|
"name": "@lukehagar/plexjs",
|
||||||
"version": "0.3.0",
|
"version": "0.3.2",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"decimal.js": "^10.4.3",
|
"decimal.js": "^10.4.3",
|
||||||
"jsonpath": "^1.1.1"
|
"jsonpath": "^1.1.1"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"type": "commonjs",
|
"type": "commonjs",
|
||||||
"name": "@lukehagar/plexjs",
|
"name": "@lukehagar/plexjs",
|
||||||
"version": "0.3.0",
|
"version": "0.3.2",
|
||||||
"author": "LukeHagar",
|
"author": "LukeHagar",
|
||||||
"main": "./index.js",
|
"main": "./index.js",
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
|
|||||||
@@ -10,10 +10,6 @@ import { RetryConfig } from "./retries";
|
|||||||
* Contains the list of servers available to the SDK
|
* Contains the list of servers available to the SDK
|
||||||
*/
|
*/
|
||||||
export const ServerList = [
|
export const ServerList = [
|
||||||
/**
|
|
||||||
* The full address of your Plex Server
|
|
||||||
*/
|
|
||||||
"http://10.10.10.47:32400",
|
|
||||||
/**
|
/**
|
||||||
* The full address of your Plex Server
|
* The full address of your Plex Server
|
||||||
*/
|
*/
|
||||||
@@ -62,7 +58,6 @@ export function serverURLFromOptions(options: SDKOptions): URL {
|
|||||||
let serverURL = options.serverURL;
|
let serverURL = options.serverURL;
|
||||||
|
|
||||||
const serverParams = [
|
const serverParams = [
|
||||||
{},
|
|
||||||
{
|
{
|
||||||
protocol: options.protocol?.toString() ?? "http",
|
protocol: options.protocol?.toString() ?? "http",
|
||||||
ip: options.ip?.toString() ?? "10.10.10.47",
|
ip: options.ip?.toString() ?? "10.10.10.47",
|
||||||
@@ -84,7 +79,7 @@ export function serverURLFromOptions(options: SDKOptions): URL {
|
|||||||
export const SDK_METADATA = Object.freeze({
|
export const SDK_METADATA = Object.freeze({
|
||||||
language: "typescript",
|
language: "typescript",
|
||||||
openapiDocVersion: "0.0.3",
|
openapiDocVersion: "0.0.3",
|
||||||
sdkVersion: "0.3.0",
|
sdkVersion: "0.3.2",
|
||||||
genVersion: "2.223.3",
|
genVersion: "2.230.1",
|
||||||
userAgent: "speakeasy-sdk/typescript 0.3.0 2.223.3 0.0.3 @lukehagar/plexjs",
|
userAgent: "speakeasy-sdk/typescript 0.3.2 2.230.1 0.0.3 @lukehagar/plexjs",
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ export type Fetcher = (
|
|||||||
init?: RequestInit,
|
init?: RequestInit,
|
||||||
) => Promise<Response>;
|
) => Promise<Response>;
|
||||||
|
|
||||||
|
const DEFAULT_FETCHER: Fetcher = (input, init) => fetch(input, init);
|
||||||
|
|
||||||
export interface HTTPClientOptions {
|
export interface HTTPClientOptions {
|
||||||
fetcher?: Fetcher;
|
fetcher?: Fetcher;
|
||||||
}
|
}
|
||||||
@@ -22,7 +24,7 @@ export class HTTPClient {
|
|||||||
private responseHooks: ResponseHook[] = [];
|
private responseHooks: ResponseHook[] = [];
|
||||||
|
|
||||||
constructor(private options: HTTPClientOptions = {}) {
|
constructor(private options: HTTPClientOptions = {}) {
|
||||||
this.fetcher = options.fetcher || fetch;
|
this.fetcher = options.fetcher || DEFAULT_FETCHER;
|
||||||
}
|
}
|
||||||
|
|
||||||
async request(request: Request): Promise<Response> {
|
async request(request: Request): Promise<Response> {
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ export class Activities extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -119,7 +119,7 @@ export class Activities extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "delete",
|
method: "DELETE",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ export class Butler extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -104,7 +104,7 @@ export class Butler extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "post", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "POST", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -156,7 +156,7 @@ export class Butler extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "delete", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "DELETE", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -230,7 +230,7 @@ export class Butler extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "post",
|
method: "POST",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
@@ -304,7 +304,7 @@ export class Butler extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "delete",
|
method: "DELETE",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ export class Hubs extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -157,7 +157,7 @@ export class Hubs extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ export class Library extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -122,7 +122,7 @@ export class Library extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -182,7 +182,7 @@ export class Library extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -281,7 +281,7 @@ export class Library extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -355,7 +355,7 @@ export class Library extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "delete",
|
method: "DELETE",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
@@ -440,7 +440,7 @@ export class Library extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -517,7 +517,7 @@ export class Library extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
@@ -604,7 +604,7 @@ export class Library extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -692,7 +692,7 @@ export class Library extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -767,7 +767,7 @@ export class Library extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
@@ -843,7 +843,7 @@ export class Library extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
@@ -899,7 +899,7 @@ export class Library extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ export class Log extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -129,7 +129,7 @@ export class Log extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "post", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "POST", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -181,7 +181,7 @@ export class Log extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ export class Media extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -135,7 +135,7 @@ export class Media extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -215,7 +215,7 @@ export class Media extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "post",
|
method: "POST",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ export class Playlists extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "post",
|
method: "POST",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -148,7 +148,7 @@ export class Playlists extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -224,7 +224,7 @@ export class Playlists extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
@@ -298,7 +298,7 @@ export class Playlists extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "delete",
|
method: "DELETE",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
@@ -372,7 +372,7 @@ export class Playlists extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "put",
|
method: "PUT",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
@@ -457,7 +457,7 @@ export class Playlists extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -532,7 +532,7 @@ export class Playlists extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "delete",
|
method: "DELETE",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
@@ -621,7 +621,7 @@ export class Playlists extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "put",
|
method: "PUT",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -698,7 +698,7 @@ export class Playlists extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "post",
|
method: "POST",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ export class Search extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -169,7 +169,7 @@ export class Search extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -242,7 +242,7 @@ export class Search extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ export class Security extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -142,7 +142,7 @@ export class Security extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ export class Server extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -103,7 +103,7 @@ export class Server extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -156,7 +156,7 @@ export class Server extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -210,7 +210,7 @@ export class Server extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -266,7 +266,7 @@ export class Server extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -320,7 +320,7 @@ export class Server extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -404,7 +404,7 @@ export class Server extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -460,7 +460,7 @@ export class Server extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ export class Sessions extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -98,7 +98,7 @@ export class Sessions extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -151,7 +151,7 @@ export class Sessions extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -223,7 +223,7 @@ export class Sessions extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "delete",
|
method: "DELETE",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ export class Updater extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -116,7 +116,7 @@ export class Updater extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "put",
|
method: "PUT",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -196,7 +196,7 @@ export class Updater extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "put",
|
method: "PUT",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ export class Video extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -210,7 +210,7 @@ export class Video extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
|
|||||||
@@ -5,4 +5,5 @@
|
|||||||
export { Decimal } from "./decimal";
|
export { Decimal } from "./decimal";
|
||||||
export { RFCDate } from "./rfcdate";
|
export { RFCDate } from "./rfcdate";
|
||||||
export { blobLikeSchema, isBlobLike } from "./blobs";
|
export { blobLikeSchema, isBlobLike } from "./blobs";
|
||||||
export type { Paginated, Paginator } from "./operations";
|
export type { Paginator, PageIterator } from "./operations";
|
||||||
|
export { createPageIterator } from "./operations";
|
||||||
|
|||||||
@@ -2,5 +2,24 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export type Paginated<Result> = Result & { next: Paginator<Result> };
|
export type Paginator<Result> = () => Promise<PageIterator<Result>> | null;
|
||||||
export type Paginator<Result> = () => Promise<Paginated<Result>> | null;
|
|
||||||
|
export type PageIterator<Result> = Result & {
|
||||||
|
next: Paginator<Result>;
|
||||||
|
[Symbol.asyncIterator]: () => AsyncIterableIterator<Result>;
|
||||||
|
};
|
||||||
|
|
||||||
|
export function createPageIterator<Result>(
|
||||||
|
page: Result & { next: Paginator<Result> },
|
||||||
|
) {
|
||||||
|
return {
|
||||||
|
[Symbol.asyncIterator]: async function* paginator() {
|
||||||
|
yield page;
|
||||||
|
|
||||||
|
let p: typeof page | null = page;
|
||||||
|
for (p = await p.next(); p != null; p = await p.next()) {
|
||||||
|
yield p;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user