Compare commits

...

1 Commits

Author SHA1 Message Date
speakeasybot
636840a553 ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.405.6 2024-10-01 00:11:35 +00:00
51 changed files with 809 additions and 866 deletions

View File

@@ -1,12 +1,12 @@
lockVersion: 2.0.0 lockVersion: 2.0.0
id: dfa99515-01c0-42eb-9be5-ee212fd03eb3 id: dfa99515-01c0-42eb-9be5-ee212fd03eb3
management: management:
docChecksum: 5e039359563b41bbe118fc6701ba22dc docChecksum: f12b653820ae77ca3b2820bc9459d866
docVersion: 0.0.3 docVersion: 0.0.3
speakeasyVersion: 1.402.14 speakeasyVersion: 1.405.6
generationVersion: 2.422.22 generationVersion: 2.428.1
releaseVersion: 0.13.0 releaseVersion: 0.14.0
configChecksum: 6aa0259125228f92fd7f2b813993a97e configChecksum: b3f62e5341e89e4827891e48d581a6c3
repoURL: https://github.com/LukeHagar/plexgo.git repoURL: https://github.com/LukeHagar/plexgo.git
repoSubDirectory: . repoSubDirectory: .
installationURL: https://github.com/LukeHagar/plexgo installationURL: https://github.com/LukeHagar/plexgo
@@ -15,13 +15,13 @@ features:
go: go:
additionalDependencies: 0.1.0 additionalDependencies: 0.1.0
constsAndDefaults: 0.1.6 constsAndDefaults: 0.1.6
core: 3.5.10 core: 3.5.12
defaultEnabledRetries: 0.2.0 defaultEnabledRetries: 0.2.0
deprecations: 2.81.1 deprecations: 2.81.1
downloadStreams: 0.1.2 downloadStreams: 0.1.2
enums: 2.81.1 enums: 2.81.1
envVarSecurityUsage: 0.3.1 envVarSecurityUsage: 0.3.1
errors: 2.81.9 errors: 2.81.10
flattening: 2.81.1 flattening: 2.81.1
globalSecurity: 2.82.10 globalSecurity: 2.82.10
globalSecurityCallbacks: 0.1.0 globalSecurityCallbacks: 0.1.0
@@ -32,6 +32,7 @@ features:
methodServerURLs: 2.82.1 methodServerURLs: 2.82.1
nameOverrides: 2.81.2 nameOverrides: 2.81.2
nullables: 0.1.0 nullables: 0.1.0
openEnums: 0.1.0
responseFormat: 0.1.2 responseFormat: 0.1.2
retries: 2.83.0 retries: 2.83.0
sdkHooks: 0.1.0 sdkHooks: 0.1.0
@@ -477,6 +478,7 @@ generatedFiles:
- docs/models/operations/getserverpreferencesmediacontainer.md - docs/models/operations/getserverpreferencesmediacontainer.md
- docs/models/operations/getserverpreferencesresponse.md - docs/models/operations/getserverpreferencesresponse.md
- docs/models/operations/getserverpreferencesresponsebody.md - docs/models/operations/getserverpreferencesresponsebody.md
- docs/models/operations/getserverresourcesglobals.md
- docs/models/operations/getserverresourcesrequest.md - docs/models/operations/getserverresourcesrequest.md
- docs/models/operations/getserverresourcesresponse.md - docs/models/operations/getserverresourcesresponse.md
- docs/models/operations/getsessionhistorymediacontainer.md - docs/models/operations/getsessionhistorymediacontainer.md
@@ -505,6 +507,7 @@ generatedFiles:
- docs/models/operations/gettimelineresponse.md - docs/models/operations/gettimelineresponse.md
- docs/models/operations/gettokenbypinidauthpincontainer.md - docs/models/operations/gettokenbypinidauthpincontainer.md
- docs/models/operations/gettokenbypinidgeodata.md - docs/models/operations/gettokenbypinidgeodata.md
- docs/models/operations/gettokenbypinidglobals.md
- docs/models/operations/gettokenbypinidrequest.md - docs/models/operations/gettokenbypinidrequest.md
- docs/models/operations/gettokenbypinidresponse.md - docs/models/operations/gettokenbypinidresponse.md
- docs/models/operations/gettokendetailsauthenticationresponsestatus.md - docs/models/operations/gettokendetailsauthenticationresponsestatus.md
@@ -1314,6 +1317,7 @@ examples:
includeHttps: 1 includeHttps: 1
includeRelay: 1 includeRelay: 1
includeIPv6: 1 includeIPv6: 1
X-Plex-Client-Identifier: "gcgzw5rz2xovp84b4vha3a40"
responses: responses:
"200": "200":
application/json: [] application/json: []
@@ -1342,7 +1346,12 @@ examples:
parameters: parameters:
path: path:
pinID: 408895 pinID: 408895
query: {} query:
X-Plex-Client-Identifier: "gcgzw5rz2xovp84b4vha3a40"
X-Plex-Product: "Plex Web"
X-Plex-Device: "Linux"
X-Plex-Version: "4.133.0"
X-Plex-Platform: "Chrome"
responses: responses:
"404": "404":
application/json: {"errors": [{"code": 1020, "message": "Code not found or expired"}]} application/json: {"errors": [{"code": 1020, "message": "Code not found or expired"}]}
@@ -1982,7 +1991,7 @@ examples:
speakeasy-default-get-token-details: speakeasy-default-get-token-details:
responses: responses:
"200": "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": 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", "attributionPartner": null} 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": "active", "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", "attributionPartner": null}
"400": "400":
application/json: {"errors": []} application/json: {"errors": []}
"401": "401":

View File

@@ -12,7 +12,7 @@ generation:
auth: auth:
oAuth2ClientCredentialsEnabled: true oAuth2ClientCredentialsEnabled: true
go: go:
version: 0.13.0 version: 0.14.0
additionalDependencies: {} additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true clientServerStatusCodesAsErrors: true

View File

@@ -1,4 +1,4 @@
speakeasyVersion: 1.402.14 speakeasyVersion: 1.405.6
sources: sources:
my-source: my-source:
sourceNamespace: my-source sourceNamespace: my-source
@@ -9,8 +9,8 @@ sources:
- main - main
plexapi: plexapi:
sourceNamespace: plexapi sourceNamespace: plexapi
sourceRevisionDigest: sha256:b7081644a59eca24a22b8009506fcf459bf18b07dce0462b39bc36c40d94862e sourceRevisionDigest: sha256:c52cde0b8d51e160f7b9f1a3d3ea4dbb1aca6d5caad714e549201fb757fadd57
sourceBlobDigest: sha256:6b822f23afbc630bbc0fc12299316ea03d3671a2c2a81241ad4caa49022b430e sourceBlobDigest: sha256:f417b03ff71356808554313f24c3d06d670474bf51bc9a0631de1ad49c13a361
tags: tags:
- latest - latest
- main - main
@@ -18,10 +18,10 @@ targets:
plexgo: plexgo:
source: plexapi source: plexapi
sourceNamespace: plexapi sourceNamespace: plexapi
sourceRevisionDigest: sha256:b7081644a59eca24a22b8009506fcf459bf18b07dce0462b39bc36c40d94862e sourceRevisionDigest: sha256:c52cde0b8d51e160f7b9f1a3d3ea4dbb1aca6d5caad714e549201fb757fadd57
sourceBlobDigest: sha256:6b822f23afbc630bbc0fc12299316ea03d3671a2c2a81241ad4caa49022b430e sourceBlobDigest: sha256:f417b03ff71356808554313f24c3d06d670474bf51bc9a0631de1ad49c13a361
codeSamplesNamespace: code-samples-go-plexgo codeSamplesNamespace: code-samples-go-plexgo
codeSamplesRevisionDigest: sha256:77cf87f3a1619a7cf598f60cf04a2f82dd0809dd1d449c2a1f67a63729f5726a codeSamplesRevisionDigest: sha256:02a3daa914a5c29e77e5cae2f0c1ca74840d6627a908b2a8d890e93d99bd3767
workflow: workflow:
workflowVersion: 1.0.0 workflowVersion: 1.0.0
speakeasyVersion: latest speakeasyVersion: latest

View File

@@ -11,6 +11,31 @@
## Summary ## Summary
Plex-API: An Open API Spec for interacting with Plex.tv and Plex Media Server Plex-API: An Open API Spec for interacting with Plex.tv and Plex Media Server
# Plex Media Server OpenAPI Specification
An Open Source OpenAPI Specification for Plex Media Server
Automation and SDKs provided by [Speakeasy](https://speakeasyapi.dev/)
## Documentation
[API Documentation](https://plexapi.dev)
## SDKs
The following SDKs are generated from the OpenAPI Specification. They are automatically generated and may not be fully tested. If you find any issues, please open an issue on the [main specification Repository](https://github.com/LukeHagar/plex-api-spec).
| Language | Repository | Releases | Other |
| --------------------- | ------------------------------------------------- | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------- |
| Python | [GitHub](https://github.com/LukeHagar/plexpy) | [PyPI](https://pypi.org/project/plex-api-client/) | - |
| JavaScript/TypeScript | [GitHub](https://github.com/LukeHagar/plexjs) | [NPM](https://www.npmjs.com/package/@lukehagar/plexjs) \ [JSR](https://jsr.io/@lukehagar/plexjs) | - |
| Go | [GitHub](https://github.com/LukeHagar/plexgo) | [Releases](https://github.com/LukeHagar/plexgo/releases) | [GoDoc](https://pkg.go.dev/github.com/LukeHagar/plexgo) |
| Ruby | [GitHub](https://github.com/LukeHagar/plexruby) | [Releases](https://github.com/LukeHagar/plexruby/releases) | - |
| Swift | [GitHub](https://github.com/LukeHagar/plexswift) | [Releases](https://github.com/LukeHagar/plexswift/releases) | - |
| PHP | [GitHub](https://github.com/LukeHagar/plexphp) | [Releases](https://github.com/LukeHagar/plexphp/releases) | - |
| Java | [GitHub](https://github.com/LukeHagar/plexjava) | [Releases](https://github.com/LukeHagar/plexjava/releases) | - |
| C# | [GitHub](https://github.com/LukeHagar/plexcsharp) | [Releases](https://github.com/LukeHagar/plexcsharp/releases) | -
<!-- End Summary [summary] --> <!-- End Summary [summary] -->
<!-- Start Table of Contents [toc] --> <!-- Start Table of Contents [toc] -->
@@ -304,13 +329,17 @@ func main() {
<!-- Start Error Handling [errors] --> <!-- Start Error Handling [errors] -->
## Error Handling ## Error Handling
Handling errors in this SDK should largely match your expectations. All operations return a response object or an error, they will never return both. When specified by the OpenAPI spec document, the SDK will return the appropriate subclass. Handling errors in this SDK should largely match your expectations. All operations return a response object or an error, they will never return both.
| Error Object | Status Code | Content Type | By Default, an API error will return `sdkerrors.SDKError`. When custom error responses are specified for an operation, the SDK may also return their associated error. You can refer to respective *Errors* tables in SDK docs for more details on possible error types for each operation.
For example, the `GetServerCapabilities` function may return the following errors:
| Error Type | Status Code | Content Type |
| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- |
| sdkerrors.GetServerCapabilitiesBadRequest | 400 | application/json | | sdkerrors.GetServerCapabilitiesBadRequest | 400 | application/json |
| sdkerrors.GetServerCapabilitiesUnauthorized | 401 | application/json | | sdkerrors.GetServerCapabilitiesUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
### Example ### Example
@@ -473,7 +502,7 @@ func main() {
) )
ctx := context.Background() ctx := context.Background()
res, err := s.Plex.GetCompanionsData(ctx, operations.WithServerURL("https://plex.tv/api/v2/")) res, err := s.Plex.GetCompanionsData(ctx, operations.WithServerURL("https://plex.tv/api/v2"))
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }
@@ -589,7 +618,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. 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 `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. 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.
### Available Globals ### Available Globals
@@ -598,10 +627,7 @@ The following global parameters are available.
| Name | Type | Required | Description | | Name | Type | Required | Description |
| ---- | ---- |:--------:| ----------- | | ---- | ---- |:--------:| ----------- |
| ClientID | string | | The unique identifier for the client application | ClientID | string | | 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) |
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
|
| ClientName | string | | The ClientName parameter. | | ClientName | string | | The ClientName parameter. |
| ClientVersion | string | | The ClientVersion parameter. | | ClientVersion | string | | The ClientVersion parameter. |
| ClientPlatform | string | | The ClientPlatform parameter. | | ClientPlatform | string | | The ClientPlatform parameter. |
@@ -622,6 +648,7 @@ import (
func main() { func main() {
s := plexgo.New( s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"), plexgo.WithClientName("Plex Web"),
plexgo.WithClientVersion("4.133.0"), plexgo.WithClientVersion("4.133.0"),
@@ -630,11 +657,11 @@ func main() {
) )
ctx := context.Background() ctx := context.Background()
res, err := s.Plex.GetPin(ctx, operations.GetPinRequest{}) res, err := s.Plex.GetServerResources(ctx, operations.IncludeHTTPSEnable.ToPointer(), operations.IncludeRelayEnable.ToPointer(), operations.IncludeIPv6Enable.ToPointer(), plexgo.String("gcgzw5rz2xovp84b4vha3a40"))
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }
if res.AuthPinContainer != nil { if res.PlexDevices != nil {
// handle response // handle response
} }
} }

View File

@@ -923,3 +923,13 @@ Based on:
- [go v0.13.0] . - [go v0.13.0] .
### Releases ### Releases
- [Go v0.13.0] https://github.com/LukeHagar/plexgo/releases/tag/v0.13.0 - . - [Go v0.13.0] https://github.com/LukeHagar/plexgo/releases/tag/v0.13.0 - .
## 2024-10-01 00:10:01
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.405.6 (2.428.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.14.0] .
### Releases
- [Go v0.14.0] https://github.com/LukeHagar/plexgo/releases/tag/v0.14.0 - .

View File

@@ -1653,6 +1653,7 @@ actions:
import( import(
"github.com/LukeHagar/plexgo" "github.com/LukeHagar/plexgo"
"context" "context"
"github.com/LukeHagar/plexgo/models/operations"
"log" "log"
) )
@@ -1666,7 +1667,9 @@ actions:
) )
ctx := context.Background() ctx := context.Background()
res, err := s.Plex.GetTokenByPinID(ctx, 408895) res, err := s.Plex.GetTokenByPinID(ctx, operations.GetTokenByPinIDRequest{
PinID: 408895,
})
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }
@@ -2005,7 +2008,7 @@ actions:
) )
ctx := context.Background() ctx := context.Background()
res, err := s.Plex.GetServerResources(ctx, operations.IncludeHTTPSEnable.ToPointer(), operations.IncludeRelayEnable.ToPointer(), operations.IncludeIPv6Enable.ToPointer()) res, err := s.Plex.GetServerResources(ctx, operations.IncludeHTTPSEnable.ToPointer(), operations.IncludeRelayEnable.ToPointer(), operations.IncludeIPv6Enable.ToPointer(), plexgo.String("gcgzw5rz2xovp84b4vha3a40"))
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }

View File

@@ -3,12 +3,12 @@
## Fields ## Fields
| Field | Type | Required | Description | | Field | Type | Required | Description | Example |
| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- |
| `Protocol` | [operations.Protocol](../../models/operations/protocol.md) | :heavy_check_mark: | The protocol used for the connection (http, https, etc) | | `Protocol` | [operations.Protocol](../../models/operations/protocol.md) | :heavy_check_mark: | The protocol used for the connection (http, https, etc) | http |
| `Address` | *string* | :heavy_check_mark: | The (ip) address or domain name used for the connection | | `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 | | `Port` | *int* | :heavy_check_mark: | The port used for the connection | |
| `URI` | *string* | :heavy_check_mark: | The full URI of the connection | | `URI` | *string* | :heavy_check_mark: | The full URI of the connection | |
| `Local` | *bool* | :heavy_check_mark: | If the connection is local address | | `Local` | *bool* | :heavy_check_mark: | If the connection is local address | |
| `Relay` | *bool* | :heavy_check_mark: | If the connection is relayed through plex.direct | | `Relay` | *bool* | :heavy_check_mark: | If the connection is relayed through plex.direct | |
| `IPv6` | *bool* | :heavy_check_mark: | If the connection is using IPv6 | | `IPv6` | *bool* | :heavy_check_mark: | If the connection is using IPv6 | |

View File

@@ -12,28 +12,43 @@
| `FeaturesTrebleShowFeatures` | TREBLE-show-features | | `FeaturesTrebleShowFeatures` | TREBLE-show-features |
| `FeaturesAdCountdownTimer` | ad-countdown-timer | | `FeaturesAdCountdownTimer` | ad-countdown-timer |
| `FeaturesAdaptiveBitrate` | adaptive_bitrate | | `FeaturesAdaptiveBitrate` | adaptive_bitrate |
| `FeaturesAlbumTypes` | album-types |
| `FeaturesAllowDvr` | allow_dvr |
| `FeaturesAmazonLoopDebug` | amazon-loop-debug | | `FeaturesAmazonLoopDebug` | amazon-loop-debug |
| `FeaturesAvodAdAnalysis` | avod-ad-analysis | | `FeaturesAvodAdAnalysis` | avod-ad-analysis |
| `FeaturesAvodNewMedia` | avod-new-media | | `FeaturesAvodNewMedia` | avod-new-media |
| `FeaturesBlacklistGetSignin` | blacklist_get_signin | | `FeaturesBlacklistGetSignin` | blacklist_get_signin |
| `FeaturesBoostVoices` | boost-voices |
| `FeaturesCameraUpload` | camera_upload |
| `FeaturesClientRadioStations` | client-radio-stations | | `FeaturesClientRadioStations` | client-radio-stations |
| `FeaturesCloudflareTurnstileRequired` | cloudflare-turnstile-required | | `FeaturesCloudflareTurnstileRequired` | cloudflare-turnstile-required |
| `FeaturesCloudsync` | cloudsync |
| `FeaturesCollections` | collections | | `FeaturesCollections` | collections |
| `FeaturesCommentsAndRepliesPushNotifications` | comments_and_replies_push_notifications | | `FeaturesCommentsAndRepliesPushNotifications` | comments_and_replies_push_notifications |
| `FeaturesCommunityAccessPlexTv` | community_access_plex_tv | | `FeaturesCommunityAccessPlexTv` | community_access_plex_tv |
| `FeaturesCompanionsSonos` | companions_sonos | | `FeaturesCompanionsSonos` | companions_sonos |
| `FeaturesContentFilter` | content_filter |
| `FeaturesCustomHomeRemoval` | custom-home-removal | | `FeaturesCustomHomeRemoval` | custom-home-removal |
| `FeaturesDisableHomeUserFriendships` | disable_home_user_friendships | | `FeaturesDisableHomeUserFriendships` | disable_home_user_friendships |
| `FeaturesDisableSharingFriendships` | disable_sharing_friendships | | `FeaturesDisableSharingFriendships` | disable_sharing_friendships |
| `FeaturesDownloadsGating` | downloads-gating |
| `FeaturesDrmSupport` | drm_support | | `FeaturesDrmSupport` | drm_support |
| `FeaturesDvr` | dvr |
| `FeaturesDvrBlockUnsupportedCountries` | dvr-block-unsupported-countries |
| `FeaturesEpgRecentChannels` | epg-recent-channels |
| `FeaturesExcludeRestrictions` | exclude restrictions | | `FeaturesExcludeRestrictions` | exclude restrictions |
| `FeaturesFederatedAuth` | federated-auth | | `FeaturesFederatedAuth` | federated-auth |
| `FeaturesFriendRequestPushNotifications` | friend_request_push_notifications | | `FeaturesFriendRequestPushNotifications` | friend_request_push_notifications |
| `FeaturesGrandfatherSync` | grandfather-sync |
| `FeaturesGuidedUpgrade` | guided-upgrade | | `FeaturesGuidedUpgrade` | guided-upgrade |
| `FeaturesHardwareTranscoding` | hardware_transcoding |
| `FeaturesHome` | home | | `FeaturesHome` | home |
| `FeaturesHwtranscode` | hwtranscode |
| `FeaturesImaggaV2` | imagga-v2 |
| `FeaturesIncreasePasswordComplexity` | increase-password-complexity | | `FeaturesIncreasePasswordComplexity` | increase-password-complexity |
| `FeaturesIos14PrivacyBanner` | ios14-privacy-banner | | `FeaturesIos14PrivacyBanner` | ios14-privacy-banner |
| `FeaturesIterableNotificationTokens` | iterable-notification-tokens | | `FeaturesIterableNotificationTokens` | iterable-notification-tokens |
| `FeaturesItemClusters` | item_clusters |
| `FeaturesKeepPaymentMethod` | keep-payment-method | | `FeaturesKeepPaymentMethod` | keep-payment-method |
| `FeaturesKevinBacon` | kevin-bacon | | `FeaturesKevinBacon` | kevin-bacon |
| `FeaturesKoreaConsent` | korea-consent | | `FeaturesKoreaConsent` | korea-consent |
@@ -42,25 +57,46 @@
| `FeaturesLightningDvrPivot` | lightning-dvr-pivot | | `FeaturesLightningDvrPivot` | lightning-dvr-pivot |
| `FeaturesLiveTvSupportIncompleteSegments` | live-tv-support-incomplete-segments | | `FeaturesLiveTvSupportIncompleteSegments` | live-tv-support-incomplete-segments |
| `FeaturesLivetv` | livetv | | `FeaturesLivetv` | livetv |
| `FeaturesLyrics` | lyrics |
| `FeaturesMetadataSearch` | metadata_search | | `FeaturesMetadataSearch` | metadata_search |
| `FeaturesMusicAnalysis` | music-analysis |
| `FeaturesMusicVideos` | music_videos |
| `FeaturesNewPlexPassPrices` | new_plex_pass_prices | | `FeaturesNewPlexPassPrices` | new_plex_pass_prices |
| `FeaturesNewsProviderSunsetModal` | news-provider-sunset-modal | | `FeaturesNewsProviderSunsetModal` | news-provider-sunset-modal |
| `FeaturesNominatim` | nominatim |
| `FeaturesPass` | pass |
| `FeaturesPhotosFavorites` | photos-favorites | | `FeaturesPhotosFavorites` | photos-favorites |
| `FeaturesPhotosMetadataEdition` | photos-metadata-edition | | `FeaturesPhotosMetadataEdition` | photos-metadata-edition |
| `FeaturesPhotosV6Edit` | photosV6-edit |
| `FeaturesPhotosV6TvAlbums` | photosV6-tv-albums |
| `FeaturesPmsHealth` | pms_health | | `FeaturesPmsHealth` | pms_health |
| `FeaturesPremiumDashboard` | premium-dashboard |
| `FeaturesPremiumMusicMetadata` | premium_music_metadata |
| `FeaturesRadio` | radio | | `FeaturesRadio` | radio |
| `FeaturesRateLimitClientToken` | rate-limit-client-token | | `FeaturesRateLimitClientToken` | rate-limit-client-token |
| `FeaturesScrobblingServicePlexTv` | scrobbling-service-plex-tv | | `FeaturesScrobblingServicePlexTv` | scrobbling-service-plex-tv |
| `FeaturesSessionBandwidthRestrictions` | session_bandwidth_restrictions |
| `FeaturesSessionKick` | session_kick |
| `FeaturesSharedServerNotification` | shared_server_notification | | `FeaturesSharedServerNotification` | shared_server_notification |
| `FeaturesSharedSourceNotification` | shared_source_notification | | `FeaturesSharedSourceNotification` | shared_source_notification |
| `FeaturesSigninNotification` | signin_notification |
| `FeaturesSigninWithApple` | signin_with_apple | | `FeaturesSigninWithApple` | signin_with_apple |
| `FeaturesSilenceRemoval` | silence-removal |
| `FeaturesSleepTimer` | sleep-timer |
| `FeaturesSpringServeAdProvider` | spring_serve_ad_provider | | `FeaturesSpringServeAdProvider` | spring_serve_ad_provider |
| `FeaturesSync` | sync |
| `FeaturesSweetFades` | sweet-fades |
| `FeaturesTranscoderCache` | transcoder_cache | | `FeaturesTranscoderCache` | transcoder_cache |
| `FeaturesTrailers` | trailers |
| `FeaturesTunerSharing` | tuner-sharing | | `FeaturesTunerSharing` | tuner-sharing |
| `FeaturesTwoFactorAuthentication` | two-factor-authentication | | `FeaturesTwoFactorAuthentication` | two-factor-authentication |
| `FeaturesUnsupportedtuners` | unsupportedtuners | | `FeaturesUnsupportedtuners` | unsupportedtuners |
| `FeaturesUpgrade3ds2` | upgrade-3ds2 | | `FeaturesUpgrade3ds2` | upgrade-3ds2 |
| `FeaturesVisualizers` | visualizers |
| `FeaturesVodSchema` | vod-schema | | `FeaturesVodSchema` | vod-schema |
| `FeaturesVodCloudflare` | vod_cloudflare | | `FeaturesVodCloudflare` | vod_cloudflare |
| `FeaturesVolumeLeveling` | volume-leveling |
| `FeaturesWatchTogetherInvite` | watch-together-invite | | `FeaturesWatchTogetherInvite` | watch-together-invite |
| `FeaturesWatchlistRss` | watchlist-rss |
| `FeaturesWebServerDashboard` | web_server_dashboard | | `FeaturesWebServerDashboard` | web_server_dashboard |
| `FeaturesWebhooks` | webhooks |

View File

@@ -3,10 +3,10 @@
## Fields ## Fields
| Field | Type | Required | Description | Example | | Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `ClientID` | **string* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 | | `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 | | `ClientName` | **string* | :heavy_minus_sign: | N/A | Plex Web |
| `DeviceName` | **string* | :heavy_minus_sign: | N/A | Linux | | `DeviceName` | **string* | :heavy_minus_sign: | N/A | Linux |
| `ClientVersion` | **string* | :heavy_minus_sign: | N/A | 4.133.0 | | `ClientVersion` | **string* | :heavy_minus_sign: | N/A | 4.133.0 |
| `ClientPlatform` | **string* | :heavy_minus_sign: | N/A | Chrome | | `ClientPlatform` | **string* | :heavy_minus_sign: | N/A | Chrome |

View File

@@ -3,11 +3,11 @@
## Fields ## Fields
| Field | Type | Required | Description | Example | | Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Strong` | **bool* | :heavy_minus_sign: | Determines the kind of code returned by the API call<br/>Strong codes are used for Pin authentication flows<br/>Non-Strong codes are used for `Plex.tv/link`<br/> | | | `Strong` | **bool* | :heavy_minus_sign: | Determines the kind of code returned by the API call<br/>Strong codes are used for Pin authentication flows<br/>Non-Strong codes are used for `Plex.tv/link`<br/> | |
| `ClientID` | **string* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 | | `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 | | `ClientName` | **string* | :heavy_minus_sign: | N/A | Plex Web |
| `DeviceName` | **string* | :heavy_minus_sign: | N/A | Linux | | `DeviceName` | **string* | :heavy_minus_sign: | N/A | Linux |
| `ClientVersion` | **string* | :heavy_minus_sign: | N/A | 4.133.0 | | `ClientVersion` | **string* | :heavy_minus_sign: | N/A | 4.133.0 |
| `ClientPlatform` | **string* | :heavy_minus_sign: | N/A | Chrome | | `ClientPlatform` | **string* | :heavy_minus_sign: | N/A | Chrome |

View File

@@ -0,0 +1,8 @@
# 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 |

View File

@@ -3,8 +3,9 @@
## Fields ## Fields
| Field | Type | Required | Description | Example | | Field | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `IncludeHTTPS` | [*operations.IncludeHTTPS](../../models/operations/includehttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 | | `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 <br/>E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400<br/> | 1 | | `IncludeRelay` | [*operations.IncludeRelay](../../models/operations/includerelay.md) | :heavy_minus_sign: | Include Relay addresses in the results <br/>E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400<br/> | 1 |
| `IncludeIPv6` | [*operations.IncludeIPv6](../../models/operations/includeipv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 | | `IncludeIPv6` | [*operations.IncludeIPv6](../../models/operations/includeipv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 |
| `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 |

View File

@@ -0,0 +1,12 @@
# 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 |
| `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 |

View File

@@ -3,6 +3,11 @@
## Fields ## Fields
| Field | Type | Required | Description | | Field | Type | Required | Description | Example |
| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `PinID` | *int64* | :heavy_check_mark: | The PinID to retrieve an access token for | | `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 |
| `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 |

View File

@@ -12,28 +12,43 @@
| `GetTokenDetailsFeaturesTrebleShowFeatures` | TREBLE-show-features | | `GetTokenDetailsFeaturesTrebleShowFeatures` | TREBLE-show-features |
| `GetTokenDetailsFeaturesAdCountdownTimer` | ad-countdown-timer | | `GetTokenDetailsFeaturesAdCountdownTimer` | ad-countdown-timer |
| `GetTokenDetailsFeaturesAdaptiveBitrate` | adaptive_bitrate | | `GetTokenDetailsFeaturesAdaptiveBitrate` | adaptive_bitrate |
| `GetTokenDetailsFeaturesAlbumTypes` | album-types |
| `GetTokenDetailsFeaturesAllowDvr` | allow_dvr |
| `GetTokenDetailsFeaturesAmazonLoopDebug` | amazon-loop-debug | | `GetTokenDetailsFeaturesAmazonLoopDebug` | amazon-loop-debug |
| `GetTokenDetailsFeaturesAvodAdAnalysis` | avod-ad-analysis | | `GetTokenDetailsFeaturesAvodAdAnalysis` | avod-ad-analysis |
| `GetTokenDetailsFeaturesAvodNewMedia` | avod-new-media | | `GetTokenDetailsFeaturesAvodNewMedia` | avod-new-media |
| `GetTokenDetailsFeaturesBlacklistGetSignin` | blacklist_get_signin | | `GetTokenDetailsFeaturesBlacklistGetSignin` | blacklist_get_signin |
| `GetTokenDetailsFeaturesBoostVoices` | boost-voices |
| `GetTokenDetailsFeaturesCameraUpload` | camera_upload |
| `GetTokenDetailsFeaturesClientRadioStations` | client-radio-stations | | `GetTokenDetailsFeaturesClientRadioStations` | client-radio-stations |
| `GetTokenDetailsFeaturesCloudflareTurnstileRequired` | cloudflare-turnstile-required | | `GetTokenDetailsFeaturesCloudflareTurnstileRequired` | cloudflare-turnstile-required |
| `GetTokenDetailsFeaturesCloudsync` | cloudsync |
| `GetTokenDetailsFeaturesCollections` | collections | | `GetTokenDetailsFeaturesCollections` | collections |
| `GetTokenDetailsFeaturesCommentsAndRepliesPushNotifications` | comments_and_replies_push_notifications | | `GetTokenDetailsFeaturesCommentsAndRepliesPushNotifications` | comments_and_replies_push_notifications |
| `GetTokenDetailsFeaturesCommunityAccessPlexTv` | community_access_plex_tv | | `GetTokenDetailsFeaturesCommunityAccessPlexTv` | community_access_plex_tv |
| `GetTokenDetailsFeaturesCompanionsSonos` | companions_sonos | | `GetTokenDetailsFeaturesCompanionsSonos` | companions_sonos |
| `GetTokenDetailsFeaturesContentFilter` | content_filter |
| `GetTokenDetailsFeaturesCustomHomeRemoval` | custom-home-removal | | `GetTokenDetailsFeaturesCustomHomeRemoval` | custom-home-removal |
| `GetTokenDetailsFeaturesDisableHomeUserFriendships` | disable_home_user_friendships | | `GetTokenDetailsFeaturesDisableHomeUserFriendships` | disable_home_user_friendships |
| `GetTokenDetailsFeaturesDisableSharingFriendships` | disable_sharing_friendships | | `GetTokenDetailsFeaturesDisableSharingFriendships` | disable_sharing_friendships |
| `GetTokenDetailsFeaturesDownloadsGating` | downloads-gating |
| `GetTokenDetailsFeaturesDrmSupport` | drm_support | | `GetTokenDetailsFeaturesDrmSupport` | drm_support |
| `GetTokenDetailsFeaturesDvr` | dvr |
| `GetTokenDetailsFeaturesDvrBlockUnsupportedCountries` | dvr-block-unsupported-countries |
| `GetTokenDetailsFeaturesEpgRecentChannels` | epg-recent-channels |
| `GetTokenDetailsFeaturesExcludeRestrictions` | exclude restrictions | | `GetTokenDetailsFeaturesExcludeRestrictions` | exclude restrictions |
| `GetTokenDetailsFeaturesFederatedAuth` | federated-auth | | `GetTokenDetailsFeaturesFederatedAuth` | federated-auth |
| `GetTokenDetailsFeaturesFriendRequestPushNotifications` | friend_request_push_notifications | | `GetTokenDetailsFeaturesFriendRequestPushNotifications` | friend_request_push_notifications |
| `GetTokenDetailsFeaturesGrandfatherSync` | grandfather-sync |
| `GetTokenDetailsFeaturesGuidedUpgrade` | guided-upgrade | | `GetTokenDetailsFeaturesGuidedUpgrade` | guided-upgrade |
| `GetTokenDetailsFeaturesHardwareTranscoding` | hardware_transcoding |
| `GetTokenDetailsFeaturesHome` | home | | `GetTokenDetailsFeaturesHome` | home |
| `GetTokenDetailsFeaturesHwtranscode` | hwtranscode |
| `GetTokenDetailsFeaturesImaggaV2` | imagga-v2 |
| `GetTokenDetailsFeaturesIncreasePasswordComplexity` | increase-password-complexity | | `GetTokenDetailsFeaturesIncreasePasswordComplexity` | increase-password-complexity |
| `GetTokenDetailsFeaturesIos14PrivacyBanner` | ios14-privacy-banner | | `GetTokenDetailsFeaturesIos14PrivacyBanner` | ios14-privacy-banner |
| `GetTokenDetailsFeaturesIterableNotificationTokens` | iterable-notification-tokens | | `GetTokenDetailsFeaturesIterableNotificationTokens` | iterable-notification-tokens |
| `GetTokenDetailsFeaturesItemClusters` | item_clusters |
| `GetTokenDetailsFeaturesKeepPaymentMethod` | keep-payment-method | | `GetTokenDetailsFeaturesKeepPaymentMethod` | keep-payment-method |
| `GetTokenDetailsFeaturesKevinBacon` | kevin-bacon | | `GetTokenDetailsFeaturesKevinBacon` | kevin-bacon |
| `GetTokenDetailsFeaturesKoreaConsent` | korea-consent | | `GetTokenDetailsFeaturesKoreaConsent` | korea-consent |
@@ -42,25 +57,46 @@
| `GetTokenDetailsFeaturesLightningDvrPivot` | lightning-dvr-pivot | | `GetTokenDetailsFeaturesLightningDvrPivot` | lightning-dvr-pivot |
| `GetTokenDetailsFeaturesLiveTvSupportIncompleteSegments` | live-tv-support-incomplete-segments | | `GetTokenDetailsFeaturesLiveTvSupportIncompleteSegments` | live-tv-support-incomplete-segments |
| `GetTokenDetailsFeaturesLivetv` | livetv | | `GetTokenDetailsFeaturesLivetv` | livetv |
| `GetTokenDetailsFeaturesLyrics` | lyrics |
| `GetTokenDetailsFeaturesMetadataSearch` | metadata_search | | `GetTokenDetailsFeaturesMetadataSearch` | metadata_search |
| `GetTokenDetailsFeaturesMusicAnalysis` | music-analysis |
| `GetTokenDetailsFeaturesMusicVideos` | music_videos |
| `GetTokenDetailsFeaturesNewPlexPassPrices` | new_plex_pass_prices | | `GetTokenDetailsFeaturesNewPlexPassPrices` | new_plex_pass_prices |
| `GetTokenDetailsFeaturesNewsProviderSunsetModal` | news-provider-sunset-modal | | `GetTokenDetailsFeaturesNewsProviderSunsetModal` | news-provider-sunset-modal |
| `GetTokenDetailsFeaturesNominatim` | nominatim |
| `GetTokenDetailsFeaturesPass` | pass |
| `GetTokenDetailsFeaturesPhotosFavorites` | photos-favorites | | `GetTokenDetailsFeaturesPhotosFavorites` | photos-favorites |
| `GetTokenDetailsFeaturesPhotosMetadataEdition` | photos-metadata-edition | | `GetTokenDetailsFeaturesPhotosMetadataEdition` | photos-metadata-edition |
| `GetTokenDetailsFeaturesPhotosV6Edit` | photosV6-edit |
| `GetTokenDetailsFeaturesPhotosV6TvAlbums` | photosV6-tv-albums |
| `GetTokenDetailsFeaturesPmsHealth` | pms_health | | `GetTokenDetailsFeaturesPmsHealth` | pms_health |
| `GetTokenDetailsFeaturesPremiumDashboard` | premium-dashboard |
| `GetTokenDetailsFeaturesPremiumMusicMetadata` | premium_music_metadata |
| `GetTokenDetailsFeaturesRadio` | radio | | `GetTokenDetailsFeaturesRadio` | radio |
| `GetTokenDetailsFeaturesRateLimitClientToken` | rate-limit-client-token | | `GetTokenDetailsFeaturesRateLimitClientToken` | rate-limit-client-token |
| `GetTokenDetailsFeaturesScrobblingServicePlexTv` | scrobbling-service-plex-tv | | `GetTokenDetailsFeaturesScrobblingServicePlexTv` | scrobbling-service-plex-tv |
| `GetTokenDetailsFeaturesSessionBandwidthRestrictions` | session_bandwidth_restrictions |
| `GetTokenDetailsFeaturesSessionKick` | session_kick |
| `GetTokenDetailsFeaturesSharedServerNotification` | shared_server_notification | | `GetTokenDetailsFeaturesSharedServerNotification` | shared_server_notification |
| `GetTokenDetailsFeaturesSharedSourceNotification` | shared_source_notification | | `GetTokenDetailsFeaturesSharedSourceNotification` | shared_source_notification |
| `GetTokenDetailsFeaturesSigninNotification` | signin_notification |
| `GetTokenDetailsFeaturesSigninWithApple` | signin_with_apple | | `GetTokenDetailsFeaturesSigninWithApple` | signin_with_apple |
| `GetTokenDetailsFeaturesSilenceRemoval` | silence-removal |
| `GetTokenDetailsFeaturesSleepTimer` | sleep-timer |
| `GetTokenDetailsFeaturesSpringServeAdProvider` | spring_serve_ad_provider | | `GetTokenDetailsFeaturesSpringServeAdProvider` | spring_serve_ad_provider |
| `GetTokenDetailsFeaturesSync` | sync |
| `GetTokenDetailsFeaturesSweetFades` | sweet-fades |
| `GetTokenDetailsFeaturesTranscoderCache` | transcoder_cache | | `GetTokenDetailsFeaturesTranscoderCache` | transcoder_cache |
| `GetTokenDetailsFeaturesTrailers` | trailers |
| `GetTokenDetailsFeaturesTunerSharing` | tuner-sharing | | `GetTokenDetailsFeaturesTunerSharing` | tuner-sharing |
| `GetTokenDetailsFeaturesTwoFactorAuthentication` | two-factor-authentication | | `GetTokenDetailsFeaturesTwoFactorAuthentication` | two-factor-authentication |
| `GetTokenDetailsFeaturesUnsupportedtuners` | unsupportedtuners | | `GetTokenDetailsFeaturesUnsupportedtuners` | unsupportedtuners |
| `GetTokenDetailsFeaturesUpgrade3ds2` | upgrade-3ds2 | | `GetTokenDetailsFeaturesUpgrade3ds2` | upgrade-3ds2 |
| `GetTokenDetailsFeaturesVisualizers` | visualizers |
| `GetTokenDetailsFeaturesVodSchema` | vod-schema | | `GetTokenDetailsFeaturesVodSchema` | vod-schema |
| `GetTokenDetailsFeaturesVodCloudflare` | vod_cloudflare | | `GetTokenDetailsFeaturesVodCloudflare` | vod_cloudflare |
| `GetTokenDetailsFeaturesVolumeLeveling` | volume-leveling |
| `GetTokenDetailsFeaturesWatchTogetherInvite` | watch-together-invite | | `GetTokenDetailsFeaturesWatchTogetherInvite` | watch-together-invite |
| `GetTokenDetailsFeaturesWatchlistRss` | watchlist-rss |
| `GetTokenDetailsFeaturesWebServerDashboard` | web_server_dashboard | | `GetTokenDetailsFeaturesWebServerDashboard` | web_server_dashboard |
| `GetTokenDetailsFeaturesWebhooks` | webhooks |

View File

@@ -29,7 +29,7 @@ Logged in user details
| `JoinedAt` | *int64* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 | | `JoinedAt` | *int64* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 |
| `Locale` | *string* | :heavy_check_mark: | The account locale | | | `Locale` | *string* | :heavy_check_mark: | The account locale | |
| `MailingListActive` | **bool* | :heavy_minus_sign: | If you are subscribed to the Plex newsletter | | | `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 | | | `MailingListStatus` | [operations.MailingListStatus](../../models/operations/mailingliststatus.md) | :heavy_check_mark: | Your current mailing list status (active or unsubscribed) | active |
| `MaxHomeSize` | *int* | :heavy_check_mark: | The maximum number of accounts allowed in the Plex Home | 15 | | `MaxHomeSize` | *int* | :heavy_check_mark: | The maximum number of accounts allowed in the Plex Home | 15 |
| ~~`Pin`~~ | **string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.<br/><br/>[Might be removed] The hashed Plex Home PIN | | | ~~`Pin`~~ | **string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.<br/><br/>[Might be removed] The hashed Plex Home PIN | |
| `Profile` | [operations.UserProfile](../../models/operations/userprofile.md) | :heavy_check_mark: | N/A | | | `Profile` | [operations.UserProfile](../../models/operations/userprofile.md) | :heavy_check_mark: | N/A | |

View File

@@ -1,6 +1,6 @@
# MailingListStatus # MailingListStatus
Your current mailing list status Your current mailing list status (active or unsubscribed)
## Values ## Values

View File

@@ -12,28 +12,43 @@
| `PostUsersSignInDataAuthenticationFeaturesTrebleShowFeatures` | TREBLE-show-features | | `PostUsersSignInDataAuthenticationFeaturesTrebleShowFeatures` | TREBLE-show-features |
| `PostUsersSignInDataAuthenticationFeaturesAdCountdownTimer` | ad-countdown-timer | | `PostUsersSignInDataAuthenticationFeaturesAdCountdownTimer` | ad-countdown-timer |
| `PostUsersSignInDataAuthenticationFeaturesAdaptiveBitrate` | adaptive_bitrate | | `PostUsersSignInDataAuthenticationFeaturesAdaptiveBitrate` | adaptive_bitrate |
| `PostUsersSignInDataAuthenticationFeaturesAlbumTypes` | album-types |
| `PostUsersSignInDataAuthenticationFeaturesAllowDvr` | allow_dvr |
| `PostUsersSignInDataAuthenticationFeaturesAmazonLoopDebug` | amazon-loop-debug | | `PostUsersSignInDataAuthenticationFeaturesAmazonLoopDebug` | amazon-loop-debug |
| `PostUsersSignInDataAuthenticationFeaturesAvodAdAnalysis` | avod-ad-analysis | | `PostUsersSignInDataAuthenticationFeaturesAvodAdAnalysis` | avod-ad-analysis |
| `PostUsersSignInDataAuthenticationFeaturesAvodNewMedia` | avod-new-media | | `PostUsersSignInDataAuthenticationFeaturesAvodNewMedia` | avod-new-media |
| `PostUsersSignInDataAuthenticationFeaturesBlacklistGetSignin` | blacklist_get_signin | | `PostUsersSignInDataAuthenticationFeaturesBlacklistGetSignin` | blacklist_get_signin |
| `PostUsersSignInDataAuthenticationFeaturesBoostVoices` | boost-voices |
| `PostUsersSignInDataAuthenticationFeaturesCameraUpload` | camera_upload |
| `PostUsersSignInDataAuthenticationFeaturesClientRadioStations` | client-radio-stations | | `PostUsersSignInDataAuthenticationFeaturesClientRadioStations` | client-radio-stations |
| `PostUsersSignInDataAuthenticationFeaturesCloudflareTurnstileRequired` | cloudflare-turnstile-required | | `PostUsersSignInDataAuthenticationFeaturesCloudflareTurnstileRequired` | cloudflare-turnstile-required |
| `PostUsersSignInDataAuthenticationFeaturesCloudsync` | cloudsync |
| `PostUsersSignInDataAuthenticationFeaturesCollections` | collections | | `PostUsersSignInDataAuthenticationFeaturesCollections` | collections |
| `PostUsersSignInDataAuthenticationFeaturesCommentsAndRepliesPushNotifications` | comments_and_replies_push_notifications | | `PostUsersSignInDataAuthenticationFeaturesCommentsAndRepliesPushNotifications` | comments_and_replies_push_notifications |
| `PostUsersSignInDataAuthenticationFeaturesCommunityAccessPlexTv` | community_access_plex_tv | | `PostUsersSignInDataAuthenticationFeaturesCommunityAccessPlexTv` | community_access_plex_tv |
| `PostUsersSignInDataAuthenticationFeaturesCompanionsSonos` | companions_sonos | | `PostUsersSignInDataAuthenticationFeaturesCompanionsSonos` | companions_sonos |
| `PostUsersSignInDataAuthenticationFeaturesContentFilter` | content_filter |
| `PostUsersSignInDataAuthenticationFeaturesCustomHomeRemoval` | custom-home-removal | | `PostUsersSignInDataAuthenticationFeaturesCustomHomeRemoval` | custom-home-removal |
| `PostUsersSignInDataAuthenticationFeaturesDisableHomeUserFriendships` | disable_home_user_friendships | | `PostUsersSignInDataAuthenticationFeaturesDisableHomeUserFriendships` | disable_home_user_friendships |
| `PostUsersSignInDataAuthenticationFeaturesDisableSharingFriendships` | disable_sharing_friendships | | `PostUsersSignInDataAuthenticationFeaturesDisableSharingFriendships` | disable_sharing_friendships |
| `PostUsersSignInDataAuthenticationFeaturesDownloadsGating` | downloads-gating |
| `PostUsersSignInDataAuthenticationFeaturesDrmSupport` | drm_support | | `PostUsersSignInDataAuthenticationFeaturesDrmSupport` | drm_support |
| `PostUsersSignInDataAuthenticationFeaturesDvr` | dvr |
| `PostUsersSignInDataAuthenticationFeaturesDvrBlockUnsupportedCountries` | dvr-block-unsupported-countries |
| `PostUsersSignInDataAuthenticationFeaturesEpgRecentChannels` | epg-recent-channels |
| `PostUsersSignInDataAuthenticationFeaturesExcludeRestrictions` | exclude restrictions | | `PostUsersSignInDataAuthenticationFeaturesExcludeRestrictions` | exclude restrictions |
| `PostUsersSignInDataAuthenticationFeaturesFederatedAuth` | federated-auth | | `PostUsersSignInDataAuthenticationFeaturesFederatedAuth` | federated-auth |
| `PostUsersSignInDataAuthenticationFeaturesFriendRequestPushNotifications` | friend_request_push_notifications | | `PostUsersSignInDataAuthenticationFeaturesFriendRequestPushNotifications` | friend_request_push_notifications |
| `PostUsersSignInDataAuthenticationFeaturesGrandfatherSync` | grandfather-sync |
| `PostUsersSignInDataAuthenticationFeaturesGuidedUpgrade` | guided-upgrade | | `PostUsersSignInDataAuthenticationFeaturesGuidedUpgrade` | guided-upgrade |
| `PostUsersSignInDataAuthenticationFeaturesHardwareTranscoding` | hardware_transcoding |
| `PostUsersSignInDataAuthenticationFeaturesHome` | home | | `PostUsersSignInDataAuthenticationFeaturesHome` | home |
| `PostUsersSignInDataAuthenticationFeaturesHwtranscode` | hwtranscode |
| `PostUsersSignInDataAuthenticationFeaturesImaggaV2` | imagga-v2 |
| `PostUsersSignInDataAuthenticationFeaturesIncreasePasswordComplexity` | increase-password-complexity | | `PostUsersSignInDataAuthenticationFeaturesIncreasePasswordComplexity` | increase-password-complexity |
| `PostUsersSignInDataAuthenticationFeaturesIos14PrivacyBanner` | ios14-privacy-banner | | `PostUsersSignInDataAuthenticationFeaturesIos14PrivacyBanner` | ios14-privacy-banner |
| `PostUsersSignInDataAuthenticationFeaturesIterableNotificationTokens` | iterable-notification-tokens | | `PostUsersSignInDataAuthenticationFeaturesIterableNotificationTokens` | iterable-notification-tokens |
| `PostUsersSignInDataAuthenticationFeaturesItemClusters` | item_clusters |
| `PostUsersSignInDataAuthenticationFeaturesKeepPaymentMethod` | keep-payment-method | | `PostUsersSignInDataAuthenticationFeaturesKeepPaymentMethod` | keep-payment-method |
| `PostUsersSignInDataAuthenticationFeaturesKevinBacon` | kevin-bacon | | `PostUsersSignInDataAuthenticationFeaturesKevinBacon` | kevin-bacon |
| `PostUsersSignInDataAuthenticationFeaturesKoreaConsent` | korea-consent | | `PostUsersSignInDataAuthenticationFeaturesKoreaConsent` | korea-consent |
@@ -42,25 +57,46 @@
| `PostUsersSignInDataAuthenticationFeaturesLightningDvrPivot` | lightning-dvr-pivot | | `PostUsersSignInDataAuthenticationFeaturesLightningDvrPivot` | lightning-dvr-pivot |
| `PostUsersSignInDataAuthenticationFeaturesLiveTvSupportIncompleteSegments` | live-tv-support-incomplete-segments | | `PostUsersSignInDataAuthenticationFeaturesLiveTvSupportIncompleteSegments` | live-tv-support-incomplete-segments |
| `PostUsersSignInDataAuthenticationFeaturesLivetv` | livetv | | `PostUsersSignInDataAuthenticationFeaturesLivetv` | livetv |
| `PostUsersSignInDataAuthenticationFeaturesLyrics` | lyrics |
| `PostUsersSignInDataAuthenticationFeaturesMetadataSearch` | metadata_search | | `PostUsersSignInDataAuthenticationFeaturesMetadataSearch` | metadata_search |
| `PostUsersSignInDataAuthenticationFeaturesMusicAnalysis` | music-analysis |
| `PostUsersSignInDataAuthenticationFeaturesMusicVideos` | music_videos |
| `PostUsersSignInDataAuthenticationFeaturesNewPlexPassPrices` | new_plex_pass_prices | | `PostUsersSignInDataAuthenticationFeaturesNewPlexPassPrices` | new_plex_pass_prices |
| `PostUsersSignInDataAuthenticationFeaturesNewsProviderSunsetModal` | news-provider-sunset-modal | | `PostUsersSignInDataAuthenticationFeaturesNewsProviderSunsetModal` | news-provider-sunset-modal |
| `PostUsersSignInDataAuthenticationFeaturesNominatim` | nominatim |
| `PostUsersSignInDataAuthenticationFeaturesPass` | pass |
| `PostUsersSignInDataAuthenticationFeaturesPhotosFavorites` | photos-favorites | | `PostUsersSignInDataAuthenticationFeaturesPhotosFavorites` | photos-favorites |
| `PostUsersSignInDataAuthenticationFeaturesPhotosMetadataEdition` | photos-metadata-edition | | `PostUsersSignInDataAuthenticationFeaturesPhotosMetadataEdition` | photos-metadata-edition |
| `PostUsersSignInDataAuthenticationFeaturesPhotosV6Edit` | photosV6-edit |
| `PostUsersSignInDataAuthenticationFeaturesPhotosV6TvAlbums` | photosV6-tv-albums |
| `PostUsersSignInDataAuthenticationFeaturesPmsHealth` | pms_health | | `PostUsersSignInDataAuthenticationFeaturesPmsHealth` | pms_health |
| `PostUsersSignInDataAuthenticationFeaturesPremiumDashboard` | premium-dashboard |
| `PostUsersSignInDataAuthenticationFeaturesPremiumMusicMetadata` | premium_music_metadata |
| `PostUsersSignInDataAuthenticationFeaturesRadio` | radio | | `PostUsersSignInDataAuthenticationFeaturesRadio` | radio |
| `PostUsersSignInDataAuthenticationFeaturesRateLimitClientToken` | rate-limit-client-token | | `PostUsersSignInDataAuthenticationFeaturesRateLimitClientToken` | rate-limit-client-token |
| `PostUsersSignInDataAuthenticationFeaturesScrobblingServicePlexTv` | scrobbling-service-plex-tv | | `PostUsersSignInDataAuthenticationFeaturesScrobblingServicePlexTv` | scrobbling-service-plex-tv |
| `PostUsersSignInDataAuthenticationFeaturesSessionBandwidthRestrictions` | session_bandwidth_restrictions |
| `PostUsersSignInDataAuthenticationFeaturesSessionKick` | session_kick |
| `PostUsersSignInDataAuthenticationFeaturesSharedServerNotification` | shared_server_notification | | `PostUsersSignInDataAuthenticationFeaturesSharedServerNotification` | shared_server_notification |
| `PostUsersSignInDataAuthenticationFeaturesSharedSourceNotification` | shared_source_notification | | `PostUsersSignInDataAuthenticationFeaturesSharedSourceNotification` | shared_source_notification |
| `PostUsersSignInDataAuthenticationFeaturesSigninNotification` | signin_notification |
| `PostUsersSignInDataAuthenticationFeaturesSigninWithApple` | signin_with_apple | | `PostUsersSignInDataAuthenticationFeaturesSigninWithApple` | signin_with_apple |
| `PostUsersSignInDataAuthenticationFeaturesSilenceRemoval` | silence-removal |
| `PostUsersSignInDataAuthenticationFeaturesSleepTimer` | sleep-timer |
| `PostUsersSignInDataAuthenticationFeaturesSpringServeAdProvider` | spring_serve_ad_provider | | `PostUsersSignInDataAuthenticationFeaturesSpringServeAdProvider` | spring_serve_ad_provider |
| `PostUsersSignInDataAuthenticationFeaturesSync` | sync |
| `PostUsersSignInDataAuthenticationFeaturesSweetFades` | sweet-fades |
| `PostUsersSignInDataAuthenticationFeaturesTranscoderCache` | transcoder_cache | | `PostUsersSignInDataAuthenticationFeaturesTranscoderCache` | transcoder_cache |
| `PostUsersSignInDataAuthenticationFeaturesTrailers` | trailers |
| `PostUsersSignInDataAuthenticationFeaturesTunerSharing` | tuner-sharing | | `PostUsersSignInDataAuthenticationFeaturesTunerSharing` | tuner-sharing |
| `PostUsersSignInDataAuthenticationFeaturesTwoFactorAuthentication` | two-factor-authentication | | `PostUsersSignInDataAuthenticationFeaturesTwoFactorAuthentication` | two-factor-authentication |
| `PostUsersSignInDataAuthenticationFeaturesUnsupportedtuners` | unsupportedtuners | | `PostUsersSignInDataAuthenticationFeaturesUnsupportedtuners` | unsupportedtuners |
| `PostUsersSignInDataAuthenticationFeaturesUpgrade3ds2` | upgrade-3ds2 | | `PostUsersSignInDataAuthenticationFeaturesUpgrade3ds2` | upgrade-3ds2 |
| `PostUsersSignInDataAuthenticationFeaturesVisualizers` | visualizers |
| `PostUsersSignInDataAuthenticationFeaturesVodSchema` | vod-schema | | `PostUsersSignInDataAuthenticationFeaturesVodSchema` | vod-schema |
| `PostUsersSignInDataAuthenticationFeaturesVodCloudflare` | vod_cloudflare | | `PostUsersSignInDataAuthenticationFeaturesVodCloudflare` | vod_cloudflare |
| `PostUsersSignInDataAuthenticationFeaturesVolumeLeveling` | volume-leveling |
| `PostUsersSignInDataAuthenticationFeaturesWatchTogetherInvite` | watch-together-invite | | `PostUsersSignInDataAuthenticationFeaturesWatchTogetherInvite` | watch-together-invite |
| `PostUsersSignInDataAuthenticationFeaturesWatchlistRss` | watchlist-rss |
| `PostUsersSignInDataAuthenticationFeaturesWebServerDashboard` | web_server_dashboard | | `PostUsersSignInDataAuthenticationFeaturesWebServerDashboard` | web_server_dashboard |
| `PostUsersSignInDataAuthenticationFeaturesWebhooks` | webhooks |

View File

@@ -12,28 +12,43 @@
| `PostUsersSignInDataFeaturesTrebleShowFeatures` | TREBLE-show-features | | `PostUsersSignInDataFeaturesTrebleShowFeatures` | TREBLE-show-features |
| `PostUsersSignInDataFeaturesAdCountdownTimer` | ad-countdown-timer | | `PostUsersSignInDataFeaturesAdCountdownTimer` | ad-countdown-timer |
| `PostUsersSignInDataFeaturesAdaptiveBitrate` | adaptive_bitrate | | `PostUsersSignInDataFeaturesAdaptiveBitrate` | adaptive_bitrate |
| `PostUsersSignInDataFeaturesAlbumTypes` | album-types |
| `PostUsersSignInDataFeaturesAllowDvr` | allow_dvr |
| `PostUsersSignInDataFeaturesAmazonLoopDebug` | amazon-loop-debug | | `PostUsersSignInDataFeaturesAmazonLoopDebug` | amazon-loop-debug |
| `PostUsersSignInDataFeaturesAvodAdAnalysis` | avod-ad-analysis | | `PostUsersSignInDataFeaturesAvodAdAnalysis` | avod-ad-analysis |
| `PostUsersSignInDataFeaturesAvodNewMedia` | avod-new-media | | `PostUsersSignInDataFeaturesAvodNewMedia` | avod-new-media |
| `PostUsersSignInDataFeaturesBlacklistGetSignin` | blacklist_get_signin | | `PostUsersSignInDataFeaturesBlacklistGetSignin` | blacklist_get_signin |
| `PostUsersSignInDataFeaturesBoostVoices` | boost-voices |
| `PostUsersSignInDataFeaturesCameraUpload` | camera_upload |
| `PostUsersSignInDataFeaturesClientRadioStations` | client-radio-stations | | `PostUsersSignInDataFeaturesClientRadioStations` | client-radio-stations |
| `PostUsersSignInDataFeaturesCloudflareTurnstileRequired` | cloudflare-turnstile-required | | `PostUsersSignInDataFeaturesCloudflareTurnstileRequired` | cloudflare-turnstile-required |
| `PostUsersSignInDataFeaturesCloudsync` | cloudsync |
| `PostUsersSignInDataFeaturesCollections` | collections | | `PostUsersSignInDataFeaturesCollections` | collections |
| `PostUsersSignInDataFeaturesCommentsAndRepliesPushNotifications` | comments_and_replies_push_notifications | | `PostUsersSignInDataFeaturesCommentsAndRepliesPushNotifications` | comments_and_replies_push_notifications |
| `PostUsersSignInDataFeaturesCommunityAccessPlexTv` | community_access_plex_tv | | `PostUsersSignInDataFeaturesCommunityAccessPlexTv` | community_access_plex_tv |
| `PostUsersSignInDataFeaturesCompanionsSonos` | companions_sonos | | `PostUsersSignInDataFeaturesCompanionsSonos` | companions_sonos |
| `PostUsersSignInDataFeaturesContentFilter` | content_filter |
| `PostUsersSignInDataFeaturesCustomHomeRemoval` | custom-home-removal | | `PostUsersSignInDataFeaturesCustomHomeRemoval` | custom-home-removal |
| `PostUsersSignInDataFeaturesDisableHomeUserFriendships` | disable_home_user_friendships | | `PostUsersSignInDataFeaturesDisableHomeUserFriendships` | disable_home_user_friendships |
| `PostUsersSignInDataFeaturesDisableSharingFriendships` | disable_sharing_friendships | | `PostUsersSignInDataFeaturesDisableSharingFriendships` | disable_sharing_friendships |
| `PostUsersSignInDataFeaturesDownloadsGating` | downloads-gating |
| `PostUsersSignInDataFeaturesDrmSupport` | drm_support | | `PostUsersSignInDataFeaturesDrmSupport` | drm_support |
| `PostUsersSignInDataFeaturesDvr` | dvr |
| `PostUsersSignInDataFeaturesDvrBlockUnsupportedCountries` | dvr-block-unsupported-countries |
| `PostUsersSignInDataFeaturesEpgRecentChannels` | epg-recent-channels |
| `PostUsersSignInDataFeaturesExcludeRestrictions` | exclude restrictions | | `PostUsersSignInDataFeaturesExcludeRestrictions` | exclude restrictions |
| `PostUsersSignInDataFeaturesFederatedAuth` | federated-auth | | `PostUsersSignInDataFeaturesFederatedAuth` | federated-auth |
| `PostUsersSignInDataFeaturesFriendRequestPushNotifications` | friend_request_push_notifications | | `PostUsersSignInDataFeaturesFriendRequestPushNotifications` | friend_request_push_notifications |
| `PostUsersSignInDataFeaturesGrandfatherSync` | grandfather-sync |
| `PostUsersSignInDataFeaturesGuidedUpgrade` | guided-upgrade | | `PostUsersSignInDataFeaturesGuidedUpgrade` | guided-upgrade |
| `PostUsersSignInDataFeaturesHardwareTranscoding` | hardware_transcoding |
| `PostUsersSignInDataFeaturesHome` | home | | `PostUsersSignInDataFeaturesHome` | home |
| `PostUsersSignInDataFeaturesHwtranscode` | hwtranscode |
| `PostUsersSignInDataFeaturesImaggaV2` | imagga-v2 |
| `PostUsersSignInDataFeaturesIncreasePasswordComplexity` | increase-password-complexity | | `PostUsersSignInDataFeaturesIncreasePasswordComplexity` | increase-password-complexity |
| `PostUsersSignInDataFeaturesIos14PrivacyBanner` | ios14-privacy-banner | | `PostUsersSignInDataFeaturesIos14PrivacyBanner` | ios14-privacy-banner |
| `PostUsersSignInDataFeaturesIterableNotificationTokens` | iterable-notification-tokens | | `PostUsersSignInDataFeaturesIterableNotificationTokens` | iterable-notification-tokens |
| `PostUsersSignInDataFeaturesItemClusters` | item_clusters |
| `PostUsersSignInDataFeaturesKeepPaymentMethod` | keep-payment-method | | `PostUsersSignInDataFeaturesKeepPaymentMethod` | keep-payment-method |
| `PostUsersSignInDataFeaturesKevinBacon` | kevin-bacon | | `PostUsersSignInDataFeaturesKevinBacon` | kevin-bacon |
| `PostUsersSignInDataFeaturesKoreaConsent` | korea-consent | | `PostUsersSignInDataFeaturesKoreaConsent` | korea-consent |
@@ -42,25 +57,46 @@
| `PostUsersSignInDataFeaturesLightningDvrPivot` | lightning-dvr-pivot | | `PostUsersSignInDataFeaturesLightningDvrPivot` | lightning-dvr-pivot |
| `PostUsersSignInDataFeaturesLiveTvSupportIncompleteSegments` | live-tv-support-incomplete-segments | | `PostUsersSignInDataFeaturesLiveTvSupportIncompleteSegments` | live-tv-support-incomplete-segments |
| `PostUsersSignInDataFeaturesLivetv` | livetv | | `PostUsersSignInDataFeaturesLivetv` | livetv |
| `PostUsersSignInDataFeaturesLyrics` | lyrics |
| `PostUsersSignInDataFeaturesMetadataSearch` | metadata_search | | `PostUsersSignInDataFeaturesMetadataSearch` | metadata_search |
| `PostUsersSignInDataFeaturesMusicAnalysis` | music-analysis |
| `PostUsersSignInDataFeaturesMusicVideos` | music_videos |
| `PostUsersSignInDataFeaturesNewPlexPassPrices` | new_plex_pass_prices | | `PostUsersSignInDataFeaturesNewPlexPassPrices` | new_plex_pass_prices |
| `PostUsersSignInDataFeaturesNewsProviderSunsetModal` | news-provider-sunset-modal | | `PostUsersSignInDataFeaturesNewsProviderSunsetModal` | news-provider-sunset-modal |
| `PostUsersSignInDataFeaturesNominatim` | nominatim |
| `PostUsersSignInDataFeaturesPass` | pass |
| `PostUsersSignInDataFeaturesPhotosFavorites` | photos-favorites | | `PostUsersSignInDataFeaturesPhotosFavorites` | photos-favorites |
| `PostUsersSignInDataFeaturesPhotosMetadataEdition` | photos-metadata-edition | | `PostUsersSignInDataFeaturesPhotosMetadataEdition` | photos-metadata-edition |
| `PostUsersSignInDataFeaturesPhotosV6Edit` | photosV6-edit |
| `PostUsersSignInDataFeaturesPhotosV6TvAlbums` | photosV6-tv-albums |
| `PostUsersSignInDataFeaturesPmsHealth` | pms_health | | `PostUsersSignInDataFeaturesPmsHealth` | pms_health |
| `PostUsersSignInDataFeaturesPremiumDashboard` | premium-dashboard |
| `PostUsersSignInDataFeaturesPremiumMusicMetadata` | premium_music_metadata |
| `PostUsersSignInDataFeaturesRadio` | radio | | `PostUsersSignInDataFeaturesRadio` | radio |
| `PostUsersSignInDataFeaturesRateLimitClientToken` | rate-limit-client-token | | `PostUsersSignInDataFeaturesRateLimitClientToken` | rate-limit-client-token |
| `PostUsersSignInDataFeaturesScrobblingServicePlexTv` | scrobbling-service-plex-tv | | `PostUsersSignInDataFeaturesScrobblingServicePlexTv` | scrobbling-service-plex-tv |
| `PostUsersSignInDataFeaturesSessionBandwidthRestrictions` | session_bandwidth_restrictions |
| `PostUsersSignInDataFeaturesSessionKick` | session_kick |
| `PostUsersSignInDataFeaturesSharedServerNotification` | shared_server_notification | | `PostUsersSignInDataFeaturesSharedServerNotification` | shared_server_notification |
| `PostUsersSignInDataFeaturesSharedSourceNotification` | shared_source_notification | | `PostUsersSignInDataFeaturesSharedSourceNotification` | shared_source_notification |
| `PostUsersSignInDataFeaturesSigninNotification` | signin_notification |
| `PostUsersSignInDataFeaturesSigninWithApple` | signin_with_apple | | `PostUsersSignInDataFeaturesSigninWithApple` | signin_with_apple |
| `PostUsersSignInDataFeaturesSilenceRemoval` | silence-removal |
| `PostUsersSignInDataFeaturesSleepTimer` | sleep-timer |
| `PostUsersSignInDataFeaturesSpringServeAdProvider` | spring_serve_ad_provider | | `PostUsersSignInDataFeaturesSpringServeAdProvider` | spring_serve_ad_provider |
| `PostUsersSignInDataFeaturesSync` | sync |
| `PostUsersSignInDataFeaturesSweetFades` | sweet-fades |
| `PostUsersSignInDataFeaturesTranscoderCache` | transcoder_cache | | `PostUsersSignInDataFeaturesTranscoderCache` | transcoder_cache |
| `PostUsersSignInDataFeaturesTrailers` | trailers |
| `PostUsersSignInDataFeaturesTunerSharing` | tuner-sharing | | `PostUsersSignInDataFeaturesTunerSharing` | tuner-sharing |
| `PostUsersSignInDataFeaturesTwoFactorAuthentication` | two-factor-authentication | | `PostUsersSignInDataFeaturesTwoFactorAuthentication` | two-factor-authentication |
| `PostUsersSignInDataFeaturesUnsupportedtuners` | unsupportedtuners | | `PostUsersSignInDataFeaturesUnsupportedtuners` | unsupportedtuners |
| `PostUsersSignInDataFeaturesUpgrade3ds2` | upgrade-3ds2 | | `PostUsersSignInDataFeaturesUpgrade3ds2` | upgrade-3ds2 |
| `PostUsersSignInDataFeaturesVisualizers` | visualizers |
| `PostUsersSignInDataFeaturesVodSchema` | vod-schema | | `PostUsersSignInDataFeaturesVodSchema` | vod-schema |
| `PostUsersSignInDataFeaturesVodCloudflare` | vod_cloudflare | | `PostUsersSignInDataFeaturesVodCloudflare` | vod_cloudflare |
| `PostUsersSignInDataFeaturesVolumeLeveling` | volume-leveling |
| `PostUsersSignInDataFeaturesWatchTogetherInvite` | watch-together-invite | | `PostUsersSignInDataFeaturesWatchTogetherInvite` | watch-together-invite |
| `PostUsersSignInDataFeaturesWatchlistRss` | watchlist-rss |
| `PostUsersSignInDataFeaturesWebServerDashboard` | web_server_dashboard | | `PostUsersSignInDataFeaturesWebServerDashboard` | web_server_dashboard |
| `PostUsersSignInDataFeaturesWebhooks` | webhooks |

View File

@@ -3,10 +3,10 @@
## Fields ## Fields
| Field | Type | Required | Description | Example | | Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `ClientID` | **string* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 | | `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 | | `ClientName` | **string* | :heavy_minus_sign: | N/A | Plex Web |
| `DeviceName` | **string* | :heavy_minus_sign: | N/A | Linux | | `DeviceName` | **string* | :heavy_minus_sign: | N/A | Linux |
| `ClientVersion` | **string* | :heavy_minus_sign: | N/A | 4.133.0 | | `ClientVersion` | **string* | :heavy_minus_sign: | N/A | 4.133.0 |
| `ClientPlatform` | **string* | :heavy_minus_sign: | N/A | Chrome | | `ClientPlatform` | **string* | :heavy_minus_sign: | N/A | Chrome |

View File

@@ -1,6 +1,6 @@
# PostUsersSignInDataMailingListStatus # PostUsersSignInDataMailingListStatus
Your current mailing list status Your current mailing list status (active or unsubscribed)
## Values ## Values

View File

@@ -3,11 +3,11 @@
## Fields ## Fields
| Field | Type | Required | Description | Example | | Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `ClientID` | **string* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 | | `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 | | `ClientName` | **string* | :heavy_minus_sign: | N/A | Plex Web |
| `DeviceName` | **string* | :heavy_minus_sign: | N/A | Linux | | `DeviceName` | **string* | :heavy_minus_sign: | N/A | Linux |
| `ClientVersion` | **string* | :heavy_minus_sign: | N/A | 4.133.0 | | `ClientVersion` | **string* | :heavy_minus_sign: | N/A | 4.133.0 |
| `ClientPlatform` | **string* | :heavy_minus_sign: | N/A | Chrome | | `ClientPlatform` | **string* | :heavy_minus_sign: | N/A | Chrome |
| `RequestBody` | [*operations.PostUsersSignInDataRequestBody](../../models/operations/postuserssignindatarequestbody.md) | :heavy_minus_sign: | Login credentials | | | `RequestBody` | [*operations.PostUsersSignInDataRequestBody](../../models/operations/postuserssignindatarequestbody.md) | :heavy_minus_sign: | Login credentials | |

View File

@@ -29,7 +29,7 @@ Returns the user account data with a valid auth token
| `JoinedAt` | *int64* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 | | `JoinedAt` | *int64* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 |
| `Locale` | *string* | :heavy_check_mark: | The account locale | | | `Locale` | *string* | :heavy_check_mark: | The account locale | |
| `MailingListActive` | **bool* | :heavy_minus_sign: | If you are subscribed to the Plex newsletter | | | `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 | | | `MailingListStatus` | [operations.PostUsersSignInDataMailingListStatus](../../models/operations/postuserssignindatamailingliststatus.md) | :heavy_check_mark: | Your current mailing list status (active or unsubscribed) | active |
| `MaxHomeSize` | *int* | :heavy_check_mark: | The maximum number of accounts allowed in the Plex Home | 15 | | `MaxHomeSize` | *int* | :heavy_check_mark: | The maximum number of accounts allowed in the Plex Home | 15 |
| ~~`Pin`~~ | **string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.<br/><br/>[Might be removed] The hashed Plex Home PIN | | | ~~`Pin`~~ | **string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.<br/><br/>[Might be removed] The hashed Plex Home PIN | |
| `Profile` | [operations.PostUsersSignInDataUserProfile](../../models/operations/postuserssignindatauserprofile.md) | :heavy_check_mark: | N/A | | | `Profile` | [operations.PostUsersSignInDataUserProfile](../../models/operations/postuserssignindatauserprofile.md) | :heavy_check_mark: | N/A | |

View File

@@ -66,12 +66,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- |
| sdkerrors.GetServerActivitiesBadRequest | 400 | application/json | | sdkerrors.GetServerActivitiesBadRequest | 400 | application/json |
| sdkerrors.GetServerActivitiesUnauthorized | 401 | application/json | | sdkerrors.GetServerActivitiesUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## CancelServerActivities ## CancelServerActivities
@@ -123,8 +122,8 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- |
| sdkerrors.CancelServerActivitiesBadRequest | 400 | application/json | | sdkerrors.CancelServerActivitiesBadRequest | 400 | application/json |
| sdkerrors.CancelServerActivitiesUnauthorized | 401 | application/json | | sdkerrors.CancelServerActivitiesUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |

View File

@@ -66,12 +66,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| --------------------------------------- | --------------------------------------- | --------------------------------------- | | --------------------------------------- | --------------------------------------- | --------------------------------------- |
| sdkerrors.GetTransientTokenBadRequest | 400 | application/json | | sdkerrors.GetTransientTokenBadRequest | 400 | application/json |
| sdkerrors.GetTransientTokenUnauthorized | 401 | application/json | | sdkerrors.GetTransientTokenUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetSourceConnectionInformation ## GetSourceConnectionInformation
@@ -125,12 +124,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- |
| sdkerrors.GetSourceConnectionInformationBadRequest | 400 | application/json | | sdkerrors.GetSourceConnectionInformationBadRequest | 400 | application/json |
| sdkerrors.GetSourceConnectionInformationUnauthorized | 401 | application/json | | sdkerrors.GetSourceConnectionInformationUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetTokenDetails ## GetTokenDetails
@@ -181,12 +179,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------- | ------------------------------------- | ------------------------------------- | | ------------------------------------- | ------------------------------------- | ------------------------------------- |
| sdkerrors.GetTokenDetailsBadRequest | 400 | application/json | | sdkerrors.GetTokenDetailsBadRequest | 400 | application/json |
| sdkerrors.GetTokenDetailsUnauthorized | 401 | application/json | | sdkerrors.GetTokenDetailsUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## PostUsersSignInData ## PostUsersSignInData
@@ -244,8 +241,8 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- |
| sdkerrors.PostUsersSignInDataBadRequest | 400 | application/json | | sdkerrors.PostUsersSignInDataBadRequest | 400 | application/json |
| sdkerrors.PostUsersSignInDataUnauthorized | 401 | application/json | | sdkerrors.PostUsersSignInDataUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |

View File

@@ -63,12 +63,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------ | ------------------------------------ | ------------------------------------ | | ------------------------------------ | ------------------------------------ | ------------------------------------ |
| sdkerrors.GetButlerTasksBadRequest | 400 | application/json | | sdkerrors.GetButlerTasksBadRequest | 400 | application/json |
| sdkerrors.GetButlerTasksUnauthorized | 401 | application/json | | sdkerrors.GetButlerTasksUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## StartAllTasks ## StartAllTasks
@@ -124,12 +123,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ----------------------------------- | ----------------------------------- | ----------------------------------- | | ----------------------------------- | ----------------------------------- | ----------------------------------- |
| sdkerrors.StartAllTasksBadRequest | 400 | application/json | | sdkerrors.StartAllTasksBadRequest | 400 | application/json |
| sdkerrors.StartAllTasksUnauthorized | 401 | application/json | | sdkerrors.StartAllTasksUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## StopAllTasks ## StopAllTasks
@@ -181,12 +179,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ---------------------------------- | ---------------------------------- | ---------------------------------- | | ---------------------------------- | ---------------------------------- | ---------------------------------- |
| sdkerrors.StopAllTasksBadRequest | 400 | application/json | | sdkerrors.StopAllTasksBadRequest | 400 | application/json |
| sdkerrors.StopAllTasksUnauthorized | 401 | application/json | | sdkerrors.StopAllTasksUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## StartTask ## StartTask
@@ -244,12 +241,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------- | ------------------------------- | ------------------------------- | | ------------------------------- | ------------------------------- | ------------------------------- |
| sdkerrors.StartTaskBadRequest | 400 | application/json | | sdkerrors.StartTaskBadRequest | 400 | application/json |
| sdkerrors.StartTaskUnauthorized | 401 | application/json | | sdkerrors.StartTaskUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## StopTask ## StopTask
@@ -303,8 +299,8 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------ | ------------------------------ | ------------------------------ | | ------------------------------ | ------------------------------ | ------------------------------ |
| sdkerrors.StopTaskBadRequest | 400 | application/json | | sdkerrors.StopTaskBadRequest | 400 | application/json |
| sdkerrors.StopTaskUnauthorized | 401 | application/json | | sdkerrors.StopTaskUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |

View File

@@ -63,12 +63,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ----------------------------------- | ----------------------------------- | ----------------------------------- | | ----------------------------------- | ----------------------------------- | ----------------------------------- |
| sdkerrors.GetGlobalHubsBadRequest | 400 | application/json | | sdkerrors.GetGlobalHubsBadRequest | 400 | application/json |
| sdkerrors.GetGlobalHubsUnauthorized | 401 | application/json | | sdkerrors.GetGlobalHubsUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetRecentlyAdded ## GetRecentlyAdded
@@ -129,10 +128,9 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------ | ------------------ | ------------------ | | ------------------ | ------------------ | ------------------ |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetLibraryHubs ## GetLibraryHubs
@@ -187,8 +185,8 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------ | ------------------------------------ | ------------------------------------ | | ------------------------------------ | ------------------------------------ | ------------------------------------ |
| sdkerrors.GetLibraryHubsBadRequest | 400 | application/json | | sdkerrors.GetLibraryHubsBadRequest | 400 | application/json |
| sdkerrors.GetLibraryHubsUnauthorized | 401 | application/json | | sdkerrors.GetLibraryHubsUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |

View File

@@ -72,12 +72,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| --------------------------------- | --------------------------------- | --------------------------------- | | --------------------------------- | --------------------------------- | --------------------------------- |
| sdkerrors.GetFileHashBadRequest | 400 | application/json | | sdkerrors.GetFileHashBadRequest | 400 | application/json |
| sdkerrors.GetFileHashUnauthorized | 401 | application/json | | sdkerrors.GetFileHashUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetRecentlyAddedLibrary ## GetRecentlyAddedLibrary
@@ -152,12 +151,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- |
| sdkerrors.GetRecentlyAddedLibraryBadRequest | 400 | application/json | | sdkerrors.GetRecentlyAddedLibraryBadRequest | 400 | application/json |
| sdkerrors.GetRecentlyAddedLibraryUnauthorized | 401 | application/json | | sdkerrors.GetRecentlyAddedLibraryUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetAllLibraries ## GetAllLibraries
@@ -214,12 +212,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------- | ------------------------------------- | ------------------------------------- | | ------------------------------------- | ------------------------------------- | ------------------------------------- |
| sdkerrors.GetAllLibrariesBadRequest | 400 | application/json | | sdkerrors.GetAllLibrariesBadRequest | 400 | application/json |
| sdkerrors.GetAllLibrariesUnauthorized | 401 | application/json | | sdkerrors.GetAllLibrariesUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetLibraryDetails ## GetLibraryDetails
@@ -311,12 +308,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| --------------------------------------- | --------------------------------------- | --------------------------------------- | | --------------------------------------- | --------------------------------------- | --------------------------------------- |
| sdkerrors.GetLibraryDetailsBadRequest | 400 | application/json | | sdkerrors.GetLibraryDetailsBadRequest | 400 | application/json |
| sdkerrors.GetLibraryDetailsUnauthorized | 401 | application/json | | sdkerrors.GetLibraryDetailsUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## DeleteLibrary ## DeleteLibrary
@@ -368,12 +364,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ----------------------------------- | ----------------------------------- | ----------------------------------- | | ----------------------------------- | ----------------------------------- | ----------------------------------- |
| sdkerrors.DeleteLibraryBadRequest | 400 | application/json | | sdkerrors.DeleteLibraryBadRequest | 400 | application/json |
| sdkerrors.DeleteLibraryUnauthorized | 401 | application/json | | sdkerrors.DeleteLibraryUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetLibraryItems ## GetLibraryItems
@@ -454,12 +449,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------- | ------------------------------------- | ------------------------------------- | | ------------------------------------- | ------------------------------------- | ------------------------------------- |
| sdkerrors.GetLibraryItemsBadRequest | 400 | application/json | | sdkerrors.GetLibraryItemsBadRequest | 400 | application/json |
| sdkerrors.GetLibraryItemsUnauthorized | 401 | application/json | | sdkerrors.GetLibraryItemsUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetRefreshLibraryMetadata ## GetRefreshLibraryMetadata
@@ -514,12 +508,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- |
| sdkerrors.GetRefreshLibraryMetadataBadRequest | 400 | application/json | | sdkerrors.GetRefreshLibraryMetadataBadRequest | 400 | application/json |
| sdkerrors.GetRefreshLibraryMetadataUnauthorized | 401 | application/json | | sdkerrors.GetRefreshLibraryMetadataUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetSearchLibrary ## GetSearchLibrary
@@ -591,12 +584,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| -------------------------------------- | -------------------------------------- | -------------------------------------- | | -------------------------------------- | -------------------------------------- | -------------------------------------- |
| sdkerrors.GetSearchLibraryBadRequest | 400 | application/json | | sdkerrors.GetSearchLibraryBadRequest | 400 | application/json |
| sdkerrors.GetSearchLibraryUnauthorized | 401 | application/json | | sdkerrors.GetSearchLibraryUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetMetaDataByRatingKey ## GetMetaDataByRatingKey
@@ -649,12 +641,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- |
| sdkerrors.GetMetaDataByRatingKeyBadRequest | 400 | application/json | | sdkerrors.GetMetaDataByRatingKeyBadRequest | 400 | application/json |
| sdkerrors.GetMetaDataByRatingKeyUnauthorized | 401 | application/json | | sdkerrors.GetMetaDataByRatingKeyUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetMetadataChildren ## GetMetadataChildren
@@ -708,12 +699,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- |
| sdkerrors.GetMetadataChildrenBadRequest | 400 | application/json | | sdkerrors.GetMetadataChildrenBadRequest | 400 | application/json |
| sdkerrors.GetMetadataChildrenUnauthorized | 401 | application/json | | sdkerrors.GetMetadataChildrenUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetTopWatchedContent ## GetTopWatchedContent
@@ -768,12 +758,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ |
| sdkerrors.GetTopWatchedContentBadRequest | 400 | application/json | | sdkerrors.GetTopWatchedContentBadRequest | 400 | application/json |
| sdkerrors.GetTopWatchedContentUnauthorized | 401 | application/json | | sdkerrors.GetTopWatchedContentUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetOnDeck ## GetOnDeck
@@ -825,8 +814,8 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------- | ------------------------------- | ------------------------------- | | ------------------------------- | ------------------------------- | ------------------------------- |
| sdkerrors.GetOnDeckBadRequest | 400 | application/json | | sdkerrors.GetOnDeckBadRequest | 400 | application/json |
| sdkerrors.GetOnDeckUnauthorized | 401 | application/json | | sdkerrors.GetOnDeckUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |

View File

@@ -66,12 +66,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ----------------------------- | ----------------------------- | ----------------------------- | | ----------------------------- | ----------------------------- | ----------------------------- |
| sdkerrors.LogLineBadRequest | 400 | application/json | | sdkerrors.LogLineBadRequest | 400 | application/json |
| sdkerrors.LogLineUnauthorized | 401 | application/json | | sdkerrors.LogLineUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## LogMultiLine ## LogMultiLine
@@ -146,12 +145,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ---------------------------------- | ---------------------------------- | ---------------------------------- | | ---------------------------------- | ---------------------------------- | ---------------------------------- |
| sdkerrors.LogMultiLineBadRequest | 400 | application/json | | sdkerrors.LogMultiLineBadRequest | 400 | application/json |
| sdkerrors.LogMultiLineUnauthorized | 401 | application/json | | sdkerrors.LogMultiLineUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## EnablePaperTrail ## EnablePaperTrail
@@ -203,8 +201,8 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| -------------------------------------- | -------------------------------------- | -------------------------------------- | | -------------------------------------- | -------------------------------------- | -------------------------------------- |
| sdkerrors.EnablePaperTrailBadRequest | 400 | application/json | | sdkerrors.EnablePaperTrailBadRequest | 400 | application/json |
| sdkerrors.EnablePaperTrailUnauthorized | 401 | application/json | | sdkerrors.EnablePaperTrailUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |

View File

@@ -64,12 +64,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| -------------------------------- | -------------------------------- | -------------------------------- | | -------------------------------- | -------------------------------- | -------------------------------- |
| sdkerrors.MarkPlayedBadRequest | 400 | application/json | | sdkerrors.MarkPlayedBadRequest | 400 | application/json |
| sdkerrors.MarkPlayedUnauthorized | 401 | application/json | | sdkerrors.MarkPlayedUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## MarkUnplayed ## MarkUnplayed
@@ -121,12 +120,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ---------------------------------- | ---------------------------------- | ---------------------------------- | | ---------------------------------- | ---------------------------------- | ---------------------------------- |
| sdkerrors.MarkUnplayedBadRequest | 400 | application/json | | sdkerrors.MarkUnplayedBadRequest | 400 | application/json |
| sdkerrors.MarkUnplayedUnauthorized | 401 | application/json | | sdkerrors.MarkUnplayedUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## UpdatePlayProgress ## UpdatePlayProgress
@@ -181,12 +179,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
| sdkerrors.UpdatePlayProgressBadRequest | 400 | application/json | | sdkerrors.UpdatePlayProgressBadRequest | 400 | application/json |
| sdkerrors.UpdatePlayProgressUnauthorized | 401 | application/json | | sdkerrors.UpdatePlayProgressUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetBannerImage ## GetBannerImage
@@ -246,12 +243,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------ | ------------------------------------ | ------------------------------------ | | ------------------------------------ | ------------------------------------ | ------------------------------------ |
| sdkerrors.GetBannerImageBadRequest | 400 | application/json | | sdkerrors.GetBannerImageBadRequest | 400 | application/json |
| sdkerrors.GetBannerImageUnauthorized | 401 | application/json | | sdkerrors.GetBannerImageUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetThumbImage ## GetThumbImage
@@ -311,8 +307,8 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ----------------------------------- | ----------------------------------- | ----------------------------------- | | ----------------------------------- | ----------------------------------- | ----------------------------------- |
| sdkerrors.GetThumbImageBadRequest | 400 | application/json | | sdkerrors.GetThumbImageBadRequest | 400 | application/json |
| sdkerrors.GetThumbImageUnauthorized | 401 | application/json | | sdkerrors.GetThumbImageUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |

View File

@@ -80,12 +80,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------ | ------------------------------------ | ------------------------------------ | | ------------------------------------ | ------------------------------------ | ------------------------------------ |
| sdkerrors.CreatePlaylistBadRequest | 400 | application/json | | sdkerrors.CreatePlaylistBadRequest | 400 | application/json |
| sdkerrors.CreatePlaylistUnauthorized | 401 | application/json | | sdkerrors.CreatePlaylistUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetPlaylists ## GetPlaylists
@@ -138,12 +137,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ---------------------------------- | ---------------------------------- | ---------------------------------- | | ---------------------------------- | ---------------------------------- | ---------------------------------- |
| sdkerrors.GetPlaylistsBadRequest | 400 | application/json | | sdkerrors.GetPlaylistsBadRequest | 400 | application/json |
| sdkerrors.GetPlaylistsUnauthorized | 401 | application/json | | sdkerrors.GetPlaylistsUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetPlaylist ## GetPlaylist
@@ -197,12 +195,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| --------------------------------- | --------------------------------- | --------------------------------- | | --------------------------------- | --------------------------------- | --------------------------------- |
| sdkerrors.GetPlaylistBadRequest | 400 | application/json | | sdkerrors.GetPlaylistBadRequest | 400 | application/json |
| sdkerrors.GetPlaylistUnauthorized | 401 | application/json | | sdkerrors.GetPlaylistUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## DeletePlaylist ## DeletePlaylist
@@ -255,12 +252,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------ | ------------------------------------ | ------------------------------------ | | ------------------------------------ | ------------------------------------ | ------------------------------------ |
| sdkerrors.DeletePlaylistBadRequest | 400 | application/json | | sdkerrors.DeletePlaylistBadRequest | 400 | application/json |
| sdkerrors.DeletePlaylistUnauthorized | 401 | application/json | | sdkerrors.DeletePlaylistUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## UpdatePlaylist ## UpdatePlaylist
@@ -315,12 +311,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------ | ------------------------------------ | ------------------------------------ | | ------------------------------------ | ------------------------------------ | ------------------------------------ |
| sdkerrors.UpdatePlaylistBadRequest | 400 | application/json | | sdkerrors.UpdatePlaylistBadRequest | 400 | application/json |
| sdkerrors.UpdatePlaylistUnauthorized | 401 | application/json | | sdkerrors.UpdatePlaylistUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetPlaylistContents ## GetPlaylistContents
@@ -378,12 +373,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- |
| sdkerrors.GetPlaylistContentsBadRequest | 400 | application/json | | sdkerrors.GetPlaylistContentsBadRequest | 400 | application/json |
| sdkerrors.GetPlaylistContentsUnauthorized | 401 | application/json | | sdkerrors.GetPlaylistContentsUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## ClearPlaylistContents ## ClearPlaylistContents
@@ -436,12 +430,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- |
| sdkerrors.ClearPlaylistContentsBadRequest | 400 | application/json | | sdkerrors.ClearPlaylistContentsBadRequest | 400 | application/json |
| sdkerrors.ClearPlaylistContentsUnauthorized | 401 | application/json | | sdkerrors.ClearPlaylistContentsUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## AddPlaylistContents ## AddPlaylistContents
@@ -497,12 +490,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- |
| sdkerrors.AddPlaylistContentsBadRequest | 400 | application/json | | sdkerrors.AddPlaylistContentsBadRequest | 400 | application/json |
| sdkerrors.AddPlaylistContentsUnauthorized | 401 | application/json | | sdkerrors.AddPlaylistContentsUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## UploadPlaylist ## UploadPlaylist
@@ -558,8 +550,8 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------ | ------------------------------------ | ------------------------------------ | | ------------------------------------ | ------------------------------------ | ------------------------------------ |
| sdkerrors.UploadPlaylistBadRequest | 400 | application/json | | sdkerrors.UploadPlaylistBadRequest | 400 | application/json |
| sdkerrors.UploadPlaylistUnauthorized | 401 | application/json | | sdkerrors.UploadPlaylistUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |

View File

@@ -65,12 +65,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| --------------------------------------- | --------------------------------------- | --------------------------------------- | | --------------------------------------- | --------------------------------------- | --------------------------------------- |
| sdkerrors.GetCompanionsDataBadRequest | 400 | application/json | | sdkerrors.GetCompanionsDataBadRequest | 400 | application/json |
| sdkerrors.GetCompanionsDataUnauthorized | 401 | application/json | | sdkerrors.GetCompanionsDataUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetUserFriends ## GetUserFriends
@@ -121,12 +120,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------ | ------------------------------------ | ------------------------------------ | | ------------------------------------ | ------------------------------------ | ------------------------------------ |
| sdkerrors.GetUserFriendsBadRequest | 400 | application/json | | sdkerrors.GetUserFriendsBadRequest | 400 | application/json |
| sdkerrors.GetUserFriendsUnauthorized | 401 | application/json | | sdkerrors.GetUserFriendsUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetGeoData ## GetGeoData
@@ -176,12 +174,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| -------------------------------- | -------------------------------- | -------------------------------- | | -------------------------------- | -------------------------------- | -------------------------------- |
| sdkerrors.GetGeoDataBadRequest | 400 | application/json | | sdkerrors.GetGeoDataBadRequest | 400 | application/json |
| sdkerrors.GetGeoDataUnauthorized | 401 | application/json | | sdkerrors.GetGeoDataUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetHomeData ## GetHomeData
@@ -232,12 +229,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| --------------------------------- | --------------------------------- | --------------------------------- | | --------------------------------- | --------------------------------- | --------------------------------- |
| sdkerrors.GetHomeDataBadRequest | 400 | application/json | | sdkerrors.GetHomeDataBadRequest | 400 | application/json |
| sdkerrors.GetHomeDataUnauthorized | 401 | application/json | | sdkerrors.GetHomeDataUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetServerResources ## GetServerResources
@@ -266,7 +262,7 @@ func main() {
) )
ctx := context.Background() ctx := context.Background()
res, err := s.Plex.GetServerResources(ctx, operations.IncludeHTTPSEnable.ToPointer(), operations.IncludeRelayEnable.ToPointer(), operations.IncludeIPv6Enable.ToPointer()) res, err := s.Plex.GetServerResources(ctx, operations.IncludeHTTPSEnable.ToPointer(), operations.IncludeRelayEnable.ToPointer(), operations.IncludeIPv6Enable.ToPointer(), plexgo.String("gcgzw5rz2xovp84b4vha3a40"))
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }
@@ -278,13 +274,14 @@ func main() {
### Parameters ### Parameters
| Parameter | Type | Required | Description | Example | | Parameter | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | | | `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 | | `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 <br/>E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400<br/> | 1 | | `includeRelay` | [*operations.IncludeRelay](../../models/operations/includerelay.md) | :heavy_minus_sign: | Include Relay addresses in the results <br/>E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400<br/> | 1 |
| `includeIPv6` | [*operations.IncludeIPv6](../../models/operations/includeipv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 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. | | | `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. | |
### Response ### Response
@@ -292,12 +289,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
| sdkerrors.GetServerResourcesBadRequest | 400 | application/json | | sdkerrors.GetServerResourcesBadRequest | 400 | application/json |
| sdkerrors.GetServerResourcesUnauthorized | 401 | application/json | | sdkerrors.GetServerResourcesUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetPin ## GetPin
@@ -349,11 +345,10 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| -------------------------- | -------------------------- | -------------------------- | | -------------------------- | -------------------------- | -------------------------- |
| sdkerrors.GetPinBadRequest | 400 | application/json | | sdkerrors.GetPinBadRequest | 400 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetTokenByPinID ## GetTokenByPinID
@@ -367,6 +362,7 @@ package main
import( import(
"github.com/LukeHagar/plexgo" "github.com/LukeHagar/plexgo"
"context" "context"
"github.com/LukeHagar/plexgo/models/operations"
"log" "log"
) )
@@ -380,7 +376,9 @@ func main() {
) )
ctx := context.Background() ctx := context.Background()
res, err := s.Plex.GetTokenByPinID(ctx, 408895) res, err := s.Plex.GetTokenByPinID(ctx, operations.GetTokenByPinIDRequest{
PinID: 408895,
})
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }
@@ -392,11 +390,11 @@ func main() {
### Parameters ### Parameters
| Parameter | Type | Required | Description | | Parameter | Type | Required | Description |
| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | | `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 | | `request` | [operations.GetTokenByPinIDRequest](../../models/operations/gettokenbypinidrequest.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. | | `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. |
### Response ### Response
@@ -404,8 +402,8 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------- | ------------------------------------- | ------------------------------------- | | ------------------------------------- | ------------------------------------- | ------------------------------------- |
| sdkerrors.GetTokenByPinIDBadRequest | 400 | application/json | | sdkerrors.GetTokenByPinIDBadRequest | 400 | application/json |
| sdkerrors.GetTokenByPinIDResponseBody | 404 | application/json | | sdkerrors.GetTokenByPinIDResponseBody | 404 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |

View File

@@ -2,4 +2,27 @@
## Overview ## Overview
Plex-API: An Open API Spec for interacting with Plex.tv and Plex Media Server # Plex Media Server OpenAPI Specification
An Open Source OpenAPI Specification for Plex Media Server
Automation and SDKs provided by [Speakeasy](https://speakeasyapi.dev/)
## Documentation
[API Documentation](https://plexapi.dev)
## SDKs
The following SDKs are generated from the OpenAPI Specification. They are automatically generated and may not be fully tested. If you find any issues, please open an issue on the [main specification Repository](https://github.com/LukeHagar/plex-api-spec).
| Language | Repository | Releases | Other |
| --------------------- | ------------------------------------------------- | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------- |
| Python | [GitHub](https://github.com/LukeHagar/plexpy) | [PyPI](https://pypi.org/project/plex-api-client/) | - |
| JavaScript/TypeScript | [GitHub](https://github.com/LukeHagar/plexjs) | [NPM](https://www.npmjs.com/package/@lukehagar/plexjs) \ [JSR](https://jsr.io/@lukehagar/plexjs) | - |
| Go | [GitHub](https://github.com/LukeHagar/plexgo) | [Releases](https://github.com/LukeHagar/plexgo/releases) | [GoDoc](https://pkg.go.dev/github.com/LukeHagar/plexgo) |
| Ruby | [GitHub](https://github.com/LukeHagar/plexruby) | [Releases](https://github.com/LukeHagar/plexruby/releases) | - |
| Swift | [GitHub](https://github.com/LukeHagar/plexswift) | [Releases](https://github.com/LukeHagar/plexswift/releases) | - |
| PHP | [GitHub](https://github.com/LukeHagar/plexphp) | [Releases](https://github.com/LukeHagar/plexphp/releases) | - |
| Java | [GitHub](https://github.com/LukeHagar/plexjava) | [Releases](https://github.com/LukeHagar/plexjava/releases) | - |
| C# | [GitHub](https://github.com/LukeHagar/plexcsharp) | [Releases](https://github.com/LukeHagar/plexcsharp/releases) | -

View File

@@ -76,12 +76,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ----------------------------------- | ----------------------------------- | ----------------------------------- | | ----------------------------------- | ----------------------------------- | ----------------------------------- |
| sdkerrors.PerformSearchBadRequest | 400 | application/json | | sdkerrors.PerformSearchBadRequest | 400 | application/json |
| sdkerrors.PerformSearchUnauthorized | 401 | application/json | | sdkerrors.PerformSearchUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## PerformVoiceSearch ## PerformVoiceSearch
@@ -139,12 +138,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
| sdkerrors.PerformVoiceSearchBadRequest | 400 | application/json | | sdkerrors.PerformVoiceSearchBadRequest | 400 | application/json |
| sdkerrors.PerformVoiceSearchUnauthorized | 401 | application/json | | sdkerrors.PerformVoiceSearchUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetSearchResults ## GetSearchResults
@@ -196,8 +194,8 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| -------------------------------------- | -------------------------------------- | -------------------------------------- | | -------------------------------------- | -------------------------------------- | -------------------------------------- |
| sdkerrors.GetSearchResultsBadRequest | 400 | application/json | | sdkerrors.GetSearchResultsBadRequest | 400 | application/json |
| sdkerrors.GetSearchResultsUnauthorized | 401 | application/json | | sdkerrors.GetSearchResultsUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |

View File

@@ -67,12 +67,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- |
| sdkerrors.GetServerCapabilitiesBadRequest | 400 | application/json | | sdkerrors.GetServerCapabilitiesBadRequest | 400 | application/json |
| sdkerrors.GetServerCapabilitiesUnauthorized | 401 | application/json | | sdkerrors.GetServerCapabilitiesUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetServerPreferences ## GetServerPreferences
@@ -123,12 +122,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ |
| sdkerrors.GetServerPreferencesBadRequest | 400 | application/json | | sdkerrors.GetServerPreferencesBadRequest | 400 | application/json |
| sdkerrors.GetServerPreferencesUnauthorized | 401 | application/json | | sdkerrors.GetServerPreferencesUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetAvailableClients ## GetAvailableClients
@@ -179,12 +177,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- |
| sdkerrors.GetAvailableClientsBadRequest | 400 | application/json | | sdkerrors.GetAvailableClientsBadRequest | 400 | application/json |
| sdkerrors.GetAvailableClientsUnauthorized | 401 | application/json | | sdkerrors.GetAvailableClientsUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetDevices ## GetDevices
@@ -235,12 +232,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| -------------------------------- | -------------------------------- | -------------------------------- | | -------------------------------- | -------------------------------- | -------------------------------- |
| sdkerrors.GetDevicesBadRequest | 400 | application/json | | sdkerrors.GetDevicesBadRequest | 400 | application/json |
| sdkerrors.GetDevicesUnauthorized | 401 | application/json | | sdkerrors.GetDevicesUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetServerIdentity ## GetServerIdentity
@@ -290,11 +286,10 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- |
| sdkerrors.GetServerIdentityRequestTimeout | 408 | application/json | | sdkerrors.GetServerIdentityRequestTimeout | 408 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetMyPlexAccount ## GetMyPlexAccount
@@ -345,12 +340,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| -------------------------------------- | -------------------------------------- | -------------------------------------- | | -------------------------------------- | -------------------------------------- | -------------------------------------- |
| sdkerrors.GetMyPlexAccountBadRequest | 400 | application/json | | sdkerrors.GetMyPlexAccountBadRequest | 400 | application/json |
| sdkerrors.GetMyPlexAccountUnauthorized | 401 | application/json | | sdkerrors.GetMyPlexAccountUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetResizedPhoto ## GetResizedPhoto
@@ -412,12 +406,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------- | ------------------------------------- | ------------------------------------- | | ------------------------------------- | ------------------------------------- | ------------------------------------- |
| sdkerrors.GetResizedPhotoBadRequest | 400 | application/json | | sdkerrors.GetResizedPhotoBadRequest | 400 | application/json |
| sdkerrors.GetResizedPhotoUnauthorized | 401 | application/json | | sdkerrors.GetResizedPhotoUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetMediaProviders ## GetMediaProviders
@@ -469,12 +462,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| --------------------------------------- | --------------------------------------- | --------------------------------------- | | --------------------------------------- | --------------------------------------- | --------------------------------------- |
| sdkerrors.GetMediaProvidersBadRequest | 400 | application/json | | sdkerrors.GetMediaProvidersBadRequest | 400 | application/json |
| sdkerrors.GetMediaProvidersUnauthorized | 401 | application/json | | sdkerrors.GetMediaProvidersUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetServerList ## GetServerList
@@ -525,8 +517,8 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ----------------------------------- | ----------------------------------- | ----------------------------------- | | ----------------------------------- | ----------------------------------- | ----------------------------------- |
| sdkerrors.GetServerListBadRequest | 400 | application/json | | sdkerrors.GetServerListBadRequest | 400 | application/json |
| sdkerrors.GetServerListUnauthorized | 401 | application/json | | sdkerrors.GetServerListUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |

View File

@@ -62,12 +62,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| --------------------------------- | --------------------------------- | --------------------------------- | | --------------------------------- | --------------------------------- | --------------------------------- |
| sdkerrors.GetSessionsBadRequest | 400 | application/json | | sdkerrors.GetSessionsBadRequest | 400 | application/json |
| sdkerrors.GetSessionsUnauthorized | 401 | application/json | | sdkerrors.GetSessionsUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetSessionHistory ## GetSessionHistory
@@ -123,12 +122,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| --------------------------------------- | --------------------------------------- | --------------------------------------- | | --------------------------------------- | --------------------------------------- | --------------------------------------- |
| sdkerrors.GetSessionHistoryBadRequest | 400 | application/json | | sdkerrors.GetSessionHistoryBadRequest | 400 | application/json |
| sdkerrors.GetSessionHistoryUnauthorized | 401 | application/json | | sdkerrors.GetSessionHistoryUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetTranscodeSessions ## GetTranscodeSessions
@@ -179,12 +177,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ |
| sdkerrors.GetTranscodeSessionsBadRequest | 400 | application/json | | sdkerrors.GetTranscodeSessionsBadRequest | 400 | application/json |
| sdkerrors.GetTranscodeSessionsUnauthorized | 401 | application/json | | sdkerrors.GetTranscodeSessionsUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## StopTranscodeSession ## StopTranscodeSession
@@ -236,8 +233,8 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ |
| sdkerrors.StopTranscodeSessionBadRequest | 400 | application/json | | sdkerrors.StopTranscodeSessionBadRequest | 400 | application/json |
| sdkerrors.StopTranscodeSessionUnauthorized | 401 | application/json | | sdkerrors.StopTranscodeSessionUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |

View File

@@ -62,12 +62,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ----------------------------------- | ----------------------------------- | ----------------------------------- | | ----------------------------------- | ----------------------------------- | ----------------------------------- |
| sdkerrors.GetStatisticsBadRequest | 400 | application/json | | sdkerrors.GetStatisticsBadRequest | 400 | application/json |
| sdkerrors.GetStatisticsUnauthorized | 401 | application/json | | sdkerrors.GetStatisticsUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetResourcesStatistics ## GetResourcesStatistics
@@ -119,12 +118,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- |
| sdkerrors.GetResourcesStatisticsBadRequest | 400 | application/json | | sdkerrors.GetResourcesStatisticsBadRequest | 400 | application/json |
| sdkerrors.GetResourcesStatisticsUnauthorized | 401 | application/json | | sdkerrors.GetResourcesStatisticsUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## GetBandwidthStatistics ## GetBandwidthStatistics
@@ -176,8 +174,8 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- |
| sdkerrors.GetBandwidthStatisticsBadRequest | 400 | application/json | | sdkerrors.GetBandwidthStatisticsBadRequest | 400 | application/json |
| sdkerrors.GetBandwidthStatisticsUnauthorized | 401 | application/json | | sdkerrors.GetBandwidthStatisticsUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |

View File

@@ -62,12 +62,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------- | ------------------------------------- | ------------------------------------- | | ------------------------------------- | ------------------------------------- | ------------------------------------- |
| sdkerrors.GetUpdateStatusBadRequest | 400 | application/json | | sdkerrors.GetUpdateStatusBadRequest | 400 | application/json |
| sdkerrors.GetUpdateStatusUnauthorized | 401 | application/json | | sdkerrors.GetUpdateStatusUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## CheckForUpdates ## CheckForUpdates
@@ -120,12 +119,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------- | ------------------------------------- | ------------------------------------- | | ------------------------------------- | ------------------------------------- | ------------------------------------- |
| sdkerrors.CheckForUpdatesBadRequest | 400 | application/json | | sdkerrors.CheckForUpdatesBadRequest | 400 | application/json |
| sdkerrors.CheckForUpdatesUnauthorized | 401 | application/json | | sdkerrors.CheckForUpdatesUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## ApplyUpdates ## ApplyUpdates
@@ -180,8 +178,8 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ---------------------------------- | ---------------------------------- | ---------------------------------- | | ---------------------------------- | ---------------------------------- | ---------------------------------- |
| sdkerrors.ApplyUpdatesBadRequest | 400 | application/json | | sdkerrors.ApplyUpdatesBadRequest | 400 | application/json |
| sdkerrors.ApplyUpdatesUnauthorized | 401 | application/json | | sdkerrors.ApplyUpdatesUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |

View File

@@ -73,12 +73,11 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| --------------------------------- | --------------------------------- | --------------------------------- | | --------------------------------- | --------------------------------- | --------------------------------- |
| sdkerrors.GetTimelineBadRequest | 400 | application/json | | sdkerrors.GetTimelineBadRequest | 400 | application/json |
| sdkerrors.GetTimelineUnauthorized | 401 | application/json | | sdkerrors.GetTimelineUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |
## StartUniversalTranscode ## StartUniversalTranscode
@@ -148,8 +147,8 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- |
| sdkerrors.StartUniversalTranscodeBadRequest | 400 | application/json | | sdkerrors.StartUniversalTranscodeBadRequest | 400 | application/json |
| sdkerrors.StartUniversalTranscodeUnauthorized | 401 | application/json | | sdkerrors.StartUniversalTranscodeUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |

View File

@@ -66,8 +66,8 @@ func main() {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ---------------------------------- | ---------------------------------- | ---------------------------------- | | ---------------------------------- | ---------------------------------- | ---------------------------------- |
| sdkerrors.GetWatchListBadRequest | 400 | application/json | | sdkerrors.GetWatchListBadRequest | 400 | application/json |
| sdkerrors.GetWatchListUnauthorized | 401 | application/json | | sdkerrors.GetWatchListUnauthorized | 401 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* | | sdkerrors.SDKError | 4XX, 5XX | \*/\* |

View File

@@ -3,10 +3,7 @@
package globals package globals
type Globals struct { type Globals struct {
// The unique identifier for the client application // 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)
// 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"` ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"`
ClientName *string `queryParam:"style=form,explode=true,name=X-Plex-Product"` ClientName *string `queryParam:"style=form,explode=true,name=X-Plex-Product"`
ClientVersion *string `queryParam:"style=form,explode=true,name=X-Plex-Version"` ClientVersion *string `queryParam:"style=form,explode=true,name=X-Plex-Version"`

View File

@@ -7,7 +7,7 @@ import (
) )
var GetCompanionsDataServerList = []string{ var GetCompanionsDataServerList = []string{
"https://plex.tv/api/v2/", "https://plex.tv/api/v2",
} }
type ResponseBody struct { type ResponseBody struct {

View File

@@ -8,7 +8,7 @@ import (
) )
var GetGeoDataServerList = []string{ var GetGeoDataServerList = []string{
"https://plex.tv/api/v2/", "https://plex.tv/api/v2",
} }
// GetGeoDataGeoData - Geo location data // GetGeoDataGeoData - Geo location data

View File

@@ -9,14 +9,11 @@ import (
) )
var GetPinServerList = []string{ var GetPinServerList = []string{
"https://plex.tv/api/v2/", "https://plex.tv/api/v2",
} }
type GetPinGlobals struct { type GetPinGlobals struct {
// The unique identifier for the client application // 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)
// 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"` ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"`
ClientName *string `queryParam:"style=form,explode=true,name=X-Plex-Product"` ClientName *string `queryParam:"style=form,explode=true,name=X-Plex-Product"`
DeviceName *string `queryParam:"style=form,explode=true,name=X-Plex-Device"` DeviceName *string `queryParam:"style=form,explode=true,name=X-Plex-Device"`
@@ -65,10 +62,7 @@ type GetPinRequest struct {
// Non-Strong codes are used for `Plex.tv/link` // Non-Strong codes are used for `Plex.tv/link`
// //
Strong *bool `default:"false" queryParam:"style=form,explode=true,name=strong"` Strong *bool `default:"false" queryParam:"style=form,explode=true,name=strong"`
// The unique identifier for the client application // 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)
// 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"` ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"`
ClientName *string `queryParam:"style=form,explode=true,name=X-Plex-Product"` ClientName *string `queryParam:"style=form,explode=true,name=X-Plex-Product"`
DeviceName *string `queryParam:"style=form,explode=true,name=X-Plex-Device"` DeviceName *string `queryParam:"style=form,explode=true,name=X-Plex-Device"`

View File

@@ -11,7 +11,19 @@ import (
) )
var GetServerResourcesServerList = []string{ var GetServerResourcesServerList = []string{
"https://plex.tv/api/v2/", "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 // IncludeHTTPS - Include Https entries in the results
@@ -105,6 +117,8 @@ type GetServerResourcesRequest struct {
IncludeRelay *IncludeRelay `default:"0" queryParam:"style=form,explode=true,name=includeRelay"` IncludeRelay *IncludeRelay `default:"0" queryParam:"style=form,explode=true,name=includeRelay"`
// Include IPv6 entries in the results // Include IPv6 entries in the results
IncludeIPv6 *IncludeIPv6 `default:"0" queryParam:"style=form,explode=true,name=includeIPv6"` IncludeIPv6 *IncludeIPv6 `default:"0" queryParam:"style=form,explode=true,name=includeIPv6"`
// 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 (g GetServerResourcesRequest) MarshalJSON() ([]byte, error) { func (g GetServerResourcesRequest) MarshalJSON() ([]byte, error) {
@@ -139,6 +153,13 @@ func (o *GetServerResourcesRequest) GetIncludeIPv6() *IncludeIPv6 {
return o.IncludeIPv6 return o.IncludeIPv6
} }
func (o *GetServerResourcesRequest) GetClientID() *string {
if o == nil {
return nil
}
return o.ClientID
}
// Protocol - The protocol used for the connection (http, https, etc) // Protocol - The protocol used for the connection (http, https, etc)
type Protocol string type Protocol string

View File

@@ -9,12 +9,62 @@ import (
) )
var GetTokenByPinIDServerList = []string{ var GetTokenByPinIDServerList = []string{
"https://plex.tv/api/v2/", "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"`
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 *GetTokenByPinIDGlobals) GetClientID() *string {
if o == nil {
return nil
}
return o.ClientID
}
func (o *GetTokenByPinIDGlobals) GetClientName() *string {
if o == nil {
return nil
}
return o.ClientName
}
func (o *GetTokenByPinIDGlobals) GetDeviceName() *string {
if o == nil {
return nil
}
return o.DeviceName
}
func (o *GetTokenByPinIDGlobals) GetClientVersion() *string {
if o == nil {
return nil
}
return o.ClientVersion
}
func (o *GetTokenByPinIDGlobals) GetClientPlatform() *string {
if o == nil {
return nil
}
return o.ClientPlatform
} }
type GetTokenByPinIDRequest struct { type GetTokenByPinIDRequest struct {
// The PinID to retrieve an access token for // The PinID to retrieve an access token for
PinID int64 `pathParam:"style=simple,explode=false,name=pinID"` PinID int64 `pathParam:"style=simple,explode=false,name=pinID"`
// 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 *GetTokenByPinIDRequest) GetPinID() int64 { func (o *GetTokenByPinIDRequest) GetPinID() int64 {
@@ -24,6 +74,41 @@ func (o *GetTokenByPinIDRequest) GetPinID() int64 {
return o.PinID return o.PinID
} }
func (o *GetTokenByPinIDRequest) GetClientID() *string {
if o == nil {
return nil
}
return o.ClientID
}
func (o *GetTokenByPinIDRequest) GetClientName() *string {
if o == nil {
return nil
}
return o.ClientName
}
func (o *GetTokenByPinIDRequest) GetDeviceName() *string {
if o == nil {
return nil
}
return o.DeviceName
}
func (o *GetTokenByPinIDRequest) GetClientVersion() *string {
if o == nil {
return nil
}
return o.ClientVersion
}
func (o *GetTokenByPinIDRequest) GetClientPlatform() *string {
if o == nil {
return nil
}
return o.ClientPlatform
}
// GetTokenByPinIDGeoData - Geo location data // GetTokenByPinIDGeoData - Geo location data
type GetTokenByPinIDGeoData struct { type GetTokenByPinIDGeoData struct {
// The ISO 3166-1 alpha-2 code of the country. // The ISO 3166-1 alpha-2 code of the country.

View File

@@ -11,10 +11,10 @@ import (
) )
var GetTokenDetailsServerList = []string{ var GetTokenDetailsServerList = []string{
"https://plex.tv/api/v2/", "https://plex.tv/api/v2",
} }
// MailingListStatus - Your current mailing list status // MailingListStatus - Your current mailing list status (active or unsubscribed)
type MailingListStatus string type MailingListStatus string
const ( const (
@@ -336,28 +336,43 @@ const (
FeaturesTrebleShowFeatures Features = "TREBLE-show-features" FeaturesTrebleShowFeatures Features = "TREBLE-show-features"
FeaturesAdCountdownTimer Features = "ad-countdown-timer" FeaturesAdCountdownTimer Features = "ad-countdown-timer"
FeaturesAdaptiveBitrate Features = "adaptive_bitrate" FeaturesAdaptiveBitrate Features = "adaptive_bitrate"
FeaturesAlbumTypes Features = "album-types"
FeaturesAllowDvr Features = "allow_dvr"
FeaturesAmazonLoopDebug Features = "amazon-loop-debug" FeaturesAmazonLoopDebug Features = "amazon-loop-debug"
FeaturesAvodAdAnalysis Features = "avod-ad-analysis" FeaturesAvodAdAnalysis Features = "avod-ad-analysis"
FeaturesAvodNewMedia Features = "avod-new-media" FeaturesAvodNewMedia Features = "avod-new-media"
FeaturesBlacklistGetSignin Features = "blacklist_get_signin" FeaturesBlacklistGetSignin Features = "blacklist_get_signin"
FeaturesBoostVoices Features = "boost-voices"
FeaturesCameraUpload Features = "camera_upload"
FeaturesClientRadioStations Features = "client-radio-stations" FeaturesClientRadioStations Features = "client-radio-stations"
FeaturesCloudflareTurnstileRequired Features = "cloudflare-turnstile-required" FeaturesCloudflareTurnstileRequired Features = "cloudflare-turnstile-required"
FeaturesCloudsync Features = "cloudsync"
FeaturesCollections Features = "collections" FeaturesCollections Features = "collections"
FeaturesCommentsAndRepliesPushNotifications Features = "comments_and_replies_push_notifications" FeaturesCommentsAndRepliesPushNotifications Features = "comments_and_replies_push_notifications"
FeaturesCommunityAccessPlexTv Features = "community_access_plex_tv" FeaturesCommunityAccessPlexTv Features = "community_access_plex_tv"
FeaturesCompanionsSonos Features = "companions_sonos" FeaturesCompanionsSonos Features = "companions_sonos"
FeaturesContentFilter Features = "content_filter"
FeaturesCustomHomeRemoval Features = "custom-home-removal" FeaturesCustomHomeRemoval Features = "custom-home-removal"
FeaturesDisableHomeUserFriendships Features = "disable_home_user_friendships" FeaturesDisableHomeUserFriendships Features = "disable_home_user_friendships"
FeaturesDisableSharingFriendships Features = "disable_sharing_friendships" FeaturesDisableSharingFriendships Features = "disable_sharing_friendships"
FeaturesDownloadsGating Features = "downloads-gating"
FeaturesDrmSupport Features = "drm_support" FeaturesDrmSupport Features = "drm_support"
FeaturesDvr Features = "dvr"
FeaturesDvrBlockUnsupportedCountries Features = "dvr-block-unsupported-countries"
FeaturesEpgRecentChannels Features = "epg-recent-channels"
FeaturesExcludeRestrictions Features = "exclude restrictions" FeaturesExcludeRestrictions Features = "exclude restrictions"
FeaturesFederatedAuth Features = "federated-auth" FeaturesFederatedAuth Features = "federated-auth"
FeaturesFriendRequestPushNotifications Features = "friend_request_push_notifications" FeaturesFriendRequestPushNotifications Features = "friend_request_push_notifications"
FeaturesGrandfatherSync Features = "grandfather-sync"
FeaturesGuidedUpgrade Features = "guided-upgrade" FeaturesGuidedUpgrade Features = "guided-upgrade"
FeaturesHardwareTranscoding Features = "hardware_transcoding"
FeaturesHome Features = "home" FeaturesHome Features = "home"
FeaturesHwtranscode Features = "hwtranscode"
FeaturesImaggaV2 Features = "imagga-v2"
FeaturesIncreasePasswordComplexity Features = "increase-password-complexity" FeaturesIncreasePasswordComplexity Features = "increase-password-complexity"
FeaturesIos14PrivacyBanner Features = "ios14-privacy-banner" FeaturesIos14PrivacyBanner Features = "ios14-privacy-banner"
FeaturesIterableNotificationTokens Features = "iterable-notification-tokens" FeaturesIterableNotificationTokens Features = "iterable-notification-tokens"
FeaturesItemClusters Features = "item_clusters"
FeaturesKeepPaymentMethod Features = "keep-payment-method" FeaturesKeepPaymentMethod Features = "keep-payment-method"
FeaturesKevinBacon Features = "kevin-bacon" FeaturesKevinBacon Features = "kevin-bacon"
FeaturesKoreaConsent Features = "korea-consent" FeaturesKoreaConsent Features = "korea-consent"
@@ -366,162 +381,54 @@ const (
FeaturesLightningDvrPivot Features = "lightning-dvr-pivot" FeaturesLightningDvrPivot Features = "lightning-dvr-pivot"
FeaturesLiveTvSupportIncompleteSegments Features = "live-tv-support-incomplete-segments" FeaturesLiveTvSupportIncompleteSegments Features = "live-tv-support-incomplete-segments"
FeaturesLivetv Features = "livetv" FeaturesLivetv Features = "livetv"
FeaturesLyrics Features = "lyrics"
FeaturesMetadataSearch Features = "metadata_search" FeaturesMetadataSearch Features = "metadata_search"
FeaturesMusicAnalysis Features = "music-analysis"
FeaturesMusicVideos Features = "music_videos"
FeaturesNewPlexPassPrices Features = "new_plex_pass_prices" FeaturesNewPlexPassPrices Features = "new_plex_pass_prices"
FeaturesNewsProviderSunsetModal Features = "news-provider-sunset-modal" FeaturesNewsProviderSunsetModal Features = "news-provider-sunset-modal"
FeaturesNominatim Features = "nominatim"
FeaturesPass Features = "pass"
FeaturesPhotosFavorites Features = "photos-favorites" FeaturesPhotosFavorites Features = "photos-favorites"
FeaturesPhotosMetadataEdition Features = "photos-metadata-edition" FeaturesPhotosMetadataEdition Features = "photos-metadata-edition"
FeaturesPhotosV6Edit Features = "photosV6-edit"
FeaturesPhotosV6TvAlbums Features = "photosV6-tv-albums"
FeaturesPmsHealth Features = "pms_health" FeaturesPmsHealth Features = "pms_health"
FeaturesPremiumDashboard Features = "premium-dashboard"
FeaturesPremiumMusicMetadata Features = "premium_music_metadata"
FeaturesRadio Features = "radio" FeaturesRadio Features = "radio"
FeaturesRateLimitClientToken Features = "rate-limit-client-token" FeaturesRateLimitClientToken Features = "rate-limit-client-token"
FeaturesScrobblingServicePlexTv Features = "scrobbling-service-plex-tv" FeaturesScrobblingServicePlexTv Features = "scrobbling-service-plex-tv"
FeaturesSessionBandwidthRestrictions Features = "session_bandwidth_restrictions"
FeaturesSessionKick Features = "session_kick"
FeaturesSharedServerNotification Features = "shared_server_notification" FeaturesSharedServerNotification Features = "shared_server_notification"
FeaturesSharedSourceNotification Features = "shared_source_notification" FeaturesSharedSourceNotification Features = "shared_source_notification"
FeaturesSigninNotification Features = "signin_notification"
FeaturesSigninWithApple Features = "signin_with_apple" FeaturesSigninWithApple Features = "signin_with_apple"
FeaturesSilenceRemoval Features = "silence-removal"
FeaturesSleepTimer Features = "sleep-timer"
FeaturesSpringServeAdProvider Features = "spring_serve_ad_provider" FeaturesSpringServeAdProvider Features = "spring_serve_ad_provider"
FeaturesSync Features = "sync"
FeaturesSweetFades Features = "sweet-fades"
FeaturesTranscoderCache Features = "transcoder_cache" FeaturesTranscoderCache Features = "transcoder_cache"
FeaturesTrailers Features = "trailers"
FeaturesTunerSharing Features = "tuner-sharing" FeaturesTunerSharing Features = "tuner-sharing"
FeaturesTwoFactorAuthentication Features = "two-factor-authentication" FeaturesTwoFactorAuthentication Features = "two-factor-authentication"
FeaturesUnsupportedtuners Features = "unsupportedtuners" FeaturesUnsupportedtuners Features = "unsupportedtuners"
FeaturesUpgrade3ds2 Features = "upgrade-3ds2" FeaturesUpgrade3ds2 Features = "upgrade-3ds2"
FeaturesVisualizers Features = "visualizers"
FeaturesVodSchema Features = "vod-schema" FeaturesVodSchema Features = "vod-schema"
FeaturesVodCloudflare Features = "vod_cloudflare" FeaturesVodCloudflare Features = "vod_cloudflare"
FeaturesVolumeLeveling Features = "volume-leveling"
FeaturesWatchTogetherInvite Features = "watch-together-invite" FeaturesWatchTogetherInvite Features = "watch-together-invite"
FeaturesWatchlistRss Features = "watchlist-rss"
FeaturesWebServerDashboard Features = "web_server_dashboard" FeaturesWebServerDashboard Features = "web_server_dashboard"
FeaturesWebhooks Features = "webhooks"
) )
func (e Features) ToPointer() *Features { func (e Features) ToPointer() *Features {
return &e return &e
} }
func (e *Features) UnmarshalJSON(data []byte) error {
var v string
if err := json.Unmarshal(data, &v); err != nil {
return err
}
switch v {
case "Android - Dolby Vision":
fallthrough
case "Android - PiP":
fallthrough
case "CU Sunset":
fallthrough
case "HRK_enable_EUR":
fallthrough
case "TREBLE-show-features":
fallthrough
case "ad-countdown-timer":
fallthrough
case "adaptive_bitrate":
fallthrough
case "amazon-loop-debug":
fallthrough
case "avod-ad-analysis":
fallthrough
case "avod-new-media":
fallthrough
case "blacklist_get_signin":
fallthrough
case "client-radio-stations":
fallthrough
case "cloudflare-turnstile-required":
fallthrough
case "collections":
fallthrough
case "comments_and_replies_push_notifications":
fallthrough
case "community_access_plex_tv":
fallthrough
case "companions_sonos":
fallthrough
case "custom-home-removal":
fallthrough
case "disable_home_user_friendships":
fallthrough
case "disable_sharing_friendships":
fallthrough
case "drm_support":
fallthrough
case "exclude restrictions":
fallthrough
case "federated-auth":
fallthrough
case "friend_request_push_notifications":
fallthrough
case "guided-upgrade":
fallthrough
case "home":
fallthrough
case "increase-password-complexity":
fallthrough
case "ios14-privacy-banner":
fallthrough
case "iterable-notification-tokens":
fallthrough
case "keep-payment-method":
fallthrough
case "kevin-bacon":
fallthrough
case "korea-consent":
fallthrough
case "le_isrg_root_x1":
fallthrough
case "lets_encrypt":
fallthrough
case "lightning-dvr-pivot":
fallthrough
case "live-tv-support-incomplete-segments":
fallthrough
case "livetv":
fallthrough
case "metadata_search":
fallthrough
case "new_plex_pass_prices":
fallthrough
case "news-provider-sunset-modal":
fallthrough
case "photos-favorites":
fallthrough
case "photos-metadata-edition":
fallthrough
case "pms_health":
fallthrough
case "radio":
fallthrough
case "rate-limit-client-token":
fallthrough
case "scrobbling-service-plex-tv":
fallthrough
case "shared_server_notification":
fallthrough
case "shared_source_notification":
fallthrough
case "signin_with_apple":
fallthrough
case "spring_serve_ad_provider":
fallthrough
case "transcoder_cache":
fallthrough
case "tuner-sharing":
fallthrough
case "two-factor-authentication":
fallthrough
case "unsupportedtuners":
fallthrough
case "upgrade-3ds2":
fallthrough
case "vod-schema":
fallthrough
case "vod_cloudflare":
fallthrough
case "watch-together-invite":
fallthrough
case "web_server_dashboard":
*e = Features(v)
return nil
default:
return fmt.Errorf("invalid value for Features: %v", v)
}
}
// GetTokenDetailsAuthenticationStatus - String representation of subscriptionActive // GetTokenDetailsAuthenticationStatus - String representation of subscriptionActive
type GetTokenDetailsAuthenticationStatus string type GetTokenDetailsAuthenticationStatus string
@@ -618,28 +525,43 @@ const (
GetTokenDetailsFeaturesTrebleShowFeatures GetTokenDetailsFeatures = "TREBLE-show-features" GetTokenDetailsFeaturesTrebleShowFeatures GetTokenDetailsFeatures = "TREBLE-show-features"
GetTokenDetailsFeaturesAdCountdownTimer GetTokenDetailsFeatures = "ad-countdown-timer" GetTokenDetailsFeaturesAdCountdownTimer GetTokenDetailsFeatures = "ad-countdown-timer"
GetTokenDetailsFeaturesAdaptiveBitrate GetTokenDetailsFeatures = "adaptive_bitrate" GetTokenDetailsFeaturesAdaptiveBitrate GetTokenDetailsFeatures = "adaptive_bitrate"
GetTokenDetailsFeaturesAlbumTypes GetTokenDetailsFeatures = "album-types"
GetTokenDetailsFeaturesAllowDvr GetTokenDetailsFeatures = "allow_dvr"
GetTokenDetailsFeaturesAmazonLoopDebug GetTokenDetailsFeatures = "amazon-loop-debug" GetTokenDetailsFeaturesAmazonLoopDebug GetTokenDetailsFeatures = "amazon-loop-debug"
GetTokenDetailsFeaturesAvodAdAnalysis GetTokenDetailsFeatures = "avod-ad-analysis" GetTokenDetailsFeaturesAvodAdAnalysis GetTokenDetailsFeatures = "avod-ad-analysis"
GetTokenDetailsFeaturesAvodNewMedia GetTokenDetailsFeatures = "avod-new-media" GetTokenDetailsFeaturesAvodNewMedia GetTokenDetailsFeatures = "avod-new-media"
GetTokenDetailsFeaturesBlacklistGetSignin GetTokenDetailsFeatures = "blacklist_get_signin" GetTokenDetailsFeaturesBlacklistGetSignin GetTokenDetailsFeatures = "blacklist_get_signin"
GetTokenDetailsFeaturesBoostVoices GetTokenDetailsFeatures = "boost-voices"
GetTokenDetailsFeaturesCameraUpload GetTokenDetailsFeatures = "camera_upload"
GetTokenDetailsFeaturesClientRadioStations GetTokenDetailsFeatures = "client-radio-stations" GetTokenDetailsFeaturesClientRadioStations GetTokenDetailsFeatures = "client-radio-stations"
GetTokenDetailsFeaturesCloudflareTurnstileRequired GetTokenDetailsFeatures = "cloudflare-turnstile-required" GetTokenDetailsFeaturesCloudflareTurnstileRequired GetTokenDetailsFeatures = "cloudflare-turnstile-required"
GetTokenDetailsFeaturesCloudsync GetTokenDetailsFeatures = "cloudsync"
GetTokenDetailsFeaturesCollections GetTokenDetailsFeatures = "collections" GetTokenDetailsFeaturesCollections GetTokenDetailsFeatures = "collections"
GetTokenDetailsFeaturesCommentsAndRepliesPushNotifications GetTokenDetailsFeatures = "comments_and_replies_push_notifications" GetTokenDetailsFeaturesCommentsAndRepliesPushNotifications GetTokenDetailsFeatures = "comments_and_replies_push_notifications"
GetTokenDetailsFeaturesCommunityAccessPlexTv GetTokenDetailsFeatures = "community_access_plex_tv" GetTokenDetailsFeaturesCommunityAccessPlexTv GetTokenDetailsFeatures = "community_access_plex_tv"
GetTokenDetailsFeaturesCompanionsSonos GetTokenDetailsFeatures = "companions_sonos" GetTokenDetailsFeaturesCompanionsSonos GetTokenDetailsFeatures = "companions_sonos"
GetTokenDetailsFeaturesContentFilter GetTokenDetailsFeatures = "content_filter"
GetTokenDetailsFeaturesCustomHomeRemoval GetTokenDetailsFeatures = "custom-home-removal" GetTokenDetailsFeaturesCustomHomeRemoval GetTokenDetailsFeatures = "custom-home-removal"
GetTokenDetailsFeaturesDisableHomeUserFriendships GetTokenDetailsFeatures = "disable_home_user_friendships" GetTokenDetailsFeaturesDisableHomeUserFriendships GetTokenDetailsFeatures = "disable_home_user_friendships"
GetTokenDetailsFeaturesDisableSharingFriendships GetTokenDetailsFeatures = "disable_sharing_friendships" GetTokenDetailsFeaturesDisableSharingFriendships GetTokenDetailsFeatures = "disable_sharing_friendships"
GetTokenDetailsFeaturesDownloadsGating GetTokenDetailsFeatures = "downloads-gating"
GetTokenDetailsFeaturesDrmSupport GetTokenDetailsFeatures = "drm_support" GetTokenDetailsFeaturesDrmSupport GetTokenDetailsFeatures = "drm_support"
GetTokenDetailsFeaturesDvr GetTokenDetailsFeatures = "dvr"
GetTokenDetailsFeaturesDvrBlockUnsupportedCountries GetTokenDetailsFeatures = "dvr-block-unsupported-countries"
GetTokenDetailsFeaturesEpgRecentChannels GetTokenDetailsFeatures = "epg-recent-channels"
GetTokenDetailsFeaturesExcludeRestrictions GetTokenDetailsFeatures = "exclude restrictions" GetTokenDetailsFeaturesExcludeRestrictions GetTokenDetailsFeatures = "exclude restrictions"
GetTokenDetailsFeaturesFederatedAuth GetTokenDetailsFeatures = "federated-auth" GetTokenDetailsFeaturesFederatedAuth GetTokenDetailsFeatures = "federated-auth"
GetTokenDetailsFeaturesFriendRequestPushNotifications GetTokenDetailsFeatures = "friend_request_push_notifications" GetTokenDetailsFeaturesFriendRequestPushNotifications GetTokenDetailsFeatures = "friend_request_push_notifications"
GetTokenDetailsFeaturesGrandfatherSync GetTokenDetailsFeatures = "grandfather-sync"
GetTokenDetailsFeaturesGuidedUpgrade GetTokenDetailsFeatures = "guided-upgrade" GetTokenDetailsFeaturesGuidedUpgrade GetTokenDetailsFeatures = "guided-upgrade"
GetTokenDetailsFeaturesHardwareTranscoding GetTokenDetailsFeatures = "hardware_transcoding"
GetTokenDetailsFeaturesHome GetTokenDetailsFeatures = "home" GetTokenDetailsFeaturesHome GetTokenDetailsFeatures = "home"
GetTokenDetailsFeaturesHwtranscode GetTokenDetailsFeatures = "hwtranscode"
GetTokenDetailsFeaturesImaggaV2 GetTokenDetailsFeatures = "imagga-v2"
GetTokenDetailsFeaturesIncreasePasswordComplexity GetTokenDetailsFeatures = "increase-password-complexity" GetTokenDetailsFeaturesIncreasePasswordComplexity GetTokenDetailsFeatures = "increase-password-complexity"
GetTokenDetailsFeaturesIos14PrivacyBanner GetTokenDetailsFeatures = "ios14-privacy-banner" GetTokenDetailsFeaturesIos14PrivacyBanner GetTokenDetailsFeatures = "ios14-privacy-banner"
GetTokenDetailsFeaturesIterableNotificationTokens GetTokenDetailsFeatures = "iterable-notification-tokens" GetTokenDetailsFeaturesIterableNotificationTokens GetTokenDetailsFeatures = "iterable-notification-tokens"
GetTokenDetailsFeaturesItemClusters GetTokenDetailsFeatures = "item_clusters"
GetTokenDetailsFeaturesKeepPaymentMethod GetTokenDetailsFeatures = "keep-payment-method" GetTokenDetailsFeaturesKeepPaymentMethod GetTokenDetailsFeatures = "keep-payment-method"
GetTokenDetailsFeaturesKevinBacon GetTokenDetailsFeatures = "kevin-bacon" GetTokenDetailsFeaturesKevinBacon GetTokenDetailsFeatures = "kevin-bacon"
GetTokenDetailsFeaturesKoreaConsent GetTokenDetailsFeatures = "korea-consent" GetTokenDetailsFeaturesKoreaConsent GetTokenDetailsFeatures = "korea-consent"
@@ -648,162 +570,54 @@ const (
GetTokenDetailsFeaturesLightningDvrPivot GetTokenDetailsFeatures = "lightning-dvr-pivot" GetTokenDetailsFeaturesLightningDvrPivot GetTokenDetailsFeatures = "lightning-dvr-pivot"
GetTokenDetailsFeaturesLiveTvSupportIncompleteSegments GetTokenDetailsFeatures = "live-tv-support-incomplete-segments" GetTokenDetailsFeaturesLiveTvSupportIncompleteSegments GetTokenDetailsFeatures = "live-tv-support-incomplete-segments"
GetTokenDetailsFeaturesLivetv GetTokenDetailsFeatures = "livetv" GetTokenDetailsFeaturesLivetv GetTokenDetailsFeatures = "livetv"
GetTokenDetailsFeaturesLyrics GetTokenDetailsFeatures = "lyrics"
GetTokenDetailsFeaturesMetadataSearch GetTokenDetailsFeatures = "metadata_search" GetTokenDetailsFeaturesMetadataSearch GetTokenDetailsFeatures = "metadata_search"
GetTokenDetailsFeaturesMusicAnalysis GetTokenDetailsFeatures = "music-analysis"
GetTokenDetailsFeaturesMusicVideos GetTokenDetailsFeatures = "music_videos"
GetTokenDetailsFeaturesNewPlexPassPrices GetTokenDetailsFeatures = "new_plex_pass_prices" GetTokenDetailsFeaturesNewPlexPassPrices GetTokenDetailsFeatures = "new_plex_pass_prices"
GetTokenDetailsFeaturesNewsProviderSunsetModal GetTokenDetailsFeatures = "news-provider-sunset-modal" GetTokenDetailsFeaturesNewsProviderSunsetModal GetTokenDetailsFeatures = "news-provider-sunset-modal"
GetTokenDetailsFeaturesNominatim GetTokenDetailsFeatures = "nominatim"
GetTokenDetailsFeaturesPass GetTokenDetailsFeatures = "pass"
GetTokenDetailsFeaturesPhotosFavorites GetTokenDetailsFeatures = "photos-favorites" GetTokenDetailsFeaturesPhotosFavorites GetTokenDetailsFeatures = "photos-favorites"
GetTokenDetailsFeaturesPhotosMetadataEdition GetTokenDetailsFeatures = "photos-metadata-edition" GetTokenDetailsFeaturesPhotosMetadataEdition GetTokenDetailsFeatures = "photos-metadata-edition"
GetTokenDetailsFeaturesPhotosV6Edit GetTokenDetailsFeatures = "photosV6-edit"
GetTokenDetailsFeaturesPhotosV6TvAlbums GetTokenDetailsFeatures = "photosV6-tv-albums"
GetTokenDetailsFeaturesPmsHealth GetTokenDetailsFeatures = "pms_health" GetTokenDetailsFeaturesPmsHealth GetTokenDetailsFeatures = "pms_health"
GetTokenDetailsFeaturesPremiumDashboard GetTokenDetailsFeatures = "premium-dashboard"
GetTokenDetailsFeaturesPremiumMusicMetadata GetTokenDetailsFeatures = "premium_music_metadata"
GetTokenDetailsFeaturesRadio GetTokenDetailsFeatures = "radio" GetTokenDetailsFeaturesRadio GetTokenDetailsFeatures = "radio"
GetTokenDetailsFeaturesRateLimitClientToken GetTokenDetailsFeatures = "rate-limit-client-token" GetTokenDetailsFeaturesRateLimitClientToken GetTokenDetailsFeatures = "rate-limit-client-token"
GetTokenDetailsFeaturesScrobblingServicePlexTv GetTokenDetailsFeatures = "scrobbling-service-plex-tv" GetTokenDetailsFeaturesScrobblingServicePlexTv GetTokenDetailsFeatures = "scrobbling-service-plex-tv"
GetTokenDetailsFeaturesSessionBandwidthRestrictions GetTokenDetailsFeatures = "session_bandwidth_restrictions"
GetTokenDetailsFeaturesSessionKick GetTokenDetailsFeatures = "session_kick"
GetTokenDetailsFeaturesSharedServerNotification GetTokenDetailsFeatures = "shared_server_notification" GetTokenDetailsFeaturesSharedServerNotification GetTokenDetailsFeatures = "shared_server_notification"
GetTokenDetailsFeaturesSharedSourceNotification GetTokenDetailsFeatures = "shared_source_notification" GetTokenDetailsFeaturesSharedSourceNotification GetTokenDetailsFeatures = "shared_source_notification"
GetTokenDetailsFeaturesSigninNotification GetTokenDetailsFeatures = "signin_notification"
GetTokenDetailsFeaturesSigninWithApple GetTokenDetailsFeatures = "signin_with_apple" GetTokenDetailsFeaturesSigninWithApple GetTokenDetailsFeatures = "signin_with_apple"
GetTokenDetailsFeaturesSilenceRemoval GetTokenDetailsFeatures = "silence-removal"
GetTokenDetailsFeaturesSleepTimer GetTokenDetailsFeatures = "sleep-timer"
GetTokenDetailsFeaturesSpringServeAdProvider GetTokenDetailsFeatures = "spring_serve_ad_provider" GetTokenDetailsFeaturesSpringServeAdProvider GetTokenDetailsFeatures = "spring_serve_ad_provider"
GetTokenDetailsFeaturesSync GetTokenDetailsFeatures = "sync"
GetTokenDetailsFeaturesSweetFades GetTokenDetailsFeatures = "sweet-fades"
GetTokenDetailsFeaturesTranscoderCache GetTokenDetailsFeatures = "transcoder_cache" GetTokenDetailsFeaturesTranscoderCache GetTokenDetailsFeatures = "transcoder_cache"
GetTokenDetailsFeaturesTrailers GetTokenDetailsFeatures = "trailers"
GetTokenDetailsFeaturesTunerSharing GetTokenDetailsFeatures = "tuner-sharing" GetTokenDetailsFeaturesTunerSharing GetTokenDetailsFeatures = "tuner-sharing"
GetTokenDetailsFeaturesTwoFactorAuthentication GetTokenDetailsFeatures = "two-factor-authentication" GetTokenDetailsFeaturesTwoFactorAuthentication GetTokenDetailsFeatures = "two-factor-authentication"
GetTokenDetailsFeaturesUnsupportedtuners GetTokenDetailsFeatures = "unsupportedtuners" GetTokenDetailsFeaturesUnsupportedtuners GetTokenDetailsFeatures = "unsupportedtuners"
GetTokenDetailsFeaturesUpgrade3ds2 GetTokenDetailsFeatures = "upgrade-3ds2" GetTokenDetailsFeaturesUpgrade3ds2 GetTokenDetailsFeatures = "upgrade-3ds2"
GetTokenDetailsFeaturesVisualizers GetTokenDetailsFeatures = "visualizers"
GetTokenDetailsFeaturesVodSchema GetTokenDetailsFeatures = "vod-schema" GetTokenDetailsFeaturesVodSchema GetTokenDetailsFeatures = "vod-schema"
GetTokenDetailsFeaturesVodCloudflare GetTokenDetailsFeatures = "vod_cloudflare" GetTokenDetailsFeaturesVodCloudflare GetTokenDetailsFeatures = "vod_cloudflare"
GetTokenDetailsFeaturesVolumeLeveling GetTokenDetailsFeatures = "volume-leveling"
GetTokenDetailsFeaturesWatchTogetherInvite GetTokenDetailsFeatures = "watch-together-invite" GetTokenDetailsFeaturesWatchTogetherInvite GetTokenDetailsFeatures = "watch-together-invite"
GetTokenDetailsFeaturesWatchlistRss GetTokenDetailsFeatures = "watchlist-rss"
GetTokenDetailsFeaturesWebServerDashboard GetTokenDetailsFeatures = "web_server_dashboard" GetTokenDetailsFeaturesWebServerDashboard GetTokenDetailsFeatures = "web_server_dashboard"
GetTokenDetailsFeaturesWebhooks GetTokenDetailsFeatures = "webhooks"
) )
func (e GetTokenDetailsFeatures) ToPointer() *GetTokenDetailsFeatures { func (e GetTokenDetailsFeatures) ToPointer() *GetTokenDetailsFeatures {
return &e return &e
} }
func (e *GetTokenDetailsFeatures) UnmarshalJSON(data []byte) error {
var v string
if err := json.Unmarshal(data, &v); err != nil {
return err
}
switch v {
case "Android - Dolby Vision":
fallthrough
case "Android - PiP":
fallthrough
case "CU Sunset":
fallthrough
case "HRK_enable_EUR":
fallthrough
case "TREBLE-show-features":
fallthrough
case "ad-countdown-timer":
fallthrough
case "adaptive_bitrate":
fallthrough
case "amazon-loop-debug":
fallthrough
case "avod-ad-analysis":
fallthrough
case "avod-new-media":
fallthrough
case "blacklist_get_signin":
fallthrough
case "client-radio-stations":
fallthrough
case "cloudflare-turnstile-required":
fallthrough
case "collections":
fallthrough
case "comments_and_replies_push_notifications":
fallthrough
case "community_access_plex_tv":
fallthrough
case "companions_sonos":
fallthrough
case "custom-home-removal":
fallthrough
case "disable_home_user_friendships":
fallthrough
case "disable_sharing_friendships":
fallthrough
case "drm_support":
fallthrough
case "exclude restrictions":
fallthrough
case "federated-auth":
fallthrough
case "friend_request_push_notifications":
fallthrough
case "guided-upgrade":
fallthrough
case "home":
fallthrough
case "increase-password-complexity":
fallthrough
case "ios14-privacy-banner":
fallthrough
case "iterable-notification-tokens":
fallthrough
case "keep-payment-method":
fallthrough
case "kevin-bacon":
fallthrough
case "korea-consent":
fallthrough
case "le_isrg_root_x1":
fallthrough
case "lets_encrypt":
fallthrough
case "lightning-dvr-pivot":
fallthrough
case "live-tv-support-incomplete-segments":
fallthrough
case "livetv":
fallthrough
case "metadata_search":
fallthrough
case "new_plex_pass_prices":
fallthrough
case "news-provider-sunset-modal":
fallthrough
case "photos-favorites":
fallthrough
case "photos-metadata-edition":
fallthrough
case "pms_health":
fallthrough
case "radio":
fallthrough
case "rate-limit-client-token":
fallthrough
case "scrobbling-service-plex-tv":
fallthrough
case "shared_server_notification":
fallthrough
case "shared_source_notification":
fallthrough
case "signin_with_apple":
fallthrough
case "spring_serve_ad_provider":
fallthrough
case "transcoder_cache":
fallthrough
case "tuner-sharing":
fallthrough
case "two-factor-authentication":
fallthrough
case "unsupportedtuners":
fallthrough
case "upgrade-3ds2":
fallthrough
case "vod-schema":
fallthrough
case "vod_cloudflare":
fallthrough
case "watch-together-invite":
fallthrough
case "web_server_dashboard":
*e = GetTokenDetailsFeatures(v)
return nil
default:
return fmt.Errorf("invalid value for GetTokenDetailsFeatures: %v", v)
}
}
// GetTokenDetailsAuthenticationResponseStatus - String representation of subscriptionActive // GetTokenDetailsAuthenticationResponseStatus - String representation of subscriptionActive
type GetTokenDetailsAuthenticationResponseStatus string type GetTokenDetailsAuthenticationResponseStatus string
@@ -935,7 +749,7 @@ type GetTokenDetailsUserPlexAccount struct {
Locale *string `json:"locale"` Locale *string `json:"locale"`
// If you are subscribed to the Plex newsletter // If you are subscribed to the Plex newsletter
MailingListActive *bool `default:"false" json:"mailingListActive"` MailingListActive *bool `default:"false" json:"mailingListActive"`
// Your current mailing list status // Your current mailing list status (active or unsubscribed)
MailingListStatus MailingListStatus `json:"mailingListStatus"` MailingListStatus MailingListStatus `json:"mailingListStatus"`
// The maximum number of accounts allowed in the Plex Home // The maximum number of accounts allowed in the Plex Home
MaxHomeSize int `json:"maxHomeSize"` MaxHomeSize int `json:"maxHomeSize"`

View File

@@ -10,7 +10,7 @@ import (
) )
var GetUserFriendsServerList = []string{ var GetUserFriendsServerList = []string{
"https://plex.tv/api/v2/", "https://plex.tv/api/v2",
} }
type SharedServers struct { type SharedServers struct {

View File

@@ -11,14 +11,11 @@ import (
) )
var PostUsersSignInDataServerList = []string{ var PostUsersSignInDataServerList = []string{
"https://plex.tv/api/v2/", "https://plex.tv/api/v2",
} }
type PostUsersSignInDataGlobals struct { type PostUsersSignInDataGlobals struct {
// The unique identifier for the client application // 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)
// 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"` ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"`
ClientName *string `queryParam:"style=form,explode=true,name=X-Plex-Product"` ClientName *string `queryParam:"style=form,explode=true,name=X-Plex-Product"`
DeviceName *string `queryParam:"style=form,explode=true,name=X-Plex-Device"` DeviceName *string `queryParam:"style=form,explode=true,name=X-Plex-Device"`
@@ -109,10 +106,7 @@ func (o *PostUsersSignInDataRequestBody) GetVerificationCode() *string {
} }
type PostUsersSignInDataRequest struct { type PostUsersSignInDataRequest struct {
// The unique identifier for the client application // 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)
// 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"` ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"`
ClientName *string `queryParam:"style=form,explode=true,name=X-Plex-Product"` ClientName *string `queryParam:"style=form,explode=true,name=X-Plex-Product"`
DeviceName *string `queryParam:"style=form,explode=true,name=X-Plex-Device"` DeviceName *string `queryParam:"style=form,explode=true,name=X-Plex-Device"`
@@ -164,7 +158,7 @@ func (o *PostUsersSignInDataRequest) GetRequestBody() *PostUsersSignInDataReques
return o.RequestBody return o.RequestBody
} }
// PostUsersSignInDataMailingListStatus - Your current mailing list status // PostUsersSignInDataMailingListStatus - Your current mailing list status (active or unsubscribed)
type PostUsersSignInDataMailingListStatus string type PostUsersSignInDataMailingListStatus string
const ( const (
@@ -486,28 +480,43 @@ const (
PostUsersSignInDataFeaturesTrebleShowFeatures PostUsersSignInDataFeatures = "TREBLE-show-features" PostUsersSignInDataFeaturesTrebleShowFeatures PostUsersSignInDataFeatures = "TREBLE-show-features"
PostUsersSignInDataFeaturesAdCountdownTimer PostUsersSignInDataFeatures = "ad-countdown-timer" PostUsersSignInDataFeaturesAdCountdownTimer PostUsersSignInDataFeatures = "ad-countdown-timer"
PostUsersSignInDataFeaturesAdaptiveBitrate PostUsersSignInDataFeatures = "adaptive_bitrate" PostUsersSignInDataFeaturesAdaptiveBitrate PostUsersSignInDataFeatures = "adaptive_bitrate"
PostUsersSignInDataFeaturesAlbumTypes PostUsersSignInDataFeatures = "album-types"
PostUsersSignInDataFeaturesAllowDvr PostUsersSignInDataFeatures = "allow_dvr"
PostUsersSignInDataFeaturesAmazonLoopDebug PostUsersSignInDataFeatures = "amazon-loop-debug" PostUsersSignInDataFeaturesAmazonLoopDebug PostUsersSignInDataFeatures = "amazon-loop-debug"
PostUsersSignInDataFeaturesAvodAdAnalysis PostUsersSignInDataFeatures = "avod-ad-analysis" PostUsersSignInDataFeaturesAvodAdAnalysis PostUsersSignInDataFeatures = "avod-ad-analysis"
PostUsersSignInDataFeaturesAvodNewMedia PostUsersSignInDataFeatures = "avod-new-media" PostUsersSignInDataFeaturesAvodNewMedia PostUsersSignInDataFeatures = "avod-new-media"
PostUsersSignInDataFeaturesBlacklistGetSignin PostUsersSignInDataFeatures = "blacklist_get_signin" PostUsersSignInDataFeaturesBlacklistGetSignin PostUsersSignInDataFeatures = "blacklist_get_signin"
PostUsersSignInDataFeaturesBoostVoices PostUsersSignInDataFeatures = "boost-voices"
PostUsersSignInDataFeaturesCameraUpload PostUsersSignInDataFeatures = "camera_upload"
PostUsersSignInDataFeaturesClientRadioStations PostUsersSignInDataFeatures = "client-radio-stations" PostUsersSignInDataFeaturesClientRadioStations PostUsersSignInDataFeatures = "client-radio-stations"
PostUsersSignInDataFeaturesCloudflareTurnstileRequired PostUsersSignInDataFeatures = "cloudflare-turnstile-required" PostUsersSignInDataFeaturesCloudflareTurnstileRequired PostUsersSignInDataFeatures = "cloudflare-turnstile-required"
PostUsersSignInDataFeaturesCloudsync PostUsersSignInDataFeatures = "cloudsync"
PostUsersSignInDataFeaturesCollections PostUsersSignInDataFeatures = "collections" PostUsersSignInDataFeaturesCollections PostUsersSignInDataFeatures = "collections"
PostUsersSignInDataFeaturesCommentsAndRepliesPushNotifications PostUsersSignInDataFeatures = "comments_and_replies_push_notifications" PostUsersSignInDataFeaturesCommentsAndRepliesPushNotifications PostUsersSignInDataFeatures = "comments_and_replies_push_notifications"
PostUsersSignInDataFeaturesCommunityAccessPlexTv PostUsersSignInDataFeatures = "community_access_plex_tv" PostUsersSignInDataFeaturesCommunityAccessPlexTv PostUsersSignInDataFeatures = "community_access_plex_tv"
PostUsersSignInDataFeaturesCompanionsSonos PostUsersSignInDataFeatures = "companions_sonos" PostUsersSignInDataFeaturesCompanionsSonos PostUsersSignInDataFeatures = "companions_sonos"
PostUsersSignInDataFeaturesContentFilter PostUsersSignInDataFeatures = "content_filter"
PostUsersSignInDataFeaturesCustomHomeRemoval PostUsersSignInDataFeatures = "custom-home-removal" PostUsersSignInDataFeaturesCustomHomeRemoval PostUsersSignInDataFeatures = "custom-home-removal"
PostUsersSignInDataFeaturesDisableHomeUserFriendships PostUsersSignInDataFeatures = "disable_home_user_friendships" PostUsersSignInDataFeaturesDisableHomeUserFriendships PostUsersSignInDataFeatures = "disable_home_user_friendships"
PostUsersSignInDataFeaturesDisableSharingFriendships PostUsersSignInDataFeatures = "disable_sharing_friendships" PostUsersSignInDataFeaturesDisableSharingFriendships PostUsersSignInDataFeatures = "disable_sharing_friendships"
PostUsersSignInDataFeaturesDownloadsGating PostUsersSignInDataFeatures = "downloads-gating"
PostUsersSignInDataFeaturesDrmSupport PostUsersSignInDataFeatures = "drm_support" PostUsersSignInDataFeaturesDrmSupport PostUsersSignInDataFeatures = "drm_support"
PostUsersSignInDataFeaturesDvr PostUsersSignInDataFeatures = "dvr"
PostUsersSignInDataFeaturesDvrBlockUnsupportedCountries PostUsersSignInDataFeatures = "dvr-block-unsupported-countries"
PostUsersSignInDataFeaturesEpgRecentChannels PostUsersSignInDataFeatures = "epg-recent-channels"
PostUsersSignInDataFeaturesExcludeRestrictions PostUsersSignInDataFeatures = "exclude restrictions" PostUsersSignInDataFeaturesExcludeRestrictions PostUsersSignInDataFeatures = "exclude restrictions"
PostUsersSignInDataFeaturesFederatedAuth PostUsersSignInDataFeatures = "federated-auth" PostUsersSignInDataFeaturesFederatedAuth PostUsersSignInDataFeatures = "federated-auth"
PostUsersSignInDataFeaturesFriendRequestPushNotifications PostUsersSignInDataFeatures = "friend_request_push_notifications" PostUsersSignInDataFeaturesFriendRequestPushNotifications PostUsersSignInDataFeatures = "friend_request_push_notifications"
PostUsersSignInDataFeaturesGrandfatherSync PostUsersSignInDataFeatures = "grandfather-sync"
PostUsersSignInDataFeaturesGuidedUpgrade PostUsersSignInDataFeatures = "guided-upgrade" PostUsersSignInDataFeaturesGuidedUpgrade PostUsersSignInDataFeatures = "guided-upgrade"
PostUsersSignInDataFeaturesHardwareTranscoding PostUsersSignInDataFeatures = "hardware_transcoding"
PostUsersSignInDataFeaturesHome PostUsersSignInDataFeatures = "home" PostUsersSignInDataFeaturesHome PostUsersSignInDataFeatures = "home"
PostUsersSignInDataFeaturesHwtranscode PostUsersSignInDataFeatures = "hwtranscode"
PostUsersSignInDataFeaturesImaggaV2 PostUsersSignInDataFeatures = "imagga-v2"
PostUsersSignInDataFeaturesIncreasePasswordComplexity PostUsersSignInDataFeatures = "increase-password-complexity" PostUsersSignInDataFeaturesIncreasePasswordComplexity PostUsersSignInDataFeatures = "increase-password-complexity"
PostUsersSignInDataFeaturesIos14PrivacyBanner PostUsersSignInDataFeatures = "ios14-privacy-banner" PostUsersSignInDataFeaturesIos14PrivacyBanner PostUsersSignInDataFeatures = "ios14-privacy-banner"
PostUsersSignInDataFeaturesIterableNotificationTokens PostUsersSignInDataFeatures = "iterable-notification-tokens" PostUsersSignInDataFeaturesIterableNotificationTokens PostUsersSignInDataFeatures = "iterable-notification-tokens"
PostUsersSignInDataFeaturesItemClusters PostUsersSignInDataFeatures = "item_clusters"
PostUsersSignInDataFeaturesKeepPaymentMethod PostUsersSignInDataFeatures = "keep-payment-method" PostUsersSignInDataFeaturesKeepPaymentMethod PostUsersSignInDataFeatures = "keep-payment-method"
PostUsersSignInDataFeaturesKevinBacon PostUsersSignInDataFeatures = "kevin-bacon" PostUsersSignInDataFeaturesKevinBacon PostUsersSignInDataFeatures = "kevin-bacon"
PostUsersSignInDataFeaturesKoreaConsent PostUsersSignInDataFeatures = "korea-consent" PostUsersSignInDataFeaturesKoreaConsent PostUsersSignInDataFeatures = "korea-consent"
@@ -516,162 +525,54 @@ const (
PostUsersSignInDataFeaturesLightningDvrPivot PostUsersSignInDataFeatures = "lightning-dvr-pivot" PostUsersSignInDataFeaturesLightningDvrPivot PostUsersSignInDataFeatures = "lightning-dvr-pivot"
PostUsersSignInDataFeaturesLiveTvSupportIncompleteSegments PostUsersSignInDataFeatures = "live-tv-support-incomplete-segments" PostUsersSignInDataFeaturesLiveTvSupportIncompleteSegments PostUsersSignInDataFeatures = "live-tv-support-incomplete-segments"
PostUsersSignInDataFeaturesLivetv PostUsersSignInDataFeatures = "livetv" PostUsersSignInDataFeaturesLivetv PostUsersSignInDataFeatures = "livetv"
PostUsersSignInDataFeaturesLyrics PostUsersSignInDataFeatures = "lyrics"
PostUsersSignInDataFeaturesMetadataSearch PostUsersSignInDataFeatures = "metadata_search" PostUsersSignInDataFeaturesMetadataSearch PostUsersSignInDataFeatures = "metadata_search"
PostUsersSignInDataFeaturesMusicAnalysis PostUsersSignInDataFeatures = "music-analysis"
PostUsersSignInDataFeaturesMusicVideos PostUsersSignInDataFeatures = "music_videos"
PostUsersSignInDataFeaturesNewPlexPassPrices PostUsersSignInDataFeatures = "new_plex_pass_prices" PostUsersSignInDataFeaturesNewPlexPassPrices PostUsersSignInDataFeatures = "new_plex_pass_prices"
PostUsersSignInDataFeaturesNewsProviderSunsetModal PostUsersSignInDataFeatures = "news-provider-sunset-modal" PostUsersSignInDataFeaturesNewsProviderSunsetModal PostUsersSignInDataFeatures = "news-provider-sunset-modal"
PostUsersSignInDataFeaturesNominatim PostUsersSignInDataFeatures = "nominatim"
PostUsersSignInDataFeaturesPass PostUsersSignInDataFeatures = "pass"
PostUsersSignInDataFeaturesPhotosFavorites PostUsersSignInDataFeatures = "photos-favorites" PostUsersSignInDataFeaturesPhotosFavorites PostUsersSignInDataFeatures = "photos-favorites"
PostUsersSignInDataFeaturesPhotosMetadataEdition PostUsersSignInDataFeatures = "photos-metadata-edition" PostUsersSignInDataFeaturesPhotosMetadataEdition PostUsersSignInDataFeatures = "photos-metadata-edition"
PostUsersSignInDataFeaturesPhotosV6Edit PostUsersSignInDataFeatures = "photosV6-edit"
PostUsersSignInDataFeaturesPhotosV6TvAlbums PostUsersSignInDataFeatures = "photosV6-tv-albums"
PostUsersSignInDataFeaturesPmsHealth PostUsersSignInDataFeatures = "pms_health" PostUsersSignInDataFeaturesPmsHealth PostUsersSignInDataFeatures = "pms_health"
PostUsersSignInDataFeaturesPremiumDashboard PostUsersSignInDataFeatures = "premium-dashboard"
PostUsersSignInDataFeaturesPremiumMusicMetadata PostUsersSignInDataFeatures = "premium_music_metadata"
PostUsersSignInDataFeaturesRadio PostUsersSignInDataFeatures = "radio" PostUsersSignInDataFeaturesRadio PostUsersSignInDataFeatures = "radio"
PostUsersSignInDataFeaturesRateLimitClientToken PostUsersSignInDataFeatures = "rate-limit-client-token" PostUsersSignInDataFeaturesRateLimitClientToken PostUsersSignInDataFeatures = "rate-limit-client-token"
PostUsersSignInDataFeaturesScrobblingServicePlexTv PostUsersSignInDataFeatures = "scrobbling-service-plex-tv" PostUsersSignInDataFeaturesScrobblingServicePlexTv PostUsersSignInDataFeatures = "scrobbling-service-plex-tv"
PostUsersSignInDataFeaturesSessionBandwidthRestrictions PostUsersSignInDataFeatures = "session_bandwidth_restrictions"
PostUsersSignInDataFeaturesSessionKick PostUsersSignInDataFeatures = "session_kick"
PostUsersSignInDataFeaturesSharedServerNotification PostUsersSignInDataFeatures = "shared_server_notification" PostUsersSignInDataFeaturesSharedServerNotification PostUsersSignInDataFeatures = "shared_server_notification"
PostUsersSignInDataFeaturesSharedSourceNotification PostUsersSignInDataFeatures = "shared_source_notification" PostUsersSignInDataFeaturesSharedSourceNotification PostUsersSignInDataFeatures = "shared_source_notification"
PostUsersSignInDataFeaturesSigninNotification PostUsersSignInDataFeatures = "signin_notification"
PostUsersSignInDataFeaturesSigninWithApple PostUsersSignInDataFeatures = "signin_with_apple" PostUsersSignInDataFeaturesSigninWithApple PostUsersSignInDataFeatures = "signin_with_apple"
PostUsersSignInDataFeaturesSilenceRemoval PostUsersSignInDataFeatures = "silence-removal"
PostUsersSignInDataFeaturesSleepTimer PostUsersSignInDataFeatures = "sleep-timer"
PostUsersSignInDataFeaturesSpringServeAdProvider PostUsersSignInDataFeatures = "spring_serve_ad_provider" PostUsersSignInDataFeaturesSpringServeAdProvider PostUsersSignInDataFeatures = "spring_serve_ad_provider"
PostUsersSignInDataFeaturesSync PostUsersSignInDataFeatures = "sync"
PostUsersSignInDataFeaturesSweetFades PostUsersSignInDataFeatures = "sweet-fades"
PostUsersSignInDataFeaturesTranscoderCache PostUsersSignInDataFeatures = "transcoder_cache" PostUsersSignInDataFeaturesTranscoderCache PostUsersSignInDataFeatures = "transcoder_cache"
PostUsersSignInDataFeaturesTrailers PostUsersSignInDataFeatures = "trailers"
PostUsersSignInDataFeaturesTunerSharing PostUsersSignInDataFeatures = "tuner-sharing" PostUsersSignInDataFeaturesTunerSharing PostUsersSignInDataFeatures = "tuner-sharing"
PostUsersSignInDataFeaturesTwoFactorAuthentication PostUsersSignInDataFeatures = "two-factor-authentication" PostUsersSignInDataFeaturesTwoFactorAuthentication PostUsersSignInDataFeatures = "two-factor-authentication"
PostUsersSignInDataFeaturesUnsupportedtuners PostUsersSignInDataFeatures = "unsupportedtuners" PostUsersSignInDataFeaturesUnsupportedtuners PostUsersSignInDataFeatures = "unsupportedtuners"
PostUsersSignInDataFeaturesUpgrade3ds2 PostUsersSignInDataFeatures = "upgrade-3ds2" PostUsersSignInDataFeaturesUpgrade3ds2 PostUsersSignInDataFeatures = "upgrade-3ds2"
PostUsersSignInDataFeaturesVisualizers PostUsersSignInDataFeatures = "visualizers"
PostUsersSignInDataFeaturesVodSchema PostUsersSignInDataFeatures = "vod-schema" PostUsersSignInDataFeaturesVodSchema PostUsersSignInDataFeatures = "vod-schema"
PostUsersSignInDataFeaturesVodCloudflare PostUsersSignInDataFeatures = "vod_cloudflare" PostUsersSignInDataFeaturesVodCloudflare PostUsersSignInDataFeatures = "vod_cloudflare"
PostUsersSignInDataFeaturesVolumeLeveling PostUsersSignInDataFeatures = "volume-leveling"
PostUsersSignInDataFeaturesWatchTogetherInvite PostUsersSignInDataFeatures = "watch-together-invite" PostUsersSignInDataFeaturesWatchTogetherInvite PostUsersSignInDataFeatures = "watch-together-invite"
PostUsersSignInDataFeaturesWatchlistRss PostUsersSignInDataFeatures = "watchlist-rss"
PostUsersSignInDataFeaturesWebServerDashboard PostUsersSignInDataFeatures = "web_server_dashboard" PostUsersSignInDataFeaturesWebServerDashboard PostUsersSignInDataFeatures = "web_server_dashboard"
PostUsersSignInDataFeaturesWebhooks PostUsersSignInDataFeatures = "webhooks"
) )
func (e PostUsersSignInDataFeatures) ToPointer() *PostUsersSignInDataFeatures { func (e PostUsersSignInDataFeatures) ToPointer() *PostUsersSignInDataFeatures {
return &e return &e
} }
func (e *PostUsersSignInDataFeatures) UnmarshalJSON(data []byte) error {
var v string
if err := json.Unmarshal(data, &v); err != nil {
return err
}
switch v {
case "Android - Dolby Vision":
fallthrough
case "Android - PiP":
fallthrough
case "CU Sunset":
fallthrough
case "HRK_enable_EUR":
fallthrough
case "TREBLE-show-features":
fallthrough
case "ad-countdown-timer":
fallthrough
case "adaptive_bitrate":
fallthrough
case "amazon-loop-debug":
fallthrough
case "avod-ad-analysis":
fallthrough
case "avod-new-media":
fallthrough
case "blacklist_get_signin":
fallthrough
case "client-radio-stations":
fallthrough
case "cloudflare-turnstile-required":
fallthrough
case "collections":
fallthrough
case "comments_and_replies_push_notifications":
fallthrough
case "community_access_plex_tv":
fallthrough
case "companions_sonos":
fallthrough
case "custom-home-removal":
fallthrough
case "disable_home_user_friendships":
fallthrough
case "disable_sharing_friendships":
fallthrough
case "drm_support":
fallthrough
case "exclude restrictions":
fallthrough
case "federated-auth":
fallthrough
case "friend_request_push_notifications":
fallthrough
case "guided-upgrade":
fallthrough
case "home":
fallthrough
case "increase-password-complexity":
fallthrough
case "ios14-privacy-banner":
fallthrough
case "iterable-notification-tokens":
fallthrough
case "keep-payment-method":
fallthrough
case "kevin-bacon":
fallthrough
case "korea-consent":
fallthrough
case "le_isrg_root_x1":
fallthrough
case "lets_encrypt":
fallthrough
case "lightning-dvr-pivot":
fallthrough
case "live-tv-support-incomplete-segments":
fallthrough
case "livetv":
fallthrough
case "metadata_search":
fallthrough
case "new_plex_pass_prices":
fallthrough
case "news-provider-sunset-modal":
fallthrough
case "photos-favorites":
fallthrough
case "photos-metadata-edition":
fallthrough
case "pms_health":
fallthrough
case "radio":
fallthrough
case "rate-limit-client-token":
fallthrough
case "scrobbling-service-plex-tv":
fallthrough
case "shared_server_notification":
fallthrough
case "shared_source_notification":
fallthrough
case "signin_with_apple":
fallthrough
case "spring_serve_ad_provider":
fallthrough
case "transcoder_cache":
fallthrough
case "tuner-sharing":
fallthrough
case "two-factor-authentication":
fallthrough
case "unsupportedtuners":
fallthrough
case "upgrade-3ds2":
fallthrough
case "vod-schema":
fallthrough
case "vod_cloudflare":
fallthrough
case "watch-together-invite":
fallthrough
case "web_server_dashboard":
*e = PostUsersSignInDataFeatures(v)
return nil
default:
return fmt.Errorf("invalid value for PostUsersSignInDataFeatures: %v", v)
}
}
// PostUsersSignInDataAuthenticationStatus - String representation of subscriptionActive // PostUsersSignInDataAuthenticationStatus - String representation of subscriptionActive
type PostUsersSignInDataAuthenticationStatus string type PostUsersSignInDataAuthenticationStatus string
@@ -768,28 +669,43 @@ const (
PostUsersSignInDataAuthenticationFeaturesTrebleShowFeatures PostUsersSignInDataAuthenticationFeatures = "TREBLE-show-features" PostUsersSignInDataAuthenticationFeaturesTrebleShowFeatures PostUsersSignInDataAuthenticationFeatures = "TREBLE-show-features"
PostUsersSignInDataAuthenticationFeaturesAdCountdownTimer PostUsersSignInDataAuthenticationFeatures = "ad-countdown-timer" PostUsersSignInDataAuthenticationFeaturesAdCountdownTimer PostUsersSignInDataAuthenticationFeatures = "ad-countdown-timer"
PostUsersSignInDataAuthenticationFeaturesAdaptiveBitrate PostUsersSignInDataAuthenticationFeatures = "adaptive_bitrate" PostUsersSignInDataAuthenticationFeaturesAdaptiveBitrate PostUsersSignInDataAuthenticationFeatures = "adaptive_bitrate"
PostUsersSignInDataAuthenticationFeaturesAlbumTypes PostUsersSignInDataAuthenticationFeatures = "album-types"
PostUsersSignInDataAuthenticationFeaturesAllowDvr PostUsersSignInDataAuthenticationFeatures = "allow_dvr"
PostUsersSignInDataAuthenticationFeaturesAmazonLoopDebug PostUsersSignInDataAuthenticationFeatures = "amazon-loop-debug" PostUsersSignInDataAuthenticationFeaturesAmazonLoopDebug PostUsersSignInDataAuthenticationFeatures = "amazon-loop-debug"
PostUsersSignInDataAuthenticationFeaturesAvodAdAnalysis PostUsersSignInDataAuthenticationFeatures = "avod-ad-analysis" PostUsersSignInDataAuthenticationFeaturesAvodAdAnalysis PostUsersSignInDataAuthenticationFeatures = "avod-ad-analysis"
PostUsersSignInDataAuthenticationFeaturesAvodNewMedia PostUsersSignInDataAuthenticationFeatures = "avod-new-media" PostUsersSignInDataAuthenticationFeaturesAvodNewMedia PostUsersSignInDataAuthenticationFeatures = "avod-new-media"
PostUsersSignInDataAuthenticationFeaturesBlacklistGetSignin PostUsersSignInDataAuthenticationFeatures = "blacklist_get_signin" PostUsersSignInDataAuthenticationFeaturesBlacklistGetSignin PostUsersSignInDataAuthenticationFeatures = "blacklist_get_signin"
PostUsersSignInDataAuthenticationFeaturesBoostVoices PostUsersSignInDataAuthenticationFeatures = "boost-voices"
PostUsersSignInDataAuthenticationFeaturesCameraUpload PostUsersSignInDataAuthenticationFeatures = "camera_upload"
PostUsersSignInDataAuthenticationFeaturesClientRadioStations PostUsersSignInDataAuthenticationFeatures = "client-radio-stations" PostUsersSignInDataAuthenticationFeaturesClientRadioStations PostUsersSignInDataAuthenticationFeatures = "client-radio-stations"
PostUsersSignInDataAuthenticationFeaturesCloudflareTurnstileRequired PostUsersSignInDataAuthenticationFeatures = "cloudflare-turnstile-required" PostUsersSignInDataAuthenticationFeaturesCloudflareTurnstileRequired PostUsersSignInDataAuthenticationFeatures = "cloudflare-turnstile-required"
PostUsersSignInDataAuthenticationFeaturesCloudsync PostUsersSignInDataAuthenticationFeatures = "cloudsync"
PostUsersSignInDataAuthenticationFeaturesCollections PostUsersSignInDataAuthenticationFeatures = "collections" PostUsersSignInDataAuthenticationFeaturesCollections PostUsersSignInDataAuthenticationFeatures = "collections"
PostUsersSignInDataAuthenticationFeaturesCommentsAndRepliesPushNotifications PostUsersSignInDataAuthenticationFeatures = "comments_and_replies_push_notifications" PostUsersSignInDataAuthenticationFeaturesCommentsAndRepliesPushNotifications PostUsersSignInDataAuthenticationFeatures = "comments_and_replies_push_notifications"
PostUsersSignInDataAuthenticationFeaturesCommunityAccessPlexTv PostUsersSignInDataAuthenticationFeatures = "community_access_plex_tv" PostUsersSignInDataAuthenticationFeaturesCommunityAccessPlexTv PostUsersSignInDataAuthenticationFeatures = "community_access_plex_tv"
PostUsersSignInDataAuthenticationFeaturesCompanionsSonos PostUsersSignInDataAuthenticationFeatures = "companions_sonos" PostUsersSignInDataAuthenticationFeaturesCompanionsSonos PostUsersSignInDataAuthenticationFeatures = "companions_sonos"
PostUsersSignInDataAuthenticationFeaturesContentFilter PostUsersSignInDataAuthenticationFeatures = "content_filter"
PostUsersSignInDataAuthenticationFeaturesCustomHomeRemoval PostUsersSignInDataAuthenticationFeatures = "custom-home-removal" PostUsersSignInDataAuthenticationFeaturesCustomHomeRemoval PostUsersSignInDataAuthenticationFeatures = "custom-home-removal"
PostUsersSignInDataAuthenticationFeaturesDisableHomeUserFriendships PostUsersSignInDataAuthenticationFeatures = "disable_home_user_friendships" PostUsersSignInDataAuthenticationFeaturesDisableHomeUserFriendships PostUsersSignInDataAuthenticationFeatures = "disable_home_user_friendships"
PostUsersSignInDataAuthenticationFeaturesDisableSharingFriendships PostUsersSignInDataAuthenticationFeatures = "disable_sharing_friendships" PostUsersSignInDataAuthenticationFeaturesDisableSharingFriendships PostUsersSignInDataAuthenticationFeatures = "disable_sharing_friendships"
PostUsersSignInDataAuthenticationFeaturesDownloadsGating PostUsersSignInDataAuthenticationFeatures = "downloads-gating"
PostUsersSignInDataAuthenticationFeaturesDrmSupport PostUsersSignInDataAuthenticationFeatures = "drm_support" PostUsersSignInDataAuthenticationFeaturesDrmSupport PostUsersSignInDataAuthenticationFeatures = "drm_support"
PostUsersSignInDataAuthenticationFeaturesDvr PostUsersSignInDataAuthenticationFeatures = "dvr"
PostUsersSignInDataAuthenticationFeaturesDvrBlockUnsupportedCountries PostUsersSignInDataAuthenticationFeatures = "dvr-block-unsupported-countries"
PostUsersSignInDataAuthenticationFeaturesEpgRecentChannels PostUsersSignInDataAuthenticationFeatures = "epg-recent-channels"
PostUsersSignInDataAuthenticationFeaturesExcludeRestrictions PostUsersSignInDataAuthenticationFeatures = "exclude restrictions" PostUsersSignInDataAuthenticationFeaturesExcludeRestrictions PostUsersSignInDataAuthenticationFeatures = "exclude restrictions"
PostUsersSignInDataAuthenticationFeaturesFederatedAuth PostUsersSignInDataAuthenticationFeatures = "federated-auth" PostUsersSignInDataAuthenticationFeaturesFederatedAuth PostUsersSignInDataAuthenticationFeatures = "federated-auth"
PostUsersSignInDataAuthenticationFeaturesFriendRequestPushNotifications PostUsersSignInDataAuthenticationFeatures = "friend_request_push_notifications" PostUsersSignInDataAuthenticationFeaturesFriendRequestPushNotifications PostUsersSignInDataAuthenticationFeatures = "friend_request_push_notifications"
PostUsersSignInDataAuthenticationFeaturesGrandfatherSync PostUsersSignInDataAuthenticationFeatures = "grandfather-sync"
PostUsersSignInDataAuthenticationFeaturesGuidedUpgrade PostUsersSignInDataAuthenticationFeatures = "guided-upgrade" PostUsersSignInDataAuthenticationFeaturesGuidedUpgrade PostUsersSignInDataAuthenticationFeatures = "guided-upgrade"
PostUsersSignInDataAuthenticationFeaturesHardwareTranscoding PostUsersSignInDataAuthenticationFeatures = "hardware_transcoding"
PostUsersSignInDataAuthenticationFeaturesHome PostUsersSignInDataAuthenticationFeatures = "home" PostUsersSignInDataAuthenticationFeaturesHome PostUsersSignInDataAuthenticationFeatures = "home"
PostUsersSignInDataAuthenticationFeaturesHwtranscode PostUsersSignInDataAuthenticationFeatures = "hwtranscode"
PostUsersSignInDataAuthenticationFeaturesImaggaV2 PostUsersSignInDataAuthenticationFeatures = "imagga-v2"
PostUsersSignInDataAuthenticationFeaturesIncreasePasswordComplexity PostUsersSignInDataAuthenticationFeatures = "increase-password-complexity" PostUsersSignInDataAuthenticationFeaturesIncreasePasswordComplexity PostUsersSignInDataAuthenticationFeatures = "increase-password-complexity"
PostUsersSignInDataAuthenticationFeaturesIos14PrivacyBanner PostUsersSignInDataAuthenticationFeatures = "ios14-privacy-banner" PostUsersSignInDataAuthenticationFeaturesIos14PrivacyBanner PostUsersSignInDataAuthenticationFeatures = "ios14-privacy-banner"
PostUsersSignInDataAuthenticationFeaturesIterableNotificationTokens PostUsersSignInDataAuthenticationFeatures = "iterable-notification-tokens" PostUsersSignInDataAuthenticationFeaturesIterableNotificationTokens PostUsersSignInDataAuthenticationFeatures = "iterable-notification-tokens"
PostUsersSignInDataAuthenticationFeaturesItemClusters PostUsersSignInDataAuthenticationFeatures = "item_clusters"
PostUsersSignInDataAuthenticationFeaturesKeepPaymentMethod PostUsersSignInDataAuthenticationFeatures = "keep-payment-method" PostUsersSignInDataAuthenticationFeaturesKeepPaymentMethod PostUsersSignInDataAuthenticationFeatures = "keep-payment-method"
PostUsersSignInDataAuthenticationFeaturesKevinBacon PostUsersSignInDataAuthenticationFeatures = "kevin-bacon" PostUsersSignInDataAuthenticationFeaturesKevinBacon PostUsersSignInDataAuthenticationFeatures = "kevin-bacon"
PostUsersSignInDataAuthenticationFeaturesKoreaConsent PostUsersSignInDataAuthenticationFeatures = "korea-consent" PostUsersSignInDataAuthenticationFeaturesKoreaConsent PostUsersSignInDataAuthenticationFeatures = "korea-consent"
@@ -798,162 +714,54 @@ const (
PostUsersSignInDataAuthenticationFeaturesLightningDvrPivot PostUsersSignInDataAuthenticationFeatures = "lightning-dvr-pivot" PostUsersSignInDataAuthenticationFeaturesLightningDvrPivot PostUsersSignInDataAuthenticationFeatures = "lightning-dvr-pivot"
PostUsersSignInDataAuthenticationFeaturesLiveTvSupportIncompleteSegments PostUsersSignInDataAuthenticationFeatures = "live-tv-support-incomplete-segments" PostUsersSignInDataAuthenticationFeaturesLiveTvSupportIncompleteSegments PostUsersSignInDataAuthenticationFeatures = "live-tv-support-incomplete-segments"
PostUsersSignInDataAuthenticationFeaturesLivetv PostUsersSignInDataAuthenticationFeatures = "livetv" PostUsersSignInDataAuthenticationFeaturesLivetv PostUsersSignInDataAuthenticationFeatures = "livetv"
PostUsersSignInDataAuthenticationFeaturesLyrics PostUsersSignInDataAuthenticationFeatures = "lyrics"
PostUsersSignInDataAuthenticationFeaturesMetadataSearch PostUsersSignInDataAuthenticationFeatures = "metadata_search" PostUsersSignInDataAuthenticationFeaturesMetadataSearch PostUsersSignInDataAuthenticationFeatures = "metadata_search"
PostUsersSignInDataAuthenticationFeaturesMusicAnalysis PostUsersSignInDataAuthenticationFeatures = "music-analysis"
PostUsersSignInDataAuthenticationFeaturesMusicVideos PostUsersSignInDataAuthenticationFeatures = "music_videos"
PostUsersSignInDataAuthenticationFeaturesNewPlexPassPrices PostUsersSignInDataAuthenticationFeatures = "new_plex_pass_prices" PostUsersSignInDataAuthenticationFeaturesNewPlexPassPrices PostUsersSignInDataAuthenticationFeatures = "new_plex_pass_prices"
PostUsersSignInDataAuthenticationFeaturesNewsProviderSunsetModal PostUsersSignInDataAuthenticationFeatures = "news-provider-sunset-modal" PostUsersSignInDataAuthenticationFeaturesNewsProviderSunsetModal PostUsersSignInDataAuthenticationFeatures = "news-provider-sunset-modal"
PostUsersSignInDataAuthenticationFeaturesNominatim PostUsersSignInDataAuthenticationFeatures = "nominatim"
PostUsersSignInDataAuthenticationFeaturesPass PostUsersSignInDataAuthenticationFeatures = "pass"
PostUsersSignInDataAuthenticationFeaturesPhotosFavorites PostUsersSignInDataAuthenticationFeatures = "photos-favorites" PostUsersSignInDataAuthenticationFeaturesPhotosFavorites PostUsersSignInDataAuthenticationFeatures = "photos-favorites"
PostUsersSignInDataAuthenticationFeaturesPhotosMetadataEdition PostUsersSignInDataAuthenticationFeatures = "photos-metadata-edition" PostUsersSignInDataAuthenticationFeaturesPhotosMetadataEdition PostUsersSignInDataAuthenticationFeatures = "photos-metadata-edition"
PostUsersSignInDataAuthenticationFeaturesPhotosV6Edit PostUsersSignInDataAuthenticationFeatures = "photosV6-edit"
PostUsersSignInDataAuthenticationFeaturesPhotosV6TvAlbums PostUsersSignInDataAuthenticationFeatures = "photosV6-tv-albums"
PostUsersSignInDataAuthenticationFeaturesPmsHealth PostUsersSignInDataAuthenticationFeatures = "pms_health" PostUsersSignInDataAuthenticationFeaturesPmsHealth PostUsersSignInDataAuthenticationFeatures = "pms_health"
PostUsersSignInDataAuthenticationFeaturesPremiumDashboard PostUsersSignInDataAuthenticationFeatures = "premium-dashboard"
PostUsersSignInDataAuthenticationFeaturesPremiumMusicMetadata PostUsersSignInDataAuthenticationFeatures = "premium_music_metadata"
PostUsersSignInDataAuthenticationFeaturesRadio PostUsersSignInDataAuthenticationFeatures = "radio" PostUsersSignInDataAuthenticationFeaturesRadio PostUsersSignInDataAuthenticationFeatures = "radio"
PostUsersSignInDataAuthenticationFeaturesRateLimitClientToken PostUsersSignInDataAuthenticationFeatures = "rate-limit-client-token" PostUsersSignInDataAuthenticationFeaturesRateLimitClientToken PostUsersSignInDataAuthenticationFeatures = "rate-limit-client-token"
PostUsersSignInDataAuthenticationFeaturesScrobblingServicePlexTv PostUsersSignInDataAuthenticationFeatures = "scrobbling-service-plex-tv" PostUsersSignInDataAuthenticationFeaturesScrobblingServicePlexTv PostUsersSignInDataAuthenticationFeatures = "scrobbling-service-plex-tv"
PostUsersSignInDataAuthenticationFeaturesSessionBandwidthRestrictions PostUsersSignInDataAuthenticationFeatures = "session_bandwidth_restrictions"
PostUsersSignInDataAuthenticationFeaturesSessionKick PostUsersSignInDataAuthenticationFeatures = "session_kick"
PostUsersSignInDataAuthenticationFeaturesSharedServerNotification PostUsersSignInDataAuthenticationFeatures = "shared_server_notification" PostUsersSignInDataAuthenticationFeaturesSharedServerNotification PostUsersSignInDataAuthenticationFeatures = "shared_server_notification"
PostUsersSignInDataAuthenticationFeaturesSharedSourceNotification PostUsersSignInDataAuthenticationFeatures = "shared_source_notification" PostUsersSignInDataAuthenticationFeaturesSharedSourceNotification PostUsersSignInDataAuthenticationFeatures = "shared_source_notification"
PostUsersSignInDataAuthenticationFeaturesSigninNotification PostUsersSignInDataAuthenticationFeatures = "signin_notification"
PostUsersSignInDataAuthenticationFeaturesSigninWithApple PostUsersSignInDataAuthenticationFeatures = "signin_with_apple" PostUsersSignInDataAuthenticationFeaturesSigninWithApple PostUsersSignInDataAuthenticationFeatures = "signin_with_apple"
PostUsersSignInDataAuthenticationFeaturesSilenceRemoval PostUsersSignInDataAuthenticationFeatures = "silence-removal"
PostUsersSignInDataAuthenticationFeaturesSleepTimer PostUsersSignInDataAuthenticationFeatures = "sleep-timer"
PostUsersSignInDataAuthenticationFeaturesSpringServeAdProvider PostUsersSignInDataAuthenticationFeatures = "spring_serve_ad_provider" PostUsersSignInDataAuthenticationFeaturesSpringServeAdProvider PostUsersSignInDataAuthenticationFeatures = "spring_serve_ad_provider"
PostUsersSignInDataAuthenticationFeaturesSync PostUsersSignInDataAuthenticationFeatures = "sync"
PostUsersSignInDataAuthenticationFeaturesSweetFades PostUsersSignInDataAuthenticationFeatures = "sweet-fades"
PostUsersSignInDataAuthenticationFeaturesTranscoderCache PostUsersSignInDataAuthenticationFeatures = "transcoder_cache" PostUsersSignInDataAuthenticationFeaturesTranscoderCache PostUsersSignInDataAuthenticationFeatures = "transcoder_cache"
PostUsersSignInDataAuthenticationFeaturesTrailers PostUsersSignInDataAuthenticationFeatures = "trailers"
PostUsersSignInDataAuthenticationFeaturesTunerSharing PostUsersSignInDataAuthenticationFeatures = "tuner-sharing" PostUsersSignInDataAuthenticationFeaturesTunerSharing PostUsersSignInDataAuthenticationFeatures = "tuner-sharing"
PostUsersSignInDataAuthenticationFeaturesTwoFactorAuthentication PostUsersSignInDataAuthenticationFeatures = "two-factor-authentication" PostUsersSignInDataAuthenticationFeaturesTwoFactorAuthentication PostUsersSignInDataAuthenticationFeatures = "two-factor-authentication"
PostUsersSignInDataAuthenticationFeaturesUnsupportedtuners PostUsersSignInDataAuthenticationFeatures = "unsupportedtuners" PostUsersSignInDataAuthenticationFeaturesUnsupportedtuners PostUsersSignInDataAuthenticationFeatures = "unsupportedtuners"
PostUsersSignInDataAuthenticationFeaturesUpgrade3ds2 PostUsersSignInDataAuthenticationFeatures = "upgrade-3ds2" PostUsersSignInDataAuthenticationFeaturesUpgrade3ds2 PostUsersSignInDataAuthenticationFeatures = "upgrade-3ds2"
PostUsersSignInDataAuthenticationFeaturesVisualizers PostUsersSignInDataAuthenticationFeatures = "visualizers"
PostUsersSignInDataAuthenticationFeaturesVodSchema PostUsersSignInDataAuthenticationFeatures = "vod-schema" PostUsersSignInDataAuthenticationFeaturesVodSchema PostUsersSignInDataAuthenticationFeatures = "vod-schema"
PostUsersSignInDataAuthenticationFeaturesVodCloudflare PostUsersSignInDataAuthenticationFeatures = "vod_cloudflare" PostUsersSignInDataAuthenticationFeaturesVodCloudflare PostUsersSignInDataAuthenticationFeatures = "vod_cloudflare"
PostUsersSignInDataAuthenticationFeaturesVolumeLeveling PostUsersSignInDataAuthenticationFeatures = "volume-leveling"
PostUsersSignInDataAuthenticationFeaturesWatchTogetherInvite PostUsersSignInDataAuthenticationFeatures = "watch-together-invite" PostUsersSignInDataAuthenticationFeaturesWatchTogetherInvite PostUsersSignInDataAuthenticationFeatures = "watch-together-invite"
PostUsersSignInDataAuthenticationFeaturesWatchlistRss PostUsersSignInDataAuthenticationFeatures = "watchlist-rss"
PostUsersSignInDataAuthenticationFeaturesWebServerDashboard PostUsersSignInDataAuthenticationFeatures = "web_server_dashboard" PostUsersSignInDataAuthenticationFeaturesWebServerDashboard PostUsersSignInDataAuthenticationFeatures = "web_server_dashboard"
PostUsersSignInDataAuthenticationFeaturesWebhooks PostUsersSignInDataAuthenticationFeatures = "webhooks"
) )
func (e PostUsersSignInDataAuthenticationFeatures) ToPointer() *PostUsersSignInDataAuthenticationFeatures { func (e PostUsersSignInDataAuthenticationFeatures) ToPointer() *PostUsersSignInDataAuthenticationFeatures {
return &e return &e
} }
func (e *PostUsersSignInDataAuthenticationFeatures) UnmarshalJSON(data []byte) error {
var v string
if err := json.Unmarshal(data, &v); err != nil {
return err
}
switch v {
case "Android - Dolby Vision":
fallthrough
case "Android - PiP":
fallthrough
case "CU Sunset":
fallthrough
case "HRK_enable_EUR":
fallthrough
case "TREBLE-show-features":
fallthrough
case "ad-countdown-timer":
fallthrough
case "adaptive_bitrate":
fallthrough
case "amazon-loop-debug":
fallthrough
case "avod-ad-analysis":
fallthrough
case "avod-new-media":
fallthrough
case "blacklist_get_signin":
fallthrough
case "client-radio-stations":
fallthrough
case "cloudflare-turnstile-required":
fallthrough
case "collections":
fallthrough
case "comments_and_replies_push_notifications":
fallthrough
case "community_access_plex_tv":
fallthrough
case "companions_sonos":
fallthrough
case "custom-home-removal":
fallthrough
case "disable_home_user_friendships":
fallthrough
case "disable_sharing_friendships":
fallthrough
case "drm_support":
fallthrough
case "exclude restrictions":
fallthrough
case "federated-auth":
fallthrough
case "friend_request_push_notifications":
fallthrough
case "guided-upgrade":
fallthrough
case "home":
fallthrough
case "increase-password-complexity":
fallthrough
case "ios14-privacy-banner":
fallthrough
case "iterable-notification-tokens":
fallthrough
case "keep-payment-method":
fallthrough
case "kevin-bacon":
fallthrough
case "korea-consent":
fallthrough
case "le_isrg_root_x1":
fallthrough
case "lets_encrypt":
fallthrough
case "lightning-dvr-pivot":
fallthrough
case "live-tv-support-incomplete-segments":
fallthrough
case "livetv":
fallthrough
case "metadata_search":
fallthrough
case "new_plex_pass_prices":
fallthrough
case "news-provider-sunset-modal":
fallthrough
case "photos-favorites":
fallthrough
case "photos-metadata-edition":
fallthrough
case "pms_health":
fallthrough
case "radio":
fallthrough
case "rate-limit-client-token":
fallthrough
case "scrobbling-service-plex-tv":
fallthrough
case "shared_server_notification":
fallthrough
case "shared_source_notification":
fallthrough
case "signin_with_apple":
fallthrough
case "spring_serve_ad_provider":
fallthrough
case "transcoder_cache":
fallthrough
case "tuner-sharing":
fallthrough
case "two-factor-authentication":
fallthrough
case "unsupportedtuners":
fallthrough
case "upgrade-3ds2":
fallthrough
case "vod-schema":
fallthrough
case "vod_cloudflare":
fallthrough
case "watch-together-invite":
fallthrough
case "web_server_dashboard":
*e = PostUsersSignInDataAuthenticationFeatures(v)
return nil
default:
return fmt.Errorf("invalid value for PostUsersSignInDataAuthenticationFeatures: %v", v)
}
}
// PostUsersSignInDataAuthenticationResponseStatus - String representation of subscriptionActive // PostUsersSignInDataAuthenticationResponseStatus - String representation of subscriptionActive
type PostUsersSignInDataAuthenticationResponseStatus string type PostUsersSignInDataAuthenticationResponseStatus string
@@ -1267,7 +1075,7 @@ type PostUsersSignInDataUserPlexAccount struct {
Locale *string `json:"locale"` Locale *string `json:"locale"`
// If you are subscribed to the Plex newsletter // If you are subscribed to the Plex newsletter
MailingListActive *bool `default:"false" json:"mailingListActive"` MailingListActive *bool `default:"false" json:"mailingListActive"`
// Your current mailing list status // Your current mailing list status (active or unsubscribed)
MailingListStatus PostUsersSignInDataMailingListStatus `json:"mailingListStatus"` MailingListStatus PostUsersSignInDataMailingListStatus `json:"mailingListStatus"`
// The maximum number of accounts allowed in the Plex Home // The maximum number of accounts allowed in the Plex Home
MaxHomeSize int `json:"maxHomeSize"` MaxHomeSize int `json:"maxHomeSize"`

25
plex.go
View File

@@ -1008,7 +1008,7 @@ func (s *Plex) GetHomeData(ctx context.Context, opts ...operations.Option) (*ope
// GetServerResources - Get Server Resources // GetServerResources - Get Server Resources
// Get Plex server access tokens and server connections // Get Plex server access tokens and server connections
func (s *Plex) GetServerResources(ctx context.Context, 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, clientID *string, opts ...operations.Option) (*operations.GetServerResourcesResponse, error) {
hookCtx := hooks.HookContext{ hookCtx := hooks.HookContext{
Context: ctx, Context: ctx,
OperationID: "get-server-resources", OperationID: "get-server-resources",
@@ -1020,6 +1020,11 @@ func (s *Plex) GetServerResources(ctx context.Context, includeHTTPS *operations.
IncludeHTTPS: includeHTTPS, IncludeHTTPS: includeHTTPS,
IncludeRelay: includeRelay, IncludeRelay: includeRelay,
IncludeIPv6: includeIPv6, IncludeIPv6: includeIPv6,
ClientID: clientID,
}
globals := operations.GetServerResourcesGlobals{
ClientID: s.sdkConfiguration.Globals.ClientID,
} }
o := operations.Options{} o := operations.Options{}
@@ -1063,7 +1068,7 @@ func (s *Plex) GetServerResources(ctx context.Context, includeHTTPS *operations.
req.Header.Set("Accept", "application/json") req.Header.Set("Accept", "application/json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil { if err := utils.PopulateQueryParams(ctx, req, request, globals); err != nil {
return nil, fmt.Errorf("error populating query params: %w", err) return nil, fmt.Errorf("error populating query params: %w", err)
} }
@@ -1497,7 +1502,7 @@ func (s *Plex) GetPin(ctx context.Context, request operations.GetPinRequest, opt
// GetTokenByPinID - Get Access Token by PinId // GetTokenByPinID - Get Access Token by PinId
// Retrieve an Access Token from Plex.tv after the Pin has been authenticated // Retrieve an Access Token from Plex.tv after the Pin has been authenticated
func (s *Plex) GetTokenByPinID(ctx context.Context, pinID int64, opts ...operations.Option) (*operations.GetTokenByPinIDResponse, error) { func (s *Plex) GetTokenByPinID(ctx context.Context, request operations.GetTokenByPinIDRequest, opts ...operations.Option) (*operations.GetTokenByPinIDResponse, error) {
hookCtx := hooks.HookContext{ hookCtx := hooks.HookContext{
Context: ctx, Context: ctx,
OperationID: "getTokenByPinId", OperationID: "getTokenByPinId",
@@ -1505,8 +1510,12 @@ func (s *Plex) GetTokenByPinID(ctx context.Context, pinID int64, opts ...operati
SecuritySource: nil, SecuritySource: nil,
} }
request := operations.GetTokenByPinIDRequest{ globals := operations.GetTokenByPinIDGlobals{
PinID: pinID, ClientID: s.sdkConfiguration.Globals.ClientID,
ClientName: s.sdkConfiguration.Globals.ClientName,
DeviceName: s.sdkConfiguration.Globals.DeviceName,
ClientVersion: s.sdkConfiguration.Globals.ClientVersion,
ClientPlatform: s.sdkConfiguration.Globals.ClientPlatform,
} }
o := operations.Options{} o := operations.Options{}
@@ -1527,7 +1536,7 @@ func (s *Plex) GetTokenByPinID(ctx context.Context, pinID int64, opts ...operati
baseURL = *o.ServerURL baseURL = *o.ServerURL
} }
opURL, err := utils.GenerateURL(ctx, baseURL, "/pins/{pinID}", request, nil) opURL, err := utils.GenerateURL(ctx, baseURL, "/pins/{pinID}", request, globals)
if err != nil { if err != nil {
return nil, fmt.Errorf("error generating URL: %w", err) return nil, fmt.Errorf("error generating URL: %w", err)
} }
@@ -1550,6 +1559,10 @@ func (s *Plex) GetTokenByPinID(ctx context.Context, pinID int64, opts ...operati
req.Header.Set("Accept", "application/json") req.Header.Set("Accept", "application/json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) 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 globalRetryConfig := s.sdkConfiguration.RetryConfig
retryConfig := o.Retries retryConfig := o.Retries
if retryConfig == nil { if retryConfig == nil {

View File

@@ -73,6 +73,30 @@ func (c *sdkConfiguration) GetServerDetails() (string, map[string]string) {
} }
// PlexAPI - Plex-API: An Open API Spec for interacting with Plex.tv and Plex Media Server // PlexAPI - Plex-API: An Open API Spec for interacting with Plex.tv and Plex Media Server
// # Plex Media Server OpenAPI Specification
//
// # An Open Source OpenAPI Specification for Plex Media Server
//
// Automation and SDKs provided by [Speakeasy](https://speakeasyapi.dev/)
//
// ## Documentation
//
// [API Documentation](https://plexapi.dev)
//
// ## SDKs
//
// The following SDKs are generated from the OpenAPI Specification. They are automatically generated and may not be fully tested. If you find any issues, please open an issue on the [main specification Repository](https://github.com/LukeHagar/plex-api-spec).
//
// | Language | Repository | Releases | Other |
// | --------------------- | ------------------------------------------------- | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------- |
// | Python | [GitHub](https://github.com/LukeHagar/plexpy) | [PyPI](https://pypi.org/project/plex-api-client/) | - |
// | JavaScript/TypeScript | [GitHub](https://github.com/LukeHagar/plexjs) | [NPM](https://www.npmjs.com/package/@lukehagar/plexjs) \ [JSR](https://jsr.io/@lukehagar/plexjs) | - |
// | Go | [GitHub](https://github.com/LukeHagar/plexgo) | [Releases](https://github.com/LukeHagar/plexgo/releases) | [GoDoc](https://pkg.go.dev/github.com/LukeHagar/plexgo) |
// | Ruby | [GitHub](https://github.com/LukeHagar/plexruby) | [Releases](https://github.com/LukeHagar/plexruby/releases) | - |
// | Swift | [GitHub](https://github.com/LukeHagar/plexswift) | [Releases](https://github.com/LukeHagar/plexswift/releases) | - |
// | PHP | [GitHub](https://github.com/LukeHagar/plexphp) | [Releases](https://github.com/LukeHagar/plexphp/releases) | - |
// | Java | [GitHub](https://github.com/LukeHagar/plexjava) | [Releases](https://github.com/LukeHagar/plexjava/releases) | - |
// | C# | [GitHub](https://github.com/LukeHagar/plexcsharp) | [Releases](https://github.com/LukeHagar/plexcsharp/releases) | -
type PlexAPI struct { type PlexAPI struct {
// Operations against the Plex Media Server System. // Operations against the Plex Media Server System.
// //
@@ -311,9 +335,9 @@ func New(opts ...SDKOption) *PlexAPI {
sdkConfiguration: sdkConfiguration{ sdkConfiguration: sdkConfiguration{
Language: "go", Language: "go",
OpenAPIDocVersion: "0.0.3", OpenAPIDocVersion: "0.0.3",
SDKVersion: "0.13.0", SDKVersion: "0.14.0",
GenVersion: "2.422.22", GenVersion: "2.428.1",
UserAgent: "speakeasy-sdk/go 0.13.0 2.422.22 0.0.3 github.com/LukeHagar/plexgo", UserAgent: "speakeasy-sdk/go 0.14.0 2.428.1 0.0.3 github.com/LukeHagar/plexgo",
Globals: globals.Globals{}, Globals: globals.Globals{},
ServerDefaults: []map[string]string{ ServerDefaults: []map[string]string{
{ {