ci: regenerated with OpenAPI Doc 0.0.3, Speakeasy CLI 1.148.0

This commit is contained in:
speakeasybot
2024-01-22 17:16:35 +00:00
parent 0c390dec3b
commit 6812a51128
285 changed files with 5715 additions and 930 deletions

View File

@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 5a8dbcbc-e0ee-41f0-9d84-b8b50567d1e9
management:
docChecksum: 1e8e82037a237e1d1467721fbd2c7ab0
docChecksum: 7aba498c024534142941d65a7c2e649c
docVersion: 0.0.3
speakeasyVersion: internal
generationVersion: 2.237.3
releaseVersion: 0.1.4
configChecksum: 2355fec2a6caedf505c0100382e8bb81
releaseVersion: 0.1.5
configChecksum: 112f7d72fae8408e2dd1ef59ee88fb3a
repoURL: https://github.com/LukeHagar/plexcsharp.git
repoSubDirectory: .
published: true
@@ -58,10 +58,10 @@ generatedFiles:
- PlexAPI/Models/Requests/GetServerPreferencesResponseBody.cs
- PlexAPI/Models/Requests/GetServerPreferencesResponse.cs
- PlexAPI/Models/Requests/GetAvailableClientsErrors.cs
- PlexAPI/Models/Requests/GetAvailableClientsResponseBody.cs
- PlexAPI/Models/Requests/GetAvailableClientsServerResponseBody.cs
- PlexAPI/Models/Requests/Server.cs
- PlexAPI/Models/Requests/GetAvailableClientsMediaContainer.cs
- PlexAPI/Models/Requests/ResponseBody.cs
- PlexAPI/Models/Requests/GetAvailableClientsResponseBody.cs
- PlexAPI/Models/Requests/GetAvailableClientsResponse.cs
- PlexAPI/Models/Requests/GetDevicesErrors.cs
- PlexAPI/Models/Requests/GetDevicesServerResponseBody.cs
@@ -139,11 +139,26 @@ generatedFiles:
- PlexAPI/Models/Requests/OnlyTransient.cs
- PlexAPI/Models/Requests/GetGlobalHubsRequest.cs
- PlexAPI/Models/Requests/GetGlobalHubsErrors.cs
- PlexAPI/Models/Requests/GetGlobalHubsHubsResponseBody.cs
- PlexAPI/Models/Requests/GetGlobalHubsMetadata.cs
- PlexAPI/Models/Requests/Hub.cs
- PlexAPI/Models/Requests/GetGlobalHubsMediaContainer.cs
- PlexAPI/Models/Requests/GetGlobalHubsResponseBody.cs
- PlexAPI/Models/Requests/GetGlobalHubsResponse.cs
- PlexAPI/Models/Requests/QueryParamOnlyTransient.cs
- PlexAPI/Models/Requests/GetLibraryHubsRequest.cs
- PlexAPI/Models/Requests/GetLibraryHubsErrors.cs
- PlexAPI/Models/Requests/GetLibraryHubsHubsResponseBody.cs
- PlexAPI/Models/Requests/GetLibraryHubsPart.cs
- PlexAPI/Models/Requests/GetLibraryHubsMedia.cs
- PlexAPI/Models/Requests/GetLibraryHubsGenre.cs
- PlexAPI/Models/Requests/GetLibraryHubsCountry.cs
- PlexAPI/Models/Requests/GetLibraryHubsDirector.cs
- PlexAPI/Models/Requests/GetLibraryHubsRole.cs
- PlexAPI/Models/Requests/GetLibraryHubsWriter.cs
- PlexAPI/Models/Requests/GetLibraryHubsMetadata.cs
- PlexAPI/Models/Requests/GetLibraryHubsHub.cs
- PlexAPI/Models/Requests/GetLibraryHubsMediaContainer.cs
- PlexAPI/Models/Requests/GetLibraryHubsResponseBody.cs
- PlexAPI/Models/Requests/GetLibraryHubsResponse.cs
- PlexAPI/Models/Requests/PerformSearchRequest.cs
@@ -211,36 +226,55 @@ generatedFiles:
- PlexAPI/Models/Requests/DeleteLibraryErrors.cs
- PlexAPI/Models/Requests/DeleteLibraryResponseBody.cs
- PlexAPI/Models/Requests/DeleteLibraryResponse.cs
- PlexAPI/Models/Requests/Tag.cs
- PlexAPI/Models/Requests/GetLibraryItemsRequest.cs
- PlexAPI/Models/Requests/GetLibraryItemsErrors.cs
- PlexAPI/Models/Requests/GetLibraryItemsPart.cs
- PlexAPI/Models/Requests/GetLibraryItemsMedia.cs
- PlexAPI/Models/Requests/GetLibraryItemsGenre.cs
- PlexAPI/Models/Requests/GetLibraryItemsCountry.cs
- PlexAPI/Models/Requests/GetLibraryItemsDirector.cs
- PlexAPI/Models/Requests/GetLibraryItemsWriter.cs
- PlexAPI/Models/Requests/GetLibraryItemsRole.cs
- PlexAPI/Models/Requests/GetLibraryItemsMetadata.cs
- PlexAPI/Models/Requests/GetLibraryItemsMediaContainer.cs
- PlexAPI/Models/Requests/GetLibraryItemsResponseBody.cs
- PlexAPI/Models/Requests/GetLibraryItemsResponse.cs
- PlexAPI/Models/Requests/RefreshLibraryRequest.cs
- PlexAPI/Models/Requests/RefreshLibraryErrors.cs
- PlexAPI/Models/Requests/RefreshLibraryResponseBody.cs
- PlexAPI/Models/Requests/RefreshLibraryResponse.cs
- PlexAPI/Models/Requests/GetLatestLibraryItemsRequest.cs
- PlexAPI/Models/Requests/GetLatestLibraryItemsErrors.cs
- PlexAPI/Models/Requests/GetLatestLibraryItemsResponseBody.cs
- PlexAPI/Models/Requests/GetLatestLibraryItemsResponse.cs
- PlexAPI/Models/Requests/GetCommonLibraryItemsRequest.cs
- PlexAPI/Models/Requests/GetCommonLibraryItemsErrors.cs
- PlexAPI/Models/Requests/GetCommonLibraryItemsResponseBody.cs
- PlexAPI/Models/Requests/GetCommonLibraryItemsResponse.cs
- PlexAPI/Models/Requests/GetMetadataRequest.cs
- PlexAPI/Models/Requests/GetMetadataErrors.cs
- PlexAPI/Models/Requests/GetMetadataLibraryResponseBody.cs
- PlexAPI/Models/Requests/Stream.cs
- PlexAPI/Models/Requests/GetMetadataPart.cs
- PlexAPI/Models/Requests/GetMetadataMedia.cs
- PlexAPI/Models/Requests/GetMetadataGenre.cs
- PlexAPI/Models/Requests/GetMetadataCountry.cs
- PlexAPI/Models/Requests/Guids.cs
- PlexAPI/Models/Requests/Ratings.cs
- PlexAPI/Models/Requests/GetMetadataDirector.cs
- PlexAPI/Models/Requests/GetMetadataWriter.cs
- PlexAPI/Models/Requests/GetMetadataRole.cs
- PlexAPI/Models/Requests/Producer.cs
- PlexAPI/Models/Requests/GetMetadataMetadata.cs
- PlexAPI/Models/Requests/GetMetadataMediaContainer.cs
- PlexAPI/Models/Requests/GetMetadataResponseBody.cs
- PlexAPI/Models/Requests/GetMetadataResponse.cs
- PlexAPI/Models/Requests/GetMetadataChildrenRequest.cs
- PlexAPI/Models/Requests/GetMetadataChildrenErrors.cs
- PlexAPI/Models/Requests/GetMetadataChildrenLibraryResponseBody.cs
- PlexAPI/Models/Requests/GetMetadataChildrenDirectory.cs
- PlexAPI/Models/Requests/GetMetadataChildrenMetadata.cs
- PlexAPI/Models/Requests/GetMetadataChildrenMediaContainer.cs
- PlexAPI/Models/Requests/GetMetadataChildrenResponseBody.cs
- PlexAPI/Models/Requests/GetMetadataChildrenResponse.cs
- PlexAPI/Models/Requests/GetOnDeckErrors.cs
- PlexAPI/Models/Requests/GetOnDeckLibraryResponseBody.cs
- PlexAPI/Models/Requests/Stream.cs
- PlexAPI/Models/Requests/GetOnDeckStream.cs
- PlexAPI/Models/Requests/GetOnDeckPart.cs
- PlexAPI/Models/Requests/GetOnDeckMedia.cs
- PlexAPI/Models/Requests/Guids.cs
- PlexAPI/Models/Requests/GetOnDeckGuids.cs
- PlexAPI/Models/Requests/GetOnDeckMetadata.cs
- PlexAPI/Models/Requests/GetOnDeckMediaContainer.cs
- PlexAPI/Models/Requests/GetOnDeckResponseBody.cs
@@ -260,16 +294,25 @@ generatedFiles:
- PlexAPI/Models/Requests/Smart.cs
- PlexAPI/Models/Requests/CreatePlaylistRequest.cs
- PlexAPI/Models/Requests/CreatePlaylistErrors.cs
- PlexAPI/Models/Requests/CreatePlaylistPlaylistsResponseBody.cs
- PlexAPI/Models/Requests/CreatePlaylistMetadata.cs
- PlexAPI/Models/Requests/CreatePlaylistMediaContainer.cs
- PlexAPI/Models/Requests/CreatePlaylistResponseBody.cs
- PlexAPI/Models/Requests/CreatePlaylistResponse.cs
- PlexAPI/Models/Requests/PlaylistType.cs
- PlexAPI/Models/Requests/QueryParamSmart.cs
- PlexAPI/Models/Requests/GetPlaylistsRequest.cs
- PlexAPI/Models/Requests/GetPlaylistsErrors.cs
- PlexAPI/Models/Requests/GetPlaylistsPlaylistsResponseBody.cs
- PlexAPI/Models/Requests/GetPlaylistsMetadata.cs
- PlexAPI/Models/Requests/GetPlaylistsMediaContainer.cs
- PlexAPI/Models/Requests/GetPlaylistsResponseBody.cs
- PlexAPI/Models/Requests/GetPlaylistsResponse.cs
- PlexAPI/Models/Requests/GetPlaylistRequest.cs
- PlexAPI/Models/Requests/GetPlaylistErrors.cs
- PlexAPI/Models/Requests/GetPlaylistPlaylistsResponseBody.cs
- PlexAPI/Models/Requests/GetPlaylistMetadata.cs
- PlexAPI/Models/Requests/GetPlaylistMediaContainer.cs
- PlexAPI/Models/Requests/GetPlaylistResponseBody.cs
- PlexAPI/Models/Requests/GetPlaylistResponse.cs
- PlexAPI/Models/Requests/DeletePlaylistRequest.cs
@@ -282,6 +325,16 @@ generatedFiles:
- PlexAPI/Models/Requests/UpdatePlaylistResponse.cs
- PlexAPI/Models/Requests/GetPlaylistContentsRequest.cs
- PlexAPI/Models/Requests/GetPlaylistContentsErrors.cs
- PlexAPI/Models/Requests/GetPlaylistContentsPlaylistsResponseBody.cs
- PlexAPI/Models/Requests/GetPlaylistContentsPart.cs
- PlexAPI/Models/Requests/GetPlaylistContentsMedia.cs
- PlexAPI/Models/Requests/GetPlaylistContentsGenre.cs
- PlexAPI/Models/Requests/GetPlaylistContentsCountry.cs
- PlexAPI/Models/Requests/GetPlaylistContentsDirector.cs
- PlexAPI/Models/Requests/GetPlaylistContentsWriter.cs
- PlexAPI/Models/Requests/GetPlaylistContentsRole.cs
- PlexAPI/Models/Requests/GetPlaylistContentsMetadata.cs
- PlexAPI/Models/Requests/GetPlaylistContentsMediaContainer.cs
- PlexAPI/Models/Requests/GetPlaylistContentsResponseBody.cs
- PlexAPI/Models/Requests/GetPlaylistContentsResponse.cs
- PlexAPI/Models/Requests/ClearPlaylistContentsRequest.cs
@@ -290,6 +343,9 @@ generatedFiles:
- PlexAPI/Models/Requests/ClearPlaylistContentsResponse.cs
- PlexAPI/Models/Requests/AddPlaylistContentsRequest.cs
- PlexAPI/Models/Requests/AddPlaylistContentsErrors.cs
- PlexAPI/Models/Requests/AddPlaylistContentsPlaylistsResponseBody.cs
- PlexAPI/Models/Requests/AddPlaylistContentsMetadata.cs
- PlexAPI/Models/Requests/AddPlaylistContentsMediaContainer.cs
- PlexAPI/Models/Requests/AddPlaylistContentsResponseBody.cs
- PlexAPI/Models/Requests/AddPlaylistContentsResponse.cs
- PlexAPI/Models/Requests/Force.cs
@@ -308,9 +364,21 @@ generatedFiles:
- PlexAPI/Models/Requests/GetSourceConnectionInformationResponseBody.cs
- PlexAPI/Models/Requests/GetSourceConnectionInformationResponse.cs
- PlexAPI/Models/Requests/GetSessionsErrors.cs
- PlexAPI/Models/Requests/GetSessionsSessionsResponseBody.cs
- PlexAPI/Models/Requests/GetSessionsStream.cs
- PlexAPI/Models/Requests/GetSessionsPart.cs
- PlexAPI/Models/Requests/GetSessionsMedia.cs
- PlexAPI/Models/Requests/User.cs
- PlexAPI/Models/Requests/Player.cs
- PlexAPI/Models/Requests/Session.cs
- PlexAPI/Models/Requests/GetSessionsMetadata.cs
- PlexAPI/Models/Requests/GetSessionsMediaContainer.cs
- PlexAPI/Models/Requests/GetSessionsResponseBody.cs
- PlexAPI/Models/Requests/GetSessionsResponse.cs
- PlexAPI/Models/Requests/GetSessionHistoryErrors.cs
- PlexAPI/Models/Requests/GetSessionHistorySessionsResponseBody.cs
- PlexAPI/Models/Requests/GetSessionHistoryMetadata.cs
- PlexAPI/Models/Requests/GetSessionHistoryMediaContainer.cs
- PlexAPI/Models/Requests/GetSessionHistoryResponseBody.cs
- PlexAPI/Models/Requests/GetSessionHistoryResponse.cs
- PlexAPI/Models/Requests/GetTranscodeSessionsErrors.cs
@@ -324,6 +392,9 @@ generatedFiles:
- PlexAPI/Models/Requests/StopTranscodeSessionResponseBody.cs
- PlexAPI/Models/Requests/StopTranscodeSessionResponse.cs
- PlexAPI/Models/Requests/GetUpdateStatusErrors.cs
- PlexAPI/Models/Requests/GetUpdateStatusUpdaterResponseBody.cs
- PlexAPI/Models/Requests/Release.cs
- PlexAPI/Models/Requests/GetUpdateStatusMediaContainer.cs
- PlexAPI/Models/Requests/GetUpdateStatusResponseBody.cs
- PlexAPI/Models/Requests/GetUpdateStatusResponse.cs
- PlexAPI/Models/Requests/Download.cs
@@ -359,10 +430,10 @@ generatedFiles:
- docs/Models/Requests/GetServerPreferencesResponseBody.md
- docs/Models/Requests/GetServerPreferencesResponse.md
- docs/Models/Requests/GetAvailableClientsErrors.md
- docs/Models/Requests/GetAvailableClientsResponseBody.md
- docs/Models/Requests/GetAvailableClientsServerResponseBody.md
- docs/Models/Requests/Server.md
- docs/Models/Requests/GetAvailableClientsMediaContainer.md
- docs/Models/Requests/ResponseBody.md
- docs/Models/Requests/GetAvailableClientsResponseBody.md
- docs/Models/Requests/GetAvailableClientsResponse.md
- docs/Models/Requests/GetDevicesErrors.md
- docs/Models/Requests/GetDevicesServerResponseBody.md
@@ -440,11 +511,26 @@ generatedFiles:
- docs/Models/Requests/OnlyTransient.md
- docs/Models/Requests/GetGlobalHubsRequest.md
- docs/Models/Requests/GetGlobalHubsErrors.md
- docs/Models/Requests/GetGlobalHubsHubsResponseBody.md
- docs/Models/Requests/GetGlobalHubsMetadata.md
- docs/Models/Requests/Hub.md
- docs/Models/Requests/GetGlobalHubsMediaContainer.md
- docs/Models/Requests/GetGlobalHubsResponseBody.md
- docs/Models/Requests/GetGlobalHubsResponse.md
- docs/Models/Requests/QueryParamOnlyTransient.md
- docs/Models/Requests/GetLibraryHubsRequest.md
- docs/Models/Requests/GetLibraryHubsErrors.md
- docs/Models/Requests/GetLibraryHubsHubsResponseBody.md
- docs/Models/Requests/GetLibraryHubsPart.md
- docs/Models/Requests/GetLibraryHubsMedia.md
- docs/Models/Requests/GetLibraryHubsGenre.md
- docs/Models/Requests/GetLibraryHubsCountry.md
- docs/Models/Requests/GetLibraryHubsDirector.md
- docs/Models/Requests/GetLibraryHubsRole.md
- docs/Models/Requests/GetLibraryHubsWriter.md
- docs/Models/Requests/GetLibraryHubsMetadata.md
- docs/Models/Requests/GetLibraryHubsHub.md
- docs/Models/Requests/GetLibraryHubsMediaContainer.md
- docs/Models/Requests/GetLibraryHubsResponseBody.md
- docs/Models/Requests/GetLibraryHubsResponse.md
- docs/Models/Requests/PerformSearchRequest.md
@@ -512,36 +598,55 @@ generatedFiles:
- docs/Models/Requests/DeleteLibraryErrors.md
- docs/Models/Requests/DeleteLibraryResponseBody.md
- docs/Models/Requests/DeleteLibraryResponse.md
- docs/Models/Requests/Tag.md
- docs/Models/Requests/GetLibraryItemsRequest.md
- docs/Models/Requests/GetLibraryItemsErrors.md
- docs/Models/Requests/GetLibraryItemsPart.md
- docs/Models/Requests/GetLibraryItemsMedia.md
- docs/Models/Requests/GetLibraryItemsGenre.md
- docs/Models/Requests/GetLibraryItemsCountry.md
- docs/Models/Requests/GetLibraryItemsDirector.md
- docs/Models/Requests/GetLibraryItemsWriter.md
- docs/Models/Requests/GetLibraryItemsRole.md
- docs/Models/Requests/GetLibraryItemsMetadata.md
- docs/Models/Requests/GetLibraryItemsMediaContainer.md
- docs/Models/Requests/GetLibraryItemsResponseBody.md
- docs/Models/Requests/GetLibraryItemsResponse.md
- docs/Models/Requests/RefreshLibraryRequest.md
- docs/Models/Requests/RefreshLibraryErrors.md
- docs/Models/Requests/RefreshLibraryResponseBody.md
- docs/Models/Requests/RefreshLibraryResponse.md
- docs/Models/Requests/GetLatestLibraryItemsRequest.md
- docs/Models/Requests/GetLatestLibraryItemsErrors.md
- docs/Models/Requests/GetLatestLibraryItemsResponseBody.md
- docs/Models/Requests/GetLatestLibraryItemsResponse.md
- docs/Models/Requests/GetCommonLibraryItemsRequest.md
- docs/Models/Requests/GetCommonLibraryItemsErrors.md
- docs/Models/Requests/GetCommonLibraryItemsResponseBody.md
- docs/Models/Requests/GetCommonLibraryItemsResponse.md
- docs/Models/Requests/GetMetadataRequest.md
- docs/Models/Requests/GetMetadataErrors.md
- docs/Models/Requests/GetMetadataLibraryResponseBody.md
- docs/Models/Requests/Stream.md
- docs/Models/Requests/GetMetadataPart.md
- docs/Models/Requests/GetMetadataMedia.md
- docs/Models/Requests/GetMetadataGenre.md
- docs/Models/Requests/GetMetadataCountry.md
- docs/Models/Requests/Guids.md
- docs/Models/Requests/Ratings.md
- docs/Models/Requests/GetMetadataDirector.md
- docs/Models/Requests/GetMetadataWriter.md
- docs/Models/Requests/GetMetadataRole.md
- docs/Models/Requests/Producer.md
- docs/Models/Requests/GetMetadataMetadata.md
- docs/Models/Requests/GetMetadataMediaContainer.md
- docs/Models/Requests/GetMetadataResponseBody.md
- docs/Models/Requests/GetMetadataResponse.md
- docs/Models/Requests/GetMetadataChildrenRequest.md
- docs/Models/Requests/GetMetadataChildrenErrors.md
- docs/Models/Requests/GetMetadataChildrenLibraryResponseBody.md
- docs/Models/Requests/GetMetadataChildrenDirectory.md
- docs/Models/Requests/GetMetadataChildrenMetadata.md
- docs/Models/Requests/GetMetadataChildrenMediaContainer.md
- docs/Models/Requests/GetMetadataChildrenResponseBody.md
- docs/Models/Requests/GetMetadataChildrenResponse.md
- docs/Models/Requests/GetOnDeckErrors.md
- docs/Models/Requests/GetOnDeckLibraryResponseBody.md
- docs/Models/Requests/Stream.md
- docs/Models/Requests/GetOnDeckStream.md
- docs/Models/Requests/GetOnDeckPart.md
- docs/Models/Requests/GetOnDeckMedia.md
- docs/Models/Requests/Guids.md
- docs/Models/Requests/GetOnDeckGuids.md
- docs/Models/Requests/GetOnDeckMetadata.md
- docs/Models/Requests/GetOnDeckMediaContainer.md
- docs/Models/Requests/GetOnDeckResponseBody.md
@@ -561,16 +666,25 @@ generatedFiles:
- docs/Models/Requests/Smart.md
- docs/Models/Requests/CreatePlaylistRequest.md
- docs/Models/Requests/CreatePlaylistErrors.md
- docs/Models/Requests/CreatePlaylistPlaylistsResponseBody.md
- docs/Models/Requests/CreatePlaylistMetadata.md
- docs/Models/Requests/CreatePlaylistMediaContainer.md
- docs/Models/Requests/CreatePlaylistResponseBody.md
- docs/Models/Requests/CreatePlaylistResponse.md
- docs/Models/Requests/PlaylistType.md
- docs/Models/Requests/QueryParamSmart.md
- docs/Models/Requests/GetPlaylistsRequest.md
- docs/Models/Requests/GetPlaylistsErrors.md
- docs/Models/Requests/GetPlaylistsPlaylistsResponseBody.md
- docs/Models/Requests/GetPlaylistsMetadata.md
- docs/Models/Requests/GetPlaylistsMediaContainer.md
- docs/Models/Requests/GetPlaylistsResponseBody.md
- docs/Models/Requests/GetPlaylistsResponse.md
- docs/Models/Requests/GetPlaylistRequest.md
- docs/Models/Requests/GetPlaylistErrors.md
- docs/Models/Requests/GetPlaylistPlaylistsResponseBody.md
- docs/Models/Requests/GetPlaylistMetadata.md
- docs/Models/Requests/GetPlaylistMediaContainer.md
- docs/Models/Requests/GetPlaylistResponseBody.md
- docs/Models/Requests/GetPlaylistResponse.md
- docs/Models/Requests/DeletePlaylistRequest.md
@@ -583,6 +697,16 @@ generatedFiles:
- docs/Models/Requests/UpdatePlaylistResponse.md
- docs/Models/Requests/GetPlaylistContentsRequest.md
- docs/Models/Requests/GetPlaylistContentsErrors.md
- docs/Models/Requests/GetPlaylistContentsPlaylistsResponseBody.md
- docs/Models/Requests/GetPlaylistContentsPart.md
- docs/Models/Requests/GetPlaylistContentsMedia.md
- docs/Models/Requests/GetPlaylistContentsGenre.md
- docs/Models/Requests/GetPlaylistContentsCountry.md
- docs/Models/Requests/GetPlaylistContentsDirector.md
- docs/Models/Requests/GetPlaylistContentsWriter.md
- docs/Models/Requests/GetPlaylistContentsRole.md
- docs/Models/Requests/GetPlaylistContentsMetadata.md
- docs/Models/Requests/GetPlaylistContentsMediaContainer.md
- docs/Models/Requests/GetPlaylistContentsResponseBody.md
- docs/Models/Requests/GetPlaylistContentsResponse.md
- docs/Models/Requests/ClearPlaylistContentsRequest.md
@@ -591,6 +715,9 @@ generatedFiles:
- docs/Models/Requests/ClearPlaylistContentsResponse.md
- docs/Models/Requests/AddPlaylistContentsRequest.md
- docs/Models/Requests/AddPlaylistContentsErrors.md
- docs/Models/Requests/AddPlaylistContentsPlaylistsResponseBody.md
- docs/Models/Requests/AddPlaylistContentsMetadata.md
- docs/Models/Requests/AddPlaylistContentsMediaContainer.md
- docs/Models/Requests/AddPlaylistContentsResponseBody.md
- docs/Models/Requests/AddPlaylistContentsResponse.md
- docs/Models/Requests/Force.md
@@ -609,9 +736,21 @@ generatedFiles:
- docs/Models/Requests/GetSourceConnectionInformationResponseBody.md
- docs/Models/Requests/GetSourceConnectionInformationResponse.md
- docs/Models/Requests/GetSessionsErrors.md
- docs/Models/Requests/GetSessionsSessionsResponseBody.md
- docs/Models/Requests/GetSessionsStream.md
- docs/Models/Requests/GetSessionsPart.md
- docs/Models/Requests/GetSessionsMedia.md
- docs/Models/Requests/User.md
- docs/Models/Requests/Player.md
- docs/Models/Requests/Session.md
- docs/Models/Requests/GetSessionsMetadata.md
- docs/Models/Requests/GetSessionsMediaContainer.md
- docs/Models/Requests/GetSessionsResponseBody.md
- docs/Models/Requests/GetSessionsResponse.md
- docs/Models/Requests/GetSessionHistoryErrors.md
- docs/Models/Requests/GetSessionHistorySessionsResponseBody.md
- docs/Models/Requests/GetSessionHistoryMetadata.md
- docs/Models/Requests/GetSessionHistoryMediaContainer.md
- docs/Models/Requests/GetSessionHistoryResponseBody.md
- docs/Models/Requests/GetSessionHistoryResponse.md
- docs/Models/Requests/GetTranscodeSessionsErrors.md
@@ -625,6 +764,9 @@ generatedFiles:
- docs/Models/Requests/StopTranscodeSessionResponseBody.md
- docs/Models/Requests/StopTranscodeSessionResponse.md
- docs/Models/Requests/GetUpdateStatusErrors.md
- docs/Models/Requests/GetUpdateStatusUpdaterResponseBody.md
- docs/Models/Requests/Release.md
- docs/Models/Requests/GetUpdateStatusMediaContainer.md
- docs/Models/Requests/GetUpdateStatusResponseBody.md
- docs/Models/Requests/GetUpdateStatusResponse.md
- docs/Models/Requests/Download.md

View File

@@ -70,10 +70,10 @@ namespace PlexAPI
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "0.1.4";
private const string _sdkVersion = "0.1.5";
private const string _sdkGenVersion = "2.237.3";
private const string _openapiDocVersion = "0.0.3";
private const string _userAgent = "speakeasy-sdk/csharp 0.1.4 2.237.3 0.0.3 Plex-API";
private const string _userAgent = "speakeasy-sdk/csharp 0.1.5 2.237.3 0.0.3 Plex-API";
private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;

View File

@@ -97,10 +97,10 @@ namespace PlexAPI
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "0.1.4";
private const string _sdkVersion = "0.1.5";
private const string _sdkGenVersion = "2.237.3";
private const string _openapiDocVersion = "0.0.3";
private const string _userAgent = "speakeasy-sdk/csharp 0.1.4 2.237.3 0.0.3 Plex-API";
private const string _userAgent = "speakeasy-sdk/csharp 0.1.5 2.237.3 0.0.3 Plex-API";
private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;

View File

@@ -59,10 +59,10 @@ namespace PlexAPI
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "0.1.4";
private const string _sdkVersion = "0.1.5";
private const string _sdkGenVersion = "2.237.3";
private const string _openapiDocVersion = "0.0.3";
private const string _userAgent = "speakeasy-sdk/csharp 0.1.4 2.237.3 0.0.3 Plex-API";
private const string _userAgent = "speakeasy-sdk/csharp 0.1.5 2.237.3 0.0.3 Plex-API";
private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;
@@ -103,7 +103,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<GetGlobalHubsResponseBody>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}
return response;
}
if((response.StatusCode == 400))
{
return response;
@@ -112,7 +121,7 @@ namespace PlexAPI
{
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
{
response.Object = JsonConvert.DeserializeObject<GetGlobalHubsResponseBody>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
response.FourHundredAndOneApplicationJsonObject = JsonConvert.DeserializeObject<GetGlobalHubsHubsResponseBody>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}
return response;
@@ -149,7 +158,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<GetLibraryHubsResponseBody>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}
return response;
}
if((response.StatusCode == 400))
{
return response;
@@ -158,7 +176,7 @@ namespace PlexAPI
{
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
{
response.Object = JsonConvert.DeserializeObject<GetLibraryHubsResponseBody>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
response.FourHundredAndOneApplicationJsonObject = JsonConvert.DeserializeObject<GetLibraryHubsHubsResponseBody>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}
return response;

View File

@@ -66,25 +66,45 @@ namespace PlexAPI
/// Get Library Details
///
/// <remarks>
/// Returns details for the library. This can be thought of as an interstitial endpoint because it contains information about the library, rather than content itself. These details are:<br/>
/// ## Library Details Endpoint<br/>
/// <br/>
/// - A list of `Directory` objects: These used to be used by clients to build a menuing system. There are four flavors of directory found here:<br/>
/// - Primary: (e.g. all, On Deck) These are still used in some clients to provide &quot;shortcuts&quot; to subsets of media. However, with the exception of On Deck, all of them can be created by media queries, and the desire is to allow these to be customized by users.<br/>
/// - Secondary: These are marked with `secondary=&quot;1&quot;` and were used by old clients to provide nested menus allowing for primative (but structured) navigation.<br/>
/// - Special: There is a By Folder entry which allows browsing the media by the underlying filesystem structure, and there&apos;s a completely obsolete entry marked `search=&quot;1&quot;` which used to be used to allow clients to build search dialogs on the fly.<br/>
/// - A list of `Type` objects: These represent the types of things found in this library, and for each one, a list of `Filter` and `Sort` objects. These can be used to build rich controls around a grid of media to allow filtering and organizing. Note that these filters and sorts are optional, and without them, the client won&apos;t render any filtering controls. The `Type` object contains:<br/>
/// - `key`: This provides the root endpoint returning the actual media list for the type.<br/>
/// - `type`: This is the metadata type for the type (if a standard Plex type).<br/>
/// - `title`: The title for for the content of this type (e.g. &quot;Movies&quot;).<br/>
/// - Each `Filter` object contains a description of the filter. Note that it is not an exhaustive list of the full media query language, but an inportant subset useful for top-level API.<br/>
/// - `filter`: This represents the filter name used for the filter, which can be used to construct complex media queries with.<br/>
/// - `filterType`: This is either `string`, `integer`, or `boolean`, and describes the type of values used for the filter.<br/>
/// - `key`: This provides the endpoint where the possible range of values for the filter can be retrieved (e.g. for a &quot;Genre&quot; filter, it returns a list of all the genres in the library). This will include a `type` argument that matches the metadata type of the Type element.<br/>
/// - `title`: The title for the filter.<br/>
/// - Each `Sort` object contains a description of the sort field.<br/>
/// - `defaultDirection`: Can be either `asc` or `desc`, and specifies the default direction for the sort field (e.g. titles default to alphabetically ascending).<br/>
/// - `descKey` and `key`: Contains the parameters passed to the `sort=...` media query for each direction of the sort.<br/>
/// - `title`: The title of the field.<br/>
/// This endpoint provides comprehensive details about the library, focusing on organizational aspects rather than the content itself. <br/>
/// <br/>
/// The details include:<br/>
/// <br/>
/// ### Directories<br/>
/// Organized into three categories:<br/>
/// <br/>
/// - **Primary Directories**: <br/>
/// - Used in some clients for quick access to media subsets (e.g., &quot;All&quot;, &quot;On Deck&quot;).<br/>
/// - Most can be replicated via media queries.<br/>
/// - Customizable by users.<br/>
/// <br/>
/// - **Secondary Directories**:<br/>
/// - Marked with `secondary=&quot;1&quot;`.<br/>
/// - Used in older clients for structured navigation.<br/>
/// <br/>
/// - **Special Directories**:<br/>
/// - Includes a &quot;By Folder&quot; entry for filesystem-based browsing.<br/>
/// - Contains an obsolete `search=&quot;1&quot;` entry for on-the-fly search dialog creation.<br/>
/// <br/>
/// ### Types<br/>
/// Each type in the library comes with a set of filters and sorts, aiding in building dynamic media controls:<br/>
/// <br/>
/// - **Type Object Attributes**:<br/>
/// - `key`: Endpoint for the media list of this type.<br/>
/// - `type`: Metadata type (if standard Plex type).<br/>
/// - `title`: Title for this content type (e.g., &quot;Movies&quot;).<br/>
/// <br/>
/// - **Filter Objects**:<br/>
/// - Subset of the media query language.<br/>
/// - Attributes include `filter` (name), `filterType` (data type), `key` (endpoint for value range), and `title`.<br/>
/// <br/>
/// - **Sort Objects**:<br/>
/// - Description of sort fields.<br/>
/// - Attributes include `defaultDirection` (asc/desc), `descKey` and `key` (sort parameters), and `title`.<br/>
/// <br/>
/// &gt; **Note**: Filters and sorts are optional; without them, no filtering controls are rendered.<br/>
///
/// </remarks>
/// </summary>
@@ -103,11 +123,31 @@ namespace PlexAPI
/// Get Library Items
///
/// <remarks>
/// This endpoint will return a list of library items filtered by the filter and type provided<br/>
/// Fetches details from a specific section of the library identified by a section key and a tag. The tag parameter accepts the following values:<br/>
/// - `all`: All items in the section.<br/>
/// - `unwatched`: Items that have not been played.<br/>
/// - `newest`: Items that are recently released.<br/>
/// - `recentlyAdded`: Items that are recently added to the library.<br/>
/// - `recentlyViewed`: Items that were recently viewed.<br/>
/// - `onDeck`: Items to continue watching.<br/>
/// - `collection`: Items categorized by collection.<br/>
/// - `edition`: Items categorized by edition.<br/>
/// - `genre`: Items categorized by genre.<br/>
/// - `year`: Items categorized by year of release.<br/>
/// - `decade`: Items categorized by decade.<br/>
/// - `director`: Items categorized by director.<br/>
/// - `actor`: Items categorized by starring actor.<br/>
/// - `country`: Items categorized by country of origin.<br/>
/// - `contentRating`: Items categorized by content rating.<br/>
/// - `rating`: Items categorized by rating.<br/>
/// - `resolution`: Items categorized by resolution.<br/>
/// - `firstCharacter`: Items categorized by the first letter.<br/>
/// - `folder`: Items categorized by folder.<br/>
/// - `search?type=1`: Search functionality within the section.<br/>
///
/// </remarks>
/// </summary>
Task<GetLibraryItemsResponse> GetLibraryItemsAsync(double sectionId, double? type = null, string? filter = null);
Task<GetLibraryItemsResponse> GetLibraryItemsAsync(long sectionId, Tag tag);
/// <summary>
/// Refresh Library
@@ -119,26 +159,6 @@ namespace PlexAPI
/// </summary>
Task<RefreshLibraryResponse> RefreshLibraryAsync(double sectionId);
/// <summary>
/// Get Latest Library Items
///
/// <remarks>
/// This endpoint will return a list of the latest library items filtered by the filter and type provided<br/>
///
/// </remarks>
/// </summary>
Task<GetLatestLibraryItemsResponse> GetLatestLibraryItemsAsync(double sectionId, double type, string? filter = null);
/// <summary>
/// Get Common Library Items
///
/// <remarks>
/// Represents a &quot;Common&quot; item. It contains only the common attributes of the items selected by the provided filter<br/>
///
/// </remarks>
/// </summary>
Task<GetCommonLibraryItemsResponse> GetCommonLibraryItemsAsync(double sectionId, double type, string? filter = null);
/// <summary>
/// Get Items Metadata
///
@@ -181,10 +201,10 @@ namespace PlexAPI
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "0.1.4";
private const string _sdkVersion = "0.1.5";
private const string _sdkGenVersion = "2.237.3";
private const string _openapiDocVersion = "0.0.3";
private const string _userAgent = "speakeasy-sdk/csharp 0.1.4 2.237.3 0.0.3 Plex-API";
private const string _userAgent = "speakeasy-sdk/csharp 0.1.5 2.237.3 0.0.3 Plex-API";
private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;
@@ -439,16 +459,15 @@ namespace PlexAPI
}
public async Task<GetLibraryItemsResponse> GetLibraryItemsAsync(double sectionId, double? type = null, string? filter = null)
public async Task<GetLibraryItemsResponse> GetLibraryItemsAsync(long sectionId, Tag tag)
{
var request = new GetLibraryItemsRequest()
{
SectionId = sectionId,
Type = type,
Filter = filter,
Tag = tag,
};
string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails();
var urlString = URLBuilder.Build(baseUrl, "/library/sections/{sectionId}/all", request);
var urlString = URLBuilder.Build(baseUrl, "/library/sections/{sectionId}/{tag}", request);
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
httpRequest.Headers.Add("user-agent", _userAgent);
@@ -467,12 +486,7 @@ namespace PlexAPI
RawResponse = httpResponse
};
if((response.StatusCode == 200) || (response.StatusCode == 400))
{
return response;
}
if((response.StatusCode == 401))
if((response.StatusCode == 200))
{
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
{
@@ -529,98 +543,6 @@ namespace PlexAPI
}
public async Task<GetLatestLibraryItemsResponse> GetLatestLibraryItemsAsync(double sectionId, double type, string? filter = null)
{
var request = new GetLatestLibraryItemsRequest()
{
SectionId = sectionId,
Type = type,
Filter = filter,
};
string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails();
var urlString = URLBuilder.Build(baseUrl, "/library/sections/{sectionId}/latest", request);
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
httpRequest.Headers.Add("user-agent", _userAgent);
var client = _securityClient;
var httpResponse = await client.SendAsync(httpRequest);
var contentType = httpResponse.Content.Headers.ContentType?.MediaType;
var response = new GetLatestLibraryItemsResponse
{
StatusCode = (int)httpResponse.StatusCode,
ContentType = contentType,
RawResponse = httpResponse
};
if((response.StatusCode == 200) || (response.StatusCode == 400))
{
return response;
}
if((response.StatusCode == 401))
{
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
{
response.Object = JsonConvert.DeserializeObject<GetLatestLibraryItemsResponseBody>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}
return response;
}
return response;
}
public async Task<GetCommonLibraryItemsResponse> GetCommonLibraryItemsAsync(double sectionId, double type, string? filter = null)
{
var request = new GetCommonLibraryItemsRequest()
{
SectionId = sectionId,
Type = type,
Filter = filter,
};
string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails();
var urlString = URLBuilder.Build(baseUrl, "/library/sections/{sectionId}/common", request);
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
httpRequest.Headers.Add("user-agent", _userAgent);
var client = _securityClient;
var httpResponse = await client.SendAsync(httpRequest);
var contentType = httpResponse.Content.Headers.ContentType?.MediaType;
var response = new GetCommonLibraryItemsResponse
{
StatusCode = (int)httpResponse.StatusCode,
ContentType = contentType,
RawResponse = httpResponse
};
if((response.StatusCode == 200) || (response.StatusCode == 400) || (response.StatusCode == 404))
{
return response;
}
if((response.StatusCode == 401))
{
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
{
response.Object = JsonConvert.DeserializeObject<GetCommonLibraryItemsResponseBody>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}
return response;
}
return response;
}
public async Task<GetMetadataResponse> GetMetadataAsync(double ratingKey)
{
var request = new GetMetadataRequest()
@@ -647,7 +569,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<GetMetadataResponseBody>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}
return response;
}
if((response.StatusCode == 400))
{
return response;
@@ -656,7 +587,7 @@ namespace PlexAPI
{
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
{
response.Object = JsonConvert.DeserializeObject<GetMetadataResponseBody>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
response.FourHundredAndOneApplicationJsonObject = JsonConvert.DeserializeObject<GetMetadataLibraryResponseBody>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}
return response;
@@ -691,7 +622,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<GetMetadataChildrenResponseBody>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}
return response;
}
if((response.StatusCode == 400))
{
return response;
@@ -700,7 +640,7 @@ namespace PlexAPI
{
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
{
response.Object = JsonConvert.DeserializeObject<GetMetadataChildrenResponseBody>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
response.FourHundredAndOneApplicationJsonObject = JsonConvert.DeserializeObject<GetMetadataChildrenLibraryResponseBody>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}
return response;

View File

@@ -42,11 +42,31 @@ namespace PlexAPI
/// Logging a multi-line message
///
/// <remarks>
/// This endpoint will write multiple lines to the main Plex Media Server log in a single request. It takes a set of query strings as would normally sent to the above GET endpoint as a linefeed-separated block of POST data. The parameters for each query string match as above.<br/>
/// This endpoint allows for the batch addition of log entries to the main Plex Media Server log. <br/>
/// It accepts a text/plain request body, where each line represents a distinct log entry. <br/>
/// Each log entry consists of URL-encoded key-value pairs, specifying log attributes such as &apos;level&apos;, &apos;message&apos;, and &apos;source&apos;. <br/>
/// <br/>
/// Log entries are separated by a newline character (`\n`). <br/>
/// Each entry&apos;s parameters should be URL-encoded to ensure accurate parsing and handling of special characters. <br/>
/// This method is efficient for logging multiple entries in a single API call, reducing the overhead of multiple individual requests. <br/>
/// <br/>
/// The &apos;level&apos; parameter specifies the log entry&apos;s severity or importance, with the following integer values:<br/>
/// - `0`: Error - Critical issues that require immediate attention.<br/>
/// - `1`: Warning - Important events that are not critical but may indicate potential issues.<br/>
/// - `2`: Info - General informational messages about system operation.<br/>
/// - `3`: Debug - Detailed information useful for debugging purposes.<br/>
/// - `4`: Verbose - Highly detailed diagnostic information for in-depth analysis.<br/>
/// <br/>
/// The &apos;message&apos; parameter contains the log text, and &apos;source&apos; identifies the log message&apos;s origin (e.g., an application name or module).<br/>
/// <br/>
/// Example of a single log entry format:<br/>
/// `level=4&amp;message=Sample%20log%20entry&amp;source=applicationName`<br/>
/// <br/>
/// Ensure each parameter is properly URL-encoded to avoid interpretation issues.<br/>
///
/// </remarks>
/// </summary>
Task<LogMultiLineResponse> LogMultiLineAsync();
Task<LogMultiLineResponse> LogMultiLineAsync(string request);
/// <summary>
/// Enabling Papertrail
@@ -70,10 +90,10 @@ namespace PlexAPI
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "0.1.4";
private const string _sdkVersion = "0.1.5";
private const string _sdkGenVersion = "2.237.3";
private const string _openapiDocVersion = "0.0.3";
private const string _userAgent = "speakeasy-sdk/csharp 0.1.4 2.237.3 0.0.3 Plex-API";
private const string _userAgent = "speakeasy-sdk/csharp 0.1.5 2.237.3 0.0.3 Plex-API";
private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;
@@ -133,7 +153,7 @@ namespace PlexAPI
}
public async Task<LogMultiLineResponse> LogMultiLineAsync()
public async Task<LogMultiLineResponse> LogMultiLineAsync(string request)
{
string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails();
var urlString = baseUrl + "/log";
@@ -141,6 +161,15 @@ namespace PlexAPI
var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString);
httpRequest.Headers.Add("user-agent", _userAgent);
var serializedBody = RequestBodySerializer.Serialize(request, "Request", "string");
if (serializedBody == null)
{
throw new ArgumentNullException("request body is required");
}
else
{
httpRequest.Content = serializedBody;
}
var client = _securityClient;

View File

@@ -68,10 +68,10 @@ namespace PlexAPI
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "0.1.4";
private const string _sdkVersion = "0.1.5";
private const string _sdkGenVersion = "2.237.3";
private const string _openapiDocVersion = "0.0.3";
private const string _userAgent = "speakeasy-sdk/csharp 0.1.4 2.237.3 0.0.3 Plex-API";
private const string _userAgent = "speakeasy-sdk/csharp 0.1.5 2.237.3 0.0.3 Plex-API";
private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;

View File

@@ -0,0 +1,31 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using System.Collections.Generic;
public class AddPlaylistContentsMediaContainer
{
[JsonProperty("size")]
public int? Size { get; set; }
[JsonProperty("leafCountAdded")]
public int? LeafCountAdded { get; set; }
[JsonProperty("leafCountRequested")]
public int? LeafCountRequested { get; set; }
[JsonProperty("Metadata")]
public List<AddPlaylistContentsMetadata>? Metadata { get; set; }
}
}

View File

@@ -0,0 +1,57 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
public class AddPlaylistContentsMetadata
{
[JsonProperty("ratingKey")]
public string? RatingKey { get; set; }
[JsonProperty("key")]
public string? Key { get; set; }
[JsonProperty("guid")]
public string? Guid { get; set; }
[JsonProperty("type")]
public string? Type { get; set; }
[JsonProperty("title")]
public string? Title { get; set; }
[JsonProperty("summary")]
public string? Summary { get; set; }
[JsonProperty("smart")]
public bool? Smart { get; set; }
[JsonProperty("playlistType")]
public string? PlaylistType { get; set; }
[JsonProperty("composite")]
public string? Composite { get; set; }
[JsonProperty("duration")]
public int? Duration { get; set; }
[JsonProperty("leafCount")]
public int? LeafCount { get; set; }
[JsonProperty("addedAt")]
public int? AddedAt { get; set; }
[JsonProperty("updatedAt")]
public int? UpdatedAt { get; set; }
}
}

View File

@@ -0,0 +1,25 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using System.Collections.Generic;
/// <summary>
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
/// </summary>
public class AddPlaylistContentsPlaylistsResponseBody
{
[JsonProperty("errors")]
public List<AddPlaylistContentsErrors>? Errors { get; set; }
}
}

View File

@@ -31,6 +31,6 @@ namespace PlexAPI.Models.Requests
/// the play queue to add to a playlist
/// </summary>
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=playQueueID")]
public double PlayQueueID { get; set; } = default!;
public double? PlayQueueID { get; set; }
}
}

View File

@@ -31,9 +31,14 @@ namespace PlexAPI.Models.Requests
/// </summary>
public HttpResponseMessage RawResponse { get; set; } = default!;
/// <summary>
/// Playlist Updated
/// </summary>
public AddPlaylistContentsResponseBody? TwoHundredApplicationJsonObject { get; set; }
/// <summary>
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
/// </summary>
public AddPlaylistContentsResponseBody? Object { get; set; }
public AddPlaylistContentsPlaylistsResponseBody? FourHundredAndOneApplicationJsonObject { get; set; }
}
}

View File

@@ -11,15 +11,14 @@
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using System.Collections.Generic;
/// <summary>
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
/// Playlist Updated
/// </summary>
public class AddPlaylistContentsResponseBody
{
[JsonProperty("errors")]
public List<AddPlaylistContentsErrors>? Errors { get; set; }
[JsonProperty("MediaContainer")]
public AddPlaylistContentsMediaContainer? MediaContainer { get; set; }
}
}

View File

@@ -0,0 +1,25 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using System.Collections.Generic;
public class CreatePlaylistMediaContainer
{
[JsonProperty("size")]
public int? Size { get; set; }
[JsonProperty("Metadata")]
public List<CreatePlaylistMetadata>? Metadata { get; set; }
}
}

View File

@@ -0,0 +1,66 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
public class CreatePlaylistMetadata
{
[JsonProperty("ratingKey")]
public string? RatingKey { get; set; }
[JsonProperty("key")]
public string? Key { get; set; }
[JsonProperty("guid")]
public string? Guid { get; set; }
[JsonProperty("type")]
public string? Type { get; set; }
[JsonProperty("title")]
public string? Title { get; set; }
[JsonProperty("summary")]
public string? Summary { get; set; }
[JsonProperty("smart")]
public bool? Smart { get; set; }
[JsonProperty("playlistType")]
public string? PlaylistType { get; set; }
[JsonProperty("icon")]
public string? Icon { get; set; }
[JsonProperty("viewCount")]
public int? ViewCount { get; set; }
[JsonProperty("lastViewedAt")]
public int? LastViewedAt { get; set; }
[JsonProperty("leafCount")]
public int? LeafCount { get; set; }
[JsonProperty("addedAt")]
public int? AddedAt { get; set; }
[JsonProperty("updatedAt")]
public int? UpdatedAt { get; set; }
[JsonProperty("composite")]
public string? Composite { get; set; }
[JsonProperty("duration")]
public int? Duration { get; set; }
}
}

View File

@@ -16,10 +16,10 @@ namespace PlexAPI.Models.Requests
/// <summary>
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
/// </summary>
public class GetLatestLibraryItemsResponseBody
public class CreatePlaylistPlaylistsResponseBody
{
[JsonProperty("errors")]
public List<GetLatestLibraryItemsErrors>? Errors { get; set; }
public List<CreatePlaylistErrors>? Errors { get; set; }
}
}

View File

@@ -37,7 +37,7 @@ namespace PlexAPI.Models.Requests
/// the content URI for the playlist
/// </summary>
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=uri")]
public string? Uri { get; set; }
public string Uri { get; set; } = default!;
/// <summary>
/// the play queue to copy to a playlist

View File

@@ -31,9 +31,14 @@ namespace PlexAPI.Models.Requests
/// </summary>
public HttpResponseMessage RawResponse { get; set; } = default!;
/// <summary>
/// returns all playlists
/// </summary>
public CreatePlaylistResponseBody? TwoHundredApplicationJsonObject { get; set; }
/// <summary>
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
/// </summary>
public CreatePlaylistResponseBody? Object { get; set; }
public CreatePlaylistPlaylistsResponseBody? FourHundredAndOneApplicationJsonObject { get; set; }
}
}

View File

@@ -11,15 +11,14 @@
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using System.Collections.Generic;
/// <summary>
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
/// returns all playlists
/// </summary>
public class CreatePlaylistResponseBody
{
[JsonProperty("errors")]
public List<CreatePlaylistErrors>? Errors { get; set; }
[JsonProperty("MediaContainer")]
public CreatePlaylistMediaContainer? MediaContainer { get; set; }
}
}

View File

@@ -12,10 +12,12 @@ namespace PlexAPI.Models.Requests
{
/// <summary>
/// force overwriting of duplicate playlists. By default, a playlist file uploaded with the same path will overwrite the existing playlist. <br/>
/// Force overwriting of duplicate playlists. <br/>
///
/// <remarks>
/// The `force` argument is used to disable overwriting. If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded.<br/>
/// By default, a playlist file uploaded with the same path will overwrite the existing playlist. <br/>
/// The `force` argument is used to disable overwriting. <br/>
/// If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded.<br/>
///
/// </remarks>
/// </summary>

View File

@@ -10,7 +10,6 @@
#nullable enable
namespace PlexAPI.Models.Requests
{
using System.Collections.Generic;
using System.Net.Http;
using System;
@@ -35,11 +34,11 @@ namespace PlexAPI.Models.Requests
/// <summary>
/// Available Clients
/// </summary>
public List<ResponseBody>? ResponseBodies { get; set; }
public GetAvailableClientsResponseBody? TwoHundredApplicationJsonObject { get; set; }
/// <summary>
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
/// </summary>
public GetAvailableClientsResponseBody? Object { get; set; }
public GetAvailableClientsServerResponseBody? FourHundredAndOneApplicationJsonObject { get; set; }
}
}

View File

@@ -11,15 +11,14 @@
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using System.Collections.Generic;
/// <summary>
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
/// Available Clients
/// </summary>
public class GetAvailableClientsResponseBody
{
[JsonProperty("errors")]
public List<GetAvailableClientsErrors>? Errors { get; set; }
[JsonProperty("MediaContainer")]
public GetAvailableClientsMediaContainer? MediaContainer { get; set; }
}
}

View File

@@ -0,0 +1,25 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using System.Collections.Generic;
/// <summary>
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
/// </summary>
public class GetAvailableClientsServerResponseBody
{
[JsonProperty("errors")]
public List<GetAvailableClientsErrors>? Errors { get; set; }
}
}

View File

@@ -1,36 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using PlexAPI.Utils;
public class GetCommonLibraryItemsRequest
{
/// <summary>
/// the Id of the library to query
/// </summary>
[SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionId")]
public double SectionId { get; set; } = default!;
/// <summary>
/// item type
/// </summary>
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=type")]
public double Type { get; set; } = default!;
/// <summary>
/// the filter parameter
/// </summary>
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=filter")]
public string? Filter { get; set; }
}
}

View File

@@ -1,39 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using System.Net.Http;
using System;
public class GetCommonLibraryItemsResponse
{
/// <summary>
/// HTTP response content type for this operation
/// </summary>
public string? ContentType { get; set; } = default!;
/// <summary>
/// HTTP response status code for this operation
/// </summary>
public int StatusCode { get; set; } = default!;
/// <summary>
/// Raw HTTP response; suitable for custom response parsing
/// </summary>
public HttpResponseMessage RawResponse { get; set; } = default!;
/// <summary>
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
/// </summary>
public GetCommonLibraryItemsResponseBody? Object { get; set; }
}
}

View File

@@ -16,10 +16,10 @@ namespace PlexAPI.Models.Requests
/// <summary>
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
/// </summary>
public class GetCommonLibraryItemsResponseBody
public class GetGlobalHubsHubsResponseBody
{
[JsonProperty("errors")]
public List<GetCommonLibraryItemsErrors>? Errors { get; set; }
public List<GetGlobalHubsErrors>? Errors { get; set; }
}
}

View File

@@ -0,0 +1,31 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using System.Collections.Generic;
public class GetGlobalHubsMediaContainer
{
[JsonProperty("size")]
public int? Size { get; set; }
[JsonProperty("allowSync")]
public bool? AllowSync { get; set; }
[JsonProperty("identifier")]
public string? Identifier { get; set; }
[JsonProperty("Hub")]
public List<Hub>? Hub { get; set; }
}
}

View File

@@ -0,0 +1,69 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
public class GetGlobalHubsMetadata
{
[JsonProperty("ratingKey")]
public string? RatingKey { get; set; }
[JsonProperty("key")]
public string? Key { get; set; }
[JsonProperty("guid")]
public string? Guid { get; set; }
[JsonProperty("type")]
public string? Type { get; set; }
[JsonProperty("title")]
public string? Title { get; set; }
[JsonProperty("titleSort")]
public string? TitleSort { get; set; }
[JsonProperty("summary")]
public string? Summary { get; set; }
[JsonProperty("smart")]
public bool? Smart { get; set; }
[JsonProperty("playlistType")]
public string? PlaylistType { get; set; }
[JsonProperty("composite")]
public string? Composite { get; set; }
[JsonProperty("icon")]
public string? Icon { get; set; }
[JsonProperty("viewCount")]
public int? ViewCount { get; set; }
[JsonProperty("lastViewedAt")]
public int? LastViewedAt { get; set; }
[JsonProperty("duration")]
public int? Duration { get; set; }
[JsonProperty("leafCount")]
public int? LeafCount { get; set; }
[JsonProperty("addedAt")]
public int? AddedAt { get; set; }
[JsonProperty("updatedAt")]
public int? UpdatedAt { get; set; }
}
}

View File

@@ -31,9 +31,14 @@ namespace PlexAPI.Models.Requests
/// </summary>
public HttpResponseMessage RawResponse { get; set; } = default!;
/// <summary>
/// returns global hubs
/// </summary>
public GetGlobalHubsResponseBody? TwoHundredApplicationJsonObject { get; set; }
/// <summary>
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
/// </summary>
public GetGlobalHubsResponseBody? Object { get; set; }
public GetGlobalHubsHubsResponseBody? FourHundredAndOneApplicationJsonObject { get; set; }
}
}

View File

@@ -11,15 +11,14 @@
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using System.Collections.Generic;
/// <summary>
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
/// returns global hubs
/// </summary>
public class GetGlobalHubsResponseBody
{
[JsonProperty("errors")]
public List<GetGlobalHubsErrors>? Errors { get; set; }
[JsonProperty("MediaContainer")]
public GetGlobalHubsMediaContainer? MediaContainer { get; set; }
}
}

View File

@@ -1,36 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using PlexAPI.Utils;
public class GetLatestLibraryItemsRequest
{
/// <summary>
/// the Id of the library to query
/// </summary>
[SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionId")]
public double SectionId { get; set; } = default!;
/// <summary>
/// item type
/// </summary>
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=type")]
public double Type { get; set; } = default!;
/// <summary>
/// the filter parameter
/// </summary>
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=filter")]
public string? Filter { get; set; }
}
}

View File

@@ -1,39 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using System.Net.Http;
using System;
public class GetLatestLibraryItemsResponse
{
/// <summary>
/// HTTP response content type for this operation
/// </summary>
public string? ContentType { get; set; } = default!;
/// <summary>
/// HTTP response status code for this operation
/// </summary>
public int StatusCode { get; set; } = default!;
/// <summary>
/// Raw HTTP response; suitable for custom response parsing
/// </summary>
public HttpResponseMessage RawResponse { get; set; } = default!;
/// <summary>
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
/// </summary>
public GetLatestLibraryItemsResponseBody? Object { get; set; }
}
}

View File

@@ -12,10 +12,10 @@ namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
public class ResponseBody
public class GetLibraryHubsCountry
{
[JsonProperty("MediaContainer")]
public GetAvailableClientsMediaContainer? MediaContainer { get; set; }
[JsonProperty("tag")]
public string? Tag { get; set; }
}
}

View File

@@ -0,0 +1,21 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
public class GetLibraryHubsDirector
{
[JsonProperty("tag")]
public string? Tag { get; set; }
}
}

View File

@@ -0,0 +1,21 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
public class GetLibraryHubsGenre
{
[JsonProperty("tag")]
public string? Tag { get; set; }
}
}

View File

@@ -0,0 +1,55 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using System.Collections.Generic;
public class GetLibraryHubsHub
{
[JsonProperty("key")]
public string? Key { get; set; }
[JsonProperty("title")]
public string? Title { get; set; }
[JsonProperty("type")]
public string? Type { get; set; }
[JsonProperty("hubIdentifier")]
public string? HubIdentifier { get; set; }
[JsonProperty("context")]
public string? Context { get; set; }
[JsonProperty("size")]
public int? Size { get; set; }
[JsonProperty("more")]
public bool? More { get; set; }
[JsonProperty("style")]
public string? Style { get; set; }
[JsonProperty("hubKey")]
public string? HubKey { get; set; }
[JsonProperty("Metadata")]
public List<GetLibraryHubsMetadata>? Metadata { get; set; }
[JsonProperty("promoted")]
public bool? Promoted { get; set; }
[JsonProperty("random")]
public bool? Random { get; set; }
}
}

View File

@@ -0,0 +1,25 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using System.Collections.Generic;
/// <summary>
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
/// </summary>
public class GetLibraryHubsHubsResponseBody
{
[JsonProperty("errors")]
public List<GetLibraryHubsErrors>? Errors { get; set; }
}
}

View File

@@ -0,0 +1,70 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using System.Collections.Generic;
public class GetLibraryHubsMedia
{
[JsonProperty("id")]
public int? Id { get; set; }
[JsonProperty("duration")]
public int? Duration { get; set; }
[JsonProperty("bitrate")]
public int? Bitrate { get; set; }
[JsonProperty("width")]
public int? Width { get; set; }
[JsonProperty("height")]
public int? Height { get; set; }
[JsonProperty("aspectRatio")]
public double? AspectRatio { get; set; }
[JsonProperty("audioChannels")]
public int? AudioChannels { get; set; }
[JsonProperty("audioCodec")]
public string? AudioCodec { get; set; }
[JsonProperty("videoCodec")]
public string? VideoCodec { get; set; }
[JsonProperty("videoResolution")]
public string? VideoResolution { get; set; }
[JsonProperty("container")]
public string? Container { get; set; }
[JsonProperty("videoFrameRate")]
public string? VideoFrameRate { get; set; }
[JsonProperty("optimizedForStreaming")]
public int? OptimizedForStreaming { get; set; }
[JsonProperty("audioProfile")]
public string? AudioProfile { get; set; }
[JsonProperty("has64bitOffsets")]
public bool? Has64bitOffsets { get; set; }
[JsonProperty("videoProfile")]
public string? VideoProfile { get; set; }
[JsonProperty("Part")]
public List<GetLibraryHubsPart>? Part { get; set; }
}
}

View File

@@ -0,0 +1,40 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using System.Collections.Generic;
public class GetLibraryHubsMediaContainer
{
[JsonProperty("size")]
public int? Size { get; set; }
[JsonProperty("allowSync")]
public bool? AllowSync { get; set; }
[JsonProperty("identifier")]
public string? Identifier { get; set; }
[JsonProperty("librarySectionID")]
public int? LibrarySectionID { get; set; }
[JsonProperty("librarySectionTitle")]
public string? LibrarySectionTitle { get; set; }
[JsonProperty("librarySectionUUID")]
public string? LibrarySectionUUID { get; set; }
[JsonProperty("Hub")]
public List<GetLibraryHubsHub>? Hub { get; set; }
}
}

View File

@@ -0,0 +1,122 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using NodaTime;
using System.Collections.Generic;
public class GetLibraryHubsMetadata
{
[JsonProperty("ratingKey")]
public string? RatingKey { get; set; }
[JsonProperty("key")]
public string? Key { get; set; }
[JsonProperty("guid")]
public string? Guid { get; set; }
[JsonProperty("studio")]
public string? Studio { get; set; }
[JsonProperty("type")]
public string? Type { get; set; }
[JsonProperty("title")]
public string? Title { get; set; }
[JsonProperty("librarySectionTitle")]
public string? LibrarySectionTitle { get; set; }
[JsonProperty("librarySectionID")]
public int? LibrarySectionID { get; set; }
[JsonProperty("librarySectionKey")]
public string? LibrarySectionKey { get; set; }
[JsonProperty("contentRating")]
public string? ContentRating { get; set; }
[JsonProperty("summary")]
public string? Summary { get; set; }
[JsonProperty("rating")]
public double? Rating { get; set; }
[JsonProperty("audienceRating")]
public double? AudienceRating { get; set; }
[JsonProperty("viewCount")]
public int? ViewCount { get; set; }
[JsonProperty("lastViewedAt")]
public int? LastViewedAt { get; set; }
[JsonProperty("year")]
public int? Year { get; set; }
[JsonProperty("tagline")]
public string? Tagline { get; set; }
[JsonProperty("thumb")]
public string? Thumb { get; set; }
[JsonProperty("art")]
public string? Art { get; set; }
[JsonProperty("duration")]
public int? Duration { get; set; }
[JsonProperty("originallyAvailableAt")]
public LocalDate? OriginallyAvailableAt { get; set; }
[JsonProperty("addedAt")]
public int? AddedAt { get; set; }
[JsonProperty("updatedAt")]
public int? UpdatedAt { get; set; }
[JsonProperty("audienceRatingImage")]
public string? AudienceRatingImage { get; set; }
[JsonProperty("primaryExtraKey")]
public string? PrimaryExtraKey { get; set; }
[JsonProperty("ratingImage")]
public string? RatingImage { get; set; }
[JsonProperty("Media")]
public List<GetLibraryHubsMedia>? Media { get; set; }
[JsonProperty("Genre")]
public List<GetLibraryHubsGenre>? Genre { get; set; }
[JsonProperty("Country")]
public List<GetLibraryHubsCountry>? Country { get; set; }
[JsonProperty("Director")]
public List<GetLibraryHubsDirector>? Director { get; set; }
[JsonProperty("Role")]
public List<GetLibraryHubsRole>? Role { get; set; }
[JsonProperty("Writer")]
public List<GetLibraryHubsWriter>? Writer { get; set; }
[JsonProperty("skipCount")]
public int? SkipCount { get; set; }
[JsonProperty("chapterSource")]
public string? ChapterSource { get; set; }
}
}

View File

@@ -0,0 +1,48 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
public class GetLibraryHubsPart
{
[JsonProperty("id")]
public int? Id { get; set; }
[JsonProperty("key")]
public string? Key { get; set; }
[JsonProperty("duration")]
public int? Duration { get; set; }
[JsonProperty("file")]
public string? File { get; set; }
[JsonProperty("size")]
public int? Size { get; set; }
[JsonProperty("audioProfile")]
public string? AudioProfile { get; set; }
[JsonProperty("container")]
public string? Container { get; set; }
[JsonProperty("has64bitOffsets")]
public bool? Has64bitOffsets { get; set; }
[JsonProperty("optimizedForStreaming")]
public bool? OptimizedForStreaming { get; set; }
[JsonProperty("videoProfile")]
public string? VideoProfile { get; set; }
}
}

View File

@@ -31,9 +31,14 @@ namespace PlexAPI.Models.Requests
/// </summary>
public HttpResponseMessage RawResponse { get; set; } = default!;
/// <summary>
/// The hubs specific to the library
/// </summary>
public GetLibraryHubsResponseBody? TwoHundredApplicationJsonObject { get; set; }
/// <summary>
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
/// </summary>
public GetLibraryHubsResponseBody? Object { get; set; }
public GetLibraryHubsHubsResponseBody? FourHundredAndOneApplicationJsonObject { get; set; }
}
}

View File

@@ -11,15 +11,14 @@
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using System.Collections.Generic;
/// <summary>
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
/// The hubs specific to the library
/// </summary>
public class GetLibraryHubsResponseBody
{
[JsonProperty("errors")]
public List<GetLibraryHubsErrors>? Errors { get; set; }
[JsonProperty("MediaContainer")]
public GetLibraryHubsMediaContainer? MediaContainer { get; set; }
}
}

View File

@@ -0,0 +1,21 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
public class GetLibraryHubsRole
{
[JsonProperty("tag")]
public string? Tag { get; set; }
}
}

View File

@@ -0,0 +1,21 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
public class GetLibraryHubsWriter
{
[JsonProperty("tag")]
public string? Tag { get; set; }
}
}

View File

@@ -0,0 +1,21 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
public class GetLibraryItemsCountry
{
[JsonProperty("tag")]
public string? Tag { get; set; }
}
}

View File

@@ -0,0 +1,21 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
public class GetLibraryItemsDirector
{
[JsonProperty("tag")]
public string? Tag { get; set; }
}
}

View File

@@ -0,0 +1,21 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
public class GetLibraryItemsGenre
{
[JsonProperty("tag")]
public string? Tag { get; set; }
}
}

View File

@@ -0,0 +1,61 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using System.Collections.Generic;
public class GetLibraryItemsMedia
{
[JsonProperty("id")]
public int? Id { get; set; }
[JsonProperty("duration")]
public int? Duration { get; set; }
[JsonProperty("bitrate")]
public int? Bitrate { get; set; }
[JsonProperty("width")]
public int? Width { get; set; }
[JsonProperty("height")]
public int? Height { get; set; }
[JsonProperty("aspectRatio")]
public double? AspectRatio { get; set; }
[JsonProperty("audioChannels")]
public int? AudioChannels { get; set; }
[JsonProperty("audioCodec")]
public string? AudioCodec { get; set; }
[JsonProperty("videoCodec")]
public string? VideoCodec { get; set; }
[JsonProperty("videoResolution")]
public string? VideoResolution { get; set; }
[JsonProperty("container")]
public string? Container { get; set; }
[JsonProperty("videoFrameRate")]
public string? VideoFrameRate { get; set; }
[JsonProperty("videoProfile")]
public string? VideoProfile { get; set; }
[JsonProperty("Part")]
public List<GetLibraryItemsPart>? Part { get; set; }
}
}

View File

@@ -0,0 +1,64 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using System.Collections.Generic;
public class GetLibraryItemsMediaContainer
{
[JsonProperty("size")]
public int? Size { get; set; }
[JsonProperty("allowSync")]
public bool? AllowSync { get; set; }
[JsonProperty("art")]
public string? Art { get; set; }
[JsonProperty("identifier")]
public string? Identifier { get; set; }
[JsonProperty("librarySectionID")]
public int? LibrarySectionID { get; set; }
[JsonProperty("librarySectionTitle")]
public string? LibrarySectionTitle { get; set; }
[JsonProperty("librarySectionUUID")]
public string? LibrarySectionUUID { 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("title2")]
public string? Title2 { get; set; }
[JsonProperty("viewGroup")]
public string? ViewGroup { get; set; }
[JsonProperty("viewMode")]
public int? ViewMode { get; set; }
[JsonProperty("Metadata")]
public List<GetLibraryItemsMetadata>? Metadata { get; set; }
}
}

View File

@@ -0,0 +1,122 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using NodaTime;
using System.Collections.Generic;
public class GetLibraryItemsMetadata
{
[JsonProperty("ratingKey")]
public string? RatingKey { get; set; }
[JsonProperty("key")]
public string? Key { get; set; }
[JsonProperty("guid")]
public string? Guid { get; set; }
[JsonProperty("studio")]
public string? Studio { get; set; }
[JsonProperty("type")]
public string? Type { get; set; }
[JsonProperty("title")]
public string? Title { get; set; }
[JsonProperty("contentRating")]
public string? ContentRating { get; set; }
[JsonProperty("summary")]
public string? Summary { get; set; }
[JsonProperty("rating")]
public double? Rating { get; set; }
[JsonProperty("audienceRating")]
public double? AudienceRating { get; set; }
[JsonProperty("year")]
public int? Year { get; set; }
[JsonProperty("tagline")]
public string? Tagline { get; set; }
[JsonProperty("thumb")]
public string? Thumb { get; set; }
[JsonProperty("art")]
public string? Art { get; set; }
[JsonProperty("duration")]
public int? Duration { get; set; }
[JsonProperty("originallyAvailableAt")]
public LocalDate? OriginallyAvailableAt { get; set; }
[JsonProperty("addedAt")]
public int? AddedAt { get; set; }
[JsonProperty("updatedAt")]
public int? UpdatedAt { get; set; }
[JsonProperty("audienceRatingImage")]
public string? AudienceRatingImage { get; set; }
[JsonProperty("chapterSource")]
public string? ChapterSource { get; set; }
[JsonProperty("primaryExtraKey")]
public string? PrimaryExtraKey { get; set; }
[JsonProperty("ratingImage")]
public string? RatingImage { get; set; }
[JsonProperty("Media")]
public List<GetLibraryItemsMedia>? Media { get; set; }
[JsonProperty("Genre")]
public List<GetLibraryItemsGenre>? Genre { get; set; }
[JsonProperty("Country")]
public List<GetLibraryItemsCountry>? Country { get; set; }
[JsonProperty("Director")]
public List<GetLibraryItemsDirector>? Director { get; set; }
[JsonProperty("Writer")]
public List<GetLibraryItemsWriter>? Writer { get; set; }
[JsonProperty("Role")]
public List<GetLibraryItemsRole>? Role { get; set; }
[JsonProperty("titleSort")]
public string? TitleSort { get; set; }
[JsonProperty("viewCount")]
public int? ViewCount { get; set; }
[JsonProperty("lastViewedAt")]
public int? LastViewedAt { get; set; }
[JsonProperty("originalTitle")]
public string? OriginalTitle { get; set; }
[JsonProperty("viewOffset")]
public int? ViewOffset { get; set; }
[JsonProperty("skipCount")]
public int? SkipCount { get; set; }
}
}

View File

@@ -0,0 +1,39 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
public class GetLibraryItemsPart
{
[JsonProperty("id")]
public int? Id { get; set; }
[JsonProperty("key")]
public string? Key { get; set; }
[JsonProperty("duration")]
public int? Duration { get; set; }
[JsonProperty("file")]
public string? File { get; set; }
[JsonProperty("size")]
public long? Size { get; set; }
[JsonProperty("container")]
public string? Container { get; set; }
[JsonProperty("videoProfile")]
public string? VideoProfile { get; set; }
}
}

View File

@@ -19,18 +19,12 @@ namespace PlexAPI.Models.Requests
/// the Id of the library to query
/// </summary>
[SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionId")]
public double SectionId { get; set; } = default!;
public long SectionId { get; set; } = default!;
/// <summary>
/// item type
/// A key representing a specific tag within the section.
/// </summary>
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=type")]
public double? Type { get; set; }
/// <summary>
/// the filter parameter
/// </summary>
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=filter")]
public string? Filter { get; set; }
[SpeakeasyMetadata("pathParam:style=simple,explode=false,name=tag")]
public Tag Tag { get; set; } = default!;
}
}

View File

@@ -32,7 +32,7 @@ namespace PlexAPI.Models.Requests
public HttpResponseMessage RawResponse { get; set; } = default!;
/// <summary>
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
/// The contents of the library by section and tag
/// </summary>
public GetLibraryItemsResponseBody? Object { get; set; }
}

View File

@@ -11,15 +11,14 @@
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using System.Collections.Generic;
/// <summary>
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
/// The contents of the library by section and tag
/// </summary>
public class GetLibraryItemsResponseBody
{
[JsonProperty("errors")]
public List<GetLibraryItemsErrors>? Errors { get; set; }
[JsonProperty("MediaContainer")]
public GetLibraryItemsMediaContainer? MediaContainer { get; set; }
}
}

View File

@@ -0,0 +1,21 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
public class GetLibraryItemsRole
{
[JsonProperty("tag")]
public string? Tag { get; set; }
}
}

View File

@@ -0,0 +1,21 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
public class GetLibraryItemsWriter
{
[JsonProperty("tag")]
public string? Tag { get; set; }
}
}

View File

@@ -0,0 +1,33 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
public class GetMetadataChildrenDirectory
{
[JsonProperty("leafCount")]
public int? LeafCount { get; set; }
[JsonProperty("thumb")]
public string? Thumb { get; set; }
[JsonProperty("viewedLeafCount")]
public int? ViewedLeafCount { get; set; }
[JsonProperty("key")]
public string? Key { get; set; }
[JsonProperty("title")]
public string? Title { get; set; }
}
}

View File

@@ -0,0 +1,25 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using System.Collections.Generic;
/// <summary>
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
/// </summary>
public class GetMetadataChildrenLibraryResponseBody
{
[JsonProperty("errors")]
public List<GetMetadataChildrenErrors>? Errors { get; set; }
}
}

View File

@@ -0,0 +1,88 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using System.Collections.Generic;
public class GetMetadataChildrenMediaContainer
{
[JsonProperty("size")]
public int? Size { get; set; }
[JsonProperty("allowSync")]
public bool? AllowSync { get; set; }
[JsonProperty("art")]
public string? Art { get; set; }
[JsonProperty("identifier")]
public string? Identifier { get; set; }
[JsonProperty("key")]
public string? Key { get; set; }
[JsonProperty("librarySectionID")]
public int? LibrarySectionID { get; set; }
[JsonProperty("librarySectionTitle")]
public string? LibrarySectionTitle { get; set; }
[JsonProperty("librarySectionUUID")]
public string? LibrarySectionUUID { get; set; }
[JsonProperty("mediaTagPrefix")]
public string? MediaTagPrefix { get; set; }
[JsonProperty("mediaTagVersion")]
public int? MediaTagVersion { get; set; }
[JsonProperty("nocache")]
public bool? Nocache { get; set; }
[JsonProperty("parentIndex")]
public int? ParentIndex { get; set; }
[JsonProperty("parentTitle")]
public string? ParentTitle { get; set; }
[JsonProperty("parentYear")]
public int? ParentYear { get; set; }
[JsonProperty("summary")]
public string? Summary { get; set; }
[JsonProperty("theme")]
public string? Theme { get; set; }
[JsonProperty("thumb")]
public string? Thumb { get; set; }
[JsonProperty("title1")]
public string? Title1 { get; set; }
[JsonProperty("title2")]
public string? Title2 { get; set; }
[JsonProperty("viewGroup")]
public string? ViewGroup { get; set; }
[JsonProperty("viewMode")]
public int? ViewMode { get; set; }
[JsonProperty("Directory")]
public List<GetMetadataChildrenDirectory>? Directory { get; set; }
[JsonProperty("Metadata")]
public List<GetMetadataChildrenMetadata>? Metadata { get; set; }
}
}

View File

@@ -0,0 +1,99 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
public class GetMetadataChildrenMetadata
{
[JsonProperty("ratingKey")]
public string? RatingKey { get; set; }
[JsonProperty("key")]
public string? Key { get; set; }
[JsonProperty("parentRatingKey")]
public string? ParentRatingKey { get; set; }
[JsonProperty("guid")]
public string? Guid { get; set; }
[JsonProperty("parentGuid")]
public string? ParentGuid { get; set; }
[JsonProperty("parentStudio")]
public string? ParentStudio { get; set; }
[JsonProperty("type")]
public string? Type { get; set; }
[JsonProperty("title")]
public string? Title { get; set; }
[JsonProperty("parentKey")]
public string? ParentKey { get; set; }
[JsonProperty("parentTitle")]
public string? ParentTitle { get; set; }
[JsonProperty("summary")]
public string? Summary { get; set; }
[JsonProperty("index")]
public int? Index { get; set; }
[JsonProperty("parentIndex")]
public int? ParentIndex { get; set; }
[JsonProperty("viewCount")]
public int? ViewCount { get; set; }
[JsonProperty("lastViewedAt")]
public int? LastViewedAt { get; set; }
[JsonProperty("parentYear")]
public int? ParentYear { get; set; }
[JsonProperty("thumb")]
public string? Thumb { get; set; }
[JsonProperty("art")]
public string? Art { get; set; }
[JsonProperty("parentThumb")]
public string? ParentThumb { get; set; }
[JsonProperty("parentTheme")]
public string? ParentTheme { get; set; }
[JsonProperty("leafCount")]
public int? LeafCount { get; set; }
[JsonProperty("viewedLeafCount")]
public int? ViewedLeafCount { get; set; }
[JsonProperty("addedAt")]
public int? AddedAt { get; set; }
[JsonProperty("updatedAt")]
public int? UpdatedAt { get; set; }
[JsonProperty("userRating")]
public int? UserRating { get; set; }
[JsonProperty("skipCount")]
public int? SkipCount { get; set; }
[JsonProperty("lastRatedAt")]
public int? LastRatedAt { get; set; }
}
}

View File

@@ -31,9 +31,14 @@ namespace PlexAPI.Models.Requests
/// </summary>
public HttpResponseMessage RawResponse { get; set; } = default!;
/// <summary>
/// The children of the library item.
/// </summary>
public GetMetadataChildrenResponseBody? TwoHundredApplicationJsonObject { get; set; }
/// <summary>
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
/// </summary>
public GetMetadataChildrenResponseBody? Object { get; set; }
public GetMetadataChildrenLibraryResponseBody? FourHundredAndOneApplicationJsonObject { get; set; }
}
}

View File

@@ -11,15 +11,14 @@
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using System.Collections.Generic;
/// <summary>
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
/// The children of the library item.
/// </summary>
public class GetMetadataChildrenResponseBody
{
[JsonProperty("errors")]
public List<GetMetadataChildrenErrors>? Errors { get; set; }
[JsonProperty("MediaContainer")]
public GetMetadataChildrenMediaContainer? MediaContainer { get; set; }
}
}

View File

@@ -12,16 +12,16 @@ namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
public class GetLibraryItemsErrors
public class GetMetadataCountry
{
[JsonProperty("code")]
public double? Code { get; set; }
[JsonProperty("id")]
public int? Id { get; set; }
[JsonProperty("message")]
public string? Message { get; set; }
[JsonProperty("filter")]
public string? Filter { get; set; }
[JsonProperty("status")]
public double? Status { get; set; }
[JsonProperty("tag")]
public string? Tag { get; set; }
}
}

View File

@@ -0,0 +1,33 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
public class GetMetadataDirector
{
[JsonProperty("id")]
public int? Id { get; set; }
[JsonProperty("filter")]
public string? Filter { get; set; }
[JsonProperty("tag")]
public string? Tag { get; set; }
[JsonProperty("tagKey")]
public string? TagKey { get; set; }
[JsonProperty("thumb")]
public string? Thumb { get; set; }
}
}

View File

@@ -12,16 +12,16 @@ namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
public class GetCommonLibraryItemsErrors
public class GetMetadataGenre
{
[JsonProperty("code")]
public double? Code { get; set; }
[JsonProperty("id")]
public int? Id { get; set; }
[JsonProperty("message")]
public string? Message { get; set; }
[JsonProperty("filter")]
public string? Filter { get; set; }
[JsonProperty("status")]
public double? Status { get; set; }
[JsonProperty("tag")]
public string? Tag { get; set; }
}
}

View File

@@ -0,0 +1,25 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using System.Collections.Generic;
/// <summary>
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
/// </summary>
public class GetMetadataLibraryResponseBody
{
[JsonProperty("errors")]
public List<GetMetadataErrors>? Errors { get; set; }
}
}

View File

@@ -0,0 +1,70 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using System.Collections.Generic;
public class GetMetadataMedia
{
[JsonProperty("id")]
public int? Id { get; set; }
[JsonProperty("duration")]
public int? Duration { get; set; }
[JsonProperty("bitrate")]
public int? Bitrate { get; set; }
[JsonProperty("width")]
public int? Width { get; set; }
[JsonProperty("height")]
public int? Height { get; set; }
[JsonProperty("aspectRatio")]
public double? AspectRatio { get; set; }
[JsonProperty("audioChannels")]
public int? AudioChannels { get; set; }
[JsonProperty("audioCodec")]
public string? AudioCodec { get; set; }
[JsonProperty("videoCodec")]
public string? VideoCodec { get; set; }
[JsonProperty("videoResolution")]
public string? VideoResolution { get; set; }
[JsonProperty("container")]
public string? Container { get; set; }
[JsonProperty("videoFrameRate")]
public string? VideoFrameRate { get; set; }
[JsonProperty("optimizedForStreaming")]
public int? OptimizedForStreaming { get; set; }
[JsonProperty("audioProfile")]
public string? AudioProfile { get; set; }
[JsonProperty("has64bitOffsets")]
public bool? Has64bitOffsets { get; set; }
[JsonProperty("videoProfile")]
public string? VideoProfile { get; set; }
[JsonProperty("Part")]
public List<GetMetadataPart>? Part { get; set; }
}
}

View File

@@ -0,0 +1,46 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using System.Collections.Generic;
public class GetMetadataMediaContainer
{
[JsonProperty("size")]
public int? Size { get; set; }
[JsonProperty("allowSync")]
public bool? AllowSync { get; set; }
[JsonProperty("identifier")]
public string? Identifier { get; set; }
[JsonProperty("librarySectionID")]
public int? LibrarySectionID { get; set; }
[JsonProperty("librarySectionTitle")]
public string? LibrarySectionTitle { get; set; }
[JsonProperty("librarySectionUUID")]
public string? LibrarySectionUUID { get; set; }
[JsonProperty("mediaTagPrefix")]
public string? MediaTagPrefix { get; set; }
[JsonProperty("mediaTagVersion")]
public int? MediaTagVersion { get; set; }
[JsonProperty("Metadata")]
public List<GetMetadataMetadata>? Metadata { get; set; }
}
}

View File

@@ -0,0 +1,119 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using NodaTime;
using System.Collections.Generic;
public class GetMetadataMetadata
{
[JsonProperty("ratingKey")]
public string? RatingKey { get; set; }
[JsonProperty("key")]
public string? Key { get; set; }
[JsonProperty("guid")]
public string? Guid { get; set; }
[JsonProperty("studio")]
public string? Studio { get; set; }
[JsonProperty("type")]
public string? Type { get; set; }
[JsonProperty("title")]
public string? Title { get; set; }
[JsonProperty("librarySectionTitle")]
public string? LibrarySectionTitle { get; set; }
[JsonProperty("librarySectionID")]
public int? LibrarySectionID { get; set; }
[JsonProperty("librarySectionKey")]
public string? LibrarySectionKey { get; set; }
[JsonProperty("contentRating")]
public string? ContentRating { get; set; }
[JsonProperty("summary")]
public string? Summary { get; set; }
[JsonProperty("rating")]
public double? Rating { get; set; }
[JsonProperty("audienceRating")]
public double? AudienceRating { get; set; }
[JsonProperty("year")]
public int? Year { get; set; }
[JsonProperty("tagline")]
public string? Tagline { get; set; }
[JsonProperty("thumb")]
public string? Thumb { get; set; }
[JsonProperty("art")]
public string? Art { get; set; }
[JsonProperty("duration")]
public int? Duration { get; set; }
[JsonProperty("originallyAvailableAt")]
public LocalDate? OriginallyAvailableAt { get; set; }
[JsonProperty("addedAt")]
public int? AddedAt { get; set; }
[JsonProperty("updatedAt")]
public int? UpdatedAt { get; set; }
[JsonProperty("audienceRatingImage")]
public string? AudienceRatingImage { get; set; }
[JsonProperty("hasPremiumPrimaryExtra")]
public string? HasPremiumPrimaryExtra { get; set; }
[JsonProperty("ratingImage")]
public string? RatingImage { get; set; }
[JsonProperty("Media")]
public List<GetMetadataMedia>? Media { get; set; }
[JsonProperty("Genre")]
public List<GetMetadataGenre>? Genre { get; set; }
[JsonProperty("Country")]
public List<GetMetadataCountry>? Country { get; set; }
[JsonProperty("Guid")]
public List<Guids>? Guids { get; set; }
[JsonProperty("Rating")]
public List<Ratings>? Ratings { get; set; }
[JsonProperty("Director")]
public List<GetMetadataDirector>? Director { get; set; }
[JsonProperty("Writer")]
public List<GetMetadataWriter>? Writer { get; set; }
[JsonProperty("Role")]
public List<GetMetadataRole>? Role { get; set; }
[JsonProperty("Producer")]
public List<Producer>? Producer { get; set; }
}
}

View File

@@ -0,0 +1,52 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using System.Collections.Generic;
public class GetMetadataPart
{
[JsonProperty("id")]
public int? Id { get; set; }
[JsonProperty("key")]
public string? Key { get; set; }
[JsonProperty("duration")]
public int? Duration { get; set; }
[JsonProperty("file")]
public string? File { get; set; }
[JsonProperty("size")]
public int? Size { get; set; }
[JsonProperty("audioProfile")]
public string? AudioProfile { get; set; }
[JsonProperty("container")]
public string? Container { get; set; }
[JsonProperty("has64bitOffsets")]
public bool? Has64bitOffsets { get; set; }
[JsonProperty("optimizedForStreaming")]
public bool? OptimizedForStreaming { get; set; }
[JsonProperty("videoProfile")]
public string? VideoProfile { get; set; }
[JsonProperty("Stream")]
public List<Stream>? Stream { get; set; }
}
}

View File

@@ -31,9 +31,14 @@ namespace PlexAPI.Models.Requests
/// </summary>
public HttpResponseMessage RawResponse { get; set; } = default!;
/// <summary>
/// The metadata of the library item.
/// </summary>
public GetMetadataResponseBody? TwoHundredApplicationJsonObject { get; set; }
/// <summary>
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
/// </summary>
public GetMetadataResponseBody? Object { get; set; }
public GetMetadataLibraryResponseBody? FourHundredAndOneApplicationJsonObject { get; set; }
}
}

View File

@@ -11,15 +11,14 @@
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using System.Collections.Generic;
/// <summary>
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
/// The metadata of the library item.
/// </summary>
public class GetMetadataResponseBody
{
[JsonProperty("errors")]
public List<GetMetadataErrors>? Errors { get; set; }
[JsonProperty("MediaContainer")]
public GetMetadataMediaContainer? MediaContainer { get; set; }
}
}

View File

@@ -0,0 +1,36 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
public class GetMetadataRole
{
[JsonProperty("id")]
public int? Id { get; set; }
[JsonProperty("filter")]
public string? Filter { get; set; }
[JsonProperty("tag")]
public string? Tag { get; set; }
[JsonProperty("tagKey")]
public string? TagKey { get; set; }
[JsonProperty("role")]
public string? Role { get; set; }
[JsonProperty("thumb")]
public string? Thumb { get; set; }
}
}

View File

@@ -0,0 +1,33 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
public class GetMetadataWriter
{
[JsonProperty("id")]
public int? Id { get; set; }
[JsonProperty("filter")]
public string? Filter { get; set; }
[JsonProperty("tag")]
public string? Tag { get; set; }
[JsonProperty("tagKey")]
public string? TagKey { get; set; }
[JsonProperty("thumb")]
public string? Thumb { get; set; }
}
}

View File

@@ -0,0 +1,21 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
public class GetOnDeckGuids
{
[JsonProperty("id")]
public string? Id { get; set; }
}
}

View File

@@ -123,6 +123,6 @@ namespace PlexAPI.Models.Requests
public List<GetOnDeckMedia>? Media { get; set; }
[JsonProperty("Guid")]
public List<Guids>? Guids { get; set; }
public List<GetOnDeckGuids>? Guids { get; set; }
}
}

View File

@@ -41,6 +41,6 @@ namespace PlexAPI.Models.Requests
public string? VideoProfile { get; set; }
[JsonProperty("Stream")]
public List<Stream>? Stream { get; set; }
public List<GetOnDeckStream>? Stream { get; set; }
}
}

View File

@@ -0,0 +1,87 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
public class GetOnDeckStream
{
[JsonProperty("id")]
public double? Id { get; set; }
[JsonProperty("streamType")]
public double? StreamType { get; set; }
[JsonProperty("default")]
public bool? Default { get; set; }
[JsonProperty("codec")]
public string? Codec { get; set; }
[JsonProperty("index")]
public double? Index { get; set; }
[JsonProperty("bitrate")]
public double? Bitrate { get; set; }
[JsonProperty("language")]
public string? Language { get; set; }
[JsonProperty("languageTag")]
public string? LanguageTag { get; set; }
[JsonProperty("languageCode")]
public string? LanguageCode { get; set; }
[JsonProperty("bitDepth")]
public double? BitDepth { get; set; }
[JsonProperty("chromaLocation")]
public string? ChromaLocation { get; set; }
[JsonProperty("chromaSubsampling")]
public string? ChromaSubsampling { get; set; }
[JsonProperty("codedHeight")]
public double? CodedHeight { get; set; }
[JsonProperty("codedWidth")]
public double? CodedWidth { get; set; }
[JsonProperty("colorRange")]
public string? ColorRange { get; set; }
[JsonProperty("frameRate")]
public double? FrameRate { get; set; }
[JsonProperty("height")]
public double? Height { get; set; }
[JsonProperty("level")]
public double? Level { get; set; }
[JsonProperty("profile")]
public string? Profile { get; set; }
[JsonProperty("refFrames")]
public double? RefFrames { get; set; }
[JsonProperty("width")]
public double? Width { get; set; }
[JsonProperty("displayTitle")]
public string? DisplayTitle { get; set; }
[JsonProperty("extendedDisplayTitle")]
public string? ExtendedDisplayTitle { get; set; }
}
}

View File

@@ -0,0 +1,21 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
public class GetPlaylistContentsCountry
{
[JsonProperty("tag")]
public string? Tag { get; set; }
}
}

View File

@@ -0,0 +1,21 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
public class GetPlaylistContentsDirector
{
[JsonProperty("tag")]
public string? Tag { get; set; }
}
}

View File

@@ -0,0 +1,21 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
public class GetPlaylistContentsGenre
{
[JsonProperty("tag")]
public string? Tag { get; set; }
}
}

View File

@@ -0,0 +1,70 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using System.Collections.Generic;
public class GetPlaylistContentsMedia
{
[JsonProperty("id")]
public int? Id { get; set; }
[JsonProperty("duration")]
public int? Duration { get; set; }
[JsonProperty("bitrate")]
public int? Bitrate { get; set; }
[JsonProperty("width")]
public int? Width { get; set; }
[JsonProperty("height")]
public int? Height { get; set; }
[JsonProperty("aspectRatio")]
public double? AspectRatio { get; set; }
[JsonProperty("audioChannels")]
public int? AudioChannels { get; set; }
[JsonProperty("audioCodec")]
public string? AudioCodec { get; set; }
[JsonProperty("videoCodec")]
public string? VideoCodec { get; set; }
[JsonProperty("videoResolution")]
public string? VideoResolution { get; set; }
[JsonProperty("container")]
public string? Container { get; set; }
[JsonProperty("videoFrameRate")]
public string? VideoFrameRate { get; set; }
[JsonProperty("optimizedForStreaming")]
public int? OptimizedForStreaming { get; set; }
[JsonProperty("audioProfile")]
public string? AudioProfile { get; set; }
[JsonProperty("has64bitOffsets")]
public bool? Has64bitOffsets { get; set; }
[JsonProperty("videoProfile")]
public string? VideoProfile { get; set; }
[JsonProperty("Part")]
public List<GetPlaylistContentsPart>? Part { get; set; }
}
}

View File

@@ -0,0 +1,46 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using System.Collections.Generic;
public class GetPlaylistContentsMediaContainer
{
[JsonProperty("size")]
public int? Size { get; set; }
[JsonProperty("composite")]
public string? Composite { get; set; }
[JsonProperty("duration")]
public int? Duration { get; set; }
[JsonProperty("leafCount")]
public int? LeafCount { get; set; }
[JsonProperty("playlistType")]
public string? PlaylistType { get; set; }
[JsonProperty("ratingKey")]
public string? RatingKey { get; set; }
[JsonProperty("smart")]
public bool? Smart { get; set; }
[JsonProperty("title")]
public string? Title { get; set; }
[JsonProperty("Metadata")]
public List<GetPlaylistContentsMetadata>? Metadata { get; set; }
}
}

View File

@@ -0,0 +1,116 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using NodaTime;
using System.Collections.Generic;
public class GetPlaylistContentsMetadata
{
[JsonProperty("ratingKey")]
public string? RatingKey { get; set; }
[JsonProperty("key")]
public string? Key { get; set; }
[JsonProperty("guid")]
public string? Guid { get; set; }
[JsonProperty("studio")]
public string? Studio { get; set; }
[JsonProperty("type")]
public string? Type { get; set; }
[JsonProperty("title")]
public string? Title { get; set; }
[JsonProperty("titleSort")]
public string? TitleSort { get; set; }
[JsonProperty("librarySectionTitle")]
public string? LibrarySectionTitle { get; set; }
[JsonProperty("librarySectionID")]
public int? LibrarySectionID { get; set; }
[JsonProperty("librarySectionKey")]
public string? LibrarySectionKey { get; set; }
[JsonProperty("contentRating")]
public string? ContentRating { get; set; }
[JsonProperty("summary")]
public string? Summary { get; set; }
[JsonProperty("rating")]
public double? Rating { get; set; }
[JsonProperty("audienceRating")]
public double? AudienceRating { get; set; }
[JsonProperty("year")]
public int? Year { get; set; }
[JsonProperty("tagline")]
public string? Tagline { get; set; }
[JsonProperty("thumb")]
public string? Thumb { get; set; }
[JsonProperty("art")]
public string? Art { get; set; }
[JsonProperty("duration")]
public int? Duration { get; set; }
[JsonProperty("originallyAvailableAt")]
public LocalDate? OriginallyAvailableAt { get; set; }
[JsonProperty("addedAt")]
public int? AddedAt { get; set; }
[JsonProperty("updatedAt")]
public int? UpdatedAt { get; set; }
[JsonProperty("audienceRatingImage")]
public string? AudienceRatingImage { get; set; }
[JsonProperty("hasPremiumExtras")]
public string? HasPremiumExtras { get; set; }
[JsonProperty("hasPremiumPrimaryExtra")]
public string? HasPremiumPrimaryExtra { get; set; }
[JsonProperty("ratingImage")]
public string? RatingImage { get; set; }
[JsonProperty("Media")]
public List<GetPlaylistContentsMedia>? Media { get; set; }
[JsonProperty("Genre")]
public List<GetPlaylistContentsGenre>? Genre { get; set; }
[JsonProperty("Country")]
public List<GetPlaylistContentsCountry>? Country { get; set; }
[JsonProperty("Director")]
public List<GetPlaylistContentsDirector>? Director { get; set; }
[JsonProperty("Writer")]
public List<GetPlaylistContentsWriter>? Writer { get; set; }
[JsonProperty("Role")]
public List<GetPlaylistContentsRole>? Role { get; set; }
}
}

View File

@@ -0,0 +1,48 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
public class GetPlaylistContentsPart
{
[JsonProperty("id")]
public int? Id { get; set; }
[JsonProperty("key")]
public string? Key { get; set; }
[JsonProperty("duration")]
public int? Duration { get; set; }
[JsonProperty("file")]
public string? File { get; set; }
[JsonProperty("size")]
public int? Size { get; set; }
[JsonProperty("audioProfile")]
public string? AudioProfile { get; set; }
[JsonProperty("container")]
public string? Container { get; set; }
[JsonProperty("has64bitOffsets")]
public bool? Has64bitOffsets { get; set; }
[JsonProperty("optimizedForStreaming")]
public bool? OptimizedForStreaming { get; set; }
[JsonProperty("videoProfile")]
public string? VideoProfile { get; set; }
}
}

View File

@@ -0,0 +1,25 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using System.Collections.Generic;
/// <summary>
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
/// </summary>
public class GetPlaylistContentsPlaylistsResponseBody
{
[JsonProperty("errors")]
public List<GetPlaylistContentsErrors>? Errors { get; set; }
}
}

View File

@@ -31,9 +31,14 @@ namespace PlexAPI.Models.Requests
/// </summary>
public HttpResponseMessage RawResponse { get; set; } = default!;
/// <summary>
/// The playlist contents
/// </summary>
public GetPlaylistContentsResponseBody? TwoHundredApplicationJsonObject { get; set; }
/// <summary>
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
/// </summary>
public GetPlaylistContentsResponseBody? Object { get; set; }
public GetPlaylistContentsPlaylistsResponseBody? FourHundredAndOneApplicationJsonObject { get; set; }
}
}

View File

@@ -11,15 +11,14 @@
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using System.Collections.Generic;
/// <summary>
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
/// The playlist contents
/// </summary>
public class GetPlaylistContentsResponseBody
{
[JsonProperty("errors")]
public List<GetPlaylistContentsErrors>? Errors { get; set; }
[JsonProperty("MediaContainer")]
public GetPlaylistContentsMediaContainer? MediaContainer { get; set; }
}
}

View File

@@ -0,0 +1,21 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
public class GetPlaylistContentsRole
{
[JsonProperty("tag")]
public string? Tag { get; set; }
}
}

View File

@@ -0,0 +1,21 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
public class GetPlaylistContentsWriter
{
[JsonProperty("tag")]
public string? Tag { get; set; }
}
}

View File

@@ -0,0 +1,25 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using System.Collections.Generic;
public class GetPlaylistMediaContainer
{
[JsonProperty("size")]
public int? Size { get; set; }
[JsonProperty("Metadata")]
public List<GetPlaylistMetadata>? Metadata { get; set; }
}
}

View File

@@ -0,0 +1,63 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
public class GetPlaylistMetadata
{
[JsonProperty("content")]
public string? Content { get; set; }
[JsonProperty("ratingKey")]
public string? RatingKey { get; set; }
[JsonProperty("key")]
public string? Key { get; set; }
[JsonProperty("guid")]
public string? Guid { get; set; }
[JsonProperty("type")]
public string? Type { get; set; }
[JsonProperty("title")]
public string? Title { get; set; }
[JsonProperty("summary")]
public string? Summary { get; set; }
[JsonProperty("smart")]
public bool? Smart { get; set; }
[JsonProperty("playlistType")]
public string? PlaylistType { get; set; }
[JsonProperty("composite")]
public string? Composite { get; set; }
[JsonProperty("icon")]
public string? Icon { get; set; }
[JsonProperty("duration")]
public int? Duration { get; set; }
[JsonProperty("leafCount")]
public int? LeafCount { get; set; }
[JsonProperty("addedAt")]
public int? AddedAt { get; set; }
[JsonProperty("updatedAt")]
public int? UpdatedAt { get; set; }
}
}

View File

@@ -0,0 +1,25 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using System.Collections.Generic;
/// <summary>
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
/// </summary>
public class GetPlaylistPlaylistsResponseBody
{
[JsonProperty("errors")]
public List<GetPlaylistErrors>? Errors { get; set; }
}
}

View File

@@ -31,9 +31,14 @@ namespace PlexAPI.Models.Requests
/// </summary>
public HttpResponseMessage RawResponse { get; set; } = default!;
/// <summary>
/// The playlist
/// </summary>
public GetPlaylistResponseBody? TwoHundredApplicationJsonObject { get; set; }
/// <summary>
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
/// </summary>
public GetPlaylistResponseBody? Object { get; set; }
public GetPlaylistPlaylistsResponseBody? FourHundredAndOneApplicationJsonObject { get; set; }
}
}

View File

@@ -11,15 +11,14 @@
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using System.Collections.Generic;
/// <summary>
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
/// The playlist
/// </summary>
public class GetPlaylistResponseBody
{
[JsonProperty("errors")]
public List<GetPlaylistErrors>? Errors { get; set; }
[JsonProperty("MediaContainer")]
public GetPlaylistMediaContainer? MediaContainer { get; set; }
}
}

View File

@@ -0,0 +1,25 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using System.Collections.Generic;
public class GetPlaylistsMediaContainer
{
[JsonProperty("size")]
public int? Size { get; set; }
[JsonProperty("Metadata")]
public List<GetPlaylistsMetadata>? Metadata { get; set; }
}
}

View File

@@ -0,0 +1,66 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
public class GetPlaylistsMetadata
{
[JsonProperty("ratingKey")]
public string? RatingKey { get; set; }
[JsonProperty("key")]
public string? Key { get; set; }
[JsonProperty("guid")]
public string? Guid { get; set; }
[JsonProperty("type")]
public string? Type { get; set; }
[JsonProperty("title")]
public string? Title { get; set; }
[JsonProperty("summary")]
public string? Summary { get; set; }
[JsonProperty("smart")]
public bool? Smart { get; set; }
[JsonProperty("playlistType")]
public string? PlaylistType { get; set; }
[JsonProperty("composite")]
public string? Composite { get; set; }
[JsonProperty("icon")]
public string? Icon { get; set; }
[JsonProperty("viewCount")]
public int? ViewCount { get; set; }
[JsonProperty("lastViewedAt")]
public int? LastViewedAt { get; set; }
[JsonProperty("duration")]
public int? Duration { get; set; }
[JsonProperty("leafCount")]
public int? LeafCount { get; set; }
[JsonProperty("addedAt")]
public int? AddedAt { get; set; }
[JsonProperty("updatedAt")]
public int? UpdatedAt { get; set; }
}
}

View File

@@ -0,0 +1,25 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using System.Collections.Generic;
/// <summary>
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
/// </summary>
public class GetPlaylistsPlaylistsResponseBody
{
[JsonProperty("errors")]
public List<GetPlaylistsErrors>? Errors { get; set; }
}
}

View File

@@ -31,9 +31,14 @@ namespace PlexAPI.Models.Requests
/// </summary>
public HttpResponseMessage RawResponse { get; set; } = default!;
/// <summary>
/// returns all playlists
/// </summary>
public GetPlaylistsResponseBody? TwoHundredApplicationJsonObject { get; set; }
/// <summary>
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
/// </summary>
public GetPlaylistsResponseBody? Object { get; set; }
public GetPlaylistsPlaylistsResponseBody? FourHundredAndOneApplicationJsonObject { get; set; }
}
}

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