mirror of
https://github.com/LukeHagar/plexswift.git
synced 2025-12-09 12:47:44 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.406.0
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
lockVersion: 2.0.0
|
lockVersion: 2.0.0
|
||||||
id: 5d77204e-e413-4fd0-a14a-bad3aee2247a
|
id: 5d77204e-e413-4fd0-a14a-bad3aee2247a
|
||||||
management:
|
management:
|
||||||
docChecksum: 1ee2e5413af07e886e33659b9b269dd5
|
docChecksum: 23094f3a9fe02710a8628ad5456f5d42
|
||||||
docVersion: 0.0.3
|
docVersion: 0.0.3
|
||||||
speakeasyVersion: 1.405.6
|
speakeasyVersion: 1.405.6
|
||||||
generationVersion: 2.428.1
|
generationVersion: 2.428.1
|
||||||
releaseVersion: 0.8.7
|
releaseVersion: 0.8.9
|
||||||
configChecksum: e3cfda518d4246ba14b723e905211ba5
|
configChecksum: f95aabf50f0436288bf33b4a1d55aa17
|
||||||
repoURL: https://github.com/LukeHagar/plexswift.git
|
repoURL: https://github.com/LukeHagar/plexswift.git
|
||||||
features:
|
features:
|
||||||
swift:
|
swift:
|
||||||
@@ -1840,7 +1840,7 @@ examples:
|
|||||||
speakeasy-default-get-token-details:
|
speakeasy-default-get-token-details:
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
application/json: {"adsConsent": true, "adsConsentReminderAt": "2019-08-24T14:15:22Z", "adsConsentSetAt": "2019-08-24T14:15:22Z", "anonymous": false, "authToken": "CxoUzBTSV5hsxjTpFKaf", "backupCodesCreated": false, "confirmed": false, "country": "US", "email": "username@email.com", "emailOnlyAuth": false, "experimentalFeatures": false, "friendlyName": "friendlyUsername", "entitlements": ["[]"], "guest": false, "hasPassword": true, "home": false, "homeAdmin": false, "homeSize": 1, "id": 13692262, "joinedAt": 1556281940, "locale": null, "mailingListActive": false, "mailingListStatus": "active", "maxHomeSize": 15, "pin": "string", "profile": {"autoSelectAudio": true, "defaultAudioLanguage": "ja", "defaultSubtitleLanguage": "en", "autoSelectSubtitle": 1, "defaultSubtitleAccessibility": 1, "defaultSubtitleForced": 1, "watchedIndicator": 1, "mediaReviewsVisibility": 1}, "protected": false, "rememberExpiresAt": 1556281940, "restricted": false, "roles": ["string"], "scrobbleTypes": "", "services": [{"identifier": "metadata-dev", "endpoint": "https://epg.provider.plex.tv", "token": "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv", "secret": "string", "status": "online"}], "subscription": {"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}, "subscriptionDescription": "string", "subscriptions": [{"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}], "thumb": "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101", "title": "UsernameTitle", "twoFactorEnabled": false, "username": "Username", "uuid": "dae343c1f45beb4f", "attributionPartner": null}
|
application/json: {"adsConsent": true, "adsConsentReminderAt": 1556281940, "adsConsentSetAt": 1556281940, "anonymous": false, "authToken": "CxoUzBTSV5hsxjTpFKaf", "backupCodesCreated": false, "confirmed": false, "country": "US", "email": "username@email.com", "emailOnlyAuth": false, "experimentalFeatures": false, "friendlyName": "friendlyUsername", "entitlements": ["[]"], "guest": false, "hasPassword": true, "home": false, "homeAdmin": false, "homeSize": 1, "id": 13692262, "joinedAt": 1556281940, "locale": null, "mailingListActive": false, "mailingListStatus": "active", "maxHomeSize": 15, "pin": "string", "profile": {"autoSelectAudio": true, "defaultAudioLanguage": "ja", "defaultSubtitleLanguage": "en", "autoSelectSubtitle": 1, "defaultSubtitleAccessibility": 1, "defaultSubtitleForced": 1, "watchedIndicator": 1, "mediaReviewsVisibility": 1}, "protected": false, "rememberExpiresAt": 1556281940, "restricted": false, "roles": ["string"], "scrobbleTypes": "", "services": [{"identifier": "metadata-dev", "endpoint": "https://epg.provider.plex.tv", "token": "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv", "secret": "string", "status": "online"}], "subscription": {"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}, "subscriptionDescription": "string", "subscriptions": [{"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}], "thumb": "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101", "title": "UsernameTitle", "twoFactorEnabled": false, "username": "Username", "uuid": "dae343c1f45beb4f", "attributionPartner": null}
|
||||||
"400":
|
"400":
|
||||||
application/json: {"errors": []}
|
application/json: {"errors": []}
|
||||||
"401":
|
"401":
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ generation:
|
|||||||
auth:
|
auth:
|
||||||
oAuth2ClientCredentialsEnabled: true
|
oAuth2ClientCredentialsEnabled: true
|
||||||
swift:
|
swift:
|
||||||
version: 0.8.7
|
version: 0.8.9
|
||||||
author: LukeHagar
|
author: LukeHagar
|
||||||
description: Swift Client SDK Generated by Speakeasy
|
description: Swift Client SDK Generated by Speakeasy
|
||||||
imports:
|
imports:
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ sources:
|
|||||||
- main
|
- main
|
||||||
plexapi:
|
plexapi:
|
||||||
sourceNamespace: plexapi
|
sourceNamespace: plexapi
|
||||||
sourceRevisionDigest: sha256:c6ab8f13847c7cdc4ab3752f517164d7da08266726255aa0d614b1eaea66fb0e
|
sourceRevisionDigest: sha256:8d2eb3adbd97ce5976291c4b123d1eadfef62d1f6bf86c6a18bcd89443f2f390
|
||||||
sourceBlobDigest: sha256:64c7694915a0828aeb256d10d2fa0ea477681785b818916b6681be8cc5ffb93b
|
sourceBlobDigest: sha256:3e48471b7e058840fc598ccd75b2cbf8187961c7e625fe7b606555ce9a9bf109
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- main
|
- main
|
||||||
@@ -18,10 +18,10 @@ targets:
|
|||||||
plexswift:
|
plexswift:
|
||||||
source: plexapi
|
source: plexapi
|
||||||
sourceNamespace: plexapi
|
sourceNamespace: plexapi
|
||||||
sourceRevisionDigest: sha256:c6ab8f13847c7cdc4ab3752f517164d7da08266726255aa0d614b1eaea66fb0e
|
sourceRevisionDigest: sha256:8d2eb3adbd97ce5976291c4b123d1eadfef62d1f6bf86c6a18bcd89443f2f390
|
||||||
sourceBlobDigest: sha256:64c7694915a0828aeb256d10d2fa0ea477681785b818916b6681be8cc5ffb93b
|
sourceBlobDigest: sha256:3e48471b7e058840fc598ccd75b2cbf8187961c7e625fe7b606555ce9a9bf109
|
||||||
codeSamplesNamespace: code-samples-swift-plexswift
|
codeSamplesNamespace: code-samples-swift-plexswift
|
||||||
codeSamplesRevisionDigest: sha256:ceb91e4d90a11c0893bbeda90ab2c216f3d5575443f3ea243225243646ef2d9b
|
codeSamplesRevisionDigest: sha256:4a8a68b1e1a16b4fdb35acb5e42d50141a8c04f5aa7a91af05f4498c0a7a0116
|
||||||
workflow:
|
workflow:
|
||||||
workflowVersion: 1.0.0
|
workflowVersion: 1.0.0
|
||||||
speakeasyVersion: latest
|
speakeasyVersion: latest
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ You can add `plexswift` to your project directly in Xcode `(File > Add Packages.
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
dependencies: [
|
dependencies: [
|
||||||
.package(url: "https://github.com/LukeHagar/plexswift.git", .upToNextMajor(from: "0.8.7"))
|
.package(url: "https://github.com/LukeHagar/plexswift.git", .upToNextMajor(from: "0.8.9"))
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
<!-- End SDK Installation [installation] -->
|
<!-- End SDK Installation [installation] -->
|
||||||
|
|||||||
12
RELEASES.md
12
RELEASES.md
@@ -742,4 +742,14 @@ Based on:
|
|||||||
### Generated
|
### Generated
|
||||||
- [swift v0.8.7] .
|
- [swift v0.8.7] .
|
||||||
### Releases
|
### Releases
|
||||||
- [Swift Package Manager v0.8.7] https://github.com/LukeHagar/plexswift/releases/tag/v0.8.7 - .
|
- [Swift Package Manager v0.8.7] https://github.com/LukeHagar/plexswift/releases/tag/v0.8.7 - .
|
||||||
|
|
||||||
|
## 2024-10-04 00:08:07
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.406.0 (2.429.0) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [swift v0.8.9] .
|
||||||
|
### Releases
|
||||||
|
- [Swift Package Manager v0.8.9] https://github.com/LukeHagar/plexswift/releases/tag/v0.8.9 - .
|
||||||
@@ -15,7 +15,6 @@ extension Operations {
|
|||||||
public let librarySectionUUID: String
|
public let librarySectionUUID: String
|
||||||
public let mediaTagPrefix: String
|
public let mediaTagPrefix: String
|
||||||
public let mediaTagVersion: Int
|
public let mediaTagVersion: Int
|
||||||
public let metadata: [Operations.GetLibraryItemsMetadata]
|
|
||||||
public let offset: Int
|
public let offset: Int
|
||||||
public let size: Int
|
public let size: Int
|
||||||
public let thumb: String
|
public let thumb: String
|
||||||
@@ -27,6 +26,7 @@ extension Operations {
|
|||||||
/// The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
/// The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
||||||
///
|
///
|
||||||
public let meta: Operations.GetLibraryItemsMeta?
|
public let meta: Operations.GetLibraryItemsMeta?
|
||||||
|
public let metadata: [Operations.GetLibraryItemsMetadata]?
|
||||||
public let mixedParents: Bool?
|
public let mixedParents: Bool?
|
||||||
public let nocache: Bool?
|
public let nocache: Bool?
|
||||||
public let type: [Operations.GetLibraryItemsType]?
|
public let type: [Operations.GetLibraryItemsType]?
|
||||||
@@ -37,7 +37,7 @@ extension Operations {
|
|||||||
/// - Parameter meta: The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
/// - Parameter meta: The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
||||||
///
|
///
|
||||||
///
|
///
|
||||||
public init(allowSync: Bool, art: String, content: String, identifier: String, librarySectionID: Int, librarySectionTitle: String, librarySectionUUID: String, mediaTagPrefix: String, mediaTagVersion: Int, metadata: [Operations.GetLibraryItemsMetadata], offset: Int, size: Int, thumb: String, title1: String, title2: String, totalSize: Int, viewGroup: String, fieldType: [Operations.GetLibraryItemsFieldType]? = nil, meta: Operations.GetLibraryItemsMeta? = nil, mixedParents: Bool? = nil, nocache: Bool? = nil, type: [Operations.GetLibraryItemsType]? = nil, viewMode: Int? = nil) {
|
public init(allowSync: Bool, art: String, content: String, identifier: String, librarySectionID: Int, librarySectionTitle: String, librarySectionUUID: String, mediaTagPrefix: String, mediaTagVersion: Int, offset: Int, size: Int, thumb: String, title1: String, title2: String, totalSize: Int, viewGroup: String, fieldType: [Operations.GetLibraryItemsFieldType]? = nil, meta: Operations.GetLibraryItemsMeta? = nil, metadata: [Operations.GetLibraryItemsMetadata]? = nil, mixedParents: Bool? = nil, nocache: Bool? = nil, type: [Operations.GetLibraryItemsType]? = nil, viewMode: Int? = nil) {
|
||||||
self.allowSync = allowSync
|
self.allowSync = allowSync
|
||||||
self.art = art
|
self.art = art
|
||||||
self.content = content
|
self.content = content
|
||||||
@@ -47,7 +47,6 @@ extension Operations {
|
|||||||
self.librarySectionUUID = librarySectionUUID
|
self.librarySectionUUID = librarySectionUUID
|
||||||
self.mediaTagPrefix = mediaTagPrefix
|
self.mediaTagPrefix = mediaTagPrefix
|
||||||
self.mediaTagVersion = mediaTagVersion
|
self.mediaTagVersion = mediaTagVersion
|
||||||
self.metadata = metadata
|
|
||||||
self.offset = offset
|
self.offset = offset
|
||||||
self.size = size
|
self.size = size
|
||||||
self.thumb = thumb
|
self.thumb = thumb
|
||||||
@@ -57,6 +56,7 @@ extension Operations {
|
|||||||
self.viewGroup = viewGroup
|
self.viewGroup = viewGroup
|
||||||
self.fieldType = fieldType
|
self.fieldType = fieldType
|
||||||
self.meta = meta
|
self.meta = meta
|
||||||
|
self.metadata = metadata
|
||||||
self.mixedParents = mixedParents
|
self.mixedParents = mixedParents
|
||||||
self.nocache = nocache
|
self.nocache = nocache
|
||||||
self.type = type
|
self.type = type
|
||||||
@@ -75,7 +75,6 @@ extension Operations.GetLibraryItemsMediaContainer: Codable {
|
|||||||
case librarySectionUUID
|
case librarySectionUUID
|
||||||
case mediaTagPrefix
|
case mediaTagPrefix
|
||||||
case mediaTagVersion
|
case mediaTagVersion
|
||||||
case metadata = "Metadata"
|
|
||||||
case offset
|
case offset
|
||||||
case size
|
case size
|
||||||
case thumb
|
case thumb
|
||||||
@@ -85,6 +84,7 @@ extension Operations.GetLibraryItemsMediaContainer: Codable {
|
|||||||
case viewGroup
|
case viewGroup
|
||||||
case fieldType = "FieldType"
|
case fieldType = "FieldType"
|
||||||
case meta = "Meta"
|
case meta = "Meta"
|
||||||
|
case metadata = "Metadata"
|
||||||
case mixedParents
|
case mixedParents
|
||||||
case nocache
|
case nocache
|
||||||
case type = "Type"
|
case type = "Type"
|
||||||
|
|||||||
@@ -7,12 +7,8 @@ extension Operations {
|
|||||||
public struct GetTokenDetailsUserPlexAccount {
|
public struct GetTokenDetailsUserPlexAccount {
|
||||||
/// Unknown
|
/// Unknown
|
||||||
public let adsConsent: Bool
|
public let adsConsent: Bool
|
||||||
/// Unknown
|
public let adsConsentReminderAt: Int
|
||||||
@DateTime
|
public let adsConsentSetAt: Int
|
||||||
public private(set) var adsConsentReminderAt: Date
|
|
||||||
/// Unknown
|
|
||||||
@DateTime
|
|
||||||
public private(set) var adsConsentSetAt: Date
|
|
||||||
/// Unknown
|
/// Unknown
|
||||||
public let anonymous: Bool
|
public let anonymous: Bool
|
||||||
public let attributionPartner: String
|
public let attributionPartner: String
|
||||||
@@ -90,8 +86,6 @@ extension Operations {
|
|||||||
/// Creates an object with the specified parameters
|
/// Creates an object with the specified parameters
|
||||||
///
|
///
|
||||||
/// - Parameter adsConsent: Unknown
|
/// - Parameter adsConsent: Unknown
|
||||||
/// - Parameter adsConsentReminderAt: Unknown
|
|
||||||
/// - Parameter adsConsentSetAt: Unknown
|
|
||||||
/// - Parameter anonymous: Unknown
|
/// - Parameter anonymous: Unknown
|
||||||
/// - Parameter authToken: The account token
|
/// - Parameter authToken: The account token
|
||||||
/// - Parameter backupCodesCreated: If the two-factor authentication backup codes have been created
|
/// - Parameter backupCodesCreated: If the two-factor authentication backup codes have been created
|
||||||
@@ -128,10 +122,10 @@ extension Operations {
|
|||||||
/// - Parameter roles: [Might be removed] List of account roles. Plexpass membership listed here
|
/// - Parameter roles: [Might be removed] List of account roles. Plexpass membership listed here
|
||||||
///
|
///
|
||||||
@available(*, deprecated, message: "This initializer uses deprecated fields and will be removed in a future version.")
|
@available(*, deprecated, message: "This initializer uses deprecated fields and will be removed in a future version.")
|
||||||
public init(adsConsent: Bool, adsConsentReminderAt: Date, adsConsentSetAt: Date, anonymous: Bool, attributionPartner: String, authToken: String, backupCodesCreated: Bool, confirmed: Bool, country: String, email: String, emailOnlyAuth: Bool, entitlements: [String], experimentalFeatures: Bool, friendlyName: String, guest: Bool, hasPassword: Bool, home: Bool, homeAdmin: Bool, homeSize: Int, id: Int, joinedAt: Int, locale: String, mailingListActive: Bool, mailingListStatus: Operations.MailingListStatus, maxHomeSize: Int, profile: Operations.UserProfile, protected: Bool, rememberExpiresAt: Int, restricted: Bool, scrobbleTypes: String, services: [Operations.Services], subscription: Operations.Subscription, subscriptionDescription: String, subscriptions: [Operations.GetTokenDetailsSubscription], thumb: String, title: String, twoFactorEnabled: Bool, username: String, uuid: String, pin: String? = nil, roles: [String]? = nil) {
|
public init(adsConsent: Bool, adsConsentReminderAt: Int, adsConsentSetAt: Int, anonymous: Bool, attributionPartner: String, authToken: String, backupCodesCreated: Bool, confirmed: Bool, country: String, email: String, emailOnlyAuth: Bool, entitlements: [String], experimentalFeatures: Bool, friendlyName: String, guest: Bool, hasPassword: Bool, home: Bool, homeAdmin: Bool, homeSize: Int, id: Int, joinedAt: Int, locale: String, mailingListActive: Bool, mailingListStatus: Operations.MailingListStatus, maxHomeSize: Int, profile: Operations.UserProfile, protected: Bool, rememberExpiresAt: Int, restricted: Bool, scrobbleTypes: String, services: [Operations.Services], subscription: Operations.Subscription, subscriptionDescription: String, subscriptions: [Operations.GetTokenDetailsSubscription], thumb: String, title: String, twoFactorEnabled: Bool, username: String, uuid: String, pin: String? = nil, roles: [String]? = nil) {
|
||||||
self.adsConsent = adsConsent
|
self.adsConsent = adsConsent
|
||||||
self._adsConsentReminderAt = DateTime<Date>(wrappedValue: adsConsentReminderAt)
|
self.adsConsentReminderAt = adsConsentReminderAt
|
||||||
self._adsConsentSetAt = DateTime<Date>(wrappedValue: adsConsentSetAt)
|
self.adsConsentSetAt = adsConsentSetAt
|
||||||
self.anonymous = anonymous
|
self.anonymous = anonymous
|
||||||
self.attributionPartner = attributionPartner
|
self.attributionPartner = attributionPartner
|
||||||
self.authToken = authToken
|
self.authToken = authToken
|
||||||
@@ -217,103 +211,5 @@ extension Operations.GetTokenDetailsUserPlexAccount: Codable {
|
|||||||
case pin
|
case pin
|
||||||
case roles
|
case roles
|
||||||
}
|
}
|
||||||
|
|
||||||
public init(from decoder: Decoder) throws {
|
|
||||||
let container = try decoder.container(keyedBy: CodingKeys.self)
|
|
||||||
self.adsConsent = try container.decode(Bool.self, forKey: .adsConsent)
|
|
||||||
self._adsConsentReminderAt = try container.decode(DateTime<Date>.self, forKey: .adsConsentReminderAt)
|
|
||||||
self._adsConsentSetAt = try container.decode(DateTime<Date>.self, forKey: .adsConsentSetAt)
|
|
||||||
self.anonymous = try container.decode(Bool.self, forKey: .anonymous)
|
|
||||||
self.attributionPartner = try container.decode(String.self, forKey: .attributionPartner)
|
|
||||||
self.authToken = try container.decode(String.self, forKey: .authToken)
|
|
||||||
self.backupCodesCreated = try container.decode(Bool.self, forKey: .backupCodesCreated)
|
|
||||||
self.confirmed = try container.decode(Bool.self, forKey: .confirmed)
|
|
||||||
self.country = try container.decode(String.self, forKey: .country)
|
|
||||||
self.email = try container.decode(String.self, forKey: .email)
|
|
||||||
self.emailOnlyAuth = try container.decode(Bool.self, forKey: .emailOnlyAuth)
|
|
||||||
self.entitlements = try container.decode([String].self, forKey: .entitlements)
|
|
||||||
self.experimentalFeatures = try container.decode(Bool.self, forKey: .experimentalFeatures)
|
|
||||||
self.friendlyName = try container.decode(String.self, forKey: .friendlyName)
|
|
||||||
self.guest = try container.decode(Bool.self, forKey: .guest)
|
|
||||||
self.hasPassword = try container.decode(Bool.self, forKey: .hasPassword)
|
|
||||||
self.home = try container.decode(Bool.self, forKey: .home)
|
|
||||||
self.homeAdmin = try container.decode(Bool.self, forKey: .homeAdmin)
|
|
||||||
self.homeSize = try container.decode(Int.self, forKey: .homeSize)
|
|
||||||
self.id = try container.decode(Int.self, forKey: .id)
|
|
||||||
self.joinedAt = try container.decode(Int.self, forKey: .joinedAt)
|
|
||||||
self.locale = try container.decode(String.self, forKey: .locale)
|
|
||||||
self.mailingListActive = try container.decode(Bool.self, forKey: .mailingListActive)
|
|
||||||
self.mailingListStatus = try container.decode(Operations.MailingListStatus.self, forKey: .mailingListStatus)
|
|
||||||
self.maxHomeSize = try container.decode(Int.self, forKey: .maxHomeSize)
|
|
||||||
self.profile = try container.decode(Operations.UserProfile.self, forKey: .profile)
|
|
||||||
self.protected = try container.decode(Bool.self, forKey: .protected)
|
|
||||||
self.rememberExpiresAt = try container.decode(Int.self, forKey: .rememberExpiresAt)
|
|
||||||
self.restricted = try container.decode(Bool.self, forKey: .restricted)
|
|
||||||
self.scrobbleTypes = try container.decode(String.self, forKey: .scrobbleTypes)
|
|
||||||
self.services = try container.decode([Operations.Services].self, forKey: .services)
|
|
||||||
self.subscription = try container.decode(Operations.Subscription.self, forKey: .subscription)
|
|
||||||
self.subscriptionDescription = try container.decode(String.self, forKey: .subscriptionDescription)
|
|
||||||
self.subscriptions = try container.decode([Operations.GetTokenDetailsSubscription].self, forKey: .subscriptions)
|
|
||||||
self.thumb = try container.decode(String.self, forKey: .thumb)
|
|
||||||
self.title = try container.decode(String.self, forKey: .title)
|
|
||||||
self.twoFactorEnabled = try container.decode(Bool.self, forKey: .twoFactorEnabled)
|
|
||||||
self.username = try container.decode(String.self, forKey: .username)
|
|
||||||
self.uuid = try container.decode(String.self, forKey: .uuid)
|
|
||||||
self.pin = try container.decodeIfPresent(String.self, forKey: .pin)
|
|
||||||
self.roles = try container.decodeIfPresent([String].self, forKey: .roles)
|
|
||||||
}
|
|
||||||
|
|
||||||
public func encode(to encoder: Encoder) throws {
|
|
||||||
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
||||||
try container.encode(self.adsConsent, forKey: .adsConsent)
|
|
||||||
try container.encode(self._adsConsentReminderAt, forKey: .adsConsentReminderAt)
|
|
||||||
try container.encode(self._adsConsentSetAt, forKey: .adsConsentSetAt)
|
|
||||||
try container.encode(self.anonymous, forKey: .anonymous)
|
|
||||||
try container.encode(self.attributionPartner, forKey: .attributionPartner)
|
|
||||||
try container.encode(self.authToken, forKey: .authToken)
|
|
||||||
try container.encode(self.backupCodesCreated, forKey: .backupCodesCreated)
|
|
||||||
try container.encode(self.confirmed, forKey: .confirmed)
|
|
||||||
try container.encode(self.country, forKey: .country)
|
|
||||||
try container.encode(self.email, forKey: .email)
|
|
||||||
try container.encode(self.emailOnlyAuth, forKey: .emailOnlyAuth)
|
|
||||||
try container.encode(self.entitlements, forKey: .entitlements)
|
|
||||||
try container.encode(self.experimentalFeatures, forKey: .experimentalFeatures)
|
|
||||||
try container.encode(self.friendlyName, forKey: .friendlyName)
|
|
||||||
try container.encode(self.guest, forKey: .guest)
|
|
||||||
try container.encode(self.hasPassword, forKey: .hasPassword)
|
|
||||||
try container.encode(self.home, forKey: .home)
|
|
||||||
try container.encode(self.homeAdmin, forKey: .homeAdmin)
|
|
||||||
try container.encode(self.homeSize, forKey: .homeSize)
|
|
||||||
try container.encode(self.id, forKey: .id)
|
|
||||||
try container.encode(self.joinedAt, forKey: .joinedAt)
|
|
||||||
try container.encode(self.locale, forKey: .locale)
|
|
||||||
try container.encode(self.mailingListActive, forKey: .mailingListActive)
|
|
||||||
try container.encode(self.mailingListStatus, forKey: .mailingListStatus)
|
|
||||||
try container.encode(self.maxHomeSize, forKey: .maxHomeSize)
|
|
||||||
try container.encode(self.profile, forKey: .profile)
|
|
||||||
try container.encode(self.protected, forKey: .protected)
|
|
||||||
try container.encode(self.rememberExpiresAt, forKey: .rememberExpiresAt)
|
|
||||||
try container.encode(self.restricted, forKey: .restricted)
|
|
||||||
try container.encode(self.scrobbleTypes, forKey: .scrobbleTypes)
|
|
||||||
try container.encode(self.services, forKey: .services)
|
|
||||||
try container.encode(self.subscription, forKey: .subscription)
|
|
||||||
try container.encode(self.subscriptionDescription, forKey: .subscriptionDescription)
|
|
||||||
try container.encode(self.subscriptions, forKey: .subscriptions)
|
|
||||||
try container.encode(self.thumb, forKey: .thumb)
|
|
||||||
try container.encode(self.title, forKey: .title)
|
|
||||||
try container.encode(self.twoFactorEnabled, forKey: .twoFactorEnabled)
|
|
||||||
try container.encode(self.username, forKey: .username)
|
|
||||||
try container.encode(self.uuid, forKey: .uuid)
|
|
||||||
try container.encodeIfPresent(self.pin, forKey: .pin)
|
|
||||||
try container.encodeIfPresent(self.roles, forKey: .roles)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
extension Operations.GetTokenDetailsUserPlexAccount {
|
|
||||||
var adsConsentReminderAtWrapper: DateTime<Date> {
|
|
||||||
return _adsConsentReminderAt
|
|
||||||
}
|
|
||||||
var adsConsentSetAtWrapper: DateTime<Date> {
|
|
||||||
return _adsConsentSetAt
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -7,12 +7,8 @@ extension Operations {
|
|||||||
public struct PostUsersSignInDataUserPlexAccount {
|
public struct PostUsersSignInDataUserPlexAccount {
|
||||||
/// Unknown
|
/// Unknown
|
||||||
public let adsConsent: Bool
|
public let adsConsent: Bool
|
||||||
/// Unknown
|
public let adsConsentReminderAt: Int
|
||||||
@DateTime
|
public let adsConsentSetAt: Int
|
||||||
public private(set) var adsConsentReminderAt: Date
|
|
||||||
/// Unknown
|
|
||||||
@DateTime
|
|
||||||
public private(set) var adsConsentSetAt: Date
|
|
||||||
/// Unknown
|
/// Unknown
|
||||||
public let anonymous: Bool
|
public let anonymous: Bool
|
||||||
public let attributionPartner: String
|
public let attributionPartner: String
|
||||||
@@ -92,8 +88,6 @@ extension Operations {
|
|||||||
/// Creates an object with the specified parameters
|
/// Creates an object with the specified parameters
|
||||||
///
|
///
|
||||||
/// - Parameter adsConsent: Unknown
|
/// - Parameter adsConsent: Unknown
|
||||||
/// - Parameter adsConsentReminderAt: Unknown
|
|
||||||
/// - Parameter adsConsentSetAt: Unknown
|
|
||||||
/// - Parameter anonymous: Unknown
|
/// - Parameter anonymous: Unknown
|
||||||
/// - Parameter authToken: The account token
|
/// - Parameter authToken: The account token
|
||||||
/// - Parameter backupCodesCreated: If the two-factor authentication backup codes have been created
|
/// - Parameter backupCodesCreated: If the two-factor authentication backup codes have been created
|
||||||
@@ -130,10 +124,10 @@ extension Operations {
|
|||||||
/// - Parameter roles: [Might be removed] List of account roles. Plexpass membership listed here
|
/// - Parameter roles: [Might be removed] List of account roles. Plexpass membership listed here
|
||||||
///
|
///
|
||||||
@available(*, deprecated, message: "This initializer uses deprecated fields and will be removed in a future version.")
|
@available(*, deprecated, message: "This initializer uses deprecated fields and will be removed in a future version.")
|
||||||
public init(adsConsent: Bool, adsConsentReminderAt: Date, adsConsentSetAt: Date, anonymous: Bool, attributionPartner: String, authToken: String, backupCodesCreated: Bool, confirmed: Bool, country: String, email: String, emailOnlyAuth: Bool, entitlements: [String], experimentalFeatures: Bool, friendlyName: String, guest: Bool, hasPassword: Bool, home: Bool, homeAdmin: Bool, homeSize: Int, id: Int, joinedAt: Int, locale: String, mailingListActive: Bool, mailingListStatus: Operations.PostUsersSignInDataMailingListStatus, maxHomeSize: Int, pastSubscriptions: [Operations.PastSubscription], profile: Operations.PostUsersSignInDataUserProfile, protected: Bool, rememberExpiresAt: Int, restricted: Bool, scrobbleTypes: String, services: [Operations.PostUsersSignInDataServices], subscription: Operations.PostUsersSignInDataSubscription, subscriptionDescription: String, subscriptions: [Operations.PostUsersSignInDataAuthenticationSubscription], thumb: String, title: String, trials: [Operations.Trials], twoFactorEnabled: Bool, username: String, uuid: String, pin: String? = nil, roles: [String]? = nil) {
|
public init(adsConsent: Bool, adsConsentReminderAt: Int, adsConsentSetAt: Int, anonymous: Bool, attributionPartner: String, authToken: String, backupCodesCreated: Bool, confirmed: Bool, country: String, email: String, emailOnlyAuth: Bool, entitlements: [String], experimentalFeatures: Bool, friendlyName: String, guest: Bool, hasPassword: Bool, home: Bool, homeAdmin: Bool, homeSize: Int, id: Int, joinedAt: Int, locale: String, mailingListActive: Bool, mailingListStatus: Operations.PostUsersSignInDataMailingListStatus, maxHomeSize: Int, pastSubscriptions: [Operations.PastSubscription], profile: Operations.PostUsersSignInDataUserProfile, protected: Bool, rememberExpiresAt: Int, restricted: Bool, scrobbleTypes: String, services: [Operations.PostUsersSignInDataServices], subscription: Operations.PostUsersSignInDataSubscription, subscriptionDescription: String, subscriptions: [Operations.PostUsersSignInDataAuthenticationSubscription], thumb: String, title: String, trials: [Operations.Trials], twoFactorEnabled: Bool, username: String, uuid: String, pin: String? = nil, roles: [String]? = nil) {
|
||||||
self.adsConsent = adsConsent
|
self.adsConsent = adsConsent
|
||||||
self._adsConsentReminderAt = DateTime<Date>(wrappedValue: adsConsentReminderAt)
|
self.adsConsentReminderAt = adsConsentReminderAt
|
||||||
self._adsConsentSetAt = DateTime<Date>(wrappedValue: adsConsentSetAt)
|
self.adsConsentSetAt = adsConsentSetAt
|
||||||
self.anonymous = anonymous
|
self.anonymous = anonymous
|
||||||
self.attributionPartner = attributionPartner
|
self.attributionPartner = attributionPartner
|
||||||
self.authToken = authToken
|
self.authToken = authToken
|
||||||
@@ -223,107 +217,5 @@ extension Operations.PostUsersSignInDataUserPlexAccount: Codable {
|
|||||||
case pin
|
case pin
|
||||||
case roles
|
case roles
|
||||||
}
|
}
|
||||||
|
|
||||||
public init(from decoder: Decoder) throws {
|
|
||||||
let container = try decoder.container(keyedBy: CodingKeys.self)
|
|
||||||
self.adsConsent = try container.decode(Bool.self, forKey: .adsConsent)
|
|
||||||
self._adsConsentReminderAt = try container.decode(DateTime<Date>.self, forKey: .adsConsentReminderAt)
|
|
||||||
self._adsConsentSetAt = try container.decode(DateTime<Date>.self, forKey: .adsConsentSetAt)
|
|
||||||
self.anonymous = try container.decode(Bool.self, forKey: .anonymous)
|
|
||||||
self.attributionPartner = try container.decode(String.self, forKey: .attributionPartner)
|
|
||||||
self.authToken = try container.decode(String.self, forKey: .authToken)
|
|
||||||
self.backupCodesCreated = try container.decode(Bool.self, forKey: .backupCodesCreated)
|
|
||||||
self.confirmed = try container.decode(Bool.self, forKey: .confirmed)
|
|
||||||
self.country = try container.decode(String.self, forKey: .country)
|
|
||||||
self.email = try container.decode(String.self, forKey: .email)
|
|
||||||
self.emailOnlyAuth = try container.decode(Bool.self, forKey: .emailOnlyAuth)
|
|
||||||
self.entitlements = try container.decode([String].self, forKey: .entitlements)
|
|
||||||
self.experimentalFeatures = try container.decode(Bool.self, forKey: .experimentalFeatures)
|
|
||||||
self.friendlyName = try container.decode(String.self, forKey: .friendlyName)
|
|
||||||
self.guest = try container.decode(Bool.self, forKey: .guest)
|
|
||||||
self.hasPassword = try container.decode(Bool.self, forKey: .hasPassword)
|
|
||||||
self.home = try container.decode(Bool.self, forKey: .home)
|
|
||||||
self.homeAdmin = try container.decode(Bool.self, forKey: .homeAdmin)
|
|
||||||
self.homeSize = try container.decode(Int.self, forKey: .homeSize)
|
|
||||||
self.id = try container.decode(Int.self, forKey: .id)
|
|
||||||
self.joinedAt = try container.decode(Int.self, forKey: .joinedAt)
|
|
||||||
self.locale = try container.decode(String.self, forKey: .locale)
|
|
||||||
self.mailingListActive = try container.decode(Bool.self, forKey: .mailingListActive)
|
|
||||||
self.mailingListStatus = try container.decode(Operations.PostUsersSignInDataMailingListStatus.self, forKey: .mailingListStatus)
|
|
||||||
self.maxHomeSize = try container.decode(Int.self, forKey: .maxHomeSize)
|
|
||||||
self.pastSubscriptions = try container.decode([Operations.PastSubscription].self, forKey: .pastSubscriptions)
|
|
||||||
self.profile = try container.decode(Operations.PostUsersSignInDataUserProfile.self, forKey: .profile)
|
|
||||||
self.protected = try container.decode(Bool.self, forKey: .protected)
|
|
||||||
self.rememberExpiresAt = try container.decode(Int.self, forKey: .rememberExpiresAt)
|
|
||||||
self.restricted = try container.decode(Bool.self, forKey: .restricted)
|
|
||||||
self.scrobbleTypes = try container.decode(String.self, forKey: .scrobbleTypes)
|
|
||||||
self.services = try container.decode([Operations.PostUsersSignInDataServices].self, forKey: .services)
|
|
||||||
self.subscription = try container.decode(Operations.PostUsersSignInDataSubscription.self, forKey: .subscription)
|
|
||||||
self.subscriptionDescription = try container.decode(String.self, forKey: .subscriptionDescription)
|
|
||||||
self.subscriptions = try container.decode([Operations.PostUsersSignInDataAuthenticationSubscription].self, forKey: .subscriptions)
|
|
||||||
self.thumb = try container.decode(String.self, forKey: .thumb)
|
|
||||||
self.title = try container.decode(String.self, forKey: .title)
|
|
||||||
self.trials = try container.decode([Operations.Trials].self, forKey: .trials)
|
|
||||||
self.twoFactorEnabled = try container.decode(Bool.self, forKey: .twoFactorEnabled)
|
|
||||||
self.username = try container.decode(String.self, forKey: .username)
|
|
||||||
self.uuid = try container.decode(String.self, forKey: .uuid)
|
|
||||||
self.pin = try container.decodeIfPresent(String.self, forKey: .pin)
|
|
||||||
self.roles = try container.decodeIfPresent([String].self, forKey: .roles)
|
|
||||||
}
|
|
||||||
|
|
||||||
public func encode(to encoder: Encoder) throws {
|
|
||||||
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
||||||
try container.encode(self.adsConsent, forKey: .adsConsent)
|
|
||||||
try container.encode(self._adsConsentReminderAt, forKey: .adsConsentReminderAt)
|
|
||||||
try container.encode(self._adsConsentSetAt, forKey: .adsConsentSetAt)
|
|
||||||
try container.encode(self.anonymous, forKey: .anonymous)
|
|
||||||
try container.encode(self.attributionPartner, forKey: .attributionPartner)
|
|
||||||
try container.encode(self.authToken, forKey: .authToken)
|
|
||||||
try container.encode(self.backupCodesCreated, forKey: .backupCodesCreated)
|
|
||||||
try container.encode(self.confirmed, forKey: .confirmed)
|
|
||||||
try container.encode(self.country, forKey: .country)
|
|
||||||
try container.encode(self.email, forKey: .email)
|
|
||||||
try container.encode(self.emailOnlyAuth, forKey: .emailOnlyAuth)
|
|
||||||
try container.encode(self.entitlements, forKey: .entitlements)
|
|
||||||
try container.encode(self.experimentalFeatures, forKey: .experimentalFeatures)
|
|
||||||
try container.encode(self.friendlyName, forKey: .friendlyName)
|
|
||||||
try container.encode(self.guest, forKey: .guest)
|
|
||||||
try container.encode(self.hasPassword, forKey: .hasPassword)
|
|
||||||
try container.encode(self.home, forKey: .home)
|
|
||||||
try container.encode(self.homeAdmin, forKey: .homeAdmin)
|
|
||||||
try container.encode(self.homeSize, forKey: .homeSize)
|
|
||||||
try container.encode(self.id, forKey: .id)
|
|
||||||
try container.encode(self.joinedAt, forKey: .joinedAt)
|
|
||||||
try container.encode(self.locale, forKey: .locale)
|
|
||||||
try container.encode(self.mailingListActive, forKey: .mailingListActive)
|
|
||||||
try container.encode(self.mailingListStatus, forKey: .mailingListStatus)
|
|
||||||
try container.encode(self.maxHomeSize, forKey: .maxHomeSize)
|
|
||||||
try container.encode(self.pastSubscriptions, forKey: .pastSubscriptions)
|
|
||||||
try container.encode(self.profile, forKey: .profile)
|
|
||||||
try container.encode(self.protected, forKey: .protected)
|
|
||||||
try container.encode(self.rememberExpiresAt, forKey: .rememberExpiresAt)
|
|
||||||
try container.encode(self.restricted, forKey: .restricted)
|
|
||||||
try container.encode(self.scrobbleTypes, forKey: .scrobbleTypes)
|
|
||||||
try container.encode(self.services, forKey: .services)
|
|
||||||
try container.encode(self.subscription, forKey: .subscription)
|
|
||||||
try container.encode(self.subscriptionDescription, forKey: .subscriptionDescription)
|
|
||||||
try container.encode(self.subscriptions, forKey: .subscriptions)
|
|
||||||
try container.encode(self.thumb, forKey: .thumb)
|
|
||||||
try container.encode(self.title, forKey: .title)
|
|
||||||
try container.encode(self.trials, forKey: .trials)
|
|
||||||
try container.encode(self.twoFactorEnabled, forKey: .twoFactorEnabled)
|
|
||||||
try container.encode(self.username, forKey: .username)
|
|
||||||
try container.encode(self.uuid, forKey: .uuid)
|
|
||||||
try container.encodeIfPresent(self.pin, forKey: .pin)
|
|
||||||
try container.encodeIfPresent(self.roles, forKey: .roles)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
extension Operations.PostUsersSignInDataUserPlexAccount {
|
|
||||||
var adsConsentReminderAtWrapper: DateTime<Date> {
|
|
||||||
return _adsConsentReminderAt
|
|
||||||
}
|
|
||||||
var adsConsentSetAtWrapper: DateTime<Date> {
|
|
||||||
return _adsConsentSetAt
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ final class URLRequestBuilder: URLRequestConfiguration {
|
|||||||
urlRequest.setValue(contentType, forHTTPHeaderField: "Content-Type")
|
urlRequest.setValue(contentType, forHTTPHeaderField: "Content-Type")
|
||||||
}
|
}
|
||||||
|
|
||||||
urlRequest.setValue("speakeasy-sdk/swift 0.8.7 2.428.1 0.0.3 plexswift", forHTTPHeaderField: telemetryHeader.headerName)
|
urlRequest.setValue("speakeasy-sdk/swift 0.8.9 2.428.1 0.0.3 plexswift", forHTTPHeaderField: telemetryHeader.headerName)
|
||||||
|
|
||||||
addSecurityParameters(to: &urlRequest)
|
addSecurityParameters(to: &urlRequest)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user