mirror of
https://github.com/LukeHagar/plexgo.git
synced 2025-12-06 12:37:46 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d83bd96c5f |
@@ -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:
|
||||
|
||||
@@ -12,7 +12,7 @@ generation:
|
||||
auth:
|
||||
oAuth2ClientCredentialsEnabled: true
|
||||
go:
|
||||
version: 0.11.13
|
||||
version: 0.11.14
|
||||
additionalDependencies: {}
|
||||
allowUnknownFieldsInWeakUnions: false
|
||||
clientServerStatusCodesAsErrors: true
|
||||
|
||||
@@ -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
|
||||
|
||||
12
RELEASES.md
12
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 - .
|
||||
- [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 - .
|
||||
@@ -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 |
|
||||
|
||||
@@ -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 |
|
||||
|
||||
@@ -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 | {<br/>"code": "VI",<br/>"continent_code": "NA",<br/>"country": "United States Virgin Islands",<br/>"city": "Amsterdam",<br/>"european_union_member": true,<br/>"time_zone": "America/St_Thomas",<br/>"postal_code": 802,<br/>"in_privacy_restricted_country": true,<br/>"in_privacy_restricted_region": true,<br/>"subdivisions": "Saint Thomas",<br/>"coordinates": "18.3381, -64.8941"<br/>} |
|
||||
| `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 | |
|
||||
@@ -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 | {<br/>"code": "VI",<br/>"continent_code": "NA",<br/>"country": "United States Virgin Islands",<br/>"city": "Amsterdam",<br/>"european_union_member": true,<br/>"time_zone": "America/St_Thomas",<br/>"postal_code": 802,<br/>"in_privacy_restricted_country": true,<br/>"in_privacy_restricted_region": true,<br/>"subdivisions": "Saint Thomas",<br/>"coordinates": "18.3381, -64.8941"<br/>} |
|
||||
| `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 | |
|
||||
@@ -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 |
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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{
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user