diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 265df36..884345a 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: dfa99515-01c0-42eb-9be5-ee212fd03eb3 management: - docChecksum: 5bf578a672589649d8ed83c3927c50a6 + docChecksum: 1b63d7c28734a44b0339f405b186b290 docVersion: 0.0.3 - speakeasyVersion: 1.399.2 - generationVersion: 2.416.6 - releaseVersion: 0.11.14 - configChecksum: bbc7c332f52b85ec1508e1a03c081474 + speakeasyVersion: 1.401.2 + generationVersion: 2.421.3 + releaseVersion: 0.12.0 + configChecksum: 2ca081a11cf8ab8c4e521e6d74bd597b repoURL: https://github.com/LukeHagar/plexgo.git repoSubDirectory: . installationURL: https://github.com/LukeHagar/plexgo @@ -15,10 +15,11 @@ features: go: additionalDependencies: 0.1.0 constsAndDefaults: 0.1.6 - core: 3.5.8 + core: 3.5.9 defaultEnabledRetries: 0.2.0 deprecations: 2.81.1 downloadStreams: 0.1.2 + enums: 2.81.1 envVarSecurityUsage: 0.3.1 errors: 2.81.9 flattening: 2.81.1 @@ -294,15 +295,21 @@ generatedFiles: - docs/models/operations/getlibraryhubswriter.md - docs/models/operations/getlibraryitemscountry.md - docs/models/operations/getlibraryitemsdirector.md + - docs/models/operations/getlibraryitemsfield.md + - docs/models/operations/getlibraryitemsfieldtype.md + - docs/models/operations/getlibraryitemsfilter.md - docs/models/operations/getlibraryitemsgenre.md - docs/models/operations/getlibraryitemsmedia.md - docs/models/operations/getlibraryitemsmediacontainer.md - docs/models/operations/getlibraryitemsmetadata.md + - docs/models/operations/getlibraryitemsoperator.md - docs/models/operations/getlibraryitemspart.md - docs/models/operations/getlibraryitemsrequest.md - docs/models/operations/getlibraryitemsresponse.md - docs/models/operations/getlibraryitemsresponsebody.md - docs/models/operations/getlibraryitemsrole.md + - docs/models/operations/getlibraryitemssort.md + - docs/models/operations/getlibraryitemstype.md - docs/models/operations/getlibraryitemswriter.md - docs/models/operations/getmediaprovidersdirectory.md - docs/models/operations/getmediaprovidersmediacontainer.md @@ -409,7 +416,6 @@ generatedFiles: - docs/models/operations/getserverpreferencesmediacontainer.md - docs/models/operations/getserverpreferencesresponse.md - docs/models/operations/getserverpreferencesresponsebody.md - - docs/models/operations/getserverresourcesglobals.md - docs/models/operations/getserverresourcesrequest.md - docs/models/operations/getserverresourcesresponse.md - docs/models/operations/getsessionhistorymediacontainer.md @@ -438,7 +444,6 @@ generatedFiles: - docs/models/operations/gettimelineresponse.md - docs/models/operations/gettokenbypinidauthpincontainer.md - docs/models/operations/gettokenbypinidgeodata.md - - docs/models/operations/gettokenbypinidglobals.md - docs/models/operations/gettokenbypinidrequest.md - docs/models/operations/gettokenbypinidresponse.md - docs/models/operations/gettokendetailsauthenticationresponsestatus.md @@ -497,8 +502,10 @@ generatedFiles: - docs/models/operations/markunplayedresponse.md - docs/models/operations/media.md - docs/models/operations/mediacontainer.md + - docs/models/operations/mediaguid.md - docs/models/operations/mediaprovider.md - docs/models/operations/mediareviewsvisibility.md + - docs/models/operations/meta.md - docs/models/operations/metadata.md - docs/models/operations/minsize.md - docs/models/operations/myplex.md @@ -524,10 +531,8 @@ generatedFiles: - docs/models/operations/postuserssignindatadefaultsubtitleaccessibility.md - docs/models/operations/postuserssignindatadefaultsubtitleforced.md - docs/models/operations/postuserssignindatafeatures.md - - docs/models/operations/postuserssignindataglobals.md - docs/models/operations/postuserssignindatamailingliststatus.md - docs/models/operations/postuserssignindatamediareviewsvisibility.md - - docs/models/operations/postuserssignindatarequest.md - docs/models/operations/postuserssignindatarequestbody.md - docs/models/operations/postuserssignindataresponse.md - docs/models/operations/postuserssignindataservices.md @@ -538,6 +543,7 @@ generatedFiles: - docs/models/operations/postuserssignindatauserprofile.md - docs/models/operations/postuserssignindatawatchedindicator.md - docs/models/operations/producer.md + - docs/models/operations/protocol.md - docs/models/operations/provider.md - docs/models/operations/queryparamfilter.md - docs/models/operations/queryparamforce.md @@ -995,7 +1001,7 @@ examples: width: 110 height: 165 opacity: 100 - blur: 20 + blur: 0 minSize: 1 upscale: 0 url: "/library/metadata/49564/thumb/1654258204" @@ -1250,10 +1256,10 @@ examples: "": parameters: query: - X-Plex-Product: Plex Web - X-Plex-Device: Linux - X-Plex-Version: 4.133.0 - X-Plex-Platform: Chrome + X-Plex-Product: "Plex Web" + X-Plex-Device: "Linux" + X-Plex-Version: "4.133.0" + X-Plex-Platform: "Chrome" responses: "200": application/json: {"id": 308667304, "code": "7RQZ", "product": "0", "trusted": false, "qr": "https://plex.tv/api/v2/pins/qr/7RQZ", "clientIdentifier": "string", "location": {"code": "VI", "continent_code": "NA", "country": "United States Virgin Islands", "city": "Amsterdam", "european_union_member": true, "time_zone": "America/St_Thomas", "postal_code": 802, "in_privacy_restricted_country": true, "in_privacy_restricted_region": true, "subdivisions": "Saint Thomas", "coordinates": "18.3381, -64.8941"}, "expiresIn": 876, "createdAt": "2024-07-16T17:03:05Z", "expiresAt": "2024-07-16T17:18:05Z", "authToken": null, "newRegistration": null} @@ -1400,6 +1406,24 @@ examples: application/json: {"errors": []} "401": application/json: {"errors": []} + speakeasy-default-get-library-items: + parameters: + path: + sectionKey: 9518 + tag: "edition" + query: + includeGuids: 1 + includeMeta: 1 + type: 2 + X-Plex-Container-Start: 0 + X-Plex-Container-Size: 50 + responses: + "200": + application/json: {"MediaContainer": {"size": 70, "allowSync": true, "art": "/:/resources/movie-fanart.jpg", "identifier": "com.plexapp.plugins.library", "librarySectionID": "", "librarySectionTitle": "Movies", "librarySectionUUID": "322a231a-b7f7-49f5-920f-14c61199cd30", "mediaTagPrefix": "/system/bundle/media/flags/", "mediaTagVersion": 1701731894, "thumb": "/:/resources/movie.png", "title1": "Movies", "title2": "Recently Released", "viewGroup": "movie", "viewMode": 65592, "mixedParents": true, "Metadata": [{"ratingKey": "58683", "key": "/library/metadata/58683", "guid": "plex://movie/5d7768ba96b655001fdc0408", "studio": "20th Century Studios", "type": "movie", "title": "Avatar: The Way of Water", "contentRating": "PG-13", "summary": "Jake Sully lives with his newfound family formed on the extrasolar moon Pandora. Once a familiar threat returns to finish what was previously started, Jake must work with Neytiri and the army of the Na'vi race to protect their home.", "rating": 7.6, "audienceRating": 9.2, "year": 2022, "tagline": "Return to Pandora.", "thumb": "/library/metadata/58683/thumb/1703239236", "art": "/library/metadata/58683/art/1703239236", "duration": 11558112, "originallyAvailableAt": "2022-12-14T00:00:00Z", "addedAt": 1680457607, "updatedAt": 1703239236, "audienceRatingImage": "rottentomatoes://image.rating.upright", "chapterSource": "media", "primaryExtraKey": "/library/metadata/58684", "ratingImage": "rottentomatoes://image.rating.ripe", "grandparentRatingKey": "66", "grandparentGuid": "plex://show/5d9c081b170e24001f2a7be4", "grandparentKey": "/library/metadata/66", "grandparentTitle": "Caprica", "grandparentThumb": "/library/metadata/66/thumb/1705716261", "grandparentArt": "/library/metadata/66/art/1705716261", "grandparentTheme": "/library/metadata/66/theme/1705716261", "Media": [{"id": 119534, "duration": 11558112, "bitrate": 25025, "width": 3840, "height": 2072, "aspectRatio": 1.85, "audioChannels": 6, "audioCodec": "eac3", "videoCodec": "hevc", "videoResolution": "4k", "container": "mkv", "videoFrameRate": "24p", "videoProfile": "main 10", "Part": [{"id": 119542, "key": "/library/parts/119542/1680457526/file.mkv", "duration": 11558112, "file": "/movies/Avatar The Way of Water (2022)/Avatar.The.Way.of.Water.2022.2160p.WEB-DL.DDP5.1.Atmos.DV.HDR10.HEVC-CMRG.mkv", "size": 36158371307, "container": "mkv", "videoProfile": "main 10"}, {"id": 119542, "key": "/library/parts/119542/1680457526/file.mkv", "duration": 11558112, "file": "/movies/Avatar The Way of Water (2022)/Avatar.The.Way.of.Water.2022.2160p.WEB-DL.DDP5.1.Atmos.DV.HDR10.HEVC-CMRG.mkv", "size": 36158371307, "container": "mkv", "videoProfile": "main 10"}, {"id": 119542, "key": "/library/parts/119542/1680457526/file.mkv", "duration": 11558112, "file": "/movies/Avatar The Way of Water (2022)/Avatar.The.Way.of.Water.2022.2160p.WEB-DL.DDP5.1.Atmos.DV.HDR10.HEVC-CMRG.mkv", "size": 36158371307, "container": "mkv", "videoProfile": "main 10"}]}], "Genre": [{"tag": "Adventure"}, {"tag": "Adventure"}, {"tag": "Adventure"}], "Country": [{"tag": "United States of America"}, {"tag": "United States of America"}], "Director": [{"tag": "James Cameron"}, {"tag": "James Cameron"}], "Writer": [{"tag": "James Cameron"}], "Role": [{"tag": "Sigourney Weaver"}, {"tag": "Sigourney Weaver"}, {"tag": "Sigourney Weaver"}], "Guid": [{"id": "imdb://tt13015952"}], "titleSort": "Whale", "viewCount": 1, "lastViewedAt": 1682752242, "originalTitle": "映画 ブラッククローバー 魔法帝の剣", "viewOffset": 5222500, "skipCount": 1, "index": 1, "theme": "/library/metadata/1/theme/1705636920", "leafCount": 14, "viewedLeafCount": 0, "childCount": 1, "hasPremiumExtras": "1", "hasPremiumPrimaryExtra": "1", "parentRatingKey": "66", "parentGuid": "plex://show/5d9c081b170e24001f2a7be4", "parentStudio": "UCP", "parentKey": "/library/metadata/66", "parentTitle": "Caprica", "parentIndex": 1, "parentYear": 2010, "parentThumb": "/library/metadata/66/thumb/1705716261", "parentTheme": "/library/metadata/66/theme/1705716261"}, {"ratingKey": "58683", "key": "/library/metadata/58683", "guid": "plex://movie/5d7768ba96b655001fdc0408", "studio": "20th Century Studios", "type": "movie", "title": "Avatar: The Way of Water", "contentRating": "PG-13", "summary": "Jake Sully lives with his newfound family formed on the extrasolar moon Pandora. Once a familiar threat returns to finish what was previously started, Jake must work with Neytiri and the army of the Na'vi race to protect their home.", "rating": 7.6, "audienceRating": 9.2, "year": 2022, "tagline": "Return to Pandora.", "thumb": "/library/metadata/58683/thumb/1703239236", "art": "/library/metadata/58683/art/1703239236", "duration": 11558112, "originallyAvailableAt": "2022-12-14T00:00:00Z", "addedAt": 1680457607, "updatedAt": 1703239236, "audienceRatingImage": "rottentomatoes://image.rating.upright", "chapterSource": "media", "primaryExtraKey": "/library/metadata/58684", "ratingImage": "rottentomatoes://image.rating.ripe", "grandparentRatingKey": "66", "grandparentGuid": "plex://show/5d9c081b170e24001f2a7be4", "grandparentKey": "/library/metadata/66", "grandparentTitle": "Caprica", "grandparentThumb": "/library/metadata/66/thumb/1705716261", "grandparentArt": "/library/metadata/66/art/1705716261", "grandparentTheme": "/library/metadata/66/theme/1705716261", "Media": [{"id": 119534, "duration": 11558112, "bitrate": 25025, "width": 3840, "height": 2072, "aspectRatio": 1.85, "audioChannels": 6, "audioCodec": "eac3", "videoCodec": "hevc", "videoResolution": "4k", "container": "mkv", "videoFrameRate": "24p", "videoProfile": "main 10", "Part": [{"id": 119542, "key": "/library/parts/119542/1680457526/file.mkv", "duration": 11558112, "file": "/movies/Avatar The Way of Water (2022)/Avatar.The.Way.of.Water.2022.2160p.WEB-DL.DDP5.1.Atmos.DV.HDR10.HEVC-CMRG.mkv", "size": 36158371307, "container": "mkv", "videoProfile": "main 10"}]}], "Genre": [], "Country": [{"tag": "United States of America"}], "Director": [{"tag": "James Cameron"}, {"tag": "James Cameron"}, {"tag": "James Cameron"}], "Writer": [{"tag": "James Cameron"}], "Role": [{"tag": "Sigourney Weaver"}, {"tag": "Sigourney Weaver"}, {"tag": "Sigourney Weaver"}], "Guid": [{"id": "imdb://tt13015952"}], "titleSort": "Whale", "viewCount": 1, "lastViewedAt": 1682752242, "originalTitle": "映画 ブラッククローバー 魔法帝の剣", "viewOffset": 5222500, "skipCount": 1, "index": 1, "theme": "/library/metadata/1/theme/1705636920", "leafCount": 14, "viewedLeafCount": 0, "childCount": 1, "hasPremiumExtras": "1", "hasPremiumPrimaryExtra": "1", "parentRatingKey": "66", "parentGuid": "plex://show/5d9c081b170e24001f2a7be4", "parentStudio": "UCP", "parentKey": "/library/metadata/66", "parentTitle": "Caprica", "parentIndex": 1, "parentYear": 2010, "parentThumb": "/library/metadata/66/thumb/1705716261", "parentTheme": "/library/metadata/66/theme/1705716261"}], "Meta": {"Type": [{"key": "/library/sections/2/all?type=2", "type": "show", "title": "TV Shows", "active": false, "Filter": [], "Sort": [], "Field": [{"key": "show.title", "title": "Show Title", "type": "string", "subType": "rating"}, {"key": "show.title", "title": "Show Title", "type": "string", "subType": "rating"}]}, {"key": "/library/sections/2/all?type=2", "type": "show", "title": "TV Shows", "active": false, "Filter": [{"filter": "genre", "filterType": "string", "key": "/library/sections/2/genre?type=2", "title": "Genre", "type": "filter"}, {"filter": "genre", "filterType": "string", "key": "/library/sections/2/genre?type=2", "title": "Genre", "type": "filter"}, {"filter": "genre", "filterType": "string", "key": "/library/sections/2/genre?type=2", "title": "Genre", "type": "filter"}], "Sort": [], "Field": [{"key": "show.title", "title": "Show Title", "type": "string", "subType": "rating"}, {"key": "show.title", "title": "Show Title", "type": "string", "subType": "rating"}, {"key": "show.title", "title": "Show Title", "type": "string", "subType": "rating"}]}], "FieldType": [{"type": "tag", "Operator": [{"key": "=", "title": "is"}]}, {"type": "tag", "Operator": [{"key": "=", "title": "is"}, {"key": "=", "title": "is"}]}, {"type": "tag", "Operator": [{"key": "=", "title": "is"}, {"key": "=", "title": "is"}]}]}}} + "400": + application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]} + "401": + application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]} get-refresh-library-metadata: speakeasy-default-get-refresh-library-metadata: parameters: @@ -1645,6 +1669,7 @@ examples: query: path: "/home/barkley/playlist.m3u" force: 0 + sectionID: 1 responses: "400": application/json: {"errors": []} @@ -1665,7 +1690,7 @@ examples: speakeasy-default-get-source-connection-information: parameters: query: - source: "server://client-identifier" + source: "provider://provider-identifier" responses: "400": application/json: {"errors": []} @@ -1689,7 +1714,7 @@ examples: application/x-www-form-urlencoded: {"login": "username@email.com", "password": "password123", "verificationCode": "123456"} responses: "201": - application/json: {"adsConsent": true, "adsConsentReminderAt": "2019-08-24T14:15:22Z", "adsConsentSetAt": "2019-08-24T14:15:22Z", "anonymous": false, "authToken": "CxoUzBTSV5hsxjTpFKaf", "backupCodesCreated": false, "confirmed": false, "country": "US", "email": "username@email.com", "emailOnlyAuth": false, "experimentalFeatures": false, "friendlyName": "friendlyUsername", "entitlements": [], "guest": false, "hasPassword": true, "home": false, "homeAdmin": false, "homeSize": 1, "id": 13692262, "joinedAt": 1721154902, "locale": null, "mailingListActive": false, "mailingListStatus": "unsubscribed", "maxHomeSize": 15, "pin": "string", "profile": {"autoSelectAudio": true, "defaultAudioLanguage": "ja", "defaultSubtitleLanguage": "en", "autoSelectSubtitle": "1", "defaultSubtitleAccessibility": "1", "defaultSubtitleForced": "0", "watchedIndicator": "1", "mediaReviewsVisibility": 0}, "protected": false, "rememberExpiresAt": 1722364046, "restricted": false, "roles": ["string"], "scrobbleTypes": "", "services": [{"identifier": "metadata-dev", "endpoint": "https://epg.provider.plex.tv", "token": "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv", "secret": "string", "status": "online"}], "subscription": {"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}, "subscriptionDescription": "string", "subscriptions": [{"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}], "thumb": "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101", "title": "UsernameTitle", "twoFactorEnabled": false, "username": "Username", "uuid": "dae343c1f45beb4f", "pastSubscriptions": [{"id": "string", "mode": "string", "renewsAt": "string", "endsAt": "1556281940", "canceled": "0", "gracePeriod": "0", "onHold": "0", "canReactivate": "0", "canUpgrade": "0", "canDowngrade": "0", "canConvert": "0", "type": "plexpass", "transfer": "string", "state": "ended", "billing": {"paymentMethodId": 569045}}], "trials": [{}]} + application/json: {"adsConsent": true, "adsConsentReminderAt": "2019-08-24T14:15:22Z", "adsConsentSetAt": "2019-08-24T14:15:22Z", "anonymous": false, "authToken": "CxoUzBTSV5hsxjTpFKaf", "backupCodesCreated": false, "confirmed": false, "country": "US", "email": "username@email.com", "emailOnlyAuth": false, "experimentalFeatures": false, "friendlyName": "friendlyUsername", "entitlements": ["[]"], "guest": false, "hasPassword": true, "home": false, "homeAdmin": false, "homeSize": 1, "id": 13692262, "joinedAt": 1556281940, "locale": null, "mailingListActive": false, "mailingListStatus": "unsubscribed", "maxHomeSize": 15, "pin": "string", "profile": {"autoSelectAudio": true, "defaultAudioLanguage": "ja", "defaultSubtitleLanguage": "en", "autoSelectSubtitle": 1, "defaultSubtitleAccessibility": 1, "defaultSubtitleForced": 1, "watchedIndicator": 1, "mediaReviewsVisibility": 1}, "protected": false, "rememberExpiresAt": 1556281940, "restricted": false, "roles": ["string"], "scrobbleTypes": "", "services": [{"identifier": "metadata-dev", "endpoint": "https://epg.provider.plex.tv", "token": "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv", "secret": "string", "status": "online"}], "subscription": {"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}, "subscriptionDescription": "string", "subscriptions": [{"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}], "thumb": "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101", "title": "UsernameTitle", "twoFactorEnabled": false, "username": "Username", "uuid": "dae343c1f45beb4f", "pastSubscriptions": [{"id": "string", "mode": "string", "renewsAt": 1556281940, "endsAt": 1556281940, "canceled": false, "gracePeriod": false, "onHold": false, "canReactivate": false, "canUpgrade": false, "canDowngrade": false, "canConvert": false, "type": "plexpass", "transfer": "string", "state": "ended", "billing": {"paymentMethodId": 481656}}], "trials": [{}]} "400": application/json: {"errors": []} "401": @@ -1870,7 +1895,7 @@ examples: speakeasy-default-get-token-details: responses: "200": - application/json: {"adsConsent": true, "adsConsentReminderAt": "2019-08-24T14:15:22Z", "adsConsentSetAt": "2019-08-24T14:15:22Z", "anonymous": false, "authToken": "CxoUzBTSV5hsxjTpFKaf", "backupCodesCreated": false, "confirmed": false, "country": "US", "email": "username@email.com", "emailOnlyAuth": false, "experimentalFeatures": false, "friendlyName": "friendlyUsername", "entitlements": [], "guest": false, "hasPassword": true, "home": false, "homeAdmin": false, "homeSize": 1, "id": 13692262, "joinedAt": 1721154902, "locale": null, "mailingListActive": false, "mailingListStatus": "unsubscribed", "maxHomeSize": 15, "pin": "string", "profile": {"autoSelectAudio": true, "defaultAudioLanguage": "ja", "defaultSubtitleLanguage": "en", "autoSelectSubtitle": "1", "defaultSubtitleAccessibility": "1", "defaultSubtitleForced": "0", "watchedIndicator": "1", "mediaReviewsVisibility": 0}, "protected": false, "rememberExpiresAt": 1722364046, "restricted": false, "roles": ["string"], "scrobbleTypes": "", "services": [{"identifier": "metadata-dev", "endpoint": "https://epg.provider.plex.tv", "token": "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv", "secret": "string", "status": "online"}], "subscription": {"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}, "subscriptionDescription": "string", "subscriptions": [{"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}], "thumb": "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101", "title": "UsernameTitle", "twoFactorEnabled": false, "username": "Username", "uuid": "dae343c1f45beb4f"} + application/json: {"adsConsent": true, "adsConsentReminderAt": "2019-08-24T14:15:22Z", "adsConsentSetAt": "2019-08-24T14:15:22Z", "anonymous": false, "authToken": "CxoUzBTSV5hsxjTpFKaf", "backupCodesCreated": false, "confirmed": false, "country": "US", "email": "username@email.com", "emailOnlyAuth": false, "experimentalFeatures": false, "friendlyName": "friendlyUsername", "entitlements": ["[]"], "guest": false, "hasPassword": true, "home": false, "homeAdmin": false, "homeSize": 1, "id": 13692262, "joinedAt": 1556281940, "locale": null, "mailingListActive": false, "mailingListStatus": "unsubscribed", "maxHomeSize": 15, "pin": "string", "profile": {"autoSelectAudio": true, "defaultAudioLanguage": "ja", "defaultSubtitleLanguage": "en", "autoSelectSubtitle": 1, "defaultSubtitleAccessibility": 1, "defaultSubtitleForced": 1, "watchedIndicator": 1, "mediaReviewsVisibility": 1}, "protected": false, "rememberExpiresAt": 1556281940, "restricted": false, "roles": ["string"], "scrobbleTypes": "", "services": [{"identifier": "metadata-dev", "endpoint": "https://epg.provider.plex.tv", "token": "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv", "secret": "string", "status": "online"}], "subscription": {"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}, "subscriptionDescription": "string", "subscriptions": [{"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}], "thumb": "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101", "title": "UsernameTitle", "twoFactorEnabled": false, "username": "Username", "uuid": "dae343c1f45beb4f"} "400": application/json: {"errors": []} "401": diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index aae2cb1..792bb91 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: true go: - version: 0.11.14 + version: 0.12.0 additionalDependencies: {} allowUnknownFieldsInWeakUnions: false clientServerStatusCodesAsErrors: true diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index fe42400..1cb900d 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,4 +1,4 @@ -speakeasyVersion: 1.399.2 +speakeasyVersion: 1.401.2 sources: my-source: sourceNamespace: my-source @@ -9,8 +9,8 @@ sources: - main plexapi: sourceNamespace: plexapi - sourceRevisionDigest: sha256:327e4a83099f910e042784ecc571fcbc4c9a6d8ba169b4ba181afb890a9936cc - sourceBlobDigest: sha256:a652fa39754f0c22a1454f628fe84983b34662ee8a153a3461d50b833f8bc5c2 + sourceRevisionDigest: sha256:5aa71ad96ca6de91143ee513c9880e08e555e7748fb4b5f8d069c6ab0c8f3069 + sourceBlobDigest: sha256:1cbef844e2856c2eabba4bd6d677d96c572fed13b27978d0d953aa06b224c02f tags: - latest - main @@ -18,10 +18,10 @@ targets: plexgo: source: plexapi sourceNamespace: plexapi - sourceRevisionDigest: sha256:327e4a83099f910e042784ecc571fcbc4c9a6d8ba169b4ba181afb890a9936cc - sourceBlobDigest: sha256:a652fa39754f0c22a1454f628fe84983b34662ee8a153a3461d50b833f8bc5c2 + sourceRevisionDigest: sha256:5aa71ad96ca6de91143ee513c9880e08e555e7748fb4b5f8d069c6ab0c8f3069 + sourceBlobDigest: sha256:1cbef844e2856c2eabba4bd6d677d96c572fed13b27978d0d953aa06b224c02f codeSamplesNamespace: code-samples-go-plexgo - codeSamplesRevisionDigest: sha256:4c8c0f04287fab8c7e38d97036bd7445df35a0428b0be13df8fc4f642e87b0ca + codeSamplesRevisionDigest: sha256:366a4aca940e2161009b4efe3c83407ecf0d02ac6a9e3420964c593aa24e3a34 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 5302cf3..a3e845c 100644 --- a/README.md +++ b/README.md @@ -588,7 +588,7 @@ d6 := types.MustDateFromString("2019-01-01") // returns types.Date and panics on Certain parameters are configured globally. These parameters may be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, These global values will be used as defaults on the operations that use them. When such operations are called, there is a place in each to override the global value, if needed. -For example, you can set `ClientID` to `"gcgzw5rz2xovp84b4vha3a40"` at SDK initialization and then you do not have to pass the same value on calls to operations like `GetServerResources`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration. +For example, you can set `ClientID` to `"gcgzw5rz2xovp84b4vha3a40"` at SDK initialization and then you do not have to pass the same value on calls to operations like `GetPin`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration. ### Available Globals @@ -621,7 +621,6 @@ import ( func main() { s := plexgo.New( - plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), plexgo.WithClientVersion("4.133.0"), @@ -630,11 +629,11 @@ func main() { ) ctx := context.Background() - res, err := s.Plex.GetServerResources(ctx, plexgo.String("gcgzw5rz2xovp84b4vha3a40"), operations.IncludeHTTPSOne.ToPointer(), operations.IncludeRelayOne.ToPointer(), operations.IncludeIPv6One.ToPointer()) + res, err := s.Plex.GetPin(ctx, operations.GetPinRequest{}) if err != nil { log.Fatal(err) } - if res.PlexDevices != nil { + if res.AuthPinContainer != nil { // handle response } } diff --git a/RELEASES.md b/RELEASES.md index 93545dc..2a834b0 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -892,4 +892,14 @@ Based on: ### Generated - [go v0.11.14] . ### Releases -- [Go v0.11.14] https://github.com/LukeHagar/plexgo/releases/tag/v0.11.14 - . \ No newline at end of file +- [Go v0.11.14] https://github.com/LukeHagar/plexgo/releases/tag/v0.11.14 - . + +## 2024-09-21 00:08:46 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.401.2 (2.421.3) https://github.com/speakeasy-api/speakeasy +### Generated +- [go v0.12.0] . +### Releases +- [Go v0.12.0] https://github.com/LukeHagar/plexgo/releases/tag/v0.12.0 - . \ No newline at end of file diff --git a/authentication.go b/authentication.go index 6e81226..4e90ab5 100644 --- a/authentication.go +++ b/authentication.go @@ -736,7 +736,7 @@ func (s *Authentication) GetTokenDetails(ctx context.Context, opts ...operations // PostUsersSignInData - Get User Sign In Data // Sign in user with username and password and return user data with Plex authentication token -func (s *Authentication) PostUsersSignInData(ctx context.Context, clientID *string, requestBody *operations.PostUsersSignInDataRequestBody, opts ...operations.Option) (*operations.PostUsersSignInDataResponse, error) { +func (s *Authentication) PostUsersSignInData(ctx context.Context, request *operations.PostUsersSignInDataRequestBody, opts ...operations.Option) (*operations.PostUsersSignInDataResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, OperationID: "post-users-sign-in-data", @@ -744,15 +744,6 @@ func (s *Authentication) PostUsersSignInData(ctx context.Context, clientID *stri SecuritySource: nil, } - request := operations.PostUsersSignInDataRequest{ - ClientID: clientID, - RequestBody: requestBody, - } - - globals := operations.PostUsersSignInDataGlobals{ - ClientID: s.sdkConfiguration.Globals.ClientID, - } - o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionServerURL, @@ -776,7 +767,7 @@ func (s *Authentication) PostUsersSignInData(ctx context.Context, clientID *stri return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "RequestBody", "form", `request:"mediaType=application/x-www-form-urlencoded"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "form", `request:"mediaType=application/x-www-form-urlencoded"`) if err != nil { return nil, err } @@ -800,10 +791,6 @@ func (s *Authentication) PostUsersSignInData(ctx context.Context, clientID *stri req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) req.Header.Set("Content-Type", reqContentType) - if err := utils.PopulateQueryParams(ctx, req, request, globals); err != nil { - return nil, fmt.Errorf("error populating query params: %w", err) - } - globalRetryConfig := s.sdkConfiguration.RetryConfig retryConfig := o.Retries if retryConfig == nil { diff --git a/codeSamples.yaml b/codeSamples.yaml index 76c8e65..51e8357 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -833,7 +833,7 @@ actions: ) ctx := context.Background() - res, err := s.Library.GetTopWatchedContent(ctx, operations.GetTopWatchedContentQueryParamTypeTwo, plexgo.Int64(1)) + res, err := s.Library.GetTopWatchedContent(ctx, operations.GetTopWatchedContentQueryParamTypeShow, plexgo.Int64(1)) if err != nil { log.Fatal(err) } @@ -973,7 +973,7 @@ actions: ) ctx := context.Background() - res, err := s.Library.GetMetadataChildren(ctx, 1539.14, plexgo.String("Stream")) + res, err := s.Library.GetMetadataChildren(ctx, 1539.15, plexgo.String("Stream")) if err != nil { log.Fatal(err) } @@ -1286,7 +1286,7 @@ actions: ) ctx := context.Background() - res, err := s.Library.GetSearchLibrary(ctx, 9518, operations.QueryParamTypeTwo) + res, err := s.Library.GetSearchLibrary(ctx, 9518, operations.QueryParamTypeShow) if err != nil { log.Fatal(err) } @@ -1323,9 +1323,9 @@ actions: res, err := s.Library.GetLibraryItems(ctx, operations.GetLibraryItemsRequest{ SectionKey: 9518, Tag: operations.TagEdition, - IncludeGuids: operations.IncludeGuidsOne.ToPointer(), - IncludeMeta: operations.IncludeMetaOne.ToPointer(), - Type: operations.TypeTwo, + IncludeGuids: operations.IncludeGuidsEnable.ToPointer(), + IncludeMeta: operations.IncludeMetaEnable.ToPointer(), + Type: operations.TypeShow, XPlexContainerStart: plexgo.Int(0), XPlexContainerSize: plexgo.Int(50), }) @@ -1534,7 +1534,7 @@ actions: Width: 110, Height: 165, Opacity: 100, - Blur: 20, + Blur: 0, MinSize: operations.MinSizeOne, Upscale: operations.UpscaleOne, URL: "/library/metadata/49564/thumb/1654258204", @@ -1603,7 +1603,7 @@ actions: ) ctx := context.Background() - res, err := s.Plex.GetTokenByPinID(ctx, 408895, plexgo.String("gcgzw5rz2xovp84b4vha3a40")) + res, err := s.Plex.GetTokenByPinID(ctx, 408895) if err != nil { log.Fatal(err) } @@ -1674,7 +1674,7 @@ actions: Title: "", Type: operations.CreatePlaylistQueryParamTypePhoto, Smart: operations.SmartOne, - URI: "https://inborn-brochure.biz", + URI: "https://hoarse-testing.info/", }) if err != nil { log.Fatal(err) @@ -1709,7 +1709,7 @@ actions: ) ctx := context.Background() - res, err := s.Playlists.UploadPlaylist(ctx, "/home/barkley/playlist.m3u", operations.QueryParamForceZero) + res, err := s.Playlists.UploadPlaylist(ctx, "/home/barkley/playlist.m3u", operations.QueryParamForceZero, 1) if err != nil { log.Fatal(err) } @@ -1808,7 +1808,7 @@ actions: ) ctx := context.Background() - res, err := s.Playlists.UpdatePlaylist(ctx, 3915, nil, nil) + res, err := s.Playlists.UpdatePlaylist(ctx, 3915.00, nil, nil) if err != nil { log.Fatal(err) } @@ -1875,7 +1875,7 @@ actions: ) ctx := context.Background() - res, err := s.Playlists.GetPlaylistContents(ctx, 5004.46, operations.GetPlaylistContentsQueryParamTypeTwo) + res, err := s.Playlists.GetPlaylistContents(ctx, 5004.46, operations.GetPlaylistContentsQueryParamTypeShow) if err != nil { log.Fatal(err) } @@ -1908,7 +1908,7 @@ actions: ) ctx := context.Background() - res, err := s.Playlists.AddPlaylistContents(ctx, 8502.01, "server://12345/com.plexapp.plugins.library/library/metadata/1", plexgo.Float64(123)) + res, err := s.Playlists.AddPlaylistContents(ctx, 8502.00, "server://12345/com.plexapp.plugins.library/library/metadata/1", plexgo.Float64(123)) if err != nil { log.Fatal(err) } @@ -1942,7 +1942,7 @@ actions: ) ctx := context.Background() - res, err := s.Plex.GetServerResources(ctx, plexgo.String("gcgzw5rz2xovp84b4vha3a40"), operations.IncludeHTTPSOne.ToPointer(), operations.IncludeRelayOne.ToPointer(), operations.IncludeIPv6One.ToPointer()) + res, err := s.Plex.GetServerResources(ctx, operations.IncludeHTTPSEnable.ToPointer(), operations.IncludeRelayEnable.ToPointer(), operations.IncludeIPv6Enable.ToPointer()) if err != nil { log.Fatal(err) } @@ -2008,7 +2008,7 @@ actions: ) ctx := context.Background() - res, err := s.Authentication.GetSourceConnectionInformation(ctx, "server://client-identifier") + res, err := s.Authentication.GetSourceConnectionInformation(ctx, "provider://provider-identifier") if err != nil { log.Fatal(err) } @@ -2474,7 +2474,7 @@ actions: ) ctx := context.Background() - res, err := s.Authentication.PostUsersSignInData(ctx, plexgo.String("gcgzw5rz2xovp84b4vha3a40"), &operations.PostUsersSignInDataRequestBody{ + res, err := s.Authentication.PostUsersSignInData(ctx, &operations.PostUsersSignInDataRequestBody{ Login: "username@email.com", Password: "password123", VerificationCode: plexgo.String("123456"), diff --git a/docs/models/operations/autoselectsubtitle.md b/docs/models/operations/autoselectsubtitle.md index dab0b29..4069275 100644 --- a/docs/models/operations/autoselectsubtitle.md +++ b/docs/models/operations/autoselectsubtitle.md @@ -5,7 +5,7 @@ The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign aud ## Values -| Name | Value | -| ------------------------ | ------------------------ | -| `AutoSelectSubtitleZero` | 0 | -| `AutoSelectSubtitleOne` | 1 | \ No newline at end of file +| Name | Value | +| --------------------------- | --------------------------- | +| `AutoSelectSubtitleDisable` | 0 | +| `AutoSelectSubtitleEnable` | 1 | \ No newline at end of file diff --git a/docs/models/operations/connections.md b/docs/models/operations/connections.md index 9346cc3..0726348 100644 --- a/docs/models/operations/connections.md +++ b/docs/models/operations/connections.md @@ -3,12 +3,12 @@ ## Fields -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `Protocol` | *string* | :heavy_check_mark: | N/A | -| `Address` | *string* | :heavy_check_mark: | N/A | -| `Port` | *float64* | :heavy_check_mark: | N/A | -| `URI` | *string* | :heavy_check_mark: | N/A | -| `Local` | *bool* | :heavy_check_mark: | N/A | -| `Relay` | *bool* | :heavy_check_mark: | N/A | -| `IPv6` | *bool* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | +| `Protocol` | [operations.Protocol](../../models/operations/protocol.md) | :heavy_check_mark: | The protocol used for the connection (http, https, etc) | +| `Address` | *string* | :heavy_check_mark: | The (ip) address or domain name used for the connection | +| `Port` | *int* | :heavy_check_mark: | The port used for the connection | +| `URI` | *string* | :heavy_check_mark: | The full URI of the connection | +| `Local` | *bool* | :heavy_check_mark: | If the connection is local address | +| `Relay` | *bool* | :heavy_check_mark: | If the connection is relayed through plex.direct | +| `IPv6` | *bool* | :heavy_check_mark: | If the connection is using IPv6 | \ No newline at end of file diff --git a/docs/models/operations/defaultsubtitleaccessibility.md b/docs/models/operations/defaultsubtitleaccessibility.md index c76ea9f..0def9c3 100644 --- a/docs/models/operations/defaultsubtitleaccessibility.md +++ b/docs/models/operations/defaultsubtitleaccessibility.md @@ -1,11 +1,11 @@ # 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 shown non-SDH subtitles) +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) ## Values -| Name | Value | -| ---------------------------------- | ---------------------------------- | -| `DefaultSubtitleAccessibilityZero` | 0 | -| `DefaultSubtitleAccessibilityOne` | 1 | \ No newline at end of file +| Name | Value | +| ------------------------------------- | ------------------------------------- | +| `DefaultSubtitleAccessibilityDisable` | 0 | +| `DefaultSubtitleAccessibilityEnable` | 1 | \ No newline at end of file diff --git a/docs/models/operations/defaultsubtitleforced.md b/docs/models/operations/defaultsubtitleforced.md index 61810cf..b27ccf2 100644 --- a/docs/models/operations/defaultsubtitleforced.md +++ b/docs/models/operations/defaultsubtitleforced.md @@ -5,7 +5,7 @@ The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer ## Values -| Name | Value | -| --------------------------- | --------------------------- | -| `DefaultSubtitleForcedZero` | 0 | -| `DefaultSubtitleForcedOne` | 1 | \ No newline at end of file +| Name | Value | +| ------------------------------ | ------------------------------ | +| `DefaultSubtitleForcedDisable` | 0 | +| `DefaultSubtitleForcedEnable` | 1 | \ No newline at end of file diff --git a/docs/models/operations/getalllibrariesdirectory.md b/docs/models/operations/getalllibrariesdirectory.md index 6d1f048..faa0806 100644 --- a/docs/models/operations/getalllibrariesdirectory.md +++ b/docs/models/operations/getalllibrariesdirectory.md @@ -5,24 +5,24 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| `AllowSync` | **bool* | :heavy_minus_sign: | N/A | true | -| `Art` | **string* | :heavy_minus_sign: | N/A | /:/resources/movie-fanart.jpg | -| `Composite` | **string* | :heavy_minus_sign: | N/A | /library/sections/1/composite/1705615584 | -| `Filters` | **bool* | :heavy_minus_sign: | N/A | true | -| `Refreshing` | **bool* | :heavy_minus_sign: | N/A | false | -| `Thumb` | **string* | :heavy_minus_sign: | N/A | /:/resources/movie.png | -| `Key` | **string* | :heavy_minus_sign: | N/A | 1 | -| `Type` | **string* | :heavy_minus_sign: | N/A | movie | -| `Title` | **string* | :heavy_minus_sign: | N/A | Movies | -| `Agent` | **string* | :heavy_minus_sign: | N/A | tv.plex.agents.movie | -| `Scanner` | **string* | :heavy_minus_sign: | N/A | Plex Movie | -| `Language` | **string* | :heavy_minus_sign: | N/A | en-US | -| `UUID` | **string* | :heavy_minus_sign: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 | -| `UpdatedAt` | **int64* | :heavy_minus_sign: | Unix epoch datetime | 1556281940 | -| `CreatedAt` | **int64* | :heavy_minus_sign: | Unix epoch datetime | 1556281940 | -| `ScannedAt` | **int64* | :heavy_minus_sign: | Unix epoch datetime | 1556281940 | -| `Content` | **bool* | :heavy_minus_sign: | N/A | true | -| `Directory` | **bool* | :heavy_minus_sign: | N/A | true | -| `ContentChangedAt` | **int* | :heavy_minus_sign: | N/A | 3192854 | -| `Hidden` | **int* | :heavy_minus_sign: | N/A | 0 | -| `Location` | [][operations.Location](../../models/operations/location.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `AllowSync` | *bool* | :heavy_check_mark: | N/A | true | +| `Art` | *string* | :heavy_check_mark: | N/A | /:/resources/movie-fanart.jpg | +| `Composite` | *string* | :heavy_check_mark: | N/A | /library/sections/1/composite/1705615584 | +| `Filters` | *bool* | :heavy_check_mark: | N/A | true | +| `Refreshing` | *bool* | :heavy_check_mark: | N/A | false | +| `Thumb` | *string* | :heavy_check_mark: | N/A | /:/resources/movie.png | +| `Key` | *string* | :heavy_check_mark: | N/A | 1 | +| `Type` | *string* | :heavy_check_mark: | N/A | movie | +| `Title` | *string* | :heavy_check_mark: | N/A | Movies | +| `Agent` | *string* | :heavy_check_mark: | N/A | tv.plex.agents.movie | +| `Scanner` | *string* | :heavy_check_mark: | N/A | Plex Movie | +| `Language` | *string* | :heavy_check_mark: | N/A | en-US | +| `UUID` | *string* | :heavy_check_mark: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 | +| `UpdatedAt` | *int64* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 | +| `CreatedAt` | *int64* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 | +| `ScannedAt` | *int64* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 | +| `Content` | *bool* | :heavy_check_mark: | N/A | true | +| `Directory` | *bool* | :heavy_check_mark: | N/A | true | +| `ContentChangedAt` | *int* | :heavy_check_mark: | N/A | 3192854 | +| `Hidden` | *int* | :heavy_check_mark: | N/A | 0 | +| `Location` | [][operations.Location](../../models/operations/location.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/getalllibrariesmediacontainer.md b/docs/models/operations/getalllibrariesmediacontainer.md index ee16049..21b84f5 100644 --- a/docs/models/operations/getalllibrariesmediacontainer.md +++ b/docs/models/operations/getalllibrariesmediacontainer.md @@ -8,4 +8,4 @@ | `Size` | *int* | :heavy_check_mark: | N/A | 5 | | `AllowSync` | *bool* | :heavy_check_mark: | N/A | false | | `Title1` | *string* | :heavy_check_mark: | N/A | Plex Library | -| `Directory` | [][operations.GetAllLibrariesDirectory](../../models/operations/getalllibrariesdirectory.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `Directory` | [][operations.GetAllLibrariesDirectory](../../models/operations/getalllibrariesdirectory.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/getalllibrariesresponsebody.md b/docs/models/operations/getalllibrariesresponsebody.md index 13a6f10..4937647 100644 --- a/docs/models/operations/getalllibrariesresponsebody.md +++ b/docs/models/operations/getalllibrariesresponsebody.md @@ -5,6 +5,6 @@ The libraries available on the Server ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `MediaContainer` | [*operations.GetAllLibrariesMediaContainer](../../models/operations/getalllibrariesmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `MediaContainer` | [operations.GetAllLibrariesMediaContainer](../../models/operations/getalllibrariesmediacontainer.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getlibraryitemsfield.md b/docs/models/operations/getlibraryitemsfield.md new file mode 100644 index 0000000..824cf91 --- /dev/null +++ b/docs/models/operations/getlibraryitemsfield.md @@ -0,0 +1,11 @@ +# GetLibraryItemsField + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `Key` | *string* | :heavy_check_mark: | N/A | show.title | +| `Title` | *string* | :heavy_check_mark: | N/A | Show Title | +| `Type` | *string* | :heavy_check_mark: | N/A | string | +| `SubType` | **string* | :heavy_minus_sign: | N/A | rating | \ No newline at end of file diff --git a/docs/models/operations/getlibraryitemsfieldtype.md b/docs/models/operations/getlibraryitemsfieldtype.md new file mode 100644 index 0000000..0ba7102 --- /dev/null +++ b/docs/models/operations/getlibraryitemsfieldtype.md @@ -0,0 +1,9 @@ +# GetLibraryItemsFieldType + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `Type` | *string* | :heavy_check_mark: | N/A | tag | +| `Operator` | [][operations.GetLibraryItemsOperator](../../models/operations/getlibraryitemsoperator.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/getlibraryitemsfilter.md b/docs/models/operations/getlibraryitemsfilter.md new file mode 100644 index 0000000..9585aa3 --- /dev/null +++ b/docs/models/operations/getlibraryitemsfilter.md @@ -0,0 +1,12 @@ +# GetLibraryItemsFilter + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- | +| `Filter` | *string* | :heavy_check_mark: | N/A | genre | +| `FilterType` | *string* | :heavy_check_mark: | N/A | string | +| `Key` | *string* | :heavy_check_mark: | N/A | /library/sections/2/genre?type=2 | +| `Title` | *string* | :heavy_check_mark: | N/A | Genre | +| `Type` | *string* | :heavy_check_mark: | N/A | filter | \ No newline at end of file diff --git a/docs/models/operations/getlibraryitemsmediacontainer.md b/docs/models/operations/getlibraryitemsmediacontainer.md index c0aa430..9e3437c 100644 --- a/docs/models/operations/getlibraryitemsmediacontainer.md +++ b/docs/models/operations/getlibraryitemsmediacontainer.md @@ -3,21 +3,22 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `Size` | **int* | :heavy_minus_sign: | N/A | 70 | -| `AllowSync` | **bool* | :heavy_minus_sign: | N/A | true | -| `Art` | **string* | :heavy_minus_sign: | N/A | /:/resources/movie-fanart.jpg | -| `Identifier` | **string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `LibrarySectionID` | [*operations.LibrarySectionID](../../models/operations/librarysectionid.md) | :heavy_minus_sign: | N/A | | -| `LibrarySectionTitle` | **string* | :heavy_minus_sign: | N/A | Movies | -| `LibrarySectionUUID` | **string* | :heavy_minus_sign: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 | -| `MediaTagPrefix` | **string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | -| `MediaTagVersion` | **int* | :heavy_minus_sign: | N/A | 1701731894 | -| `Thumb` | **string* | :heavy_minus_sign: | N/A | /:/resources/movie.png | -| `Title1` | **string* | :heavy_minus_sign: | N/A | Movies | -| `Title2` | **string* | :heavy_minus_sign: | N/A | Recently Released | -| `ViewGroup` | **string* | :heavy_minus_sign: | N/A | movie | -| `ViewMode` | **int* | :heavy_minus_sign: | N/A | 65592 | -| `MixedParents` | **bool* | :heavy_minus_sign: | N/A | true | -| `Metadata` | [][operations.GetLibraryItemsMetadata](../../models/operations/getlibraryitemsmetadata.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `Size` | *int* | :heavy_check_mark: | N/A | 70 | +| `AllowSync` | *bool* | :heavy_check_mark: | N/A | true | +| `Art` | *string* | :heavy_check_mark: | N/A | /:/resources/movie-fanart.jpg | +| `Identifier` | *string* | :heavy_check_mark: | N/A | com.plexapp.plugins.library | +| `LibrarySectionID` | [operations.LibrarySectionID](../../models/operations/librarysectionid.md) | :heavy_check_mark: | N/A | | +| `LibrarySectionTitle` | *string* | :heavy_check_mark: | N/A | Movies | +| `LibrarySectionUUID` | *string* | :heavy_check_mark: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 | +| `MediaTagPrefix` | *string* | :heavy_check_mark: | N/A | /system/bundle/media/flags/ | +| `MediaTagVersion` | *int* | :heavy_check_mark: | N/A | 1701731894 | +| `Thumb` | *string* | :heavy_check_mark: | N/A | /:/resources/movie.png | +| `Title1` | *string* | :heavy_check_mark: | N/A | Movies | +| `Title2` | *string* | :heavy_check_mark: | N/A | Recently Released | +| `ViewGroup` | *string* | :heavy_check_mark: | N/A | movie | +| `ViewMode` | **int* | :heavy_minus_sign: | N/A | 65592 | +| `MixedParents` | **bool* | :heavy_minus_sign: | N/A | true | +| `Metadata` | [][operations.GetLibraryItemsMetadata](../../models/operations/getlibraryitemsmetadata.md) | :heavy_minus_sign: | N/A | | +| `Meta` | [*operations.Meta](../../models/operations/meta.md) | :heavy_minus_sign: | The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
| | \ No newline at end of file diff --git a/docs/models/operations/getlibraryitemsmetadata.md b/docs/models/operations/getlibraryitemsmetadata.md index c0d8923..667c5c7 100644 --- a/docs/models/operations/getlibraryitemsmetadata.md +++ b/docs/models/operations/getlibraryitemsmetadata.md @@ -5,21 +5,21 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `RatingKey` | **string* | :heavy_minus_sign: | N/A | 58683 | -| `Key` | **string* | :heavy_minus_sign: | N/A | /library/metadata/58683 | -| `GUID` | **string* | :heavy_minus_sign: | N/A | plex://movie/5d7768ba96b655001fdc0408 | +| `RatingKey` | *string* | :heavy_check_mark: | N/A | 58683 | +| `Key` | *string* | :heavy_check_mark: | N/A | /library/metadata/58683 | +| `GUID` | *string* | :heavy_check_mark: | N/A | plex://movie/5d7768ba96b655001fdc0408 | | `Studio` | **string* | :heavy_minus_sign: | N/A | 20th Century Studios | -| `Type` | **string* | :heavy_minus_sign: | N/A | movie | -| `Title` | **string* | :heavy_minus_sign: | N/A | Avatar: The Way of Water | +| `Type` | *string* | :heavy_check_mark: | N/A | movie | +| `Title` | *string* | :heavy_check_mark: | N/A | Avatar: The Way of Water | | `ContentRating` | **string* | :heavy_minus_sign: | N/A | PG-13 | | `Summary` | **string* | :heavy_minus_sign: | N/A | Jake Sully lives with his newfound family formed on the extrasolar moon Pandora. Once a familiar threat returns to finish what was previously started, Jake must work with Neytiri and the army of the Na'vi race to protect their home. | | `Rating` | **float64* | :heavy_minus_sign: | N/A | 7.6 | | `AudienceRating` | **float64* | :heavy_minus_sign: | N/A | 9.2 | -| `Year` | **int* | :heavy_minus_sign: | N/A | 2022 | +| `Year` | *int* | :heavy_check_mark: | N/A | 2022 | | `Tagline` | **string* | :heavy_minus_sign: | N/A | Return to Pandora. | | `Thumb` | **string* | :heavy_minus_sign: | N/A | /library/metadata/58683/thumb/1703239236 | | `Art` | **string* | :heavy_minus_sign: | N/A | /library/metadata/58683/art/1703239236 | -| `Duration` | **int* | :heavy_minus_sign: | N/A | 11558112 | +| `Duration` | *int* | :heavy_check_mark: | N/A | 11558112 | | `OriginallyAvailableAt` | [*types.Date](../../types/date.md) | :heavy_minus_sign: | N/A | 2022-12-14 00:00:00 +0000 UTC | | `AddedAt` | **int* | :heavy_minus_sign: | N/A | 1680457607 | | `UpdatedAt` | **int* | :heavy_minus_sign: | N/A | 1703239236 | @@ -34,12 +34,13 @@ | `GrandparentThumb` | **string* | :heavy_minus_sign: | N/A | /library/metadata/66/thumb/1705716261 | | `GrandparentArt` | **string* | :heavy_minus_sign: | N/A | /library/metadata/66/art/1705716261 | | `GrandparentTheme` | **string* | :heavy_minus_sign: | N/A | /library/metadata/66/theme/1705716261 | -| `Media` | [][operations.GetLibraryItemsMedia](../../models/operations/getlibraryitemsmedia.md) | :heavy_minus_sign: | N/A | | +| `Media` | [][operations.GetLibraryItemsMedia](../../models/operations/getlibraryitemsmedia.md) | :heavy_check_mark: | N/A | | | `Genre` | [][operations.GetLibraryItemsGenre](../../models/operations/getlibraryitemsgenre.md) | :heavy_minus_sign: | N/A | | | `Country` | [][operations.GetLibraryItemsCountry](../../models/operations/getlibraryitemscountry.md) | :heavy_minus_sign: | N/A | | | `Director` | [][operations.GetLibraryItemsDirector](../../models/operations/getlibraryitemsdirector.md) | :heavy_minus_sign: | N/A | | | `Writer` | [][operations.GetLibraryItemsWriter](../../models/operations/getlibraryitemswriter.md) | :heavy_minus_sign: | N/A | | | `Role` | [][operations.GetLibraryItemsRole](../../models/operations/getlibraryitemsrole.md) | :heavy_minus_sign: | N/A | | +| `MediaGUID` | [][operations.MediaGUID](../../models/operations/mediaguid.md) | :heavy_minus_sign: | The Guid object is only included in the response if the `includeGuids` parameter is set to `1`.
| | | `TitleSort` | **string* | :heavy_minus_sign: | N/A | Whale | | `ViewCount` | **int* | :heavy_minus_sign: | N/A | 1 | | `LastViewedAt` | **int* | :heavy_minus_sign: | N/A | 1682752242 | diff --git a/docs/models/operations/getlibraryitemsoperator.md b/docs/models/operations/getlibraryitemsoperator.md new file mode 100644 index 0000000..58c7b30 --- /dev/null +++ b/docs/models/operations/getlibraryitemsoperator.md @@ -0,0 +1,9 @@ +# GetLibraryItemsOperator + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `Key` | *string* | :heavy_check_mark: | N/A | = | +| `Title` | *string* | :heavy_check_mark: | N/A | is | \ No newline at end of file diff --git a/docs/models/operations/getlibraryitemssort.md b/docs/models/operations/getlibraryitemssort.md new file mode 100644 index 0000000..7d70877 --- /dev/null +++ b/docs/models/operations/getlibraryitemssort.md @@ -0,0 +1,13 @@ +# GetLibraryItemsSort + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | +| `Default` | **string* | :heavy_minus_sign: | N/A | asc | +| `DefaultDirection` | *string* | :heavy_check_mark: | N/A | asc | +| `DescKey` | **string* | :heavy_minus_sign: | N/A | titleSort:desc | +| `FirstCharacterKey` | **string* | :heavy_minus_sign: | N/A | /library/sections/2/firstCharacter | +| `Key` | *string* | :heavy_check_mark: | N/A | titleSort | +| `Title` | *string* | :heavy_check_mark: | N/A | Title | \ No newline at end of file diff --git a/docs/models/operations/getlibraryitemstype.md b/docs/models/operations/getlibraryitemstype.md new file mode 100644 index 0000000..73566dc --- /dev/null +++ b/docs/models/operations/getlibraryitemstype.md @@ -0,0 +1,14 @@ +# GetLibraryItemsType + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `Key` | *string* | :heavy_check_mark: | N/A | /library/sections/2/all?type=2 | +| `Type` | *string* | :heavy_check_mark: | N/A | show | +| `Title` | *string* | :heavy_check_mark: | N/A | TV Shows | +| `Active` | *bool* | :heavy_check_mark: | N/A | false | +| `Filter` | [][operations.GetLibraryItemsFilter](../../models/operations/getlibraryitemsfilter.md) | :heavy_minus_sign: | N/A | | +| `Sort` | [][operations.GetLibraryItemsSort](../../models/operations/getlibraryitemssort.md) | :heavy_minus_sign: | N/A | | +| `Field` | [][operations.GetLibraryItemsField](../../models/operations/getlibraryitemsfield.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/getpinglobals.md b/docs/models/operations/getpinglobals.md index 6d66b4f..619a121 100644 --- a/docs/models/operations/getpinglobals.md +++ b/docs/models/operations/getpinglobals.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ClientID` | **string* | :heavy_minus_sign: | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
| gcgzw5rz2xovp84b4vha3a40 | -| `ClientName` | **string* | :heavy_minus_sign: | N/A | Plex Web | -| `DeviceName` | **string* | :heavy_minus_sign: | N/A | Linux | -| `ClientVersion` | **string* | :heavy_minus_sign: | N/A | 4.133.0 | -| `ClientPlatform` | **string* | :heavy_minus_sign: | N/A | Chrome | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `ClientName` | **string* | :heavy_minus_sign: | N/A | Plex Web | +| `DeviceName` | **string* | :heavy_minus_sign: | N/A | Linux | +| `ClientVersion` | **string* | :heavy_minus_sign: | N/A | 4.133.0 | +| `ClientPlatform` | **string* | :heavy_minus_sign: | N/A | Chrome | \ No newline at end of file diff --git a/docs/models/operations/getpinrequest.md b/docs/models/operations/getpinrequest.md index 10b79c2..5c1c910 100644 --- a/docs/models/operations/getpinrequest.md +++ b/docs/models/operations/getpinrequest.md @@ -3,11 +3,10 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Strong` | **bool* | :heavy_minus_sign: | Determines the kind of code returned by the API call
Strong codes are used for Pin authentication flows
Non-Strong codes are used for `Plex.tv/link`
| | -| `ClientID` | **string* | :heavy_minus_sign: | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
| gcgzw5rz2xovp84b4vha3a40 | -| `ClientName` | **string* | :heavy_minus_sign: | N/A | Plex Web | -| `DeviceName` | **string* | :heavy_minus_sign: | N/A | Linux | -| `ClientVersion` | **string* | :heavy_minus_sign: | N/A | 4.133.0 | -| `ClientPlatform` | **string* | :heavy_minus_sign: | N/A | Chrome | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Strong` | **bool* | :heavy_minus_sign: | Determines the kind of code returned by the API call
Strong codes are used for Pin authentication flows
Non-Strong codes are used for `Plex.tv/link`
| | +| `ClientName` | **string* | :heavy_minus_sign: | N/A | Plex Web | +| `DeviceName` | **string* | :heavy_minus_sign: | N/A | Linux | +| `ClientVersion` | **string* | :heavy_minus_sign: | N/A | 4.133.0 | +| `ClientPlatform` | **string* | :heavy_minus_sign: | N/A | Chrome | \ No newline at end of file diff --git a/docs/models/operations/getplaylistcontentsqueryparamtype.md b/docs/models/operations/getplaylistcontentsqueryparamtype.md index dfa0e01..5c8c2f9 100644 --- a/docs/models/operations/getplaylistcontentsqueryparamtype.md +++ b/docs/models/operations/getplaylistcontentsqueryparamtype.md @@ -11,9 +11,9 @@ E.g. A movie library will not return anything with type 3 as there are no season ## Values -| Name | Value | -| ---------------------------------------- | ---------------------------------------- | -| `GetPlaylistContentsQueryParamTypeOne` | 1 | -| `GetPlaylistContentsQueryParamTypeTwo` | 2 | -| `GetPlaylistContentsQueryParamTypeThree` | 3 | -| `GetPlaylistContentsQueryParamTypeFour` | 4 | \ No newline at end of file +| Name | Value | +| ------------------------------------------ | ------------------------------------------ | +| `GetPlaylistContentsQueryParamTypeMovie` | 1 | +| `GetPlaylistContentsQueryParamTypeShow` | 2 | +| `GetPlaylistContentsQueryParamTypeSeason` | 3 | +| `GetPlaylistContentsQueryParamTypeEpisode` | 4 | \ No newline at end of file diff --git a/docs/models/operations/getserverresourcesglobals.md b/docs/models/operations/getserverresourcesglobals.md deleted file mode 100644 index d540ff2..0000000 --- a/docs/models/operations/getserverresourcesglobals.md +++ /dev/null @@ -1,8 +0,0 @@ -# GetServerResourcesGlobals - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ClientID` | **string* | :heavy_minus_sign: | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
| gcgzw5rz2xovp84b4vha3a40 | \ No newline at end of file diff --git a/docs/models/operations/getserverresourcesrequest.md b/docs/models/operations/getserverresourcesrequest.md index d64c73c..9e4aff7 100644 --- a/docs/models/operations/getserverresourcesrequest.md +++ b/docs/models/operations/getserverresourcesrequest.md @@ -3,9 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ClientID` | **string* | :heavy_minus_sign: | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
| gcgzw5rz2xovp84b4vha3a40 | -| `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 +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `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/models/operations/gettokenbypinidglobals.md b/docs/models/operations/gettokenbypinidglobals.md deleted file mode 100644 index 8592dbf..0000000 --- a/docs/models/operations/gettokenbypinidglobals.md +++ /dev/null @@ -1,8 +0,0 @@ -# GetTokenByPinIDGlobals - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ClientID` | **string* | :heavy_minus_sign: | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
| gcgzw5rz2xovp84b4vha3a40 | \ No newline at end of file diff --git a/docs/models/operations/gettokenbypinidrequest.md b/docs/models/operations/gettokenbypinidrequest.md index 9186152..1ed6acd 100644 --- a/docs/models/operations/gettokenbypinidrequest.md +++ b/docs/models/operations/gettokenbypinidrequest.md @@ -3,7 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ClientID` | **string* | :heavy_minus_sign: | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
| gcgzw5rz2xovp84b4vha3a40 | -| `PinID` | *int64* | :heavy_check_mark: | The PinID to retrieve an access token for | | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | +| `PinID` | *int64* | :heavy_check_mark: | The PinID to retrieve an access token for | \ No newline at end of file diff --git a/docs/models/operations/gettokendetailsuserplexaccount.md b/docs/models/operations/gettokendetailsuserplexaccount.md index bd753fb..e55f485 100644 --- a/docs/models/operations/gettokendetailsuserplexaccount.md +++ b/docs/models/operations/gettokendetailsuserplexaccount.md @@ -26,7 +26,7 @@ Logged in user details | `HomeAdmin` | **bool* | :heavy_minus_sign: | If the account is the Plex Home admin | | | `HomeSize` | *int* | :heavy_check_mark: | The number of accounts in the Plex Home | 1 | | `ID` | *int* | :heavy_check_mark: | The Plex account ID | 13692262 | -| `JoinedAt` | *int64* | :heavy_check_mark: | Unix epoch datetime | 1556281940 | +| `JoinedAt` | *int64* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 | | `Locale` | *string* | :heavy_check_mark: | The account locale | | | `MailingListActive` | **bool* | :heavy_minus_sign: | If you are subscribed to the Plex newsletter | | | `MailingListStatus` | [operations.MailingListStatus](../../models/operations/mailingliststatus.md) | :heavy_check_mark: | Your current mailing list status | | @@ -34,7 +34,7 @@ Logged in user details | ~~`Pin`~~ | **string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

[Might be removed] The hashed Plex Home PIN | | | `Profile` | [operations.UserProfile](../../models/operations/userprofile.md) | :heavy_check_mark: | N/A | | | `Protected` | **bool* | :heavy_minus_sign: | If the account has a Plex Home PIN enabled | | -| `RememberExpiresAt` | *int64* | :heavy_check_mark: | Unix epoch datetime | 1556281940 | +| `RememberExpiresAt` | *int64* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 | | `Restricted` | **bool* | :heavy_minus_sign: | If the account is a Plex Home managed user | | | `Roles` | []*string* | :heavy_minus_sign: | [Might be removed] List of account roles. Plexpass membership listed here | | | `ScrobbleTypes` | *string* | :heavy_check_mark: | Unknown | | diff --git a/docs/models/operations/gettopwatchedcontentqueryparamtype.md b/docs/models/operations/gettopwatchedcontentqueryparamtype.md index 1300323..0f2bf94 100644 --- a/docs/models/operations/gettopwatchedcontentqueryparamtype.md +++ b/docs/models/operations/gettopwatchedcontentqueryparamtype.md @@ -11,9 +11,9 @@ E.g. A movie library will not return anything with type 3 as there are no season ## Values -| Name | Value | -| ----------------------------------------- | ----------------------------------------- | -| `GetTopWatchedContentQueryParamTypeOne` | 1 | -| `GetTopWatchedContentQueryParamTypeTwo` | 2 | -| `GetTopWatchedContentQueryParamTypeThree` | 3 | -| `GetTopWatchedContentQueryParamTypeFour` | 4 | \ No newline at end of file +| Name | Value | +| ------------------------------------------- | ------------------------------------------- | +| `GetTopWatchedContentQueryParamTypeMovie` | 1 | +| `GetTopWatchedContentQueryParamTypeShow` | 2 | +| `GetTopWatchedContentQueryParamTypeSeason` | 3 | +| `GetTopWatchedContentQueryParamTypeEpisode` | 4 | \ No newline at end of file diff --git a/docs/models/operations/includeguids.md b/docs/models/operations/includeguids.md index 595767e..da76a94 100644 --- a/docs/models/operations/includeguids.md +++ b/docs/models/operations/includeguids.md @@ -6,7 +6,7 @@ Adds the Guids object to the response ## Values -| Name | Value | -| ------------------ | ------------------ | -| `IncludeGuidsZero` | 0 | -| `IncludeGuidsOne` | 1 | \ No newline at end of file +| Name | Value | +| --------------------- | --------------------- | +| `IncludeGuidsDisable` | 0 | +| `IncludeGuidsEnable` | 1 | \ No newline at end of file diff --git a/docs/models/operations/includehttps.md b/docs/models/operations/includehttps.md index 8141d1e..8b633bc 100644 --- a/docs/models/operations/includehttps.md +++ b/docs/models/operations/includehttps.md @@ -5,7 +5,7 @@ Include Https entries in the results ## Values -| Name | Value | -| ------------------ | ------------------ | -| `IncludeHTTPSZero` | 0 | -| `IncludeHTTPSOne` | 1 | \ No newline at end of file +| Name | Value | +| --------------------- | --------------------- | +| `IncludeHTTPSDisable` | 0 | +| `IncludeHTTPSEnable` | 1 | \ No newline at end of file diff --git a/docs/models/operations/includeipv6.md b/docs/models/operations/includeipv6.md index 77f8df2..4a684d0 100644 --- a/docs/models/operations/includeipv6.md +++ b/docs/models/operations/includeipv6.md @@ -5,7 +5,7 @@ Include IPv6 entries in the results ## Values -| Name | Value | -| ----------------- | ----------------- | -| `IncludeIPv6Zero` | 0 | -| `IncludeIPv6One` | 1 | \ No newline at end of file +| Name | Value | +| -------------------- | -------------------- | +| `IncludeIPv6Disable` | 0 | +| `IncludeIPv6Enable` | 1 | \ No newline at end of file diff --git a/docs/models/operations/includemeta.md b/docs/models/operations/includemeta.md index 4c5784e..7d36eef 100644 --- a/docs/models/operations/includemeta.md +++ b/docs/models/operations/includemeta.md @@ -6,7 +6,7 @@ Adds the Meta object to the response ## Values -| Name | Value | -| ----------------- | ----------------- | -| `IncludeMetaZero` | 0 | -| `IncludeMetaOne` | 1 | \ No newline at end of file +| Name | Value | +| -------------------- | -------------------- | +| `IncludeMetaDisable` | 0 | +| `IncludeMetaEnable` | 1 | \ No newline at end of file diff --git a/docs/models/operations/includerelay.md b/docs/models/operations/includerelay.md index 03e52c2..8271a3c 100644 --- a/docs/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 ## Values -| Name | Value | -| ------------------ | ------------------ | -| `IncludeRelayZero` | 0 | -| `IncludeRelayOne` | 1 | \ No newline at end of file +| Name | Value | +| --------------------- | --------------------- | +| `IncludeRelayDisable` | 0 | +| `IncludeRelayEnable` | 1 | \ No newline at end of file diff --git a/docs/models/operations/location.md b/docs/models/operations/location.md index 62768c5..2f8684d 100644 --- a/docs/models/operations/location.md +++ b/docs/models/operations/location.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | Example | | ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | -| `ID` | **int* | :heavy_minus_sign: | N/A | 1 | -| `Path` | **string* | :heavy_minus_sign: | N/A | /movies | \ No newline at end of file +| `ID` | *int* | :heavy_check_mark: | N/A | 1 | +| `Path` | *string* | :heavy_check_mark: | N/A | /movies | \ No newline at end of file diff --git a/docs/models/operations/mediaguid.md b/docs/models/operations/mediaguid.md new file mode 100644 index 0000000..42805f6 --- /dev/null +++ b/docs/models/operations/mediaguid.md @@ -0,0 +1,8 @@ +# MediaGUID + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `ID` | *string* | :heavy_check_mark: | Can be one of the following formats:
imdb://tt13015952, tmdb://2434012, tvdb://7945991
| imdb://tt13015952 | \ No newline at end of file diff --git a/docs/models/operations/mediareviewsvisibility.md b/docs/models/operations/mediareviewsvisibility.md index 146ea16..5a82305 100644 --- a/docs/models/operations/mediareviewsvisibility.md +++ b/docs/models/operations/mediareviewsvisibility.md @@ -1,9 +1,11 @@ # MediaReviewsVisibility +Whether or not the account has media reviews visibility enabled + ## Values -| Name | Value | -| ---------------------------- | ---------------------------- | -| `MediaReviewsVisibilityZero` | 0 | -| `MediaReviewsVisibilityOne` | 1 | \ No newline at end of file +| Name | Value | +| ------------------------------- | ------------------------------- | +| `MediaReviewsVisibilityDisable` | 0 | +| `MediaReviewsVisibilityEnable` | 1 | \ No newline at end of file diff --git a/docs/models/operations/meta.md b/docs/models/operations/meta.md new file mode 100644 index 0000000..41d0bb3 --- /dev/null +++ b/docs/models/operations/meta.md @@ -0,0 +1,12 @@ +# Meta + +The Meta object is only included in the response if the `includeMeta` parameter is set to `1`. + + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `Type` | [][operations.GetLibraryItemsType](../../models/operations/getlibraryitemstype.md) | :heavy_minus_sign: | N/A | +| `FieldType` | [][operations.GetLibraryItemsFieldType](../../models/operations/getlibraryitemsfieldtype.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/plexdevice.md b/docs/models/operations/plexdevice.md index 0b30dc5..24e3be3 100644 --- a/docs/models/operations/plexdevice.md +++ b/docs/models/operations/plexdevice.md @@ -3,29 +3,29 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `Name` | *string* | :heavy_check_mark: | N/A | -| `Product` | *string* | :heavy_check_mark: | N/A | -| `ProductVersion` | *string* | :heavy_check_mark: | N/A | -| `Platform` | *string* | :heavy_check_mark: | N/A | -| `PlatformVersion` | *string* | :heavy_check_mark: | N/A | -| `Device` | *string* | :heavy_check_mark: | N/A | -| `ClientIdentifier` | *string* | :heavy_check_mark: | N/A | -| `CreatedAt` | [time.Time](https://pkg.go.dev/time#Time) | :heavy_check_mark: | N/A | -| `LastSeenAt` | [time.Time](https://pkg.go.dev/time#Time) | :heavy_check_mark: | N/A | -| `Provides` | *string* | :heavy_check_mark: | N/A | -| `OwnerID` | *int64* | :heavy_check_mark: | ownerId is null when the device is owned by the token used to send the request | -| `SourceTitle` | *string* | :heavy_check_mark: | N/A | -| `PublicAddress` | *string* | :heavy_check_mark: | N/A | -| `AccessToken` | *string* | :heavy_check_mark: | N/A | -| `Owned` | *bool* | :heavy_check_mark: | N/A | -| `Home` | *bool* | :heavy_check_mark: | N/A | -| `Synced` | *bool* | :heavy_check_mark: | N/A | -| `Relay` | *bool* | :heavy_check_mark: | N/A | -| `Presence` | *bool* | :heavy_check_mark: | N/A | -| `HTTPSRequired` | *bool* | :heavy_check_mark: | N/A | -| `PublicAddressMatches` | *bool* | :heavy_check_mark: | N/A | -| `DNSRebindingProtection` | *bool* | :heavy_check_mark: | N/A | -| `NatLoopbackSupported` | *bool* | :heavy_check_mark: | N/A | -| `Connections` | [][operations.Connections](../../models/operations/connections.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `Name` | *string* | :heavy_check_mark: | N/A | | +| `Product` | *string* | :heavy_check_mark: | N/A | | +| `ProductVersion` | *string* | :heavy_check_mark: | N/A | | +| `Platform` | *string* | :heavy_check_mark: | N/A | | +| `PlatformVersion` | *string* | :heavy_check_mark: | N/A | | +| `Device` | *string* | :heavy_check_mark: | N/A | | +| `ClientIdentifier` | *string* | :heavy_check_mark: | N/A | | +| `CreatedAt` | [time.Time](https://pkg.go.dev/time#Time) | :heavy_check_mark: | N/A | 2019-06-24T11:38:02Z | +| `LastSeenAt` | [time.Time](https://pkg.go.dev/time#Time) | :heavy_check_mark: | N/A | 2019-06-24T11:38:02Z | +| `Provides` | *string* | :heavy_check_mark: | N/A | | +| `OwnerID` | *int64* | :heavy_check_mark: | ownerId is null when the device is owned by the token used to send the request | | +| `SourceTitle` | *string* | :heavy_check_mark: | N/A | | +| `PublicAddress` | *string* | :heavy_check_mark: | N/A | | +| `AccessToken` | *string* | :heavy_check_mark: | N/A | | +| `Owned` | *bool* | :heavy_check_mark: | N/A | | +| `Home` | *bool* | :heavy_check_mark: | N/A | | +| `Synced` | *bool* | :heavy_check_mark: | N/A | | +| `Relay` | *bool* | :heavy_check_mark: | N/A | | +| `Presence` | *bool* | :heavy_check_mark: | N/A | | +| `HTTPSRequired` | *bool* | :heavy_check_mark: | N/A | | +| `PublicAddressMatches` | *bool* | :heavy_check_mark: | N/A | | +| `DNSRebindingProtection` | *bool* | :heavy_check_mark: | N/A | | +| `NatLoopbackSupported` | *bool* | :heavy_check_mark: | N/A | | +| `Connections` | [][operations.Connections](../../models/operations/connections.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/postuserssignindataautoselectsubtitle.md b/docs/models/operations/postuserssignindataautoselectsubtitle.md index 0765f2b..64a62fb 100644 --- a/docs/models/operations/postuserssignindataautoselectsubtitle.md +++ b/docs/models/operations/postuserssignindataautoselectsubtitle.md @@ -5,7 +5,7 @@ The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign aud ## Values -| Name | Value | -| ------------------------------------------- | ------------------------------------------- | -| `PostUsersSignInDataAutoSelectSubtitleZero` | 0 | -| `PostUsersSignInDataAutoSelectSubtitleOne` | 1 | \ No newline at end of file +| Name | Value | +| ---------------------------------------------- | ---------------------------------------------- | +| `PostUsersSignInDataAutoSelectSubtitleDisable` | 0 | +| `PostUsersSignInDataAutoSelectSubtitleEnable` | 1 | \ No newline at end of file diff --git a/docs/models/operations/postuserssignindatadefaultsubtitleaccessibility.md b/docs/models/operations/postuserssignindatadefaultsubtitleaccessibility.md index e00c3c6..1249a53 100644 --- a/docs/models/operations/postuserssignindatadefaultsubtitleaccessibility.md +++ b/docs/models/operations/postuserssignindatadefaultsubtitleaccessibility.md @@ -1,11 +1,11 @@ # PostUsersSignInDataDefaultSubtitleAccessibility -The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) +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) ## Values -| Name | Value | -| ----------------------------------------------------- | ----------------------------------------------------- | -| `PostUsersSignInDataDefaultSubtitleAccessibilityZero` | 0 | -| `PostUsersSignInDataDefaultSubtitleAccessibilityOne` | 1 | \ No newline at end of file +| Name | Value | +| -------------------------------------------------------- | -------------------------------------------------------- | +| `PostUsersSignInDataDefaultSubtitleAccessibilityDisable` | 0 | +| `PostUsersSignInDataDefaultSubtitleAccessibilityEnable` | 1 | \ No newline at end of file diff --git a/docs/models/operations/postuserssignindatadefaultsubtitleforced.md b/docs/models/operations/postuserssignindatadefaultsubtitleforced.md index b5ba6b7..9c59943 100644 --- a/docs/models/operations/postuserssignindatadefaultsubtitleforced.md +++ b/docs/models/operations/postuserssignindatadefaultsubtitleforced.md @@ -5,7 +5,7 @@ The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer ## Values -| Name | Value | -| ---------------------------------------------- | ---------------------------------------------- | -| `PostUsersSignInDataDefaultSubtitleForcedZero` | 0 | -| `PostUsersSignInDataDefaultSubtitleForcedOne` | 1 | \ No newline at end of file +| Name | Value | +| ------------------------------------------------- | ------------------------------------------------- | +| `PostUsersSignInDataDefaultSubtitleForcedDisable` | 0 | +| `PostUsersSignInDataDefaultSubtitleForcedEnable` | 1 | \ No newline at end of file diff --git a/docs/models/operations/postuserssignindataglobals.md b/docs/models/operations/postuserssignindataglobals.md deleted file mode 100644 index 89fa1e5..0000000 --- a/docs/models/operations/postuserssignindataglobals.md +++ /dev/null @@ -1,8 +0,0 @@ -# PostUsersSignInDataGlobals - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ClientID` | **string* | :heavy_minus_sign: | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
| gcgzw5rz2xovp84b4vha3a40 | \ No newline at end of file diff --git a/docs/models/operations/postuserssignindatamediareviewsvisibility.md b/docs/models/operations/postuserssignindatamediareviewsvisibility.md index 38f566c..509e0d7 100644 --- a/docs/models/operations/postuserssignindatamediareviewsvisibility.md +++ b/docs/models/operations/postuserssignindatamediareviewsvisibility.md @@ -1,9 +1,11 @@ # PostUsersSignInDataMediaReviewsVisibility +Whether or not the account has media reviews visibility enabled + ## Values -| Name | Value | -| ----------------------------------------------- | ----------------------------------------------- | -| `PostUsersSignInDataMediaReviewsVisibilityZero` | 0 | -| `PostUsersSignInDataMediaReviewsVisibilityOne` | 1 | \ No newline at end of file +| Name | Value | +| -------------------------------------------------- | -------------------------------------------------- | +| `PostUsersSignInDataMediaReviewsVisibilityDisable` | 0 | +| `PostUsersSignInDataMediaReviewsVisibilityEnable` | 1 | \ No newline at end of file diff --git a/docs/models/operations/postuserssignindatarequest.md b/docs/models/operations/postuserssignindatarequest.md deleted file mode 100644 index 73b6913..0000000 --- a/docs/models/operations/postuserssignindatarequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# PostUsersSignInDataRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ClientID` | **string* | :heavy_minus_sign: | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
| gcgzw5rz2xovp84b4vha3a40 | -| `RequestBody` | [*operations.PostUsersSignInDataRequestBody](../../models/operations/postuserssignindatarequestbody.md) | :heavy_minus_sign: | Login credentials | | \ No newline at end of file diff --git a/docs/models/operations/postuserssignindatauserplexaccount.md b/docs/models/operations/postuserssignindatauserplexaccount.md index 4647f9c..9c4908b 100644 --- a/docs/models/operations/postuserssignindatauserplexaccount.md +++ b/docs/models/operations/postuserssignindatauserplexaccount.md @@ -26,7 +26,7 @@ Returns the user account data with a valid auth token | `HomeAdmin` | **bool* | :heavy_minus_sign: | If the account is the Plex Home admin | | | `HomeSize` | *int* | :heavy_check_mark: | The number of accounts in the Plex Home | 1 | | `ID` | *int* | :heavy_check_mark: | The Plex account ID | 13692262 | -| `JoinedAt` | *int64* | :heavy_check_mark: | Unix epoch datetime | 1556281940 | +| `JoinedAt` | *int64* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 | | `Locale` | *string* | :heavy_check_mark: | The account locale | | | `MailingListActive` | **bool* | :heavy_minus_sign: | If you are subscribed to the Plex newsletter | | | `MailingListStatus` | [operations.PostUsersSignInDataMailingListStatus](../../models/operations/postuserssignindatamailingliststatus.md) | :heavy_check_mark: | Your current mailing list status | | @@ -34,7 +34,7 @@ Returns the user account data with a valid auth token | ~~`Pin`~~ | **string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

[Might be removed] The hashed Plex Home PIN | | | `Profile` | [operations.PostUsersSignInDataUserProfile](../../models/operations/postuserssignindatauserprofile.md) | :heavy_check_mark: | N/A | | | `Protected` | **bool* | :heavy_minus_sign: | If the account has a Plex Home PIN enabled | | -| `RememberExpiresAt` | *int64* | :heavy_check_mark: | Unix epoch datetime | 1556281940 | +| `RememberExpiresAt` | *int64* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 | | `Restricted` | **bool* | :heavy_minus_sign: | If the account is a Plex Home managed user | | | `Roles` | []*string* | :heavy_minus_sign: | [Might be removed] List of account roles. Plexpass membership listed here | | | `ScrobbleTypes` | *string* | :heavy_check_mark: | Unknown | | diff --git a/docs/models/operations/postuserssignindatauserprofile.md b/docs/models/operations/postuserssignindatauserprofile.md index 61a239f..763197a 100644 --- a/docs/models/operations/postuserssignindatauserprofile.md +++ b/docs/models/operations/postuserssignindatauserprofile.md @@ -3,13 +3,13 @@ ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `AutoSelectAudio` | **bool* | :heavy_minus_sign: | If the account has automatically select audio and subtitle tracks enabled | true | -| `DefaultAudioLanguage` | *string* | :heavy_check_mark: | The preferred audio language for the account | ja | -| `DefaultSubtitleLanguage` | *string* | :heavy_check_mark: | The preferred subtitle language for the account | en | -| `AutoSelectSubtitle` | [*operations.PostUsersSignInDataAutoSelectSubtitle](../../models/operations/postuserssignindataautoselectsubtitle.md) | :heavy_minus_sign: | The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) | 1 | -| `DefaultSubtitleAccessibility` | [*operations.PostUsersSignInDataDefaultSubtitleAccessibility](../../models/operations/postuserssignindatadefaultsubtitleaccessibility.md) | :heavy_minus_sign: | The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) | 1 | -| `DefaultSubtitleForced` | [*operations.PostUsersSignInDataDefaultSubtitleForced](../../models/operations/postuserssignindatadefaultsubtitleforced.md) | :heavy_minus_sign: | The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) | 0 | -| `WatchedIndicator` | [*operations.PostUsersSignInDataWatchedIndicator](../../models/operations/postuserssignindatawatchedindicator.md) | :heavy_minus_sign: | N/A | 1 | -| `MediaReviewsVisibility` | [*operations.PostUsersSignInDataMediaReviewsVisibility](../../models/operations/postuserssignindatamediareviewsvisibility.md) | :heavy_minus_sign: | N/A | 0 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | +| `AutoSelectAudio` | **bool* | :heavy_minus_sign: | If the account has automatically select audio and subtitle tracks enabled | true | +| `DefaultAudioLanguage` | *string* | :heavy_check_mark: | The preferred audio language for the account | ja | +| `DefaultSubtitleLanguage` | *string* | :heavy_check_mark: | The preferred subtitle language for the account | en | +| `AutoSelectSubtitle` | [*operations.PostUsersSignInDataAutoSelectSubtitle](../../models/operations/postuserssignindataautoselectsubtitle.md) | :heavy_minus_sign: | N/A | 1 | +| `DefaultSubtitleAccessibility` | [*operations.PostUsersSignInDataDefaultSubtitleAccessibility](../../models/operations/postuserssignindatadefaultsubtitleaccessibility.md) | :heavy_minus_sign: | N/A | 1 | +| `DefaultSubtitleForced` | [*operations.PostUsersSignInDataDefaultSubtitleForced](../../models/operations/postuserssignindatadefaultsubtitleforced.md) | :heavy_minus_sign: | N/A | 1 | +| `WatchedIndicator` | [*operations.PostUsersSignInDataWatchedIndicator](../../models/operations/postuserssignindatawatchedindicator.md) | :heavy_minus_sign: | N/A | 1 | +| `MediaReviewsVisibility` | [*operations.PostUsersSignInDataMediaReviewsVisibility](../../models/operations/postuserssignindatamediareviewsvisibility.md) | :heavy_minus_sign: | N/A | 1 | \ No newline at end of file diff --git a/docs/models/operations/postuserssignindatawatchedindicator.md b/docs/models/operations/postuserssignindatawatchedindicator.md index e4ed74c..8d8e861 100644 --- a/docs/models/operations/postuserssignindatawatchedindicator.md +++ b/docs/models/operations/postuserssignindatawatchedindicator.md @@ -1,9 +1,11 @@ # PostUsersSignInDataWatchedIndicator +Whether or not media watched indicators are enabled (little orange dot on media) + ## Values -| Name | Value | -| ----------------------------------------- | ----------------------------------------- | -| `PostUsersSignInDataWatchedIndicatorZero` | 0 | -| `PostUsersSignInDataWatchedIndicatorOne` | 1 | \ No newline at end of file +| Name | Value | +| -------------------------------------------- | -------------------------------------------- | +| `PostUsersSignInDataWatchedIndicatorDisable` | 0 | +| `PostUsersSignInDataWatchedIndicatorEnable` | 1 | \ No newline at end of file diff --git a/docs/models/operations/protocol.md b/docs/models/operations/protocol.md new file mode 100644 index 0000000..c6ddb3b --- /dev/null +++ b/docs/models/operations/protocol.md @@ -0,0 +1,11 @@ +# Protocol + +The protocol used for the connection (http, https, etc) + + +## Values + +| Name | Value | +| --------------- | --------------- | +| `ProtocolHTTP` | http | +| `ProtocolHTTPS` | https | \ No newline at end of file diff --git a/docs/models/operations/queryparamtype.md b/docs/models/operations/queryparamtype.md index bdb68e2..349e35f 100644 --- a/docs/models/operations/queryparamtype.md +++ b/docs/models/operations/queryparamtype.md @@ -11,9 +11,9 @@ E.g. A movie library will not return anything with type 3 as there are no season ## Values -| Name | Value | -| --------------------- | --------------------- | -| `QueryParamTypeOne` | 1 | -| `QueryParamTypeTwo` | 2 | -| `QueryParamTypeThree` | 3 | -| `QueryParamTypeFour` | 4 | \ No newline at end of file +| Name | Value | +| ----------------------- | ----------------------- | +| `QueryParamTypeMovie` | 1 | +| `QueryParamTypeShow` | 2 | +| `QueryParamTypeSeason` | 3 | +| `QueryParamTypeEpisode` | 4 | \ No newline at end of file diff --git a/docs/models/operations/type.md b/docs/models/operations/type.md index 0f4eaee..eb60640 100644 --- a/docs/models/operations/type.md +++ b/docs/models/operations/type.md @@ -11,9 +11,9 @@ E.g. A movie library will not return anything with type 3 as there are no season ## Values -| Name | Value | -| ----------- | ----------- | -| `TypeOne` | 1 | -| `TypeTwo` | 2 | -| `TypeThree` | 3 | -| `TypeFour` | 4 | \ No newline at end of file +| Name | Value | +| ------------- | ------------- | +| `TypeMovie` | 1 | +| `TypeShow` | 2 | +| `TypeSeason` | 3 | +| `TypeEpisode` | 4 | \ No newline at end of file diff --git a/docs/models/operations/uploadplaylistrequest.md b/docs/models/operations/uploadplaylistrequest.md index b007e2c..a225783 100644 --- a/docs/models/operations/uploadplaylistrequest.md +++ b/docs/models/operations/uploadplaylistrequest.md @@ -6,4 +6,5 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Path` | *string* | :heavy_check_mark: | absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server.
If the `path` argument is a directory, that path will be scanned for playlist files to be processed.
Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it.
The GUID of each playlist is based on the filename.
If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it.
The GUID of each playlist is based on the filename.
| /home/barkley/playlist.m3u | -| `Force` | [operations.QueryParamForce](../../models/operations/queryparamforce.md) | :heavy_check_mark: | Force overwriting of duplicate playlists.
By default, a playlist file uploaded with the same path will overwrite the existing playlist.
The `force` argument is used to disable overwriting.
If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded.
| | \ No newline at end of file +| `Force` | [operations.QueryParamForce](../../models/operations/queryparamforce.md) | :heavy_check_mark: | Force overwriting of duplicate playlists.
By default, a playlist file uploaded with the same path will overwrite the existing playlist.
The `force` argument is used to disable overwriting.
If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded.
| | +| `SectionID` | *int64* | :heavy_check_mark: | Possibly the section ID to upload the playlist to, we are not certain. | 1 | \ No newline at end of file diff --git a/docs/models/operations/userprofile.md b/docs/models/operations/userprofile.md index 471539e..2b678ec 100644 --- a/docs/models/operations/userprofile.md +++ b/docs/models/operations/userprofile.md @@ -3,13 +3,13 @@ ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `AutoSelectAudio` | **bool* | :heavy_minus_sign: | If the account has automatically select audio and subtitle tracks enabled | true | -| `DefaultAudioLanguage` | *string* | :heavy_check_mark: | The preferred audio language for the account | ja | -| `DefaultSubtitleLanguage` | *string* | :heavy_check_mark: | The preferred subtitle language for the account | en | -| `AutoSelectSubtitle` | [*operations.AutoSelectSubtitle](../../models/operations/autoselectsubtitle.md) | :heavy_minus_sign: | The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) | 1 | -| `DefaultSubtitleAccessibility` | [*operations.DefaultSubtitleAccessibility](../../models/operations/defaultsubtitleaccessibility.md) | :heavy_minus_sign: | The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) | 1 | -| `DefaultSubtitleForced` | [*operations.DefaultSubtitleForced](../../models/operations/defaultsubtitleforced.md) | :heavy_minus_sign: | The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) | 0 | -| `WatchedIndicator` | [*operations.WatchedIndicator](../../models/operations/watchedindicator.md) | :heavy_minus_sign: | N/A | 1 | -| `MediaReviewsVisibility` | [*operations.MediaReviewsVisibility](../../models/operations/mediareviewsvisibility.md) | :heavy_minus_sign: | N/A | 0 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `AutoSelectAudio` | **bool* | :heavy_minus_sign: | If the account has automatically select audio and subtitle tracks enabled | true | +| `DefaultAudioLanguage` | *string* | :heavy_check_mark: | The preferred audio language for the account | ja | +| `DefaultSubtitleLanguage` | *string* | :heavy_check_mark: | The preferred subtitle language for the account | en | +| `AutoSelectSubtitle` | [*operations.AutoSelectSubtitle](../../models/operations/autoselectsubtitle.md) | :heavy_minus_sign: | N/A | 1 | +| `DefaultSubtitleAccessibility` | [*operations.DefaultSubtitleAccessibility](../../models/operations/defaultsubtitleaccessibility.md) | :heavy_minus_sign: | N/A | 1 | +| `DefaultSubtitleForced` | [*operations.DefaultSubtitleForced](../../models/operations/defaultsubtitleforced.md) | :heavy_minus_sign: | N/A | 1 | +| `WatchedIndicator` | [*operations.WatchedIndicator](../../models/operations/watchedindicator.md) | :heavy_minus_sign: | N/A | 1 | +| `MediaReviewsVisibility` | [*operations.MediaReviewsVisibility](../../models/operations/mediareviewsvisibility.md) | :heavy_minus_sign: | N/A | 1 | \ No newline at end of file diff --git a/docs/models/operations/watchedindicator.md b/docs/models/operations/watchedindicator.md index 5aa2686..f98bc14 100644 --- a/docs/models/operations/watchedindicator.md +++ b/docs/models/operations/watchedindicator.md @@ -1,9 +1,11 @@ # WatchedIndicator +Whether or not media watched indicators are enabled (little orange dot on media) + ## Values -| Name | Value | -| ---------------------- | ---------------------- | -| `WatchedIndicatorZero` | 0 | -| `WatchedIndicatorOne` | 1 | \ No newline at end of file +| Name | Value | +| ------------------------- | ------------------------- | +| `WatchedIndicatorDisable` | 0 | +| `WatchedIndicatorEnable` | 1 | \ No newline at end of file diff --git a/docs/sdks/authentication/README.md b/docs/sdks/authentication/README.md index 6cc72ae..5ad5a1a 100644 --- a/docs/sdks/authentication/README.md +++ b/docs/sdks/authentication/README.md @@ -101,7 +101,7 @@ func main() { ) ctx := context.Background() - res, err := s.Authentication.GetSourceConnectionInformation(ctx, "server://client-identifier") + res, err := s.Authentication.GetSourceConnectionInformation(ctx, "provider://provider-identifier") if err != nil { log.Fatal(err) } @@ -214,7 +214,7 @@ func main() { ) ctx := context.Background() - res, err := s.Authentication.PostUsersSignInData(ctx, plexgo.String("gcgzw5rz2xovp84b4vha3a40"), &operations.PostUsersSignInDataRequestBody{ + res, err := s.Authentication.PostUsersSignInData(ctx, &operations.PostUsersSignInDataRequestBody{ Login: "username@email.com", Password: "password123", VerificationCode: plexgo.String("123456"), @@ -230,12 +230,11 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | | -| `clientID` | **string* | :heavy_minus_sign: | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
| gcgzw5rz2xovp84b4vha3a40 | -| `requestBody` | [*operations.PostUsersSignInDataRequestBody](../../models/operations/postuserssignindatarequestbody.md) | :heavy_minus_sign: | Login credentials | | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.PostUsersSignInDataRequestBody](../../models/operations/postuserssignindatarequestbody.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response diff --git a/docs/sdks/library/README.md b/docs/sdks/library/README.md index 6f56975..64be212 100644 --- a/docs/sdks/library/README.md +++ b/docs/sdks/library/README.md @@ -404,9 +404,9 @@ func main() { res, err := s.Library.GetLibraryItems(ctx, operations.GetLibraryItemsRequest{ SectionKey: 9518, Tag: operations.TagEdition, - IncludeGuids: operations.IncludeGuidsOne.ToPointer(), - IncludeMeta: operations.IncludeMetaOne.ToPointer(), - Type: operations.TypeTwo, + IncludeGuids: operations.IncludeGuidsEnable.ToPointer(), + IncludeMeta: operations.IncludeMetaEnable.ToPointer(), + Type: operations.TypeShow, XPlexContainerStart: plexgo.Int(0), XPlexContainerSize: plexgo.Int(50), }) @@ -545,7 +545,7 @@ func main() { ) ctx := context.Background() - res, err := s.Library.GetSearchLibrary(ctx, 9518, operations.QueryParamTypeTwo) + res, err := s.Library.GetSearchLibrary(ctx, 9518, operations.QueryParamTypeShow) if err != nil { log.Fatal(err) } @@ -722,7 +722,7 @@ func main() { ) ctx := context.Background() - res, err := s.Library.GetTopWatchedContent(ctx, operations.GetTopWatchedContentQueryParamTypeTwo, plexgo.Int64(1)) + res, err := s.Library.GetTopWatchedContent(ctx, operations.GetTopWatchedContentQueryParamTypeShow, plexgo.Int64(1)) if err != nil { log.Fatal(err) } diff --git a/docs/sdks/playlists/README.md b/docs/sdks/playlists/README.md index 2637f2f..a891d99 100644 --- a/docs/sdks/playlists/README.md +++ b/docs/sdks/playlists/README.md @@ -353,7 +353,7 @@ func main() { ) ctx := context.Background() - res, err := s.Playlists.GetPlaylistContents(ctx, 5004.46, operations.GetPlaylistContentsQueryParamTypeTwo) + res, err := s.Playlists.GetPlaylistContents(ctx, 5004.46, operations.GetPlaylistContentsQueryParamTypeShow) if err != nil { log.Fatal(err) } @@ -532,7 +532,7 @@ func main() { ) ctx := context.Background() - res, err := s.Playlists.UploadPlaylist(ctx, "/home/barkley/playlist.m3u", operations.QueryParamForceZero) + res, err := s.Playlists.UploadPlaylist(ctx, "/home/barkley/playlist.m3u", operations.QueryParamForceZero, 1) if err != nil { log.Fatal(err) } @@ -549,6 +549,7 @@ func main() { | `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | | | `path` | *string* | :heavy_check_mark: | absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server.
If the `path` argument is a directory, that path will be scanned for playlist files to be processed.
Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it.
The GUID of each playlist is based on the filename.
If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it.
The GUID of each playlist is based on the filename.
| /home/barkley/playlist.m3u | | `force` | [operations.QueryParamForce](../../models/operations/queryparamforce.md) | :heavy_check_mark: | Force overwriting of duplicate playlists.
By default, a playlist file uploaded with the same path will overwrite the existing playlist.
The `force` argument is used to disable overwriting.
If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded.
| | +| `sectionID` | *int64* | :heavy_check_mark: | Possibly the section ID to upload the playlist to, we are not certain. | 1 | | `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | | ### Response diff --git a/docs/sdks/plex/README.md b/docs/sdks/plex/README.md index ee090f4..0119a25 100644 --- a/docs/sdks/plex/README.md +++ b/docs/sdks/plex/README.md @@ -266,7 +266,7 @@ func main() { ) ctx := context.Background() - res, err := s.Plex.GetServerResources(ctx, plexgo.String("gcgzw5rz2xovp84b4vha3a40"), operations.IncludeHTTPSOne.ToPointer(), operations.IncludeRelayOne.ToPointer(), operations.IncludeIPv6One.ToPointer()) + res, err := s.Plex.GetServerResources(ctx, operations.IncludeHTTPSEnable.ToPointer(), operations.IncludeRelayEnable.ToPointer(), operations.IncludeIPv6Enable.ToPointer()) if err != nil { log.Fatal(err) } @@ -278,14 +278,13 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | | -| `clientID` | **string* | :heavy_minus_sign: | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
| gcgzw5rz2xovp84b4vha3a40 | -| `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 | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | | +| Parameter | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | | +| `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 | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | | ### Response @@ -381,7 +380,7 @@ func main() { ) ctx := context.Background() - res, err := s.Plex.GetTokenByPinID(ctx, 408895, plexgo.String("gcgzw5rz2xovp84b4vha3a40")) + res, err := s.Plex.GetTokenByPinID(ctx, 408895) if err != nil { log.Fatal(err) } @@ -393,12 +392,11 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | | -| `pinID` | *int64* | :heavy_check_mark: | The PinID to retrieve an access token for | | -| `clientID` | **string* | :heavy_minus_sign: | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
| gcgzw5rz2xovp84b4vha3a40 | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | | +| Parameter | Type | Required | Description | +| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `pinID` | *int64* | :heavy_check_mark: | The PinID to retrieve an access token for | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response diff --git a/docs/sdks/server/README.md b/docs/sdks/server/README.md index 53a9c64..1d9932f 100644 --- a/docs/sdks/server/README.md +++ b/docs/sdks/server/README.md @@ -384,7 +384,7 @@ func main() { Width: 110, Height: 165, Opacity: 100, - Blur: 20, + Blur: 0, MinSize: operations.MinSizeOne, Upscale: operations.UpscaleOne, URL: "/library/metadata/49564/thumb/1654258204", diff --git a/models/components/security.go b/models/components/security.go index a874ed3..d8e7578 100644 --- a/models/components/security.go +++ b/models/components/security.go @@ -3,7 +3,7 @@ package components type Security struct { - AccessToken *string `security:"scheme,type=apiKey,subtype=query,name=X-Plex-Token"` + AccessToken *string `security:"scheme,type=apiKey,subtype=header,name=X-Plex-Token"` } func (o *Security) GetAccessToken() *string { diff --git a/models/operations/getalllibraries.go b/models/operations/getalllibraries.go index 54a3c1f..e1f9f7e 100644 --- a/models/operations/getalllibraries.go +++ b/models/operations/getalllibraries.go @@ -7,194 +7,194 @@ import ( ) type Location struct { - ID *int `json:"id,omitempty"` - Path *string `json:"path,omitempty"` + ID int `json:"id"` + Path string `json:"path"` } -func (o *Location) GetID() *int { +func (o *Location) GetID() int { if o == nil { - return nil + return 0 } return o.ID } -func (o *Location) GetPath() *string { +func (o *Location) GetPath() string { if o == nil { - return nil + return "" } return o.Path } type GetAllLibrariesDirectory struct { - AllowSync *bool `json:"allowSync,omitempty"` - Art *string `json:"art,omitempty"` - Composite *string `json:"composite,omitempty"` - Filters *bool `json:"filters,omitempty"` - Refreshing *bool `json:"refreshing,omitempty"` - Thumb *string `json:"thumb,omitempty"` - Key *string `json:"key,omitempty"` - Type *string `json:"type,omitempty"` - Title *string `json:"title,omitempty"` - Agent *string `json:"agent,omitempty"` - Scanner *string `json:"scanner,omitempty"` - Language *string `json:"language,omitempty"` - UUID *string `json:"uuid,omitempty"` - // Unix epoch datetime - UpdatedAt *int64 `json:"updatedAt,omitempty"` - // Unix epoch datetime - CreatedAt *int64 `json:"createdAt,omitempty"` - // Unix epoch datetime - ScannedAt *int64 `json:"scannedAt,omitempty"` - Content *bool `json:"content,omitempty"` - Directory *bool `json:"directory,omitempty"` - ContentChangedAt *int `json:"contentChangedAt,omitempty"` - Hidden *int `json:"hidden,omitempty"` - Location []Location `json:"Location,omitempty"` + AllowSync bool `json:"allowSync"` + Art string `json:"art"` + Composite string `json:"composite"` + Filters bool `json:"filters"` + Refreshing bool `json:"refreshing"` + Thumb string `json:"thumb"` + Key string `json:"key"` + Type string `json:"type"` + Title string `json:"title"` + Agent string `json:"agent"` + Scanner string `json:"scanner"` + Language string `json:"language"` + UUID string `json:"uuid"` + // Unix epoch datetime in seconds + UpdatedAt int64 `json:"updatedAt"` + // Unix epoch datetime in seconds + CreatedAt int64 `json:"createdAt"` + // Unix epoch datetime in seconds + ScannedAt int64 `json:"scannedAt"` + Content bool `json:"content"` + Directory bool `json:"directory"` + ContentChangedAt int `json:"contentChangedAt"` + Hidden int `json:"hidden"` + Location []Location `json:"Location"` } -func (o *GetAllLibrariesDirectory) GetAllowSync() *bool { +func (o *GetAllLibrariesDirectory) GetAllowSync() bool { if o == nil { - return nil + return false } return o.AllowSync } -func (o *GetAllLibrariesDirectory) GetArt() *string { +func (o *GetAllLibrariesDirectory) GetArt() string { if o == nil { - return nil + return "" } return o.Art } -func (o *GetAllLibrariesDirectory) GetComposite() *string { +func (o *GetAllLibrariesDirectory) GetComposite() string { if o == nil { - return nil + return "" } return o.Composite } -func (o *GetAllLibrariesDirectory) GetFilters() *bool { +func (o *GetAllLibrariesDirectory) GetFilters() bool { if o == nil { - return nil + return false } return o.Filters } -func (o *GetAllLibrariesDirectory) GetRefreshing() *bool { +func (o *GetAllLibrariesDirectory) GetRefreshing() bool { if o == nil { - return nil + return false } return o.Refreshing } -func (o *GetAllLibrariesDirectory) GetThumb() *string { +func (o *GetAllLibrariesDirectory) GetThumb() string { if o == nil { - return nil + return "" } return o.Thumb } -func (o *GetAllLibrariesDirectory) GetKey() *string { +func (o *GetAllLibrariesDirectory) GetKey() string { if o == nil { - return nil + return "" } return o.Key } -func (o *GetAllLibrariesDirectory) GetType() *string { +func (o *GetAllLibrariesDirectory) GetType() string { if o == nil { - return nil + return "" } return o.Type } -func (o *GetAllLibrariesDirectory) GetTitle() *string { +func (o *GetAllLibrariesDirectory) GetTitle() string { if o == nil { - return nil + return "" } return o.Title } -func (o *GetAllLibrariesDirectory) GetAgent() *string { +func (o *GetAllLibrariesDirectory) GetAgent() string { if o == nil { - return nil + return "" } return o.Agent } -func (o *GetAllLibrariesDirectory) GetScanner() *string { +func (o *GetAllLibrariesDirectory) GetScanner() string { if o == nil { - return nil + return "" } return o.Scanner } -func (o *GetAllLibrariesDirectory) GetLanguage() *string { +func (o *GetAllLibrariesDirectory) GetLanguage() string { if o == nil { - return nil + return "" } return o.Language } -func (o *GetAllLibrariesDirectory) GetUUID() *string { +func (o *GetAllLibrariesDirectory) GetUUID() string { if o == nil { - return nil + return "" } return o.UUID } -func (o *GetAllLibrariesDirectory) GetUpdatedAt() *int64 { +func (o *GetAllLibrariesDirectory) GetUpdatedAt() int64 { if o == nil { - return nil + return 0 } return o.UpdatedAt } -func (o *GetAllLibrariesDirectory) GetCreatedAt() *int64 { +func (o *GetAllLibrariesDirectory) GetCreatedAt() int64 { if o == nil { - return nil + return 0 } return o.CreatedAt } -func (o *GetAllLibrariesDirectory) GetScannedAt() *int64 { +func (o *GetAllLibrariesDirectory) GetScannedAt() int64 { if o == nil { - return nil + return 0 } return o.ScannedAt } -func (o *GetAllLibrariesDirectory) GetContent() *bool { +func (o *GetAllLibrariesDirectory) GetContent() bool { if o == nil { - return nil + return false } return o.Content } -func (o *GetAllLibrariesDirectory) GetDirectory() *bool { +func (o *GetAllLibrariesDirectory) GetDirectory() bool { if o == nil { - return nil + return false } return o.Directory } -func (o *GetAllLibrariesDirectory) GetContentChangedAt() *int { +func (o *GetAllLibrariesDirectory) GetContentChangedAt() int { if o == nil { - return nil + return 0 } return o.ContentChangedAt } -func (o *GetAllLibrariesDirectory) GetHidden() *int { +func (o *GetAllLibrariesDirectory) GetHidden() int { if o == nil { - return nil + return 0 } return o.Hidden } func (o *GetAllLibrariesDirectory) GetLocation() []Location { if o == nil { - return nil + return []Location{} } return o.Location } @@ -203,7 +203,7 @@ type GetAllLibrariesMediaContainer struct { Size int `json:"size"` AllowSync bool `json:"allowSync"` Title1 string `json:"title1"` - Directory []GetAllLibrariesDirectory `json:"Directory,omitempty"` + Directory []GetAllLibrariesDirectory `json:"Directory"` } func (o *GetAllLibrariesMediaContainer) GetSize() int { @@ -229,19 +229,19 @@ func (o *GetAllLibrariesMediaContainer) GetTitle1() string { func (o *GetAllLibrariesMediaContainer) GetDirectory() []GetAllLibrariesDirectory { if o == nil { - return nil + return []GetAllLibrariesDirectory{} } return o.Directory } // GetAllLibrariesResponseBody - The libraries available on the Server type GetAllLibrariesResponseBody struct { - MediaContainer *GetAllLibrariesMediaContainer `json:"MediaContainer,omitempty"` + MediaContainer GetAllLibrariesMediaContainer `json:"MediaContainer"` } -func (o *GetAllLibrariesResponseBody) GetMediaContainer() *GetAllLibrariesMediaContainer { +func (o *GetAllLibrariesResponseBody) GetMediaContainer() GetAllLibrariesMediaContainer { if o == nil { - return nil + return GetAllLibrariesMediaContainer{} } return o.MediaContainer } diff --git a/models/operations/getlibraryitems.go b/models/operations/getlibraryitems.go index e7ada63..4700528 100644 --- a/models/operations/getlibraryitems.go +++ b/models/operations/getlibraryitems.go @@ -90,18 +90,18 @@ func (e *Tag) UnmarshalJSON(data []byte) error { } // IncludeGuids - Adds the Guids object to the response -type IncludeGuids int64 +type IncludeGuids int const ( - IncludeGuidsZero IncludeGuids = 0 - IncludeGuidsOne IncludeGuids = 1 + IncludeGuidsDisable IncludeGuids = 0 + IncludeGuidsEnable IncludeGuids = 1 ) func (e IncludeGuids) ToPointer() *IncludeGuids { return &e } func (e *IncludeGuids) UnmarshalJSON(data []byte) error { - var v int64 + var v int if err := json.Unmarshal(data, &v); err != nil { return err } @@ -117,18 +117,18 @@ func (e *IncludeGuids) UnmarshalJSON(data []byte) error { } // IncludeMeta - Adds the Meta object to the response -type IncludeMeta int64 +type IncludeMeta int const ( - IncludeMetaZero IncludeMeta = 0 - IncludeMetaOne IncludeMeta = 1 + IncludeMetaDisable IncludeMeta = 0 + IncludeMetaEnable IncludeMeta = 1 ) func (e IncludeMeta) ToPointer() *IncludeMeta { return &e } func (e *IncludeMeta) UnmarshalJSON(data []byte) error { - var v int64 + var v int if err := json.Unmarshal(data, &v); err != nil { return err } @@ -152,10 +152,10 @@ func (e *IncludeMeta) UnmarshalJSON(data []byte) error { type Type int64 const ( - TypeOne Type = 1 - TypeTwo Type = 2 - TypeThree Type = 3 - TypeFour Type = 4 + TypeMovie Type = 1 + TypeShow Type = 2 + TypeSeason Type = 3 + TypeEpisode Type = 4 ) func (e Type) ToPointer() *Type { @@ -190,10 +190,10 @@ type GetLibraryItemsRequest struct { Tag Tag `pathParam:"style=simple,explode=false,name=tag"` // Adds the Guids object to the response // - IncludeGuids *IncludeGuids `queryParam:"style=form,explode=true,name=includeGuids"` + IncludeGuids *IncludeGuids `default:"0" queryParam:"style=form,explode=true,name=includeGuids"` // Adds the Meta object to the response // - IncludeMeta *IncludeMeta `queryParam:"style=form,explode=true,name=includeMeta"` + IncludeMeta *IncludeMeta `default:"0" queryParam:"style=form,explode=true,name=includeMeta"` // The type of media to retrieve. // 1 = movie // 2 = show @@ -566,64 +566,81 @@ func (o *GetLibraryItemsRole) GetTag() *string { return o.Tag } +type MediaGUID struct { + // Can be one of the following formats: + // imdb://tt13015952, tmdb://2434012, tvdb://7945991 + // + ID string `json:"id"` +} + +func (o *MediaGUID) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type GetLibraryItemsMetadata struct { - RatingKey *string `json:"ratingKey,omitempty"` - Key *string `json:"key,omitempty"` - GUID *string `json:"guid,omitempty"` - Studio *string `json:"studio,omitempty"` - Type *string `json:"type,omitempty"` - Title *string `json:"title,omitempty"` - ContentRating *string `json:"contentRating,omitempty"` - Summary *string `json:"summary,omitempty"` - Rating *float64 `json:"rating,omitempty"` - AudienceRating *float64 `json:"audienceRating,omitempty"` - Year *int `json:"year,omitempty"` - Tagline *string `json:"tagline,omitempty"` - Thumb *string `json:"thumb,omitempty"` - Art *string `json:"art,omitempty"` - Duration *int `json:"duration,omitempty"` - OriginallyAvailableAt *types.Date `json:"originallyAvailableAt,omitempty"` - AddedAt *int `json:"addedAt,omitempty"` - UpdatedAt *int `json:"updatedAt,omitempty"` - AudienceRatingImage *string `json:"audienceRatingImage,omitempty"` - ChapterSource *string `json:"chapterSource,omitempty"` - PrimaryExtraKey *string `json:"primaryExtraKey,omitempty"` - RatingImage *string `json:"ratingImage,omitempty"` - GrandparentRatingKey *string `json:"grandparentRatingKey,omitempty"` - GrandparentGUID *string `json:"grandparentGuid,omitempty"` - GrandparentKey *string `json:"grandparentKey,omitempty"` - GrandparentTitle *string `json:"grandparentTitle,omitempty"` - GrandparentThumb *string `json:"grandparentThumb,omitempty"` - GrandparentArt *string `json:"grandparentArt,omitempty"` - GrandparentTheme *string `json:"grandparentTheme,omitempty"` - Media []GetLibraryItemsMedia `json:"Media,omitempty"` - Genre []GetLibraryItemsGenre `json:"Genre,omitempty"` - Country []GetLibraryItemsCountry `json:"Country,omitempty"` - Director []GetLibraryItemsDirector `json:"Director,omitempty"` - Writer []GetLibraryItemsWriter `json:"Writer,omitempty"` - Role []GetLibraryItemsRole `json:"Role,omitempty"` - TitleSort *string `json:"titleSort,omitempty"` - ViewCount *int `json:"viewCount,omitempty"` - LastViewedAt *int `json:"lastViewedAt,omitempty"` - OriginalTitle *string `json:"originalTitle,omitempty"` - ViewOffset *int `json:"viewOffset,omitempty"` - SkipCount *int `json:"skipCount,omitempty"` - Index *int `json:"index,omitempty"` - Theme *string `json:"theme,omitempty"` - LeafCount *int `json:"leafCount,omitempty"` - ViewedLeafCount *int `json:"viewedLeafCount,omitempty"` - ChildCount *int `json:"childCount,omitempty"` - HasPremiumExtras *string `json:"hasPremiumExtras,omitempty"` - HasPremiumPrimaryExtra *string `json:"hasPremiumPrimaryExtra,omitempty"` - ParentRatingKey *string `json:"parentRatingKey,omitempty"` - ParentGUID *string `json:"parentGuid,omitempty"` - ParentStudio *string `json:"parentStudio,omitempty"` - ParentKey *string `json:"parentKey,omitempty"` - ParentTitle *string `json:"parentTitle,omitempty"` - ParentIndex *int `json:"parentIndex,omitempty"` - ParentYear *int `json:"parentYear,omitempty"` - ParentThumb *string `json:"parentThumb,omitempty"` - ParentTheme *string `json:"parentTheme,omitempty"` + RatingKey string `json:"ratingKey"` + Key string `json:"key"` + GUID string `json:"guid"` + Studio *string `json:"studio,omitempty"` + Type string `json:"type"` + Title string `json:"title"` + ContentRating *string `json:"contentRating,omitempty"` + Summary *string `json:"summary,omitempty"` + Rating *float64 `json:"rating,omitempty"` + AudienceRating *float64 `json:"audienceRating,omitempty"` + Year int `json:"year"` + Tagline *string `json:"tagline,omitempty"` + Thumb *string `json:"thumb,omitempty"` + Art *string `json:"art,omitempty"` + Duration int `json:"duration"` + OriginallyAvailableAt *types.Date `json:"originallyAvailableAt,omitempty"` + AddedAt *int `json:"addedAt,omitempty"` + UpdatedAt *int `json:"updatedAt,omitempty"` + AudienceRatingImage *string `json:"audienceRatingImage,omitempty"` + ChapterSource *string `json:"chapterSource,omitempty"` + PrimaryExtraKey *string `json:"primaryExtraKey,omitempty"` + RatingImage *string `json:"ratingImage,omitempty"` + GrandparentRatingKey *string `json:"grandparentRatingKey,omitempty"` + GrandparentGUID *string `json:"grandparentGuid,omitempty"` + GrandparentKey *string `json:"grandparentKey,omitempty"` + GrandparentTitle *string `json:"grandparentTitle,omitempty"` + GrandparentThumb *string `json:"grandparentThumb,omitempty"` + GrandparentArt *string `json:"grandparentArt,omitempty"` + GrandparentTheme *string `json:"grandparentTheme,omitempty"` + Media []GetLibraryItemsMedia `json:"Media"` + Genre []GetLibraryItemsGenre `json:"Genre,omitempty"` + Country []GetLibraryItemsCountry `json:"Country,omitempty"` + Director []GetLibraryItemsDirector `json:"Director,omitempty"` + Writer []GetLibraryItemsWriter `json:"Writer,omitempty"` + Role []GetLibraryItemsRole `json:"Role,omitempty"` + // The Guid object is only included in the response if the `includeGuids` parameter is set to `1`. + // + MediaGUID []MediaGUID `json:"Guid,omitempty"` + TitleSort *string `json:"titleSort,omitempty"` + ViewCount *int `json:"viewCount,omitempty"` + LastViewedAt *int `json:"lastViewedAt,omitempty"` + OriginalTitle *string `json:"originalTitle,omitempty"` + ViewOffset *int `json:"viewOffset,omitempty"` + SkipCount *int `json:"skipCount,omitempty"` + Index *int `json:"index,omitempty"` + Theme *string `json:"theme,omitempty"` + LeafCount *int `json:"leafCount,omitempty"` + ViewedLeafCount *int `json:"viewedLeafCount,omitempty"` + ChildCount *int `json:"childCount,omitempty"` + HasPremiumExtras *string `json:"hasPremiumExtras,omitempty"` + HasPremiumPrimaryExtra *string `json:"hasPremiumPrimaryExtra,omitempty"` + ParentRatingKey *string `json:"parentRatingKey,omitempty"` + ParentGUID *string `json:"parentGuid,omitempty"` + ParentStudio *string `json:"parentStudio,omitempty"` + ParentKey *string `json:"parentKey,omitempty"` + ParentTitle *string `json:"parentTitle,omitempty"` + ParentIndex *int `json:"parentIndex,omitempty"` + ParentYear *int `json:"parentYear,omitempty"` + ParentThumb *string `json:"parentThumb,omitempty"` + ParentTheme *string `json:"parentTheme,omitempty"` } func (g GetLibraryItemsMetadata) MarshalJSON() ([]byte, error) { @@ -637,23 +654,23 @@ func (g *GetLibraryItemsMetadata) UnmarshalJSON(data []byte) error { return nil } -func (o *GetLibraryItemsMetadata) GetRatingKey() *string { +func (o *GetLibraryItemsMetadata) GetRatingKey() string { if o == nil { - return nil + return "" } return o.RatingKey } -func (o *GetLibraryItemsMetadata) GetKey() *string { +func (o *GetLibraryItemsMetadata) GetKey() string { if o == nil { - return nil + return "" } return o.Key } -func (o *GetLibraryItemsMetadata) GetGUID() *string { +func (o *GetLibraryItemsMetadata) GetGUID() string { if o == nil { - return nil + return "" } return o.GUID } @@ -665,16 +682,16 @@ func (o *GetLibraryItemsMetadata) GetStudio() *string { return o.Studio } -func (o *GetLibraryItemsMetadata) GetType() *string { +func (o *GetLibraryItemsMetadata) GetType() string { if o == nil { - return nil + return "" } return o.Type } -func (o *GetLibraryItemsMetadata) GetTitle() *string { +func (o *GetLibraryItemsMetadata) GetTitle() string { if o == nil { - return nil + return "" } return o.Title } @@ -707,9 +724,9 @@ func (o *GetLibraryItemsMetadata) GetAudienceRating() *float64 { return o.AudienceRating } -func (o *GetLibraryItemsMetadata) GetYear() *int { +func (o *GetLibraryItemsMetadata) GetYear() int { if o == nil { - return nil + return 0 } return o.Year } @@ -735,9 +752,9 @@ func (o *GetLibraryItemsMetadata) GetArt() *string { return o.Art } -func (o *GetLibraryItemsMetadata) GetDuration() *int { +func (o *GetLibraryItemsMetadata) GetDuration() int { if o == nil { - return nil + return 0 } return o.Duration } @@ -842,7 +859,7 @@ func (o *GetLibraryItemsMetadata) GetGrandparentTheme() *string { func (o *GetLibraryItemsMetadata) GetMedia() []GetLibraryItemsMedia { if o == nil { - return nil + return []GetLibraryItemsMedia{} } return o.Media } @@ -882,6 +899,13 @@ func (o *GetLibraryItemsMetadata) GetRole() []GetLibraryItemsRole { return o.Role } +func (o *GetLibraryItemsMetadata) GetMediaGUID() []MediaGUID { + if o == nil { + return nil + } + return o.MediaGUID +} + func (o *GetLibraryItemsMetadata) GetTitleSort() *string { if o == nil { return nil @@ -1036,112 +1060,361 @@ func (o *GetLibraryItemsMetadata) GetParentTheme() *string { return o.ParentTheme } +type GetLibraryItemsFilter struct { + Filter string `json:"filter"` + FilterType string `json:"filterType"` + Key string `json:"key"` + Title string `json:"title"` + Type string `json:"type"` +} + +func (o *GetLibraryItemsFilter) GetFilter() string { + if o == nil { + return "" + } + return o.Filter +} + +func (o *GetLibraryItemsFilter) GetFilterType() string { + if o == nil { + return "" + } + return o.FilterType +} + +func (o *GetLibraryItemsFilter) GetKey() string { + if o == nil { + return "" + } + return o.Key +} + +func (o *GetLibraryItemsFilter) GetTitle() string { + if o == nil { + return "" + } + return o.Title +} + +func (o *GetLibraryItemsFilter) GetType() string { + if o == nil { + return "" + } + return o.Type +} + +type GetLibraryItemsSort struct { + Default *string `json:"default,omitempty"` + DefaultDirection string `json:"defaultDirection"` + DescKey *string `json:"descKey,omitempty"` + FirstCharacterKey *string `json:"firstCharacterKey,omitempty"` + Key string `json:"key"` + Title string `json:"title"` +} + +func (o *GetLibraryItemsSort) GetDefault() *string { + if o == nil { + return nil + } + return o.Default +} + +func (o *GetLibraryItemsSort) GetDefaultDirection() string { + if o == nil { + return "" + } + return o.DefaultDirection +} + +func (o *GetLibraryItemsSort) GetDescKey() *string { + if o == nil { + return nil + } + return o.DescKey +} + +func (o *GetLibraryItemsSort) GetFirstCharacterKey() *string { + if o == nil { + return nil + } + return o.FirstCharacterKey +} + +func (o *GetLibraryItemsSort) GetKey() string { + if o == nil { + return "" + } + return o.Key +} + +func (o *GetLibraryItemsSort) GetTitle() string { + if o == nil { + return "" + } + return o.Title +} + +type GetLibraryItemsField struct { + Key string `json:"key"` + Title string `json:"title"` + Type string `json:"type"` + SubType *string `json:"subType,omitempty"` +} + +func (o *GetLibraryItemsField) GetKey() string { + if o == nil { + return "" + } + return o.Key +} + +func (o *GetLibraryItemsField) GetTitle() string { + if o == nil { + return "" + } + return o.Title +} + +func (o *GetLibraryItemsField) GetType() string { + if o == nil { + return "" + } + return o.Type +} + +func (o *GetLibraryItemsField) GetSubType() *string { + if o == nil { + return nil + } + return o.SubType +} + +type GetLibraryItemsType struct { + Key string `json:"key"` + Type string `json:"type"` + Title string `json:"title"` + Active bool `json:"active"` + Filter []GetLibraryItemsFilter `json:"Filter,omitempty"` + Sort []GetLibraryItemsSort `json:"Sort,omitempty"` + Field []GetLibraryItemsField `json:"Field,omitempty"` +} + +func (o *GetLibraryItemsType) GetKey() string { + if o == nil { + return "" + } + return o.Key +} + +func (o *GetLibraryItemsType) GetType() string { + if o == nil { + return "" + } + return o.Type +} + +func (o *GetLibraryItemsType) GetTitle() string { + if o == nil { + return "" + } + return o.Title +} + +func (o *GetLibraryItemsType) GetActive() bool { + if o == nil { + return false + } + return o.Active +} + +func (o *GetLibraryItemsType) GetFilter() []GetLibraryItemsFilter { + if o == nil { + return nil + } + return o.Filter +} + +func (o *GetLibraryItemsType) GetSort() []GetLibraryItemsSort { + if o == nil { + return nil + } + return o.Sort +} + +func (o *GetLibraryItemsType) GetField() []GetLibraryItemsField { + if o == nil { + return nil + } + return o.Field +} + +type GetLibraryItemsOperator struct { + Key string `json:"key"` + Title string `json:"title"` +} + +func (o *GetLibraryItemsOperator) GetKey() string { + if o == nil { + return "" + } + return o.Key +} + +func (o *GetLibraryItemsOperator) GetTitle() string { + if o == nil { + return "" + } + return o.Title +} + +type GetLibraryItemsFieldType struct { + Type string `json:"type"` + Operator []GetLibraryItemsOperator `json:"Operator"` +} + +func (o *GetLibraryItemsFieldType) GetType() string { + if o == nil { + return "" + } + return o.Type +} + +func (o *GetLibraryItemsFieldType) GetOperator() []GetLibraryItemsOperator { + if o == nil { + return []GetLibraryItemsOperator{} + } + return o.Operator +} + +// The Meta object is only included in the response if the `includeMeta` parameter is set to `1`. +type Meta struct { + Type []GetLibraryItemsType `json:"Type,omitempty"` + FieldType []GetLibraryItemsFieldType `json:"FieldType,omitempty"` +} + +func (o *Meta) GetType() []GetLibraryItemsType { + if o == nil { + return nil + } + return o.Type +} + +func (o *Meta) GetFieldType() []GetLibraryItemsFieldType { + if o == nil { + return nil + } + return o.FieldType +} + type GetLibraryItemsMediaContainer struct { - Size *int `json:"size,omitempty"` - AllowSync *bool `json:"allowSync,omitempty"` - Art *string `json:"art,omitempty"` - Identifier *string `json:"identifier,omitempty"` - LibrarySectionID *LibrarySectionID `json:"librarySectionID,omitempty"` - LibrarySectionTitle *string `json:"librarySectionTitle,omitempty"` - LibrarySectionUUID *string `json:"librarySectionUUID,omitempty"` - MediaTagPrefix *string `json:"mediaTagPrefix,omitempty"` - MediaTagVersion *int `json:"mediaTagVersion,omitempty"` - Thumb *string `json:"thumb,omitempty"` - Title1 *string `json:"title1,omitempty"` - Title2 *string `json:"title2,omitempty"` - ViewGroup *string `json:"viewGroup,omitempty"` + Size int `json:"size"` + AllowSync bool `json:"allowSync"` + Art string `json:"art"` + Identifier string `json:"identifier"` + LibrarySectionID LibrarySectionID `json:"librarySectionID"` + LibrarySectionTitle string `json:"librarySectionTitle"` + LibrarySectionUUID string `json:"librarySectionUUID"` + MediaTagPrefix string `json:"mediaTagPrefix"` + MediaTagVersion int `json:"mediaTagVersion"` + Thumb string `json:"thumb"` + Title1 string `json:"title1"` + Title2 string `json:"title2"` + ViewGroup string `json:"viewGroup"` ViewMode *int `json:"viewMode,omitempty"` MixedParents *bool `json:"mixedParents,omitempty"` Metadata []GetLibraryItemsMetadata `json:"Metadata,omitempty"` + // The Meta object is only included in the response if the `includeMeta` parameter is set to `1`. + // + Meta *Meta `json:"Meta,omitempty"` } -func (o *GetLibraryItemsMediaContainer) GetSize() *int { +func (o *GetLibraryItemsMediaContainer) GetSize() int { if o == nil { - return nil + return 0 } return o.Size } -func (o *GetLibraryItemsMediaContainer) GetAllowSync() *bool { +func (o *GetLibraryItemsMediaContainer) GetAllowSync() bool { if o == nil { - return nil + return false } return o.AllowSync } -func (o *GetLibraryItemsMediaContainer) GetArt() *string { +func (o *GetLibraryItemsMediaContainer) GetArt() string { if o == nil { - return nil + return "" } return o.Art } -func (o *GetLibraryItemsMediaContainer) GetIdentifier() *string { +func (o *GetLibraryItemsMediaContainer) GetIdentifier() string { if o == nil { - return nil + return "" } return o.Identifier } -func (o *GetLibraryItemsMediaContainer) GetLibrarySectionID() *LibrarySectionID { +func (o *GetLibraryItemsMediaContainer) GetLibrarySectionID() LibrarySectionID { if o == nil { - return nil + return LibrarySectionID{} } return o.LibrarySectionID } -func (o *GetLibraryItemsMediaContainer) GetLibrarySectionTitle() *string { +func (o *GetLibraryItemsMediaContainer) GetLibrarySectionTitle() string { if o == nil { - return nil + return "" } return o.LibrarySectionTitle } -func (o *GetLibraryItemsMediaContainer) GetLibrarySectionUUID() *string { +func (o *GetLibraryItemsMediaContainer) GetLibrarySectionUUID() string { if o == nil { - return nil + return "" } return o.LibrarySectionUUID } -func (o *GetLibraryItemsMediaContainer) GetMediaTagPrefix() *string { +func (o *GetLibraryItemsMediaContainer) GetMediaTagPrefix() string { if o == nil { - return nil + return "" } return o.MediaTagPrefix } -func (o *GetLibraryItemsMediaContainer) GetMediaTagVersion() *int { +func (o *GetLibraryItemsMediaContainer) GetMediaTagVersion() int { if o == nil { - return nil + return 0 } return o.MediaTagVersion } -func (o *GetLibraryItemsMediaContainer) GetThumb() *string { +func (o *GetLibraryItemsMediaContainer) GetThumb() string { if o == nil { - return nil + return "" } return o.Thumb } -func (o *GetLibraryItemsMediaContainer) GetTitle1() *string { +func (o *GetLibraryItemsMediaContainer) GetTitle1() string { if o == nil { - return nil + return "" } return o.Title1 } -func (o *GetLibraryItemsMediaContainer) GetTitle2() *string { +func (o *GetLibraryItemsMediaContainer) GetTitle2() string { if o == nil { - return nil + return "" } return o.Title2 } -func (o *GetLibraryItemsMediaContainer) GetViewGroup() *string { +func (o *GetLibraryItemsMediaContainer) GetViewGroup() string { if o == nil { - return nil + return "" } return o.ViewGroup } @@ -1167,6 +1440,13 @@ func (o *GetLibraryItemsMediaContainer) GetMetadata() []GetLibraryItemsMetadata return o.Metadata } +func (o *GetLibraryItemsMediaContainer) GetMeta() *Meta { + if o == nil { + return nil + } + return o.Meta +} + // GetLibraryItemsResponseBody - The contents of the library by section and tag type GetLibraryItemsResponseBody struct { MediaContainer *GetLibraryItemsMediaContainer `json:"MediaContainer,omitempty"` diff --git a/models/operations/getpin.go b/models/operations/getpin.go index 878a16f..cf86d55 100644 --- a/models/operations/getpin.go +++ b/models/operations/getpin.go @@ -13,24 +13,12 @@ var GetPinServerList = []string{ } type GetPinGlobals struct { - // The unique identifier for the client application - // This is used to track the client application and its usage - // (UUID, serial number, or other number unique per device) - // - ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"` ClientName *string `queryParam:"style=form,explode=true,name=X-Plex-Product"` DeviceName *string `queryParam:"style=form,explode=true,name=X-Plex-Device"` ClientVersion *string `queryParam:"style=form,explode=true,name=X-Plex-Version"` ClientPlatform *string `queryParam:"style=form,explode=true,name=X-Plex-Platform"` } -func (o *GetPinGlobals) GetClientID() *string { - if o == nil { - return nil - } - return o.ClientID -} - func (o *GetPinGlobals) GetClientName() *string { if o == nil { return nil @@ -64,12 +52,7 @@ type GetPinRequest struct { // Strong codes are used for Pin authentication flows // Non-Strong codes are used for `Plex.tv/link` // - Strong *bool `default:"false" queryParam:"style=form,explode=true,name=strong"` - // The unique identifier for the client application - // This is used to track the client application and its usage - // (UUID, serial number, or other number unique per device) - // - ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"` + Strong *bool `default:"false" queryParam:"style=form,explode=true,name=strong"` ClientName *string `queryParam:"style=form,explode=true,name=X-Plex-Product"` DeviceName *string `queryParam:"style=form,explode=true,name=X-Plex-Device"` ClientVersion *string `queryParam:"style=form,explode=true,name=X-Plex-Version"` @@ -94,13 +77,6 @@ func (o *GetPinRequest) GetStrong() *bool { return o.Strong } -func (o *GetPinRequest) GetClientID() *string { - if o == nil { - return nil - } - return o.ClientID -} - func (o *GetPinRequest) GetClientName() *string { if o == nil { return nil diff --git a/models/operations/getplaylistcontents.go b/models/operations/getplaylistcontents.go index e6221f9..8a6c44e 100644 --- a/models/operations/getplaylistcontents.go +++ b/models/operations/getplaylistcontents.go @@ -19,10 +19,10 @@ import ( type GetPlaylistContentsQueryParamType int64 const ( - GetPlaylistContentsQueryParamTypeOne GetPlaylistContentsQueryParamType = 1 - GetPlaylistContentsQueryParamTypeTwo GetPlaylistContentsQueryParamType = 2 - GetPlaylistContentsQueryParamTypeThree GetPlaylistContentsQueryParamType = 3 - GetPlaylistContentsQueryParamTypeFour GetPlaylistContentsQueryParamType = 4 + GetPlaylistContentsQueryParamTypeMovie GetPlaylistContentsQueryParamType = 1 + GetPlaylistContentsQueryParamTypeShow GetPlaylistContentsQueryParamType = 2 + GetPlaylistContentsQueryParamTypeSeason GetPlaylistContentsQueryParamType = 3 + GetPlaylistContentsQueryParamTypeEpisode GetPlaylistContentsQueryParamType = 4 ) func (e GetPlaylistContentsQueryParamType) ToPointer() *GetPlaylistContentsQueryParamType { diff --git a/models/operations/getsearchlibrary.go b/models/operations/getsearchlibrary.go index f422dda..b2ee380 100644 --- a/models/operations/getsearchlibrary.go +++ b/models/operations/getsearchlibrary.go @@ -17,10 +17,10 @@ import ( type QueryParamType int64 const ( - QueryParamTypeOne QueryParamType = 1 - QueryParamTypeTwo QueryParamType = 2 - QueryParamTypeThree QueryParamType = 3 - QueryParamTypeFour QueryParamType = 4 + QueryParamTypeMovie QueryParamType = 1 + QueryParamTypeShow QueryParamType = 2 + QueryParamTypeSeason QueryParamType = 3 + QueryParamTypeEpisode QueryParamType = 4 ) func (e QueryParamType) ToPointer() *QueryParamType { diff --git a/models/operations/getserverresources.go b/models/operations/getserverresources.go index 19e7c99..a4e674d 100644 --- a/models/operations/getserverresources.go +++ b/models/operations/getserverresources.go @@ -14,27 +14,12 @@ var GetServerResourcesServerList = []string{ "https://plex.tv/api/v2/", } -type GetServerResourcesGlobals struct { - // The unique identifier for the client application - // This is used to track the client application and its usage - // (UUID, serial number, or other number unique per device) - // - ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"` -} - -func (o *GetServerResourcesGlobals) GetClientID() *string { - if o == nil { - return nil - } - return o.ClientID -} - // IncludeHTTPS - Include Https entries in the results type IncludeHTTPS int const ( - IncludeHTTPSZero IncludeHTTPS = 0 - IncludeHTTPSOne IncludeHTTPS = 1 + IncludeHTTPSDisable IncludeHTTPS = 0 + IncludeHTTPSEnable IncludeHTTPS = 1 ) func (e IncludeHTTPS) ToPointer() *IncludeHTTPS { @@ -61,8 +46,8 @@ func (e *IncludeHTTPS) UnmarshalJSON(data []byte) error { type IncludeRelay int const ( - IncludeRelayZero IncludeRelay = 0 - IncludeRelayOne IncludeRelay = 1 + IncludeRelayDisable IncludeRelay = 0 + IncludeRelayEnable IncludeRelay = 1 ) func (e IncludeRelay) ToPointer() *IncludeRelay { @@ -88,8 +73,8 @@ func (e *IncludeRelay) UnmarshalJSON(data []byte) error { type IncludeIPv6 int const ( - IncludeIPv6Zero IncludeIPv6 = 0 - IncludeIPv6One IncludeIPv6 = 1 + IncludeIPv6Disable IncludeIPv6 = 0 + IncludeIPv6Enable IncludeIPv6 = 1 ) func (e IncludeIPv6) ToPointer() *IncludeIPv6 { @@ -112,11 +97,6 @@ func (e *IncludeIPv6) UnmarshalJSON(data []byte) error { } type GetServerResourcesRequest struct { - // The unique identifier for the client application - // This is used to track the client application and its usage - // (UUID, serial number, or other number unique per device) - // - ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"` // Include Https entries in the results IncludeHTTPS *IncludeHTTPS `default:"0" queryParam:"style=form,explode=true,name=includeHttps"` // Include Relay addresses in the results @@ -138,13 +118,6 @@ func (g *GetServerResourcesRequest) UnmarshalJSON(data []byte) error { return nil } -func (o *GetServerResourcesRequest) GetClientID() *string { - if o == nil { - return nil - } - return o.ClientID -} - func (o *GetServerResourcesRequest) GetIncludeHTTPS() *IncludeHTTPS { if o == nil { return nil @@ -166,19 +139,53 @@ func (o *GetServerResourcesRequest) GetIncludeIPv6() *IncludeIPv6 { return o.IncludeIPv6 } -type Connections struct { - Protocol string `json:"protocol"` - Address string `json:"address"` - Port float64 `json:"port"` - URI string `json:"uri"` - Local bool `json:"local"` - Relay bool `json:"relay"` - IPv6 bool `json:"IPv6"` +// Protocol - The protocol used for the connection (http, https, etc) +type Protocol string + +const ( + ProtocolHTTP Protocol = "http" + ProtocolHTTPS Protocol = "https" +) + +func (e Protocol) ToPointer() *Protocol { + return &e +} +func (e *Protocol) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "http": + fallthrough + case "https": + *e = Protocol(v) + return nil + default: + return fmt.Errorf("invalid value for Protocol: %v", v) + } } -func (o *Connections) GetProtocol() string { +type Connections struct { + // The protocol used for the connection (http, https, etc) + Protocol Protocol `json:"protocol"` + // The (ip) address or domain name used for the connection + Address string `json:"address"` + // The port used for the connection + Port int `json:"port"` + // The full URI of the connection + URI string `json:"uri"` + // If the connection is local address + Local bool `json:"local"` + // If the connection is relayed through plex.direct + Relay bool `json:"relay"` + // If the connection is using IPv6 + IPv6 bool `json:"IPv6"` +} + +func (o *Connections) GetProtocol() Protocol { if o == nil { - return "" + return Protocol("") } return o.Protocol } @@ -190,9 +197,9 @@ func (o *Connections) GetAddress() string { return o.Address } -func (o *Connections) GetPort() float64 { +func (o *Connections) GetPort() int { if o == nil { - return 0.0 + return 0 } return o.Port } diff --git a/models/operations/gettokenbypinid.go b/models/operations/gettokenbypinid.go index d0b7d30..a0a74a8 100644 --- a/models/operations/gettokenbypinid.go +++ b/models/operations/gettokenbypinid.go @@ -12,38 +12,11 @@ var GetTokenByPinIDServerList = []string{ "https://plex.tv/api/v2/", } -type GetTokenByPinIDGlobals struct { - // The unique identifier for the client application - // This is used to track the client application and its usage - // (UUID, serial number, or other number unique per device) - // - ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"` -} - -func (o *GetTokenByPinIDGlobals) GetClientID() *string { - if o == nil { - return nil - } - return o.ClientID -} - type GetTokenByPinIDRequest struct { - // The unique identifier for the client application - // This is used to track the client application and its usage - // (UUID, serial number, or other number unique per device) - // - ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"` // The PinID to retrieve an access token for PinID int64 `pathParam:"style=simple,explode=false,name=pinID"` } -func (o *GetTokenByPinIDRequest) GetClientID() *string { - if o == nil { - return nil - } - return o.ClientID -} - func (o *GetTokenByPinIDRequest) GetPinID() int64 { if o == nil { return 0 diff --git a/models/operations/gettokendetails.go b/models/operations/gettokendetails.go index 3f6ca55..765606c 100644 --- a/models/operations/gettokendetails.go +++ b/models/operations/gettokendetails.go @@ -42,25 +42,25 @@ func (e *MailingListStatus) UnmarshalJSON(data []byte) error { } // AutoSelectSubtitle - The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) -type AutoSelectSubtitle string +type AutoSelectSubtitle int const ( - AutoSelectSubtitleZero AutoSelectSubtitle = "0" - AutoSelectSubtitleOne AutoSelectSubtitle = "1" + AutoSelectSubtitleDisable AutoSelectSubtitle = 0 + AutoSelectSubtitleEnable AutoSelectSubtitle = 1 ) func (e AutoSelectSubtitle) ToPointer() *AutoSelectSubtitle { return &e } func (e *AutoSelectSubtitle) UnmarshalJSON(data []byte) error { - var v string + var v int if err := json.Unmarshal(data, &v); err != nil { return err } switch v { - case "0": + case 0: fallthrough - case "1": + case 1: *e = AutoSelectSubtitle(v) return nil default: @@ -68,26 +68,26 @@ func (e *AutoSelectSubtitle) UnmarshalJSON(data []byte) error { } } -// 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 shown non-SDH subtitles) -type DefaultSubtitleAccessibility string +// 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) +type DefaultSubtitleAccessibility int const ( - DefaultSubtitleAccessibilityZero DefaultSubtitleAccessibility = "0" - DefaultSubtitleAccessibilityOne DefaultSubtitleAccessibility = "1" + DefaultSubtitleAccessibilityDisable DefaultSubtitleAccessibility = 0 + DefaultSubtitleAccessibilityEnable DefaultSubtitleAccessibility = 1 ) func (e DefaultSubtitleAccessibility) ToPointer() *DefaultSubtitleAccessibility { return &e } func (e *DefaultSubtitleAccessibility) UnmarshalJSON(data []byte) error { - var v string + var v int if err := json.Unmarshal(data, &v); err != nil { return err } switch v { - case "0": + case 0: fallthrough - case "1": + case 1: *e = DefaultSubtitleAccessibility(v) return nil default: @@ -96,25 +96,25 @@ func (e *DefaultSubtitleAccessibility) UnmarshalJSON(data []byte) error { } // 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) -type DefaultSubtitleForced string +type DefaultSubtitleForced int const ( - DefaultSubtitleForcedZero DefaultSubtitleForced = "0" - DefaultSubtitleForcedOne DefaultSubtitleForced = "1" + DefaultSubtitleForcedDisable DefaultSubtitleForced = 0 + DefaultSubtitleForcedEnable DefaultSubtitleForced = 1 ) func (e DefaultSubtitleForced) ToPointer() *DefaultSubtitleForced { return &e } func (e *DefaultSubtitleForced) UnmarshalJSON(data []byte) error { - var v string + var v int if err := json.Unmarshal(data, &v); err != nil { return err } switch v { - case "0": + case 0: fallthrough - case "1": + case 1: *e = DefaultSubtitleForced(v) return nil default: @@ -122,25 +122,26 @@ func (e *DefaultSubtitleForced) UnmarshalJSON(data []byte) error { } } -type WatchedIndicator string +// WatchedIndicator - Whether or not media watched indicators are enabled (little orange dot on media) +type WatchedIndicator int const ( - WatchedIndicatorZero WatchedIndicator = "0" - WatchedIndicatorOne WatchedIndicator = "1" + WatchedIndicatorDisable WatchedIndicator = 0 + WatchedIndicatorEnable WatchedIndicator = 1 ) func (e WatchedIndicator) ToPointer() *WatchedIndicator { return &e } func (e *WatchedIndicator) UnmarshalJSON(data []byte) error { - var v string + var v int if err := json.Unmarshal(data, &v); err != nil { return err } switch v { - case "0": + case 0: fallthrough - case "1": + case 1: *e = WatchedIndicator(v) return nil default: @@ -148,18 +149,19 @@ func (e *WatchedIndicator) UnmarshalJSON(data []byte) error { } } -type MediaReviewsVisibility int64 +// MediaReviewsVisibility - Whether or not the account has media reviews visibility enabled +type MediaReviewsVisibility int const ( - MediaReviewsVisibilityZero MediaReviewsVisibility = 0 - MediaReviewsVisibilityOne MediaReviewsVisibility = 1 + MediaReviewsVisibilityDisable MediaReviewsVisibility = 0 + MediaReviewsVisibilityEnable MediaReviewsVisibility = 1 ) func (e MediaReviewsVisibility) ToPointer() *MediaReviewsVisibility { return &e } func (e *MediaReviewsVisibility) UnmarshalJSON(data []byte) error { - var v int64 + var v int if err := json.Unmarshal(data, &v); err != nil { return err } @@ -180,15 +182,12 @@ type UserProfile struct { // The preferred audio language for the account DefaultAudioLanguage *string `json:"defaultAudioLanguage"` // The preferred subtitle language for the account - DefaultSubtitleLanguage *string `json:"defaultSubtitleLanguage"` - // The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) - AutoSelectSubtitle *AutoSelectSubtitle `json:"autoSelectSubtitle,omitempty"` - // The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) - DefaultSubtitleAccessibility *DefaultSubtitleAccessibility `json:"defaultSubtitleAccessibility,omitempty"` - // 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) - DefaultSubtitleForced *DefaultSubtitleForced `json:"defaultSubtitleForced,omitempty"` - WatchedIndicator *WatchedIndicator `json:"watchedIndicator,omitempty"` - MediaReviewsVisibility *MediaReviewsVisibility `json:"mediaReviewsVisibility,omitempty"` + DefaultSubtitleLanguage *string `json:"defaultSubtitleLanguage"` + AutoSelectSubtitle *AutoSelectSubtitle `default:"0" json:"autoSelectSubtitle"` + DefaultSubtitleAccessibility *DefaultSubtitleAccessibility `default:"0" json:"defaultSubtitleAccessibility"` + DefaultSubtitleForced *DefaultSubtitleForced `default:"0" json:"defaultSubtitleForced"` + WatchedIndicator *WatchedIndicator `default:"0" json:"watchedIndicator"` + MediaReviewsVisibility *MediaReviewsVisibility `default:"0" json:"mediaReviewsVisibility"` } func (u UserProfile) MarshalJSON() ([]byte, error) { @@ -930,7 +929,7 @@ type GetTokenDetailsUserPlexAccount struct { HomeSize int `json:"homeSize"` // The Plex account ID ID int `json:"id"` - // Unix epoch datetime + // Unix epoch datetime in seconds JoinedAt int64 `json:"joinedAt"` // The account locale Locale *string `json:"locale"` @@ -947,7 +946,7 @@ type GetTokenDetailsUserPlexAccount struct { Profile UserProfile `json:"profile"` // If the account has a Plex Home PIN enabled Protected *bool `default:"false" json:"protected"` - // Unix epoch datetime + // Unix epoch datetime in seconds RememberExpiresAt int64 `json:"rememberExpiresAt"` // If the account is a Plex Home managed user Restricted *bool `default:"false" json:"restricted"` diff --git a/models/operations/gettopwatchedcontent.go b/models/operations/gettopwatchedcontent.go index e10456d..abcbcbb 100644 --- a/models/operations/gettopwatchedcontent.go +++ b/models/operations/gettopwatchedcontent.go @@ -19,10 +19,10 @@ import ( type GetTopWatchedContentQueryParamType int64 const ( - GetTopWatchedContentQueryParamTypeOne GetTopWatchedContentQueryParamType = 1 - GetTopWatchedContentQueryParamTypeTwo GetTopWatchedContentQueryParamType = 2 - GetTopWatchedContentQueryParamTypeThree GetTopWatchedContentQueryParamType = 3 - GetTopWatchedContentQueryParamTypeFour GetTopWatchedContentQueryParamType = 4 + GetTopWatchedContentQueryParamTypeMovie GetTopWatchedContentQueryParamType = 1 + GetTopWatchedContentQueryParamTypeShow GetTopWatchedContentQueryParamType = 2 + GetTopWatchedContentQueryParamTypeSeason GetTopWatchedContentQueryParamType = 3 + GetTopWatchedContentQueryParamTypeEpisode GetTopWatchedContentQueryParamType = 4 ) func (e GetTopWatchedContentQueryParamType) ToPointer() *GetTopWatchedContentQueryParamType { diff --git a/models/operations/postuserssignindata.go b/models/operations/postuserssignindata.go index 7db2690..c65880c 100644 --- a/models/operations/postuserssignindata.go +++ b/models/operations/postuserssignindata.go @@ -14,21 +14,6 @@ var PostUsersSignInDataServerList = []string{ "https://plex.tv/api/v2/", } -type PostUsersSignInDataGlobals struct { - // The unique identifier for the client application - // This is used to track the client application and its usage - // (UUID, serial number, or other number unique per device) - // - ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"` -} - -func (o *PostUsersSignInDataGlobals) GetClientID() *string { - if o == nil { - return nil - } - return o.ClientID -} - // PostUsersSignInDataRequestBody - Login credentials type PostUsersSignInDataRequestBody struct { Login string `form:"name=login"` @@ -76,30 +61,6 @@ func (o *PostUsersSignInDataRequestBody) GetVerificationCode() *string { return o.VerificationCode } -type PostUsersSignInDataRequest struct { - // The unique identifier for the client application - // This is used to track the client application and its usage - // (UUID, serial number, or other number unique per device) - // - ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"` - // Login credentials - RequestBody *PostUsersSignInDataRequestBody `request:"mediaType=application/x-www-form-urlencoded"` -} - -func (o *PostUsersSignInDataRequest) GetClientID() *string { - if o == nil { - return nil - } - return o.ClientID -} - -func (o *PostUsersSignInDataRequest) GetRequestBody() *PostUsersSignInDataRequestBody { - if o == nil { - return nil - } - return o.RequestBody -} - // PostUsersSignInDataMailingListStatus - Your current mailing list status type PostUsersSignInDataMailingListStatus string @@ -128,25 +89,25 @@ func (e *PostUsersSignInDataMailingListStatus) UnmarshalJSON(data []byte) error } // PostUsersSignInDataAutoSelectSubtitle - The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) -type PostUsersSignInDataAutoSelectSubtitle string +type PostUsersSignInDataAutoSelectSubtitle int const ( - PostUsersSignInDataAutoSelectSubtitleZero PostUsersSignInDataAutoSelectSubtitle = "0" - PostUsersSignInDataAutoSelectSubtitleOne PostUsersSignInDataAutoSelectSubtitle = "1" + PostUsersSignInDataAutoSelectSubtitleDisable PostUsersSignInDataAutoSelectSubtitle = 0 + PostUsersSignInDataAutoSelectSubtitleEnable PostUsersSignInDataAutoSelectSubtitle = 1 ) func (e PostUsersSignInDataAutoSelectSubtitle) ToPointer() *PostUsersSignInDataAutoSelectSubtitle { return &e } func (e *PostUsersSignInDataAutoSelectSubtitle) UnmarshalJSON(data []byte) error { - var v string + var v int if err := json.Unmarshal(data, &v); err != nil { return err } switch v { - case "0": + case 0: fallthrough - case "1": + case 1: *e = PostUsersSignInDataAutoSelectSubtitle(v) return nil default: @@ -154,26 +115,26 @@ func (e *PostUsersSignInDataAutoSelectSubtitle) UnmarshalJSON(data []byte) error } } -// PostUsersSignInDataDefaultSubtitleAccessibility - The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) -type PostUsersSignInDataDefaultSubtitleAccessibility string +// PostUsersSignInDataDefaultSubtitleAccessibility - 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) +type PostUsersSignInDataDefaultSubtitleAccessibility int const ( - PostUsersSignInDataDefaultSubtitleAccessibilityZero PostUsersSignInDataDefaultSubtitleAccessibility = "0" - PostUsersSignInDataDefaultSubtitleAccessibilityOne PostUsersSignInDataDefaultSubtitleAccessibility = "1" + PostUsersSignInDataDefaultSubtitleAccessibilityDisable PostUsersSignInDataDefaultSubtitleAccessibility = 0 + PostUsersSignInDataDefaultSubtitleAccessibilityEnable PostUsersSignInDataDefaultSubtitleAccessibility = 1 ) func (e PostUsersSignInDataDefaultSubtitleAccessibility) ToPointer() *PostUsersSignInDataDefaultSubtitleAccessibility { return &e } func (e *PostUsersSignInDataDefaultSubtitleAccessibility) UnmarshalJSON(data []byte) error { - var v string + var v int if err := json.Unmarshal(data, &v); err != nil { return err } switch v { - case "0": + case 0: fallthrough - case "1": + case 1: *e = PostUsersSignInDataDefaultSubtitleAccessibility(v) return nil default: @@ -182,25 +143,25 @@ func (e *PostUsersSignInDataDefaultSubtitleAccessibility) UnmarshalJSON(data []b } // PostUsersSignInDataDefaultSubtitleForced - 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) -type PostUsersSignInDataDefaultSubtitleForced string +type PostUsersSignInDataDefaultSubtitleForced int const ( - PostUsersSignInDataDefaultSubtitleForcedZero PostUsersSignInDataDefaultSubtitleForced = "0" - PostUsersSignInDataDefaultSubtitleForcedOne PostUsersSignInDataDefaultSubtitleForced = "1" + PostUsersSignInDataDefaultSubtitleForcedDisable PostUsersSignInDataDefaultSubtitleForced = 0 + PostUsersSignInDataDefaultSubtitleForcedEnable PostUsersSignInDataDefaultSubtitleForced = 1 ) func (e PostUsersSignInDataDefaultSubtitleForced) ToPointer() *PostUsersSignInDataDefaultSubtitleForced { return &e } func (e *PostUsersSignInDataDefaultSubtitleForced) UnmarshalJSON(data []byte) error { - var v string + var v int if err := json.Unmarshal(data, &v); err != nil { return err } switch v { - case "0": + case 0: fallthrough - case "1": + case 1: *e = PostUsersSignInDataDefaultSubtitleForced(v) return nil default: @@ -208,25 +169,26 @@ func (e *PostUsersSignInDataDefaultSubtitleForced) UnmarshalJSON(data []byte) er } } -type PostUsersSignInDataWatchedIndicator string +// PostUsersSignInDataWatchedIndicator - Whether or not media watched indicators are enabled (little orange dot on media) +type PostUsersSignInDataWatchedIndicator int const ( - PostUsersSignInDataWatchedIndicatorZero PostUsersSignInDataWatchedIndicator = "0" - PostUsersSignInDataWatchedIndicatorOne PostUsersSignInDataWatchedIndicator = "1" + PostUsersSignInDataWatchedIndicatorDisable PostUsersSignInDataWatchedIndicator = 0 + PostUsersSignInDataWatchedIndicatorEnable PostUsersSignInDataWatchedIndicator = 1 ) func (e PostUsersSignInDataWatchedIndicator) ToPointer() *PostUsersSignInDataWatchedIndicator { return &e } func (e *PostUsersSignInDataWatchedIndicator) UnmarshalJSON(data []byte) error { - var v string + var v int if err := json.Unmarshal(data, &v); err != nil { return err } switch v { - case "0": + case 0: fallthrough - case "1": + case 1: *e = PostUsersSignInDataWatchedIndicator(v) return nil default: @@ -234,18 +196,19 @@ func (e *PostUsersSignInDataWatchedIndicator) UnmarshalJSON(data []byte) error { } } -type PostUsersSignInDataMediaReviewsVisibility int64 +// PostUsersSignInDataMediaReviewsVisibility - Whether or not the account has media reviews visibility enabled +type PostUsersSignInDataMediaReviewsVisibility int const ( - PostUsersSignInDataMediaReviewsVisibilityZero PostUsersSignInDataMediaReviewsVisibility = 0 - PostUsersSignInDataMediaReviewsVisibilityOne PostUsersSignInDataMediaReviewsVisibility = 1 + PostUsersSignInDataMediaReviewsVisibilityDisable PostUsersSignInDataMediaReviewsVisibility = 0 + PostUsersSignInDataMediaReviewsVisibilityEnable PostUsersSignInDataMediaReviewsVisibility = 1 ) func (e PostUsersSignInDataMediaReviewsVisibility) ToPointer() *PostUsersSignInDataMediaReviewsVisibility { return &e } func (e *PostUsersSignInDataMediaReviewsVisibility) UnmarshalJSON(data []byte) error { - var v int64 + var v int if err := json.Unmarshal(data, &v); err != nil { return err } @@ -266,15 +229,12 @@ type PostUsersSignInDataUserProfile struct { // The preferred audio language for the account DefaultAudioLanguage *string `json:"defaultAudioLanguage"` // The preferred subtitle language for the account - DefaultSubtitleLanguage *string `json:"defaultSubtitleLanguage"` - // The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) - AutoSelectSubtitle *PostUsersSignInDataAutoSelectSubtitle `json:"autoSelectSubtitle,omitempty"` - // The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) - DefaultSubtitleAccessibility *PostUsersSignInDataDefaultSubtitleAccessibility `json:"defaultSubtitleAccessibility,omitempty"` - // 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) - DefaultSubtitleForced *PostUsersSignInDataDefaultSubtitleForced `json:"defaultSubtitleForced,omitempty"` - WatchedIndicator *PostUsersSignInDataWatchedIndicator `json:"watchedIndicator,omitempty"` - MediaReviewsVisibility *PostUsersSignInDataMediaReviewsVisibility `json:"mediaReviewsVisibility,omitempty"` + DefaultSubtitleLanguage *string `json:"defaultSubtitleLanguage"` + AutoSelectSubtitle *PostUsersSignInDataAutoSelectSubtitle `default:"0" json:"autoSelectSubtitle"` + DefaultSubtitleAccessibility *PostUsersSignInDataDefaultSubtitleAccessibility `default:"0" json:"defaultSubtitleAccessibility"` + DefaultSubtitleForced *PostUsersSignInDataDefaultSubtitleForced `default:"0" json:"defaultSubtitleForced"` + WatchedIndicator *PostUsersSignInDataWatchedIndicator `default:"0" json:"watchedIndicator"` + MediaReviewsVisibility *PostUsersSignInDataMediaReviewsVisibility `default:"0" json:"mediaReviewsVisibility"` } func (p PostUsersSignInDataUserProfile) MarshalJSON() ([]byte, error) { @@ -1198,7 +1158,7 @@ type PostUsersSignInDataUserPlexAccount struct { HomeSize int `json:"homeSize"` // The Plex account ID ID int `json:"id"` - // Unix epoch datetime + // Unix epoch datetime in seconds JoinedAt int64 `json:"joinedAt"` // The account locale Locale *string `json:"locale"` @@ -1215,7 +1175,7 @@ type PostUsersSignInDataUserPlexAccount struct { Profile PostUsersSignInDataUserProfile `json:"profile"` // If the account has a Plex Home PIN enabled Protected *bool `default:"false" json:"protected"` - // Unix epoch datetime + // Unix epoch datetime in seconds RememberExpiresAt int64 `json:"rememberExpiresAt"` // If the account is a Plex Home managed user Restricted *bool `default:"false" json:"restricted"` diff --git a/models/operations/uploadplaylist.go b/models/operations/uploadplaylist.go index c0822bf..4f4fb21 100644 --- a/models/operations/uploadplaylist.go +++ b/models/operations/uploadplaylist.go @@ -5,6 +5,7 @@ package operations import ( "encoding/json" "fmt" + "github.com/LukeHagar/plexgo/internal/utils" "net/http" ) @@ -53,6 +54,19 @@ type UploadPlaylistRequest struct { // If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded. // Force QueryParamForce `queryParam:"style=form,explode=true,name=force"` + // Possibly the section ID to upload the playlist to, we are not certain. + SectionID int64 `default:"1" queryParam:"style=form,explode=true,name=sectionID"` +} + +func (u UploadPlaylistRequest) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UploadPlaylistRequest) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, false); err != nil { + return err + } + return nil } func (o *UploadPlaylistRequest) GetPath() string { @@ -69,6 +83,13 @@ func (o *UploadPlaylistRequest) GetForce() QueryParamForce { return o.Force } +func (o *UploadPlaylistRequest) GetSectionID() int64 { + if o == nil { + return 0 + } + return o.SectionID +} + type UploadPlaylistResponse struct { // HTTP response content type for this operation ContentType string diff --git a/playlists.go b/playlists.go index da05feb..d6789be 100644 --- a/playlists.go +++ b/playlists.go @@ -1966,7 +1966,7 @@ func (s *Playlists) AddPlaylistContents(ctx context.Context, playlistID float64, // UploadPlaylist - Upload Playlist // Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file. -func (s *Playlists) UploadPlaylist(ctx context.Context, path string, force operations.QueryParamForce, opts ...operations.Option) (*operations.UploadPlaylistResponse, error) { +func (s *Playlists) UploadPlaylist(ctx context.Context, path string, force operations.QueryParamForce, sectionID int64, opts ...operations.Option) (*operations.UploadPlaylistResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, OperationID: "uploadPlaylist", @@ -1975,8 +1975,9 @@ func (s *Playlists) UploadPlaylist(ctx context.Context, path string, force opera } request := operations.UploadPlaylistRequest{ - Path: path, - Force: force, + Path: path, + Force: force, + SectionID: sectionID, } o := operations.Options{} diff --git a/plex.go b/plex.go index a8f17d2..b49c561 100644 --- a/plex.go +++ b/plex.go @@ -1008,7 +1008,7 @@ func (s *Plex) GetHomeData(ctx context.Context, opts ...operations.Option) (*ope // GetServerResources - Get Server Resources // Get Plex server access tokens and server connections -func (s *Plex) GetServerResources(ctx context.Context, clientID *string, includeHTTPS *operations.IncludeHTTPS, includeRelay *operations.IncludeRelay, includeIPv6 *operations.IncludeIPv6, opts ...operations.Option) (*operations.GetServerResourcesResponse, error) { +func (s *Plex) GetServerResources(ctx context.Context, includeHTTPS *operations.IncludeHTTPS, includeRelay *operations.IncludeRelay, includeIPv6 *operations.IncludeIPv6, opts ...operations.Option) (*operations.GetServerResourcesResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, OperationID: "get-server-resources", @@ -1017,16 +1017,11 @@ func (s *Plex) GetServerResources(ctx context.Context, clientID *string, include } request := operations.GetServerResourcesRequest{ - ClientID: clientID, IncludeHTTPS: includeHTTPS, IncludeRelay: includeRelay, IncludeIPv6: includeIPv6, } - globals := operations.GetServerResourcesGlobals{ - ClientID: s.sdkConfiguration.Globals.ClientID, - } - o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionServerURL, @@ -1068,7 +1063,7 @@ func (s *Plex) GetServerResources(ctx context.Context, clientID *string, include req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if err := utils.PopulateQueryParams(ctx, req, request, globals); err != nil { + if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil { return nil, fmt.Errorf("error populating query params: %w", err) } @@ -1279,7 +1274,6 @@ func (s *Plex) GetPin(ctx context.Context, request operations.GetPinRequest, opt } globals := operations.GetPinGlobals{ - ClientID: s.sdkConfiguration.Globals.ClientID, ClientName: s.sdkConfiguration.Globals.ClientName, DeviceName: s.sdkConfiguration.Globals.DeviceName, ClientVersion: s.sdkConfiguration.Globals.ClientVersion, @@ -1502,7 +1496,7 @@ func (s *Plex) GetPin(ctx context.Context, request operations.GetPinRequest, opt // GetTokenByPinID - Get Access Token by PinId // Retrieve an Access Token from Plex.tv after the Pin has been authenticated -func (s *Plex) GetTokenByPinID(ctx context.Context, pinID int64, clientID *string, opts ...operations.Option) (*operations.GetTokenByPinIDResponse, error) { +func (s *Plex) GetTokenByPinID(ctx context.Context, pinID int64, opts ...operations.Option) (*operations.GetTokenByPinIDResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, OperationID: "getTokenByPinId", @@ -1511,12 +1505,7 @@ func (s *Plex) GetTokenByPinID(ctx context.Context, pinID int64, clientID *strin } request := operations.GetTokenByPinIDRequest{ - ClientID: clientID, - PinID: pinID, - } - - globals := operations.GetTokenByPinIDGlobals{ - ClientID: s.sdkConfiguration.Globals.ClientID, + PinID: pinID, } o := operations.Options{} @@ -1537,7 +1526,7 @@ func (s *Plex) GetTokenByPinID(ctx context.Context, pinID int64, clientID *strin baseURL = *o.ServerURL } - opURL, err := utils.GenerateURL(ctx, baseURL, "/pins/{pinID}", request, globals) + opURL, err := utils.GenerateURL(ctx, baseURL, "/pins/{pinID}", request, nil) if err != nil { return nil, fmt.Errorf("error generating URL: %w", err) } @@ -1560,10 +1549,6 @@ func (s *Plex) GetTokenByPinID(ctx context.Context, pinID int64, clientID *strin req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if err := utils.PopulateQueryParams(ctx, req, request, globals); err != nil { - return nil, fmt.Errorf("error populating query params: %w", err) - } - globalRetryConfig := s.sdkConfiguration.RetryConfig retryConfig := o.Retries if retryConfig == nil { diff --git a/plexapi.go b/plexapi.go index 6ab0cfc..2eff685 100644 --- a/plexapi.go +++ b/plexapi.go @@ -311,9 +311,9 @@ func New(opts ...SDKOption) *PlexAPI { sdkConfiguration: sdkConfiguration{ Language: "go", OpenAPIDocVersion: "0.0.3", - SDKVersion: "0.11.14", - GenVersion: "2.416.6", - UserAgent: "speakeasy-sdk/go 0.11.14 2.416.6 0.0.3 github.com/LukeHagar/plexgo", + SDKVersion: "0.12.0", + GenVersion: "2.421.3", + UserAgent: "speakeasy-sdk/go 0.12.0 2.421.3 0.0.3 github.com/LukeHagar/plexgo", Globals: globals.Globals{}, ServerDefaults: []map[string]string{ {