From a2574b38a7f93f17b26f49cf3cc72ef8ff93c1ae Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 18 Jan 2024 23:37:25 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc 0.0.3, Speakeasy CLI 1.147.0 --- .speakeasy/gen.lock | 20 +++-- PlexAPI/Activities.cs | 6 +- PlexAPI/Butler.cs | 6 +- PlexAPI/Hubs.cs | 6 +- PlexAPI/Library.cs | 19 +++-- PlexAPI/Log.cs | 6 +- PlexAPI/Media.cs | 6 +- .../Models/Requests/GetLibrariesDirectory.cs | 82 +++++++++++++++++++ .../GetLibrariesLibraryResponseBody.cs | 25 ++++++ .../Requests/GetLibrariesMediaContainer.cs | 31 +++++++ .../Models/Requests/GetLibrariesResponse.cs | 7 +- .../Requests/GetLibrariesResponseBody.cs | 7 +- PlexAPI/Models/Requests/Location.cs | 24 ++++++ PlexAPI/Playlists.cs | 6 +- PlexAPI/PlexAPI.csproj | 2 +- PlexAPI/PlexAPISDK.cs | 6 +- PlexAPI/Search.cs | 6 +- PlexAPI/Security.cs | 6 +- PlexAPI/Server.cs | 6 +- PlexAPI/Sessions.cs | 6 +- PlexAPI/Updater.cs | 6 +- PlexAPI/Utils/SecuritySerializer.cs | 4 +- PlexAPI/Video.cs | 6 +- RELEASES.md | 10 ++- docs/Models/Requests/GetLibrariesDirectory.md | 28 +++++++ .../GetLibrariesLibraryResponseBody.md | 10 +++ .../Requests/GetLibrariesMediaContainer.md | 11 +++ docs/Models/Requests/GetLibrariesResponse.md | 3 +- .../Requests/GetLibrariesResponseBody.md | 8 +- docs/Models/Requests/Location.md | 9 ++ gen.yaml | 2 +- 31 files changed, 315 insertions(+), 65 deletions(-) create mode 100644 PlexAPI/Models/Requests/GetLibrariesDirectory.cs create mode 100644 PlexAPI/Models/Requests/GetLibrariesLibraryResponseBody.cs create mode 100644 PlexAPI/Models/Requests/GetLibrariesMediaContainer.cs create mode 100644 PlexAPI/Models/Requests/Location.cs create mode 100644 docs/Models/Requests/GetLibrariesDirectory.md create mode 100644 docs/Models/Requests/GetLibrariesLibraryResponseBody.md create mode 100644 docs/Models/Requests/GetLibrariesMediaContainer.md create mode 100644 docs/Models/Requests/Location.md diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index de3da10..e9d8dbb 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,20 +1,20 @@ lockVersion: 2.0.0 id: 5a8dbcbc-e0ee-41f0-9d84-b8b50567d1e9 management: - docChecksum: 34d22936f2456c2c461abdfc773e3fc4 + docChecksum: 45c73686e6dbe8c29b7e2857b6194ccf docVersion: 0.0.3 speakeasyVersion: internal - generationVersion: 2.228.1 - releaseVersion: 0.1.1 - configChecksum: 6b9442beea2ea4ba03da6cae25bbe997 + generationVersion: 2.237.2 + releaseVersion: 0.1.2 + configChecksum: 507f77da627cd2f7f1d5a580b89775fa repoURL: https://github.com/LukeHagar/plexcsharp.git repoSubDirectory: . published: true features: csharp: - core: 3.3.0 + core: 3.3.1 flattening: 2.81.1 - globalSecurity: 2.81.2 + globalSecurity: 2.81.3 globalServerURLs: 2.82.2 nameOverrides: 2.81.1 generatedFiles: @@ -185,6 +185,10 @@ generatedFiles: - PlexAPI/Models/Requests/GetRecentlyAddedResponseBody.cs - PlexAPI/Models/Requests/GetRecentlyAddedResponse.cs - PlexAPI/Models/Requests/GetLibrariesErrors.cs + - PlexAPI/Models/Requests/GetLibrariesLibraryResponseBody.cs + - PlexAPI/Models/Requests/Location.cs + - PlexAPI/Models/Requests/GetLibrariesDirectory.cs + - PlexAPI/Models/Requests/GetLibrariesMediaContainer.cs - PlexAPI/Models/Requests/GetLibrariesResponseBody.cs - PlexAPI/Models/Requests/GetLibrariesResponse.cs - PlexAPI/Models/Requests/IncludeDetails.cs @@ -471,6 +475,10 @@ generatedFiles: - docs/Models/Requests/GetRecentlyAddedResponseBody.md - docs/Models/Requests/GetRecentlyAddedResponse.md - docs/Models/Requests/GetLibrariesErrors.md + - docs/Models/Requests/GetLibrariesLibraryResponseBody.md + - docs/Models/Requests/Location.md + - docs/Models/Requests/GetLibrariesDirectory.md + - docs/Models/Requests/GetLibrariesMediaContainer.md - docs/Models/Requests/GetLibrariesResponseBody.md - docs/Models/Requests/GetLibrariesResponse.md - docs/Models/Requests/IncludeDetails.md diff --git a/PlexAPI/Activities.cs b/PlexAPI/Activities.cs index 972d7f2..d743ccc 100644 --- a/PlexAPI/Activities.cs +++ b/PlexAPI/Activities.cs @@ -70,10 +70,10 @@ namespace PlexAPI { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; - private const string _sdkGenVersion = "2.228.1"; + private const string _sdkVersion = "0.1.2"; + private const string _sdkGenVersion = "2.237.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.228.1 0.0.3 Plex-API"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/PlexAPI/Butler.cs b/PlexAPI/Butler.cs index 20b3562..a056d5c 100644 --- a/PlexAPI/Butler.cs +++ b/PlexAPI/Butler.cs @@ -97,10 +97,10 @@ namespace PlexAPI { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; - private const string _sdkGenVersion = "2.228.1"; + private const string _sdkVersion = "0.1.2"; + private const string _sdkGenVersion = "2.237.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.228.1 0.0.3 Plex-API"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/PlexAPI/Hubs.cs b/PlexAPI/Hubs.cs index ee8450e..d91fb39 100644 --- a/PlexAPI/Hubs.cs +++ b/PlexAPI/Hubs.cs @@ -59,10 +59,10 @@ namespace PlexAPI { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; - private const string _sdkGenVersion = "2.228.1"; + private const string _sdkVersion = "0.1.2"; + private const string _sdkGenVersion = "2.237.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.228.1 0.0.3 Plex-API"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/PlexAPI/Library.cs b/PlexAPI/Library.cs index 6b2c554..f921c05 100644 --- a/PlexAPI/Library.cs +++ b/PlexAPI/Library.cs @@ -181,10 +181,10 @@ namespace PlexAPI { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; - private const string _sdkGenVersion = "2.228.1"; + private const string _sdkVersion = "0.1.2"; + private const string _sdkGenVersion = "2.237.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.228.1 0.0.3 Plex-API"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; @@ -314,7 +314,16 @@ namespace PlexAPI RawResponse = httpResponse }; - if((response.StatusCode == 200) || (response.StatusCode == 400)) + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.TwoHundredApplicationJsonObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + if((response.StatusCode == 400)) { return response; @@ -323,7 +332,7 @@ namespace PlexAPI { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { - response.Object = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + response.FourHundredAndOneApplicationJsonObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); } return response; diff --git a/PlexAPI/Log.cs b/PlexAPI/Log.cs index 383ea8f..8e71b54 100644 --- a/PlexAPI/Log.cs +++ b/PlexAPI/Log.cs @@ -70,10 +70,10 @@ namespace PlexAPI { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; - private const string _sdkGenVersion = "2.228.1"; + private const string _sdkVersion = "0.1.2"; + private const string _sdkGenVersion = "2.237.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.228.1 0.0.3 Plex-API"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/PlexAPI/Media.cs b/PlexAPI/Media.cs index 3698108..378a46a 100644 --- a/PlexAPI/Media.cs +++ b/PlexAPI/Media.cs @@ -68,10 +68,10 @@ namespace PlexAPI { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; - private const string _sdkGenVersion = "2.228.1"; + private const string _sdkVersion = "0.1.2"; + private const string _sdkGenVersion = "2.237.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.228.1 0.0.3 Plex-API"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/PlexAPI/Models/Requests/GetLibrariesDirectory.cs b/PlexAPI/Models/Requests/GetLibrariesDirectory.cs new file mode 100644 index 0000000..0a82139 --- /dev/null +++ b/PlexAPI/Models/Requests/GetLibrariesDirectory.cs @@ -0,0 +1,82 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + public class GetLibrariesDirectory + { + + [JsonProperty("allowSync")] + public bool? AllowSync { get; set; } + + [JsonProperty("art")] + public string? Art { get; set; } + + [JsonProperty("composite")] + public string? Composite { get; set; } + + [JsonProperty("filters")] + public bool? Filters { get; set; } + + [JsonProperty("refreshing")] + public bool? Refreshing { get; set; } + + [JsonProperty("thumb")] + public string? Thumb { get; set; } + + [JsonProperty("key")] + public string? Key { get; set; } + + [JsonProperty("type")] + public string? Type { get; set; } + + [JsonProperty("title")] + public string? Title { get; set; } + + [JsonProperty("agent")] + public string? Agent { get; set; } + + [JsonProperty("scanner")] + public string? Scanner { get; set; } + + [JsonProperty("language")] + public string? Language { get; set; } + + [JsonProperty("uuid")] + public string? Uuid { get; set; } + + [JsonProperty("updatedAt")] + public int? UpdatedAt { get; set; } + + [JsonProperty("createdAt")] + public int? CreatedAt { get; set; } + + [JsonProperty("scannedAt")] + public int? ScannedAt { get; set; } + + [JsonProperty("content")] + public bool? Content { get; set; } + + [JsonProperty("directory")] + public bool? Directory { get; set; } + + [JsonProperty("contentChangedAt")] + public int? ContentChangedAt { get; set; } + + [JsonProperty("hidden")] + public int? Hidden { get; set; } + + [JsonProperty("Location")] + public List? Location { get; set; } + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/GetLibrariesLibraryResponseBody.cs b/PlexAPI/Models/Requests/GetLibrariesLibraryResponseBody.cs new file mode 100644 index 0000000..622279a --- /dev/null +++ b/PlexAPI/Models/Requests/GetLibrariesLibraryResponseBody.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + /// + /// Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + /// + public class GetLibrariesLibraryResponseBody + { + + [JsonProperty("errors")] + public List? Errors { get; set; } + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/GetLibrariesMediaContainer.cs b/PlexAPI/Models/Requests/GetLibrariesMediaContainer.cs new file mode 100644 index 0000000..ae5dbde --- /dev/null +++ b/PlexAPI/Models/Requests/GetLibrariesMediaContainer.cs @@ -0,0 +1,31 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + public class GetLibrariesMediaContainer + { + + [JsonProperty("size")] + public int? Size { get; set; } + + [JsonProperty("allowSync")] + public bool? AllowSync { get; set; } + + [JsonProperty("title1")] + public string? Title1 { get; set; } + + [JsonProperty("Directory")] + public List? Directory { get; set; } + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/GetLibrariesResponse.cs b/PlexAPI/Models/Requests/GetLibrariesResponse.cs index f1f23ad..3785018 100644 --- a/PlexAPI/Models/Requests/GetLibrariesResponse.cs +++ b/PlexAPI/Models/Requests/GetLibrariesResponse.cs @@ -31,9 +31,14 @@ namespace PlexAPI.Models.Requests /// public HttpResponseMessage RawResponse { get; set; } = default!; + /// + /// The libraries available on the Server + /// + public GetLibrariesResponseBody? TwoHundredApplicationJsonObject { get; set; } + /// /// Unauthorized - Returned if the X-Plex-Token is missing from the header or query. /// - public GetLibrariesResponseBody? Object { get; set; } + public GetLibrariesLibraryResponseBody? FourHundredAndOneApplicationJsonObject { get; set; } } } \ No newline at end of file diff --git a/PlexAPI/Models/Requests/GetLibrariesResponseBody.cs b/PlexAPI/Models/Requests/GetLibrariesResponseBody.cs index ee1520e..f720919 100644 --- a/PlexAPI/Models/Requests/GetLibrariesResponseBody.cs +++ b/PlexAPI/Models/Requests/GetLibrariesResponseBody.cs @@ -11,15 +11,14 @@ namespace PlexAPI.Models.Requests { using Newtonsoft.Json; - using System.Collections.Generic; /// - /// Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + /// The libraries available on the Server /// public class GetLibrariesResponseBody { - [JsonProperty("errors")] - public List? Errors { get; set; } + [JsonProperty("MediaContainer")] + public GetLibrariesMediaContainer? MediaContainer { get; set; } } } \ No newline at end of file diff --git a/PlexAPI/Models/Requests/Location.cs b/PlexAPI/Models/Requests/Location.cs new file mode 100644 index 0000000..0315091 --- /dev/null +++ b/PlexAPI/Models/Requests/Location.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + + public class Location + { + + [JsonProperty("id")] + public int? Id { get; set; } + + [JsonProperty("path")] + public string? Path { get; set; } + } +} \ No newline at end of file diff --git a/PlexAPI/Playlists.cs b/PlexAPI/Playlists.cs index 68a8453..1f508c8 100644 --- a/PlexAPI/Playlists.cs +++ b/PlexAPI/Playlists.cs @@ -142,10 +142,10 @@ namespace PlexAPI { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; - private const string _sdkGenVersion = "2.228.1"; + private const string _sdkVersion = "0.1.2"; + private const string _sdkGenVersion = "2.237.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.228.1 0.0.3 Plex-API"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/PlexAPI/PlexAPI.csproj b/PlexAPI/PlexAPI.csproj index 09571b9..79ea4a5 100644 --- a/PlexAPI/PlexAPI.csproj +++ b/PlexAPI/PlexAPI.csproj @@ -2,7 +2,7 @@ true Plex-API - 0.1.1 + 0.1.2 LukeHagar net5.0 enable diff --git a/PlexAPI/PlexAPISDK.cs b/PlexAPI/PlexAPISDK.cs index 2319dd8..c102604 100644 --- a/PlexAPI/PlexAPISDK.cs +++ b/PlexAPI/PlexAPISDK.cs @@ -235,10 +235,10 @@ namespace PlexAPI public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; - private const string _sdkGenVersion = "2.228.1"; + private const string _sdkVersion = "0.1.2"; + private const string _sdkGenVersion = "2.237.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.228.1 0.0.3 Plex-API"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/PlexAPI/Search.cs b/PlexAPI/Search.cs index 7b0736d..6792c2a 100644 --- a/PlexAPI/Search.cs +++ b/PlexAPI/Search.cs @@ -83,10 +83,10 @@ namespace PlexAPI { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; - private const string _sdkGenVersion = "2.228.1"; + private const string _sdkVersion = "0.1.2"; + private const string _sdkGenVersion = "2.237.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.228.1 0.0.3 Plex-API"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/PlexAPI/Security.cs b/PlexAPI/Security.cs index 5201527..e619e23 100644 --- a/PlexAPI/Security.cs +++ b/PlexAPI/Security.cs @@ -61,10 +61,10 @@ namespace PlexAPI { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; - private const string _sdkGenVersion = "2.228.1"; + private const string _sdkVersion = "0.1.2"; + private const string _sdkGenVersion = "2.237.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.228.1 0.0.3 Plex-API"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/PlexAPI/Server.cs b/PlexAPI/Server.cs index 8306fa3..d702d70 100644 --- a/PlexAPI/Server.cs +++ b/PlexAPI/Server.cs @@ -114,10 +114,10 @@ namespace PlexAPI { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; - private const string _sdkGenVersion = "2.228.1"; + private const string _sdkVersion = "0.1.2"; + private const string _sdkGenVersion = "2.237.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.228.1 0.0.3 Plex-API"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/PlexAPI/Sessions.cs b/PlexAPI/Sessions.cs index e76c1af..9658970 100644 --- a/PlexAPI/Sessions.cs +++ b/PlexAPI/Sessions.cs @@ -76,10 +76,10 @@ namespace PlexAPI { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; - private const string _sdkGenVersion = "2.228.1"; + private const string _sdkVersion = "0.1.2"; + private const string _sdkGenVersion = "2.237.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.228.1 0.0.3 Plex-API"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/PlexAPI/Updater.cs b/PlexAPI/Updater.cs index d126d66..255e88e 100644 --- a/PlexAPI/Updater.cs +++ b/PlexAPI/Updater.cs @@ -70,10 +70,10 @@ namespace PlexAPI { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; - private const string _sdkGenVersion = "2.228.1"; + private const string _sdkVersion = "0.1.2"; + private const string _sdkGenVersion = "2.237.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.228.1 0.0.3 Plex-API"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/PlexAPI/Utils/SecuritySerializer.cs b/PlexAPI/Utils/SecuritySerializer.cs index b8210b5..51e3105 100644 --- a/PlexAPI/Utils/SecuritySerializer.cs +++ b/PlexAPI/Utils/SecuritySerializer.cs @@ -165,10 +165,10 @@ namespace PlexAPI.Utils } break; case "openIdConnect": - client.AddHeader(valueMetadata.Name, Utilities.ValueToString(value)); + client.AddHeader(valueMetadata.Name, Utilities.PrefixBearer(Utilities.ValueToString(value))); break; case "oauth2": - client.AddHeader(valueMetadata.Name, Utilities.ValueToString(value)); + client.AddHeader(valueMetadata.Name, Utilities.PrefixBearer(Utilities.ValueToString(value))); break; case "http": switch (schemeMetadata.SubType) diff --git a/PlexAPI/Video.cs b/PlexAPI/Video.cs index 4d60391..d16f149 100644 --- a/PlexAPI/Video.cs +++ b/PlexAPI/Video.cs @@ -58,10 +58,10 @@ namespace PlexAPI { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; - private const string _sdkGenVersion = "2.228.1"; + private const string _sdkVersion = "0.1.2"; + private const string _sdkGenVersion = "2.237.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.228.1 0.0.3 Plex-API"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/RELEASES.md b/RELEASES.md index 259d8ba..d49d501 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -22,4 +22,12 @@ Based on: - OpenAPI Doc 0.0.3 - Speakeasy CLI 1.133.1 (2.228.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [csharp v0.1.1] . \ No newline at end of file +- [csharp v0.1.1] . + +## 2024-01-18 23:37:14 +### Changes +Based on: +- OpenAPI Doc 0.0.3 +- Speakeasy CLI 1.147.0 (2.237.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [csharp v0.1.2] . \ No newline at end of file diff --git a/docs/Models/Requests/GetLibrariesDirectory.md b/docs/Models/Requests/GetLibrariesDirectory.md new file mode 100644 index 0000000..f156180 --- /dev/null +++ b/docs/Models/Requests/GetLibrariesDirectory.md @@ -0,0 +1,28 @@ +# GetLibrariesDirectory + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | +| `AllowSync` | *bool* | :heavy_minus_sign: | N/A | true | +| `Art` | *string* | :heavy_minus_sign: | N/A | /:/resources/movie-fanart.jpg | +| `Composite` | *string* | :heavy_minus_sign: | N/A | /library/sections/1/composite/1705615584 | +| `Filters` | *bool* | :heavy_minus_sign: | N/A | true | +| `Refreshing` | *bool* | :heavy_minus_sign: | N/A | false | +| `Thumb` | *string* | :heavy_minus_sign: | N/A | /:/resources/movie.png | +| `Key` | *string* | :heavy_minus_sign: | N/A | 1 | +| `Type` | *string* | :heavy_minus_sign: | N/A | movie | +| `Title` | *string* | :heavy_minus_sign: | N/A | Movies | +| `Agent` | *string* | :heavy_minus_sign: | N/A | tv.plex.agents.movie | +| `Scanner` | *string* | :heavy_minus_sign: | N/A | Plex Movie | +| `Language` | *string* | :heavy_minus_sign: | N/A | en-US | +| `Uuid` | *string* | :heavy_minus_sign: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 | +| `UpdatedAt` | *int* | :heavy_minus_sign: | N/A | 1705615634 | +| `CreatedAt` | *int* | :heavy_minus_sign: | N/A | 1654131312 | +| `ScannedAt` | *int* | :heavy_minus_sign: | N/A | 1705615584 | +| `Content` | *bool* | :heavy_minus_sign: | N/A | true | +| `Directory` | *bool* | :heavy_minus_sign: | N/A | true | +| `ContentChangedAt` | *int* | :heavy_minus_sign: | N/A | 3192854 | +| `Hidden` | *int* | :heavy_minus_sign: | N/A | 0 | +| `Location` | List<[Location](../../Models/Requests/Location.md)> | :heavy_minus_sign: | N/A | [{"id":1,"path":"/movies"}] | \ No newline at end of file diff --git a/docs/Models/Requests/GetLibrariesLibraryResponseBody.md b/docs/Models/Requests/GetLibrariesLibraryResponseBody.md new file mode 100644 index 0000000..71fc7e6 --- /dev/null +++ b/docs/Models/Requests/GetLibrariesLibraryResponseBody.md @@ -0,0 +1,10 @@ +# GetLibrariesLibraryResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `Errors` | List<[GetLibrariesErrors](../../Models/Requests/GetLibrariesErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Requests/GetLibrariesMediaContainer.md b/docs/Models/Requests/GetLibrariesMediaContainer.md new file mode 100644 index 0000000..02a1cf6 --- /dev/null +++ b/docs/Models/Requests/GetLibrariesMediaContainer.md @@ -0,0 +1,11 @@ +# GetLibrariesMediaContainer + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Size` | *int* | :heavy_minus_sign: | N/A | 5 | +| `AllowSync` | *bool* | :heavy_minus_sign: | N/A | false | +| `Title1` | *string* | :heavy_minus_sign: | N/A | Plex Library | +| `Directory` | List<[GetLibrariesDirectory](../../Models/Requests/GetLibrariesDirectory.md)> | :heavy_minus_sign: | N/A | [{"Location":[{"id":1,"path":"/movies"}],"agent":"tv.plex.agents.movie","allowSync":true,"art":"/:/resources/movie-fanart.jpg","composite":"/library/sections/1/composite/1705615584","content":true,"contentChangedAt":3192854,"createdAt":1654131312,"directory":true,"filters":true,"hidden":0,"key":"1","language":"en-US","refreshing":false,"scannedAt":1705615584,"scanner":"Plex Movie","thumb":"/:/resources/movie.png","title":"Movies","type":"movie","updatedAt":1705615634,"uuid":"322a231a-b7f7-49f5-920f-14c61199cd30"}] | \ No newline at end of file diff --git a/docs/Models/Requests/GetLibrariesResponse.md b/docs/Models/Requests/GetLibrariesResponse.md index e98d7eb..e32f054 100644 --- a/docs/Models/Requests/GetLibrariesResponse.md +++ b/docs/Models/Requests/GetLibrariesResponse.md @@ -8,4 +8,5 @@ | `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `Object` | [GetLibrariesResponseBody](../../Models/Requests/GetLibrariesResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| `TwoHundredApplicationJsonObject` | [GetLibrariesResponseBody](../../Models/Requests/GetLibrariesResponseBody.md) | :heavy_minus_sign: | The libraries available on the Server | +| `FourHundredAndOneApplicationJsonObject` | [GetLibrariesLibraryResponseBody](../../Models/Requests/GetLibrariesLibraryResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/Models/Requests/GetLibrariesResponseBody.md b/docs/Models/Requests/GetLibrariesResponseBody.md index f04f547..21d54c5 100644 --- a/docs/Models/Requests/GetLibrariesResponseBody.md +++ b/docs/Models/Requests/GetLibrariesResponseBody.md @@ -1,10 +1,10 @@ # GetLibrariesResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +The libraries available on the Server ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `Errors` | List<[GetLibrariesErrors](../../Models/Requests/GetLibrariesErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `MediaContainer` | [GetLibrariesMediaContainer](../../Models/Requests/GetLibrariesMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Requests/Location.md b/docs/Models/Requests/Location.md new file mode 100644 index 0000000..905e369 --- /dev/null +++ b/docs/Models/Requests/Location.md @@ -0,0 +1,9 @@ +# Location + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `Id` | *int* | :heavy_minus_sign: | N/A | 1 | +| `Path` | *string* | :heavy_minus_sign: | N/A | /movies | \ No newline at end of file diff --git a/gen.yaml b/gen.yaml index 628a5de..47e9430 100644 --- a/gen.yaml +++ b/gen.yaml @@ -8,7 +8,7 @@ generation: fixes: nameResolutionDec2023: false csharp: - version: 0.1.1 + version: 0.1.2 author: LukeHagar dotnetVersion: net5.0 imports: