From d83bd96c5ff5e3421198ade5e5f29cd479eb782f Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 19 Sep 2024 00:11:05 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.399.2 --- .speakeasy/gen.lock | 10 +++++----- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 10 +++++----- RELEASES.md | 12 +++++++++++- docs/models/operations/geodata.md | 2 +- docs/models/operations/getgeodatageodata.md | 2 +- docs/models/operations/getpinauthpincontainer.md | 6 +++--- .../operations/gettokenbypinidauthpincontainer.md | 6 +++--- docs/models/operations/gettokenbypinidgeodata.md | 2 +- models/operations/getgeodata.go | 6 +++--- models/operations/getpin.go | 10 +++++----- models/operations/gettokenbypinid.go | 10 +++++----- plexapi.go | 4 ++-- 13 files changed, 46 insertions(+), 36 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index c151f96..265df36 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: a757575c783823ab21aa7a1dfc782bcb + docChecksum: 5bf578a672589649d8ed83c3927c50a6 docVersion: 0.0.3 speakeasyVersion: 1.399.2 generationVersion: 2.416.6 - releaseVersion: 0.11.13 - configChecksum: ef7a6b8f48a1091558ca14f5b3856bcf + releaseVersion: 0.11.14 + configChecksum: bbc7c332f52b85ec1508e1a03c081474 repoURL: https://github.com/LukeHagar/plexgo.git repoSubDirectory: . installationURL: https://github.com/LukeHagar/plexgo @@ -1217,7 +1217,7 @@ examples: speakeasy-default-get-geo-data: responses: "200": - application/json: {"code": "VI", "continent_code": "NA", "country": "United States Virgin Islands", "city": "Amsterdam", "european_union_member": true, "time_zone": "America/St_Thomas", "postal_code": 802, "in_privacy_restricted_country": true, "in_privacy_restricted_region": true, "subdivisions": "Saint Thomas", "coordinates": "18.3381, -64.8941"} + application/json: {"code": "VI", "continent_code": "NA", "country": "United States Virgin Islands", "city": "Amsterdam", "european_union_member": true, "time_zone": "America/St_Thomas", "postal_code": "802", "in_privacy_restricted_country": true, "in_privacy_restricted_region": true, "subdivisions": "Saint Thomas", "coordinates": "18.3381, -64.8941"} "400": application/json: {"errors": []} "401": @@ -1260,7 +1260,7 @@ examples: "400": application/json: {"errors": []} "201": - application/json: {"id": 308667304, "code": "7RQZ", "product": "0", "trusted": false, "qr": "https://plex.tv/api/v2/pins/qr/7RQZ", "clientIdentifier": "string", "location": {"code": "VI", "continent_code": "NA", "country": "United States Virgin Islands", "city": "Amsterdam", "european_union_member": true, "time_zone": "America/St_Thomas", "postal_code": 802, "in_privacy_restricted_country": true, "in_privacy_restricted_region": true, "subdivisions": "Saint Thomas", "coordinates": "18.3381, -64.8941"}, "expiresIn": 876, "createdAt": "2024-07-16T17:03:05Z", "expiresAt": "2024-07-16T17:18:05Z", "authToken": null, "newRegistration": null} + application/json: {"id": 308667304, "code": "7RQZ", "product": "0", "trusted": false, "qr": "https://plex.tv/api/v2/pins/qr/7RQZ", "clientIdentifier": "string", "location": {"code": "VI", "continent_code": "NA", "country": "United States Virgin Islands", "city": "Amsterdam", "european_union_member": true, "time_zone": "America/St_Thomas", "postal_code": "802", "in_privacy_restricted_country": true, "in_privacy_restricted_region": true, "subdivisions": "Saint Thomas", "coordinates": "18.3381, -64.8941"}, "expiresIn": 876, "createdAt": "2024-07-16T17:03:05Z", "expiresAt": "2024-07-16T17:18:05Z", "authToken": null, "newRegistration": null} getTokenByPinId: "": parameters: diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 5093857..aae2cb1 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: true go: - version: 0.11.13 + version: 0.11.14 additionalDependencies: {} allowUnknownFieldsInWeakUnions: false clientServerStatusCodesAsErrors: true diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 6b67bb7..fe42400 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -9,8 +9,8 @@ sources: - main plexapi: sourceNamespace: plexapi - sourceRevisionDigest: sha256:cee947333ac1c914de35d95bfb02d52876957ac3842c793e5bd0a0ccf1cf93eb - sourceBlobDigest: sha256:27e5df6f83cb96ca504026d95b21de303f6de81f92872dc3cc4bb72c8dd26aa7 + sourceRevisionDigest: sha256:327e4a83099f910e042784ecc571fcbc4c9a6d8ba169b4ba181afb890a9936cc + sourceBlobDigest: sha256:a652fa39754f0c22a1454f628fe84983b34662ee8a153a3461d50b833f8bc5c2 tags: - latest - main @@ -18,10 +18,10 @@ targets: plexgo: source: plexapi sourceNamespace: plexapi - sourceRevisionDigest: sha256:cee947333ac1c914de35d95bfb02d52876957ac3842c793e5bd0a0ccf1cf93eb - sourceBlobDigest: sha256:27e5df6f83cb96ca504026d95b21de303f6de81f92872dc3cc4bb72c8dd26aa7 + sourceRevisionDigest: sha256:327e4a83099f910e042784ecc571fcbc4c9a6d8ba169b4ba181afb890a9936cc + sourceBlobDigest: sha256:a652fa39754f0c22a1454f628fe84983b34662ee8a153a3461d50b833f8bc5c2 codeSamplesNamespace: code-samples-go-plexgo - codeSamplesRevisionDigest: sha256:3572a5f200b22bf708c3346c67d141eb297ec73de2d1c3a2a0866c1eb62fb4c5 + codeSamplesRevisionDigest: sha256:4c8c0f04287fab8c7e38d97036bd7445df35a0428b0be13df8fc4f642e87b0ca workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index d04e000..93545dc 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -882,4 +882,14 @@ Based on: ### Generated - [go v0.11.13] . ### Releases -- [Go v0.11.13] https://github.com/LukeHagar/plexgo/releases/tag/v0.11.13 - . \ No newline at end of file +- [Go v0.11.13] https://github.com/LukeHagar/plexgo/releases/tag/v0.11.13 - . + +## 2024-09-19 00:08:52 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.399.2 (2.416.6) https://github.com/speakeasy-api/speakeasy +### Generated +- [go v0.11.14] . +### Releases +- [Go v0.11.14] https://github.com/LukeHagar/plexgo/releases/tag/v0.11.14 - . \ No newline at end of file diff --git a/docs/models/operations/geodata.md b/docs/models/operations/geodata.md index 39fe611..2332026 100644 --- a/docs/models/operations/geodata.md +++ b/docs/models/operations/geodata.md @@ -13,7 +13,7 @@ Geo location data | `City` | *string* | :heavy_check_mark: | The name of the city. | Amsterdam | | `EuropeanUnionMember` | **bool* | :heavy_minus_sign: | Indicates if the country is a member of the European Union. | true | | `TimeZone` | *string* | :heavy_check_mark: | The time zone of the country. | America/St_Thomas | -| `PostalCode` | *int64* | :heavy_check_mark: | The postal code of the location. | 802 | +| `PostalCode` | *string* | :heavy_check_mark: | The postal code of the location. | 802 | | `InPrivacyRestrictedCountry` | **bool* | :heavy_minus_sign: | Indicates if the country has privacy restrictions. | true | | `InPrivacyRestrictedRegion` | **bool* | :heavy_minus_sign: | Indicates if the region has privacy restrictions. | true | | `Subdivisions` | *string* | :heavy_check_mark: | The name of the primary administrative subdivision. | Saint Thomas | diff --git a/docs/models/operations/getgeodatageodata.md b/docs/models/operations/getgeodatageodata.md index 3917e8f..51020b9 100644 --- a/docs/models/operations/getgeodatageodata.md +++ b/docs/models/operations/getgeodatageodata.md @@ -13,7 +13,7 @@ Geo location data | `City` | *string* | :heavy_check_mark: | The name of the city. | Amsterdam | | `EuropeanUnionMember` | **bool* | :heavy_minus_sign: | Indicates if the country is a member of the European Union. | true | | `TimeZone` | *string* | :heavy_check_mark: | The time zone of the country. | America/St_Thomas | -| `PostalCode` | *int64* | :heavy_check_mark: | The postal code of the location. | 802 | +| `PostalCode` | *string* | :heavy_check_mark: | The postal code of the location. | 802 | | `InPrivacyRestrictedCountry` | **bool* | :heavy_minus_sign: | Indicates if the country has privacy restrictions. | true | | `InPrivacyRestrictedRegion` | **bool* | :heavy_minus_sign: | Indicates if the region has privacy restrictions. | true | | `Subdivisions` | *string* | :heavy_check_mark: | The name of the primary administrative subdivision. | Saint Thomas | diff --git a/docs/models/operations/getpinauthpincontainer.md b/docs/models/operations/getpinauthpincontainer.md index 88bd2aa..aec6127 100644 --- a/docs/models/operations/getpinauthpincontainer.md +++ b/docs/models/operations/getpinauthpincontainer.md @@ -9,13 +9,13 @@ Requests a new pin id used in the authentication flow | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ID` | *int64* | :heavy_check_mark: | N/A | 308667304 | | `Code` | *string* | :heavy_check_mark: | N/A | 7RQZ | -| `Product` | *string* | :heavy_check_mark: | N/A | 0 | +| `Product` | *string* | :heavy_check_mark: | N/A | Tautulli | | `Trusted` | **bool* | :heavy_minus_sign: | N/A | | | `Qr` | *string* | :heavy_check_mark: | N/A | https://plex.tv/api/v2/pins/qr/7RQZ | -| `ClientIdentifier` | *string* | :heavy_check_mark: | The X-Client-Identifier used in the request | | +| `ClientIdentifier` | *string* | :heavy_check_mark: | The X-Client-Identifier used in the request | Tautulli | | `Location` | [operations.GeoData](../../models/operations/geodata.md) | :heavy_check_mark: | Geo location data | {
"code": "VI",
"continent_code": "NA",
"country": "United States Virgin Islands",
"city": "Amsterdam",
"european_union_member": true,
"time_zone": "America/St_Thomas",
"postal_code": 802,
"in_privacy_restricted_country": true,
"in_privacy_restricted_region": true,
"subdivisions": "Saint Thomas",
"coordinates": "18.3381, -64.8941"
} | | `ExpiresIn` | **int64* | :heavy_minus_sign: | The number of seconds this pin expires, by default 900 seconds | 876 | | `CreatedAt` | [time.Time](https://pkg.go.dev/time#Time) | :heavy_check_mark: | N/A | 2024-07-16T17:03:05Z | | `ExpiresAt` | [time.Time](https://pkg.go.dev/time#Time) | :heavy_check_mark: | N/A | 2024-07-16T17:18:05Z | -| `AuthToken` | *any* | :heavy_minus_sign: | N/A | | +| `AuthToken` | **string* | :heavy_minus_sign: | N/A | gcgzw5rz2xovp84b4vha3a40 | | `NewRegistration` | *any* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/gettokenbypinidauthpincontainer.md b/docs/models/operations/gettokenbypinidauthpincontainer.md index 5f7cfde..9ae2d32 100644 --- a/docs/models/operations/gettokenbypinidauthpincontainer.md +++ b/docs/models/operations/gettokenbypinidauthpincontainer.md @@ -9,13 +9,13 @@ The Pin with a non-null authToken when it has been verified by the user | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ID` | *int64* | :heavy_check_mark: | N/A | 308667304 | | `Code` | *string* | :heavy_check_mark: | N/A | 7RQZ | -| `Product` | *string* | :heavy_check_mark: | N/A | 0 | +| `Product` | *string* | :heavy_check_mark: | N/A | Tautulli | | `Trusted` | **bool* | :heavy_minus_sign: | N/A | | | `Qr` | *string* | :heavy_check_mark: | N/A | https://plex.tv/api/v2/pins/qr/7RQZ | -| `ClientIdentifier` | *string* | :heavy_check_mark: | The X-Client-Identifier used in the request | | +| `ClientIdentifier` | *string* | :heavy_check_mark: | The X-Client-Identifier used in the request | Tautulli | | `Location` | [operations.GetTokenByPinIDGeoData](../../models/operations/gettokenbypinidgeodata.md) | :heavy_check_mark: | Geo location data | {
"code": "VI",
"continent_code": "NA",
"country": "United States Virgin Islands",
"city": "Amsterdam",
"european_union_member": true,
"time_zone": "America/St_Thomas",
"postal_code": 802,
"in_privacy_restricted_country": true,
"in_privacy_restricted_region": true,
"subdivisions": "Saint Thomas",
"coordinates": "18.3381, -64.8941"
} | | `ExpiresIn` | **int64* | :heavy_minus_sign: | The number of seconds this pin expires, by default 900 seconds | 876 | | `CreatedAt` | [time.Time](https://pkg.go.dev/time#Time) | :heavy_check_mark: | N/A | 2024-07-16T17:03:05Z | | `ExpiresAt` | [time.Time](https://pkg.go.dev/time#Time) | :heavy_check_mark: | N/A | 2024-07-16T17:18:05Z | -| `AuthToken` | *any* | :heavy_minus_sign: | N/A | | +| `AuthToken` | **string* | :heavy_minus_sign: | N/A | gcgzw5rz2xovp84b4vha3a40 | | `NewRegistration` | *any* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/gettokenbypinidgeodata.md b/docs/models/operations/gettokenbypinidgeodata.md index 29fade7..08d1980 100644 --- a/docs/models/operations/gettokenbypinidgeodata.md +++ b/docs/models/operations/gettokenbypinidgeodata.md @@ -13,7 +13,7 @@ Geo location data | `City` | *string* | :heavy_check_mark: | The name of the city. | Amsterdam | | `EuropeanUnionMember` | **bool* | :heavy_minus_sign: | Indicates if the country is a member of the European Union. | true | | `TimeZone` | *string* | :heavy_check_mark: | The time zone of the country. | America/St_Thomas | -| `PostalCode` | *int64* | :heavy_check_mark: | The postal code of the location. | 802 | +| `PostalCode` | *string* | :heavy_check_mark: | The postal code of the location. | 802 | | `InPrivacyRestrictedCountry` | **bool* | :heavy_minus_sign: | Indicates if the country has privacy restrictions. | true | | `InPrivacyRestrictedRegion` | **bool* | :heavy_minus_sign: | Indicates if the region has privacy restrictions. | true | | `Subdivisions` | *string* | :heavy_check_mark: | The name of the primary administrative subdivision. | Saint Thomas | diff --git a/models/operations/getgeodata.go b/models/operations/getgeodata.go index c7af2aa..93a48ed 100644 --- a/models/operations/getgeodata.go +++ b/models/operations/getgeodata.go @@ -26,7 +26,7 @@ type GetGeoDataGeoData struct { // The time zone of the country. TimeZone string `json:"time_zone"` // The postal code of the location. - PostalCode int64 `json:"postal_code"` + PostalCode string `json:"postal_code"` // Indicates if the country has privacy restrictions. InPrivacyRestrictedCountry *bool `default:"false" json:"in_privacy_restricted_country"` // Indicates if the region has privacy restrictions. @@ -90,9 +90,9 @@ func (o *GetGeoDataGeoData) GetTimeZone() string { return o.TimeZone } -func (o *GetGeoDataGeoData) GetPostalCode() int64 { +func (o *GetGeoDataGeoData) GetPostalCode() string { if o == nil { - return 0 + return "" } return o.PostalCode } diff --git a/models/operations/getpin.go b/models/operations/getpin.go index ee4ebb8..878a16f 100644 --- a/models/operations/getpin.go +++ b/models/operations/getpin.go @@ -144,7 +144,7 @@ type GeoData struct { // The time zone of the country. TimeZone string `json:"time_zone"` // The postal code of the location. - PostalCode int64 `json:"postal_code"` + PostalCode string `json:"postal_code"` // Indicates if the country has privacy restrictions. InPrivacyRestrictedCountry *bool `default:"false" json:"in_privacy_restricted_country"` // Indicates if the region has privacy restrictions. @@ -208,9 +208,9 @@ func (o *GeoData) GetTimeZone() string { return o.TimeZone } -func (o *GeoData) GetPostalCode() int64 { +func (o *GeoData) GetPostalCode() string { if o == nil { - return 0 + return "" } return o.PostalCode } @@ -258,7 +258,7 @@ type GetPinAuthPinContainer struct { ExpiresIn *int64 `default:"900" json:"expiresIn"` CreatedAt time.Time `json:"createdAt"` ExpiresAt time.Time `json:"expiresAt"` - AuthToken any `json:"authToken,omitempty"` + AuthToken *string `json:"authToken,omitempty"` NewRegistration any `json:"newRegistration,omitempty"` } @@ -343,7 +343,7 @@ func (o *GetPinAuthPinContainer) GetExpiresAt() time.Time { return o.ExpiresAt } -func (o *GetPinAuthPinContainer) GetAuthToken() any { +func (o *GetPinAuthPinContainer) GetAuthToken() *string { if o == nil { return nil } diff --git a/models/operations/gettokenbypinid.go b/models/operations/gettokenbypinid.go index d711c83..d0b7d30 100644 --- a/models/operations/gettokenbypinid.go +++ b/models/operations/gettokenbypinid.go @@ -66,7 +66,7 @@ type GetTokenByPinIDGeoData struct { // The time zone of the country. TimeZone string `json:"time_zone"` // The postal code of the location. - PostalCode int64 `json:"postal_code"` + PostalCode string `json:"postal_code"` // Indicates if the country has privacy restrictions. InPrivacyRestrictedCountry *bool `default:"false" json:"in_privacy_restricted_country"` // Indicates if the region has privacy restrictions. @@ -130,9 +130,9 @@ func (o *GetTokenByPinIDGeoData) GetTimeZone() string { return o.TimeZone } -func (o *GetTokenByPinIDGeoData) GetPostalCode() int64 { +func (o *GetTokenByPinIDGeoData) GetPostalCode() string { if o == nil { - return 0 + return "" } return o.PostalCode } @@ -180,7 +180,7 @@ type GetTokenByPinIDAuthPinContainer struct { ExpiresIn *int64 `default:"900" json:"expiresIn"` CreatedAt time.Time `json:"createdAt"` ExpiresAt time.Time `json:"expiresAt"` - AuthToken any `json:"authToken,omitempty"` + AuthToken *string `json:"authToken,omitempty"` NewRegistration any `json:"newRegistration,omitempty"` } @@ -265,7 +265,7 @@ func (o *GetTokenByPinIDAuthPinContainer) GetExpiresAt() time.Time { return o.ExpiresAt } -func (o *GetTokenByPinIDAuthPinContainer) GetAuthToken() any { +func (o *GetTokenByPinIDAuthPinContainer) GetAuthToken() *string { if o == nil { return nil } diff --git a/plexapi.go b/plexapi.go index 8e7193d..6ab0cfc 100644 --- a/plexapi.go +++ b/plexapi.go @@ -311,9 +311,9 @@ func New(opts ...SDKOption) *PlexAPI { sdkConfiguration: sdkConfiguration{ Language: "go", OpenAPIDocVersion: "0.0.3", - SDKVersion: "0.11.13", + SDKVersion: "0.11.14", GenVersion: "2.416.6", - UserAgent: "speakeasy-sdk/go 0.11.13 2.416.6 0.0.3 github.com/LukeHagar/plexgo", + UserAgent: "speakeasy-sdk/go 0.11.14 2.416.6 0.0.3 github.com/LukeHagar/plexgo", Globals: globals.Globals{}, ServerDefaults: []map[string]string{ {