diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index e9d8dbb..4dd7d9c 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 5a8dbcbc-e0ee-41f0-9d84-b8b50567d1e9 management: - docChecksum: 45c73686e6dbe8c29b7e2857b6194ccf + docChecksum: a14d0ae27d4f5bd83b80747112f74352 docVersion: 0.0.3 speakeasyVersion: internal generationVersion: 2.237.2 - releaseVersion: 0.1.2 - configChecksum: 507f77da627cd2f7f1d5a580b89775fa + releaseVersion: 0.1.3 + configChecksum: 118f41d4e58820369dd7cd8400642873 repoURL: https://github.com/LukeHagar/plexcsharp.git repoSubDirectory: . published: true @@ -194,6 +194,9 @@ generatedFiles: - PlexAPI/Models/Requests/IncludeDetails.cs - PlexAPI/Models/Requests/GetLibraryRequest.cs - PlexAPI/Models/Requests/GetLibraryErrors.cs + - PlexAPI/Models/Requests/GetLibraryLibraryResponseBody.cs + - PlexAPI/Models/Requests/GetLibraryDirectory.cs + - PlexAPI/Models/Requests/GetLibraryMediaContainer.cs - PlexAPI/Models/Requests/GetLibraryResponseBody.cs - PlexAPI/Models/Requests/GetLibraryResponse.cs - PlexAPI/Models/Requests/DeleteLibraryRequest.cs @@ -484,6 +487,9 @@ generatedFiles: - docs/Models/Requests/IncludeDetails.md - docs/Models/Requests/GetLibraryRequest.md - docs/Models/Requests/GetLibraryErrors.md + - docs/Models/Requests/GetLibraryLibraryResponseBody.md + - docs/Models/Requests/GetLibraryDirectory.md + - docs/Models/Requests/GetLibraryMediaContainer.md - docs/Models/Requests/GetLibraryResponseBody.md - docs/Models/Requests/GetLibraryResponse.md - docs/Models/Requests/DeleteLibraryRequest.md diff --git a/PlexAPI/Activities.cs b/PlexAPI/Activities.cs index d743ccc..6505aab 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.2"; + private const string _sdkVersion = "0.1.3"; private const string _sdkGenVersion = "2.237.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.3 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 a056d5c..ec352d9 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.2"; + private const string _sdkVersion = "0.1.3"; private const string _sdkGenVersion = "2.237.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.3 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 d91fb39..d3ab658 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.2"; + private const string _sdkVersion = "0.1.3"; private const string _sdkGenVersion = "2.237.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.3 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 f921c05..87b8282 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.2"; + private const string _sdkVersion = "0.1.3"; private const string _sdkGenVersion = "2.237.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.3 2.237.2 0.0.3 Plex-API"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; @@ -368,7 +368,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; @@ -377,7 +386,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 8e71b54..810be0e 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.2"; + private const string _sdkVersion = "0.1.3"; private const string _sdkGenVersion = "2.237.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.3 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 378a46a..99f18af 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.2"; + private const string _sdkVersion = "0.1.3"; private const string _sdkGenVersion = "2.237.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.3 2.237.2 0.0.3 Plex-API"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/PlexAPI/Models/Requests/GetLibraryDirectory.cs b/PlexAPI/Models/Requests/GetLibraryDirectory.cs new file mode 100644 index 0000000..3cd7d63 --- /dev/null +++ b/PlexAPI/Models/Requests/GetLibraryDirectory.cs @@ -0,0 +1,33 @@ + +//------------------------------------------------------------------------------ +// +// 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 GetLibraryDirectory + { + + [JsonProperty("secondary")] + public bool? Secondary { get; set; } + + [JsonProperty("prompt")] + public string? Prompt { get; set; } + + [JsonProperty("search")] + public bool? Search { get; set; } + + [JsonProperty("key")] + public string? Key { get; set; } + + [JsonProperty("title")] + public string? Title { get; set; } + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/GetLibraryLibraryResponseBody.cs b/PlexAPI/Models/Requests/GetLibraryLibraryResponseBody.cs new file mode 100644 index 0000000..ae42225 --- /dev/null +++ b/PlexAPI/Models/Requests/GetLibraryLibraryResponseBody.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 GetLibraryLibraryResponseBody + { + + [JsonProperty("errors")] + public List? Errors { get; set; } + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/GetLibraryMediaContainer.cs b/PlexAPI/Models/Requests/GetLibraryMediaContainer.cs new file mode 100644 index 0000000..5a69268 --- /dev/null +++ b/PlexAPI/Models/Requests/GetLibraryMediaContainer.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// 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 GetLibraryMediaContainer + { + + [JsonProperty("size")] + public int? Size { get; set; } + + [JsonProperty("allowSync")] + public bool? AllowSync { get; set; } + + [JsonProperty("art")] + public string? Art { get; set; } + + [JsonProperty("content")] + public string? Content { get; set; } + + [JsonProperty("identifier")] + public string? Identifier { get; set; } + + [JsonProperty("librarySectionID")] + public int? LibrarySectionID { get; set; } + + [JsonProperty("mediaTagPrefix")] + public string? MediaTagPrefix { get; set; } + + [JsonProperty("mediaTagVersion")] + public int? MediaTagVersion { get; set; } + + [JsonProperty("thumb")] + public string? Thumb { get; set; } + + [JsonProperty("title1")] + public string? Title1 { get; set; } + + [JsonProperty("viewGroup")] + public string? ViewGroup { get; set; } + + [JsonProperty("viewMode")] + public int? ViewMode { get; set; } + + [JsonProperty("Directory")] + public List? Directory { get; set; } + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/GetLibraryResponse.cs b/PlexAPI/Models/Requests/GetLibraryResponse.cs index 8d557bd..c889aa5 100644 --- a/PlexAPI/Models/Requests/GetLibraryResponse.cs +++ b/PlexAPI/Models/Requests/GetLibraryResponse.cs @@ -31,9 +31,14 @@ namespace PlexAPI.Models.Requests /// public HttpResponseMessage RawResponse { get; set; } = default!; + /// + /// The details of the library + /// + public GetLibraryResponseBody? TwoHundredApplicationJsonObject { get; set; } + /// /// Unauthorized - Returned if the X-Plex-Token is missing from the header or query. /// - public GetLibraryResponseBody? Object { get; set; } + public GetLibraryLibraryResponseBody? FourHundredAndOneApplicationJsonObject { get; set; } } } \ No newline at end of file diff --git a/PlexAPI/Models/Requests/GetLibraryResponseBody.cs b/PlexAPI/Models/Requests/GetLibraryResponseBody.cs index 8e55181..c653e4a 100644 --- a/PlexAPI/Models/Requests/GetLibraryResponseBody.cs +++ b/PlexAPI/Models/Requests/GetLibraryResponseBody.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 details of the library /// public class GetLibraryResponseBody { - [JsonProperty("errors")] - public List? Errors { get; set; } + [JsonProperty("MediaContainer")] + public GetLibraryMediaContainer? MediaContainer { get; set; } } } \ No newline at end of file diff --git a/PlexAPI/Playlists.cs b/PlexAPI/Playlists.cs index 1f508c8..7fdaeb1 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.2"; + private const string _sdkVersion = "0.1.3"; private const string _sdkGenVersion = "2.237.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.3 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 79ea4a5..93ea0cf 100644 --- a/PlexAPI/PlexAPI.csproj +++ b/PlexAPI/PlexAPI.csproj @@ -2,7 +2,7 @@ true Plex-API - 0.1.2 + 0.1.3 LukeHagar net5.0 enable diff --git a/PlexAPI/PlexAPISDK.cs b/PlexAPI/PlexAPISDK.cs index c102604..986ba10 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.2"; + private const string _sdkVersion = "0.1.3"; private const string _sdkGenVersion = "2.237.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.3 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 6792c2a..e74af8e 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.2"; + private const string _sdkVersion = "0.1.3"; private const string _sdkGenVersion = "2.237.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.3 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 e619e23..1458ab2 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.2"; + private const string _sdkVersion = "0.1.3"; private const string _sdkGenVersion = "2.237.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.3 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 d702d70..dae56aa 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.2"; + private const string _sdkVersion = "0.1.3"; private const string _sdkGenVersion = "2.237.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.3 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 9658970..651d6cb 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.2"; + private const string _sdkVersion = "0.1.3"; private const string _sdkGenVersion = "2.237.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.3 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 255e88e..c3391c6 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.2"; + private const string _sdkVersion = "0.1.3"; private const string _sdkGenVersion = "2.237.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.3 2.237.2 0.0.3 Plex-API"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/PlexAPI/Video.cs b/PlexAPI/Video.cs index d16f149..dc40feb 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.2"; + private const string _sdkVersion = "0.1.3"; private const string _sdkGenVersion = "2.237.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.3 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 d49d501..9c51a32 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -30,4 +30,12 @@ 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 +- [csharp v0.1.2] . + +## 2024-01-19 17:27:22 +### 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.3] . \ No newline at end of file diff --git a/docs/Models/Requests/GetLibraryDirectory.md b/docs/Models/Requests/GetLibraryDirectory.md new file mode 100644 index 0000000..874a939 --- /dev/null +++ b/docs/Models/Requests/GetLibraryDirectory.md @@ -0,0 +1,12 @@ +# GetLibraryDirectory + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `Secondary` | *bool* | :heavy_minus_sign: | N/A | true | +| `Prompt` | *string* | :heavy_minus_sign: | N/A | Search Movies | +| `Search` | *bool* | :heavy_minus_sign: | N/A | true | +| `Key` | *string* | :heavy_minus_sign: | N/A | search?type=1 | +| `Title` | *string* | :heavy_minus_sign: | N/A | Search... | \ No newline at end of file diff --git a/docs/Models/Requests/GetLibraryLibraryResponseBody.md b/docs/Models/Requests/GetLibraryLibraryResponseBody.md new file mode 100644 index 0000000..740a8f2 --- /dev/null +++ b/docs/Models/Requests/GetLibraryLibraryResponseBody.md @@ -0,0 +1,10 @@ +# GetLibraryLibraryResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `Errors` | List<[GetLibraryErrors](../../Models/Requests/GetLibraryErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Requests/GetLibraryMediaContainer.md b/docs/Models/Requests/GetLibraryMediaContainer.md new file mode 100644 index 0000000..7202ed6 --- /dev/null +++ b/docs/Models/Requests/GetLibraryMediaContainer.md @@ -0,0 +1,20 @@ +# GetLibraryMediaContainer + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `Size` | *int* | :heavy_minus_sign: | N/A | 20 | +| `AllowSync` | *bool* | :heavy_minus_sign: | N/A | false | +| `Art` | *string* | :heavy_minus_sign: | N/A | /:/resources/movie-fanart.jpg | +| `Content` | *string* | :heavy_minus_sign: | N/A | secondary | +| `Identifier` | *string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | +| `LibrarySectionID` | *int* | :heavy_minus_sign: | N/A | 1 | +| `MediaTagPrefix` | *string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | +| `MediaTagVersion` | *int* | :heavy_minus_sign: | N/A | 1698860922 | +| `Thumb` | *string* | :heavy_minus_sign: | N/A | /:/resources/movie.png | +| `Title1` | *string* | :heavy_minus_sign: | N/A | Movies | +| `ViewGroup` | *string* | :heavy_minus_sign: | N/A | secondary | +| `ViewMode` | *int* | :heavy_minus_sign: | N/A | 65592 | +| `Directory` | List<[GetLibraryDirectory](../../Models/Requests/GetLibraryDirectory.md)> | :heavy_minus_sign: | N/A | [{"key":"search?type=1","prompt":"Search Movies","search":true,"secondary":true,"title":"Search..."}] | \ No newline at end of file diff --git a/docs/Models/Requests/GetLibraryResponse.md b/docs/Models/Requests/GetLibraryResponse.md index 45fc645..38ce552 100644 --- a/docs/Models/Requests/GetLibraryResponse.md +++ b/docs/Models/Requests/GetLibraryResponse.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` | [GetLibraryResponseBody](../../Models/Requests/GetLibraryResponseBody.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` | [GetLibraryResponseBody](../../Models/Requests/GetLibraryResponseBody.md) | :heavy_minus_sign: | The details of the library | +| `FourHundredAndOneApplicationJsonObject` | [GetLibraryLibraryResponseBody](../../Models/Requests/GetLibraryLibraryResponseBody.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/GetLibraryResponseBody.md b/docs/Models/Requests/GetLibraryResponseBody.md index 80e0bd7..f1e26c7 100644 --- a/docs/Models/Requests/GetLibraryResponseBody.md +++ b/docs/Models/Requests/GetLibraryResponseBody.md @@ -1,10 +1,10 @@ # GetLibraryResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +The details of the library ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `Errors` | List<[GetLibraryErrors](../../Models/Requests/GetLibraryErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `MediaContainer` | [GetLibraryMediaContainer](../../Models/Requests/GetLibraryMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/gen.yaml b/gen.yaml index 47e9430..59e7ce4 100644 --- a/gen.yaml +++ b/gen.yaml @@ -8,7 +8,7 @@ generation: fixes: nameResolutionDec2023: false csharp: - version: 0.1.2 + version: 0.1.3 author: LukeHagar dotnetVersion: net5.0 imports: