ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.399.2

This commit is contained in:
speakeasybot
2024-09-19 00:09:01 +00:00
parent aa386ef9c9
commit ce6a7c2ddc
23 changed files with 995 additions and 906 deletions

View File

@@ -1,12 +1,12 @@
lockVersion: 2.0.0 lockVersion: 2.0.0
id: 5d77204e-e413-4fd0-a14a-bad3aee2247a id: 5d77204e-e413-4fd0-a14a-bad3aee2247a
management: management:
docChecksum: a6fee1797b2da7ccbaf7743772a40b56 docChecksum: 5bf578a672589649d8ed83c3927c50a6
docVersion: 0.0.3 docVersion: 0.0.3
speakeasyVersion: 1.399.0 speakeasyVersion: 1.399.2
generationVersion: 2.415.8 generationVersion: 2.416.6
releaseVersion: 0.6.2 releaseVersion: 0.6.3
configChecksum: a567cf3757451b3f535919ede5d4d2f5 configChecksum: 2c841260186552c7e56b0c2f58acf626
repoURL: https://github.com/LukeHagar/plexswift.git repoURL: https://github.com/LukeHagar/plexswift.git
features: features:
swift: swift:
@@ -1340,7 +1340,7 @@ examples:
european_union_member: true european_union_member: true
in_privacy_restricted_country: true in_privacy_restricted_country: true
in_privacy_restricted_region: true in_privacy_restricted_region: true
postal_code: 802 postal_code: "802"
subdivisions: Saint Thomas subdivisions: Saint Thomas
time_zone: America/St_Thomas time_zone: America/St_Thomas
"400": "400":
@@ -1579,7 +1579,10 @@ examples:
"": "":
parameters: parameters:
query: query:
X-Plex-Device: Linux
X-Plex-Platform: Chrome
X-Plex-Product: Plex Web X-Plex-Product: Plex Web
X-Plex-Version: 4.133.0
responses: responses:
"200": "200":
application/json: application/json:
@@ -1606,6 +1609,31 @@ examples:
product: "0" product: "0"
qr: https://plex.tv/api/v2/pins/qr/7RQZ qr: https://plex.tv/api/v2/pins/qr/7RQZ
trusted: false trusted: false
"201":
application/json:
authToken: null
clientIdentifier: string
code: 7RQZ
createdAt: "2024-07-16T17:03:05Z"
expiresAt: "2024-07-16T17:18:05Z"
expiresIn: 876
id: 308667304
location:
city: Amsterdam
code: VI
continent_code: NA
coordinates: 18.3381, -64.8941
country: United States Virgin Islands
european_union_member: true
in_privacy_restricted_country: true
in_privacy_restricted_region: true
postal_code: "802"
subdivisions: Saint Thomas
time_zone: America/St_Thomas
newRegistration: null
product: "0"
qr: https://plex.tv/api/v2/pins/qr/7RQZ
trusted: false
"400": "400":
application/json: application/json:
errors: [] errors: []
@@ -1691,7 +1719,7 @@ examples:
speakeasy-default-get-resized-photo: speakeasy-default-get-resized-photo:
parameters: parameters:
query: query:
blur: 4000 blur: 20
height: 165 height: 165
minSize: 0 minSize: 0
opacity: 643869 opacity: 643869

View File

@@ -12,7 +12,7 @@ generation:
auth: auth:
oAuth2ClientCredentialsEnabled: true oAuth2ClientCredentialsEnabled: true
swift: swift:
version: 0.6.2 version: 0.6.3
author: LukeHagar author: LukeHagar
description: Swift Client SDK Generated by Speakeasy description: Swift Client SDK Generated by Speakeasy
imports: imports:

View File

@@ -11,7 +11,7 @@ targets:
plexswift: plexswift:
source: plexapi source: plexapi
codeSamplesNamespace: code-samples-swift-plexswift codeSamplesNamespace: code-samples-swift-plexswift
codeSamplesRevisionDigest: sha256:374424e9ecd0976753f67b804f9093838b158cd0f498b0441fc412ab1a95330b codeSamplesRevisionDigest: sha256:3ba1ba57d33e6d01dcd46d8e2c0fd0be82164b37e769016a64a09cf96bfaca60
outLocation: /github/workspace/repo outLocation: /github/workspace/repo
workflow: workflow:
workflowVersion: 1.0.0 workflowVersion: 1.0.0

View File

@@ -38,7 +38,7 @@ You can add `plexswift` to your project directly in Xcode `(File > Add Packages.
```bash ```bash
dependencies: [ dependencies: [
.package(url: "https://github.com/LukeHagar/plexswift.git", .upToNextMajor(from: "0.6.2")) .package(url: "https://github.com/LukeHagar/plexswift.git", .upToNextMajor(from: "0.6.3"))
] ]
``` ```
<!-- End SDK Installation [installation] --> <!-- End SDK Installation [installation] -->
@@ -248,21 +248,25 @@ case .empty:
<!-- Start Global Parameters [global-parameters] --> <!-- Start Global Parameters [global-parameters] -->
## Global Parameters ## Global Parameters
A parameter is configured globally. This parameter may be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, This global value will be used as the default on the operations that use it. 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 `X-Plex-Client-Identifier` to `"gcgzw5rz2xovp84b4vha3a40"` at SDK initialization and then you do not have to pass the same value on calls to operations like `getServerResources`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration. For example, you can set `ClientID` to `"gcgzw5rz2xovp84b4vha3a40"` at SDK initialization and then you do not have to pass the same value on calls to operations like `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
The following global parameter is available. The following global parameters are available.
| Name | Type | Required | Description | | Name | Type | Required | Description |
| ---- | ---- |:--------:| ----------- | | ---- | ---- |:--------:| ----------- |
| xPlexClientIdentifier | 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 This is used to track the client application and its usage
(UUID, serial number, or other number unique per device) (UUID, serial number, or other number unique per device)
| |
| clientName | String | | The clientName parameter. |
| clientVersion | String | | The clientVersion parameter. |
| clientPlatform | String | | The clientPlatform parameter. |
| deviceName | String | | The deviceName parameter. |
### Example ### Example
@@ -277,7 +281,7 @@ let response = try await client.plex.getServerResources(
request: Operations.GetServerResourcesRequest( request: Operations.GetServerResourcesRequest(
includeHttps: .one, includeHttps: .one,
includeIPv6: .one, includeIPv6: .one,
includeRelay: .one, includeRelay: .one
) )
) )

View File

@@ -602,4 +602,14 @@ Based on:
### Generated ### Generated
- [swift v0.6.2] . - [swift v0.6.2] .
### Releases ### Releases
- [Swift Package Manager v0.6.2] https://github.com/LukeHagar/plexswift/releases/tag/v0.6.2 - . - [Swift Package Manager v0.6.2] https://github.com/LukeHagar/plexswift/releases/tag/v0.6.2 - .
## 2024-09-19 00:07:44
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.399.2 (2.416.6) https://github.com/speakeasy-api/speakeasy
### Generated
- [swift v0.6.3] .
### Releases
- [Swift Package Manager v0.6.3] https://github.com/LukeHagar/plexswift/releases/tag/v0.6.3 - .

View File

@@ -6,19 +6,31 @@ import Foundation
/// ///
/// > Note: These parameters may be overridden by individual API operations /// > Note: These parameters may be overridden by individual API operations
public struct GlobalParameters { public struct GlobalParameters {
public let xPlexClientIdentifier: String? public let clientID: String?
public let clientName: String?
public let clientVersion: String?
public let clientPlatform: String?
public let deviceName: String?
/// Creates an object with the given parameters /// Creates an object with the given parameters
/// ///
/// - Parameter xPlexClientIdentifier: The unique identifier for the client application /// - Parameter clientID: The unique identifier for the client application
/// This is used to track the client application and its usage /// This is used to track the client application and its usage
/// (UUID, serial number, or other number unique per device) /// (UUID, serial number, or other number unique per device)
/// ///
/// ///
public init( public init(
xPlexClientIdentifier: String? = nil clientID: String? = nil,
clientName: String? = nil,
clientVersion: String? = nil,
clientPlatform: String? = nil,
deviceName: String? = nil
) { ) {
self.xPlexClientIdentifier = xPlexClientIdentifier self.clientID = clientID
self.clientName = clientName
self.clientVersion = clientVersion
self.clientPlatform = clientPlatform
self.deviceName = deviceName
} }
} }
@@ -31,7 +43,11 @@ extension GlobalParameters: ParameterDefaults {
public func defaultQueryParameter(for key: String) -> AnyValue? { public func defaultQueryParameter(for key: String) -> AnyValue? {
switch key { switch key {
case "X-Plex-Client-Identifier": return xPlexClientIdentifier.map { AnyValue($0) } case "ClientID": return clientID.map { AnyValue($0) }
case "ClientName": return clientName.map { AnyValue($0) }
case "ClientVersion": return clientVersion.map { AnyValue($0) }
case "ClientPlatform": return clientPlatform.map { AnyValue($0) }
case "DeviceName": return deviceName.map { AnyValue($0) }
default: return nil default: return nil
} }
} }

View File

@@ -294,7 +294,7 @@ private func handleGetServerResourcesResponse(response: Client.APIResponse) thro
private func handleGetPinResponse(response: Client.APIResponse) throws -> Operations.GetPinResponse { private func handleGetPinResponse(response: Client.APIResponse) throws -> Operations.GetPinResponse {
let httpResponse = response.httpResponse let httpResponse = response.httpResponse
if httpResponse.statusCode == 200 { if httpResponse.statusCode == 201 {
if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data {
do { do {
return .authPinContainer(try JSONDecoder().decode(Operations.GetPinAuthPinContainer.self, from: data)) return .authPinContainer(try JSONDecoder().decode(Operations.GetPinAuthPinContainer.self, from: data))

View File

@@ -21,9 +21,12 @@ extension Operations.GetPinRequest: Serializable {
extension Operations.GetPinRequest: QueryParameterSerializable { extension Operations.GetPinRequest: QueryParameterSerializable {
func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] {
let builder = QueryParameterBuilder() let builder = QueryParameterBuilder()
try builder.addQueryParameters(from: clientID, named: "X-Plex-Client-Identifier", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults)
try builder.addQueryParameters(from: clientName, named: "X-Plex-Product", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults)
try builder.addQueryParameters(from: clientPlatform, named: "X-Plex-Platform", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults)
try builder.addQueryParameters(from: clientVersion, named: "X-Plex-Version", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults)
try builder.addQueryParameters(from: deviceName, named: "X-Plex-Device", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults)
try builder.addQueryParameters(from: strong, named: "strong", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) try builder.addQueryParameters(from: strong, named: "strong", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults)
try builder.addQueryParameters(from: xPlexClientIdentifier, named: "X-Plex-Client-Identifier", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults)
try builder.addQueryParameters(from: xPlexProduct, named: "X-Plex-Product", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults)
return builder.build() return builder.build()
} }
} }

View File

@@ -21,10 +21,10 @@ extension Operations.GetServerResourcesRequest: Serializable {
extension Operations.GetServerResourcesRequest: QueryParameterSerializable { extension Operations.GetServerResourcesRequest: QueryParameterSerializable {
func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] {
let builder = QueryParameterBuilder() let builder = QueryParameterBuilder()
try builder.addQueryParameters(from: clientID, named: "X-Plex-Client-Identifier", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults)
try builder.addQueryParameters(from: includeHttps, named: "includeHttps", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) try builder.addQueryParameters(from: includeHttps, named: "includeHttps", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults)
try builder.addQueryParameters(from: includeIPv6, named: "includeIPv6", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) try builder.addQueryParameters(from: includeIPv6, named: "includeIPv6", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults)
try builder.addQueryParameters(from: includeRelay, named: "includeRelay", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) try builder.addQueryParameters(from: includeRelay, named: "includeRelay", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults)
try builder.addQueryParameters(from: xPlexClientIdentifier, named: "X-Plex-Client-Identifier", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults)
return builder.build() return builder.build()
} }
} }

View File

@@ -31,7 +31,7 @@ extension Operations.GetTokenByPinIdRequest: PathParameterSerializable {
extension Operations.GetTokenByPinIdRequest: QueryParameterSerializable { extension Operations.GetTokenByPinIdRequest: QueryParameterSerializable {
func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] {
let builder = QueryParameterBuilder() let builder = QueryParameterBuilder()
try builder.addQueryParameters(from: xPlexClientIdentifier, named: "X-Plex-Client-Identifier", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) try builder.addQueryParameters(from: clientID, named: "X-Plex-Client-Identifier", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults)
return builder.build() return builder.build()
} }
} }

View File

@@ -21,7 +21,7 @@ extension Operations.PostUsersSignInDataRequest: Serializable {
extension Operations.PostUsersSignInDataRequest: QueryParameterSerializable { extension Operations.PostUsersSignInDataRequest: QueryParameterSerializable {
func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] {
let builder = QueryParameterBuilder() let builder = QueryParameterBuilder()
try builder.addQueryParameters(from: xPlexClientIdentifier, named: "X-Plex-Client-Identifier", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) try builder.addQueryParameters(from: clientID, named: "X-Plex-Client-Identifier", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults)
return builder.build() return builder.build()
} }
} }

View File

@@ -22,7 +22,7 @@ extension Operations {
/// Indicates if the region has privacy restrictions. /// Indicates if the region has privacy restrictions.
public let inPrivacyRestrictedRegion: Bool public let inPrivacyRestrictedRegion: Bool
/// The postal code of the location. /// The postal code of the location.
public let postalCode: Int public let postalCode: String
/// The name of the primary administrative subdivision. /// The name of the primary administrative subdivision.
public let subdivisions: String public let subdivisions: String
/// The time zone of the country. /// The time zone of the country.
@@ -42,7 +42,7 @@ extension Operations {
/// - Parameter subdivisions: The name of the primary administrative subdivision. /// - Parameter subdivisions: The name of the primary administrative subdivision.
/// - Parameter timeZone: The time zone of the country. /// - Parameter timeZone: The time zone of the country.
/// ///
public init(city: String, code: String, continentCode: String, coordinates: String, country: String, europeanUnionMember: Bool, inPrivacyRestrictedCountry: Bool, inPrivacyRestrictedRegion: Bool, postalCode: Int, subdivisions: String, timeZone: String) { public init(city: String, code: String, continentCode: String, coordinates: String, country: String, europeanUnionMember: Bool, inPrivacyRestrictedCountry: Bool, inPrivacyRestrictedRegion: Bool, postalCode: String, subdivisions: String, timeZone: String) {
self.city = city self.city = city
self.code = code self.code = code
self.continentCode = continentCode self.continentCode = continentCode

View File

@@ -22,7 +22,7 @@ extension Operations {
/// Indicates if the region has privacy restrictions. /// Indicates if the region has privacy restrictions.
public let inPrivacyRestrictedRegion: Bool public let inPrivacyRestrictedRegion: Bool
/// The postal code of the location. /// The postal code of the location.
public let postalCode: Int public let postalCode: String
/// The name of the primary administrative subdivision. /// The name of the primary administrative subdivision.
public let subdivisions: String public let subdivisions: String
/// The time zone of the country. /// The time zone of the country.
@@ -42,7 +42,7 @@ extension Operations {
/// - Parameter subdivisions: The name of the primary administrative subdivision. /// - Parameter subdivisions: The name of the primary administrative subdivision.
/// - Parameter timeZone: The time zone of the country. /// - Parameter timeZone: The time zone of the country.
/// ///
public init(city: String, code: String, continentCode: String, coordinates: String, country: String, europeanUnionMember: Bool, inPrivacyRestrictedCountry: Bool, inPrivacyRestrictedRegion: Bool, postalCode: Int, subdivisions: String, timeZone: String) { public init(city: String, code: String, continentCode: String, coordinates: String, country: String, europeanUnionMember: Bool, inPrivacyRestrictedCountry: Bool, inPrivacyRestrictedRegion: Bool, postalCode: String, subdivisions: String, timeZone: String) {
self.city = city self.city = city
self.code = code self.code = code
self.continentCode = continentCode self.continentCode = continentCode

View File

@@ -20,7 +20,7 @@ extension Operations {
public let product: String public let product: String
public let qr: String public let qr: String
public let trusted: Bool public let trusted: Bool
public let authToken: AnyValue? public let authToken: String?
public let newRegistration: AnyValue? public let newRegistration: AnyValue?
/// Creates an object with the specified parameters /// Creates an object with the specified parameters
@@ -29,7 +29,7 @@ extension Operations {
/// - Parameter expiresIn: The number of seconds this pin expires, by default 900 seconds /// - Parameter expiresIn: The number of seconds this pin expires, by default 900 seconds
/// - Parameter location: Geo location data /// - Parameter location: Geo location data
/// ///
public init(clientIdentifier: String, code: String, createdAt: Date, expiresAt: Date, expiresIn: Int, id: Int, location: Operations.GeoData, product: String, qr: String, trusted: Bool, authToken: AnyValue? = nil, newRegistration: AnyValue? = nil) { public init(clientIdentifier: String, code: String, createdAt: Date, expiresAt: Date, expiresIn: Int, id: Int, location: Operations.GeoData, product: String, qr: String, trusted: Bool, authToken: String? = nil, newRegistration: AnyValue? = nil) {
self.clientIdentifier = clientIdentifier self.clientIdentifier = clientIdentifier
self.code = code self.code = code
self._createdAt = DateTime<Date>(wrappedValue: createdAt) self._createdAt = DateTime<Date>(wrappedValue: createdAt)
@@ -73,7 +73,7 @@ extension Operations.GetPinAuthPinContainer: Codable {
self.product = try container.decode(String.self, forKey: .product) self.product = try container.decode(String.self, forKey: .product)
self.qr = try container.decode(String.self, forKey: .qr) self.qr = try container.decode(String.self, forKey: .qr)
self.trusted = try container.decode(Bool.self, forKey: .trusted) self.trusted = try container.decode(Bool.self, forKey: .trusted)
self.authToken = try container.decodeIfPresent(AnyValue.self, forKey: .authToken) self.authToken = try container.decodeIfPresent(String.self, forKey: .authToken)
self.newRegistration = try container.decodeIfPresent(AnyValue.self, forKey: .newRegistration) self.newRegistration = try container.decodeIfPresent(AnyValue.self, forKey: .newRegistration)
} }

View File

@@ -5,32 +5,38 @@ import Foundation
extension Operations { extension Operations {
/// A model object /// A model object
public struct GetPinRequest: APIValue { public struct GetPinRequest: APIValue {
/// 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)
///
public let clientID: String?
public let clientName: String?
public let clientPlatform: String?
public let clientVersion: String?
public let deviceName: String?
/// Determines the kind of code returned by the API call /// Determines the kind of code returned by the API call
/// Strong codes are used for Pin authentication flows /// Strong codes are used for Pin authentication flows
/// Non-Strong codes are used for `Plex.tv/link` /// Non-Strong codes are used for `Plex.tv/link`
/// ///
public let strong: Bool? public let strong: Bool?
/// 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)
///
public let xPlexClientIdentifier: String?
public let xPlexProduct: String?
/// Creates an object with the specified parameters /// Creates an object with the specified parameters
/// ///
/// - Parameter clientID: 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)
///
/// - Parameter strong: Determines the kind of code returned by the API call /// - Parameter strong: Determines the kind of code returned by the API call
/// Strong codes are used for Pin authentication flows /// Strong codes are used for Pin authentication flows
/// Non-Strong codes are used for `Plex.tv/link` /// Non-Strong codes are used for `Plex.tv/link`
/// ///
/// - Parameter xPlexClientIdentifier: 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)
///
/// ///
public init(strong: Bool? = nil, xPlexClientIdentifier: String? = nil, xPlexProduct: String? = nil) { public init(clientID: String? = nil, clientName: String? = nil, clientPlatform: String? = nil, clientVersion: String? = nil, deviceName: String? = nil, strong: Bool? = nil) {
self.clientID = clientID
self.clientName = clientName
self.clientPlatform = clientPlatform
self.clientVersion = clientVersion
self.deviceName = deviceName
self.strong = strong self.strong = strong
self.xPlexClientIdentifier = xPlexClientIdentifier
self.xPlexProduct = xPlexProduct
} }
}} }}

View File

@@ -5,6 +5,11 @@ import Foundation
extension Operations { extension Operations {
/// A model object /// A model object
public struct GetServerResourcesRequest: APIValue { public struct GetServerResourcesRequest: APIValue {
/// 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)
///
public let clientID: String?
/// Include Https entries in the results /// Include Https entries in the results
public let includeHttps: Operations.IncludeHttps? public let includeHttps: Operations.IncludeHttps?
/// Include IPv6 entries in the results /// Include IPv6 entries in the results
@@ -13,28 +18,23 @@ extension Operations {
/// E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400 /// E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400
/// ///
public let includeRelay: Operations.IncludeRelay? public let includeRelay: Operations.IncludeRelay?
/// 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)
///
public let xPlexClientIdentifier: String?
/// Creates an object with the specified parameters /// Creates an object with the specified parameters
/// ///
/// - Parameter clientID: 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)
///
/// - Parameter includeHttps: Include Https entries in the results /// - Parameter includeHttps: Include Https entries in the results
/// - Parameter includeIPv6: Include IPv6 entries in the results /// - Parameter includeIPv6: Include IPv6 entries in the results
/// - Parameter includeRelay: Include Relay addresses in the results /// - Parameter includeRelay: Include Relay addresses in the results
/// E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400 /// E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400
/// ///
/// - Parameter xPlexClientIdentifier: 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)
///
/// ///
public init(includeHttps: Operations.IncludeHttps? = nil, includeIPv6: Operations.IncludeIPv6? = nil, includeRelay: Operations.IncludeRelay? = nil, xPlexClientIdentifier: String? = nil) { public init(clientID: String? = nil, includeHttps: Operations.IncludeHttps? = nil, includeIPv6: Operations.IncludeIPv6? = nil, includeRelay: Operations.IncludeRelay? = nil) {
self.clientID = clientID
self.includeHttps = includeHttps self.includeHttps = includeHttps
self.includeIPv6 = includeIPv6 self.includeIPv6 = includeIPv6
self.includeRelay = includeRelay self.includeRelay = includeRelay
self.xPlexClientIdentifier = xPlexClientIdentifier
} }
}} }}

View File

@@ -20,7 +20,7 @@ extension Operations {
public let product: String public let product: String
public let qr: String public let qr: String
public let trusted: Bool public let trusted: Bool
public let authToken: AnyValue? public let authToken: String?
public let newRegistration: AnyValue? public let newRegistration: AnyValue?
/// Creates an object with the specified parameters /// Creates an object with the specified parameters
@@ -29,7 +29,7 @@ extension Operations {
/// - Parameter expiresIn: The number of seconds this pin expires, by default 900 seconds /// - Parameter expiresIn: The number of seconds this pin expires, by default 900 seconds
/// - Parameter location: Geo location data /// - Parameter location: Geo location data
/// ///
public init(clientIdentifier: String, code: String, createdAt: Date, expiresAt: Date, expiresIn: Int, id: Int, location: Operations.GetTokenByPinIdGeoData, product: String, qr: String, trusted: Bool, authToken: AnyValue? = nil, newRegistration: AnyValue? = nil) { public init(clientIdentifier: String, code: String, createdAt: Date, expiresAt: Date, expiresIn: Int, id: Int, location: Operations.GetTokenByPinIdGeoData, product: String, qr: String, trusted: Bool, authToken: String? = nil, newRegistration: AnyValue? = nil) {
self.clientIdentifier = clientIdentifier self.clientIdentifier = clientIdentifier
self.code = code self.code = code
self._createdAt = DateTime<Date>(wrappedValue: createdAt) self._createdAt = DateTime<Date>(wrappedValue: createdAt)
@@ -73,7 +73,7 @@ extension Operations.GetTokenByPinIdAuthPinContainer: Codable {
self.product = try container.decode(String.self, forKey: .product) self.product = try container.decode(String.self, forKey: .product)
self.qr = try container.decode(String.self, forKey: .qr) self.qr = try container.decode(String.self, forKey: .qr)
self.trusted = try container.decode(Bool.self, forKey: .trusted) self.trusted = try container.decode(Bool.self, forKey: .trusted)
self.authToken = try container.decodeIfPresent(AnyValue.self, forKey: .authToken) self.authToken = try container.decodeIfPresent(String.self, forKey: .authToken)
self.newRegistration = try container.decodeIfPresent(AnyValue.self, forKey: .newRegistration) self.newRegistration = try container.decodeIfPresent(AnyValue.self, forKey: .newRegistration)
} }

View File

@@ -22,7 +22,7 @@ extension Operations {
/// Indicates if the region has privacy restrictions. /// Indicates if the region has privacy restrictions.
public let inPrivacyRestrictedRegion: Bool public let inPrivacyRestrictedRegion: Bool
/// The postal code of the location. /// The postal code of the location.
public let postalCode: Int public let postalCode: String
/// The name of the primary administrative subdivision. /// The name of the primary administrative subdivision.
public let subdivisions: String public let subdivisions: String
/// The time zone of the country. /// The time zone of the country.
@@ -42,7 +42,7 @@ extension Operations {
/// - Parameter subdivisions: The name of the primary administrative subdivision. /// - Parameter subdivisions: The name of the primary administrative subdivision.
/// - Parameter timeZone: The time zone of the country. /// - Parameter timeZone: The time zone of the country.
/// ///
public init(city: String, code: String, continentCode: String, coordinates: String, country: String, europeanUnionMember: Bool, inPrivacyRestrictedCountry: Bool, inPrivacyRestrictedRegion: Bool, postalCode: Int, subdivisions: String, timeZone: String) { public init(city: String, code: String, continentCode: String, coordinates: String, country: String, europeanUnionMember: Bool, inPrivacyRestrictedCountry: Bool, inPrivacyRestrictedRegion: Bool, postalCode: String, subdivisions: String, timeZone: String) {
self.city = city self.city = city
self.code = code self.code = code
self.continentCode = continentCode self.continentCode = continentCode

View File

@@ -11,18 +11,18 @@ extension Operations {
/// This is used to track the client application and its usage /// This is used to track the client application and its usage
/// (UUID, serial number, or other number unique per device) /// (UUID, serial number, or other number unique per device)
/// ///
public let xPlexClientIdentifier: String? public let clientID: String?
/// Creates an object with the specified parameters /// Creates an object with the specified parameters
/// ///
/// - Parameter pinID: The PinID to retrieve an access token for /// - Parameter pinID: The PinID to retrieve an access token for
/// - Parameter xPlexClientIdentifier: The unique identifier for the client application /// - Parameter clientID: The unique identifier for the client application
/// This is used to track the client application and its usage /// This is used to track the client application and its usage
/// (UUID, serial number, or other number unique per device) /// (UUID, serial number, or other number unique per device)
/// ///
/// ///
public init(pinID: Int, xPlexClientIdentifier: String? = nil) { public init(pinID: Int, clientID: String? = nil) {
self.pinID = pinID self.pinID = pinID
self.xPlexClientIdentifier = xPlexClientIdentifier self.clientID = clientID
} }
}} }}

View File

@@ -5,24 +5,24 @@ import Foundation
extension Operations { extension Operations {
/// A model object /// A model object
public struct PostUsersSignInDataRequest: APIValue { public struct PostUsersSignInDataRequest: APIValue {
/// Login credentials
public let requestBody: Operations.PostUsersSignInDataRequestBody?
/// 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 /// This is used to track the client application and its usage
/// (UUID, serial number, or other number unique per device) /// (UUID, serial number, or other number unique per device)
/// ///
public let xPlexClientIdentifier: String? public let clientID: String?
/// Login credentials
public let requestBody: Operations.PostUsersSignInDataRequestBody?
/// Creates an object with the specified parameters /// Creates an object with the specified parameters
/// ///
/// - Parameter requestBody: Login credentials /// - Parameter clientID: The unique identifier for the client application
/// - Parameter xPlexClientIdentifier: The unique identifier for the client application
/// This is used to track the client application and its usage /// This is used to track the client application and its usage
/// (UUID, serial number, or other number unique per device) /// (UUID, serial number, or other number unique per device)
/// ///
/// - Parameter requestBody: Login credentials
/// ///
public init(requestBody: Operations.PostUsersSignInDataRequestBody? = nil, xPlexClientIdentifier: String? = nil) { public init(clientID: String? = nil, requestBody: Operations.PostUsersSignInDataRequestBody? = nil) {
self.clientID = clientID
self.requestBody = requestBody self.requestBody = requestBody
self.xPlexClientIdentifier = xPlexClientIdentifier
} }
}} }}

View File

@@ -615,7 +615,7 @@ public protocol PlexAPI {
/// - Throws: An error of type ``PlexswiftError`` /// - Throws: An error of type ``PlexswiftError``
func getServerResources(request: Operations.GetServerResourcesRequest, server: PlexServers.GetServerResources?) async throws -> Response<Operations.GetServerResourcesResponse> func getServerResources(request: Operations.GetServerResourcesRequest, server: PlexServers.GetServerResources?) async throws -> Response<Operations.GetServerResourcesResponse>
/// Retrieve a Pin from Plex.tv for authentication flows /// Retrieve a Pin ID from Plex.tv to use for authentication flows
/// ///
/// - Parameter request: A ``Operations/GetPinRequest`` object describing the input to the API operation /// - Parameter request: A ``Operations/GetPinRequest`` object describing the input to the API operation
/// - Parameter server: An optional server override to use for this operation /// - Parameter server: An optional server override to use for this operation

View File

@@ -62,7 +62,7 @@ final class URLRequestBuilder: URLRequestConfiguration {
urlRequest.setValue(contentType, forHTTPHeaderField: "Content-Type") urlRequest.setValue(contentType, forHTTPHeaderField: "Content-Type")
} }
urlRequest.setValue("speakeasy-sdk/swift 0.6.2 2.415.8 0.0.3 plexswift", forHTTPHeaderField: telemetryHeader.headerName) urlRequest.setValue("speakeasy-sdk/swift 0.6.3 2.416.6 0.0.3 plexswift", forHTTPHeaderField: telemetryHeader.headerName)
addSecurityParameters(to: &urlRequest) addSecurityParameters(to: &urlRequest)

File diff suppressed because it is too large Load Diff