diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 35a36a9..489fb2f 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: dfa99515-01c0-42eb-9be5-ee212fd03eb3 management: - docChecksum: 48a69156b6fa2af10cd43e971790441b + docChecksum: 1aad3e9216e8a6eb638f23d09b6c235a docVersion: 0.0.3 speakeasyVersion: 1.459.2 generationVersion: 2.483.1 - releaseVersion: 0.17.0 - configChecksum: fb22f5a3ef98ee90825c83f15f4d9021 + releaseVersion: 0.17.1 + configChecksum: 7f4e352650db300f3ccd207605895b27 repoURL: https://github.com/LukeHagar/plexgo.git repoSubDirectory: . installationURL: https://github.com/LukeHagar/plexgo diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 2a794e8..58acc1e 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -13,7 +13,7 @@ generation: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: false go: - version: 0.17.0 + version: 0.17.1 additionalDependencies: {} allowUnknownFieldsInWeakUnions: false clientServerStatusCodesAsErrors: true diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 40ced83..f66247e 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -9,19 +9,19 @@ sources: - main plexapi: sourceNamespace: plexapi - sourceRevisionDigest: sha256:ccba0c42f1644923e2209e28da7a78195a843e48da1aeaaedbf8759f1a8a0fe0 - sourceBlobDigest: sha256:b362c110ef633288220a55ab50627374b996c64f2d9b8e020944e84ea2840332 + sourceRevisionDigest: sha256:28e2213b78ff9c789846a4a0b7ab9fb219079a1699d44b22d28474efc4f48eac + sourceBlobDigest: sha256:fa76c39de0ff801844dd56a76c26ab6ca88695fc9b42bb9ff9a8aab5b2b21277 tags: - latest - - speakeasy-sdk-regen-1734739746 + - speakeasy-sdk-regen-1734912576 targets: plexgo: source: plexapi sourceNamespace: plexapi - sourceRevisionDigest: sha256:ccba0c42f1644923e2209e28da7a78195a843e48da1aeaaedbf8759f1a8a0fe0 - sourceBlobDigest: sha256:b362c110ef633288220a55ab50627374b996c64f2d9b8e020944e84ea2840332 + sourceRevisionDigest: sha256:28e2213b78ff9c789846a4a0b7ab9fb219079a1699d44b22d28474efc4f48eac + sourceBlobDigest: sha256:fa76c39de0ff801844dd56a76c26ab6ca88695fc9b42bb9ff9a8aab5b2b21277 codeSamplesNamespace: code-samples-go-plexgo - codeSamplesRevisionDigest: sha256:41f5625e2b9341f86b5070f1425b466d26339870e28947bc87cb7c3fb30a9177 + codeSamplesRevisionDigest: sha256:b5730b78047905ab5c8d646eef73df09888a3dcb4553fed2b6daa50fdd605891 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index 8818428..5445da5 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -982,4 +982,14 @@ Based on: ### Generated - [go v0.17.0] . ### Releases -- [Go v0.17.0] https://github.com/LukeHagar/plexgo/releases/tag/v0.17.0 - . \ No newline at end of file +- [Go v0.17.0] https://github.com/LukeHagar/plexgo/releases/tag/v0.17.0 - . + +## 2024-12-23 00:09:31 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.459.2 (2.483.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [go v0.17.1] . +### Releases +- [Go v0.17.1] https://github.com/LukeHagar/plexgo/releases/tag/v0.17.1 - . \ No newline at end of file diff --git a/docs/models/operations/getsessionsmetadata.md b/docs/models/operations/getsessionsmetadata.md index d47ced3..ccd28f2 100644 --- a/docs/models/operations/getsessionsmetadata.md +++ b/docs/models/operations/getsessionsmetadata.md @@ -3,42 +3,43 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `AddedAt` | **int* | :heavy_minus_sign: | N/A | 1705543312 | -| `Art` | **string* | :heavy_minus_sign: | N/A | /library/metadata/39904/art/1705310687 | -| `Duration` | **int* | :heavy_minus_sign: | N/A | 186240 | -| `GrandparentArt` | **string* | :heavy_minus_sign: | N/A | /library/metadata/39904/art/1705310687 | -| `GrandparentGUID` | **string* | :heavy_minus_sign: | N/A | plex://artist/5d07bbfd403c6402904a6480 | -| `GrandparentKey` | **string* | :heavy_minus_sign: | N/A | /library/metadata/39904 | -| `GrandparentRatingKey` | **string* | :heavy_minus_sign: | N/A | 39904 | -| `GrandparentThumb` | **string* | :heavy_minus_sign: | N/A | /library/metadata/39904/thumb/1705310687 | -| `GrandparentTitle` | **string* | :heavy_minus_sign: | N/A | Green Day | -| `GUID` | **string* | :heavy_minus_sign: | N/A | plex://track/6535834f71f22f36f71a8e8f | -| `Index` | **int* | :heavy_minus_sign: | N/A | 1 | -| `Key` | **string* | :heavy_minus_sign: | N/A | /library/metadata/67085 | -| `LibrarySectionID` | **string* | :heavy_minus_sign: | N/A | 3 | -| `LibrarySectionKey` | **string* | :heavy_minus_sign: | N/A | /library/sections/3 | -| `LibrarySectionTitle` | **string* | :heavy_minus_sign: | N/A | Music | -| `MusicAnalysisVersion` | **string* | :heavy_minus_sign: | N/A | 1 | -| `ParentGUID` | **string* | :heavy_minus_sign: | N/A | plex://album/65394d6d472b8ab03ef47f12 | -| `ParentIndex` | **int* | :heavy_minus_sign: | N/A | 1 | -| `ParentKey` | **string* | :heavy_minus_sign: | N/A | /library/metadata/67084 | -| `ParentRatingKey` | **string* | :heavy_minus_sign: | N/A | 67084 | -| `ParentStudio` | **string* | :heavy_minus_sign: | N/A | Reprise Records | -| `ParentThumb` | **string* | :heavy_minus_sign: | N/A | /library/metadata/67084/thumb/1705543314 | -| `ParentTitle` | **string* | :heavy_minus_sign: | N/A | Saviors | -| `ParentYear` | **int* | :heavy_minus_sign: | N/A | 2024 | -| `RatingCount` | **int* | :heavy_minus_sign: | N/A | 45885 | -| `RatingKey` | **string* | :heavy_minus_sign: | N/A | 67085 | -| `SessionKey` | **string* | :heavy_minus_sign: | N/A | 203 | -| `Thumb` | **string* | :heavy_minus_sign: | N/A | /library/metadata/67084/thumb/1705543314 | -| `Title` | **string* | :heavy_minus_sign: | N/A | The American Dream Is Killing Me | -| `TitleSort` | **string* | :heavy_minus_sign: | N/A | American Dream Is Killing Me | -| `Type` | **string* | :heavy_minus_sign: | N/A | track | -| `UpdatedAt` | **int* | :heavy_minus_sign: | N/A | 1705543314 | -| `ViewOffset` | **int* | :heavy_minus_sign: | N/A | 1000 | -| `Media` | [][operations.GetSessionsMedia](../../models/operations/getsessionsmedia.md) | :heavy_minus_sign: | N/A | | -| `User` | [*operations.GetSessionsUser](../../models/operations/getsessionsuser.md) | :heavy_minus_sign: | N/A | | -| `Player` | [*operations.Player](../../models/operations/player.md) | :heavy_minus_sign: | N/A | | -| `Session` | [*operations.Session](../../models/operations/session.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | +| `AddedAt` | **int* | :heavy_minus_sign: | N/A | 1705543312 | +| `Art` | **string* | :heavy_minus_sign: | N/A | /library/metadata/39904/art/1705310687 | +| `Duration` | **int* | :heavy_minus_sign: | N/A | 186240 | +| `GrandparentArt` | **string* | :heavy_minus_sign: | N/A | /library/metadata/39904/art/1705310687 | +| `GrandparentGUID` | **string* | :heavy_minus_sign: | N/A | plex://artist/5d07bbfd403c6402904a6480 | +| `GrandparentKey` | **string* | :heavy_minus_sign: | N/A | /library/metadata/39904 | +| `GrandparentRatingKey` | **string* | :heavy_minus_sign: | N/A | 39904 | +| `GrandparentThumb` | **string* | :heavy_minus_sign: | N/A | /library/metadata/39904/thumb/1705310687 | +| `GrandparentTitle` | **string* | :heavy_minus_sign: | N/A | Green Day | +| `GUID` | **string* | :heavy_minus_sign: | N/A | plex://track/6535834f71f22f36f71a8e8f | +| `Index` | **int* | :heavy_minus_sign: | N/A | 1 | +| `Key` | **string* | :heavy_minus_sign: | N/A | /library/metadata/67085 | +| `LibrarySectionID` | **string* | :heavy_minus_sign: | N/A | 3 | +| `LibrarySectionKey` | **string* | :heavy_minus_sign: | N/A | /library/sections/3 | +| `LibrarySectionTitle` | **string* | :heavy_minus_sign: | N/A | Music | +| `MusicAnalysisVersion` | **string* | :heavy_minus_sign: | N/A | 1 | +| `OriginalTitle` | **string* | :heavy_minus_sign: | The original untranslated name of the media item when non-english, or the track artist if an audio Item has an album artist | The American Dream Is Killing Me | +| `ParentGUID` | **string* | :heavy_minus_sign: | N/A | plex://album/65394d6d472b8ab03ef47f12 | +| `ParentIndex` | **int* | :heavy_minus_sign: | N/A | 1 | +| `ParentKey` | **string* | :heavy_minus_sign: | N/A | /library/metadata/67084 | +| `ParentRatingKey` | **string* | :heavy_minus_sign: | N/A | 67084 | +| `ParentStudio` | **string* | :heavy_minus_sign: | N/A | Reprise Records | +| `ParentThumb` | **string* | :heavy_minus_sign: | N/A | /library/metadata/67084/thumb/1705543314 | +| `ParentTitle` | **string* | :heavy_minus_sign: | N/A | Saviors | +| `ParentYear` | **int* | :heavy_minus_sign: | N/A | 2024 | +| `RatingCount` | **int* | :heavy_minus_sign: | N/A | 45885 | +| `RatingKey` | **string* | :heavy_minus_sign: | N/A | 67085 | +| `SessionKey` | **string* | :heavy_minus_sign: | N/A | 203 | +| `Thumb` | **string* | :heavy_minus_sign: | N/A | /library/metadata/67084/thumb/1705543314 | +| `Title` | **string* | :heavy_minus_sign: | N/A | The American Dream Is Killing Me | +| `TitleSort` | **string* | :heavy_minus_sign: | N/A | American Dream Is Killing Me | +| `Type` | **string* | :heavy_minus_sign: | N/A | track | +| `UpdatedAt` | **int* | :heavy_minus_sign: | N/A | 1705543314 | +| `ViewOffset` | **int* | :heavy_minus_sign: | N/A | 1000 | +| `Media` | [][operations.GetSessionsMedia](../../models/operations/getsessionsmedia.md) | :heavy_minus_sign: | N/A | | +| `User` | [*operations.GetSessionsUser](../../models/operations/getsessionsuser.md) | :heavy_minus_sign: | N/A | | +| `Player` | [*operations.Player](../../models/operations/player.md) | :heavy_minus_sign: | N/A | | +| `Session` | [*operations.Session](../../models/operations/session.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/models/operations/getsessions.go b/models/operations/getsessions.go index f719dd4..5846c6e 100644 --- a/models/operations/getsessions.go +++ b/models/operations/getsessions.go @@ -497,43 +497,45 @@ func (o *Session) GetLocation() *string { } type GetSessionsMetadata struct { - AddedAt *int `json:"addedAt,omitempty"` - Art *string `json:"art,omitempty"` - Duration *int `json:"duration,omitempty"` - GrandparentArt *string `json:"grandparentArt,omitempty"` - GrandparentGUID *string `json:"grandparentGuid,omitempty"` - GrandparentKey *string `json:"grandparentKey,omitempty"` - GrandparentRatingKey *string `json:"grandparentRatingKey,omitempty"` - GrandparentThumb *string `json:"grandparentThumb,omitempty"` - GrandparentTitle *string `json:"grandparentTitle,omitempty"` - GUID *string `json:"guid,omitempty"` - Index *int `json:"index,omitempty"` - Key *string `json:"key,omitempty"` - LibrarySectionID *string `json:"librarySectionID,omitempty"` - LibrarySectionKey *string `json:"librarySectionKey,omitempty"` - LibrarySectionTitle *string `json:"librarySectionTitle,omitempty"` - MusicAnalysisVersion *string `json:"musicAnalysisVersion,omitempty"` - ParentGUID *string `json:"parentGuid,omitempty"` - ParentIndex *int `json:"parentIndex,omitempty"` - ParentKey *string `json:"parentKey,omitempty"` - ParentRatingKey *string `json:"parentRatingKey,omitempty"` - ParentStudio *string `json:"parentStudio,omitempty"` - ParentThumb *string `json:"parentThumb,omitempty"` - ParentTitle *string `json:"parentTitle,omitempty"` - ParentYear *int `json:"parentYear,omitempty"` - RatingCount *int `json:"ratingCount,omitempty"` - RatingKey *string `json:"ratingKey,omitempty"` - SessionKey *string `json:"sessionKey,omitempty"` - Thumb *string `json:"thumb,omitempty"` - Title *string `json:"title,omitempty"` - TitleSort *string `json:"titleSort,omitempty"` - Type *string `json:"type,omitempty"` - UpdatedAt *int `json:"updatedAt,omitempty"` - ViewOffset *int `json:"viewOffset,omitempty"` - Media []GetSessionsMedia `json:"Media,omitempty"` - User *GetSessionsUser `json:"User,omitempty"` - Player *Player `json:"Player,omitempty"` - Session *Session `json:"Session,omitempty"` + AddedAt *int `json:"addedAt,omitempty"` + Art *string `json:"art,omitempty"` + Duration *int `json:"duration,omitempty"` + GrandparentArt *string `json:"grandparentArt,omitempty"` + GrandparentGUID *string `json:"grandparentGuid,omitempty"` + GrandparentKey *string `json:"grandparentKey,omitempty"` + GrandparentRatingKey *string `json:"grandparentRatingKey,omitempty"` + GrandparentThumb *string `json:"grandparentThumb,omitempty"` + GrandparentTitle *string `json:"grandparentTitle,omitempty"` + GUID *string `json:"guid,omitempty"` + Index *int `json:"index,omitempty"` + Key *string `json:"key,omitempty"` + LibrarySectionID *string `json:"librarySectionID,omitempty"` + LibrarySectionKey *string `json:"librarySectionKey,omitempty"` + LibrarySectionTitle *string `json:"librarySectionTitle,omitempty"` + MusicAnalysisVersion *string `json:"musicAnalysisVersion,omitempty"` + // The original untranslated name of the media item when non-english, or the track artist if an audio Item has an album artist + OriginalTitle *string `json:"originalTitle,omitempty"` + ParentGUID *string `json:"parentGuid,omitempty"` + ParentIndex *int `json:"parentIndex,omitempty"` + ParentKey *string `json:"parentKey,omitempty"` + ParentRatingKey *string `json:"parentRatingKey,omitempty"` + ParentStudio *string `json:"parentStudio,omitempty"` + ParentThumb *string `json:"parentThumb,omitempty"` + ParentTitle *string `json:"parentTitle,omitempty"` + ParentYear *int `json:"parentYear,omitempty"` + RatingCount *int `json:"ratingCount,omitempty"` + RatingKey *string `json:"ratingKey,omitempty"` + SessionKey *string `json:"sessionKey,omitempty"` + Thumb *string `json:"thumb,omitempty"` + Title *string `json:"title,omitempty"` + TitleSort *string `json:"titleSort,omitempty"` + Type *string `json:"type,omitempty"` + UpdatedAt *int `json:"updatedAt,omitempty"` + ViewOffset *int `json:"viewOffset,omitempty"` + Media []GetSessionsMedia `json:"Media,omitempty"` + User *GetSessionsUser `json:"User,omitempty"` + Player *Player `json:"Player,omitempty"` + Session *Session `json:"Session,omitempty"` } func (o *GetSessionsMetadata) GetAddedAt() *int { @@ -648,6 +650,13 @@ func (o *GetSessionsMetadata) GetMusicAnalysisVersion() *string { return o.MusicAnalysisVersion } +func (o *GetSessionsMetadata) GetOriginalTitle() *string { + if o == nil { + return nil + } + return o.OriginalTitle +} + func (o *GetSessionsMetadata) GetParentGUID() *string { if o == nil { return nil diff --git a/plexapi.go b/plexapi.go index d77f955..21c9d8b 100644 --- a/plexapi.go +++ b/plexapi.go @@ -298,9 +298,9 @@ func New(opts ...SDKOption) *PlexAPI { sdkConfiguration: sdkConfiguration{ Language: "go", OpenAPIDocVersion: "0.0.3", - SDKVersion: "0.17.0", + SDKVersion: "0.17.1", GenVersion: "2.483.1", - UserAgent: "speakeasy-sdk/go 0.17.0 2.483.1 0.0.3 github.com/LukeHagar/plexgo", + UserAgent: "speakeasy-sdk/go 0.17.1 2.483.1 0.0.3 github.com/LukeHagar/plexgo", ServerDefaults: []map[string]string{ { "protocol": "https",