ci: regenerated with OpenAPI Doc 0.0.3, Speakeasy CLI 1.133.1

This commit is contained in:
speakeasybot
2024-01-08 00:58:01 +00:00
parent 9d3c934f78
commit 47d2964e31
387 changed files with 19219 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
/// Top-level type used for grouping operations models
///
/// > Note: You do not need to interact with this type directly.
public enum Operations {}
/// Top-level type used for grouping shared models
///
/// > Note: You do not need to interact with this type directly.
public enum Shared {}

View File

@@ -0,0 +1,83 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct Activity {
public let cancellable: Bool?
public let context: Operations.Context?
@DecimalSerialized
public private(set) var progress: Double?
public let subtitle: String?
public let title: String?
public let type: String?
@DecimalSerialized
public private(set) var userID: Double?
public let uuid: String?
/// Creates an object with the specified parameters
///
///
public init(cancellable: Bool? = nil, context: Operations.Context? = nil, progress: Double? = nil, subtitle: String? = nil, title: String? = nil, type: String? = nil, userID: Double? = nil, uuid: String? = nil) {
self.cancellable = cancellable
self.context = context
self._progress = DecimalSerialized<Double?>(wrappedValue: progress)
self.subtitle = subtitle
self.title = title
self.type = type
self._userID = DecimalSerialized<Double?>(wrappedValue: userID)
self.uuid = uuid
}
}
}
extension Operations.Activity: Codable {
enum CodingKeys: String, CodingKey {
case cancellable
case context = "Context"
case progress
case subtitle
case title
case type
case userID
case uuid
}
public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
self.cancellable = try container.decodeIfPresent(Bool.self, forKey: .cancellable)
self.context = try container.decodeIfPresent(Operations.Context.self, forKey: .context)
self._progress = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .progress) ?? DecimalSerialized<Double?>(wrappedValue: nil)
self.subtitle = try container.decodeIfPresent(String.self, forKey: .subtitle)
self.title = try container.decodeIfPresent(String.self, forKey: .title)
self.type = try container.decodeIfPresent(String.self, forKey: .type)
self._userID = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .userID) ?? DecimalSerialized<Double?>(wrappedValue: nil)
self.uuid = try container.decodeIfPresent(String.self, forKey: .uuid)
}
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(self.cancellable, forKey: .cancellable)
try container.encodeIfPresent(self.context, forKey: .context)
if self.progress != nil {
try container.encode(self._progress, forKey: .progress)
}
try container.encodeIfPresent(self.subtitle, forKey: .subtitle)
try container.encodeIfPresent(self.title, forKey: .title)
try container.encodeIfPresent(self.type, forKey: .type)
if self.userID != nil {
try container.encode(self._userID, forKey: .userID)
}
try container.encodeIfPresent(self.uuid, forKey: .uuid)
}
}
extension Operations.Activity {
var userIDWrapper: DecimalSerialized<Double?> {
return _userID
}
var progressWrapper: DecimalSerialized<Double?> {
return _progress
}
}

View File

@@ -0,0 +1,58 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct AddPlaylistContentsErrors {
@DecimalSerialized
public private(set) var code: Double?
public let message: String?
@DecimalSerialized
public private(set) var status: Double?
/// Creates an object with the specified parameters
///
///
public init(code: Double? = nil, message: String? = nil, status: Double? = nil) {
self._code = DecimalSerialized<Double?>(wrappedValue: code)
self.message = message
self._status = DecimalSerialized<Double?>(wrappedValue: status)
}
}
}
extension Operations.AddPlaylistContentsErrors: Codable {
enum CodingKeys: String, CodingKey {
case code
case message
case status
}
public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
self._code = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .code) ?? DecimalSerialized<Double?>(wrappedValue: nil)
self.message = try container.decodeIfPresent(String.self, forKey: .message)
self._status = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .status) ?? DecimalSerialized<Double?>(wrappedValue: nil)
}
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
if self.code != nil {
try container.encode(self._code, forKey: .code)
}
try container.encodeIfPresent(self.message, forKey: .message)
if self.status != nil {
try container.encode(self._status, forKey: .status)
}
}
}
extension Operations.AddPlaylistContentsErrors {
var codeWrapper: DecimalSerialized<Double?> {
return _code
}
var statusWrapper: DecimalSerialized<Double?> {
return _status
}
}

View File

@@ -0,0 +1,37 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct AddPlaylistContentsRequest: APIValue {
/// the ID of the playlist
@DecimalSerialized
public private(set) var playlistID: Double
/// the play queue to add to a playlist
@DecimalSerialized
public private(set) var playQueueID: Double
/// the content URI for the playlist
public let uri: String
/// Creates an object with the specified parameters
///
/// - Parameter playlistID: the ID of the playlist
/// - Parameter playQueueID: the play queue to add to a playlist
/// - Parameter uri: the content URI for the playlist
///
public init(playlistID: Double, playQueueID: Double, uri: String) {
self._playlistID = DecimalSerialized<Double>(wrappedValue: playlistID)
self._playQueueID = DecimalSerialized<Double>(wrappedValue: playQueueID)
self.uri = uri
}
}
}
extension Operations.AddPlaylistContentsRequest {
var playlistIDWrapper: DecimalSerialized<Double> {
return _playlistID
}
var playQueueIDWrapper: DecimalSerialized<Double> {
return _playQueueID
}
}

View File

@@ -0,0 +1,26 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A response model
public enum AddPlaylistContentsResponse {
case empty
case object(Operations.AddPlaylistContentsResponseBody)
var isEmpty: Bool {
if case .empty = self {
return true
} else {
return false
}
}
public func object() throws -> Operations.AddPlaylistContentsResponseBody {
guard case .object(let value) = self else {
throw PlexswiftError.missingResponseData
}
return value
}
}
}

View File

@@ -0,0 +1,24 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
public struct AddPlaylistContentsResponseBody {
public let errors: [Operations.AddPlaylistContentsErrors]?
/// Creates an object with the specified parameters
///
///
public init(errors: [Operations.AddPlaylistContentsErrors]? = nil) {
self.errors = errors
}
}
}
extension Operations.AddPlaylistContentsResponseBody: Codable {
enum CodingKeys: String, CodingKey {
case errors
}
}

View File

@@ -0,0 +1,58 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct ApplyUpdatesErrors {
@DecimalSerialized
public private(set) var code: Double?
public let message: String?
@DecimalSerialized
public private(set) var status: Double?
/// Creates an object with the specified parameters
///
///
public init(code: Double? = nil, message: String? = nil, status: Double? = nil) {
self._code = DecimalSerialized<Double?>(wrappedValue: code)
self.message = message
self._status = DecimalSerialized<Double?>(wrappedValue: status)
}
}
}
extension Operations.ApplyUpdatesErrors: Codable {
enum CodingKeys: String, CodingKey {
case code
case message
case status
}
public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
self._code = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .code) ?? DecimalSerialized<Double?>(wrappedValue: nil)
self.message = try container.decodeIfPresent(String.self, forKey: .message)
self._status = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .status) ?? DecimalSerialized<Double?>(wrappedValue: nil)
}
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
if self.code != nil {
try container.encode(self._code, forKey: .code)
}
try container.encodeIfPresent(self.message, forKey: .message)
if self.status != nil {
try container.encode(self._status, forKey: .status)
}
}
}
extension Operations.ApplyUpdatesErrors {
var codeWrapper: DecimalSerialized<Double?> {
return _code
}
var statusWrapper: DecimalSerialized<Double?> {
return _status
}
}

View File

@@ -0,0 +1,23 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct ApplyUpdatesRequest: APIValue {
/// Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`.
public let skip: Operations.Skip?
/// Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install
public let tonight: Operations.Tonight?
/// Creates an object with the specified parameters
///
/// - Parameter skip: Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`.
/// - Parameter tonight: Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install
///
public init(skip: Operations.Skip? = nil, tonight: Operations.Tonight? = nil) {
self.skip = skip
self.tonight = tonight
}
}
}

View File

@@ -0,0 +1,26 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A response model
public enum ApplyUpdatesResponse {
case empty
case object(Operations.ApplyUpdatesResponseBody)
var isEmpty: Bool {
if case .empty = self {
return true
} else {
return false
}
}
public func object() throws -> Operations.ApplyUpdatesResponseBody {
guard case .object(let value) = self else {
throw PlexswiftError.missingResponseData
}
return value
}
}
}

View File

@@ -0,0 +1,24 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
public struct ApplyUpdatesResponseBody {
public let errors: [Operations.ApplyUpdatesErrors]?
/// Creates an object with the specified parameters
///
///
public init(errors: [Operations.ApplyUpdatesErrors]? = nil) {
self.errors = errors
}
}
}
extension Operations.ApplyUpdatesResponseBody: Codable {
enum CodingKeys: String, CodingKey {
case errors
}
}

View File

@@ -0,0 +1,67 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct ButlerTask {
public let description: String?
public let enabled: Bool?
@DecimalSerialized
public private(set) var interval: Double?
public let name: String?
public let scheduleRandomized: Bool?
public let title: String?
/// Creates an object with the specified parameters
///
///
public init(description: String? = nil, enabled: Bool? = nil, interval: Double? = nil, name: String? = nil, scheduleRandomized: Bool? = nil, title: String? = nil) {
self.description = description
self.enabled = enabled
self._interval = DecimalSerialized<Double?>(wrappedValue: interval)
self.name = name
self.scheduleRandomized = scheduleRandomized
self.title = title
}
}
}
extension Operations.ButlerTask: Codable {
enum CodingKeys: String, CodingKey {
case description
case enabled
case interval
case name
case scheduleRandomized
case title
}
public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
self.description = try container.decodeIfPresent(String.self, forKey: .description)
self.enabled = try container.decodeIfPresent(Bool.self, forKey: .enabled)
self._interval = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .interval) ?? DecimalSerialized<Double?>(wrappedValue: nil)
self.name = try container.decodeIfPresent(String.self, forKey: .name)
self.scheduleRandomized = try container.decodeIfPresent(Bool.self, forKey: .scheduleRandomized)
self.title = try container.decodeIfPresent(String.self, forKey: .title)
}
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(self.description, forKey: .description)
try container.encodeIfPresent(self.enabled, forKey: .enabled)
if self.interval != nil {
try container.encode(self._interval, forKey: .interval)
}
try container.encodeIfPresent(self.name, forKey: .name)
try container.encodeIfPresent(self.scheduleRandomized, forKey: .scheduleRandomized)
try container.encodeIfPresent(self.title, forKey: .title)
}
}
extension Operations.ButlerTask {
var intervalWrapper: DecimalSerialized<Double?> {
return _interval
}
}

View File

@@ -0,0 +1,24 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct ButlerTasks {
public let butlerTask: [Operations.ButlerTask]?
/// Creates an object with the specified parameters
///
///
public init(butlerTask: [Operations.ButlerTask]? = nil) {
self.butlerTask = butlerTask
}
}
}
extension Operations.ButlerTasks: Codable {
enum CodingKeys: String, CodingKey {
case butlerTask = "ButlerTask"
}
}

View File

@@ -0,0 +1,58 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct CancelServerActivitiesErrors {
@DecimalSerialized
public private(set) var code: Double?
public let message: String?
@DecimalSerialized
public private(set) var status: Double?
/// Creates an object with the specified parameters
///
///
public init(code: Double? = nil, message: String? = nil, status: Double? = nil) {
self._code = DecimalSerialized<Double?>(wrappedValue: code)
self.message = message
self._status = DecimalSerialized<Double?>(wrappedValue: status)
}
}
}
extension Operations.CancelServerActivitiesErrors: Codable {
enum CodingKeys: String, CodingKey {
case code
case message
case status
}
public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
self._code = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .code) ?? DecimalSerialized<Double?>(wrappedValue: nil)
self.message = try container.decodeIfPresent(String.self, forKey: .message)
self._status = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .status) ?? DecimalSerialized<Double?>(wrappedValue: nil)
}
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
if self.code != nil {
try container.encode(self._code, forKey: .code)
}
try container.encodeIfPresent(self.message, forKey: .message)
if self.status != nil {
try container.encode(self._status, forKey: .status)
}
}
}
extension Operations.CancelServerActivitiesErrors {
var codeWrapper: DecimalSerialized<Double?> {
return _code
}
var statusWrapper: DecimalSerialized<Double?> {
return _status
}
}

View File

@@ -0,0 +1,19 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct CancelServerActivitiesRequest: APIValue {
/// The UUID of the activity to cancel.
public let activityUUID: String
/// Creates an object with the specified parameters
///
/// - Parameter activityUUID: The UUID of the activity to cancel.
///
public init(activityUUID: String) {
self.activityUUID = activityUUID
}
}
}

View File

@@ -0,0 +1,26 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A response model
public enum CancelServerActivitiesResponse {
case empty
case object(Operations.CancelServerActivitiesResponseBody)
var isEmpty: Bool {
if case .empty = self {
return true
} else {
return false
}
}
public func object() throws -> Operations.CancelServerActivitiesResponseBody {
guard case .object(let value) = self else {
throw PlexswiftError.missingResponseData
}
return value
}
}
}

View File

@@ -0,0 +1,24 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
public struct CancelServerActivitiesResponseBody {
public let errors: [Operations.CancelServerActivitiesErrors]?
/// Creates an object with the specified parameters
///
///
public init(errors: [Operations.CancelServerActivitiesErrors]? = nil) {
self.errors = errors
}
}
}
extension Operations.CancelServerActivitiesResponseBody: Codable {
enum CodingKeys: String, CodingKey {
case errors
}
}

View File

@@ -0,0 +1,58 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct CheckForUpdatesErrors {
@DecimalSerialized
public private(set) var code: Double?
public let message: String?
@DecimalSerialized
public private(set) var status: Double?
/// Creates an object with the specified parameters
///
///
public init(code: Double? = nil, message: String? = nil, status: Double? = nil) {
self._code = DecimalSerialized<Double?>(wrappedValue: code)
self.message = message
self._status = DecimalSerialized<Double?>(wrappedValue: status)
}
}
}
extension Operations.CheckForUpdatesErrors: Codable {
enum CodingKeys: String, CodingKey {
case code
case message
case status
}
public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
self._code = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .code) ?? DecimalSerialized<Double?>(wrappedValue: nil)
self.message = try container.decodeIfPresent(String.self, forKey: .message)
self._status = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .status) ?? DecimalSerialized<Double?>(wrappedValue: nil)
}
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
if self.code != nil {
try container.encode(self._code, forKey: .code)
}
try container.encodeIfPresent(self.message, forKey: .message)
if self.status != nil {
try container.encode(self._status, forKey: .status)
}
}
}
extension Operations.CheckForUpdatesErrors {
var codeWrapper: DecimalSerialized<Double?> {
return _code
}
var statusWrapper: DecimalSerialized<Double?> {
return _status
}
}

View File

@@ -0,0 +1,19 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct CheckForUpdatesRequest: APIValue {
/// Indicate that you want to start download any updates found.
public let download: Operations.Download?
/// Creates an object with the specified parameters
///
/// - Parameter download: Indicate that you want to start download any updates found.
///
public init(download: Operations.Download? = nil) {
self.download = download
}
}
}

View File

@@ -0,0 +1,26 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A response model
public enum CheckForUpdatesResponse {
case empty
case object(Operations.CheckForUpdatesResponseBody)
var isEmpty: Bool {
if case .empty = self {
return true
} else {
return false
}
}
public func object() throws -> Operations.CheckForUpdatesResponseBody {
guard case .object(let value) = self else {
throw PlexswiftError.missingResponseData
}
return value
}
}
}

View File

@@ -0,0 +1,24 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
public struct CheckForUpdatesResponseBody {
public let errors: [Operations.CheckForUpdatesErrors]?
/// Creates an object with the specified parameters
///
///
public init(errors: [Operations.CheckForUpdatesErrors]? = nil) {
self.errors = errors
}
}
}
extension Operations.CheckForUpdatesResponseBody: Codable {
enum CodingKeys: String, CodingKey {
case errors
}
}

View File

@@ -0,0 +1,58 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct ClearPlaylistContentsErrors {
@DecimalSerialized
public private(set) var code: Double?
public let message: String?
@DecimalSerialized
public private(set) var status: Double?
/// Creates an object with the specified parameters
///
///
public init(code: Double? = nil, message: String? = nil, status: Double? = nil) {
self._code = DecimalSerialized<Double?>(wrappedValue: code)
self.message = message
self._status = DecimalSerialized<Double?>(wrappedValue: status)
}
}
}
extension Operations.ClearPlaylistContentsErrors: Codable {
enum CodingKeys: String, CodingKey {
case code
case message
case status
}
public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
self._code = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .code) ?? DecimalSerialized<Double?>(wrappedValue: nil)
self.message = try container.decodeIfPresent(String.self, forKey: .message)
self._status = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .status) ?? DecimalSerialized<Double?>(wrappedValue: nil)
}
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
if self.code != nil {
try container.encode(self._code, forKey: .code)
}
try container.encodeIfPresent(self.message, forKey: .message)
if self.status != nil {
try container.encode(self._status, forKey: .status)
}
}
}
extension Operations.ClearPlaylistContentsErrors {
var codeWrapper: DecimalSerialized<Double?> {
return _code
}
var statusWrapper: DecimalSerialized<Double?> {
return _status
}
}

View File

@@ -0,0 +1,25 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct ClearPlaylistContentsRequest: APIValue {
/// the ID of the playlist
@DecimalSerialized
public private(set) var playlistID: Double
/// Creates an object with the specified parameters
///
/// - Parameter playlistID: the ID of the playlist
///
public init(playlistID: Double) {
self._playlistID = DecimalSerialized<Double>(wrappedValue: playlistID)
}
}
}
extension Operations.ClearPlaylistContentsRequest {
var playlistIDWrapper: DecimalSerialized<Double> {
return _playlistID
}
}

View File

@@ -0,0 +1,26 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A response model
public enum ClearPlaylistContentsResponse {
case empty
case object(Operations.ClearPlaylistContentsResponseBody)
var isEmpty: Bool {
if case .empty = self {
return true
} else {
return false
}
}
public func object() throws -> Operations.ClearPlaylistContentsResponseBody {
guard case .object(let value) = self else {
throw PlexswiftError.missingResponseData
}
return value
}
}
}

View File

@@ -0,0 +1,24 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
public struct ClearPlaylistContentsResponseBody {
public let errors: [Operations.ClearPlaylistContentsErrors]?
/// Creates an object with the specified parameters
///
///
public init(errors: [Operations.ClearPlaylistContentsErrors]? = nil) {
self.errors = errors
}
}
}
extension Operations.ClearPlaylistContentsResponseBody: Codable {
enum CodingKeys: String, CodingKey {
case errors
}
}

View File

@@ -0,0 +1,24 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct Context {
public let librarySectionID: String?
/// Creates an object with the specified parameters
///
///
public init(librarySectionID: String? = nil) {
self.librarySectionID = librarySectionID
}
}
}
extension Operations.Context: Codable {
enum CodingKeys: String, CodingKey {
case librarySectionID
}
}

View File

@@ -0,0 +1,24 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct Country {
public let tag: String?
/// Creates an object with the specified parameters
///
///
public init(tag: String? = nil) {
self.tag = tag
}
}
}
extension Operations.Country: Codable {
enum CodingKeys: String, CodingKey {
case tag
}
}

View File

@@ -0,0 +1,58 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct CreatePlaylistErrors {
@DecimalSerialized
public private(set) var code: Double?
public let message: String?
@DecimalSerialized
public private(set) var status: Double?
/// Creates an object with the specified parameters
///
///
public init(code: Double? = nil, message: String? = nil, status: Double? = nil) {
self._code = DecimalSerialized<Double?>(wrappedValue: code)
self.message = message
self._status = DecimalSerialized<Double?>(wrappedValue: status)
}
}
}
extension Operations.CreatePlaylistErrors: Codable {
enum CodingKeys: String, CodingKey {
case code
case message
case status
}
public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
self._code = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .code) ?? DecimalSerialized<Double?>(wrappedValue: nil)
self.message = try container.decodeIfPresent(String.self, forKey: .message)
self._status = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .status) ?? DecimalSerialized<Double?>(wrappedValue: nil)
}
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
if self.code != nil {
try container.encode(self._code, forKey: .code)
}
try container.encodeIfPresent(self.message, forKey: .message)
if self.status != nil {
try container.encode(self._status, forKey: .status)
}
}
}
extension Operations.CreatePlaylistErrors {
var codeWrapper: DecimalSerialized<Double?> {
return _code
}
var statusWrapper: DecimalSerialized<Double?> {
return _status
}
}

View File

@@ -0,0 +1,41 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct CreatePlaylistRequest: APIValue {
/// whether the playlist is smart or not
public let smart: Operations.Smart
/// name of the playlist
public let title: String
/// type of playlist to create
public let type: Operations.TypeModel
/// the play queue to copy to a playlist
@DecimalSerialized
public private(set) var playQueueID: Double?
/// the content URI for the playlist
public let uri: String?
/// Creates an object with the specified parameters
///
/// - Parameter smart: whether the playlist is smart or not
/// - Parameter title: name of the playlist
/// - Parameter type: type of playlist to create
/// - Parameter playQueueID: the play queue to copy to a playlist
/// - Parameter uri: the content URI for the playlist
///
public init(smart: Operations.Smart, title: String, type: Operations.TypeModel, playQueueID: Double? = nil, uri: String? = nil) {
self.smart = smart
self.title = title
self.type = type
self._playQueueID = DecimalSerialized<Double?>(wrappedValue: playQueueID)
self.uri = uri
}
}
}
extension Operations.CreatePlaylistRequest {
var playQueueIDWrapper: DecimalSerialized<Double?> {
return _playQueueID
}
}

View File

@@ -0,0 +1,26 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A response model
public enum CreatePlaylistResponse {
case empty
case object(Operations.CreatePlaylistResponseBody)
var isEmpty: Bool {
if case .empty = self {
return true
} else {
return false
}
}
public func object() throws -> Operations.CreatePlaylistResponseBody {
guard case .object(let value) = self else {
throw PlexswiftError.missingResponseData
}
return value
}
}
}

View File

@@ -0,0 +1,24 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
public struct CreatePlaylistResponseBody {
public let errors: [Operations.CreatePlaylistErrors]?
/// Creates an object with the specified parameters
///
///
public init(errors: [Operations.CreatePlaylistErrors]? = nil) {
self.errors = errors
}
}
}
extension Operations.CreatePlaylistResponseBody: Codable {
enum CodingKeys: String, CodingKey {
case errors
}
}

View File

@@ -0,0 +1,58 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct DeleteLibraryErrors {
@DecimalSerialized
public private(set) var code: Double?
public let message: String?
@DecimalSerialized
public private(set) var status: Double?
/// Creates an object with the specified parameters
///
///
public init(code: Double? = nil, message: String? = nil, status: Double? = nil) {
self._code = DecimalSerialized<Double?>(wrappedValue: code)
self.message = message
self._status = DecimalSerialized<Double?>(wrappedValue: status)
}
}
}
extension Operations.DeleteLibraryErrors: Codable {
enum CodingKeys: String, CodingKey {
case code
case message
case status
}
public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
self._code = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .code) ?? DecimalSerialized<Double?>(wrappedValue: nil)
self.message = try container.decodeIfPresent(String.self, forKey: .message)
self._status = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .status) ?? DecimalSerialized<Double?>(wrappedValue: nil)
}
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
if self.code != nil {
try container.encode(self._code, forKey: .code)
}
try container.encodeIfPresent(self.message, forKey: .message)
if self.status != nil {
try container.encode(self._status, forKey: .status)
}
}
}
extension Operations.DeleteLibraryErrors {
var codeWrapper: DecimalSerialized<Double?> {
return _code
}
var statusWrapper: DecimalSerialized<Double?> {
return _status
}
}

View File

@@ -0,0 +1,25 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct DeleteLibraryRequest: APIValue {
/// the Id of the library to query
@DecimalSerialized
public private(set) var sectionId: Double
/// Creates an object with the specified parameters
///
/// - Parameter sectionId: the Id of the library to query
///
public init(sectionId: Double) {
self._sectionId = DecimalSerialized<Double>(wrappedValue: sectionId)
}
}
}
extension Operations.DeleteLibraryRequest {
var sectionIdWrapper: DecimalSerialized<Double> {
return _sectionId
}
}

View File

@@ -0,0 +1,26 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A response model
public enum DeleteLibraryResponse {
case empty
case object(Operations.DeleteLibraryResponseBody)
var isEmpty: Bool {
if case .empty = self {
return true
} else {
return false
}
}
public func object() throws -> Operations.DeleteLibraryResponseBody {
guard case .object(let value) = self else {
throw PlexswiftError.missingResponseData
}
return value
}
}
}

View File

@@ -0,0 +1,24 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
public struct DeleteLibraryResponseBody {
public let errors: [Operations.DeleteLibraryErrors]?
/// Creates an object with the specified parameters
///
///
public init(errors: [Operations.DeleteLibraryErrors]? = nil) {
self.errors = errors
}
}
}
extension Operations.DeleteLibraryResponseBody: Codable {
enum CodingKeys: String, CodingKey {
case errors
}
}

View File

@@ -0,0 +1,58 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct DeletePlaylistErrors {
@DecimalSerialized
public private(set) var code: Double?
public let message: String?
@DecimalSerialized
public private(set) var status: Double?
/// Creates an object with the specified parameters
///
///
public init(code: Double? = nil, message: String? = nil, status: Double? = nil) {
self._code = DecimalSerialized<Double?>(wrappedValue: code)
self.message = message
self._status = DecimalSerialized<Double?>(wrappedValue: status)
}
}
}
extension Operations.DeletePlaylistErrors: Codable {
enum CodingKeys: String, CodingKey {
case code
case message
case status
}
public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
self._code = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .code) ?? DecimalSerialized<Double?>(wrappedValue: nil)
self.message = try container.decodeIfPresent(String.self, forKey: .message)
self._status = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .status) ?? DecimalSerialized<Double?>(wrappedValue: nil)
}
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
if self.code != nil {
try container.encode(self._code, forKey: .code)
}
try container.encodeIfPresent(self.message, forKey: .message)
if self.status != nil {
try container.encode(self._status, forKey: .status)
}
}
}
extension Operations.DeletePlaylistErrors {
var codeWrapper: DecimalSerialized<Double?> {
return _code
}
var statusWrapper: DecimalSerialized<Double?> {
return _status
}
}

View File

@@ -0,0 +1,25 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct DeletePlaylistRequest: APIValue {
/// the ID of the playlist
@DecimalSerialized
public private(set) var playlistID: Double
/// Creates an object with the specified parameters
///
/// - Parameter playlistID: the ID of the playlist
///
public init(playlistID: Double) {
self._playlistID = DecimalSerialized<Double>(wrappedValue: playlistID)
}
}
}
extension Operations.DeletePlaylistRequest {
var playlistIDWrapper: DecimalSerialized<Double> {
return _playlistID
}
}

View File

@@ -0,0 +1,26 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A response model
public enum DeletePlaylistResponse {
case empty
case object(Operations.DeletePlaylistResponseBody)
var isEmpty: Bool {
if case .empty = self {
return true
} else {
return false
}
}
public func object() throws -> Operations.DeletePlaylistResponseBody {
guard case .object(let value) = self else {
throw PlexswiftError.missingResponseData
}
return value
}
}
}

View File

@@ -0,0 +1,24 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
public struct DeletePlaylistResponseBody {
public let errors: [Operations.DeletePlaylistErrors]?
/// Creates an object with the specified parameters
///
///
public init(errors: [Operations.DeletePlaylistErrors]? = nil) {
self.errors = errors
}
}
}
extension Operations.DeletePlaylistResponseBody: Codable {
enum CodingKeys: String, CodingKey {
case errors
}
}

View File

@@ -0,0 +1,68 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct Device {
public let clientIdentifier: String?
@DecimalSerialized
public private(set) var createdAt: Double?
@DecimalSerialized
public private(set) var id: Double?
public let name: String?
public let platform: String?
/// Creates an object with the specified parameters
///
///
public init(clientIdentifier: String? = nil, createdAt: Double? = nil, id: Double? = nil, name: String? = nil, platform: String? = nil) {
self.clientIdentifier = clientIdentifier
self._createdAt = DecimalSerialized<Double?>(wrappedValue: createdAt)
self._id = DecimalSerialized<Double?>(wrappedValue: id)
self.name = name
self.platform = platform
}
}
}
extension Operations.Device: Codable {
enum CodingKeys: String, CodingKey {
case clientIdentifier
case createdAt
case id
case name
case platform
}
public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
self.clientIdentifier = try container.decodeIfPresent(String.self, forKey: .clientIdentifier)
self._createdAt = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .createdAt) ?? DecimalSerialized<Double?>(wrappedValue: nil)
self._id = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .id) ?? DecimalSerialized<Double?>(wrappedValue: nil)
self.name = try container.decodeIfPresent(String.self, forKey: .name)
self.platform = try container.decodeIfPresent(String.self, forKey: .platform)
}
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(self.clientIdentifier, forKey: .clientIdentifier)
if self.createdAt != nil {
try container.encode(self._createdAt, forKey: .createdAt)
}
if self.id != nil {
try container.encode(self._id, forKey: .id)
}
try container.encodeIfPresent(self.name, forKey: .name)
try container.encodeIfPresent(self.platform, forKey: .platform)
}
}
extension Operations.Device {
var idWrapper: DecimalSerialized<Double?> {
return _id
}
var createdAtWrapper: DecimalSerialized<Double?> {
return _createdAt
}
}

View File

@@ -0,0 +1,24 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct Director {
public let tag: String?
/// Creates an object with the specified parameters
///
///
public init(tag: String? = nil) {
self.tag = tag
}
}
}
extension Operations.Director: Codable {
enum CodingKeys: String, CodingKey {
case tag
}
}

View File

@@ -0,0 +1,52 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct Directory {
@DecimalSerialized
public private(set) var count: Double?
public let key: String?
public let title: String?
/// Creates an object with the specified parameters
///
///
public init(count: Double? = nil, key: String? = nil, title: String? = nil) {
self._count = DecimalSerialized<Double?>(wrappedValue: count)
self.key = key
self.title = title
}
}
}
extension Operations.Directory: Codable {
enum CodingKeys: String, CodingKey {
case count
case key
case title
}
public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
self._count = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .count) ?? DecimalSerialized<Double?>(wrappedValue: nil)
self.key = try container.decodeIfPresent(String.self, forKey: .key)
self.title = try container.decodeIfPresent(String.self, forKey: .title)
}
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
if self.count != nil {
try container.encode(self._count, forKey: .count)
}
try container.encodeIfPresent(self.key, forKey: .key)
try container.encodeIfPresent(self.title, forKey: .title)
}
}
extension Operations.Directory {
var countWrapper: DecimalSerialized<Double?> {
return _count
}
}

View File

@@ -0,0 +1,11 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// Indicate that you want to start download any updates found.
public enum Download: Int, Codable, APIValue {
case zero = 0
case one = 1
}
}

View File

@@ -0,0 +1,58 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct EnablePaperTrailErrors {
@DecimalSerialized
public private(set) var code: Double?
public let message: String?
@DecimalSerialized
public private(set) var status: Double?
/// Creates an object with the specified parameters
///
///
public init(code: Double? = nil, message: String? = nil, status: Double? = nil) {
self._code = DecimalSerialized<Double?>(wrappedValue: code)
self.message = message
self._status = DecimalSerialized<Double?>(wrappedValue: status)
}
}
}
extension Operations.EnablePaperTrailErrors: Codable {
enum CodingKeys: String, CodingKey {
case code
case message
case status
}
public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
self._code = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .code) ?? DecimalSerialized<Double?>(wrappedValue: nil)
self.message = try container.decodeIfPresent(String.self, forKey: .message)
self._status = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .status) ?? DecimalSerialized<Double?>(wrappedValue: nil)
}
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
if self.code != nil {
try container.encode(self._code, forKey: .code)
}
try container.encodeIfPresent(self.message, forKey: .message)
if self.status != nil {
try container.encode(self._status, forKey: .status)
}
}
}
extension Operations.EnablePaperTrailErrors {
var codeWrapper: DecimalSerialized<Double?> {
return _code
}
var statusWrapper: DecimalSerialized<Double?> {
return _status
}
}

View File

@@ -0,0 +1,26 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A response model
public enum EnablePaperTrailResponse {
case empty
case object(Operations.EnablePaperTrailResponseBody)
var isEmpty: Bool {
if case .empty = self {
return true
} else {
return false
}
}
public func object() throws -> Operations.EnablePaperTrailResponseBody {
guard case .object(let value) = self else {
throw PlexswiftError.missingResponseData
}
return value
}
}
}

View File

@@ -0,0 +1,24 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
public struct EnablePaperTrailResponseBody {
public let errors: [Operations.EnablePaperTrailErrors]?
/// Creates an object with the specified parameters
///
///
public init(errors: [Operations.EnablePaperTrailErrors]? = nil) {
self.errors = errors
}
}
}
extension Operations.EnablePaperTrailResponseBody: Codable {
enum CodingKeys: String, CodingKey {
case errors
}
}

View File

@@ -0,0 +1,58 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct Errors {
@DecimalSerialized
public private(set) var code: Double?
public let message: String?
@DecimalSerialized
public private(set) var status: Double?
/// Creates an object with the specified parameters
///
///
public init(code: Double? = nil, message: String? = nil, status: Double? = nil) {
self._code = DecimalSerialized<Double?>(wrappedValue: code)
self.message = message
self._status = DecimalSerialized<Double?>(wrappedValue: status)
}
}
}
extension Operations.Errors: Codable {
enum CodingKeys: String, CodingKey {
case code
case message
case status
}
public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
self._code = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .code) ?? DecimalSerialized<Double?>(wrappedValue: nil)
self.message = try container.decodeIfPresent(String.self, forKey: .message)
self._status = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .status) ?? DecimalSerialized<Double?>(wrappedValue: nil)
}
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
if self.code != nil {
try container.encode(self._code, forKey: .code)
}
try container.encodeIfPresent(self.message, forKey: .message)
if self.status != nil {
try container.encode(self._status, forKey: .status)
}
}
}
extension Operations.Errors {
var codeWrapper: DecimalSerialized<Double?> {
return _code
}
var statusWrapper: DecimalSerialized<Double?> {
return _status
}
}

View File

@@ -0,0 +1,13 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// force overwriting of duplicate playlists. By default, a playlist file uploaded with the same path will overwrite the existing playlist.
/// The `force` argument is used to disable overwriting. If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded.
///
public enum Force: Int, Codable, APIValue {
case zero = 0
case one = 1
}
}

View File

@@ -0,0 +1,24 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct Genre {
public let tag: String?
/// Creates an object with the specified parameters
///
///
public init(tag: String? = nil) {
self.tag = tag
}
}
}
extension Operations.Genre: Codable {
enum CodingKeys: String, CodingKey {
case tag
}
}

View File

@@ -0,0 +1,58 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct GetAvailableClientsErrors {
@DecimalSerialized
public private(set) var code: Double?
public let message: String?
@DecimalSerialized
public private(set) var status: Double?
/// Creates an object with the specified parameters
///
///
public init(code: Double? = nil, message: String? = nil, status: Double? = nil) {
self._code = DecimalSerialized<Double?>(wrappedValue: code)
self.message = message
self._status = DecimalSerialized<Double?>(wrappedValue: status)
}
}
}
extension Operations.GetAvailableClientsErrors: Codable {
enum CodingKeys: String, CodingKey {
case code
case message
case status
}
public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
self._code = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .code) ?? DecimalSerialized<Double?>(wrappedValue: nil)
self.message = try container.decodeIfPresent(String.self, forKey: .message)
self._status = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .status) ?? DecimalSerialized<Double?>(wrappedValue: nil)
}
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
if self.code != nil {
try container.encode(self._code, forKey: .code)
}
try container.encodeIfPresent(self.message, forKey: .message)
if self.status != nil {
try container.encode(self._status, forKey: .status)
}
}
}
extension Operations.GetAvailableClientsErrors {
var codeWrapper: DecimalSerialized<Double?> {
return _code
}
var statusWrapper: DecimalSerialized<Double?> {
return _status
}
}

View File

@@ -0,0 +1,47 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct GetAvailableClientsMediaContainer {
public let server: [Operations.Server]?
@DecimalSerialized
public private(set) var size: Double?
/// Creates an object with the specified parameters
///
///
public init(server: [Operations.Server]? = nil, size: Double? = nil) {
self.server = server
self._size = DecimalSerialized<Double?>(wrappedValue: size)
}
}
}
extension Operations.GetAvailableClientsMediaContainer: Codable {
enum CodingKeys: String, CodingKey {
case server = "Server"
case size
}
public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
self.server = try container.decodeIfPresent([Operations.Server].self, forKey: .server)
self._size = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .size) ?? DecimalSerialized<Double?>(wrappedValue: nil)
}
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(self.server, forKey: .server)
if self.size != nil {
try container.encode(self._size, forKey: .size)
}
}
}
extension Operations.GetAvailableClientsMediaContainer {
var sizeWrapper: DecimalSerialized<Double?> {
return _size
}
}

View File

@@ -0,0 +1,34 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A response model
public enum GetAvailableClientsResponse {
case empty
case object(Operations.GetAvailableClientsResponseBody)
case responseBodies([Operations.ResponseBody])
var isEmpty: Bool {
if case .empty = self {
return true
} else {
return false
}
}
public func object() throws -> Operations.GetAvailableClientsResponseBody {
guard case .object(let value) = self else {
throw PlexswiftError.missingResponseData
}
return value
}
public func responseBodies() throws -> [Operations.ResponseBody] {
guard case .responseBodies(let value) = self else {
throw PlexswiftError.missingResponseData
}
return value
}
}
}

View File

@@ -0,0 +1,24 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
public struct GetAvailableClientsResponseBody {
public let errors: [Operations.GetAvailableClientsErrors]?
/// Creates an object with the specified parameters
///
///
public init(errors: [Operations.GetAvailableClientsErrors]? = nil) {
self.errors = errors
}
}
}
extension Operations.GetAvailableClientsResponseBody: Codable {
enum CodingKeys: String, CodingKey {
case errors
}
}

View File

@@ -0,0 +1,24 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
public struct GetButlerTasksButlerResponseBody {
public let errors: [Operations.GetButlerTasksErrors]?
/// Creates an object with the specified parameters
///
///
public init(errors: [Operations.GetButlerTasksErrors]? = nil) {
self.errors = errors
}
}
}
extension Operations.GetButlerTasksButlerResponseBody: Codable {
enum CodingKeys: String, CodingKey {
case errors
}
}

View File

@@ -0,0 +1,58 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct GetButlerTasksErrors {
@DecimalSerialized
public private(set) var code: Double?
public let message: String?
@DecimalSerialized
public private(set) var status: Double?
/// Creates an object with the specified parameters
///
///
public init(code: Double? = nil, message: String? = nil, status: Double? = nil) {
self._code = DecimalSerialized<Double?>(wrappedValue: code)
self.message = message
self._status = DecimalSerialized<Double?>(wrappedValue: status)
}
}
}
extension Operations.GetButlerTasksErrors: Codable {
enum CodingKeys: String, CodingKey {
case code
case message
case status
}
public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
self._code = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .code) ?? DecimalSerialized<Double?>(wrappedValue: nil)
self.message = try container.decodeIfPresent(String.self, forKey: .message)
self._status = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .status) ?? DecimalSerialized<Double?>(wrappedValue: nil)
}
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
if self.code != nil {
try container.encode(self._code, forKey: .code)
}
try container.encodeIfPresent(self.message, forKey: .message)
if self.status != nil {
try container.encode(self._status, forKey: .status)
}
}
}
extension Operations.GetButlerTasksErrors {
var codeWrapper: DecimalSerialized<Double?> {
return _code
}
var statusWrapper: DecimalSerialized<Double?> {
return _status
}
}

View File

@@ -0,0 +1,34 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A response model
public enum GetButlerTasksResponse {
case empty
case twoHundredApplicationJsonObject(Operations.GetButlerTasksResponseBody)
case fourHundredAndOneApplicationJsonObject(Operations.GetButlerTasksButlerResponseBody)
var isEmpty: Bool {
if case .empty = self {
return true
} else {
return false
}
}
public func twoHundredApplicationJsonObject() throws -> Operations.GetButlerTasksResponseBody {
guard case .twoHundredApplicationJsonObject(let value) = self else {
throw PlexswiftError.missingResponseData
}
return value
}
public func fourHundredAndOneApplicationJsonObject() throws -> Operations.GetButlerTasksButlerResponseBody {
guard case .fourHundredAndOneApplicationJsonObject(let value) = self else {
throw PlexswiftError.missingResponseData
}
return value
}
}
}

View File

@@ -0,0 +1,24 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// All butler tasks
public struct GetButlerTasksResponseBody {
public let butlerTasks: Operations.ButlerTasks?
/// Creates an object with the specified parameters
///
///
public init(butlerTasks: Operations.ButlerTasks? = nil) {
self.butlerTasks = butlerTasks
}
}
}
extension Operations.GetButlerTasksResponseBody: Codable {
enum CodingKeys: String, CodingKey {
case butlerTasks = "ButlerTasks"
}
}

View File

@@ -0,0 +1,58 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct GetCommonLibraryItemsErrors {
@DecimalSerialized
public private(set) var code: Double?
public let message: String?
@DecimalSerialized
public private(set) var status: Double?
/// Creates an object with the specified parameters
///
///
public init(code: Double? = nil, message: String? = nil, status: Double? = nil) {
self._code = DecimalSerialized<Double?>(wrappedValue: code)
self.message = message
self._status = DecimalSerialized<Double?>(wrappedValue: status)
}
}
}
extension Operations.GetCommonLibraryItemsErrors: Codable {
enum CodingKeys: String, CodingKey {
case code
case message
case status
}
public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
self._code = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .code) ?? DecimalSerialized<Double?>(wrappedValue: nil)
self.message = try container.decodeIfPresent(String.self, forKey: .message)
self._status = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .status) ?? DecimalSerialized<Double?>(wrappedValue: nil)
}
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
if self.code != nil {
try container.encode(self._code, forKey: .code)
}
try container.encodeIfPresent(self.message, forKey: .message)
if self.status != nil {
try container.encode(self._status, forKey: .status)
}
}
}
extension Operations.GetCommonLibraryItemsErrors {
var codeWrapper: DecimalSerialized<Double?> {
return _code
}
var statusWrapper: DecimalSerialized<Double?> {
return _status
}
}

View File

@@ -0,0 +1,37 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct GetCommonLibraryItemsRequest: APIValue {
/// the Id of the library to query
@DecimalSerialized
public private(set) var sectionId: Double
/// item type
@DecimalSerialized
public private(set) var type: Double
/// the filter parameter
public let filter: String?
/// Creates an object with the specified parameters
///
/// - Parameter sectionId: the Id of the library to query
/// - Parameter type: item type
/// - Parameter filter: the filter parameter
///
public init(sectionId: Double, type: Double, filter: String? = nil) {
self._sectionId = DecimalSerialized<Double>(wrappedValue: sectionId)
self._type = DecimalSerialized<Double>(wrappedValue: type)
self.filter = filter
}
}
}
extension Operations.GetCommonLibraryItemsRequest {
var sectionIdWrapper: DecimalSerialized<Double> {
return _sectionId
}
var typeWrapper: DecimalSerialized<Double> {
return _type
}
}

View File

@@ -0,0 +1,26 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A response model
public enum GetCommonLibraryItemsResponse {
case empty
case object(Operations.GetCommonLibraryItemsResponseBody)
var isEmpty: Bool {
if case .empty = self {
return true
} else {
return false
}
}
public func object() throws -> Operations.GetCommonLibraryItemsResponseBody {
guard case .object(let value) = self else {
throw PlexswiftError.missingResponseData
}
return value
}
}
}

View File

@@ -0,0 +1,24 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
public struct GetCommonLibraryItemsResponseBody {
public let errors: [Operations.GetCommonLibraryItemsErrors]?
/// Creates an object with the specified parameters
///
///
public init(errors: [Operations.GetCommonLibraryItemsErrors]? = nil) {
self.errors = errors
}
}
}
extension Operations.GetCommonLibraryItemsResponseBody: Codable {
enum CodingKeys: String, CodingKey {
case errors
}
}

View File

@@ -0,0 +1,58 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct GetDevicesErrors {
@DecimalSerialized
public private(set) var code: Double?
public let message: String?
@DecimalSerialized
public private(set) var status: Double?
/// Creates an object with the specified parameters
///
///
public init(code: Double? = nil, message: String? = nil, status: Double? = nil) {
self._code = DecimalSerialized<Double?>(wrappedValue: code)
self.message = message
self._status = DecimalSerialized<Double?>(wrappedValue: status)
}
}
}
extension Operations.GetDevicesErrors: Codable {
enum CodingKeys: String, CodingKey {
case code
case message
case status
}
public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
self._code = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .code) ?? DecimalSerialized<Double?>(wrappedValue: nil)
self.message = try container.decodeIfPresent(String.self, forKey: .message)
self._status = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .status) ?? DecimalSerialized<Double?>(wrappedValue: nil)
}
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
if self.code != nil {
try container.encode(self._code, forKey: .code)
}
try container.encodeIfPresent(self.message, forKey: .message)
if self.status != nil {
try container.encode(self._status, forKey: .status)
}
}
}
extension Operations.GetDevicesErrors {
var codeWrapper: DecimalSerialized<Double?> {
return _code
}
var statusWrapper: DecimalSerialized<Double?> {
return _status
}
}

View File

@@ -0,0 +1,52 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct GetDevicesMediaContainer {
public let device: [Operations.Device]?
public let identifier: String?
@DecimalSerialized
public private(set) var size: Double?
/// Creates an object with the specified parameters
///
///
public init(device: [Operations.Device]? = nil, identifier: String? = nil, size: Double? = nil) {
self.device = device
self.identifier = identifier
self._size = DecimalSerialized<Double?>(wrappedValue: size)
}
}
}
extension Operations.GetDevicesMediaContainer: Codable {
enum CodingKeys: String, CodingKey {
case device = "Device"
case identifier
case size
}
public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
self.device = try container.decodeIfPresent([Operations.Device].self, forKey: .device)
self.identifier = try container.decodeIfPresent(String.self, forKey: .identifier)
self._size = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .size) ?? DecimalSerialized<Double?>(wrappedValue: nil)
}
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(self.device, forKey: .device)
try container.encodeIfPresent(self.identifier, forKey: .identifier)
if self.size != nil {
try container.encode(self._size, forKey: .size)
}
}
}
extension Operations.GetDevicesMediaContainer {
var sizeWrapper: DecimalSerialized<Double?> {
return _size
}
}

View File

@@ -0,0 +1,34 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A response model
public enum GetDevicesResponse {
case empty
case twoHundredApplicationJsonObject(Operations.GetDevicesResponseBody)
case fourHundredAndOneApplicationJsonObject(Operations.GetDevicesServerResponseBody)
var isEmpty: Bool {
if case .empty = self {
return true
} else {
return false
}
}
public func twoHundredApplicationJsonObject() throws -> Operations.GetDevicesResponseBody {
guard case .twoHundredApplicationJsonObject(let value) = self else {
throw PlexswiftError.missingResponseData
}
return value
}
public func fourHundredAndOneApplicationJsonObject() throws -> Operations.GetDevicesServerResponseBody {
guard case .fourHundredAndOneApplicationJsonObject(let value) = self else {
throw PlexswiftError.missingResponseData
}
return value
}
}
}

View File

@@ -0,0 +1,24 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// Devices
public struct GetDevicesResponseBody {
public let mediaContainer: Operations.GetDevicesMediaContainer?
/// Creates an object with the specified parameters
///
///
public init(mediaContainer: Operations.GetDevicesMediaContainer? = nil) {
self.mediaContainer = mediaContainer
}
}
}
extension Operations.GetDevicesResponseBody: Codable {
enum CodingKeys: String, CodingKey {
case mediaContainer = "MediaContainer"
}
}

View File

@@ -0,0 +1,24 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
public struct GetDevicesServerResponseBody {
public let errors: [Operations.GetDevicesErrors]?
/// Creates an object with the specified parameters
///
///
public init(errors: [Operations.GetDevicesErrors]? = nil) {
self.errors = errors
}
}
}
extension Operations.GetDevicesServerResponseBody: Codable {
enum CodingKeys: String, CodingKey {
case errors
}
}

View File

@@ -0,0 +1,58 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct GetFileHashErrors {
@DecimalSerialized
public private(set) var code: Double?
public let message: String?
@DecimalSerialized
public private(set) var status: Double?
/// Creates an object with the specified parameters
///
///
public init(code: Double? = nil, message: String? = nil, status: Double? = nil) {
self._code = DecimalSerialized<Double?>(wrappedValue: code)
self.message = message
self._status = DecimalSerialized<Double?>(wrappedValue: status)
}
}
}
extension Operations.GetFileHashErrors: Codable {
enum CodingKeys: String, CodingKey {
case code
case message
case status
}
public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
self._code = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .code) ?? DecimalSerialized<Double?>(wrappedValue: nil)
self.message = try container.decodeIfPresent(String.self, forKey: .message)
self._status = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .status) ?? DecimalSerialized<Double?>(wrappedValue: nil)
}
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
if self.code != nil {
try container.encode(self._code, forKey: .code)
}
try container.encodeIfPresent(self.message, forKey: .message)
if self.status != nil {
try container.encode(self._status, forKey: .status)
}
}
}
extension Operations.GetFileHashErrors {
var codeWrapper: DecimalSerialized<Double?> {
return _code
}
var statusWrapper: DecimalSerialized<Double?> {
return _status
}
}

View File

@@ -0,0 +1,29 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct GetFileHashRequest: APIValue {
/// This is the path to the local file, must be prefixed by `file://`
public let url: String
/// Item type
@DecimalSerialized
public private(set) var type: Double?
/// Creates an object with the specified parameters
///
/// - Parameter url: This is the path to the local file, must be prefixed by `file://`
/// - Parameter type: Item type
///
public init(url: String, type: Double? = nil) {
self.url = url
self._type = DecimalSerialized<Double?>(wrappedValue: type)
}
}
}
extension Operations.GetFileHashRequest {
var typeWrapper: DecimalSerialized<Double?> {
return _type
}
}

View File

@@ -0,0 +1,26 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A response model
public enum GetFileHashResponse {
case empty
case object(Operations.GetFileHashResponseBody)
var isEmpty: Bool {
if case .empty = self {
return true
} else {
return false
}
}
public func object() throws -> Operations.GetFileHashResponseBody {
guard case .object(let value) = self else {
throw PlexswiftError.missingResponseData
}
return value
}
}
}

View File

@@ -0,0 +1,24 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
public struct GetFileHashResponseBody {
public let errors: [Operations.GetFileHashErrors]?
/// Creates an object with the specified parameters
///
///
public init(errors: [Operations.GetFileHashErrors]? = nil) {
self.errors = errors
}
}
}
extension Operations.GetFileHashResponseBody: Codable {
enum CodingKeys: String, CodingKey {
case errors
}
}

View File

@@ -0,0 +1,58 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct GetGlobalHubsErrors {
@DecimalSerialized
public private(set) var code: Double?
public let message: String?
@DecimalSerialized
public private(set) var status: Double?
/// Creates an object with the specified parameters
///
///
public init(code: Double? = nil, message: String? = nil, status: Double? = nil) {
self._code = DecimalSerialized<Double?>(wrappedValue: code)
self.message = message
self._status = DecimalSerialized<Double?>(wrappedValue: status)
}
}
}
extension Operations.GetGlobalHubsErrors: Codable {
enum CodingKeys: String, CodingKey {
case code
case message
case status
}
public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
self._code = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .code) ?? DecimalSerialized<Double?>(wrappedValue: nil)
self.message = try container.decodeIfPresent(String.self, forKey: .message)
self._status = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .status) ?? DecimalSerialized<Double?>(wrappedValue: nil)
}
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
if self.code != nil {
try container.encode(self._code, forKey: .code)
}
try container.encodeIfPresent(self.message, forKey: .message)
if self.status != nil {
try container.encode(self._status, forKey: .status)
}
}
}
extension Operations.GetGlobalHubsErrors {
var codeWrapper: DecimalSerialized<Double?> {
return _code
}
var statusWrapper: DecimalSerialized<Double?> {
return _status
}
}

View File

@@ -0,0 +1,29 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct GetGlobalHubsRequest: APIValue {
/// The number of items to return with each hub.
@DecimalSerialized
public private(set) var count: Double?
/// Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added).
public let onlyTransient: Operations.OnlyTransient?
/// Creates an object with the specified parameters
///
/// - Parameter count: The number of items to return with each hub.
/// - Parameter onlyTransient: Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added).
///
public init(count: Double? = nil, onlyTransient: Operations.OnlyTransient? = nil) {
self._count = DecimalSerialized<Double?>(wrappedValue: count)
self.onlyTransient = onlyTransient
}
}
}
extension Operations.GetGlobalHubsRequest {
var countWrapper: DecimalSerialized<Double?> {
return _count
}
}

View File

@@ -0,0 +1,26 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A response model
public enum GetGlobalHubsResponse {
case empty
case object(Operations.GetGlobalHubsResponseBody)
var isEmpty: Bool {
if case .empty = self {
return true
} else {
return false
}
}
public func object() throws -> Operations.GetGlobalHubsResponseBody {
guard case .object(let value) = self else {
throw PlexswiftError.missingResponseData
}
return value
}
}
}

View File

@@ -0,0 +1,24 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
public struct GetGlobalHubsResponseBody {
public let errors: [Operations.GetGlobalHubsErrors]?
/// Creates an object with the specified parameters
///
///
public init(errors: [Operations.GetGlobalHubsErrors]? = nil) {
self.errors = errors
}
}
}
extension Operations.GetGlobalHubsResponseBody: Codable {
enum CodingKeys: String, CodingKey {
case errors
}
}

View File

@@ -0,0 +1,58 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct GetLatestLibraryItemsErrors {
@DecimalSerialized
public private(set) var code: Double?
public let message: String?
@DecimalSerialized
public private(set) var status: Double?
/// Creates an object with the specified parameters
///
///
public init(code: Double? = nil, message: String? = nil, status: Double? = nil) {
self._code = DecimalSerialized<Double?>(wrappedValue: code)
self.message = message
self._status = DecimalSerialized<Double?>(wrappedValue: status)
}
}
}
extension Operations.GetLatestLibraryItemsErrors: Codable {
enum CodingKeys: String, CodingKey {
case code
case message
case status
}
public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
self._code = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .code) ?? DecimalSerialized<Double?>(wrappedValue: nil)
self.message = try container.decodeIfPresent(String.self, forKey: .message)
self._status = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .status) ?? DecimalSerialized<Double?>(wrappedValue: nil)
}
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
if self.code != nil {
try container.encode(self._code, forKey: .code)
}
try container.encodeIfPresent(self.message, forKey: .message)
if self.status != nil {
try container.encode(self._status, forKey: .status)
}
}
}
extension Operations.GetLatestLibraryItemsErrors {
var codeWrapper: DecimalSerialized<Double?> {
return _code
}
var statusWrapper: DecimalSerialized<Double?> {
return _status
}
}

View File

@@ -0,0 +1,37 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct GetLatestLibraryItemsRequest: APIValue {
/// the Id of the library to query
@DecimalSerialized
public private(set) var sectionId: Double
/// item type
@DecimalSerialized
public private(set) var type: Double
/// the filter parameter
public let filter: String?
/// Creates an object with the specified parameters
///
/// - Parameter sectionId: the Id of the library to query
/// - Parameter type: item type
/// - Parameter filter: the filter parameter
///
public init(sectionId: Double, type: Double, filter: String? = nil) {
self._sectionId = DecimalSerialized<Double>(wrappedValue: sectionId)
self._type = DecimalSerialized<Double>(wrappedValue: type)
self.filter = filter
}
}
}
extension Operations.GetLatestLibraryItemsRequest {
var sectionIdWrapper: DecimalSerialized<Double> {
return _sectionId
}
var typeWrapper: DecimalSerialized<Double> {
return _type
}
}

View File

@@ -0,0 +1,26 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A response model
public enum GetLatestLibraryItemsResponse {
case empty
case object(Operations.GetLatestLibraryItemsResponseBody)
var isEmpty: Bool {
if case .empty = self {
return true
} else {
return false
}
}
public func object() throws -> Operations.GetLatestLibraryItemsResponseBody {
guard case .object(let value) = self else {
throw PlexswiftError.missingResponseData
}
return value
}
}
}

View File

@@ -0,0 +1,24 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
public struct GetLatestLibraryItemsResponseBody {
public let errors: [Operations.GetLatestLibraryItemsErrors]?
/// Creates an object with the specified parameters
///
///
public init(errors: [Operations.GetLatestLibraryItemsErrors]? = nil) {
self.errors = errors
}
}
}
extension Operations.GetLatestLibraryItemsResponseBody: Codable {
enum CodingKeys: String, CodingKey {
case errors
}
}

View File

@@ -0,0 +1,58 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct GetLibrariesErrors {
@DecimalSerialized
public private(set) var code: Double?
public let message: String?
@DecimalSerialized
public private(set) var status: Double?
/// Creates an object with the specified parameters
///
///
public init(code: Double? = nil, message: String? = nil, status: Double? = nil) {
self._code = DecimalSerialized<Double?>(wrappedValue: code)
self.message = message
self._status = DecimalSerialized<Double?>(wrappedValue: status)
}
}
}
extension Operations.GetLibrariesErrors: Codable {
enum CodingKeys: String, CodingKey {
case code
case message
case status
}
public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
self._code = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .code) ?? DecimalSerialized<Double?>(wrappedValue: nil)
self.message = try container.decodeIfPresent(String.self, forKey: .message)
self._status = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .status) ?? DecimalSerialized<Double?>(wrappedValue: nil)
}
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
if self.code != nil {
try container.encode(self._code, forKey: .code)
}
try container.encodeIfPresent(self.message, forKey: .message)
if self.status != nil {
try container.encode(self._status, forKey: .status)
}
}
}
extension Operations.GetLibrariesErrors {
var codeWrapper: DecimalSerialized<Double?> {
return _code
}
var statusWrapper: DecimalSerialized<Double?> {
return _status
}
}

View File

@@ -0,0 +1,26 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A response model
public enum GetLibrariesResponse {
case empty
case object(Operations.GetLibrariesResponseBody)
var isEmpty: Bool {
if case .empty = self {
return true
} else {
return false
}
}
public func object() throws -> Operations.GetLibrariesResponseBody {
guard case .object(let value) = self else {
throw PlexswiftError.missingResponseData
}
return value
}
}
}

View File

@@ -0,0 +1,24 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
public struct GetLibrariesResponseBody {
public let errors: [Operations.GetLibrariesErrors]?
/// Creates an object with the specified parameters
///
///
public init(errors: [Operations.GetLibrariesErrors]? = nil) {
self.errors = errors
}
}
}
extension Operations.GetLibrariesResponseBody: Codable {
enum CodingKeys: String, CodingKey {
case errors
}
}

View File

@@ -0,0 +1,58 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct GetLibraryErrors {
@DecimalSerialized
public private(set) var code: Double?
public let message: String?
@DecimalSerialized
public private(set) var status: Double?
/// Creates an object with the specified parameters
///
///
public init(code: Double? = nil, message: String? = nil, status: Double? = nil) {
self._code = DecimalSerialized<Double?>(wrappedValue: code)
self.message = message
self._status = DecimalSerialized<Double?>(wrappedValue: status)
}
}
}
extension Operations.GetLibraryErrors: Codable {
enum CodingKeys: String, CodingKey {
case code
case message
case status
}
public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
self._code = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .code) ?? DecimalSerialized<Double?>(wrappedValue: nil)
self.message = try container.decodeIfPresent(String.self, forKey: .message)
self._status = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .status) ?? DecimalSerialized<Double?>(wrappedValue: nil)
}
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
if self.code != nil {
try container.encode(self._code, forKey: .code)
}
try container.encodeIfPresent(self.message, forKey: .message)
if self.status != nil {
try container.encode(self._status, forKey: .status)
}
}
}
extension Operations.GetLibraryErrors {
var codeWrapper: DecimalSerialized<Double?> {
return _code
}
var statusWrapper: DecimalSerialized<Double?> {
return _status
}
}

View File

@@ -0,0 +1,58 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct GetLibraryHubsErrors {
@DecimalSerialized
public private(set) var code: Double?
public let message: String?
@DecimalSerialized
public private(set) var status: Double?
/// Creates an object with the specified parameters
///
///
public init(code: Double? = nil, message: String? = nil, status: Double? = nil) {
self._code = DecimalSerialized<Double?>(wrappedValue: code)
self.message = message
self._status = DecimalSerialized<Double?>(wrappedValue: status)
}
}
}
extension Operations.GetLibraryHubsErrors: Codable {
enum CodingKeys: String, CodingKey {
case code
case message
case status
}
public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
self._code = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .code) ?? DecimalSerialized<Double?>(wrappedValue: nil)
self.message = try container.decodeIfPresent(String.self, forKey: .message)
self._status = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .status) ?? DecimalSerialized<Double?>(wrappedValue: nil)
}
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
if self.code != nil {
try container.encode(self._code, forKey: .code)
}
try container.encodeIfPresent(self.message, forKey: .message)
if self.status != nil {
try container.encode(self._status, forKey: .status)
}
}
}
extension Operations.GetLibraryHubsErrors {
var codeWrapper: DecimalSerialized<Double?> {
return _code
}
var statusWrapper: DecimalSerialized<Double?> {
return _status
}
}

View File

@@ -0,0 +1,37 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct GetLibraryHubsRequest: APIValue {
/// the Id of the library to query
@DecimalSerialized
public private(set) var sectionId: Double
/// The number of items to return with each hub.
@DecimalSerialized
public private(set) var count: Double?
/// Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added).
public let onlyTransient: Operations.QueryParamOnlyTransient?
/// Creates an object with the specified parameters
///
/// - Parameter sectionId: the Id of the library to query
/// - Parameter count: The number of items to return with each hub.
/// - Parameter onlyTransient: Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added).
///
public init(sectionId: Double, count: Double? = nil, onlyTransient: Operations.QueryParamOnlyTransient? = nil) {
self._sectionId = DecimalSerialized<Double>(wrappedValue: sectionId)
self._count = DecimalSerialized<Double?>(wrappedValue: count)
self.onlyTransient = onlyTransient
}
}
}
extension Operations.GetLibraryHubsRequest {
var sectionIdWrapper: DecimalSerialized<Double> {
return _sectionId
}
var countWrapper: DecimalSerialized<Double?> {
return _count
}
}

View File

@@ -0,0 +1,26 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A response model
public enum GetLibraryHubsResponse {
case empty
case object(Operations.GetLibraryHubsResponseBody)
var isEmpty: Bool {
if case .empty = self {
return true
} else {
return false
}
}
public func object() throws -> Operations.GetLibraryHubsResponseBody {
guard case .object(let value) = self else {
throw PlexswiftError.missingResponseData
}
return value
}
}
}

View File

@@ -0,0 +1,24 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
public struct GetLibraryHubsResponseBody {
public let errors: [Operations.GetLibraryHubsErrors]?
/// Creates an object with the specified parameters
///
///
public init(errors: [Operations.GetLibraryHubsErrors]? = nil) {
self.errors = errors
}
}
}
extension Operations.GetLibraryHubsResponseBody: Codable {
enum CodingKeys: String, CodingKey {
case errors
}
}

View File

@@ -0,0 +1,58 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct GetLibraryItemsErrors {
@DecimalSerialized
public private(set) var code: Double?
public let message: String?
@DecimalSerialized
public private(set) var status: Double?
/// Creates an object with the specified parameters
///
///
public init(code: Double? = nil, message: String? = nil, status: Double? = nil) {
self._code = DecimalSerialized<Double?>(wrappedValue: code)
self.message = message
self._status = DecimalSerialized<Double?>(wrappedValue: status)
}
}
}
extension Operations.GetLibraryItemsErrors: Codable {
enum CodingKeys: String, CodingKey {
case code
case message
case status
}
public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
self._code = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .code) ?? DecimalSerialized<Double?>(wrappedValue: nil)
self.message = try container.decodeIfPresent(String.self, forKey: .message)
self._status = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .status) ?? DecimalSerialized<Double?>(wrappedValue: nil)
}
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
if self.code != nil {
try container.encode(self._code, forKey: .code)
}
try container.encodeIfPresent(self.message, forKey: .message)
if self.status != nil {
try container.encode(self._status, forKey: .status)
}
}
}
extension Operations.GetLibraryItemsErrors {
var codeWrapper: DecimalSerialized<Double?> {
return _code
}
var statusWrapper: DecimalSerialized<Double?> {
return _status
}
}

View File

@@ -0,0 +1,37 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct GetLibraryItemsRequest: APIValue {
/// the Id of the library to query
@DecimalSerialized
public private(set) var sectionId: Double
/// the filter parameter
public let filter: String?
/// item type
@DecimalSerialized
public private(set) var type: Double?
/// Creates an object with the specified parameters
///
/// - Parameter sectionId: the Id of the library to query
/// - Parameter filter: the filter parameter
/// - Parameter type: item type
///
public init(sectionId: Double, filter: String? = nil, type: Double? = nil) {
self._sectionId = DecimalSerialized<Double>(wrappedValue: sectionId)
self.filter = filter
self._type = DecimalSerialized<Double?>(wrappedValue: type)
}
}
}
extension Operations.GetLibraryItemsRequest {
var sectionIdWrapper: DecimalSerialized<Double> {
return _sectionId
}
var typeWrapper: DecimalSerialized<Double?> {
return _type
}
}

View File

@@ -0,0 +1,26 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A response model
public enum GetLibraryItemsResponse {
case empty
case object(Operations.GetLibraryItemsResponseBody)
var isEmpty: Bool {
if case .empty = self {
return true
} else {
return false
}
}
public func object() throws -> Operations.GetLibraryItemsResponseBody {
guard case .object(let value) = self else {
throw PlexswiftError.missingResponseData
}
return value
}
}
}

View File

@@ -0,0 +1,24 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
public struct GetLibraryItemsResponseBody {
public let errors: [Operations.GetLibraryItemsErrors]?
/// Creates an object with the specified parameters
///
///
public init(errors: [Operations.GetLibraryItemsErrors]? = nil) {
self.errors = errors
}
}
}
extension Operations.GetLibraryItemsResponseBody: Codable {
enum CodingKeys: String, CodingKey {
case errors
}
}

View File

@@ -0,0 +1,33 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct GetLibraryRequest: APIValue {
/// the Id of the library to query
@DecimalSerialized
public private(set) var sectionId: Double
/// Whether or not to include details for a section (types, filters, and sorts).
/// Only exists for backwards compatibility, media providers other than the server libraries have it on always.
///
public let includeDetails: Operations.IncludeDetails?
/// Creates an object with the specified parameters
///
/// - Parameter sectionId: the Id of the library to query
/// - Parameter includeDetails: Whether or not to include details for a section (types, filters, and sorts).
/// Only exists for backwards compatibility, media providers other than the server libraries have it on always.
///
///
public init(sectionId: Double, includeDetails: Operations.IncludeDetails? = nil) {
self._sectionId = DecimalSerialized<Double>(wrappedValue: sectionId)
self.includeDetails = includeDetails
}
}
}
extension Operations.GetLibraryRequest {
var sectionIdWrapper: DecimalSerialized<Double> {
return _sectionId
}
}

View File

@@ -0,0 +1,26 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A response model
public enum GetLibraryResponse {
case empty
case object(Operations.GetLibraryResponseBody)
var isEmpty: Bool {
if case .empty = self {
return true
} else {
return false
}
}
public func object() throws -> Operations.GetLibraryResponseBody {
guard case .object(let value) = self else {
throw PlexswiftError.missingResponseData
}
return value
}
}
}

View File

@@ -0,0 +1,24 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
public struct GetLibraryResponseBody {
public let errors: [Operations.GetLibraryErrors]?
/// Creates an object with the specified parameters
///
///
public init(errors: [Operations.GetLibraryErrors]? = nil) {
self.errors = errors
}
}
}
extension Operations.GetLibraryResponseBody: Codable {
enum CodingKeys: String, CodingKey {
case errors
}
}

View File

@@ -0,0 +1,58 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct GetMetadataChildrenErrors {
@DecimalSerialized
public private(set) var code: Double?
public let message: String?
@DecimalSerialized
public private(set) var status: Double?
/// Creates an object with the specified parameters
///
///
public init(code: Double? = nil, message: String? = nil, status: Double? = nil) {
self._code = DecimalSerialized<Double?>(wrappedValue: code)
self.message = message
self._status = DecimalSerialized<Double?>(wrappedValue: status)
}
}
}
extension Operations.GetMetadataChildrenErrors: Codable {
enum CodingKeys: String, CodingKey {
case code
case message
case status
}
public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
self._code = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .code) ?? DecimalSerialized<Double?>(wrappedValue: nil)
self.message = try container.decodeIfPresent(String.self, forKey: .message)
self._status = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .status) ?? DecimalSerialized<Double?>(wrappedValue: nil)
}
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
if self.code != nil {
try container.encode(self._code, forKey: .code)
}
try container.encodeIfPresent(self.message, forKey: .message)
if self.status != nil {
try container.encode(self._status, forKey: .status)
}
}
}
extension Operations.GetMetadataChildrenErrors {
var codeWrapper: DecimalSerialized<Double?> {
return _code
}
var statusWrapper: DecimalSerialized<Double?> {
return _status
}
}

View File

@@ -0,0 +1,25 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct GetMetadataChildrenRequest: APIValue {
/// the id of the library item to return the children of.
@DecimalSerialized
public private(set) var ratingKey: Double
/// Creates an object with the specified parameters
///
/// - Parameter ratingKey: the id of the library item to return the children of.
///
public init(ratingKey: Double) {
self._ratingKey = DecimalSerialized<Double>(wrappedValue: ratingKey)
}
}
}
extension Operations.GetMetadataChildrenRequest {
var ratingKeyWrapper: DecimalSerialized<Double> {
return _ratingKey
}
}

View File

@@ -0,0 +1,26 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A response model
public enum GetMetadataChildrenResponse {
case empty
case object(Operations.GetMetadataChildrenResponseBody)
var isEmpty: Bool {
if case .empty = self {
return true
} else {
return false
}
}
public func object() throws -> Operations.GetMetadataChildrenResponseBody {
guard case .object(let value) = self else {
throw PlexswiftError.missingResponseData
}
return value
}
}
}

View File

@@ -0,0 +1,24 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
public struct GetMetadataChildrenResponseBody {
public let errors: [Operations.GetMetadataChildrenErrors]?
/// Creates an object with the specified parameters
///
///
public init(errors: [Operations.GetMetadataChildrenErrors]? = nil) {
self.errors = errors
}
}
}
extension Operations.GetMetadataChildrenResponseBody: Codable {
enum CodingKeys: String, CodingKey {
case errors
}
}

View File

@@ -0,0 +1,58 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct GetMetadataErrors {
@DecimalSerialized
public private(set) var code: Double?
public let message: String?
@DecimalSerialized
public private(set) var status: Double?
/// Creates an object with the specified parameters
///
///
public init(code: Double? = nil, message: String? = nil, status: Double? = nil) {
self._code = DecimalSerialized<Double?>(wrappedValue: code)
self.message = message
self._status = DecimalSerialized<Double?>(wrappedValue: status)
}
}
}
extension Operations.GetMetadataErrors: Codable {
enum CodingKeys: String, CodingKey {
case code
case message
case status
}
public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
self._code = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .code) ?? DecimalSerialized<Double?>(wrappedValue: nil)
self.message = try container.decodeIfPresent(String.self, forKey: .message)
self._status = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .status) ?? DecimalSerialized<Double?>(wrappedValue: nil)
}
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
if self.code != nil {
try container.encode(self._code, forKey: .code)
}
try container.encodeIfPresent(self.message, forKey: .message)
if self.status != nil {
try container.encode(self._status, forKey: .status)
}
}
}
extension Operations.GetMetadataErrors {
var codeWrapper: DecimalSerialized<Double?> {
return _code
}
var statusWrapper: DecimalSerialized<Double?> {
return _status
}
}

View File

@@ -0,0 +1,25 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct GetMetadataRequest: APIValue {
/// the id of the library item to return the children of.
@DecimalSerialized
public private(set) var ratingKey: Double
/// Creates an object with the specified parameters
///
/// - Parameter ratingKey: the id of the library item to return the children of.
///
public init(ratingKey: Double) {
self._ratingKey = DecimalSerialized<Double>(wrappedValue: ratingKey)
}
}
}
extension Operations.GetMetadataRequest {
var ratingKeyWrapper: DecimalSerialized<Double> {
return _ratingKey
}
}

View File

@@ -0,0 +1,26 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A response model
public enum GetMetadataResponse {
case empty
case object(Operations.GetMetadataResponseBody)
var isEmpty: Bool {
if case .empty = self {
return true
} else {
return false
}
}
public func object() throws -> Operations.GetMetadataResponseBody {
guard case .object(let value) = self else {
throw PlexswiftError.missingResponseData
}
return value
}
}
}

View File

@@ -0,0 +1,24 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
public struct GetMetadataResponseBody {
public let errors: [Operations.GetMetadataErrors]?
/// Creates an object with the specified parameters
///
///
public init(errors: [Operations.GetMetadataErrors]? = nil) {
self.errors = errors
}
}
}
extension Operations.GetMetadataResponseBody: Codable {
enum CodingKeys: String, CodingKey {
case errors
}
}

Some files were not shown because too many files have changed in this diff Show More