From 322299ad9541798ea195f12da1b1657ded9f266b Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 23 Aug 2024 00:09:43 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.377.3 --- .speakeasy/gen.lock | 174 ++++- .speakeasy/gen.yaml | 5 +- .speakeasy/workflow.lock | 11 +- CONTRIBUTING.md | 26 + NUGET.md | 51 +- PlexAPI/Activities.cs | 14 +- PlexAPI/Authentication.cs | 16 +- PlexAPI/Butler.cs | 20 +- PlexAPI/Hooks/HookTypes.cs | 2 +- PlexAPI/Hooks/SDKHooks.cs | 2 +- PlexAPI/Hubs.cs | 12 +- PlexAPI/Library.cs | 18 +- PlexAPI/Log.cs | 18 +- PlexAPI/Media.cs | 18 +- PlexAPI/Models/Components/Security.cs | 4 +- .../Errors/AddPlaylistContentsErrors.cs | 2 +- .../Errors/AddPlaylistContentsResponseBody.cs | 2 +- PlexAPI/Models/Errors/ApplyUpdatesErrors.cs | 2 +- .../Models/Errors/ApplyUpdatesResponseBody.cs | 2 +- .../Errors/CancelServerActivitiesErrors.cs | 2 +- .../CancelServerActivitiesResponseBody.cs | 2 +- .../Models/Errors/CheckForUpdatesErrors.cs | 2 +- .../Errors/CheckForUpdatesResponseBody.cs | 2 +- .../Errors/ClearPlaylistContentsErrors.cs | 2 +- .../ClearPlaylistContentsResponseBody.cs | 2 +- PlexAPI/Models/Errors/CreatePlaylistErrors.cs | 2 +- .../Errors/CreatePlaylistResponseBody.cs | 2 +- PlexAPI/Models/Errors/DeleteLibraryErrors.cs | 2 +- .../Errors/DeleteLibraryResponseBody.cs | 2 +- PlexAPI/Models/Errors/DeletePlaylistErrors.cs | 2 +- .../Errors/DeletePlaylistResponseBody.cs | 2 +- .../Models/Errors/EnablePaperTrailErrors.cs | 2 +- .../Errors/EnablePaperTrailResponseBody.cs | 2 +- PlexAPI/Models/Errors/Errors.cs | 2 +- .../Errors/GetAvailableClientsErrors.cs | 2 +- .../Errors/GetAvailableClientsResponseBody.cs | 2 +- .../Errors/GetBandwidthStatisticsErrors.cs | 2 +- .../GetBandwidthStatisticsResponseBody.cs | 2 +- PlexAPI/Models/Errors/GetButlerTasksErrors.cs | 2 +- .../Errors/GetButlerTasksResponseBody.cs | 2 +- .../Models/Errors/GetCompanionsDataErrors.cs | 27 + .../Errors/GetCompanionsDataResponseBody.cs | 34 + PlexAPI/Models/Errors/GetDevicesErrors.cs | 2 +- .../Models/Errors/GetDevicesResponseBody.cs | 2 +- PlexAPI/Models/Errors/GetFileHashErrors.cs | 2 +- .../Models/Errors/GetFileHashResponseBody.cs | 2 +- ...{GetTokenErrors.cs => GetGeoDataErrors.cs} | 4 +- .../Models/Errors/GetGeoDataResponseBody.cs | 34 + PlexAPI/Models/Errors/GetGlobalHubsErrors.cs | 2 +- .../Errors/GetGlobalHubsResponseBody.cs | 2 +- PlexAPI/Models/Errors/GetHomeDataErrors.cs | 2 +- .../Models/Errors/GetHomeDataResponseBody.cs | 2 +- PlexAPI/Models/Errors/GetLibrariesErrors.cs | 2 +- .../Models/Errors/GetLibrariesResponseBody.cs | 2 +- PlexAPI/Models/Errors/GetLibraryErrors.cs | 2 +- PlexAPI/Models/Errors/GetLibraryHubsErrors.cs | 2 +- .../Errors/GetLibraryHubsResponseBody.cs | 2 +- .../Models/Errors/GetLibraryItemsErrors.cs | 2 +- .../Errors/GetLibraryItemsResponseBody.cs | 2 +- .../Models/Errors/GetLibraryResponseBody.cs | 2 +- .../Errors/GetMetadataChildrenErrors.cs | 2 +- .../Errors/GetMetadataChildrenResponseBody.cs | 2 +- PlexAPI/Models/Errors/GetMetadataErrors.cs | 2 +- .../Models/Errors/GetMetadataResponseBody.cs | 2 +- .../Models/Errors/GetMyPlexAccountErrors.cs | 2 +- .../Errors/GetMyPlexAccountResponseBody.cs | 2 +- PlexAPI/Models/Errors/GetOnDeckErrors.cs | 2 +- .../Models/Errors/GetOnDeckResponseBody.cs | 2 +- PlexAPI/Models/Errors/GetPinErrors.cs | 6 +- PlexAPI/Models/Errors/GetPinResponseBody.cs | 4 +- .../Errors/GetPlaylistContentsErrors.cs | 2 +- .../Errors/GetPlaylistContentsResponseBody.cs | 2 +- PlexAPI/Models/Errors/GetPlaylistErrors.cs | 2 +- .../Models/Errors/GetPlaylistResponseBody.cs | 2 +- PlexAPI/Models/Errors/GetPlaylistsErrors.cs | 2 +- .../Models/Errors/GetPlaylistsResponseBody.cs | 2 +- .../Models/Errors/GetRecentlyAddedErrors.cs | 2 +- .../Errors/GetRecentlyAddedResponseBody.cs | 2 +- .../Models/Errors/GetResizedPhotoErrors.cs | 2 +- .../Errors/GetResizedPhotoResponseBody.cs | 2 +- PlexAPI/Models/Errors/GetResourcesErrors.cs | 27 + .../Models/Errors/GetResourcesResponseBody.cs | 34 + .../Errors/GetResourcesStatisticsErrors.cs | 2 +- .../GetResourcesStatisticsResponseBody.cs | 2 +- .../Models/Errors/GetSearchResultsErrors.cs | 2 +- .../Errors/GetSearchResultsResponseBody.cs | 2 +- .../Errors/GetServerActivitiesErrors.cs | 2 +- .../Errors/GetServerActivitiesResponseBody.cs | 2 +- .../GetServerCapabilitiesResponseBody.cs | 2 +- .../Models/Errors/GetServerIdentityErrors.cs | 2 +- .../Errors/GetServerIdentityResponseBody.cs | 2 +- PlexAPI/Models/Errors/GetServerListErrors.cs | 2 +- .../Errors/GetServerListResponseBody.cs | 2 +- .../Errors/GetServerPreferencesErrors.cs | 2 +- .../GetServerPreferencesResponseBody.cs | 2 +- .../Models/Errors/GetSessionHistoryErrors.cs | 2 +- .../Errors/GetSessionHistoryResponseBody.cs | 2 +- PlexAPI/Models/Errors/GetSessionsErrors.cs | 2 +- .../Models/Errors/GetSessionsResponseBody.cs | 2 +- .../GetSourceConnectionInformationErrors.cs | 2 +- ...SourceConnectionInformationResponseBody.cs | 2 +- PlexAPI/Models/Errors/GetStatisticsErrors.cs | 2 +- .../Errors/GetStatisticsResponseBody.cs | 2 +- PlexAPI/Models/Errors/GetTimelineErrors.cs | 2 +- .../Models/Errors/GetTimelineResponseBody.cs | 2 +- .../Models/Errors/GetTokenByPinIdErrors.cs | 24 + ...Body.cs => GetTokenByPinIdResponseBody.cs} | 8 +- .../Errors/GetTranscodeSessionsErrors.cs | 2 +- .../GetTranscodeSessionsResponseBody.cs | 2 +- .../Models/Errors/GetTransientTokenErrors.cs | 2 +- .../Errors/GetTransientTokenResponseBody.cs | 2 +- .../Models/Errors/GetUpdateStatusErrors.cs | 2 +- .../Errors/GetUpdateStatusResponseBody.cs | 2 +- PlexAPI/Models/Errors/GetUserDetailsErrors.cs | 27 + .../Errors/GetUserDetailsResponseBody.cs | 34 + PlexAPI/Models/Errors/GetUserFriendsErrors.cs | 27 + .../Errors/GetUserFriendsResponseBody.cs | 34 + PlexAPI/Models/Errors/GetWatchlistErrors.cs | 2 +- .../Models/Errors/GetWatchlistResponseBody.cs | 2 +- PlexAPI/Models/Errors/LogLineErrors.cs | 2 +- PlexAPI/Models/Errors/LogLineResponseBody.cs | 2 +- PlexAPI/Models/Errors/LogMultiLineErrors.cs | 2 +- .../Models/Errors/LogMultiLineResponseBody.cs | 2 +- PlexAPI/Models/Errors/MarkPlayedErrors.cs | 2 +- .../Models/Errors/MarkPlayedResponseBody.cs | 2 +- PlexAPI/Models/Errors/MarkUnplayedErrors.cs | 2 +- .../Models/Errors/MarkUnplayedResponseBody.cs | 2 +- PlexAPI/Models/Errors/PerformSearchErrors.cs | 2 +- .../Errors/PerformSearchResponseBody.cs | 2 +- .../Models/Errors/PerformVoiceSearchErrors.cs | 2 +- .../Errors/PerformVoiceSearchResponseBody.cs | 2 +- .../Errors/PostUsersSigninDataErrors.cs | 27 + .../Errors/PostUsersSigninDataResponseBody.cs | 34 + PlexAPI/Models/Errors/RefreshLibraryErrors.cs | 2 +- .../Errors/RefreshLibraryResponseBody.cs | 2 +- PlexAPI/Models/Errors/SDKException.cs | 2 +- PlexAPI/Models/Errors/SearchLibraryErrors.cs | 2 +- .../Errors/SearchLibraryResponseBody.cs | 2 +- PlexAPI/Models/Errors/StartAllTasksErrors.cs | 2 +- .../Errors/StartAllTasksResponseBody.cs | 2 +- PlexAPI/Models/Errors/StartTaskErrors.cs | 2 +- .../Models/Errors/StartTaskResponseBody.cs | 2 +- .../Errors/StartUniversalTranscodeErrors.cs | 2 +- .../StartUniversalTranscodeResponseBody.cs | 2 +- PlexAPI/Models/Errors/StopAllTasksErrors.cs | 2 +- .../Models/Errors/StopAllTasksResponseBody.cs | 2 +- PlexAPI/Models/Errors/StopTaskErrors.cs | 2 +- PlexAPI/Models/Errors/StopTaskResponseBody.cs | 2 +- .../Errors/StopTranscodeSessionErrors.cs | 2 +- .../StopTranscodeSessionResponseBody.cs | 2 +- .../Models/Errors/UpdatePlayProgressErrors.cs | 2 +- .../Errors/UpdatePlayProgressResponseBody.cs | 2 +- PlexAPI/Models/Errors/UpdatePlaylistErrors.cs | 2 +- .../Errors/UpdatePlaylistResponseBody.cs | 2 +- PlexAPI/Models/Errors/UploadPlaylistErrors.cs | 2 +- .../Errors/UploadPlaylistResponseBody.cs | 2 +- PlexAPI/Models/Requests/Account.cs | 2 +- PlexAPI/Models/Requests/Activity.cs | 2 +- .../AddPlaylistContentsMediaContainer.cs | 2 +- .../Requests/AddPlaylistContentsMetadata.cs | 2 +- .../Requests/AddPlaylistContentsRequest.cs | 2 +- .../Requests/AddPlaylistContentsResponse.cs | 2 +- .../AddPlaylistContentsResponseBody.cs | 2 +- .../Models/Requests/ApplyUpdatesRequest.cs | 2 +- .../Models/Requests/ApplyUpdatesResponse.cs | 2 +- PlexAPI/Models/Requests/Billing.cs | 25 + PlexAPI/Models/Requests/ButlerTask.cs | 2 +- PlexAPI/Models/Requests/ButlerTasks.cs | 2 +- .../Requests/CancelServerActivitiesRequest.cs | 2 +- .../CancelServerActivitiesResponse.cs | 2 +- .../Models/Requests/CheckForUpdatesRequest.cs | 2 +- .../Requests/CheckForUpdatesResponse.cs | 2 +- .../Requests/ClearPlaylistContentsRequest.cs | 2 +- .../Requests/ClearPlaylistContentsResponse.cs | 2 +- PlexAPI/Models/Requests/Connections.cs | 39 ++ PlexAPI/Models/Requests/Context.cs | 2 +- PlexAPI/Models/Requests/Country.cs | 2 +- .../Requests/CreatePlaylistMediaContainer.cs | 2 +- .../Models/Requests/CreatePlaylistMetadata.cs | 2 +- .../Models/Requests/CreatePlaylistRequest.cs | 2 +- .../Models/Requests/CreatePlaylistResponse.cs | 2 +- .../Requests/CreatePlaylistResponseBody.cs | 2 +- .../Models/Requests/DeleteLibraryRequest.cs | 2 +- .../Models/Requests/DeleteLibraryResponse.cs | 2 +- .../Models/Requests/DeletePlaylistRequest.cs | 2 +- .../Models/Requests/DeletePlaylistResponse.cs | 2 +- PlexAPI/Models/Requests/Device.cs | 2 +- PlexAPI/Models/Requests/Director.cs | 2 +- PlexAPI/Models/Requests/Directory.cs | 2 +- PlexAPI/Models/Requests/Download.cs | 2 +- .../Requests/EnablePaperTrailResponse.cs | 2 +- PlexAPI/Models/Requests/Features.cs | 171 +++++ PlexAPI/Models/Requests/Field.cs | 2 +- PlexAPI/Models/Requests/FieldType.cs | 2 +- PlexAPI/Models/Requests/Filter.cs | 2 +- PlexAPI/Models/Requests/Force.cs | 2 +- PlexAPI/Models/Requests/Friend.cs | 86 +++ PlexAPI/Models/Requests/Genre.cs | 2 +- PlexAPI/Models/Requests/GeoData.cs | 87 +++ .../GetAvailableClientsMediaContainer.cs | 2 +- .../Requests/GetAvailableClientsResponse.cs | 2 +- .../GetAvailableClientsResponseBody.cs | 2 +- .../Requests/GetBandwidthStatisticsAccount.cs | 2 +- .../Requests/GetBandwidthStatisticsDevice.cs | 2 +- .../GetBandwidthStatisticsMediaContainer.cs | 2 +- .../Requests/GetBandwidthStatisticsRequest.cs | 2 +- .../GetBandwidthStatisticsResponse.cs | 2 +- .../GetBandwidthStatisticsResponseBody.cs | 2 +- .../Models/Requests/GetButlerTasksResponse.cs | 2 +- .../Requests/GetButlerTasksResponseBody.cs | 2 +- .../Requests/GetCompanionsDataResponse.cs | 41 ++ .../Requests/GetDevicesMediaContainer.cs | 2 +- PlexAPI/Models/Requests/GetDevicesResponse.cs | 2 +- .../Models/Requests/GetDevicesResponseBody.cs | 2 +- PlexAPI/Models/Requests/GetFileHashRequest.cs | 2 +- .../Models/Requests/GetFileHashResponse.cs | 2 +- PlexAPI/Models/Requests/GetGeoDataGeoData.cs | 87 +++ ...TokenResponse.cs => GetGeoDataResponse.cs} | 8 +- .../Requests/GetGlobalHubsMediaContainer.cs | 2 +- .../Models/Requests/GetGlobalHubsMetadata.cs | 2 +- .../Models/Requests/GetGlobalHubsRequest.cs | 2 +- .../Models/Requests/GetGlobalHubsResponse.cs | 2 +- .../Requests/GetGlobalHubsResponseBody.cs | 2 +- .../Models/Requests/GetHomeDataResponse.cs | 2 +- .../Requests/GetHomeDataResponseBody.cs | 2 +- .../Models/Requests/GetLibrariesDirectory.cs | 4 +- .../Requests/GetLibrariesMediaContainer.cs | 2 +- .../Models/Requests/GetLibrariesResponse.cs | 2 +- .../Requests/GetLibrariesResponseBody.cs | 2 +- .../Models/Requests/GetLibraryDirectory.cs | 2 +- PlexAPI/Models/Requests/GetLibraryFilter.cs | 2 +- .../Models/Requests/GetLibraryHubsCountry.cs | 2 +- .../Models/Requests/GetLibraryHubsDirector.cs | 2 +- .../Models/Requests/GetLibraryHubsGenre.cs | 2 +- PlexAPI/Models/Requests/GetLibraryHubsHub.cs | 2 +- .../Models/Requests/GetLibraryHubsMedia.cs | 2 +- .../Requests/GetLibraryHubsMediaContainer.cs | 2 +- .../Models/Requests/GetLibraryHubsMetadata.cs | 2 +- PlexAPI/Models/Requests/GetLibraryHubsPart.cs | 2 +- .../Models/Requests/GetLibraryHubsRequest.cs | 2 +- .../Models/Requests/GetLibraryHubsResponse.cs | 2 +- .../Requests/GetLibraryHubsResponseBody.cs | 2 +- PlexAPI/Models/Requests/GetLibraryHubsRole.cs | 2 +- .../Models/Requests/GetLibraryHubsWriter.cs | 2 +- .../Models/Requests/GetLibraryItemsCountry.cs | 2 +- .../Requests/GetLibraryItemsDirector.cs | 2 +- .../Models/Requests/GetLibraryItemsGenre.cs | 2 +- .../Models/Requests/GetLibraryItemsMedia.cs | 2 +- .../Requests/GetLibraryItemsMediaContainer.cs | 2 +- .../Requests/GetLibraryItemsMetadata.cs | 2 +- .../Models/Requests/GetLibraryItemsPart.cs | 2 +- .../Models/Requests/GetLibraryItemsRequest.cs | 2 +- .../Requests/GetLibraryItemsResponse.cs | 2 +- .../Requests/GetLibraryItemsResponseBody.cs | 2 +- .../Models/Requests/GetLibraryItemsRole.cs | 2 +- .../Models/Requests/GetLibraryItemsWriter.cs | 2 +- .../Requests/GetLibraryMediaContainer.cs | 2 +- PlexAPI/Models/Requests/GetLibraryRequest.cs | 2 +- PlexAPI/Models/Requests/GetLibraryResponse.cs | 2 +- .../Models/Requests/GetLibraryResponseBody.cs | 2 +- PlexAPI/Models/Requests/GetLibraryType.cs | 2 +- .../Requests/GetMetadataChildrenDirectory.cs | 2 +- .../GetMetadataChildrenMediaContainer.cs | 2 +- .../Requests/GetMetadataChildrenMetadata.cs | 2 +- .../Requests/GetMetadataChildrenRequest.cs | 2 +- .../Requests/GetMetadataChildrenResponse.cs | 2 +- .../GetMetadataChildrenResponseBody.cs | 2 +- PlexAPI/Models/Requests/GetMetadataCountry.cs | 2 +- .../Models/Requests/GetMetadataDirector.cs | 2 +- PlexAPI/Models/Requests/GetMetadataGenre.cs | 2 +- PlexAPI/Models/Requests/GetMetadataMedia.cs | 2 +- .../Requests/GetMetadataMediaContainer.cs | 2 +- .../Models/Requests/GetMetadataMetadata.cs | 2 +- PlexAPI/Models/Requests/GetMetadataPart.cs | 2 +- PlexAPI/Models/Requests/GetMetadataRequest.cs | 2 +- .../Models/Requests/GetMetadataResponse.cs | 2 +- .../Requests/GetMetadataResponseBody.cs | 2 +- PlexAPI/Models/Requests/GetMetadataRole.cs | 2 +- PlexAPI/Models/Requests/GetMetadataWriter.cs | 2 +- .../Requests/GetMyPlexAccountResponse.cs | 2 +- .../Requests/GetMyPlexAccountResponseBody.cs | 2 +- PlexAPI/Models/Requests/GetOnDeckGuids.cs | 2 +- PlexAPI/Models/Requests/GetOnDeckMedia.cs | 2 +- .../Requests/GetOnDeckMediaContainer.cs | 2 +- PlexAPI/Models/Requests/GetOnDeckMetadata.cs | 2 +- PlexAPI/Models/Requests/GetOnDeckPart.cs | 2 +- PlexAPI/Models/Requests/GetOnDeckResponse.cs | 2 +- .../Models/Requests/GetOnDeckResponseBody.cs | 2 +- PlexAPI/Models/Requests/GetOnDeckStream.cs | 2 +- .../Models/Requests/GetPinAuthPinContainer.cs | 68 ++ PlexAPI/Models/Requests/GetPinRequest.cs | 2 +- PlexAPI/Models/Requests/GetPinResponse.cs | 6 +- PlexAPI/Models/Requests/GetPinResponseBody.cs | 71 -- .../Requests/GetPlaylistContentsCountry.cs | 2 +- .../Requests/GetPlaylistContentsDirector.cs | 2 +- .../Requests/GetPlaylistContentsGenre.cs | 2 +- .../Requests/GetPlaylistContentsMedia.cs | 2 +- .../GetPlaylistContentsMediaContainer.cs | 2 +- .../Requests/GetPlaylistContentsMetadata.cs | 2 +- .../Requests/GetPlaylistContentsPart.cs | 2 +- .../Requests/GetPlaylistContentsRequest.cs | 2 +- .../Requests/GetPlaylistContentsResponse.cs | 2 +- .../GetPlaylistContentsResponseBody.cs | 2 +- .../Requests/GetPlaylistContentsRole.cs | 2 +- .../Requests/GetPlaylistContentsWriter.cs | 2 +- .../Requests/GetPlaylistMediaContainer.cs | 2 +- .../Models/Requests/GetPlaylistMetadata.cs | 2 +- PlexAPI/Models/Requests/GetPlaylistRequest.cs | 2 +- .../Models/Requests/GetPlaylistResponse.cs | 2 +- .../Requests/GetPlaylistResponseBody.cs | 2 +- .../Requests/GetPlaylistsMediaContainer.cs | 2 +- .../Models/Requests/GetPlaylistsMetadata.cs | 2 +- .../Models/Requests/GetPlaylistsRequest.cs | 2 +- .../Models/Requests/GetPlaylistsResponse.cs | 2 +- .../Requests/GetPlaylistsResponseBody.cs | 2 +- .../GetRecentlyAddedMediaContainer.cs | 2 +- .../Requests/GetRecentlyAddedMetadata.cs | 2 +- .../Requests/GetRecentlyAddedResponse.cs | 2 +- .../Requests/GetRecentlyAddedResponseBody.cs | 2 +- .../Models/Requests/GetResizedPhotoRequest.cs | 2 +- .../Requests/GetResizedPhotoResponse.cs | 2 +- .../Models/Requests/GetResourcesRequest.cs | 48 ++ .../Models/Requests/GetResourcesResponse.cs | 41 ++ .../GetResourcesStatisticsMediaContainer.cs | 2 +- .../Requests/GetResourcesStatisticsRequest.cs | 2 +- .../GetResourcesStatisticsResponse.cs | 2 +- .../GetResourcesStatisticsResponseBody.cs | 2 +- .../Requests/GetSearchResultsCountry.cs | 2 +- .../Requests/GetSearchResultsDirector.cs | 2 +- .../Models/Requests/GetSearchResultsGenre.cs | 2 +- .../Models/Requests/GetSearchResultsMedia.cs | 2 +- .../GetSearchResultsMediaContainer.cs | 2 +- .../Requests/GetSearchResultsMetadata.cs | 2 +- .../Models/Requests/GetSearchResultsPart.cs | 2 +- .../Requests/GetSearchResultsRequest.cs | 2 +- .../Requests/GetSearchResultsResponse.cs | 2 +- .../Requests/GetSearchResultsResponseBody.cs | 2 +- .../Models/Requests/GetSearchResultsRole.cs | 2 +- .../Models/Requests/GetSearchResultsWriter.cs | 2 +- .../GetServerActivitiesMediaContainer.cs | 2 +- .../Requests/GetServerActivitiesResponse.cs | 2 +- .../GetServerActivitiesResponseBody.cs | 2 +- .../Requests/GetServerCapabilitiesResponse.cs | 2 +- .../GetServerCapabilitiesResponseBody.cs | 2 +- .../GetServerIdentityMediaContainer.cs | 2 +- .../Requests/GetServerIdentityResponse.cs | 2 +- .../Requests/GetServerIdentityResponseBody.cs | 2 +- .../Requests/GetServerListMediaContainer.cs | 2 +- .../Models/Requests/GetServerListResponse.cs | 2 +- .../Requests/GetServerListResponseBody.cs | 2 +- .../Models/Requests/GetServerListServer.cs | 2 +- .../GetServerPreferencesMediaContainer.cs | 2 +- .../Requests/GetServerPreferencesResponse.cs | 2 +- .../GetServerPreferencesResponseBody.cs | 2 +- .../GetSessionHistoryMediaContainer.cs | 2 +- .../Requests/GetSessionHistoryMetadata.cs | 2 +- .../Requests/GetSessionHistoryRequest.cs | 2 +- .../Requests/GetSessionHistoryResponse.cs | 2 +- .../Requests/GetSessionHistoryResponseBody.cs | 2 +- PlexAPI/Models/Requests/GetSessionsMedia.cs | 2 +- .../Requests/GetSessionsMediaContainer.cs | 2 +- .../Models/Requests/GetSessionsMetadata.cs | 2 +- PlexAPI/Models/Requests/GetSessionsPart.cs | 2 +- .../Models/Requests/GetSessionsResponse.cs | 2 +- .../Requests/GetSessionsResponseBody.cs | 2 +- PlexAPI/Models/Requests/GetSessionsStream.cs | 2 +- PlexAPI/Models/Requests/GetSessionsUser.cs | 2 +- .../GetSourceConnectionInformationRequest.cs | 2 +- .../GetSourceConnectionInformationResponse.cs | 2 +- .../Models/Requests/GetStatisticsDevice.cs | 2 +- .../Requests/GetStatisticsMediaContainer.cs | 2 +- .../Models/Requests/GetStatisticsRequest.cs | 2 +- .../Models/Requests/GetStatisticsResponse.cs | 2 +- .../Requests/GetStatisticsResponseBody.cs | 2 +- PlexAPI/Models/Requests/GetTimelineRequest.cs | 2 +- .../Models/Requests/GetTimelineResponse.cs | 2 +- .../GetTokenByPinIdAuthPinContainer.cs | 68 ++ .../Models/Requests/GetTokenByPinIdGeoData.cs | 87 +++ ...enRequest.cs => GetTokenByPinIdRequest.cs} | 6 +- .../Requests/GetTokenByPinIdResponse.cs | 40 ++ PlexAPI/Models/Requests/GetTokenLocation.cs | 48 -- .../Models/Requests/GetTokenResponseBody.cs | 71 -- .../Requests/GetTopWatchedContentCountry.cs | 2 +- .../Requests/GetTopWatchedContentGenre.cs | 2 +- .../Requests/GetTopWatchedContentGuids.cs | 2 +- .../GetTopWatchedContentMediaContainer.cs | 2 +- .../Requests/GetTopWatchedContentMetadata.cs | 4 +- .../Requests/GetTopWatchedContentRequest.cs | 2 +- .../Requests/GetTopWatchedContentResponse.cs | 2 +- .../GetTopWatchedContentResponseBody.cs | 2 +- .../Requests/GetTopWatchedContentRole.cs | 2 +- .../GetTranscodeSessionsMediaContainer.cs | 2 +- .../Requests/GetTranscodeSessionsResponse.cs | 2 +- .../GetTranscodeSessionsResponseBody.cs | 2 +- .../GetTransientTokenQueryParamType.cs | 2 +- .../Requests/GetTransientTokenRequest.cs | 2 +- .../Requests/GetTransientTokenResponse.cs | 2 +- .../Requests/GetUpdateStatusMediaContainer.cs | 2 +- .../Requests/GetUpdateStatusResponse.cs | 2 +- .../Requests/GetUpdateStatusResponseBody.cs | 2 +- .../Models/Requests/GetUserDetailsFeatures.cs | 171 +++++ .../GetUserDetailsPlexResponseStatus.cs | 60 ++ .../Requests/GetUserDetailsPlexStatus.cs | 60 ++ .../Models/Requests/GetUserDetailsResponse.cs | 40 ++ .../Models/Requests/GetUserDetailsStatus.cs | 57 ++ .../Requests/GetUserDetailsSubscription.cs | 57 ++ .../Requests/GetUserDetailsUserPlexAccount.cs | 256 ++++++++ .../Models/Requests/GetUserFriendsResponse.cs | 41 ++ .../Models/Requests/GetWatchlistRequest.cs | 2 +- .../Models/Requests/GetWatchlistResponse.cs | 2 +- .../Requests/GetWatchlistResponseBody.cs | 2 +- PlexAPI/Models/Requests/Guids.cs | 2 +- PlexAPI/Models/Requests/Hub.cs | 2 +- PlexAPI/Models/Requests/Image.cs | 2 +- PlexAPI/Models/Requests/IncludeCollections.cs | 2 +- PlexAPI/Models/Requests/IncludeDetails.cs | 2 +- .../Models/Requests/IncludeExternalMedia.cs | 2 +- ...etLibrariesLocation.cs => IncludeHttps.cs} | 17 +- PlexAPI/Models/Requests/IncludeIPv6.cs | 23 + PlexAPI/Models/Requests/IncludeRelay.cs | 23 + .../Models/Requests/InternalPaymentMethod.cs | 17 + PlexAPI/Models/Requests/Level.cs | 2 +- PlexAPI/Models/Requests/LibrarySectionID.cs | 19 +- PlexAPI/Models/Requests/Libtype.cs | 2 +- PlexAPI/Models/Requests/Location.cs | 34 +- PlexAPI/Models/Requests/LogLineRequest.cs | 2 +- PlexAPI/Models/Requests/LogLineResponse.cs | 2 +- .../Models/Requests/LogMultiLineResponse.cs | 2 +- PlexAPI/Models/Requests/MailingListStatus.cs | 60 ++ PlexAPI/Models/Requests/MarkPlayedRequest.cs | 2 +- PlexAPI/Models/Requests/MarkPlayedResponse.cs | 2 +- .../Models/Requests/MarkUnplayedRequest.cs | 2 +- .../Models/Requests/MarkUnplayedResponse.cs | 2 +- PlexAPI/Models/Requests/Media.cs | 2 +- PlexAPI/Models/Requests/MediaContainer.cs | 2 +- PlexAPI/Models/Requests/Metadata.cs | 2 +- PlexAPI/Models/Requests/MinSize.cs | 2 +- PlexAPI/Models/Requests/MyPlex.cs | 2 +- PlexAPI/Models/Requests/OnlyTransient.cs | 2 +- PlexAPI/Models/Requests/Operator.cs | 2 +- PlexAPI/Models/Requests/Part.cs | 2 +- PlexAPI/Models/Requests/PastSubscription.cs | 71 ++ PlexAPI/Models/Requests/PathParamFilter.cs | 2 +- PlexAPI/Models/Requests/PathParamTaskName.cs | 2 +- .../Models/Requests/PerformSearchRequest.cs | 2 +- .../Models/Requests/PerformSearchResponse.cs | 2 +- .../Requests/PerformVoiceSearchRequest.cs | 2 +- .../Requests/PerformVoiceSearchResponse.cs | 2 +- PlexAPI/Models/Requests/Player.cs | 2 +- PlexAPI/Models/Requests/PlaylistType.cs | 2 +- PlexAPI/Models/Requests/PlexDevice.cs | 93 +++ .../Requests/PostUsersSigninDataFeatures.cs | 171 +++++ .../PostUsersSigninDataMailingListStatus.cs | 60 ++ .../Requests/PostUsersSigninDataRequest.cs | 36 ++ .../PostUsersSigninDataRequestBody.cs | 29 + .../Requests/PostUsersSigninDataResponse.cs | 40 ++ .../Requests/PostUsersSigninDataServices.cs | 34 + .../Requests/PostUsersSigninDataState.cs | 55 ++ .../Requests/PostUsersSigninDataStatus.cs | 57 ++ .../PostUsersSigninDataSubscription.cs | 60 ++ .../PostUsersSigninDataUserFeatures.cs | 171 +++++ .../PostUsersSigninDataUserPlexAccount.cs | 262 ++++++++ .../PostUsersSigninDataUserProfile.cs | 60 ++ .../PostUsersSigninDataUserResponseStatus.cs | 60 ++ .../Requests/PostUsersSigninDataUserStatus.cs | 60 ++ .../PostUsersSigninDataUserSubscription.cs | 57 ++ PlexAPI/Models/Requests/Producer.cs | 2 +- PlexAPI/Models/Requests/Provider.cs | 2 +- .../Requests/QueryParamOnlyTransient.cs | 2 +- PlexAPI/Models/Requests/QueryParamSmart.cs | 2 +- PlexAPI/Models/Requests/QueryParamType.cs | 2 +- PlexAPI/Models/Requests/Ratings.cs | 2 +- .../Models/Requests/RefreshLibraryRequest.cs | 2 +- .../Models/Requests/RefreshLibraryResponse.cs | 2 +- PlexAPI/Models/Requests/Release.cs | 2 +- PlexAPI/Models/Requests/ResponseBody.cs | 39 ++ PlexAPI/Models/Requests/Role.cs | 2 +- PlexAPI/Models/Requests/Scope.cs | 2 +- .../Requests/SearchLibraryMediaContainer.cs | 2 +- .../Models/Requests/SearchLibraryMetadata.cs | 2 +- .../Models/Requests/SearchLibraryRequest.cs | 2 +- .../Models/Requests/SearchLibraryResponse.cs | 2 +- .../Requests/SearchLibraryResponseBody.cs | 2 +- PlexAPI/Models/Requests/Server.cs | 2 +- PlexAPI/Models/Requests/Services.cs | 34 + PlexAPI/Models/Requests/Session.cs | 2 +- PlexAPI/Models/Requests/Setting.cs | 2 +- PlexAPI/Models/Requests/SharedServers.cs | 17 + PlexAPI/Models/Requests/SharedSources.cs | 17 + PlexAPI/Models/Requests/Skip.cs | 2 +- PlexAPI/Models/Requests/Smart.cs | 2 +- PlexAPI/Models/Requests/Sort.cs | 2 +- .../Models/Requests/StartAllTasksResponse.cs | 2 +- PlexAPI/Models/Requests/StartTaskRequest.cs | 2 +- PlexAPI/Models/Requests/StartTaskResponse.cs | 2 +- .../StartUniversalTranscodeRequest.cs | 2 +- .../StartUniversalTranscodeResponse.cs | 2 +- PlexAPI/Models/Requests/State.cs | 2 +- .../Models/Requests/StatisticsBandwidth.cs | 2 +- PlexAPI/Models/Requests/StatisticsMedia.cs | 2 +- .../Models/Requests/StatisticsResources.cs | 2 +- PlexAPI/Models/Requests/Status.cs | 58 ++ .../Models/Requests/StopAllTasksResponse.cs | 2 +- PlexAPI/Models/Requests/StopTaskRequest.cs | 2 +- PlexAPI/Models/Requests/StopTaskResponse.cs | 2 +- .../Requests/StopTranscodeSessionRequest.cs | 2 +- .../Requests/StopTranscodeSessionResponse.cs | 2 +- PlexAPI/Models/Requests/Stream.cs | 2 +- PlexAPI/Models/Requests/Subscription.cs | 60 ++ PlexAPI/Models/Requests/Tag.cs | 2 +- PlexAPI/Models/Requests/TaskName.cs | 2 +- PlexAPI/Models/Requests/Tonight.cs | 2 +- PlexAPI/Models/Requests/TranscodeSession.cs | 2 +- PlexAPI/Models/Requests/Trials.cs | 17 + PlexAPI/Models/Requests/Type.cs | 2 +- .../Requests/UpdatePlayProgressRequest.cs | 2 +- .../Requests/UpdatePlayProgressResponse.cs | 2 +- .../Models/Requests/UpdatePlaylistRequest.cs | 2 +- .../Models/Requests/UpdatePlaylistResponse.cs | 2 +- .../Models/Requests/UploadPlaylistRequest.cs | 2 +- .../Models/Requests/UploadPlaylistResponse.cs | 2 +- PlexAPI/Models/Requests/Upscale.cs | 2 +- PlexAPI/Models/Requests/User.cs | 2 +- PlexAPI/Models/Requests/UserProfile.cs | 60 ++ PlexAPI/Models/Requests/Writer.cs | 2 +- PlexAPI/Playlists.cs | 20 +- PlexAPI/Plex.cs | 611 +++++++++++++++++- PlexAPI/PlexAPI.csproj | 25 +- PlexAPI/PlexAPISDK.cs | 43 +- PlexAPI/Search.cs | 16 +- PlexAPI/Server.cs | 14 +- PlexAPI/Sessions.cs | 14 +- PlexAPI/Statistics.cs | 12 +- PlexAPI/Updater.cs | 16 +- PlexAPI/User.cs | 184 ++++++ PlexAPI/Utils/AnyDeserializer.cs | 2 +- PlexAPI/Utils/BigIntStrConverter.cs | 2 +- PlexAPI/Utils/DecimalStrConverter.cs | 2 +- PlexAPI/Utils/EnumConverter.cs | 5 +- PlexAPI/Utils/FlexibleObjectDeserializer.cs | 2 +- PlexAPI/Utils/HeaderSerializer.cs | 2 +- PlexAPI/Utils/IsoDateTimeSerializer.cs | 2 +- PlexAPI/Utils/RequestBodySerializer.cs | 26 +- PlexAPI/Utils/ResponseBodyDeserializer.cs | 2 +- PlexAPI/Utils/Retries/BackoffStrategy.cs | 2 +- PlexAPI/Utils/Retries/Retries.cs | 2 +- PlexAPI/Utils/Retries/RetryConfig.cs | 2 +- PlexAPI/Utils/SecurityMetadata.cs | 2 +- PlexAPI/Utils/SpeakeasyHttpClient.cs | 2 +- PlexAPI/Utils/SpeakeasyMetadata.cs | 2 +- PlexAPI/Utils/URLBuilder.cs | 2 +- PlexAPI/Utils/Utilities.cs | 6 +- PlexAPI/Video.cs | 16 +- PlexAPI/Watchlist.cs | 12 +- README.md | 62 +- RELEASES.md | 12 +- docs/Models/Components/Security.md | 2 +- docs/Models/Errors/GetCompanionsDataErrors.md | 10 + .../Errors/GetCompanionsDataResponseBody.md | 11 + docs/Models/Errors/GetGeoDataErrors.md | 10 + ...ponseBody.md => GetGeoDataResponseBody.md} | 6 +- docs/Models/Errors/GetPinErrors.md | 4 +- docs/Models/Errors/GetPinResponseBody.md | 2 +- docs/Models/Errors/GetResourcesErrors.md | 10 + .../Models/Errors/GetResourcesResponseBody.md | 11 + docs/Models/Errors/GetTokenByPinIdErrors.md | 9 + .../Errors/GetTokenByPinIdResponseBody.md | 11 + docs/Models/Errors/GetTokenErrors.md | 10 - docs/Models/Errors/GetUserDetailsErrors.md | 10 + .../Errors/GetUserDetailsResponseBody.md | 11 + docs/Models/Errors/GetUserFriendsErrors.md | 10 + .../Errors/GetUserFriendsResponseBody.md | 11 + .../Errors/PostUsersSigninDataErrors.md | 10 + .../Errors/PostUsersSigninDataResponseBody.md | 11 + docs/Models/Requests/Billing.md | 9 + docs/Models/Requests/Connections.md | 14 + docs/Models/Requests/Features.md | 66 ++ docs/Models/Requests/Friend.md | 19 + docs/Models/Requests/GeoData.md | 20 + .../Requests/GetCompanionsDataResponse.md | 11 + docs/Models/Requests/GetGeoDataGeoData.md | 20 + ...nResponseBody.md => GetGeoDataResponse.md} | 24 +- docs/Models/Requests/GetLibrariesDirectory.md | 46 +- docs/Models/Requests/GetLibrariesLocation.md | 9 - .../Models/Requests/GetPinAuthPinContainer.md | 21 + docs/Models/Requests/GetPinResponse.md | 12 +- docs/Models/Requests/GetResourcesRequest.md | 11 + docs/Models/Requests/GetResourcesResponse.md | 11 + .../GetTokenByPinIdAuthPinContainer.md | 21 + .../Models/Requests/GetTokenByPinIdGeoData.md | 20 + ...enRequest.md => GetTokenByPinIdRequest.md} | 4 +- .../Requests/GetTokenByPinIdResponse.md | 11 + docs/Models/Requests/GetTokenLocation.md | 17 - docs/Models/Requests/GetTokenResponseBody.md | 21 - .../Requests/GetTopWatchedContentMetadata.md | 2 +- .../Models/Requests/GetUserDetailsFeatures.md | 66 ++ .../GetUserDetailsPlexResponseStatus.md | 11 + .../Requests/GetUserDetailsPlexStatus.md | 11 + .../Models/Requests/GetUserDetailsResponse.md | 11 + docs/Models/Requests/GetUserDetailsStatus.md | 9 + .../Requests/GetUserDetailsSubscription.md | 13 + .../Requests/GetUserDetailsUserPlexAccount.md | 49 ++ ...nResponse.md => GetUserFriendsResponse.md} | 4 +- docs/Models/Requests/IncludeHttps.md | 11 + docs/Models/Requests/IncludeIPv6.md | 11 + docs/Models/Requests/IncludeRelay.md | 11 + docs/Models/Requests/InternalPaymentMethod.md | 7 + docs/Models/Requests/LibrarySectionID.md | 14 + docs/Models/Requests/Location.md | 16 +- docs/Models/Requests/MailingListStatus.md | 11 + docs/Models/Requests/PastSubscription.md | 22 + docs/Models/Requests/PlexDevice.md | 31 + .../Requests/PostUsersSigninDataFeatures.md | 66 ++ .../PostUsersSigninDataMailingListStatus.md | 11 + .../Requests/PostUsersSigninDataRequest.md | 9 + .../PostUsersSigninDataRequestBody.md | 12 + .../Requests/PostUsersSigninDataResponse.md | 11 + .../Requests/PostUsersSigninDataServices.md | 12 + .../Requests/PostUsersSigninDataState.md | 8 + .../Requests/PostUsersSigninDataStatus.md | 9 + .../PostUsersSigninDataSubscription.md | 15 + .../PostUsersSigninDataUserFeatures.md | 66 ++ .../PostUsersSigninDataUserPlexAccount.md | 51 ++ .../PostUsersSigninDataUserProfile.md | 15 + .../PostUsersSigninDataUserResponseStatus.md | 11 + .../Requests/PostUsersSigninDataUserStatus.md | 11 + .../PostUsersSigninDataUserSubscription.md | 13 + docs/Models/Requests/ResponseBody.md | 13 + docs/Models/Requests/Services.md | 12 + docs/Models/Requests/SharedServers.md | 7 + docs/Models/Requests/SharedSources.md | 7 + docs/Models/Requests/Status.md | 10 + docs/Models/Requests/Subscription.md | 15 + docs/Models/Requests/Trials.md | 7 + docs/Models/Requests/UserProfile.md | 15 + docs/sdks/activities/README.md | 7 +- docs/sdks/authentication/README.md | 9 +- docs/sdks/butler/README.md | 18 +- docs/sdks/hubs/README.md | 13 +- docs/sdks/library/README.md | 55 +- docs/sdks/log/README.md | 10 +- docs/sdks/media/README.md | 14 +- docs/sdks/playlists/README.md | 48 +- docs/sdks/plex/README.md | 227 ++++++- docs/sdks/plexapi/README.md | 6 +- docs/sdks/search/README.md | 14 +- docs/sdks/server/README.md | 25 +- docs/sdks/sessions/README.md | 15 +- docs/sdks/statistics/README.md | 14 +- docs/sdks/updater/README.md | 18 +- docs/sdks/user/README.md | 53 ++ docs/sdks/video/README.md | 9 +- docs/sdks/watchlist/README.md | 4 +- 653 files changed, 7027 insertions(+), 1277 deletions(-) create mode 100644 CONTRIBUTING.md create mode 100644 PlexAPI/Models/Errors/GetCompanionsDataErrors.cs create mode 100644 PlexAPI/Models/Errors/GetCompanionsDataResponseBody.cs rename PlexAPI/Models/Errors/{GetTokenErrors.cs => GetGeoDataErrors.cs} (85%) create mode 100644 PlexAPI/Models/Errors/GetGeoDataResponseBody.cs create mode 100644 PlexAPI/Models/Errors/GetResourcesErrors.cs create mode 100644 PlexAPI/Models/Errors/GetResourcesResponseBody.cs create mode 100644 PlexAPI/Models/Errors/GetTokenByPinIdErrors.cs rename PlexAPI/Models/Errors/{GetTokenResponseBody.cs => GetTokenByPinIdResponseBody.cs} (77%) create mode 100644 PlexAPI/Models/Errors/GetUserDetailsErrors.cs create mode 100644 PlexAPI/Models/Errors/GetUserDetailsResponseBody.cs create mode 100644 PlexAPI/Models/Errors/GetUserFriendsErrors.cs create mode 100644 PlexAPI/Models/Errors/GetUserFriendsResponseBody.cs create mode 100644 PlexAPI/Models/Errors/PostUsersSigninDataErrors.cs create mode 100644 PlexAPI/Models/Errors/PostUsersSigninDataResponseBody.cs create mode 100644 PlexAPI/Models/Requests/Billing.cs create mode 100644 PlexAPI/Models/Requests/Connections.cs create mode 100644 PlexAPI/Models/Requests/Features.cs create mode 100644 PlexAPI/Models/Requests/Friend.cs create mode 100644 PlexAPI/Models/Requests/GeoData.cs create mode 100644 PlexAPI/Models/Requests/GetCompanionsDataResponse.cs create mode 100644 PlexAPI/Models/Requests/GetGeoDataGeoData.cs rename PlexAPI/Models/Requests/{GetTokenResponse.cs => GetGeoDataResponse.cs} (82%) create mode 100644 PlexAPI/Models/Requests/GetPinAuthPinContainer.cs delete mode 100644 PlexAPI/Models/Requests/GetPinResponseBody.cs create mode 100644 PlexAPI/Models/Requests/GetResourcesRequest.cs create mode 100644 PlexAPI/Models/Requests/GetResourcesResponse.cs create mode 100644 PlexAPI/Models/Requests/GetTokenByPinIdAuthPinContainer.cs create mode 100644 PlexAPI/Models/Requests/GetTokenByPinIdGeoData.cs rename PlexAPI/Models/Requests/{GetTokenRequest.cs => GetTokenByPinIdRequest.cs} (86%) create mode 100644 PlexAPI/Models/Requests/GetTokenByPinIdResponse.cs delete mode 100644 PlexAPI/Models/Requests/GetTokenLocation.cs delete mode 100644 PlexAPI/Models/Requests/GetTokenResponseBody.cs create mode 100644 PlexAPI/Models/Requests/GetUserDetailsFeatures.cs create mode 100644 PlexAPI/Models/Requests/GetUserDetailsPlexResponseStatus.cs create mode 100644 PlexAPI/Models/Requests/GetUserDetailsPlexStatus.cs create mode 100644 PlexAPI/Models/Requests/GetUserDetailsResponse.cs create mode 100644 PlexAPI/Models/Requests/GetUserDetailsStatus.cs create mode 100644 PlexAPI/Models/Requests/GetUserDetailsSubscription.cs create mode 100644 PlexAPI/Models/Requests/GetUserDetailsUserPlexAccount.cs create mode 100644 PlexAPI/Models/Requests/GetUserFriendsResponse.cs rename PlexAPI/Models/Requests/{GetLibrariesLocation.cs => IncludeHttps.cs} (58%) create mode 100644 PlexAPI/Models/Requests/IncludeIPv6.cs create mode 100644 PlexAPI/Models/Requests/IncludeRelay.cs create mode 100644 PlexAPI/Models/Requests/InternalPaymentMethod.cs create mode 100644 PlexAPI/Models/Requests/MailingListStatus.cs create mode 100644 PlexAPI/Models/Requests/PastSubscription.cs create mode 100644 PlexAPI/Models/Requests/PlexDevice.cs create mode 100644 PlexAPI/Models/Requests/PostUsersSigninDataFeatures.cs create mode 100644 PlexAPI/Models/Requests/PostUsersSigninDataMailingListStatus.cs create mode 100644 PlexAPI/Models/Requests/PostUsersSigninDataRequest.cs create mode 100644 PlexAPI/Models/Requests/PostUsersSigninDataRequestBody.cs create mode 100644 PlexAPI/Models/Requests/PostUsersSigninDataResponse.cs create mode 100644 PlexAPI/Models/Requests/PostUsersSigninDataServices.cs create mode 100644 PlexAPI/Models/Requests/PostUsersSigninDataState.cs create mode 100644 PlexAPI/Models/Requests/PostUsersSigninDataStatus.cs create mode 100644 PlexAPI/Models/Requests/PostUsersSigninDataSubscription.cs create mode 100644 PlexAPI/Models/Requests/PostUsersSigninDataUserFeatures.cs create mode 100644 PlexAPI/Models/Requests/PostUsersSigninDataUserPlexAccount.cs create mode 100644 PlexAPI/Models/Requests/PostUsersSigninDataUserProfile.cs create mode 100644 PlexAPI/Models/Requests/PostUsersSigninDataUserResponseStatus.cs create mode 100644 PlexAPI/Models/Requests/PostUsersSigninDataUserStatus.cs create mode 100644 PlexAPI/Models/Requests/PostUsersSigninDataUserSubscription.cs create mode 100644 PlexAPI/Models/Requests/ResponseBody.cs create mode 100644 PlexAPI/Models/Requests/Services.cs create mode 100644 PlexAPI/Models/Requests/SharedServers.cs create mode 100644 PlexAPI/Models/Requests/SharedSources.cs create mode 100644 PlexAPI/Models/Requests/Status.cs create mode 100644 PlexAPI/Models/Requests/Subscription.cs create mode 100644 PlexAPI/Models/Requests/Trials.cs create mode 100644 PlexAPI/Models/Requests/UserProfile.cs create mode 100644 PlexAPI/User.cs create mode 100644 docs/Models/Errors/GetCompanionsDataErrors.md create mode 100644 docs/Models/Errors/GetCompanionsDataResponseBody.md create mode 100644 docs/Models/Errors/GetGeoDataErrors.md rename docs/Models/Errors/{GetTokenResponseBody.md => GetGeoDataResponseBody.md} (91%) create mode 100644 docs/Models/Errors/GetResourcesErrors.md create mode 100644 docs/Models/Errors/GetResourcesResponseBody.md create mode 100644 docs/Models/Errors/GetTokenByPinIdErrors.md create mode 100644 docs/Models/Errors/GetTokenByPinIdResponseBody.md delete mode 100644 docs/Models/Errors/GetTokenErrors.md create mode 100644 docs/Models/Errors/GetUserDetailsErrors.md create mode 100644 docs/Models/Errors/GetUserDetailsResponseBody.md create mode 100644 docs/Models/Errors/GetUserFriendsErrors.md create mode 100644 docs/Models/Errors/GetUserFriendsResponseBody.md create mode 100644 docs/Models/Errors/PostUsersSigninDataErrors.md create mode 100644 docs/Models/Errors/PostUsersSigninDataResponseBody.md create mode 100644 docs/Models/Requests/Billing.md create mode 100644 docs/Models/Requests/Connections.md create mode 100644 docs/Models/Requests/Features.md create mode 100644 docs/Models/Requests/Friend.md create mode 100644 docs/Models/Requests/GeoData.md create mode 100644 docs/Models/Requests/GetCompanionsDataResponse.md create mode 100644 docs/Models/Requests/GetGeoDataGeoData.md rename docs/Models/Requests/{GetPinResponseBody.md => GetGeoDataResponse.md} (57%) delete mode 100644 docs/Models/Requests/GetLibrariesLocation.md create mode 100644 docs/Models/Requests/GetPinAuthPinContainer.md create mode 100644 docs/Models/Requests/GetResourcesRequest.md create mode 100644 docs/Models/Requests/GetResourcesResponse.md create mode 100644 docs/Models/Requests/GetTokenByPinIdAuthPinContainer.md create mode 100644 docs/Models/Requests/GetTokenByPinIdGeoData.md rename docs/Models/Requests/{GetTokenRequest.md => GetTokenByPinIdRequest.md} (97%) create mode 100644 docs/Models/Requests/GetTokenByPinIdResponse.md delete mode 100644 docs/Models/Requests/GetTokenLocation.md delete mode 100644 docs/Models/Requests/GetTokenResponseBody.md create mode 100644 docs/Models/Requests/GetUserDetailsFeatures.md create mode 100644 docs/Models/Requests/GetUserDetailsPlexResponseStatus.md create mode 100644 docs/Models/Requests/GetUserDetailsPlexStatus.md create mode 100644 docs/Models/Requests/GetUserDetailsResponse.md create mode 100644 docs/Models/Requests/GetUserDetailsStatus.md create mode 100644 docs/Models/Requests/GetUserDetailsSubscription.md create mode 100644 docs/Models/Requests/GetUserDetailsUserPlexAccount.md rename docs/Models/Requests/{GetTokenResponse.md => GetUserFriendsResponse.md} (88%) create mode 100644 docs/Models/Requests/IncludeHttps.md create mode 100644 docs/Models/Requests/IncludeIPv6.md create mode 100644 docs/Models/Requests/IncludeRelay.md create mode 100644 docs/Models/Requests/InternalPaymentMethod.md create mode 100644 docs/Models/Requests/MailingListStatus.md create mode 100644 docs/Models/Requests/PastSubscription.md create mode 100644 docs/Models/Requests/PlexDevice.md create mode 100644 docs/Models/Requests/PostUsersSigninDataFeatures.md create mode 100644 docs/Models/Requests/PostUsersSigninDataMailingListStatus.md create mode 100644 docs/Models/Requests/PostUsersSigninDataRequest.md create mode 100644 docs/Models/Requests/PostUsersSigninDataRequestBody.md create mode 100644 docs/Models/Requests/PostUsersSigninDataResponse.md create mode 100644 docs/Models/Requests/PostUsersSigninDataServices.md create mode 100644 docs/Models/Requests/PostUsersSigninDataState.md create mode 100644 docs/Models/Requests/PostUsersSigninDataStatus.md create mode 100644 docs/Models/Requests/PostUsersSigninDataSubscription.md create mode 100644 docs/Models/Requests/PostUsersSigninDataUserFeatures.md create mode 100644 docs/Models/Requests/PostUsersSigninDataUserPlexAccount.md create mode 100644 docs/Models/Requests/PostUsersSigninDataUserProfile.md create mode 100644 docs/Models/Requests/PostUsersSigninDataUserResponseStatus.md create mode 100644 docs/Models/Requests/PostUsersSigninDataUserStatus.md create mode 100644 docs/Models/Requests/PostUsersSigninDataUserSubscription.md create mode 100644 docs/Models/Requests/ResponseBody.md create mode 100644 docs/Models/Requests/Services.md create mode 100644 docs/Models/Requests/SharedServers.md create mode 100644 docs/Models/Requests/SharedSources.md create mode 100644 docs/Models/Requests/Status.md create mode 100644 docs/Models/Requests/Subscription.md create mode 100644 docs/Models/Requests/Trials.md create mode 100644 docs/Models/Requests/UserProfile.md create mode 100644 docs/sdks/user/README.md diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index b31289f..c9431b6 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 5a8dbcbc-e0ee-41f0-9d84-b8b50567d1e9 management: - docChecksum: e73920abd3a55e8d249592f2e3090574 + docChecksum: 2ad2b4c59994082e04faa0c3e7675f3e docVersion: 0.0.3 - speakeasyVersion: 1.321.0 - generationVersion: 2.354.2 - releaseVersion: 0.3.0 - configChecksum: e0690e8b3b6a949dd45f9b48b94f2e14 + speakeasyVersion: 1.377.3 + generationVersion: 2.404.2 + releaseVersion: 0.4.0 + configChecksum: 0e72845e7bb366c3b8a4e13005a8fcfe repoURL: https://github.com/LukeHagar/plexcsharp.git repoSubDirectory: . published: true @@ -14,9 +14,10 @@ features: csharp: additionalDependencies: 0.1.0 constsAndDefaults: 0.0.1 - core: 3.9.8 + core: 3.9.14 + deprecations: 2.81.2 flattening: 2.81.2 - globalSecurity: 2.83.4 + globalSecurity: 2.83.6 globalSecurityCallbacks: 0.1.0 globalSecurityFlattening: 0.1.0 globalServerURLs: 2.82.3 @@ -28,7 +29,7 @@ features: responseFormat: 0.0.4 sdkHooks: 0.1.0 typeOverrides: 2.81.1 - unions: 0.1.1 + unions: 0.2.1 generatedFiles: - PlexAPI/Server.cs - PlexAPI/Media.cs @@ -45,6 +46,7 @@ generatedFiles: - PlexAPI/Statistics.cs - PlexAPI/Sessions.cs - PlexAPI/Updater.cs + - PlexAPI/User.cs - PlexAPI/Watchlist.cs - PlexAPI/PlexAPISDK.cs - global.json @@ -128,16 +130,44 @@ generatedFiles: - PlexAPI/Models/Requests/PathParamTaskName.cs - PlexAPI/Models/Requests/StopTaskRequest.cs - PlexAPI/Models/Requests/StopTaskResponse.cs + - PlexAPI/Models/Requests/ResponseBody.cs + - PlexAPI/Models/Requests/GetCompanionsDataResponse.cs + - PlexAPI/Models/Requests/SharedServers.cs + - PlexAPI/Models/Requests/SharedSources.cs + - PlexAPI/Models/Requests/Status.cs + - PlexAPI/Models/Requests/Friend.cs + - PlexAPI/Models/Requests/GetUserFriendsResponse.cs + - PlexAPI/Models/Requests/GetGeoDataGeoData.cs + - PlexAPI/Models/Requests/GetGeoDataResponse.cs - PlexAPI/Models/Requests/GetHomeDataResponseBody.cs - PlexAPI/Models/Requests/GetHomeDataResponse.cs + - PlexAPI/Models/Requests/IncludeHttps.cs + - PlexAPI/Models/Requests/IncludeRelay.cs + - PlexAPI/Models/Requests/IncludeIPv6.cs + - PlexAPI/Models/Requests/GetResourcesRequest.cs + - PlexAPI/Models/Requests/Connections.cs + - PlexAPI/Models/Requests/PlexDevice.cs + - PlexAPI/Models/Requests/GetResourcesResponse.cs - PlexAPI/Models/Requests/GetPinRequest.cs - - PlexAPI/Models/Requests/Location.cs - - PlexAPI/Models/Requests/GetPinResponseBody.cs + - PlexAPI/Models/Requests/GeoData.cs + - PlexAPI/Models/Requests/GetPinAuthPinContainer.cs - PlexAPI/Models/Requests/GetPinResponse.cs - - PlexAPI/Models/Requests/GetTokenRequest.cs - - PlexAPI/Models/Requests/GetTokenLocation.cs - - PlexAPI/Models/Requests/GetTokenResponseBody.cs - - PlexAPI/Models/Requests/GetTokenResponse.cs + - PlexAPI/Models/Requests/GetTokenByPinIdRequest.cs + - PlexAPI/Models/Requests/GetTokenByPinIdGeoData.cs + - PlexAPI/Models/Requests/GetTokenByPinIdAuthPinContainer.cs + - PlexAPI/Models/Requests/GetTokenByPinIdResponse.cs + - PlexAPI/Models/Requests/MailingListStatus.cs + - PlexAPI/Models/Requests/UserProfile.cs + - PlexAPI/Models/Requests/GetUserDetailsStatus.cs + - PlexAPI/Models/Requests/Services.cs + - PlexAPI/Models/Requests/Features.cs + - PlexAPI/Models/Requests/GetUserDetailsPlexStatus.cs + - PlexAPI/Models/Requests/Subscription.cs + - PlexAPI/Models/Requests/GetUserDetailsFeatures.cs + - PlexAPI/Models/Requests/GetUserDetailsPlexResponseStatus.cs + - PlexAPI/Models/Requests/GetUserDetailsSubscription.cs + - PlexAPI/Models/Requests/GetUserDetailsUserPlexAccount.cs + - PlexAPI/Models/Requests/GetUserDetailsResponse.cs - PlexAPI/Models/Requests/OnlyTransient.cs - PlexAPI/Models/Requests/GetGlobalHubsRequest.cs - PlexAPI/Models/Requests/GetGlobalHubsMetadata.cs @@ -189,7 +219,7 @@ generatedFiles: - PlexAPI/Models/Requests/GetRecentlyAddedMediaContainer.cs - PlexAPI/Models/Requests/GetRecentlyAddedResponseBody.cs - PlexAPI/Models/Requests/GetRecentlyAddedResponse.cs - - PlexAPI/Models/Requests/GetLibrariesLocation.cs + - PlexAPI/Models/Requests/Location.cs - PlexAPI/Models/Requests/GetLibrariesDirectory.cs - PlexAPI/Models/Requests/GetLibrariesMediaContainer.cs - PlexAPI/Models/Requests/GetLibrariesResponseBody.cs @@ -378,6 +408,25 @@ generatedFiles: - PlexAPI/Models/Requests/Skip.cs - PlexAPI/Models/Requests/ApplyUpdatesRequest.cs - PlexAPI/Models/Requests/ApplyUpdatesResponse.cs + - PlexAPI/Models/Requests/PostUsersSigninDataRequestBody.cs + - PlexAPI/Models/Requests/PostUsersSigninDataRequest.cs + - PlexAPI/Models/Requests/PostUsersSigninDataMailingListStatus.cs + - PlexAPI/Models/Requests/PostUsersSigninDataUserProfile.cs + - PlexAPI/Models/Requests/PostUsersSigninDataStatus.cs + - PlexAPI/Models/Requests/PostUsersSigninDataServices.cs + - PlexAPI/Models/Requests/PostUsersSigninDataFeatures.cs + - PlexAPI/Models/Requests/PostUsersSigninDataUserStatus.cs + - PlexAPI/Models/Requests/PostUsersSigninDataSubscription.cs + - PlexAPI/Models/Requests/PostUsersSigninDataUserFeatures.cs + - PlexAPI/Models/Requests/PostUsersSigninDataUserResponseStatus.cs + - PlexAPI/Models/Requests/PostUsersSigninDataUserSubscription.cs + - PlexAPI/Models/Requests/PostUsersSigninDataState.cs + - PlexAPI/Models/Requests/InternalPaymentMethod.cs + - PlexAPI/Models/Requests/Billing.cs + - PlexAPI/Models/Requests/PastSubscription.cs + - PlexAPI/Models/Requests/Trials.cs + - PlexAPI/Models/Requests/PostUsersSigninDataUserPlexAccount.cs + - PlexAPI/Models/Requests/PostUsersSigninDataResponse.cs - PlexAPI/Models/Requests/PathParamFilter.cs - PlexAPI/Models/Requests/Libtype.cs - PlexAPI/Models/Requests/IncludeCollections.cs @@ -427,12 +476,22 @@ generatedFiles: - PlexAPI/Models/Errors/StartTaskResponseBody.cs - PlexAPI/Models/Errors/StopTaskErrors.cs - PlexAPI/Models/Errors/StopTaskResponseBody.cs + - PlexAPI/Models/Errors/GetCompanionsDataErrors.cs + - PlexAPI/Models/Errors/GetCompanionsDataResponseBody.cs + - PlexAPI/Models/Errors/GetUserFriendsErrors.cs + - PlexAPI/Models/Errors/GetUserFriendsResponseBody.cs + - PlexAPI/Models/Errors/GetGeoDataErrors.cs + - PlexAPI/Models/Errors/GetGeoDataResponseBody.cs - PlexAPI/Models/Errors/GetHomeDataErrors.cs - PlexAPI/Models/Errors/GetHomeDataResponseBody.cs + - PlexAPI/Models/Errors/GetResourcesErrors.cs + - PlexAPI/Models/Errors/GetResourcesResponseBody.cs - PlexAPI/Models/Errors/GetPinErrors.cs - PlexAPI/Models/Errors/GetPinResponseBody.cs - - PlexAPI/Models/Errors/GetTokenErrors.cs - - PlexAPI/Models/Errors/GetTokenResponseBody.cs + - PlexAPI/Models/Errors/GetTokenByPinIdErrors.cs + - PlexAPI/Models/Errors/GetTokenByPinIdResponseBody.cs + - PlexAPI/Models/Errors/GetUserDetailsErrors.cs + - PlexAPI/Models/Errors/GetUserDetailsResponseBody.cs - PlexAPI/Models/Errors/GetGlobalHubsErrors.cs - PlexAPI/Models/Errors/GetGlobalHubsResponseBody.cs - PlexAPI/Models/Errors/GetLibraryHubsErrors.cs @@ -513,6 +572,8 @@ generatedFiles: - PlexAPI/Models/Errors/CheckForUpdatesResponseBody.cs - PlexAPI/Models/Errors/ApplyUpdatesErrors.cs - PlexAPI/Models/Errors/ApplyUpdatesResponseBody.cs + - PlexAPI/Models/Errors/PostUsersSigninDataErrors.cs + - PlexAPI/Models/Errors/PostUsersSigninDataResponseBody.cs - PlexAPI/Models/Errors/GetWatchlistErrors.cs - PlexAPI/Models/Errors/GetWatchlistResponseBody.cs - PlexAPI/Models/Components/Security.cs @@ -576,16 +637,44 @@ generatedFiles: - docs/Models/Requests/PathParamTaskName.md - docs/Models/Requests/StopTaskRequest.md - docs/Models/Requests/StopTaskResponse.md + - docs/Models/Requests/ResponseBody.md + - docs/Models/Requests/GetCompanionsDataResponse.md + - docs/Models/Requests/SharedServers.md + - docs/Models/Requests/SharedSources.md + - docs/Models/Requests/Status.md + - docs/Models/Requests/Friend.md + - docs/Models/Requests/GetUserFriendsResponse.md + - docs/Models/Requests/GetGeoDataGeoData.md + - docs/Models/Requests/GetGeoDataResponse.md - docs/Models/Requests/GetHomeDataResponseBody.md - docs/Models/Requests/GetHomeDataResponse.md + - docs/Models/Requests/IncludeHttps.md + - docs/Models/Requests/IncludeRelay.md + - docs/Models/Requests/IncludeIPv6.md + - docs/Models/Requests/GetResourcesRequest.md + - docs/Models/Requests/Connections.md + - docs/Models/Requests/PlexDevice.md + - docs/Models/Requests/GetResourcesResponse.md - docs/Models/Requests/GetPinRequest.md - - docs/Models/Requests/Location.md - - docs/Models/Requests/GetPinResponseBody.md + - docs/Models/Requests/GeoData.md + - docs/Models/Requests/GetPinAuthPinContainer.md - docs/Models/Requests/GetPinResponse.md - - docs/Models/Requests/GetTokenRequest.md - - docs/Models/Requests/GetTokenLocation.md - - docs/Models/Requests/GetTokenResponseBody.md - - docs/Models/Requests/GetTokenResponse.md + - docs/Models/Requests/GetTokenByPinIdRequest.md + - docs/Models/Requests/GetTokenByPinIdGeoData.md + - docs/Models/Requests/GetTokenByPinIdAuthPinContainer.md + - docs/Models/Requests/GetTokenByPinIdResponse.md + - docs/Models/Requests/MailingListStatus.md + - docs/Models/Requests/UserProfile.md + - docs/Models/Requests/GetUserDetailsStatus.md + - docs/Models/Requests/Services.md + - docs/Models/Requests/Features.md + - docs/Models/Requests/GetUserDetailsPlexStatus.md + - docs/Models/Requests/Subscription.md + - docs/Models/Requests/GetUserDetailsFeatures.md + - docs/Models/Requests/GetUserDetailsPlexResponseStatus.md + - docs/Models/Requests/GetUserDetailsSubscription.md + - docs/Models/Requests/GetUserDetailsUserPlexAccount.md + - docs/Models/Requests/GetUserDetailsResponse.md - docs/Models/Requests/OnlyTransient.md - docs/Models/Requests/GetGlobalHubsRequest.md - docs/Models/Requests/GetGlobalHubsMetadata.md @@ -637,7 +726,7 @@ generatedFiles: - docs/Models/Requests/GetRecentlyAddedMediaContainer.md - docs/Models/Requests/GetRecentlyAddedResponseBody.md - docs/Models/Requests/GetRecentlyAddedResponse.md - - docs/Models/Requests/GetLibrariesLocation.md + - docs/Models/Requests/Location.md - docs/Models/Requests/GetLibrariesDirectory.md - docs/Models/Requests/GetLibrariesMediaContainer.md - docs/Models/Requests/GetLibrariesResponseBody.md @@ -826,6 +915,25 @@ generatedFiles: - docs/Models/Requests/Skip.md - docs/Models/Requests/ApplyUpdatesRequest.md - docs/Models/Requests/ApplyUpdatesResponse.md + - docs/Models/Requests/PostUsersSigninDataRequestBody.md + - docs/Models/Requests/PostUsersSigninDataRequest.md + - docs/Models/Requests/PostUsersSigninDataMailingListStatus.md + - docs/Models/Requests/PostUsersSigninDataUserProfile.md + - docs/Models/Requests/PostUsersSigninDataStatus.md + - docs/Models/Requests/PostUsersSigninDataServices.md + - docs/Models/Requests/PostUsersSigninDataFeatures.md + - docs/Models/Requests/PostUsersSigninDataUserStatus.md + - docs/Models/Requests/PostUsersSigninDataSubscription.md + - docs/Models/Requests/PostUsersSigninDataUserFeatures.md + - docs/Models/Requests/PostUsersSigninDataUserResponseStatus.md + - docs/Models/Requests/PostUsersSigninDataUserSubscription.md + - docs/Models/Requests/PostUsersSigninDataState.md + - docs/Models/Requests/InternalPaymentMethod.md + - docs/Models/Requests/Billing.md + - docs/Models/Requests/PastSubscription.md + - docs/Models/Requests/Trials.md + - docs/Models/Requests/PostUsersSigninDataUserPlexAccount.md + - docs/Models/Requests/PostUsersSigninDataResponse.md - docs/Models/Requests/PathParamFilter.md - docs/Models/Requests/Libtype.md - docs/Models/Requests/IncludeCollections.md @@ -875,12 +983,22 @@ generatedFiles: - docs/Models/Errors/StartTaskResponseBody.md - docs/Models/Errors/StopTaskErrors.md - docs/Models/Errors/StopTaskResponseBody.md + - docs/Models/Errors/GetCompanionsDataErrors.md + - docs/Models/Errors/GetCompanionsDataResponseBody.md + - docs/Models/Errors/GetUserFriendsErrors.md + - docs/Models/Errors/GetUserFriendsResponseBody.md + - docs/Models/Errors/GetGeoDataErrors.md + - docs/Models/Errors/GetGeoDataResponseBody.md - docs/Models/Errors/GetHomeDataErrors.md - docs/Models/Errors/GetHomeDataResponseBody.md + - docs/Models/Errors/GetResourcesErrors.md + - docs/Models/Errors/GetResourcesResponseBody.md - docs/Models/Errors/GetPinErrors.md - docs/Models/Errors/GetPinResponseBody.md - - docs/Models/Errors/GetTokenErrors.md - - docs/Models/Errors/GetTokenResponseBody.md + - docs/Models/Errors/GetTokenByPinIdErrors.md + - docs/Models/Errors/GetTokenByPinIdResponseBody.md + - docs/Models/Errors/GetUserDetailsErrors.md + - docs/Models/Errors/GetUserDetailsResponseBody.md - docs/Models/Errors/GetGlobalHubsErrors.md - docs/Models/Errors/GetGlobalHubsResponseBody.md - docs/Models/Errors/GetLibraryHubsErrors.md @@ -961,6 +1079,8 @@ generatedFiles: - docs/Models/Errors/CheckForUpdatesResponseBody.md - docs/Models/Errors/ApplyUpdatesErrors.md - docs/Models/Errors/ApplyUpdatesResponseBody.md + - docs/Models/Errors/PostUsersSigninDataErrors.md + - docs/Models/Errors/PostUsersSigninDataResponseBody.md - docs/Models/Errors/GetWatchlistErrors.md - docs/Models/Errors/GetWatchlistResponseBody.md - docs/Models/Components/Security.md @@ -980,9 +1100,11 @@ generatedFiles: - docs/sdks/statistics/README.md - docs/sdks/sessions/README.md - docs/sdks/updater/README.md + - docs/sdks/user/README.md - docs/sdks/watchlist/README.md - NUGET.md - USAGE.md - .gitattributes - PlexAPI/Hooks/SDKHooks.cs - PlexAPI/Hooks/HookTypes.cs + - CONTRIBUTING.md diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index c053306..dbe9828 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,12 +12,13 @@ generation: auth: oAuth2ClientCredentialsEnabled: true csharp: - version: 0.3.0 + version: 0.4.0 additionalDependencies: [] author: LukeHagar clientServerStatusCodesAsErrors: true disableNamespacePascalCasingApr2024: true dotnetVersion: net5.0 + enableSourceLink: false flattenGlobalSecurity: true imports: option: openapi @@ -27,8 +28,10 @@ csharp: operations: Models/Requests shared: Models/Components webhooks: Models/Webhooks + includeDebugSymbols: false inputModelSuffix: input maxMethodParams: 4 outputModelSuffix: output packageName: PlexAPI + packageTags: "" responseFormat: envelope diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 3f2a0d3..2372edd 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,17 +2,18 @@ speakeasyVersion: 1.321.0 sources: my-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:8df2ed3829cded89c3ef312b1f830c20d48146f7fdf883137befd836432c9e6a - sourceBlobDigest: sha256:a4557b86024d2cd6fe1a00b5631730ed0fc81bebb9efc057af0b96c2fa389acf + sourceRevisionDigest: sha256:15b51e83587ffa99b9534e1343c332817af732e91a7a3317354e5e286abb559b + sourceBlobDigest: sha256:dd6f90b552b01f3e1a76d15a9202d64ba0dcc4cb192794e85213096a7d64a9c4 tags: - latest + - main targets: plexcsharp: source: my-source sourceNamespace: my-source - sourceRevisionDigest: sha256:8df2ed3829cded89c3ef312b1f830c20d48146f7fdf883137befd836432c9e6a - sourceBlobDigest: sha256:a4557b86024d2cd6fe1a00b5631730ed0fc81bebb9efc057af0b96c2fa389acf - outLocation: /home/luke/github/plexcsharp + sourceRevisionDigest: sha256:15b51e83587ffa99b9534e1343c332817af732e91a7a3317354e5e286abb559b + sourceBlobDigest: sha256:dd6f90b552b01f3e1a76d15a9202d64ba0dcc4cb192794e85213096a7d64a9c4 + outLocation: /github/workspace/repo workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..d585717 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,26 @@ +# Contributing to This Repository + +Thank you for your interest in contributing to this repository. Please note that this repository contains generated code. As such, we do not accept direct changes or pull requests. Instead, we encourage you to follow the guidelines below to report issues and suggest improvements. + +## How to Report Issues + +If you encounter any bugs or have suggestions for improvements, please open an issue on GitHub. When reporting an issue, please provide as much detail as possible to help us reproduce the problem. This includes: + +- A clear and descriptive title +- Steps to reproduce the issue +- Expected and actual behavior +- Any relevant logs, screenshots, or error messages +- Information about your environment (e.g., operating system, software versions) + - For example can be collected using the `npx envinfo` command from your terminal if you have Node.js installed + +## Issue Triage and Upstream Fixes + +We will review and triage issues as quickly as possible. Our goal is to address bugs and incorporate improvements in the upstream source code. Fixes will be included in the next generation of the generated code. + +## Contact + +If you have any questions or need further assistance, please feel free to reach out by opening an issue. + +Thank you for your understanding and cooperation! + +The Maintainers diff --git a/NUGET.md b/NUGET.md index 6a098e6..7bd56ab 100644 --- a/NUGET.md +++ b/NUGET.md @@ -20,46 +20,6 @@ var res = await sdk.Server.GetServerCapabilitiesAsync(); ``` - -## Global Parameters - -## Global Parameters - -A parameter is configured globally. This parameter may be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, This global value will be used as the default on the operations that use it. When such operations are called, there is a place in each to override the global value, if needed. - -For example, you can set `X-Plex-Client-Identifier` to `"Postman"` at SDK initialization and then you do not have to pass the same value on calls to operations like `GetPin`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration. - - -### Available Globals - -The following global parameter is available. - -| Name | Type | Required | Description | -| ---- | ---- |:--------:| ----------- | -| xPlexClientIdentifier | string | | The unique identifier for the client application -This is used to track the client application and its usage -(UUID, serial number, or other number unique per device) - | - - -### Example - -```csharp -using PlexAPI; -using PlexAPI.Models.Components; -using PlexAPI.Models.Requests; - -var sdk = new PlexAPISDK(xPlexClientIdentifier: "Postman"); - -var res = await sdk.Plex.GetPinAsync( - xPlexProduct: "Postman", - strong: false, - xPlexClientIdentifier: "Postman"); - -// handle response -``` - - ## Error Handling @@ -133,16 +93,13 @@ The server URL can also be overridden on a per-operation basis, provided a serve ```csharp using PlexAPI; using PlexAPI.Models.Components; -using PlexAPI.Models.Requests; -var sdk = new PlexAPISDK(xPlexClientIdentifier: "Postman"); - -var res = await sdk.Plex.GetPinAsync( - serverUrl: "https://plex.tv/api/v2", - xPlexProduct: "Postman", - strong: false, +var sdk = new PlexAPISDK( + accessToken: "", xPlexClientIdentifier: "Postman"); +var res = await sdk.Plex.GetCompanionsDataAsync(serverUrl: "https://plex.tv/api/v2"); + // handle response ``` diff --git a/PlexAPI/Activities.cs b/PlexAPI/Activities.cs index b32be62..e4886e7 100644 --- a/PlexAPI/Activities.cs +++ b/PlexAPI/Activities.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -74,15 +74,15 @@ namespace PlexAPI { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.354.2"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.404.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.354.2 0.0.3 PlexAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.404.2 0.0.3 PlexAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; - public Activities(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) + public Activities(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) { _client = client; _securitySource = securitySource; @@ -242,7 +242,7 @@ namespace PlexAPI StatusCode = responseStatusCode, ContentType = contentType, RawResponse = httpResponse - };; + }; } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { diff --git a/PlexAPI/Authentication.cs b/PlexAPI/Authentication.cs index 7413760..1054285 100644 --- a/PlexAPI/Authentication.cs +++ b/PlexAPI/Authentication.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -65,15 +65,15 @@ namespace PlexAPI { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.354.2"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.404.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.354.2 0.0.3 PlexAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.404.2 0.0.3 PlexAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; - public Authentication(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) + public Authentication(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) { _client = client; _securitySource = securitySource; @@ -142,7 +142,7 @@ namespace PlexAPI StatusCode = responseStatusCode, ContentType = contentType, RawResponse = httpResponse - };; + }; } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { @@ -227,7 +227,7 @@ namespace PlexAPI StatusCode = responseStatusCode, ContentType = contentType, RawResponse = httpResponse - };; + }; } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { diff --git a/PlexAPI/Butler.cs b/PlexAPI/Butler.cs index 061583c..967ecdf 100644 --- a/PlexAPI/Butler.cs +++ b/PlexAPI/Butler.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -101,15 +101,15 @@ namespace PlexAPI { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.354.2"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.404.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.354.2 0.0.3 PlexAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.404.2 0.0.3 PlexAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; - public Butler(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) + public Butler(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) { _client = client; _securitySource = securitySource; @@ -266,7 +266,7 @@ namespace PlexAPI StatusCode = responseStatusCode, ContentType = contentType, RawResponse = httpResponse - };; + }; } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { @@ -348,7 +348,7 @@ namespace PlexAPI StatusCode = responseStatusCode, ContentType = contentType, RawResponse = httpResponse - };; + }; } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { @@ -433,7 +433,7 @@ namespace PlexAPI StatusCode = responseStatusCode, ContentType = contentType, RawResponse = httpResponse - };; + }; } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { @@ -518,7 +518,7 @@ namespace PlexAPI StatusCode = responseStatusCode, ContentType = contentType, RawResponse = httpResponse - };; + }; } else if(responseStatusCode == 400 || responseStatusCode == 404 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { diff --git a/PlexAPI/Hooks/HookTypes.cs b/PlexAPI/Hooks/HookTypes.cs index bf4962d..1fab11b 100644 --- a/PlexAPI/Hooks/HookTypes.cs +++ b/PlexAPI/Hooks/HookTypes.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Hooks/SDKHooks.cs b/PlexAPI/Hooks/SDKHooks.cs index a014548..ff72ce7 100644 --- a/PlexAPI/Hooks/SDKHooks.cs +++ b/PlexAPI/Hooks/SDKHooks.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Hubs.cs b/PlexAPI/Hubs.cs index 6d2909e..383168f 100644 --- a/PlexAPI/Hubs.cs +++ b/PlexAPI/Hubs.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -63,15 +63,15 @@ namespace PlexAPI { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.354.2"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.404.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.354.2 0.0.3 PlexAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.404.2 0.0.3 PlexAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; - public Hubs(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) + public Hubs(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) { _client = client; _securitySource = securitySource; diff --git a/PlexAPI/Library.cs b/PlexAPI/Library.cs index 6f18b04..d091a5c 100644 --- a/PlexAPI/Library.cs +++ b/PlexAPI/Library.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -241,15 +241,15 @@ namespace PlexAPI { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.354.2"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.404.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.354.2 0.0.3 PlexAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.404.2 0.0.3 PlexAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; - public Library(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) + public Library(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) { _client = client; _securitySource = securitySource; @@ -318,7 +318,7 @@ namespace PlexAPI StatusCode = responseStatusCode, ContentType = contentType, RawResponse = httpResponse - };; + }; } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { @@ -683,7 +683,7 @@ namespace PlexAPI StatusCode = responseStatusCode, ContentType = contentType, RawResponse = httpResponse - };; + }; } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { @@ -865,7 +865,7 @@ namespace PlexAPI StatusCode = responseStatusCode, ContentType = contentType, RawResponse = httpResponse - };; + }; } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { diff --git a/PlexAPI/Log.cs b/PlexAPI/Log.cs index 6fbdceb..ab85510 100644 --- a/PlexAPI/Log.cs +++ b/PlexAPI/Log.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -94,15 +94,15 @@ namespace PlexAPI { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.354.2"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.404.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.354.2 0.0.3 PlexAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.404.2 0.0.3 PlexAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; - public Log(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) + public Log(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) { _client = client; _securitySource = securitySource; @@ -172,7 +172,7 @@ namespace PlexAPI StatusCode = responseStatusCode, ContentType = contentType, RawResponse = httpResponse - };; + }; } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { @@ -260,7 +260,7 @@ namespace PlexAPI StatusCode = responseStatusCode, ContentType = contentType, RawResponse = httpResponse - };; + }; } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { @@ -342,7 +342,7 @@ namespace PlexAPI StatusCode = responseStatusCode, ContentType = contentType, RawResponse = httpResponse - };; + }; } else if(responseStatusCode == 400 || responseStatusCode == 403 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { diff --git a/PlexAPI/Media.cs b/PlexAPI/Media.cs index 030e33f..92327d3 100644 --- a/PlexAPI/Media.cs +++ b/PlexAPI/Media.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -72,15 +72,15 @@ namespace PlexAPI { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.354.2"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.404.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.354.2 0.0.3 PlexAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.404.2 0.0.3 PlexAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; - public Media(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) + public Media(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) { _client = client; _securitySource = securitySource; @@ -148,7 +148,7 @@ namespace PlexAPI StatusCode = responseStatusCode, ContentType = contentType, RawResponse = httpResponse - };; + }; } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { @@ -233,7 +233,7 @@ namespace PlexAPI StatusCode = responseStatusCode, ContentType = contentType, RawResponse = httpResponse - };; + }; } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { @@ -320,7 +320,7 @@ namespace PlexAPI StatusCode = responseStatusCode, ContentType = contentType, RawResponse = httpResponse - };; + }; } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { diff --git a/PlexAPI/Models/Components/Security.cs b/PlexAPI/Models/Components/Security.cs index bb79ffb..7cf8116 100644 --- a/PlexAPI/Models/Components/Security.cs +++ b/PlexAPI/Models/Components/Security.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -15,6 +15,6 @@ namespace PlexAPI.Models.Components { [SpeakeasyMetadata("security:scheme=true,type=apiKey,subType=header,name=X-Plex-Token")] - public string AccessToken { get; set; } = default!; + public string? AccessToken { get; set; } } } \ No newline at end of file diff --git a/PlexAPI/Models/Errors/AddPlaylistContentsErrors.cs b/PlexAPI/Models/Errors/AddPlaylistContentsErrors.cs index 6893fca..eb4b5d0 100644 --- a/PlexAPI/Models/Errors/AddPlaylistContentsErrors.cs +++ b/PlexAPI/Models/Errors/AddPlaylistContentsErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/AddPlaylistContentsResponseBody.cs b/PlexAPI/Models/Errors/AddPlaylistContentsResponseBody.cs index 23b1e17..fc954da 100644 --- a/PlexAPI/Models/Errors/AddPlaylistContentsResponseBody.cs +++ b/PlexAPI/Models/Errors/AddPlaylistContentsResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/ApplyUpdatesErrors.cs b/PlexAPI/Models/Errors/ApplyUpdatesErrors.cs index be5db30..660d878 100644 --- a/PlexAPI/Models/Errors/ApplyUpdatesErrors.cs +++ b/PlexAPI/Models/Errors/ApplyUpdatesErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/ApplyUpdatesResponseBody.cs b/PlexAPI/Models/Errors/ApplyUpdatesResponseBody.cs index e669ef6..0a96472 100644 --- a/PlexAPI/Models/Errors/ApplyUpdatesResponseBody.cs +++ b/PlexAPI/Models/Errors/ApplyUpdatesResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/CancelServerActivitiesErrors.cs b/PlexAPI/Models/Errors/CancelServerActivitiesErrors.cs index 7af426a..0a92436 100644 --- a/PlexAPI/Models/Errors/CancelServerActivitiesErrors.cs +++ b/PlexAPI/Models/Errors/CancelServerActivitiesErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/CancelServerActivitiesResponseBody.cs b/PlexAPI/Models/Errors/CancelServerActivitiesResponseBody.cs index 17dcdc4..9f18c19 100644 --- a/PlexAPI/Models/Errors/CancelServerActivitiesResponseBody.cs +++ b/PlexAPI/Models/Errors/CancelServerActivitiesResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/CheckForUpdatesErrors.cs b/PlexAPI/Models/Errors/CheckForUpdatesErrors.cs index 8778aed..affb906 100644 --- a/PlexAPI/Models/Errors/CheckForUpdatesErrors.cs +++ b/PlexAPI/Models/Errors/CheckForUpdatesErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/CheckForUpdatesResponseBody.cs b/PlexAPI/Models/Errors/CheckForUpdatesResponseBody.cs index 7d366c9..e7abd58 100644 --- a/PlexAPI/Models/Errors/CheckForUpdatesResponseBody.cs +++ b/PlexAPI/Models/Errors/CheckForUpdatesResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/ClearPlaylistContentsErrors.cs b/PlexAPI/Models/Errors/ClearPlaylistContentsErrors.cs index 2b9f541..826fb58 100644 --- a/PlexAPI/Models/Errors/ClearPlaylistContentsErrors.cs +++ b/PlexAPI/Models/Errors/ClearPlaylistContentsErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/ClearPlaylistContentsResponseBody.cs b/PlexAPI/Models/Errors/ClearPlaylistContentsResponseBody.cs index 1f47d37..dd18906 100644 --- a/PlexAPI/Models/Errors/ClearPlaylistContentsResponseBody.cs +++ b/PlexAPI/Models/Errors/ClearPlaylistContentsResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/CreatePlaylistErrors.cs b/PlexAPI/Models/Errors/CreatePlaylistErrors.cs index 48da592..2e9063b 100644 --- a/PlexAPI/Models/Errors/CreatePlaylistErrors.cs +++ b/PlexAPI/Models/Errors/CreatePlaylistErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/CreatePlaylistResponseBody.cs b/PlexAPI/Models/Errors/CreatePlaylistResponseBody.cs index 1ea9bfe..dd5afb2 100644 --- a/PlexAPI/Models/Errors/CreatePlaylistResponseBody.cs +++ b/PlexAPI/Models/Errors/CreatePlaylistResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/DeleteLibraryErrors.cs b/PlexAPI/Models/Errors/DeleteLibraryErrors.cs index 858fc09..3807f65 100644 --- a/PlexAPI/Models/Errors/DeleteLibraryErrors.cs +++ b/PlexAPI/Models/Errors/DeleteLibraryErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/DeleteLibraryResponseBody.cs b/PlexAPI/Models/Errors/DeleteLibraryResponseBody.cs index 275d1dc..b4b4506 100644 --- a/PlexAPI/Models/Errors/DeleteLibraryResponseBody.cs +++ b/PlexAPI/Models/Errors/DeleteLibraryResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/DeletePlaylistErrors.cs b/PlexAPI/Models/Errors/DeletePlaylistErrors.cs index 3cd66fb..9268b59 100644 --- a/PlexAPI/Models/Errors/DeletePlaylistErrors.cs +++ b/PlexAPI/Models/Errors/DeletePlaylistErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/DeletePlaylistResponseBody.cs b/PlexAPI/Models/Errors/DeletePlaylistResponseBody.cs index 0fc82e2..25a0a6c 100644 --- a/PlexAPI/Models/Errors/DeletePlaylistResponseBody.cs +++ b/PlexAPI/Models/Errors/DeletePlaylistResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/EnablePaperTrailErrors.cs b/PlexAPI/Models/Errors/EnablePaperTrailErrors.cs index b3d5a47..9892e37 100644 --- a/PlexAPI/Models/Errors/EnablePaperTrailErrors.cs +++ b/PlexAPI/Models/Errors/EnablePaperTrailErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/EnablePaperTrailResponseBody.cs b/PlexAPI/Models/Errors/EnablePaperTrailResponseBody.cs index 19d5841..be9899d 100644 --- a/PlexAPI/Models/Errors/EnablePaperTrailResponseBody.cs +++ b/PlexAPI/Models/Errors/EnablePaperTrailResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/Errors.cs b/PlexAPI/Models/Errors/Errors.cs index de297ad..50ba378 100644 --- a/PlexAPI/Models/Errors/Errors.cs +++ b/PlexAPI/Models/Errors/Errors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetAvailableClientsErrors.cs b/PlexAPI/Models/Errors/GetAvailableClientsErrors.cs index 88e307c..0ddac8f 100644 --- a/PlexAPI/Models/Errors/GetAvailableClientsErrors.cs +++ b/PlexAPI/Models/Errors/GetAvailableClientsErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetAvailableClientsResponseBody.cs b/PlexAPI/Models/Errors/GetAvailableClientsResponseBody.cs index 1a0597c..834f757 100644 --- a/PlexAPI/Models/Errors/GetAvailableClientsResponseBody.cs +++ b/PlexAPI/Models/Errors/GetAvailableClientsResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetBandwidthStatisticsErrors.cs b/PlexAPI/Models/Errors/GetBandwidthStatisticsErrors.cs index 1c022d5..1530076 100644 --- a/PlexAPI/Models/Errors/GetBandwidthStatisticsErrors.cs +++ b/PlexAPI/Models/Errors/GetBandwidthStatisticsErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetBandwidthStatisticsResponseBody.cs b/PlexAPI/Models/Errors/GetBandwidthStatisticsResponseBody.cs index b49e4a3..c2a4d79 100644 --- a/PlexAPI/Models/Errors/GetBandwidthStatisticsResponseBody.cs +++ b/PlexAPI/Models/Errors/GetBandwidthStatisticsResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetButlerTasksErrors.cs b/PlexAPI/Models/Errors/GetButlerTasksErrors.cs index ad50790..0247733 100644 --- a/PlexAPI/Models/Errors/GetButlerTasksErrors.cs +++ b/PlexAPI/Models/Errors/GetButlerTasksErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetButlerTasksResponseBody.cs b/PlexAPI/Models/Errors/GetButlerTasksResponseBody.cs index 4ec3339..5a55e9e 100644 --- a/PlexAPI/Models/Errors/GetButlerTasksResponseBody.cs +++ b/PlexAPI/Models/Errors/GetButlerTasksResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetCompanionsDataErrors.cs b/PlexAPI/Models/Errors/GetCompanionsDataErrors.cs new file mode 100644 index 0000000..00c56b0 --- /dev/null +++ b/PlexAPI/Models/Errors/GetCompanionsDataErrors.cs @@ -0,0 +1,27 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Errors +{ + using Newtonsoft.Json; + using PlexAPI.Utils; + + public class GetCompanionsDataErrors + { + + [JsonProperty("code")] + public double? Code { get; set; } + + [JsonProperty("message")] + public string? Message { get; set; } + + [JsonProperty("status")] + public double? Status { get; set; } + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Errors/GetCompanionsDataResponseBody.cs b/PlexAPI/Models/Errors/GetCompanionsDataResponseBody.cs new file mode 100644 index 0000000..97da488 --- /dev/null +++ b/PlexAPI/Models/Errors/GetCompanionsDataResponseBody.cs @@ -0,0 +1,34 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Errors +{ + using Newtonsoft.Json; + using PlexAPI.Models.Errors; + using PlexAPI.Utils; + using System.Collections.Generic; + using System.Net.Http; + using System; + + /// + /// Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + /// + public class GetCompanionsDataResponseBody : Exception + { + + [JsonProperty("errors")] + public List? Errors { get; set; } + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + [JsonProperty("-")] + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Errors/GetDevicesErrors.cs b/PlexAPI/Models/Errors/GetDevicesErrors.cs index 141fb62..bb3e6a4 100644 --- a/PlexAPI/Models/Errors/GetDevicesErrors.cs +++ b/PlexAPI/Models/Errors/GetDevicesErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetDevicesResponseBody.cs b/PlexAPI/Models/Errors/GetDevicesResponseBody.cs index 88ef9e1..3165aa6 100644 --- a/PlexAPI/Models/Errors/GetDevicesResponseBody.cs +++ b/PlexAPI/Models/Errors/GetDevicesResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetFileHashErrors.cs b/PlexAPI/Models/Errors/GetFileHashErrors.cs index 183b1a8..5b77598 100644 --- a/PlexAPI/Models/Errors/GetFileHashErrors.cs +++ b/PlexAPI/Models/Errors/GetFileHashErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetFileHashResponseBody.cs b/PlexAPI/Models/Errors/GetFileHashResponseBody.cs index 73f1df1..55ba6a0 100644 --- a/PlexAPI/Models/Errors/GetFileHashResponseBody.cs +++ b/PlexAPI/Models/Errors/GetFileHashResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetTokenErrors.cs b/PlexAPI/Models/Errors/GetGeoDataErrors.cs similarity index 85% rename from PlexAPI/Models/Errors/GetTokenErrors.cs rename to PlexAPI/Models/Errors/GetGeoDataErrors.cs index 4e5a3df..752e65d 100644 --- a/PlexAPI/Models/Errors/GetTokenErrors.cs +++ b/PlexAPI/Models/Errors/GetGeoDataErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -12,7 +12,7 @@ namespace PlexAPI.Models.Errors using Newtonsoft.Json; using PlexAPI.Utils; - public class GetTokenErrors + public class GetGeoDataErrors { [JsonProperty("code")] diff --git a/PlexAPI/Models/Errors/GetGeoDataResponseBody.cs b/PlexAPI/Models/Errors/GetGeoDataResponseBody.cs new file mode 100644 index 0000000..ef849a0 --- /dev/null +++ b/PlexAPI/Models/Errors/GetGeoDataResponseBody.cs @@ -0,0 +1,34 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Errors +{ + using Newtonsoft.Json; + using PlexAPI.Models.Errors; + using PlexAPI.Utils; + using System.Collections.Generic; + using System.Net.Http; + using System; + + /// + /// Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + /// + public class GetGeoDataResponseBody : Exception + { + + [JsonProperty("errors")] + public List? Errors { get; set; } + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + [JsonProperty("-")] + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Errors/GetGlobalHubsErrors.cs b/PlexAPI/Models/Errors/GetGlobalHubsErrors.cs index 854ccb2..0212e5e 100644 --- a/PlexAPI/Models/Errors/GetGlobalHubsErrors.cs +++ b/PlexAPI/Models/Errors/GetGlobalHubsErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetGlobalHubsResponseBody.cs b/PlexAPI/Models/Errors/GetGlobalHubsResponseBody.cs index 5b549ca..3370a34 100644 --- a/PlexAPI/Models/Errors/GetGlobalHubsResponseBody.cs +++ b/PlexAPI/Models/Errors/GetGlobalHubsResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetHomeDataErrors.cs b/PlexAPI/Models/Errors/GetHomeDataErrors.cs index 075f1a0..d80ac50 100644 --- a/PlexAPI/Models/Errors/GetHomeDataErrors.cs +++ b/PlexAPI/Models/Errors/GetHomeDataErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetHomeDataResponseBody.cs b/PlexAPI/Models/Errors/GetHomeDataResponseBody.cs index c8a2782..b1f9d7b 100644 --- a/PlexAPI/Models/Errors/GetHomeDataResponseBody.cs +++ b/PlexAPI/Models/Errors/GetHomeDataResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetLibrariesErrors.cs b/PlexAPI/Models/Errors/GetLibrariesErrors.cs index ec6a8f9..177cb1f 100644 --- a/PlexAPI/Models/Errors/GetLibrariesErrors.cs +++ b/PlexAPI/Models/Errors/GetLibrariesErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetLibrariesResponseBody.cs b/PlexAPI/Models/Errors/GetLibrariesResponseBody.cs index 5110987..8aa8df6 100644 --- a/PlexAPI/Models/Errors/GetLibrariesResponseBody.cs +++ b/PlexAPI/Models/Errors/GetLibrariesResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetLibraryErrors.cs b/PlexAPI/Models/Errors/GetLibraryErrors.cs index 2754925..a14484a 100644 --- a/PlexAPI/Models/Errors/GetLibraryErrors.cs +++ b/PlexAPI/Models/Errors/GetLibraryErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetLibraryHubsErrors.cs b/PlexAPI/Models/Errors/GetLibraryHubsErrors.cs index e6352d8..8711b00 100644 --- a/PlexAPI/Models/Errors/GetLibraryHubsErrors.cs +++ b/PlexAPI/Models/Errors/GetLibraryHubsErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetLibraryHubsResponseBody.cs b/PlexAPI/Models/Errors/GetLibraryHubsResponseBody.cs index 6f664c4..541f06e 100644 --- a/PlexAPI/Models/Errors/GetLibraryHubsResponseBody.cs +++ b/PlexAPI/Models/Errors/GetLibraryHubsResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetLibraryItemsErrors.cs b/PlexAPI/Models/Errors/GetLibraryItemsErrors.cs index ce3d0bf..5df9809 100644 --- a/PlexAPI/Models/Errors/GetLibraryItemsErrors.cs +++ b/PlexAPI/Models/Errors/GetLibraryItemsErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetLibraryItemsResponseBody.cs b/PlexAPI/Models/Errors/GetLibraryItemsResponseBody.cs index 1ec39be..3d79bac 100644 --- a/PlexAPI/Models/Errors/GetLibraryItemsResponseBody.cs +++ b/PlexAPI/Models/Errors/GetLibraryItemsResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetLibraryResponseBody.cs b/PlexAPI/Models/Errors/GetLibraryResponseBody.cs index c1e918a..f0d2823 100644 --- a/PlexAPI/Models/Errors/GetLibraryResponseBody.cs +++ b/PlexAPI/Models/Errors/GetLibraryResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetMetadataChildrenErrors.cs b/PlexAPI/Models/Errors/GetMetadataChildrenErrors.cs index 3953753..3d1d1bc 100644 --- a/PlexAPI/Models/Errors/GetMetadataChildrenErrors.cs +++ b/PlexAPI/Models/Errors/GetMetadataChildrenErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetMetadataChildrenResponseBody.cs b/PlexAPI/Models/Errors/GetMetadataChildrenResponseBody.cs index 2a96003..1dcb946 100644 --- a/PlexAPI/Models/Errors/GetMetadataChildrenResponseBody.cs +++ b/PlexAPI/Models/Errors/GetMetadataChildrenResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetMetadataErrors.cs b/PlexAPI/Models/Errors/GetMetadataErrors.cs index 5768549..514590c 100644 --- a/PlexAPI/Models/Errors/GetMetadataErrors.cs +++ b/PlexAPI/Models/Errors/GetMetadataErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetMetadataResponseBody.cs b/PlexAPI/Models/Errors/GetMetadataResponseBody.cs index a2c4d4b..aaefc32 100644 --- a/PlexAPI/Models/Errors/GetMetadataResponseBody.cs +++ b/PlexAPI/Models/Errors/GetMetadataResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetMyPlexAccountErrors.cs b/PlexAPI/Models/Errors/GetMyPlexAccountErrors.cs index 56fcb81..bfe397c 100644 --- a/PlexAPI/Models/Errors/GetMyPlexAccountErrors.cs +++ b/PlexAPI/Models/Errors/GetMyPlexAccountErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetMyPlexAccountResponseBody.cs b/PlexAPI/Models/Errors/GetMyPlexAccountResponseBody.cs index dc604af..5b991ea 100644 --- a/PlexAPI/Models/Errors/GetMyPlexAccountResponseBody.cs +++ b/PlexAPI/Models/Errors/GetMyPlexAccountResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetOnDeckErrors.cs b/PlexAPI/Models/Errors/GetOnDeckErrors.cs index 5ca9d9d..7137f42 100644 --- a/PlexAPI/Models/Errors/GetOnDeckErrors.cs +++ b/PlexAPI/Models/Errors/GetOnDeckErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetOnDeckResponseBody.cs b/PlexAPI/Models/Errors/GetOnDeckResponseBody.cs index 9da6173..6768532 100644 --- a/PlexAPI/Models/Errors/GetOnDeckResponseBody.cs +++ b/PlexAPI/Models/Errors/GetOnDeckResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetPinErrors.cs b/PlexAPI/Models/Errors/GetPinErrors.cs index 46b8430..7c9263f 100644 --- a/PlexAPI/Models/Errors/GetPinErrors.cs +++ b/PlexAPI/Models/Errors/GetPinErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -16,12 +16,12 @@ namespace PlexAPI.Models.Errors { [JsonProperty("code")] - public double? Code { get; set; } + public long? Code { get; set; } [JsonProperty("message")] public string? Message { get; set; } [JsonProperty("status")] - public double? Status { get; set; } + public long? Status { get; set; } } } \ No newline at end of file diff --git a/PlexAPI/Models/Errors/GetPinResponseBody.cs b/PlexAPI/Models/Errors/GetPinResponseBody.cs index 52029dc..a6c54b3 100644 --- a/PlexAPI/Models/Errors/GetPinResponseBody.cs +++ b/PlexAPI/Models/Errors/GetPinResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -17,7 +17,7 @@ namespace PlexAPI.Models.Errors using System; /// - /// X-Plex-Client-Identifier is missing + /// Bad Request response when the X-Plex-Client-Identifier is missing /// public class GetPinResponseBody : Exception { diff --git a/PlexAPI/Models/Errors/GetPlaylistContentsErrors.cs b/PlexAPI/Models/Errors/GetPlaylistContentsErrors.cs index 1c14306..08006fb 100644 --- a/PlexAPI/Models/Errors/GetPlaylistContentsErrors.cs +++ b/PlexAPI/Models/Errors/GetPlaylistContentsErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetPlaylistContentsResponseBody.cs b/PlexAPI/Models/Errors/GetPlaylistContentsResponseBody.cs index 265c887..feb8977 100644 --- a/PlexAPI/Models/Errors/GetPlaylistContentsResponseBody.cs +++ b/PlexAPI/Models/Errors/GetPlaylistContentsResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetPlaylistErrors.cs b/PlexAPI/Models/Errors/GetPlaylistErrors.cs index b8df4e7..034d71f 100644 --- a/PlexAPI/Models/Errors/GetPlaylistErrors.cs +++ b/PlexAPI/Models/Errors/GetPlaylistErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetPlaylistResponseBody.cs b/PlexAPI/Models/Errors/GetPlaylistResponseBody.cs index 6be3eab..e501595 100644 --- a/PlexAPI/Models/Errors/GetPlaylistResponseBody.cs +++ b/PlexAPI/Models/Errors/GetPlaylistResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetPlaylistsErrors.cs b/PlexAPI/Models/Errors/GetPlaylistsErrors.cs index 938fc42..0e3acc5 100644 --- a/PlexAPI/Models/Errors/GetPlaylistsErrors.cs +++ b/PlexAPI/Models/Errors/GetPlaylistsErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetPlaylistsResponseBody.cs b/PlexAPI/Models/Errors/GetPlaylistsResponseBody.cs index 7a43adf..019e43c 100644 --- a/PlexAPI/Models/Errors/GetPlaylistsResponseBody.cs +++ b/PlexAPI/Models/Errors/GetPlaylistsResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetRecentlyAddedErrors.cs b/PlexAPI/Models/Errors/GetRecentlyAddedErrors.cs index 31ed20c..547e544 100644 --- a/PlexAPI/Models/Errors/GetRecentlyAddedErrors.cs +++ b/PlexAPI/Models/Errors/GetRecentlyAddedErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetRecentlyAddedResponseBody.cs b/PlexAPI/Models/Errors/GetRecentlyAddedResponseBody.cs index c585e32..36836a1 100644 --- a/PlexAPI/Models/Errors/GetRecentlyAddedResponseBody.cs +++ b/PlexAPI/Models/Errors/GetRecentlyAddedResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetResizedPhotoErrors.cs b/PlexAPI/Models/Errors/GetResizedPhotoErrors.cs index e44b209..dc21dc1 100644 --- a/PlexAPI/Models/Errors/GetResizedPhotoErrors.cs +++ b/PlexAPI/Models/Errors/GetResizedPhotoErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetResizedPhotoResponseBody.cs b/PlexAPI/Models/Errors/GetResizedPhotoResponseBody.cs index 6f9a8ce..8e1dbc1 100644 --- a/PlexAPI/Models/Errors/GetResizedPhotoResponseBody.cs +++ b/PlexAPI/Models/Errors/GetResizedPhotoResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetResourcesErrors.cs b/PlexAPI/Models/Errors/GetResourcesErrors.cs new file mode 100644 index 0000000..da1bed7 --- /dev/null +++ b/PlexAPI/Models/Errors/GetResourcesErrors.cs @@ -0,0 +1,27 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Errors +{ + using Newtonsoft.Json; + using PlexAPI.Utils; + + public class GetResourcesErrors + { + + [JsonProperty("code")] + public double? Code { get; set; } + + [JsonProperty("message")] + public string? Message { get; set; } + + [JsonProperty("status")] + public double? Status { get; set; } + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Errors/GetResourcesResponseBody.cs b/PlexAPI/Models/Errors/GetResourcesResponseBody.cs new file mode 100644 index 0000000..3543600 --- /dev/null +++ b/PlexAPI/Models/Errors/GetResourcesResponseBody.cs @@ -0,0 +1,34 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Errors +{ + using Newtonsoft.Json; + using PlexAPI.Models.Errors; + using PlexAPI.Utils; + using System.Collections.Generic; + using System.Net.Http; + using System; + + /// + /// Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + /// + public class GetResourcesResponseBody : Exception + { + + [JsonProperty("errors")] + public List? Errors { get; set; } + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + [JsonProperty("-")] + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Errors/GetResourcesStatisticsErrors.cs b/PlexAPI/Models/Errors/GetResourcesStatisticsErrors.cs index d016d7c..44d611b 100644 --- a/PlexAPI/Models/Errors/GetResourcesStatisticsErrors.cs +++ b/PlexAPI/Models/Errors/GetResourcesStatisticsErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetResourcesStatisticsResponseBody.cs b/PlexAPI/Models/Errors/GetResourcesStatisticsResponseBody.cs index 75890d9..dcedfe5 100644 --- a/PlexAPI/Models/Errors/GetResourcesStatisticsResponseBody.cs +++ b/PlexAPI/Models/Errors/GetResourcesStatisticsResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetSearchResultsErrors.cs b/PlexAPI/Models/Errors/GetSearchResultsErrors.cs index 3a52b43..2d0325d 100644 --- a/PlexAPI/Models/Errors/GetSearchResultsErrors.cs +++ b/PlexAPI/Models/Errors/GetSearchResultsErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetSearchResultsResponseBody.cs b/PlexAPI/Models/Errors/GetSearchResultsResponseBody.cs index e25b867..c58d5e4 100644 --- a/PlexAPI/Models/Errors/GetSearchResultsResponseBody.cs +++ b/PlexAPI/Models/Errors/GetSearchResultsResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetServerActivitiesErrors.cs b/PlexAPI/Models/Errors/GetServerActivitiesErrors.cs index 6db65bf..af4dcd3 100644 --- a/PlexAPI/Models/Errors/GetServerActivitiesErrors.cs +++ b/PlexAPI/Models/Errors/GetServerActivitiesErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetServerActivitiesResponseBody.cs b/PlexAPI/Models/Errors/GetServerActivitiesResponseBody.cs index a2cc996..54d7c18 100644 --- a/PlexAPI/Models/Errors/GetServerActivitiesResponseBody.cs +++ b/PlexAPI/Models/Errors/GetServerActivitiesResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetServerCapabilitiesResponseBody.cs b/PlexAPI/Models/Errors/GetServerCapabilitiesResponseBody.cs index ceb4a0b..342c89c 100644 --- a/PlexAPI/Models/Errors/GetServerCapabilitiesResponseBody.cs +++ b/PlexAPI/Models/Errors/GetServerCapabilitiesResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetServerIdentityErrors.cs b/PlexAPI/Models/Errors/GetServerIdentityErrors.cs index d6722e3..87b2cb3 100644 --- a/PlexAPI/Models/Errors/GetServerIdentityErrors.cs +++ b/PlexAPI/Models/Errors/GetServerIdentityErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetServerIdentityResponseBody.cs b/PlexAPI/Models/Errors/GetServerIdentityResponseBody.cs index 743d922..3a758cf 100644 --- a/PlexAPI/Models/Errors/GetServerIdentityResponseBody.cs +++ b/PlexAPI/Models/Errors/GetServerIdentityResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetServerListErrors.cs b/PlexAPI/Models/Errors/GetServerListErrors.cs index ba591cd..9a8de2a 100644 --- a/PlexAPI/Models/Errors/GetServerListErrors.cs +++ b/PlexAPI/Models/Errors/GetServerListErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetServerListResponseBody.cs b/PlexAPI/Models/Errors/GetServerListResponseBody.cs index a155064..464760d 100644 --- a/PlexAPI/Models/Errors/GetServerListResponseBody.cs +++ b/PlexAPI/Models/Errors/GetServerListResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetServerPreferencesErrors.cs b/PlexAPI/Models/Errors/GetServerPreferencesErrors.cs index 054a6f9..cbe6d24 100644 --- a/PlexAPI/Models/Errors/GetServerPreferencesErrors.cs +++ b/PlexAPI/Models/Errors/GetServerPreferencesErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetServerPreferencesResponseBody.cs b/PlexAPI/Models/Errors/GetServerPreferencesResponseBody.cs index 1add8da..267cf73 100644 --- a/PlexAPI/Models/Errors/GetServerPreferencesResponseBody.cs +++ b/PlexAPI/Models/Errors/GetServerPreferencesResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetSessionHistoryErrors.cs b/PlexAPI/Models/Errors/GetSessionHistoryErrors.cs index 14ce656..6e0e12c 100644 --- a/PlexAPI/Models/Errors/GetSessionHistoryErrors.cs +++ b/PlexAPI/Models/Errors/GetSessionHistoryErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetSessionHistoryResponseBody.cs b/PlexAPI/Models/Errors/GetSessionHistoryResponseBody.cs index ce24f19..9e1bb31 100644 --- a/PlexAPI/Models/Errors/GetSessionHistoryResponseBody.cs +++ b/PlexAPI/Models/Errors/GetSessionHistoryResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetSessionsErrors.cs b/PlexAPI/Models/Errors/GetSessionsErrors.cs index be0ea74..41f0e92 100644 --- a/PlexAPI/Models/Errors/GetSessionsErrors.cs +++ b/PlexAPI/Models/Errors/GetSessionsErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetSessionsResponseBody.cs b/PlexAPI/Models/Errors/GetSessionsResponseBody.cs index 297cc47..95f7b58 100644 --- a/PlexAPI/Models/Errors/GetSessionsResponseBody.cs +++ b/PlexAPI/Models/Errors/GetSessionsResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetSourceConnectionInformationErrors.cs b/PlexAPI/Models/Errors/GetSourceConnectionInformationErrors.cs index c741da0..e4bbebf 100644 --- a/PlexAPI/Models/Errors/GetSourceConnectionInformationErrors.cs +++ b/PlexAPI/Models/Errors/GetSourceConnectionInformationErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetSourceConnectionInformationResponseBody.cs b/PlexAPI/Models/Errors/GetSourceConnectionInformationResponseBody.cs index b45d15b..99281b1 100644 --- a/PlexAPI/Models/Errors/GetSourceConnectionInformationResponseBody.cs +++ b/PlexAPI/Models/Errors/GetSourceConnectionInformationResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetStatisticsErrors.cs b/PlexAPI/Models/Errors/GetStatisticsErrors.cs index d33a142..67e1b65 100644 --- a/PlexAPI/Models/Errors/GetStatisticsErrors.cs +++ b/PlexAPI/Models/Errors/GetStatisticsErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetStatisticsResponseBody.cs b/PlexAPI/Models/Errors/GetStatisticsResponseBody.cs index 1453854..0ed717b 100644 --- a/PlexAPI/Models/Errors/GetStatisticsResponseBody.cs +++ b/PlexAPI/Models/Errors/GetStatisticsResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetTimelineErrors.cs b/PlexAPI/Models/Errors/GetTimelineErrors.cs index cc45bf3..b326afc 100644 --- a/PlexAPI/Models/Errors/GetTimelineErrors.cs +++ b/PlexAPI/Models/Errors/GetTimelineErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetTimelineResponseBody.cs b/PlexAPI/Models/Errors/GetTimelineResponseBody.cs index 44cc39d..91b6c65 100644 --- a/PlexAPI/Models/Errors/GetTimelineResponseBody.cs +++ b/PlexAPI/Models/Errors/GetTimelineResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetTokenByPinIdErrors.cs b/PlexAPI/Models/Errors/GetTokenByPinIdErrors.cs new file mode 100644 index 0000000..de5f4f3 --- /dev/null +++ b/PlexAPI/Models/Errors/GetTokenByPinIdErrors.cs @@ -0,0 +1,24 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Errors +{ + using Newtonsoft.Json; + using PlexAPI.Utils; + + public class GetTokenByPinIdErrors + { + + [JsonProperty("code")] + public long? Code { get; set; } + + [JsonProperty("message")] + public string? Message { get; set; } + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Errors/GetTokenResponseBody.cs b/PlexAPI/Models/Errors/GetTokenByPinIdResponseBody.cs similarity index 77% rename from PlexAPI/Models/Errors/GetTokenResponseBody.cs rename to PlexAPI/Models/Errors/GetTokenByPinIdResponseBody.cs index 7191f52..d6d6755 100644 --- a/PlexAPI/Models/Errors/GetTokenResponseBody.cs +++ b/PlexAPI/Models/Errors/GetTokenByPinIdResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -17,13 +17,13 @@ namespace PlexAPI.Models.Errors using System; /// - /// X-Plex-Client-Identifier is missing + /// Not Found or Expired /// - public class GetTokenResponseBody : Exception + public class GetTokenByPinIdResponseBody : Exception { [JsonProperty("errors")] - public List? Errors { get; set; } + public List? Errors { get; set; } /// /// Raw HTTP response; suitable for custom response parsing diff --git a/PlexAPI/Models/Errors/GetTranscodeSessionsErrors.cs b/PlexAPI/Models/Errors/GetTranscodeSessionsErrors.cs index e8843ae..850d9bf 100644 --- a/PlexAPI/Models/Errors/GetTranscodeSessionsErrors.cs +++ b/PlexAPI/Models/Errors/GetTranscodeSessionsErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetTranscodeSessionsResponseBody.cs b/PlexAPI/Models/Errors/GetTranscodeSessionsResponseBody.cs index cf1034f..9564b11 100644 --- a/PlexAPI/Models/Errors/GetTranscodeSessionsResponseBody.cs +++ b/PlexAPI/Models/Errors/GetTranscodeSessionsResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetTransientTokenErrors.cs b/PlexAPI/Models/Errors/GetTransientTokenErrors.cs index dcf619b..917a7e2 100644 --- a/PlexAPI/Models/Errors/GetTransientTokenErrors.cs +++ b/PlexAPI/Models/Errors/GetTransientTokenErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetTransientTokenResponseBody.cs b/PlexAPI/Models/Errors/GetTransientTokenResponseBody.cs index fbae285..7099f25 100644 --- a/PlexAPI/Models/Errors/GetTransientTokenResponseBody.cs +++ b/PlexAPI/Models/Errors/GetTransientTokenResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetUpdateStatusErrors.cs b/PlexAPI/Models/Errors/GetUpdateStatusErrors.cs index 8a61798..817ff25 100644 --- a/PlexAPI/Models/Errors/GetUpdateStatusErrors.cs +++ b/PlexAPI/Models/Errors/GetUpdateStatusErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetUpdateStatusResponseBody.cs b/PlexAPI/Models/Errors/GetUpdateStatusResponseBody.cs index 3a0106e..5669fad 100644 --- a/PlexAPI/Models/Errors/GetUpdateStatusResponseBody.cs +++ b/PlexAPI/Models/Errors/GetUpdateStatusResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetUserDetailsErrors.cs b/PlexAPI/Models/Errors/GetUserDetailsErrors.cs new file mode 100644 index 0000000..dc4db7a --- /dev/null +++ b/PlexAPI/Models/Errors/GetUserDetailsErrors.cs @@ -0,0 +1,27 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Errors +{ + using Newtonsoft.Json; + using PlexAPI.Utils; + + public class GetUserDetailsErrors + { + + [JsonProperty("code")] + public double? Code { get; set; } + + [JsonProperty("message")] + public string? Message { get; set; } + + [JsonProperty("status")] + public double? Status { get; set; } + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Errors/GetUserDetailsResponseBody.cs b/PlexAPI/Models/Errors/GetUserDetailsResponseBody.cs new file mode 100644 index 0000000..8b428ee --- /dev/null +++ b/PlexAPI/Models/Errors/GetUserDetailsResponseBody.cs @@ -0,0 +1,34 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Errors +{ + using Newtonsoft.Json; + using PlexAPI.Models.Errors; + using PlexAPI.Utils; + using System.Collections.Generic; + using System.Net.Http; + using System; + + /// + /// Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + /// + public class GetUserDetailsResponseBody : Exception + { + + [JsonProperty("errors")] + public List? Errors { get; set; } + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + [JsonProperty("-")] + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Errors/GetUserFriendsErrors.cs b/PlexAPI/Models/Errors/GetUserFriendsErrors.cs new file mode 100644 index 0000000..103059b --- /dev/null +++ b/PlexAPI/Models/Errors/GetUserFriendsErrors.cs @@ -0,0 +1,27 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Errors +{ + using Newtonsoft.Json; + using PlexAPI.Utils; + + public class GetUserFriendsErrors + { + + [JsonProperty("code")] + public double? Code { get; set; } + + [JsonProperty("message")] + public string? Message { get; set; } + + [JsonProperty("status")] + public double? Status { get; set; } + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Errors/GetUserFriendsResponseBody.cs b/PlexAPI/Models/Errors/GetUserFriendsResponseBody.cs new file mode 100644 index 0000000..97f0baa --- /dev/null +++ b/PlexAPI/Models/Errors/GetUserFriendsResponseBody.cs @@ -0,0 +1,34 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Errors +{ + using Newtonsoft.Json; + using PlexAPI.Models.Errors; + using PlexAPI.Utils; + using System.Collections.Generic; + using System.Net.Http; + using System; + + /// + /// Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + /// + public class GetUserFriendsResponseBody : Exception + { + + [JsonProperty("errors")] + public List? Errors { get; set; } + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + [JsonProperty("-")] + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Errors/GetWatchlistErrors.cs b/PlexAPI/Models/Errors/GetWatchlistErrors.cs index af09d26..464279a 100644 --- a/PlexAPI/Models/Errors/GetWatchlistErrors.cs +++ b/PlexAPI/Models/Errors/GetWatchlistErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/GetWatchlistResponseBody.cs b/PlexAPI/Models/Errors/GetWatchlistResponseBody.cs index feee313..0b4f609 100644 --- a/PlexAPI/Models/Errors/GetWatchlistResponseBody.cs +++ b/PlexAPI/Models/Errors/GetWatchlistResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/LogLineErrors.cs b/PlexAPI/Models/Errors/LogLineErrors.cs index f051291..cf6091a 100644 --- a/PlexAPI/Models/Errors/LogLineErrors.cs +++ b/PlexAPI/Models/Errors/LogLineErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/LogLineResponseBody.cs b/PlexAPI/Models/Errors/LogLineResponseBody.cs index 00ea33d..88681c9 100644 --- a/PlexAPI/Models/Errors/LogLineResponseBody.cs +++ b/PlexAPI/Models/Errors/LogLineResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/LogMultiLineErrors.cs b/PlexAPI/Models/Errors/LogMultiLineErrors.cs index 3304cd0..8856415 100644 --- a/PlexAPI/Models/Errors/LogMultiLineErrors.cs +++ b/PlexAPI/Models/Errors/LogMultiLineErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/LogMultiLineResponseBody.cs b/PlexAPI/Models/Errors/LogMultiLineResponseBody.cs index d785ae6..b433fed 100644 --- a/PlexAPI/Models/Errors/LogMultiLineResponseBody.cs +++ b/PlexAPI/Models/Errors/LogMultiLineResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/MarkPlayedErrors.cs b/PlexAPI/Models/Errors/MarkPlayedErrors.cs index a4f439f..f196587 100644 --- a/PlexAPI/Models/Errors/MarkPlayedErrors.cs +++ b/PlexAPI/Models/Errors/MarkPlayedErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/MarkPlayedResponseBody.cs b/PlexAPI/Models/Errors/MarkPlayedResponseBody.cs index 9375559..826382a 100644 --- a/PlexAPI/Models/Errors/MarkPlayedResponseBody.cs +++ b/PlexAPI/Models/Errors/MarkPlayedResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/MarkUnplayedErrors.cs b/PlexAPI/Models/Errors/MarkUnplayedErrors.cs index 03ce683..e1ed969 100644 --- a/PlexAPI/Models/Errors/MarkUnplayedErrors.cs +++ b/PlexAPI/Models/Errors/MarkUnplayedErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/MarkUnplayedResponseBody.cs b/PlexAPI/Models/Errors/MarkUnplayedResponseBody.cs index 9664dc0..958e298 100644 --- a/PlexAPI/Models/Errors/MarkUnplayedResponseBody.cs +++ b/PlexAPI/Models/Errors/MarkUnplayedResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/PerformSearchErrors.cs b/PlexAPI/Models/Errors/PerformSearchErrors.cs index 4e57cb5..38d608f 100644 --- a/PlexAPI/Models/Errors/PerformSearchErrors.cs +++ b/PlexAPI/Models/Errors/PerformSearchErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/PerformSearchResponseBody.cs b/PlexAPI/Models/Errors/PerformSearchResponseBody.cs index ea5e407..9cbb595 100644 --- a/PlexAPI/Models/Errors/PerformSearchResponseBody.cs +++ b/PlexAPI/Models/Errors/PerformSearchResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/PerformVoiceSearchErrors.cs b/PlexAPI/Models/Errors/PerformVoiceSearchErrors.cs index 4974eda..8d0aa76 100644 --- a/PlexAPI/Models/Errors/PerformVoiceSearchErrors.cs +++ b/PlexAPI/Models/Errors/PerformVoiceSearchErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/PerformVoiceSearchResponseBody.cs b/PlexAPI/Models/Errors/PerformVoiceSearchResponseBody.cs index 8c0dbba..5393946 100644 --- a/PlexAPI/Models/Errors/PerformVoiceSearchResponseBody.cs +++ b/PlexAPI/Models/Errors/PerformVoiceSearchResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/PostUsersSigninDataErrors.cs b/PlexAPI/Models/Errors/PostUsersSigninDataErrors.cs new file mode 100644 index 0000000..6032460 --- /dev/null +++ b/PlexAPI/Models/Errors/PostUsersSigninDataErrors.cs @@ -0,0 +1,27 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Errors +{ + using Newtonsoft.Json; + using PlexAPI.Utils; + + public class PostUsersSigninDataErrors + { + + [JsonProperty("code")] + public double? Code { get; set; } + + [JsonProperty("message")] + public string? Message { get; set; } + + [JsonProperty("status")] + public double? Status { get; set; } + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Errors/PostUsersSigninDataResponseBody.cs b/PlexAPI/Models/Errors/PostUsersSigninDataResponseBody.cs new file mode 100644 index 0000000..026c435 --- /dev/null +++ b/PlexAPI/Models/Errors/PostUsersSigninDataResponseBody.cs @@ -0,0 +1,34 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Errors +{ + using Newtonsoft.Json; + using PlexAPI.Models.Errors; + using PlexAPI.Utils; + using System.Collections.Generic; + using System.Net.Http; + using System; + + /// + /// Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + /// + public class PostUsersSigninDataResponseBody : Exception + { + + [JsonProperty("errors")] + public List? Errors { get; set; } + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + [JsonProperty("-")] + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Errors/RefreshLibraryErrors.cs b/PlexAPI/Models/Errors/RefreshLibraryErrors.cs index 5436712..d459896 100644 --- a/PlexAPI/Models/Errors/RefreshLibraryErrors.cs +++ b/PlexAPI/Models/Errors/RefreshLibraryErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/RefreshLibraryResponseBody.cs b/PlexAPI/Models/Errors/RefreshLibraryResponseBody.cs index d9a4ca6..3e5f20e 100644 --- a/PlexAPI/Models/Errors/RefreshLibraryResponseBody.cs +++ b/PlexAPI/Models/Errors/RefreshLibraryResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/SDKException.cs b/PlexAPI/Models/Errors/SDKException.cs index 16bb2cb..76e8232 100644 --- a/PlexAPI/Models/Errors/SDKException.cs +++ b/PlexAPI/Models/Errors/SDKException.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/SearchLibraryErrors.cs b/PlexAPI/Models/Errors/SearchLibraryErrors.cs index 28c3d54..5174700 100644 --- a/PlexAPI/Models/Errors/SearchLibraryErrors.cs +++ b/PlexAPI/Models/Errors/SearchLibraryErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/SearchLibraryResponseBody.cs b/PlexAPI/Models/Errors/SearchLibraryResponseBody.cs index bc9f76a..e8dd47d 100644 --- a/PlexAPI/Models/Errors/SearchLibraryResponseBody.cs +++ b/PlexAPI/Models/Errors/SearchLibraryResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/StartAllTasksErrors.cs b/PlexAPI/Models/Errors/StartAllTasksErrors.cs index bd23043..ada3433 100644 --- a/PlexAPI/Models/Errors/StartAllTasksErrors.cs +++ b/PlexAPI/Models/Errors/StartAllTasksErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/StartAllTasksResponseBody.cs b/PlexAPI/Models/Errors/StartAllTasksResponseBody.cs index 831dfba..4a694a7 100644 --- a/PlexAPI/Models/Errors/StartAllTasksResponseBody.cs +++ b/PlexAPI/Models/Errors/StartAllTasksResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/StartTaskErrors.cs b/PlexAPI/Models/Errors/StartTaskErrors.cs index 6f106e4..3dc92b4 100644 --- a/PlexAPI/Models/Errors/StartTaskErrors.cs +++ b/PlexAPI/Models/Errors/StartTaskErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/StartTaskResponseBody.cs b/PlexAPI/Models/Errors/StartTaskResponseBody.cs index c264e97..1eb3efe 100644 --- a/PlexAPI/Models/Errors/StartTaskResponseBody.cs +++ b/PlexAPI/Models/Errors/StartTaskResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/StartUniversalTranscodeErrors.cs b/PlexAPI/Models/Errors/StartUniversalTranscodeErrors.cs index c8bfc20..e92b302 100644 --- a/PlexAPI/Models/Errors/StartUniversalTranscodeErrors.cs +++ b/PlexAPI/Models/Errors/StartUniversalTranscodeErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/StartUniversalTranscodeResponseBody.cs b/PlexAPI/Models/Errors/StartUniversalTranscodeResponseBody.cs index ded08fb..22bb324 100644 --- a/PlexAPI/Models/Errors/StartUniversalTranscodeResponseBody.cs +++ b/PlexAPI/Models/Errors/StartUniversalTranscodeResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/StopAllTasksErrors.cs b/PlexAPI/Models/Errors/StopAllTasksErrors.cs index fb09c65..1201b49 100644 --- a/PlexAPI/Models/Errors/StopAllTasksErrors.cs +++ b/PlexAPI/Models/Errors/StopAllTasksErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/StopAllTasksResponseBody.cs b/PlexAPI/Models/Errors/StopAllTasksResponseBody.cs index 7cfe93e..15304ef 100644 --- a/PlexAPI/Models/Errors/StopAllTasksResponseBody.cs +++ b/PlexAPI/Models/Errors/StopAllTasksResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/StopTaskErrors.cs b/PlexAPI/Models/Errors/StopTaskErrors.cs index 55ae720..7f47e68 100644 --- a/PlexAPI/Models/Errors/StopTaskErrors.cs +++ b/PlexAPI/Models/Errors/StopTaskErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/StopTaskResponseBody.cs b/PlexAPI/Models/Errors/StopTaskResponseBody.cs index 2d91b1b..17a27bd 100644 --- a/PlexAPI/Models/Errors/StopTaskResponseBody.cs +++ b/PlexAPI/Models/Errors/StopTaskResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/StopTranscodeSessionErrors.cs b/PlexAPI/Models/Errors/StopTranscodeSessionErrors.cs index 47c0c4a..a7f1c7f 100644 --- a/PlexAPI/Models/Errors/StopTranscodeSessionErrors.cs +++ b/PlexAPI/Models/Errors/StopTranscodeSessionErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/StopTranscodeSessionResponseBody.cs b/PlexAPI/Models/Errors/StopTranscodeSessionResponseBody.cs index 6bd4a53..2fc2d6b 100644 --- a/PlexAPI/Models/Errors/StopTranscodeSessionResponseBody.cs +++ b/PlexAPI/Models/Errors/StopTranscodeSessionResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/UpdatePlayProgressErrors.cs b/PlexAPI/Models/Errors/UpdatePlayProgressErrors.cs index 7fe6d5d..ec86e9d 100644 --- a/PlexAPI/Models/Errors/UpdatePlayProgressErrors.cs +++ b/PlexAPI/Models/Errors/UpdatePlayProgressErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/UpdatePlayProgressResponseBody.cs b/PlexAPI/Models/Errors/UpdatePlayProgressResponseBody.cs index 8a50cdb..1a0b6fc 100644 --- a/PlexAPI/Models/Errors/UpdatePlayProgressResponseBody.cs +++ b/PlexAPI/Models/Errors/UpdatePlayProgressResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/UpdatePlaylistErrors.cs b/PlexAPI/Models/Errors/UpdatePlaylistErrors.cs index 4b36ee0..702d9f9 100644 --- a/PlexAPI/Models/Errors/UpdatePlaylistErrors.cs +++ b/PlexAPI/Models/Errors/UpdatePlaylistErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/UpdatePlaylistResponseBody.cs b/PlexAPI/Models/Errors/UpdatePlaylistResponseBody.cs index 5e5a98f..c35d6a8 100644 --- a/PlexAPI/Models/Errors/UpdatePlaylistResponseBody.cs +++ b/PlexAPI/Models/Errors/UpdatePlaylistResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/UploadPlaylistErrors.cs b/PlexAPI/Models/Errors/UploadPlaylistErrors.cs index 0171a46..b042b78 100644 --- a/PlexAPI/Models/Errors/UploadPlaylistErrors.cs +++ b/PlexAPI/Models/Errors/UploadPlaylistErrors.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Errors/UploadPlaylistResponseBody.cs b/PlexAPI/Models/Errors/UploadPlaylistResponseBody.cs index 05c0c95..f46eaaa 100644 --- a/PlexAPI/Models/Errors/UploadPlaylistResponseBody.cs +++ b/PlexAPI/Models/Errors/UploadPlaylistResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/Account.cs b/PlexAPI/Models/Requests/Account.cs index 22c30a2..f09688f 100644 --- a/PlexAPI/Models/Requests/Account.cs +++ b/PlexAPI/Models/Requests/Account.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/Activity.cs b/PlexAPI/Models/Requests/Activity.cs index fec25f2..e545977 100644 --- a/PlexAPI/Models/Requests/Activity.cs +++ b/PlexAPI/Models/Requests/Activity.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/AddPlaylistContentsMediaContainer.cs b/PlexAPI/Models/Requests/AddPlaylistContentsMediaContainer.cs index f846c52..dbcb88f 100644 --- a/PlexAPI/Models/Requests/AddPlaylistContentsMediaContainer.cs +++ b/PlexAPI/Models/Requests/AddPlaylistContentsMediaContainer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/AddPlaylistContentsMetadata.cs b/PlexAPI/Models/Requests/AddPlaylistContentsMetadata.cs index 3997043..e6a71d7 100644 --- a/PlexAPI/Models/Requests/AddPlaylistContentsMetadata.cs +++ b/PlexAPI/Models/Requests/AddPlaylistContentsMetadata.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/AddPlaylistContentsRequest.cs b/PlexAPI/Models/Requests/AddPlaylistContentsRequest.cs index fa103a0..70cf43d 100644 --- a/PlexAPI/Models/Requests/AddPlaylistContentsRequest.cs +++ b/PlexAPI/Models/Requests/AddPlaylistContentsRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/AddPlaylistContentsResponse.cs b/PlexAPI/Models/Requests/AddPlaylistContentsResponse.cs index 6ea2aed..5e1a8ca 100644 --- a/PlexAPI/Models/Requests/AddPlaylistContentsResponse.cs +++ b/PlexAPI/Models/Requests/AddPlaylistContentsResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/AddPlaylistContentsResponseBody.cs b/PlexAPI/Models/Requests/AddPlaylistContentsResponseBody.cs index d142def..e172b55 100644 --- a/PlexAPI/Models/Requests/AddPlaylistContentsResponseBody.cs +++ b/PlexAPI/Models/Requests/AddPlaylistContentsResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/ApplyUpdatesRequest.cs b/PlexAPI/Models/Requests/ApplyUpdatesRequest.cs index 1e597ff..ec54b54 100644 --- a/PlexAPI/Models/Requests/ApplyUpdatesRequest.cs +++ b/PlexAPI/Models/Requests/ApplyUpdatesRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/ApplyUpdatesResponse.cs b/PlexAPI/Models/Requests/ApplyUpdatesResponse.cs index c45fd36..d7ea8db 100644 --- a/PlexAPI/Models/Requests/ApplyUpdatesResponse.cs +++ b/PlexAPI/Models/Requests/ApplyUpdatesResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/Billing.cs b/PlexAPI/Models/Requests/Billing.cs new file mode 100644 index 0000000..b7b0323 --- /dev/null +++ b/PlexAPI/Models/Requests/Billing.cs @@ -0,0 +1,25 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using PlexAPI.Models.Requests; + using PlexAPI.Utils; + + public class Billing + { + + [JsonProperty("internalPaymentMethod")] + public InternalPaymentMethod InternalPaymentMethod { get; set; } = default!; + + [JsonProperty("paymentMethodId", NullValueHandling = NullValueHandling.Include)] + public long? PaymentMethodId { get; set; } + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/ButlerTask.cs b/PlexAPI/Models/Requests/ButlerTask.cs index 7208031..3128770 100644 --- a/PlexAPI/Models/Requests/ButlerTask.cs +++ b/PlexAPI/Models/Requests/ButlerTask.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/ButlerTasks.cs b/PlexAPI/Models/Requests/ButlerTasks.cs index e6f797a..a5f8bbd 100644 --- a/PlexAPI/Models/Requests/ButlerTasks.cs +++ b/PlexAPI/Models/Requests/ButlerTasks.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/CancelServerActivitiesRequest.cs b/PlexAPI/Models/Requests/CancelServerActivitiesRequest.cs index 0c4d7e9..abfcb89 100644 --- a/PlexAPI/Models/Requests/CancelServerActivitiesRequest.cs +++ b/PlexAPI/Models/Requests/CancelServerActivitiesRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/CancelServerActivitiesResponse.cs b/PlexAPI/Models/Requests/CancelServerActivitiesResponse.cs index c89238a..660b997 100644 --- a/PlexAPI/Models/Requests/CancelServerActivitiesResponse.cs +++ b/PlexAPI/Models/Requests/CancelServerActivitiesResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/CheckForUpdatesRequest.cs b/PlexAPI/Models/Requests/CheckForUpdatesRequest.cs index da6e020..22ea4a7 100644 --- a/PlexAPI/Models/Requests/CheckForUpdatesRequest.cs +++ b/PlexAPI/Models/Requests/CheckForUpdatesRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/CheckForUpdatesResponse.cs b/PlexAPI/Models/Requests/CheckForUpdatesResponse.cs index 95bd139..acdd21d 100644 --- a/PlexAPI/Models/Requests/CheckForUpdatesResponse.cs +++ b/PlexAPI/Models/Requests/CheckForUpdatesResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/ClearPlaylistContentsRequest.cs b/PlexAPI/Models/Requests/ClearPlaylistContentsRequest.cs index 66965e2..78d0068 100644 --- a/PlexAPI/Models/Requests/ClearPlaylistContentsRequest.cs +++ b/PlexAPI/Models/Requests/ClearPlaylistContentsRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/ClearPlaylistContentsResponse.cs b/PlexAPI/Models/Requests/ClearPlaylistContentsResponse.cs index cd6d7e9..1388423 100644 --- a/PlexAPI/Models/Requests/ClearPlaylistContentsResponse.cs +++ b/PlexAPI/Models/Requests/ClearPlaylistContentsResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/Connections.cs b/PlexAPI/Models/Requests/Connections.cs new file mode 100644 index 0000000..dbbb651 --- /dev/null +++ b/PlexAPI/Models/Requests/Connections.cs @@ -0,0 +1,39 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using PlexAPI.Utils; + + public class Connections + { + + [JsonProperty("protocol")] + public string? Protocol { get; set; } + + [JsonProperty("address")] + public string? Address { get; set; } + + [JsonProperty("port")] + public double? Port { get; set; } + + [JsonProperty("uri")] + public string? Uri { get; set; } + + [JsonProperty("local")] + public bool? Local { get; set; } + + [JsonProperty("relay")] + public bool? Relay { get; set; } + + [JsonProperty("IPv6")] + public bool? IPv6 { get; set; } + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/Context.cs b/PlexAPI/Models/Requests/Context.cs index bf849dc..1cf1ffb 100644 --- a/PlexAPI/Models/Requests/Context.cs +++ b/PlexAPI/Models/Requests/Context.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/Country.cs b/PlexAPI/Models/Requests/Country.cs index 86b6d21..672a02f 100644 --- a/PlexAPI/Models/Requests/Country.cs +++ b/PlexAPI/Models/Requests/Country.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/CreatePlaylistMediaContainer.cs b/PlexAPI/Models/Requests/CreatePlaylistMediaContainer.cs index cd30206..41fa0ad 100644 --- a/PlexAPI/Models/Requests/CreatePlaylistMediaContainer.cs +++ b/PlexAPI/Models/Requests/CreatePlaylistMediaContainer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/CreatePlaylistMetadata.cs b/PlexAPI/Models/Requests/CreatePlaylistMetadata.cs index 30e60b6..327ae7e 100644 --- a/PlexAPI/Models/Requests/CreatePlaylistMetadata.cs +++ b/PlexAPI/Models/Requests/CreatePlaylistMetadata.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/CreatePlaylistRequest.cs b/PlexAPI/Models/Requests/CreatePlaylistRequest.cs index 98a87d0..a36d1ea 100644 --- a/PlexAPI/Models/Requests/CreatePlaylistRequest.cs +++ b/PlexAPI/Models/Requests/CreatePlaylistRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/CreatePlaylistResponse.cs b/PlexAPI/Models/Requests/CreatePlaylistResponse.cs index b13cb15..428b535 100644 --- a/PlexAPI/Models/Requests/CreatePlaylistResponse.cs +++ b/PlexAPI/Models/Requests/CreatePlaylistResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/CreatePlaylistResponseBody.cs b/PlexAPI/Models/Requests/CreatePlaylistResponseBody.cs index 76b3c63..4504029 100644 --- a/PlexAPI/Models/Requests/CreatePlaylistResponseBody.cs +++ b/PlexAPI/Models/Requests/CreatePlaylistResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/DeleteLibraryRequest.cs b/PlexAPI/Models/Requests/DeleteLibraryRequest.cs index ce789ad..ae30429 100644 --- a/PlexAPI/Models/Requests/DeleteLibraryRequest.cs +++ b/PlexAPI/Models/Requests/DeleteLibraryRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/DeleteLibraryResponse.cs b/PlexAPI/Models/Requests/DeleteLibraryResponse.cs index 4527bca..41f5b37 100644 --- a/PlexAPI/Models/Requests/DeleteLibraryResponse.cs +++ b/PlexAPI/Models/Requests/DeleteLibraryResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/DeletePlaylistRequest.cs b/PlexAPI/Models/Requests/DeletePlaylistRequest.cs index 406deaf..7c2b55a 100644 --- a/PlexAPI/Models/Requests/DeletePlaylistRequest.cs +++ b/PlexAPI/Models/Requests/DeletePlaylistRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/DeletePlaylistResponse.cs b/PlexAPI/Models/Requests/DeletePlaylistResponse.cs index 921b03d..c78bd0a 100644 --- a/PlexAPI/Models/Requests/DeletePlaylistResponse.cs +++ b/PlexAPI/Models/Requests/DeletePlaylistResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/Device.cs b/PlexAPI/Models/Requests/Device.cs index 2b8ea00..d3dcd2b 100644 --- a/PlexAPI/Models/Requests/Device.cs +++ b/PlexAPI/Models/Requests/Device.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/Director.cs b/PlexAPI/Models/Requests/Director.cs index 4c91f58..bde1693 100644 --- a/PlexAPI/Models/Requests/Director.cs +++ b/PlexAPI/Models/Requests/Director.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/Directory.cs b/PlexAPI/Models/Requests/Directory.cs index d788974..979bb84 100644 --- a/PlexAPI/Models/Requests/Directory.cs +++ b/PlexAPI/Models/Requests/Directory.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/Download.cs b/PlexAPI/Models/Requests/Download.cs index 474010c..cdf2217 100644 --- a/PlexAPI/Models/Requests/Download.cs +++ b/PlexAPI/Models/Requests/Download.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/EnablePaperTrailResponse.cs b/PlexAPI/Models/Requests/EnablePaperTrailResponse.cs index 173557d..6a2b6ae 100644 --- a/PlexAPI/Models/Requests/EnablePaperTrailResponse.cs +++ b/PlexAPI/Models/Requests/EnablePaperTrailResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/Features.cs b/PlexAPI/Models/Requests/Features.cs new file mode 100644 index 0000000..4355487 --- /dev/null +++ b/PlexAPI/Models/Requests/Features.cs @@ -0,0 +1,171 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using PlexAPI.Utils; + using System; + + public enum Features + { + [JsonProperty("Android - Dolby Vision")] + AndroidDolbyVision, + [JsonProperty("Android - PiP")] + AndroidPiP, + [JsonProperty("CU Sunset")] + CUSunset, + [JsonProperty("HRK_enable_EUR")] + HRKEnableEUR, + [JsonProperty("TREBLE-show-features")] + TREBLEShowFeatures, + [JsonProperty("ad-countdown-timer")] + AdCountdownTimer, + [JsonProperty("adaptive_bitrate")] + AdaptiveBitrate, + [JsonProperty("amazon-loop-debug")] + AmazonLoopDebug, + [JsonProperty("avod-ad-analysis")] + AvodAdAnalysis, + [JsonProperty("avod-new-media")] + AvodNewMedia, + [JsonProperty("blacklist_get_signin")] + BlacklistGetSignin, + [JsonProperty("client-radio-stations")] + ClientRadioStations, + [JsonProperty("cloudflare-turnstile-required")] + CloudflareTurnstileRequired, + [JsonProperty("collections")] + Collections, + [JsonProperty("comments_and_replies_push_notifications")] + CommentsAndRepliesPushNotifications, + [JsonProperty("community_access_plex_tv")] + CommunityAccessPlexTv, + [JsonProperty("companions_sonos")] + CompanionsSonos, + [JsonProperty("custom-home-removal")] + CustomHomeRemoval, + [JsonProperty("disable_home_user_friendships")] + DisableHomeUserFriendships, + [JsonProperty("disable_sharing_friendships")] + DisableSharingFriendships, + [JsonProperty("drm_support")] + DrmSupport, + [JsonProperty("exclude restrictions")] + ExcludeRestrictions, + [JsonProperty("federated-auth")] + FederatedAuth, + [JsonProperty("friend_request_push_notifications")] + FriendRequestPushNotifications, + [JsonProperty("guided-upgrade")] + GuidedUpgrade, + [JsonProperty("home")] + Home, + [JsonProperty("increase-password-complexity")] + IncreasePasswordComplexity, + [JsonProperty("ios14-privacy-banner")] + Ios14PrivacyBanner, + [JsonProperty("iterable-notification-tokens")] + IterableNotificationTokens, + [JsonProperty("keep-payment-method")] + KeepPaymentMethod, + [JsonProperty("kevin-bacon")] + KevinBacon, + [JsonProperty("korea-consent")] + KoreaConsent, + [JsonProperty("le_isrg_root_x1")] + LeIsrgRootX1, + [JsonProperty("lets_encrypt")] + LetsEncrypt, + [JsonProperty("lightning-dvr-pivot")] + LightningDvrPivot, + [JsonProperty("live-tv-support-incomplete-segments")] + LiveTvSupportIncompleteSegments, + [JsonProperty("livetv")] + Livetv, + [JsonProperty("metadata_search")] + MetadataSearch, + [JsonProperty("new_plex_pass_prices")] + NewPlexPassPrices, + [JsonProperty("news-provider-sunset-modal")] + NewsProviderSunsetModal, + [JsonProperty("photos-favorites")] + PhotosFavorites, + [JsonProperty("photos-metadata-edition")] + PhotosMetadataEdition, + [JsonProperty("pms_health")] + PmsHealth, + [JsonProperty("radio")] + Radio, + [JsonProperty("rate-limit-client-token")] + RateLimitClientToken, + [JsonProperty("scrobbling-service-plex-tv")] + ScrobblingServicePlexTv, + [JsonProperty("shared_server_notification")] + SharedServerNotification, + [JsonProperty("shared_source_notification")] + SharedSourceNotification, + [JsonProperty("signin_with_apple")] + SigninWithApple, + [JsonProperty("spring_serve_ad_provider")] + SpringServeAdProvider, + [JsonProperty("transcoder_cache")] + TranscoderCache, + [JsonProperty("tuner-sharing")] + TunerSharing, + [JsonProperty("two-factor-authentication")] + TwoFactorAuthentication, + [JsonProperty("unsupportedtuners")] + Unsupportedtuners, + [JsonProperty("upgrade-3ds2")] + Upgrade3ds2, + [JsonProperty("vod-schema")] + VodSchema, + [JsonProperty("vod_cloudflare")] + VodCloudflare, + [JsonProperty("watch-together-invite")] + WatchTogetherInvite, + [JsonProperty("web_server_dashboard")] + WebServerDashboard, + } + + public static class FeaturesExtension + { + public static string Value(this Features value) + { + return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); + } + + public static Features ToEnum(this string value) + { + foreach(var field in typeof(Features).GetFields()) + { + var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); + if (attributes.Length == 0) + { + continue; + } + + var attribute = attributes[0] as JsonPropertyAttribute; + if (attribute != null && attribute.PropertyName == value) + { + var enumVal = field.GetValue(null); + + if (enumVal is Features) + { + return (Features)enumVal; + } + } + } + + throw new Exception($"Unknown value {value} for enum Features"); + } + } + +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/Field.cs b/PlexAPI/Models/Requests/Field.cs index aafec31..28f57ed 100644 --- a/PlexAPI/Models/Requests/Field.cs +++ b/PlexAPI/Models/Requests/Field.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/FieldType.cs b/PlexAPI/Models/Requests/FieldType.cs index deb8dfe..ea12f4a 100644 --- a/PlexAPI/Models/Requests/FieldType.cs +++ b/PlexAPI/Models/Requests/FieldType.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/Filter.cs b/PlexAPI/Models/Requests/Filter.cs index e3c3cd8..858b132 100644 --- a/PlexAPI/Models/Requests/Filter.cs +++ b/PlexAPI/Models/Requests/Filter.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/Force.cs b/PlexAPI/Models/Requests/Force.cs index b121ed0..50c4bd2 100644 --- a/PlexAPI/Models/Requests/Force.cs +++ b/PlexAPI/Models/Requests/Force.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/Friend.cs b/PlexAPI/Models/Requests/Friend.cs new file mode 100644 index 0000000..a1b6cbf --- /dev/null +++ b/PlexAPI/Models/Requests/Friend.cs @@ -0,0 +1,86 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using PlexAPI.Models.Requests; + using PlexAPI.Utils; + using System.Collections.Generic; + + public class Friend + { + + /// + /// The account email address + /// + [JsonProperty("email")] + public string Email { get; set; } = default!; + + /// + /// The account full name + /// + [JsonProperty("friendlyName", NullValueHandling = NullValueHandling.Include)] + public string? FriendlyName { get; set; } + + /// + /// If the account is a Plex Home user + /// + [JsonProperty("home")] + public bool Home { get; set; } = default!; + + /// + /// The Plex account ID + /// + [JsonProperty("id")] + public int Id { get; set; } = default!; + + /// + /// If the account is a Plex Home managed user + /// + [JsonProperty("restricted")] + public bool? Restricted { get; set; } = false; + + [JsonProperty("sharedServers")] + public List SharedServers { get; set; } = default!; + + [JsonProperty("sharedSources")] + public List SharedSources { get; set; } = default!; + + /// + /// Current friend request status + /// + [JsonProperty("status")] + public Status Status { get; set; } = default!; + + /// + /// URL of the account thumbnail + /// + [JsonProperty("thumb")] + public string Thumb { get; set; } = default!; + + /// + /// The title of the account (username or friendly name) + /// + [JsonProperty("title")] + public string Title { get; set; } = default!; + + /// + /// The account username + /// + [JsonProperty("username")] + public string Username { get; set; } = default!; + + /// + /// The account Universally Unique Identifier (UUID) + /// + [JsonProperty("uuid")] + public string Uuid { get; set; } = default!; + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/Genre.cs b/PlexAPI/Models/Requests/Genre.cs index 7c63836..5ee5f41 100644 --- a/PlexAPI/Models/Requests/Genre.cs +++ b/PlexAPI/Models/Requests/Genre.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GeoData.cs b/PlexAPI/Models/Requests/GeoData.cs new file mode 100644 index 0000000..ea76fad --- /dev/null +++ b/PlexAPI/Models/Requests/GeoData.cs @@ -0,0 +1,87 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using PlexAPI.Utils; + + /// + /// Geo location data + /// + public class GeoData + { + + /// + /// The ISO 3166-1 alpha-2 code of the country. + /// + [JsonProperty("code")] + public string Code { get; set; } = default!; + + /// + /// The continent code where the country is located. + /// + [JsonProperty("continent_code")] + public string ContinentCode { get; set; } = default!; + + /// + /// The official name of the country. + /// + [JsonProperty("country")] + public string Country { get; set; } = default!; + + /// + /// The name of the city. + /// + [JsonProperty("city")] + public string City { get; set; } = default!; + + /// + /// Indicates if the country is a member of the European Union. + /// + [JsonProperty("european_union_member")] + public bool? EuropeanUnionMember { get; set; } = false; + + /// + /// The time zone of the country. + /// + [JsonProperty("time_zone")] + public string TimeZone { get; set; } = default!; + + /// + /// The postal code of the location. + /// + [JsonProperty("postal_code")] + public long PostalCode { get; set; } = default!; + + /// + /// Indicates if the country has privacy restrictions. + /// + [JsonProperty("in_privacy_restricted_country")] + public bool? InPrivacyRestrictedCountry { get; set; } = false; + + /// + /// Indicates if the region has privacy restrictions. + /// + [JsonProperty("in_privacy_restricted_region")] + public bool? InPrivacyRestrictedRegion { get; set; } = false; + + /// + /// The name of the primary administrative subdivision. + /// + [JsonProperty("subdivisions")] + public string Subdivisions { get; set; } = default!; + + /// + /// The geographical coordinates (latitude, longitude) of the location. + /// + [JsonProperty("coordinates")] + public string Coordinates { get; set; } = default!; + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/GetAvailableClientsMediaContainer.cs b/PlexAPI/Models/Requests/GetAvailableClientsMediaContainer.cs index 83656dd..f29592a 100644 --- a/PlexAPI/Models/Requests/GetAvailableClientsMediaContainer.cs +++ b/PlexAPI/Models/Requests/GetAvailableClientsMediaContainer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetAvailableClientsResponse.cs b/PlexAPI/Models/Requests/GetAvailableClientsResponse.cs index a1d121b..941193b 100644 --- a/PlexAPI/Models/Requests/GetAvailableClientsResponse.cs +++ b/PlexAPI/Models/Requests/GetAvailableClientsResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetAvailableClientsResponseBody.cs b/PlexAPI/Models/Requests/GetAvailableClientsResponseBody.cs index 05e8795..ae84588 100644 --- a/PlexAPI/Models/Requests/GetAvailableClientsResponseBody.cs +++ b/PlexAPI/Models/Requests/GetAvailableClientsResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetBandwidthStatisticsAccount.cs b/PlexAPI/Models/Requests/GetBandwidthStatisticsAccount.cs index f1aa950..ae9a454 100644 --- a/PlexAPI/Models/Requests/GetBandwidthStatisticsAccount.cs +++ b/PlexAPI/Models/Requests/GetBandwidthStatisticsAccount.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetBandwidthStatisticsDevice.cs b/PlexAPI/Models/Requests/GetBandwidthStatisticsDevice.cs index f66cd7f..9801531 100644 --- a/PlexAPI/Models/Requests/GetBandwidthStatisticsDevice.cs +++ b/PlexAPI/Models/Requests/GetBandwidthStatisticsDevice.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetBandwidthStatisticsMediaContainer.cs b/PlexAPI/Models/Requests/GetBandwidthStatisticsMediaContainer.cs index 886371c..ba9c650 100644 --- a/PlexAPI/Models/Requests/GetBandwidthStatisticsMediaContainer.cs +++ b/PlexAPI/Models/Requests/GetBandwidthStatisticsMediaContainer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetBandwidthStatisticsRequest.cs b/PlexAPI/Models/Requests/GetBandwidthStatisticsRequest.cs index 4096746..396c479 100644 --- a/PlexAPI/Models/Requests/GetBandwidthStatisticsRequest.cs +++ b/PlexAPI/Models/Requests/GetBandwidthStatisticsRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetBandwidthStatisticsResponse.cs b/PlexAPI/Models/Requests/GetBandwidthStatisticsResponse.cs index ed01cdf..09911a8 100644 --- a/PlexAPI/Models/Requests/GetBandwidthStatisticsResponse.cs +++ b/PlexAPI/Models/Requests/GetBandwidthStatisticsResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetBandwidthStatisticsResponseBody.cs b/PlexAPI/Models/Requests/GetBandwidthStatisticsResponseBody.cs index 6e177d4..b4263b5 100644 --- a/PlexAPI/Models/Requests/GetBandwidthStatisticsResponseBody.cs +++ b/PlexAPI/Models/Requests/GetBandwidthStatisticsResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetButlerTasksResponse.cs b/PlexAPI/Models/Requests/GetButlerTasksResponse.cs index 2fb08e3..d1da4c8 100644 --- a/PlexAPI/Models/Requests/GetButlerTasksResponse.cs +++ b/PlexAPI/Models/Requests/GetButlerTasksResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetButlerTasksResponseBody.cs b/PlexAPI/Models/Requests/GetButlerTasksResponseBody.cs index 604cf92..fa1f976 100644 --- a/PlexAPI/Models/Requests/GetButlerTasksResponseBody.cs +++ b/PlexAPI/Models/Requests/GetButlerTasksResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetCompanionsDataResponse.cs b/PlexAPI/Models/Requests/GetCompanionsDataResponse.cs new file mode 100644 index 0000000..83eab55 --- /dev/null +++ b/PlexAPI/Models/Requests/GetCompanionsDataResponse.cs @@ -0,0 +1,41 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using PlexAPI.Models.Requests; + using PlexAPI.Utils; + using System.Collections.Generic; + using System.Net.Http; + using System; + + public class GetCompanionsDataResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage RawResponse { get; set; } = default!; + + /// + /// Companions Data + /// + public List? ResponseBodies { get; set; } + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/GetDevicesMediaContainer.cs b/PlexAPI/Models/Requests/GetDevicesMediaContainer.cs index bac73c2..b1a8354 100644 --- a/PlexAPI/Models/Requests/GetDevicesMediaContainer.cs +++ b/PlexAPI/Models/Requests/GetDevicesMediaContainer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetDevicesResponse.cs b/PlexAPI/Models/Requests/GetDevicesResponse.cs index 6ecba98..ebec7b7 100644 --- a/PlexAPI/Models/Requests/GetDevicesResponse.cs +++ b/PlexAPI/Models/Requests/GetDevicesResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetDevicesResponseBody.cs b/PlexAPI/Models/Requests/GetDevicesResponseBody.cs index ca92cba..82ed2ad 100644 --- a/PlexAPI/Models/Requests/GetDevicesResponseBody.cs +++ b/PlexAPI/Models/Requests/GetDevicesResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetFileHashRequest.cs b/PlexAPI/Models/Requests/GetFileHashRequest.cs index 49eed86..9c03d80 100644 --- a/PlexAPI/Models/Requests/GetFileHashRequest.cs +++ b/PlexAPI/Models/Requests/GetFileHashRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetFileHashResponse.cs b/PlexAPI/Models/Requests/GetFileHashResponse.cs index 842a7c6..bdd7123 100644 --- a/PlexAPI/Models/Requests/GetFileHashResponse.cs +++ b/PlexAPI/Models/Requests/GetFileHashResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetGeoDataGeoData.cs b/PlexAPI/Models/Requests/GetGeoDataGeoData.cs new file mode 100644 index 0000000..a17ad22 --- /dev/null +++ b/PlexAPI/Models/Requests/GetGeoDataGeoData.cs @@ -0,0 +1,87 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using PlexAPI.Utils; + + /// + /// Geo location data + /// + public class GetGeoDataGeoData + { + + /// + /// The ISO 3166-1 alpha-2 code of the country. + /// + [JsonProperty("code")] + public string Code { get; set; } = default!; + + /// + /// The continent code where the country is located. + /// + [JsonProperty("continent_code")] + public string ContinentCode { get; set; } = default!; + + /// + /// The official name of the country. + /// + [JsonProperty("country")] + public string Country { get; set; } = default!; + + /// + /// The name of the city. + /// + [JsonProperty("city")] + public string City { get; set; } = default!; + + /// + /// Indicates if the country is a member of the European Union. + /// + [JsonProperty("european_union_member")] + public bool? EuropeanUnionMember { get; set; } = false; + + /// + /// The time zone of the country. + /// + [JsonProperty("time_zone")] + public string TimeZone { get; set; } = default!; + + /// + /// The postal code of the location. + /// + [JsonProperty("postal_code")] + public long PostalCode { get; set; } = default!; + + /// + /// Indicates if the country has privacy restrictions. + /// + [JsonProperty("in_privacy_restricted_country")] + public bool? InPrivacyRestrictedCountry { get; set; } = false; + + /// + /// Indicates if the region has privacy restrictions. + /// + [JsonProperty("in_privacy_restricted_region")] + public bool? InPrivacyRestrictedRegion { get; set; } = false; + + /// + /// The name of the primary administrative subdivision. + /// + [JsonProperty("subdivisions")] + public string Subdivisions { get; set; } = default!; + + /// + /// The geographical coordinates (latitude, longitude) of the location. + /// + [JsonProperty("coordinates")] + public string Coordinates { get; set; } = default!; + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/GetTokenResponse.cs b/PlexAPI/Models/Requests/GetGeoDataResponse.cs similarity index 82% rename from PlexAPI/Models/Requests/GetTokenResponse.cs rename to PlexAPI/Models/Requests/GetGeoDataResponse.cs index cb28ee5..99ae342 100644 --- a/PlexAPI/Models/Requests/GetTokenResponse.cs +++ b/PlexAPI/Models/Requests/GetGeoDataResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -14,7 +14,7 @@ namespace PlexAPI.Models.Requests using System.Net.Http; using System; - public class GetTokenResponse + public class GetGeoDataResponse { /// @@ -33,8 +33,8 @@ namespace PlexAPI.Models.Requests public HttpResponseMessage RawResponse { get; set; } = default!; /// - /// Access Token + /// Gets the geo location data of the user /// - public Models.Requests.GetTokenResponseBody? Object { get; set; } + public GetGeoDataGeoData? GeoData { get; set; } } } \ No newline at end of file diff --git a/PlexAPI/Models/Requests/GetGlobalHubsMediaContainer.cs b/PlexAPI/Models/Requests/GetGlobalHubsMediaContainer.cs index ffcbc35..45cebca 100644 --- a/PlexAPI/Models/Requests/GetGlobalHubsMediaContainer.cs +++ b/PlexAPI/Models/Requests/GetGlobalHubsMediaContainer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetGlobalHubsMetadata.cs b/PlexAPI/Models/Requests/GetGlobalHubsMetadata.cs index 7c991c7..839c122 100644 --- a/PlexAPI/Models/Requests/GetGlobalHubsMetadata.cs +++ b/PlexAPI/Models/Requests/GetGlobalHubsMetadata.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetGlobalHubsRequest.cs b/PlexAPI/Models/Requests/GetGlobalHubsRequest.cs index 32d46a1..55a8480 100644 --- a/PlexAPI/Models/Requests/GetGlobalHubsRequest.cs +++ b/PlexAPI/Models/Requests/GetGlobalHubsRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetGlobalHubsResponse.cs b/PlexAPI/Models/Requests/GetGlobalHubsResponse.cs index 9dddeff..0a8645b 100644 --- a/PlexAPI/Models/Requests/GetGlobalHubsResponse.cs +++ b/PlexAPI/Models/Requests/GetGlobalHubsResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetGlobalHubsResponseBody.cs b/PlexAPI/Models/Requests/GetGlobalHubsResponseBody.cs index 2ffc723..8595449 100644 --- a/PlexAPI/Models/Requests/GetGlobalHubsResponseBody.cs +++ b/PlexAPI/Models/Requests/GetGlobalHubsResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetHomeDataResponse.cs b/PlexAPI/Models/Requests/GetHomeDataResponse.cs index 8255038..d025fce 100644 --- a/PlexAPI/Models/Requests/GetHomeDataResponse.cs +++ b/PlexAPI/Models/Requests/GetHomeDataResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetHomeDataResponseBody.cs b/PlexAPI/Models/Requests/GetHomeDataResponseBody.cs index 93cf314..29fd9ad 100644 --- a/PlexAPI/Models/Requests/GetHomeDataResponseBody.cs +++ b/PlexAPI/Models/Requests/GetHomeDataResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetLibrariesDirectory.cs b/PlexAPI/Models/Requests/GetLibrariesDirectory.cs index d10b2fd..d6c956c 100644 --- a/PlexAPI/Models/Requests/GetLibrariesDirectory.cs +++ b/PlexAPI/Models/Requests/GetLibrariesDirectory.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -78,6 +78,6 @@ namespace PlexAPI.Models.Requests public int? Hidden { get; set; } [JsonProperty("Location")] - public List? Location { get; set; } + public List? Location { get; set; } } } \ No newline at end of file diff --git a/PlexAPI/Models/Requests/GetLibrariesMediaContainer.cs b/PlexAPI/Models/Requests/GetLibrariesMediaContainer.cs index 6cf7f17..090806c 100644 --- a/PlexAPI/Models/Requests/GetLibrariesMediaContainer.cs +++ b/PlexAPI/Models/Requests/GetLibrariesMediaContainer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetLibrariesResponse.cs b/PlexAPI/Models/Requests/GetLibrariesResponse.cs index 6a25672..bd8b984 100644 --- a/PlexAPI/Models/Requests/GetLibrariesResponse.cs +++ b/PlexAPI/Models/Requests/GetLibrariesResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetLibrariesResponseBody.cs b/PlexAPI/Models/Requests/GetLibrariesResponseBody.cs index 6b8a9b7..3448220 100644 --- a/PlexAPI/Models/Requests/GetLibrariesResponseBody.cs +++ b/PlexAPI/Models/Requests/GetLibrariesResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetLibraryDirectory.cs b/PlexAPI/Models/Requests/GetLibraryDirectory.cs index 3ab3483..64ad4ac 100644 --- a/PlexAPI/Models/Requests/GetLibraryDirectory.cs +++ b/PlexAPI/Models/Requests/GetLibraryDirectory.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetLibraryFilter.cs b/PlexAPI/Models/Requests/GetLibraryFilter.cs index 8bbc7c9..b8a3e54 100644 --- a/PlexAPI/Models/Requests/GetLibraryFilter.cs +++ b/PlexAPI/Models/Requests/GetLibraryFilter.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetLibraryHubsCountry.cs b/PlexAPI/Models/Requests/GetLibraryHubsCountry.cs index 79fb358..9a3cff2 100644 --- a/PlexAPI/Models/Requests/GetLibraryHubsCountry.cs +++ b/PlexAPI/Models/Requests/GetLibraryHubsCountry.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetLibraryHubsDirector.cs b/PlexAPI/Models/Requests/GetLibraryHubsDirector.cs index d11cb55..f33693c 100644 --- a/PlexAPI/Models/Requests/GetLibraryHubsDirector.cs +++ b/PlexAPI/Models/Requests/GetLibraryHubsDirector.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetLibraryHubsGenre.cs b/PlexAPI/Models/Requests/GetLibraryHubsGenre.cs index a77386e..3fe16be 100644 --- a/PlexAPI/Models/Requests/GetLibraryHubsGenre.cs +++ b/PlexAPI/Models/Requests/GetLibraryHubsGenre.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetLibraryHubsHub.cs b/PlexAPI/Models/Requests/GetLibraryHubsHub.cs index 26c77c9..6419b0b 100644 --- a/PlexAPI/Models/Requests/GetLibraryHubsHub.cs +++ b/PlexAPI/Models/Requests/GetLibraryHubsHub.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetLibraryHubsMedia.cs b/PlexAPI/Models/Requests/GetLibraryHubsMedia.cs index e25c91c..b762b03 100644 --- a/PlexAPI/Models/Requests/GetLibraryHubsMedia.cs +++ b/PlexAPI/Models/Requests/GetLibraryHubsMedia.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetLibraryHubsMediaContainer.cs b/PlexAPI/Models/Requests/GetLibraryHubsMediaContainer.cs index 9c6cd36..3f9abed 100644 --- a/PlexAPI/Models/Requests/GetLibraryHubsMediaContainer.cs +++ b/PlexAPI/Models/Requests/GetLibraryHubsMediaContainer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetLibraryHubsMetadata.cs b/PlexAPI/Models/Requests/GetLibraryHubsMetadata.cs index 9d0f566..a3c57a1 100644 --- a/PlexAPI/Models/Requests/GetLibraryHubsMetadata.cs +++ b/PlexAPI/Models/Requests/GetLibraryHubsMetadata.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetLibraryHubsPart.cs b/PlexAPI/Models/Requests/GetLibraryHubsPart.cs index 25d4281..af2381a 100644 --- a/PlexAPI/Models/Requests/GetLibraryHubsPart.cs +++ b/PlexAPI/Models/Requests/GetLibraryHubsPart.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetLibraryHubsRequest.cs b/PlexAPI/Models/Requests/GetLibraryHubsRequest.cs index 0d41c0b..2b87617 100644 --- a/PlexAPI/Models/Requests/GetLibraryHubsRequest.cs +++ b/PlexAPI/Models/Requests/GetLibraryHubsRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetLibraryHubsResponse.cs b/PlexAPI/Models/Requests/GetLibraryHubsResponse.cs index 67e50d8..014d9be 100644 --- a/PlexAPI/Models/Requests/GetLibraryHubsResponse.cs +++ b/PlexAPI/Models/Requests/GetLibraryHubsResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetLibraryHubsResponseBody.cs b/PlexAPI/Models/Requests/GetLibraryHubsResponseBody.cs index 39f5c47..130844e 100644 --- a/PlexAPI/Models/Requests/GetLibraryHubsResponseBody.cs +++ b/PlexAPI/Models/Requests/GetLibraryHubsResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetLibraryHubsRole.cs b/PlexAPI/Models/Requests/GetLibraryHubsRole.cs index 86ac459..b7d87d6 100644 --- a/PlexAPI/Models/Requests/GetLibraryHubsRole.cs +++ b/PlexAPI/Models/Requests/GetLibraryHubsRole.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetLibraryHubsWriter.cs b/PlexAPI/Models/Requests/GetLibraryHubsWriter.cs index 2e0c4b0..6b0b88c 100644 --- a/PlexAPI/Models/Requests/GetLibraryHubsWriter.cs +++ b/PlexAPI/Models/Requests/GetLibraryHubsWriter.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetLibraryItemsCountry.cs b/PlexAPI/Models/Requests/GetLibraryItemsCountry.cs index be67ae3..cd412d3 100644 --- a/PlexAPI/Models/Requests/GetLibraryItemsCountry.cs +++ b/PlexAPI/Models/Requests/GetLibraryItemsCountry.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetLibraryItemsDirector.cs b/PlexAPI/Models/Requests/GetLibraryItemsDirector.cs index c2f60e3..68b0370 100644 --- a/PlexAPI/Models/Requests/GetLibraryItemsDirector.cs +++ b/PlexAPI/Models/Requests/GetLibraryItemsDirector.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetLibraryItemsGenre.cs b/PlexAPI/Models/Requests/GetLibraryItemsGenre.cs index 6368581..a14dbf5 100644 --- a/PlexAPI/Models/Requests/GetLibraryItemsGenre.cs +++ b/PlexAPI/Models/Requests/GetLibraryItemsGenre.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetLibraryItemsMedia.cs b/PlexAPI/Models/Requests/GetLibraryItemsMedia.cs index fbd9dd4..ceb9f0d 100644 --- a/PlexAPI/Models/Requests/GetLibraryItemsMedia.cs +++ b/PlexAPI/Models/Requests/GetLibraryItemsMedia.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetLibraryItemsMediaContainer.cs b/PlexAPI/Models/Requests/GetLibraryItemsMediaContainer.cs index 975f0f5..13945fc 100644 --- a/PlexAPI/Models/Requests/GetLibraryItemsMediaContainer.cs +++ b/PlexAPI/Models/Requests/GetLibraryItemsMediaContainer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetLibraryItemsMetadata.cs b/PlexAPI/Models/Requests/GetLibraryItemsMetadata.cs index 3cdc550..f04b65b 100644 --- a/PlexAPI/Models/Requests/GetLibraryItemsMetadata.cs +++ b/PlexAPI/Models/Requests/GetLibraryItemsMetadata.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetLibraryItemsPart.cs b/PlexAPI/Models/Requests/GetLibraryItemsPart.cs index 19b6179..6f36a7c 100644 --- a/PlexAPI/Models/Requests/GetLibraryItemsPart.cs +++ b/PlexAPI/Models/Requests/GetLibraryItemsPart.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetLibraryItemsRequest.cs b/PlexAPI/Models/Requests/GetLibraryItemsRequest.cs index f804898..ebb3f82 100644 --- a/PlexAPI/Models/Requests/GetLibraryItemsRequest.cs +++ b/PlexAPI/Models/Requests/GetLibraryItemsRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetLibraryItemsResponse.cs b/PlexAPI/Models/Requests/GetLibraryItemsResponse.cs index 8601e82..ad2bc8e 100644 --- a/PlexAPI/Models/Requests/GetLibraryItemsResponse.cs +++ b/PlexAPI/Models/Requests/GetLibraryItemsResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetLibraryItemsResponseBody.cs b/PlexAPI/Models/Requests/GetLibraryItemsResponseBody.cs index d0d2af3..6547450 100644 --- a/PlexAPI/Models/Requests/GetLibraryItemsResponseBody.cs +++ b/PlexAPI/Models/Requests/GetLibraryItemsResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetLibraryItemsRole.cs b/PlexAPI/Models/Requests/GetLibraryItemsRole.cs index dafc4d8..665dc61 100644 --- a/PlexAPI/Models/Requests/GetLibraryItemsRole.cs +++ b/PlexAPI/Models/Requests/GetLibraryItemsRole.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetLibraryItemsWriter.cs b/PlexAPI/Models/Requests/GetLibraryItemsWriter.cs index 10f6854..b9d8599 100644 --- a/PlexAPI/Models/Requests/GetLibraryItemsWriter.cs +++ b/PlexAPI/Models/Requests/GetLibraryItemsWriter.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetLibraryMediaContainer.cs b/PlexAPI/Models/Requests/GetLibraryMediaContainer.cs index 11bb036..e9c3db0 100644 --- a/PlexAPI/Models/Requests/GetLibraryMediaContainer.cs +++ b/PlexAPI/Models/Requests/GetLibraryMediaContainer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetLibraryRequest.cs b/PlexAPI/Models/Requests/GetLibraryRequest.cs index 5434bba..6066924 100644 --- a/PlexAPI/Models/Requests/GetLibraryRequest.cs +++ b/PlexAPI/Models/Requests/GetLibraryRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetLibraryResponse.cs b/PlexAPI/Models/Requests/GetLibraryResponse.cs index 09c8215..d40b06f 100644 --- a/PlexAPI/Models/Requests/GetLibraryResponse.cs +++ b/PlexAPI/Models/Requests/GetLibraryResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetLibraryResponseBody.cs b/PlexAPI/Models/Requests/GetLibraryResponseBody.cs index 2c8d7b9..980b434 100644 --- a/PlexAPI/Models/Requests/GetLibraryResponseBody.cs +++ b/PlexAPI/Models/Requests/GetLibraryResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetLibraryType.cs b/PlexAPI/Models/Requests/GetLibraryType.cs index f8b492b..e546ad7 100644 --- a/PlexAPI/Models/Requests/GetLibraryType.cs +++ b/PlexAPI/Models/Requests/GetLibraryType.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetMetadataChildrenDirectory.cs b/PlexAPI/Models/Requests/GetMetadataChildrenDirectory.cs index 12dacae..1023915 100644 --- a/PlexAPI/Models/Requests/GetMetadataChildrenDirectory.cs +++ b/PlexAPI/Models/Requests/GetMetadataChildrenDirectory.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetMetadataChildrenMediaContainer.cs b/PlexAPI/Models/Requests/GetMetadataChildrenMediaContainer.cs index 3efda42..98db503 100644 --- a/PlexAPI/Models/Requests/GetMetadataChildrenMediaContainer.cs +++ b/PlexAPI/Models/Requests/GetMetadataChildrenMediaContainer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetMetadataChildrenMetadata.cs b/PlexAPI/Models/Requests/GetMetadataChildrenMetadata.cs index 5373cec..8ad7bbd 100644 --- a/PlexAPI/Models/Requests/GetMetadataChildrenMetadata.cs +++ b/PlexAPI/Models/Requests/GetMetadataChildrenMetadata.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetMetadataChildrenRequest.cs b/PlexAPI/Models/Requests/GetMetadataChildrenRequest.cs index e7e1168..ccd2434 100644 --- a/PlexAPI/Models/Requests/GetMetadataChildrenRequest.cs +++ b/PlexAPI/Models/Requests/GetMetadataChildrenRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetMetadataChildrenResponse.cs b/PlexAPI/Models/Requests/GetMetadataChildrenResponse.cs index 1affd92..701c822 100644 --- a/PlexAPI/Models/Requests/GetMetadataChildrenResponse.cs +++ b/PlexAPI/Models/Requests/GetMetadataChildrenResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetMetadataChildrenResponseBody.cs b/PlexAPI/Models/Requests/GetMetadataChildrenResponseBody.cs index f8e8e0d..af730ae 100644 --- a/PlexAPI/Models/Requests/GetMetadataChildrenResponseBody.cs +++ b/PlexAPI/Models/Requests/GetMetadataChildrenResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetMetadataCountry.cs b/PlexAPI/Models/Requests/GetMetadataCountry.cs index b9aef9a..ba2100d 100644 --- a/PlexAPI/Models/Requests/GetMetadataCountry.cs +++ b/PlexAPI/Models/Requests/GetMetadataCountry.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetMetadataDirector.cs b/PlexAPI/Models/Requests/GetMetadataDirector.cs index b3eea74..e6755f5 100644 --- a/PlexAPI/Models/Requests/GetMetadataDirector.cs +++ b/PlexAPI/Models/Requests/GetMetadataDirector.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetMetadataGenre.cs b/PlexAPI/Models/Requests/GetMetadataGenre.cs index ec76388..fc26054 100644 --- a/PlexAPI/Models/Requests/GetMetadataGenre.cs +++ b/PlexAPI/Models/Requests/GetMetadataGenre.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetMetadataMedia.cs b/PlexAPI/Models/Requests/GetMetadataMedia.cs index 1f1e0aa..c90c8fd 100644 --- a/PlexAPI/Models/Requests/GetMetadataMedia.cs +++ b/PlexAPI/Models/Requests/GetMetadataMedia.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetMetadataMediaContainer.cs b/PlexAPI/Models/Requests/GetMetadataMediaContainer.cs index 6560e42..1863a12 100644 --- a/PlexAPI/Models/Requests/GetMetadataMediaContainer.cs +++ b/PlexAPI/Models/Requests/GetMetadataMediaContainer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetMetadataMetadata.cs b/PlexAPI/Models/Requests/GetMetadataMetadata.cs index 68a96ce..7d43a3b 100644 --- a/PlexAPI/Models/Requests/GetMetadataMetadata.cs +++ b/PlexAPI/Models/Requests/GetMetadataMetadata.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetMetadataPart.cs b/PlexAPI/Models/Requests/GetMetadataPart.cs index 2efe95a..2b8adfc 100644 --- a/PlexAPI/Models/Requests/GetMetadataPart.cs +++ b/PlexAPI/Models/Requests/GetMetadataPart.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetMetadataRequest.cs b/PlexAPI/Models/Requests/GetMetadataRequest.cs index 4d67422..e8f4aa3 100644 --- a/PlexAPI/Models/Requests/GetMetadataRequest.cs +++ b/PlexAPI/Models/Requests/GetMetadataRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetMetadataResponse.cs b/PlexAPI/Models/Requests/GetMetadataResponse.cs index c47d891..10083a4 100644 --- a/PlexAPI/Models/Requests/GetMetadataResponse.cs +++ b/PlexAPI/Models/Requests/GetMetadataResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetMetadataResponseBody.cs b/PlexAPI/Models/Requests/GetMetadataResponseBody.cs index 14ebcef..bc578bc 100644 --- a/PlexAPI/Models/Requests/GetMetadataResponseBody.cs +++ b/PlexAPI/Models/Requests/GetMetadataResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetMetadataRole.cs b/PlexAPI/Models/Requests/GetMetadataRole.cs index 98a1734..9b98b51 100644 --- a/PlexAPI/Models/Requests/GetMetadataRole.cs +++ b/PlexAPI/Models/Requests/GetMetadataRole.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetMetadataWriter.cs b/PlexAPI/Models/Requests/GetMetadataWriter.cs index 82ce817..b3839ea 100644 --- a/PlexAPI/Models/Requests/GetMetadataWriter.cs +++ b/PlexAPI/Models/Requests/GetMetadataWriter.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetMyPlexAccountResponse.cs b/PlexAPI/Models/Requests/GetMyPlexAccountResponse.cs index ca5e9c8..a9b0549 100644 --- a/PlexAPI/Models/Requests/GetMyPlexAccountResponse.cs +++ b/PlexAPI/Models/Requests/GetMyPlexAccountResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetMyPlexAccountResponseBody.cs b/PlexAPI/Models/Requests/GetMyPlexAccountResponseBody.cs index c52018a..8f2826b 100644 --- a/PlexAPI/Models/Requests/GetMyPlexAccountResponseBody.cs +++ b/PlexAPI/Models/Requests/GetMyPlexAccountResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetOnDeckGuids.cs b/PlexAPI/Models/Requests/GetOnDeckGuids.cs index bb5cb45..9915338 100644 --- a/PlexAPI/Models/Requests/GetOnDeckGuids.cs +++ b/PlexAPI/Models/Requests/GetOnDeckGuids.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetOnDeckMedia.cs b/PlexAPI/Models/Requests/GetOnDeckMedia.cs index fc0fc40..3e3c38f 100644 --- a/PlexAPI/Models/Requests/GetOnDeckMedia.cs +++ b/PlexAPI/Models/Requests/GetOnDeckMedia.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetOnDeckMediaContainer.cs b/PlexAPI/Models/Requests/GetOnDeckMediaContainer.cs index 07fb572..8143436 100644 --- a/PlexAPI/Models/Requests/GetOnDeckMediaContainer.cs +++ b/PlexAPI/Models/Requests/GetOnDeckMediaContainer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetOnDeckMetadata.cs b/PlexAPI/Models/Requests/GetOnDeckMetadata.cs index 01782b6..1f10397 100644 --- a/PlexAPI/Models/Requests/GetOnDeckMetadata.cs +++ b/PlexAPI/Models/Requests/GetOnDeckMetadata.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetOnDeckPart.cs b/PlexAPI/Models/Requests/GetOnDeckPart.cs index e1c6cb8..32e2645 100644 --- a/PlexAPI/Models/Requests/GetOnDeckPart.cs +++ b/PlexAPI/Models/Requests/GetOnDeckPart.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetOnDeckResponse.cs b/PlexAPI/Models/Requests/GetOnDeckResponse.cs index 30b3348..88af280 100644 --- a/PlexAPI/Models/Requests/GetOnDeckResponse.cs +++ b/PlexAPI/Models/Requests/GetOnDeckResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetOnDeckResponseBody.cs b/PlexAPI/Models/Requests/GetOnDeckResponseBody.cs index c5da271..081f470 100644 --- a/PlexAPI/Models/Requests/GetOnDeckResponseBody.cs +++ b/PlexAPI/Models/Requests/GetOnDeckResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetOnDeckStream.cs b/PlexAPI/Models/Requests/GetOnDeckStream.cs index 83afd96..f3365b5 100644 --- a/PlexAPI/Models/Requests/GetOnDeckStream.cs +++ b/PlexAPI/Models/Requests/GetOnDeckStream.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetPinAuthPinContainer.cs b/PlexAPI/Models/Requests/GetPinAuthPinContainer.cs new file mode 100644 index 0000000..ca40788 --- /dev/null +++ b/PlexAPI/Models/Requests/GetPinAuthPinContainer.cs @@ -0,0 +1,68 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using PlexAPI.Models.Requests; + using PlexAPI.Utils; + using System; + + /// + /// Requests a new pin id used in the authentication flow + /// + public class GetPinAuthPinContainer + { + + [JsonProperty("id")] + public long Id { get; set; } = default!; + + [JsonProperty("code")] + public string Code { get; set; } = default!; + + [JsonProperty("product")] + public string Product { get; set; } = default!; + + [JsonProperty("trusted")] + public bool? Trusted { get; set; } = false; + + [JsonProperty("qr")] + public string Qr { get; set; } = default!; + + /// + /// The X-Client-Identifier used in the request + /// + [JsonProperty("clientIdentifier")] + public string ClientIdentifier { get; set; } = default!; + + /// + /// Geo location data + /// + [JsonProperty("location")] + public GeoData Location { get; set; } = default!; + + /// + /// The number of seconds this pin expires, by default 900 seconds + /// + [JsonProperty("expiresIn")] + public long? ExpiresIn { get; set; } = 900; + + [JsonProperty("createdAt")] + public DateTime CreatedAt { get; set; } = default!; + + [JsonProperty("expiresAt")] + public DateTime ExpiresAt { get; set; } = default!; + + [JsonProperty("authToken")] + public object? AuthToken { get; set; } = null; + + [JsonProperty("newRegistration")] + public object? NewRegistration { get; set; } = null; + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/GetPinRequest.cs b/PlexAPI/Models/Requests/GetPinRequest.cs index 5cf1484..65da92a 100644 --- a/PlexAPI/Models/Requests/GetPinRequest.cs +++ b/PlexAPI/Models/Requests/GetPinRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetPinResponse.cs b/PlexAPI/Models/Requests/GetPinResponse.cs index 16dab75..4936678 100644 --- a/PlexAPI/Models/Requests/GetPinResponse.cs +++ b/PlexAPI/Models/Requests/GetPinResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -33,8 +33,8 @@ namespace PlexAPI.Models.Requests public HttpResponseMessage RawResponse { get; set; } = default!; /// - /// The Pin + /// Requests a new pin id used in the authentication flow /// - public Models.Requests.GetPinResponseBody? Object { get; set; } + public GetPinAuthPinContainer? AuthPinContainer { get; set; } } } \ No newline at end of file diff --git a/PlexAPI/Models/Requests/GetPinResponseBody.cs b/PlexAPI/Models/Requests/GetPinResponseBody.cs deleted file mode 100644 index 9d179ac..0000000 --- a/PlexAPI/Models/Requests/GetPinResponseBody.cs +++ /dev/null @@ -1,71 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. -// -// Changes to this file may cause incorrect behavior and will be lost when -// the code is regenerated. -// -//------------------------------------------------------------------------------ -#nullable enable -namespace PlexAPI.Models.Requests -{ - using Newtonsoft.Json; - using PlexAPI.Models.Requests; - using PlexAPI.Utils; - using System; - - /// - /// The Pin - /// - public class GetPinResponseBody - { - - /// - /// PinID for use with authentication - /// - [JsonProperty("id")] - public double? Id { get; set; } - - [JsonProperty("code")] - public string? Code { get; set; } - - [JsonProperty("product")] - public string? Product { get; set; } - - [JsonProperty("trusted")] - public bool? Trusted { get; set; } - - /// - /// a link to a QR code hosted on plex.tv
- /// - /// - /// The QR code redirects to the relevant `plex.tv/link` authentication page
- /// Which then prompts the user for the 4 Digit Link Pin
- /// - ///
- ///
- [JsonProperty("qr")] - public string? Qr { get; set; } - - [JsonProperty("clientIdentifier")] - public string? ClientIdentifier { get; set; } - - [JsonProperty("location")] - public Location? Location { get; set; } - - [JsonProperty("expiresIn")] - public double? ExpiresIn { get; set; } - - [JsonProperty("createdAt")] - public DateTime? CreatedAt { get; set; } - - [JsonProperty("expiresAt")] - public DateTime? ExpiresAt { get; set; } - - [JsonProperty("authToken")] - public string? AuthToken { get; set; } - - [JsonProperty("newRegistration")] - public bool? NewRegistration { get; set; } = null; - } -} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/GetPlaylistContentsCountry.cs b/PlexAPI/Models/Requests/GetPlaylistContentsCountry.cs index 48b43fa..c2a618e 100644 --- a/PlexAPI/Models/Requests/GetPlaylistContentsCountry.cs +++ b/PlexAPI/Models/Requests/GetPlaylistContentsCountry.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetPlaylistContentsDirector.cs b/PlexAPI/Models/Requests/GetPlaylistContentsDirector.cs index d8affd8..ce2bf67 100644 --- a/PlexAPI/Models/Requests/GetPlaylistContentsDirector.cs +++ b/PlexAPI/Models/Requests/GetPlaylistContentsDirector.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetPlaylistContentsGenre.cs b/PlexAPI/Models/Requests/GetPlaylistContentsGenre.cs index a340948..c18a226 100644 --- a/PlexAPI/Models/Requests/GetPlaylistContentsGenre.cs +++ b/PlexAPI/Models/Requests/GetPlaylistContentsGenre.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetPlaylistContentsMedia.cs b/PlexAPI/Models/Requests/GetPlaylistContentsMedia.cs index 9d97de8..ea7b649 100644 --- a/PlexAPI/Models/Requests/GetPlaylistContentsMedia.cs +++ b/PlexAPI/Models/Requests/GetPlaylistContentsMedia.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetPlaylistContentsMediaContainer.cs b/PlexAPI/Models/Requests/GetPlaylistContentsMediaContainer.cs index da3a7af..55393c3 100644 --- a/PlexAPI/Models/Requests/GetPlaylistContentsMediaContainer.cs +++ b/PlexAPI/Models/Requests/GetPlaylistContentsMediaContainer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetPlaylistContentsMetadata.cs b/PlexAPI/Models/Requests/GetPlaylistContentsMetadata.cs index 934cf76..cac8f81 100644 --- a/PlexAPI/Models/Requests/GetPlaylistContentsMetadata.cs +++ b/PlexAPI/Models/Requests/GetPlaylistContentsMetadata.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetPlaylistContentsPart.cs b/PlexAPI/Models/Requests/GetPlaylistContentsPart.cs index b1b949d..8eb3b59 100644 --- a/PlexAPI/Models/Requests/GetPlaylistContentsPart.cs +++ b/PlexAPI/Models/Requests/GetPlaylistContentsPart.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetPlaylistContentsRequest.cs b/PlexAPI/Models/Requests/GetPlaylistContentsRequest.cs index 37bc101..791141b 100644 --- a/PlexAPI/Models/Requests/GetPlaylistContentsRequest.cs +++ b/PlexAPI/Models/Requests/GetPlaylistContentsRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetPlaylistContentsResponse.cs b/PlexAPI/Models/Requests/GetPlaylistContentsResponse.cs index 7ed4b33..e3dd902 100644 --- a/PlexAPI/Models/Requests/GetPlaylistContentsResponse.cs +++ b/PlexAPI/Models/Requests/GetPlaylistContentsResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetPlaylistContentsResponseBody.cs b/PlexAPI/Models/Requests/GetPlaylistContentsResponseBody.cs index c9506aa..c6d28c8 100644 --- a/PlexAPI/Models/Requests/GetPlaylistContentsResponseBody.cs +++ b/PlexAPI/Models/Requests/GetPlaylistContentsResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetPlaylistContentsRole.cs b/PlexAPI/Models/Requests/GetPlaylistContentsRole.cs index dd9515d..d675f20 100644 --- a/PlexAPI/Models/Requests/GetPlaylistContentsRole.cs +++ b/PlexAPI/Models/Requests/GetPlaylistContentsRole.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetPlaylistContentsWriter.cs b/PlexAPI/Models/Requests/GetPlaylistContentsWriter.cs index ec8e2ae..ce1cc00 100644 --- a/PlexAPI/Models/Requests/GetPlaylistContentsWriter.cs +++ b/PlexAPI/Models/Requests/GetPlaylistContentsWriter.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetPlaylistMediaContainer.cs b/PlexAPI/Models/Requests/GetPlaylistMediaContainer.cs index 3b1ecd0..91182a9 100644 --- a/PlexAPI/Models/Requests/GetPlaylistMediaContainer.cs +++ b/PlexAPI/Models/Requests/GetPlaylistMediaContainer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetPlaylistMetadata.cs b/PlexAPI/Models/Requests/GetPlaylistMetadata.cs index 4071f9e..281561d 100644 --- a/PlexAPI/Models/Requests/GetPlaylistMetadata.cs +++ b/PlexAPI/Models/Requests/GetPlaylistMetadata.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetPlaylistRequest.cs b/PlexAPI/Models/Requests/GetPlaylistRequest.cs index 1601b8f..0fd4170 100644 --- a/PlexAPI/Models/Requests/GetPlaylistRequest.cs +++ b/PlexAPI/Models/Requests/GetPlaylistRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetPlaylistResponse.cs b/PlexAPI/Models/Requests/GetPlaylistResponse.cs index 2b6b056..60addee 100644 --- a/PlexAPI/Models/Requests/GetPlaylistResponse.cs +++ b/PlexAPI/Models/Requests/GetPlaylistResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetPlaylistResponseBody.cs b/PlexAPI/Models/Requests/GetPlaylistResponseBody.cs index 04fabc3..8396d01 100644 --- a/PlexAPI/Models/Requests/GetPlaylistResponseBody.cs +++ b/PlexAPI/Models/Requests/GetPlaylistResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetPlaylistsMediaContainer.cs b/PlexAPI/Models/Requests/GetPlaylistsMediaContainer.cs index 7325562..c837321 100644 --- a/PlexAPI/Models/Requests/GetPlaylistsMediaContainer.cs +++ b/PlexAPI/Models/Requests/GetPlaylistsMediaContainer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetPlaylistsMetadata.cs b/PlexAPI/Models/Requests/GetPlaylistsMetadata.cs index 2e3b522..212646c 100644 --- a/PlexAPI/Models/Requests/GetPlaylistsMetadata.cs +++ b/PlexAPI/Models/Requests/GetPlaylistsMetadata.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetPlaylistsRequest.cs b/PlexAPI/Models/Requests/GetPlaylistsRequest.cs index a595e90..63140c2 100644 --- a/PlexAPI/Models/Requests/GetPlaylistsRequest.cs +++ b/PlexAPI/Models/Requests/GetPlaylistsRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetPlaylistsResponse.cs b/PlexAPI/Models/Requests/GetPlaylistsResponse.cs index 5da1673..2de0902 100644 --- a/PlexAPI/Models/Requests/GetPlaylistsResponse.cs +++ b/PlexAPI/Models/Requests/GetPlaylistsResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetPlaylistsResponseBody.cs b/PlexAPI/Models/Requests/GetPlaylistsResponseBody.cs index 5880a1f..5faa1ad 100644 --- a/PlexAPI/Models/Requests/GetPlaylistsResponseBody.cs +++ b/PlexAPI/Models/Requests/GetPlaylistsResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetRecentlyAddedMediaContainer.cs b/PlexAPI/Models/Requests/GetRecentlyAddedMediaContainer.cs index 25f6566..3180055 100644 --- a/PlexAPI/Models/Requests/GetRecentlyAddedMediaContainer.cs +++ b/PlexAPI/Models/Requests/GetRecentlyAddedMediaContainer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetRecentlyAddedMetadata.cs b/PlexAPI/Models/Requests/GetRecentlyAddedMetadata.cs index 4816634..05dcf11 100644 --- a/PlexAPI/Models/Requests/GetRecentlyAddedMetadata.cs +++ b/PlexAPI/Models/Requests/GetRecentlyAddedMetadata.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetRecentlyAddedResponse.cs b/PlexAPI/Models/Requests/GetRecentlyAddedResponse.cs index 64a85f5..c2817e6 100644 --- a/PlexAPI/Models/Requests/GetRecentlyAddedResponse.cs +++ b/PlexAPI/Models/Requests/GetRecentlyAddedResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetRecentlyAddedResponseBody.cs b/PlexAPI/Models/Requests/GetRecentlyAddedResponseBody.cs index 45071a6..5a10c59 100644 --- a/PlexAPI/Models/Requests/GetRecentlyAddedResponseBody.cs +++ b/PlexAPI/Models/Requests/GetRecentlyAddedResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetResizedPhotoRequest.cs b/PlexAPI/Models/Requests/GetResizedPhotoRequest.cs index 4f908d1..271b3fa 100644 --- a/PlexAPI/Models/Requests/GetResizedPhotoRequest.cs +++ b/PlexAPI/Models/Requests/GetResizedPhotoRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetResizedPhotoResponse.cs b/PlexAPI/Models/Requests/GetResizedPhotoResponse.cs index 9c3d996..e070677 100644 --- a/PlexAPI/Models/Requests/GetResizedPhotoResponse.cs +++ b/PlexAPI/Models/Requests/GetResizedPhotoResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetResourcesRequest.cs b/PlexAPI/Models/Requests/GetResourcesRequest.cs new file mode 100644 index 0000000..219f597 --- /dev/null +++ b/PlexAPI/Models/Requests/GetResourcesRequest.cs @@ -0,0 +1,48 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using PlexAPI.Models.Requests; + using PlexAPI.Utils; + + public class GetResourcesRequest + { + + /// + /// The unique identifier for the client application
+ /// + /// + /// This is used to track the client application and its usage
+ /// (UUID, serial number, or other number unique per device)
+ /// + ///
+ ///
+ [SpeakeasyMetadata("header:style=simple,explode=false,name=X-Plex-Client-Identifier")] + public string? XPlexClientIdentifier { get; set; } + + /// + /// Include Https entries in the results + /// + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeHttps")] + public IncludeHttps? IncludeHttps { get; set; } + + /// + /// Include Relay addresses in the results + /// + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeRelay")] + public IncludeRelay? IncludeRelay { get; set; } + + /// + /// Include IPv6 entries in the results + /// + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeIPv6")] + public IncludeIPv6? IncludeIPv6 { get; set; } + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/GetResourcesResponse.cs b/PlexAPI/Models/Requests/GetResourcesResponse.cs new file mode 100644 index 0000000..d18ac99 --- /dev/null +++ b/PlexAPI/Models/Requests/GetResourcesResponse.cs @@ -0,0 +1,41 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using PlexAPI.Models.Requests; + using PlexAPI.Utils; + using System.Collections.Generic; + using System.Net.Http; + using System; + + public class GetResourcesResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage RawResponse { get; set; } = default!; + + /// + /// List of Plex Devices. This includes Plex hosted servers and clients + /// + public List? PlexDevices { get; set; } + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/GetResourcesStatisticsMediaContainer.cs b/PlexAPI/Models/Requests/GetResourcesStatisticsMediaContainer.cs index 6d2b9b0..93dbc76 100644 --- a/PlexAPI/Models/Requests/GetResourcesStatisticsMediaContainer.cs +++ b/PlexAPI/Models/Requests/GetResourcesStatisticsMediaContainer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetResourcesStatisticsRequest.cs b/PlexAPI/Models/Requests/GetResourcesStatisticsRequest.cs index 4557b40..5ddf4ca 100644 --- a/PlexAPI/Models/Requests/GetResourcesStatisticsRequest.cs +++ b/PlexAPI/Models/Requests/GetResourcesStatisticsRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetResourcesStatisticsResponse.cs b/PlexAPI/Models/Requests/GetResourcesStatisticsResponse.cs index 1699334..74ebbeb 100644 --- a/PlexAPI/Models/Requests/GetResourcesStatisticsResponse.cs +++ b/PlexAPI/Models/Requests/GetResourcesStatisticsResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetResourcesStatisticsResponseBody.cs b/PlexAPI/Models/Requests/GetResourcesStatisticsResponseBody.cs index d4e7661..2d6fb4a 100644 --- a/PlexAPI/Models/Requests/GetResourcesStatisticsResponseBody.cs +++ b/PlexAPI/Models/Requests/GetResourcesStatisticsResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetSearchResultsCountry.cs b/PlexAPI/Models/Requests/GetSearchResultsCountry.cs index bb73f83..598cbf4 100644 --- a/PlexAPI/Models/Requests/GetSearchResultsCountry.cs +++ b/PlexAPI/Models/Requests/GetSearchResultsCountry.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetSearchResultsDirector.cs b/PlexAPI/Models/Requests/GetSearchResultsDirector.cs index 3df5ffe..d122520 100644 --- a/PlexAPI/Models/Requests/GetSearchResultsDirector.cs +++ b/PlexAPI/Models/Requests/GetSearchResultsDirector.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetSearchResultsGenre.cs b/PlexAPI/Models/Requests/GetSearchResultsGenre.cs index 4bba8ef..1c8ccf9 100644 --- a/PlexAPI/Models/Requests/GetSearchResultsGenre.cs +++ b/PlexAPI/Models/Requests/GetSearchResultsGenre.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetSearchResultsMedia.cs b/PlexAPI/Models/Requests/GetSearchResultsMedia.cs index fd10106..cc56b25 100644 --- a/PlexAPI/Models/Requests/GetSearchResultsMedia.cs +++ b/PlexAPI/Models/Requests/GetSearchResultsMedia.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetSearchResultsMediaContainer.cs b/PlexAPI/Models/Requests/GetSearchResultsMediaContainer.cs index a9365be..8392ea5 100644 --- a/PlexAPI/Models/Requests/GetSearchResultsMediaContainer.cs +++ b/PlexAPI/Models/Requests/GetSearchResultsMediaContainer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetSearchResultsMetadata.cs b/PlexAPI/Models/Requests/GetSearchResultsMetadata.cs index 906b376..4f0a39f 100644 --- a/PlexAPI/Models/Requests/GetSearchResultsMetadata.cs +++ b/PlexAPI/Models/Requests/GetSearchResultsMetadata.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetSearchResultsPart.cs b/PlexAPI/Models/Requests/GetSearchResultsPart.cs index fdc02a3..0d1ad5f 100644 --- a/PlexAPI/Models/Requests/GetSearchResultsPart.cs +++ b/PlexAPI/Models/Requests/GetSearchResultsPart.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetSearchResultsRequest.cs b/PlexAPI/Models/Requests/GetSearchResultsRequest.cs index 780e90f..8ea6c0d 100644 --- a/PlexAPI/Models/Requests/GetSearchResultsRequest.cs +++ b/PlexAPI/Models/Requests/GetSearchResultsRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetSearchResultsResponse.cs b/PlexAPI/Models/Requests/GetSearchResultsResponse.cs index a7727e3..2231af3 100644 --- a/PlexAPI/Models/Requests/GetSearchResultsResponse.cs +++ b/PlexAPI/Models/Requests/GetSearchResultsResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetSearchResultsResponseBody.cs b/PlexAPI/Models/Requests/GetSearchResultsResponseBody.cs index 59b43cd..3fa1c0d 100644 --- a/PlexAPI/Models/Requests/GetSearchResultsResponseBody.cs +++ b/PlexAPI/Models/Requests/GetSearchResultsResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetSearchResultsRole.cs b/PlexAPI/Models/Requests/GetSearchResultsRole.cs index aff3977..42a4b08 100644 --- a/PlexAPI/Models/Requests/GetSearchResultsRole.cs +++ b/PlexAPI/Models/Requests/GetSearchResultsRole.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetSearchResultsWriter.cs b/PlexAPI/Models/Requests/GetSearchResultsWriter.cs index 7276038..98342bf 100644 --- a/PlexAPI/Models/Requests/GetSearchResultsWriter.cs +++ b/PlexAPI/Models/Requests/GetSearchResultsWriter.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetServerActivitiesMediaContainer.cs b/PlexAPI/Models/Requests/GetServerActivitiesMediaContainer.cs index 5716216..b946952 100644 --- a/PlexAPI/Models/Requests/GetServerActivitiesMediaContainer.cs +++ b/PlexAPI/Models/Requests/GetServerActivitiesMediaContainer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetServerActivitiesResponse.cs b/PlexAPI/Models/Requests/GetServerActivitiesResponse.cs index a9bc1e9..916372f 100644 --- a/PlexAPI/Models/Requests/GetServerActivitiesResponse.cs +++ b/PlexAPI/Models/Requests/GetServerActivitiesResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetServerActivitiesResponseBody.cs b/PlexAPI/Models/Requests/GetServerActivitiesResponseBody.cs index a79f5fa..1f3a970 100644 --- a/PlexAPI/Models/Requests/GetServerActivitiesResponseBody.cs +++ b/PlexAPI/Models/Requests/GetServerActivitiesResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetServerCapabilitiesResponse.cs b/PlexAPI/Models/Requests/GetServerCapabilitiesResponse.cs index a174e5a..4cffc8e 100644 --- a/PlexAPI/Models/Requests/GetServerCapabilitiesResponse.cs +++ b/PlexAPI/Models/Requests/GetServerCapabilitiesResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetServerCapabilitiesResponseBody.cs b/PlexAPI/Models/Requests/GetServerCapabilitiesResponseBody.cs index 50b9187..bfc771e 100644 --- a/PlexAPI/Models/Requests/GetServerCapabilitiesResponseBody.cs +++ b/PlexAPI/Models/Requests/GetServerCapabilitiesResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetServerIdentityMediaContainer.cs b/PlexAPI/Models/Requests/GetServerIdentityMediaContainer.cs index 96d4161..66d6e07 100644 --- a/PlexAPI/Models/Requests/GetServerIdentityMediaContainer.cs +++ b/PlexAPI/Models/Requests/GetServerIdentityMediaContainer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetServerIdentityResponse.cs b/PlexAPI/Models/Requests/GetServerIdentityResponse.cs index 98008b0..82a7f05 100644 --- a/PlexAPI/Models/Requests/GetServerIdentityResponse.cs +++ b/PlexAPI/Models/Requests/GetServerIdentityResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetServerIdentityResponseBody.cs b/PlexAPI/Models/Requests/GetServerIdentityResponseBody.cs index 5d3bc0e..ad05965 100644 --- a/PlexAPI/Models/Requests/GetServerIdentityResponseBody.cs +++ b/PlexAPI/Models/Requests/GetServerIdentityResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetServerListMediaContainer.cs b/PlexAPI/Models/Requests/GetServerListMediaContainer.cs index 89d2fee..78f9a05 100644 --- a/PlexAPI/Models/Requests/GetServerListMediaContainer.cs +++ b/PlexAPI/Models/Requests/GetServerListMediaContainer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetServerListResponse.cs b/PlexAPI/Models/Requests/GetServerListResponse.cs index 46eb238..f85401b 100644 --- a/PlexAPI/Models/Requests/GetServerListResponse.cs +++ b/PlexAPI/Models/Requests/GetServerListResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetServerListResponseBody.cs b/PlexAPI/Models/Requests/GetServerListResponseBody.cs index d4685f2..bed3d42 100644 --- a/PlexAPI/Models/Requests/GetServerListResponseBody.cs +++ b/PlexAPI/Models/Requests/GetServerListResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetServerListServer.cs b/PlexAPI/Models/Requests/GetServerListServer.cs index 570bebb..e06cbe8 100644 --- a/PlexAPI/Models/Requests/GetServerListServer.cs +++ b/PlexAPI/Models/Requests/GetServerListServer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetServerPreferencesMediaContainer.cs b/PlexAPI/Models/Requests/GetServerPreferencesMediaContainer.cs index 83fdf79..504b76a 100644 --- a/PlexAPI/Models/Requests/GetServerPreferencesMediaContainer.cs +++ b/PlexAPI/Models/Requests/GetServerPreferencesMediaContainer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetServerPreferencesResponse.cs b/PlexAPI/Models/Requests/GetServerPreferencesResponse.cs index f8443e6..94929d5 100644 --- a/PlexAPI/Models/Requests/GetServerPreferencesResponse.cs +++ b/PlexAPI/Models/Requests/GetServerPreferencesResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetServerPreferencesResponseBody.cs b/PlexAPI/Models/Requests/GetServerPreferencesResponseBody.cs index 9a686ad..31a7698 100644 --- a/PlexAPI/Models/Requests/GetServerPreferencesResponseBody.cs +++ b/PlexAPI/Models/Requests/GetServerPreferencesResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetSessionHistoryMediaContainer.cs b/PlexAPI/Models/Requests/GetSessionHistoryMediaContainer.cs index efed3e2..afc6d9f 100644 --- a/PlexAPI/Models/Requests/GetSessionHistoryMediaContainer.cs +++ b/PlexAPI/Models/Requests/GetSessionHistoryMediaContainer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetSessionHistoryMetadata.cs b/PlexAPI/Models/Requests/GetSessionHistoryMetadata.cs index e0a5754..caac650 100644 --- a/PlexAPI/Models/Requests/GetSessionHistoryMetadata.cs +++ b/PlexAPI/Models/Requests/GetSessionHistoryMetadata.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetSessionHistoryRequest.cs b/PlexAPI/Models/Requests/GetSessionHistoryRequest.cs index 6680dd9..331a82c 100644 --- a/PlexAPI/Models/Requests/GetSessionHistoryRequest.cs +++ b/PlexAPI/Models/Requests/GetSessionHistoryRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetSessionHistoryResponse.cs b/PlexAPI/Models/Requests/GetSessionHistoryResponse.cs index bd3cffb..c658a34 100644 --- a/PlexAPI/Models/Requests/GetSessionHistoryResponse.cs +++ b/PlexAPI/Models/Requests/GetSessionHistoryResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetSessionHistoryResponseBody.cs b/PlexAPI/Models/Requests/GetSessionHistoryResponseBody.cs index 6702957..d2a95f8 100644 --- a/PlexAPI/Models/Requests/GetSessionHistoryResponseBody.cs +++ b/PlexAPI/Models/Requests/GetSessionHistoryResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetSessionsMedia.cs b/PlexAPI/Models/Requests/GetSessionsMedia.cs index bde432f..45e5805 100644 --- a/PlexAPI/Models/Requests/GetSessionsMedia.cs +++ b/PlexAPI/Models/Requests/GetSessionsMedia.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetSessionsMediaContainer.cs b/PlexAPI/Models/Requests/GetSessionsMediaContainer.cs index 6a41221..c3eac31 100644 --- a/PlexAPI/Models/Requests/GetSessionsMediaContainer.cs +++ b/PlexAPI/Models/Requests/GetSessionsMediaContainer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetSessionsMetadata.cs b/PlexAPI/Models/Requests/GetSessionsMetadata.cs index c0eca43..1d48607 100644 --- a/PlexAPI/Models/Requests/GetSessionsMetadata.cs +++ b/PlexAPI/Models/Requests/GetSessionsMetadata.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetSessionsPart.cs b/PlexAPI/Models/Requests/GetSessionsPart.cs index 638ea37..28fd457 100644 --- a/PlexAPI/Models/Requests/GetSessionsPart.cs +++ b/PlexAPI/Models/Requests/GetSessionsPart.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetSessionsResponse.cs b/PlexAPI/Models/Requests/GetSessionsResponse.cs index 1c3c81a..4e08022 100644 --- a/PlexAPI/Models/Requests/GetSessionsResponse.cs +++ b/PlexAPI/Models/Requests/GetSessionsResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetSessionsResponseBody.cs b/PlexAPI/Models/Requests/GetSessionsResponseBody.cs index 4807b51..32acf5e 100644 --- a/PlexAPI/Models/Requests/GetSessionsResponseBody.cs +++ b/PlexAPI/Models/Requests/GetSessionsResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetSessionsStream.cs b/PlexAPI/Models/Requests/GetSessionsStream.cs index 689a5da..ba50bc7 100644 --- a/PlexAPI/Models/Requests/GetSessionsStream.cs +++ b/PlexAPI/Models/Requests/GetSessionsStream.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetSessionsUser.cs b/PlexAPI/Models/Requests/GetSessionsUser.cs index a004c9e..ff2c248 100644 --- a/PlexAPI/Models/Requests/GetSessionsUser.cs +++ b/PlexAPI/Models/Requests/GetSessionsUser.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetSourceConnectionInformationRequest.cs b/PlexAPI/Models/Requests/GetSourceConnectionInformationRequest.cs index 2244f31..a727145 100644 --- a/PlexAPI/Models/Requests/GetSourceConnectionInformationRequest.cs +++ b/PlexAPI/Models/Requests/GetSourceConnectionInformationRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetSourceConnectionInformationResponse.cs b/PlexAPI/Models/Requests/GetSourceConnectionInformationResponse.cs index 5c560bc..3d16c3a 100644 --- a/PlexAPI/Models/Requests/GetSourceConnectionInformationResponse.cs +++ b/PlexAPI/Models/Requests/GetSourceConnectionInformationResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetStatisticsDevice.cs b/PlexAPI/Models/Requests/GetStatisticsDevice.cs index 6937004..3623366 100644 --- a/PlexAPI/Models/Requests/GetStatisticsDevice.cs +++ b/PlexAPI/Models/Requests/GetStatisticsDevice.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetStatisticsMediaContainer.cs b/PlexAPI/Models/Requests/GetStatisticsMediaContainer.cs index 4a8a927..5b488d6 100644 --- a/PlexAPI/Models/Requests/GetStatisticsMediaContainer.cs +++ b/PlexAPI/Models/Requests/GetStatisticsMediaContainer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetStatisticsRequest.cs b/PlexAPI/Models/Requests/GetStatisticsRequest.cs index ca95701..33527ef 100644 --- a/PlexAPI/Models/Requests/GetStatisticsRequest.cs +++ b/PlexAPI/Models/Requests/GetStatisticsRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetStatisticsResponse.cs b/PlexAPI/Models/Requests/GetStatisticsResponse.cs index d5f1c61..95911ab 100644 --- a/PlexAPI/Models/Requests/GetStatisticsResponse.cs +++ b/PlexAPI/Models/Requests/GetStatisticsResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetStatisticsResponseBody.cs b/PlexAPI/Models/Requests/GetStatisticsResponseBody.cs index 8c91101..7a896b5 100644 --- a/PlexAPI/Models/Requests/GetStatisticsResponseBody.cs +++ b/PlexAPI/Models/Requests/GetStatisticsResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetTimelineRequest.cs b/PlexAPI/Models/Requests/GetTimelineRequest.cs index c22d2e3..edb74af 100644 --- a/PlexAPI/Models/Requests/GetTimelineRequest.cs +++ b/PlexAPI/Models/Requests/GetTimelineRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetTimelineResponse.cs b/PlexAPI/Models/Requests/GetTimelineResponse.cs index e0b2bba..f6bc09a 100644 --- a/PlexAPI/Models/Requests/GetTimelineResponse.cs +++ b/PlexAPI/Models/Requests/GetTimelineResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetTokenByPinIdAuthPinContainer.cs b/PlexAPI/Models/Requests/GetTokenByPinIdAuthPinContainer.cs new file mode 100644 index 0000000..c06ec23 --- /dev/null +++ b/PlexAPI/Models/Requests/GetTokenByPinIdAuthPinContainer.cs @@ -0,0 +1,68 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using PlexAPI.Models.Requests; + using PlexAPI.Utils; + using System; + + /// + /// The Pin with a non-null authToken when it has been verified by the user + /// + public class GetTokenByPinIdAuthPinContainer + { + + [JsonProperty("id")] + public long Id { get; set; } = default!; + + [JsonProperty("code")] + public string Code { get; set; } = default!; + + [JsonProperty("product")] + public string Product { get; set; } = default!; + + [JsonProperty("trusted")] + public bool? Trusted { get; set; } = false; + + [JsonProperty("qr")] + public string Qr { get; set; } = default!; + + /// + /// The X-Client-Identifier used in the request + /// + [JsonProperty("clientIdentifier")] + public string ClientIdentifier { get; set; } = default!; + + /// + /// Geo location data + /// + [JsonProperty("location")] + public GetTokenByPinIdGeoData Location { get; set; } = default!; + + /// + /// The number of seconds this pin expires, by default 900 seconds + /// + [JsonProperty("expiresIn")] + public long? ExpiresIn { get; set; } = 900; + + [JsonProperty("createdAt")] + public DateTime CreatedAt { get; set; } = default!; + + [JsonProperty("expiresAt")] + public DateTime ExpiresAt { get; set; } = default!; + + [JsonProperty("authToken")] + public object? AuthToken { get; set; } = null; + + [JsonProperty("newRegistration")] + public object? NewRegistration { get; set; } = null; + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/GetTokenByPinIdGeoData.cs b/PlexAPI/Models/Requests/GetTokenByPinIdGeoData.cs new file mode 100644 index 0000000..8714b8b --- /dev/null +++ b/PlexAPI/Models/Requests/GetTokenByPinIdGeoData.cs @@ -0,0 +1,87 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using PlexAPI.Utils; + + /// + /// Geo location data + /// + public class GetTokenByPinIdGeoData + { + + /// + /// The ISO 3166-1 alpha-2 code of the country. + /// + [JsonProperty("code")] + public string Code { get; set; } = default!; + + /// + /// The continent code where the country is located. + /// + [JsonProperty("continent_code")] + public string ContinentCode { get; set; } = default!; + + /// + /// The official name of the country. + /// + [JsonProperty("country")] + public string Country { get; set; } = default!; + + /// + /// The name of the city. + /// + [JsonProperty("city")] + public string City { get; set; } = default!; + + /// + /// Indicates if the country is a member of the European Union. + /// + [JsonProperty("european_union_member")] + public bool? EuropeanUnionMember { get; set; } = false; + + /// + /// The time zone of the country. + /// + [JsonProperty("time_zone")] + public string TimeZone { get; set; } = default!; + + /// + /// The postal code of the location. + /// + [JsonProperty("postal_code")] + public long PostalCode { get; set; } = default!; + + /// + /// Indicates if the country has privacy restrictions. + /// + [JsonProperty("in_privacy_restricted_country")] + public bool? InPrivacyRestrictedCountry { get; set; } = false; + + /// + /// Indicates if the region has privacy restrictions. + /// + [JsonProperty("in_privacy_restricted_region")] + public bool? InPrivacyRestrictedRegion { get; set; } = false; + + /// + /// The name of the primary administrative subdivision. + /// + [JsonProperty("subdivisions")] + public string Subdivisions { get; set; } = default!; + + /// + /// The geographical coordinates (latitude, longitude) of the location. + /// + [JsonProperty("coordinates")] + public string Coordinates { get; set; } = default!; + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/GetTokenRequest.cs b/PlexAPI/Models/Requests/GetTokenByPinIdRequest.cs similarity index 86% rename from PlexAPI/Models/Requests/GetTokenRequest.cs rename to PlexAPI/Models/Requests/GetTokenByPinIdRequest.cs index 3a9261b..3bd103d 100644 --- a/PlexAPI/Models/Requests/GetTokenRequest.cs +++ b/PlexAPI/Models/Requests/GetTokenByPinIdRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -11,14 +11,14 @@ namespace PlexAPI.Models.Requests { using PlexAPI.Utils; - public class GetTokenRequest + public class GetTokenByPinIdRequest { /// /// The PinID to retrieve an access token for /// [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=pinID")] - public string PinID { get; set; } = default!; + public long PinID { get; set; } = default!; /// /// The unique identifier for the client application
diff --git a/PlexAPI/Models/Requests/GetTokenByPinIdResponse.cs b/PlexAPI/Models/Requests/GetTokenByPinIdResponse.cs new file mode 100644 index 0000000..c695016 --- /dev/null +++ b/PlexAPI/Models/Requests/GetTokenByPinIdResponse.cs @@ -0,0 +1,40 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using PlexAPI.Models.Requests; + using PlexAPI.Utils; + using System.Net.Http; + using System; + + public class GetTokenByPinIdResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage RawResponse { get; set; } = default!; + + /// + /// The Pin with a non-null authToken when it has been verified by the user + /// + public GetTokenByPinIdAuthPinContainer? AuthPinContainer { get; set; } + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/GetTokenLocation.cs b/PlexAPI/Models/Requests/GetTokenLocation.cs deleted file mode 100644 index e5c58e8..0000000 --- a/PlexAPI/Models/Requests/GetTokenLocation.cs +++ /dev/null @@ -1,48 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. -// -// Changes to this file may cause incorrect behavior and will be lost when -// the code is regenerated. -// -//------------------------------------------------------------------------------ -#nullable enable -namespace PlexAPI.Models.Requests -{ - using Newtonsoft.Json; - using PlexAPI.Utils; - - public class GetTokenLocation - { - - [JsonProperty("code")] - public string? Code { get; set; } - - [JsonProperty("european_union_member")] - public bool? EuropeanUnionMember { get; set; } - - [JsonProperty("continent_code")] - public string? ContinentCode { get; set; } - - [JsonProperty("country")] - public string? Country { get; set; } - - [JsonProperty("city")] - public string? City { get; set; } - - [JsonProperty("time_zone")] - public string? TimeZone { get; set; } - - [JsonProperty("postal_code")] - public string? PostalCode { get; set; } - - [JsonProperty("in_privacy_restricted_country")] - public bool? InPrivacyRestrictedCountry { get; set; } - - [JsonProperty("subdivisions")] - public string? Subdivisions { get; set; } - - [JsonProperty("coordinates")] - public string? Coordinates { get; set; } - } -} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/GetTokenResponseBody.cs b/PlexAPI/Models/Requests/GetTokenResponseBody.cs deleted file mode 100644 index 7515ca5..0000000 --- a/PlexAPI/Models/Requests/GetTokenResponseBody.cs +++ /dev/null @@ -1,71 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. -// -// Changes to this file may cause incorrect behavior and will be lost when -// the code is regenerated. -// -//------------------------------------------------------------------------------ -#nullable enable -namespace PlexAPI.Models.Requests -{ - using Newtonsoft.Json; - using PlexAPI.Models.Requests; - using PlexAPI.Utils; - using System; - - /// - /// Access Token - /// - public class GetTokenResponseBody - { - - /// - /// PinID for use with authentication - /// - [JsonProperty("id")] - public double? Id { get; set; } - - [JsonProperty("code")] - public string? Code { get; set; } - - [JsonProperty("product")] - public string? Product { get; set; } - - [JsonProperty("trusted")] - public bool? Trusted { get; set; } - - /// - /// a link to a QR code hosted on plex.tv
- /// - /// - /// The QR code redirects to the relevant `plex.tv/link` authentication page
- /// Which then prompts the user for the 4 Digit Link Pin
- /// - ///
- ///
- [JsonProperty("qr")] - public string? Qr { get; set; } - - [JsonProperty("clientIdentifier")] - public string? ClientIdentifier { get; set; } - - [JsonProperty("location")] - public GetTokenLocation? Location { get; set; } - - [JsonProperty("expiresIn")] - public double? ExpiresIn { get; set; } - - [JsonProperty("createdAt")] - public DateTime? CreatedAt { get; set; } - - [JsonProperty("expiresAt")] - public DateTime? ExpiresAt { get; set; } - - [JsonProperty("authToken")] - public string? AuthToken { get; set; } - - [JsonProperty("newRegistration")] - public string? NewRegistration { get; set; } - } -} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/GetTopWatchedContentCountry.cs b/PlexAPI/Models/Requests/GetTopWatchedContentCountry.cs index 7042daf..872a764 100644 --- a/PlexAPI/Models/Requests/GetTopWatchedContentCountry.cs +++ b/PlexAPI/Models/Requests/GetTopWatchedContentCountry.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetTopWatchedContentGenre.cs b/PlexAPI/Models/Requests/GetTopWatchedContentGenre.cs index 8410375..36c0639 100644 --- a/PlexAPI/Models/Requests/GetTopWatchedContentGenre.cs +++ b/PlexAPI/Models/Requests/GetTopWatchedContentGenre.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetTopWatchedContentGuids.cs b/PlexAPI/Models/Requests/GetTopWatchedContentGuids.cs index 5146369..cb22e20 100644 --- a/PlexAPI/Models/Requests/GetTopWatchedContentGuids.cs +++ b/PlexAPI/Models/Requests/GetTopWatchedContentGuids.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetTopWatchedContentMediaContainer.cs b/PlexAPI/Models/Requests/GetTopWatchedContentMediaContainer.cs index b25e998..a110989 100644 --- a/PlexAPI/Models/Requests/GetTopWatchedContentMediaContainer.cs +++ b/PlexAPI/Models/Requests/GetTopWatchedContentMediaContainer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetTopWatchedContentMetadata.cs b/PlexAPI/Models/Requests/GetTopWatchedContentMetadata.cs index 2752f84..612bb9b 100644 --- a/PlexAPI/Models/Requests/GetTopWatchedContentMetadata.cs +++ b/PlexAPI/Models/Requests/GetTopWatchedContentMetadata.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -112,6 +112,6 @@ namespace PlexAPI.Models.Requests public List? Role { get; set; } [JsonProperty("User")] - public List? User { get; set; } + public List? User { get; set; } } } \ No newline at end of file diff --git a/PlexAPI/Models/Requests/GetTopWatchedContentRequest.cs b/PlexAPI/Models/Requests/GetTopWatchedContentRequest.cs index a08d2a4..686ec23 100644 --- a/PlexAPI/Models/Requests/GetTopWatchedContentRequest.cs +++ b/PlexAPI/Models/Requests/GetTopWatchedContentRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetTopWatchedContentResponse.cs b/PlexAPI/Models/Requests/GetTopWatchedContentResponse.cs index a7b729e..f482e1b 100644 --- a/PlexAPI/Models/Requests/GetTopWatchedContentResponse.cs +++ b/PlexAPI/Models/Requests/GetTopWatchedContentResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetTopWatchedContentResponseBody.cs b/PlexAPI/Models/Requests/GetTopWatchedContentResponseBody.cs index 444fbbd..864cbfa 100644 --- a/PlexAPI/Models/Requests/GetTopWatchedContentResponseBody.cs +++ b/PlexAPI/Models/Requests/GetTopWatchedContentResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetTopWatchedContentRole.cs b/PlexAPI/Models/Requests/GetTopWatchedContentRole.cs index 867eb20..3ebab59 100644 --- a/PlexAPI/Models/Requests/GetTopWatchedContentRole.cs +++ b/PlexAPI/Models/Requests/GetTopWatchedContentRole.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetTranscodeSessionsMediaContainer.cs b/PlexAPI/Models/Requests/GetTranscodeSessionsMediaContainer.cs index ee3dd5e..3c553ea 100644 --- a/PlexAPI/Models/Requests/GetTranscodeSessionsMediaContainer.cs +++ b/PlexAPI/Models/Requests/GetTranscodeSessionsMediaContainer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetTranscodeSessionsResponse.cs b/PlexAPI/Models/Requests/GetTranscodeSessionsResponse.cs index ec3606d..e90601a 100644 --- a/PlexAPI/Models/Requests/GetTranscodeSessionsResponse.cs +++ b/PlexAPI/Models/Requests/GetTranscodeSessionsResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetTranscodeSessionsResponseBody.cs b/PlexAPI/Models/Requests/GetTranscodeSessionsResponseBody.cs index 4e5c37e..b4130aa 100644 --- a/PlexAPI/Models/Requests/GetTranscodeSessionsResponseBody.cs +++ b/PlexAPI/Models/Requests/GetTranscodeSessionsResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetTransientTokenQueryParamType.cs b/PlexAPI/Models/Requests/GetTransientTokenQueryParamType.cs index b8124da..2a8cf55 100644 --- a/PlexAPI/Models/Requests/GetTransientTokenQueryParamType.cs +++ b/PlexAPI/Models/Requests/GetTransientTokenQueryParamType.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetTransientTokenRequest.cs b/PlexAPI/Models/Requests/GetTransientTokenRequest.cs index 8f360bc..0f9cc45 100644 --- a/PlexAPI/Models/Requests/GetTransientTokenRequest.cs +++ b/PlexAPI/Models/Requests/GetTransientTokenRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetTransientTokenResponse.cs b/PlexAPI/Models/Requests/GetTransientTokenResponse.cs index c0f5867..3857719 100644 --- a/PlexAPI/Models/Requests/GetTransientTokenResponse.cs +++ b/PlexAPI/Models/Requests/GetTransientTokenResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetUpdateStatusMediaContainer.cs b/PlexAPI/Models/Requests/GetUpdateStatusMediaContainer.cs index ba5f3cc..caf2d71 100644 --- a/PlexAPI/Models/Requests/GetUpdateStatusMediaContainer.cs +++ b/PlexAPI/Models/Requests/GetUpdateStatusMediaContainer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetUpdateStatusResponse.cs b/PlexAPI/Models/Requests/GetUpdateStatusResponse.cs index 2251a3e..8b98e82 100644 --- a/PlexAPI/Models/Requests/GetUpdateStatusResponse.cs +++ b/PlexAPI/Models/Requests/GetUpdateStatusResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetUpdateStatusResponseBody.cs b/PlexAPI/Models/Requests/GetUpdateStatusResponseBody.cs index 4b7ff18..417f03a 100644 --- a/PlexAPI/Models/Requests/GetUpdateStatusResponseBody.cs +++ b/PlexAPI/Models/Requests/GetUpdateStatusResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetUserDetailsFeatures.cs b/PlexAPI/Models/Requests/GetUserDetailsFeatures.cs new file mode 100644 index 0000000..807b734 --- /dev/null +++ b/PlexAPI/Models/Requests/GetUserDetailsFeatures.cs @@ -0,0 +1,171 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using PlexAPI.Utils; + using System; + + public enum GetUserDetailsFeatures + { + [JsonProperty("Android - Dolby Vision")] + AndroidDolbyVision, + [JsonProperty("Android - PiP")] + AndroidPiP, + [JsonProperty("CU Sunset")] + CUSunset, + [JsonProperty("HRK_enable_EUR")] + HRKEnableEUR, + [JsonProperty("TREBLE-show-features")] + TREBLEShowFeatures, + [JsonProperty("ad-countdown-timer")] + AdCountdownTimer, + [JsonProperty("adaptive_bitrate")] + AdaptiveBitrate, + [JsonProperty("amazon-loop-debug")] + AmazonLoopDebug, + [JsonProperty("avod-ad-analysis")] + AvodAdAnalysis, + [JsonProperty("avod-new-media")] + AvodNewMedia, + [JsonProperty("blacklist_get_signin")] + BlacklistGetSignin, + [JsonProperty("client-radio-stations")] + ClientRadioStations, + [JsonProperty("cloudflare-turnstile-required")] + CloudflareTurnstileRequired, + [JsonProperty("collections")] + Collections, + [JsonProperty("comments_and_replies_push_notifications")] + CommentsAndRepliesPushNotifications, + [JsonProperty("community_access_plex_tv")] + CommunityAccessPlexTv, + [JsonProperty("companions_sonos")] + CompanionsSonos, + [JsonProperty("custom-home-removal")] + CustomHomeRemoval, + [JsonProperty("disable_home_user_friendships")] + DisableHomeUserFriendships, + [JsonProperty("disable_sharing_friendships")] + DisableSharingFriendships, + [JsonProperty("drm_support")] + DrmSupport, + [JsonProperty("exclude restrictions")] + ExcludeRestrictions, + [JsonProperty("federated-auth")] + FederatedAuth, + [JsonProperty("friend_request_push_notifications")] + FriendRequestPushNotifications, + [JsonProperty("guided-upgrade")] + GuidedUpgrade, + [JsonProperty("home")] + Home, + [JsonProperty("increase-password-complexity")] + IncreasePasswordComplexity, + [JsonProperty("ios14-privacy-banner")] + Ios14PrivacyBanner, + [JsonProperty("iterable-notification-tokens")] + IterableNotificationTokens, + [JsonProperty("keep-payment-method")] + KeepPaymentMethod, + [JsonProperty("kevin-bacon")] + KevinBacon, + [JsonProperty("korea-consent")] + KoreaConsent, + [JsonProperty("le_isrg_root_x1")] + LeIsrgRootX1, + [JsonProperty("lets_encrypt")] + LetsEncrypt, + [JsonProperty("lightning-dvr-pivot")] + LightningDvrPivot, + [JsonProperty("live-tv-support-incomplete-segments")] + LiveTvSupportIncompleteSegments, + [JsonProperty("livetv")] + Livetv, + [JsonProperty("metadata_search")] + MetadataSearch, + [JsonProperty("new_plex_pass_prices")] + NewPlexPassPrices, + [JsonProperty("news-provider-sunset-modal")] + NewsProviderSunsetModal, + [JsonProperty("photos-favorites")] + PhotosFavorites, + [JsonProperty("photos-metadata-edition")] + PhotosMetadataEdition, + [JsonProperty("pms_health")] + PmsHealth, + [JsonProperty("radio")] + Radio, + [JsonProperty("rate-limit-client-token")] + RateLimitClientToken, + [JsonProperty("scrobbling-service-plex-tv")] + ScrobblingServicePlexTv, + [JsonProperty("shared_server_notification")] + SharedServerNotification, + [JsonProperty("shared_source_notification")] + SharedSourceNotification, + [JsonProperty("signin_with_apple")] + SigninWithApple, + [JsonProperty("spring_serve_ad_provider")] + SpringServeAdProvider, + [JsonProperty("transcoder_cache")] + TranscoderCache, + [JsonProperty("tuner-sharing")] + TunerSharing, + [JsonProperty("two-factor-authentication")] + TwoFactorAuthentication, + [JsonProperty("unsupportedtuners")] + Unsupportedtuners, + [JsonProperty("upgrade-3ds2")] + Upgrade3ds2, + [JsonProperty("vod-schema")] + VodSchema, + [JsonProperty("vod_cloudflare")] + VodCloudflare, + [JsonProperty("watch-together-invite")] + WatchTogetherInvite, + [JsonProperty("web_server_dashboard")] + WebServerDashboard, + } + + public static class GetUserDetailsFeaturesExtension + { + public static string Value(this GetUserDetailsFeatures value) + { + return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); + } + + public static GetUserDetailsFeatures ToEnum(this string value) + { + foreach(var field in typeof(GetUserDetailsFeatures).GetFields()) + { + var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); + if (attributes.Length == 0) + { + continue; + } + + var attribute = attributes[0] as JsonPropertyAttribute; + if (attribute != null && attribute.PropertyName == value) + { + var enumVal = field.GetValue(null); + + if (enumVal is GetUserDetailsFeatures) + { + return (GetUserDetailsFeatures)enumVal; + } + } + } + + throw new Exception($"Unknown value {value} for enum GetUserDetailsFeatures"); + } + } + +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/GetUserDetailsPlexResponseStatus.cs b/PlexAPI/Models/Requests/GetUserDetailsPlexResponseStatus.cs new file mode 100644 index 0000000..45c39d5 --- /dev/null +++ b/PlexAPI/Models/Requests/GetUserDetailsPlexResponseStatus.cs @@ -0,0 +1,60 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using PlexAPI.Utils; + using System; + + /// + /// String representation of subscriptionActive + /// + public enum GetUserDetailsPlexResponseStatus + { + [JsonProperty("Inactive")] + Inactive, + [JsonProperty("Active")] + Active, + } + + public static class GetUserDetailsPlexResponseStatusExtension + { + public static string Value(this GetUserDetailsPlexResponseStatus value) + { + return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); + } + + public static GetUserDetailsPlexResponseStatus ToEnum(this string value) + { + foreach(var field in typeof(GetUserDetailsPlexResponseStatus).GetFields()) + { + var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); + if (attributes.Length == 0) + { + continue; + } + + var attribute = attributes[0] as JsonPropertyAttribute; + if (attribute != null && attribute.PropertyName == value) + { + var enumVal = field.GetValue(null); + + if (enumVal is GetUserDetailsPlexResponseStatus) + { + return (GetUserDetailsPlexResponseStatus)enumVal; + } + } + } + + throw new Exception($"Unknown value {value} for enum GetUserDetailsPlexResponseStatus"); + } + } + +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/GetUserDetailsPlexStatus.cs b/PlexAPI/Models/Requests/GetUserDetailsPlexStatus.cs new file mode 100644 index 0000000..0716dcf --- /dev/null +++ b/PlexAPI/Models/Requests/GetUserDetailsPlexStatus.cs @@ -0,0 +1,60 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using PlexAPI.Utils; + using System; + + /// + /// String representation of subscriptionActive + /// + public enum GetUserDetailsPlexStatus + { + [JsonProperty("Inactive")] + Inactive, + [JsonProperty("Active")] + Active, + } + + public static class GetUserDetailsPlexStatusExtension + { + public static string Value(this GetUserDetailsPlexStatus value) + { + return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); + } + + public static GetUserDetailsPlexStatus ToEnum(this string value) + { + foreach(var field in typeof(GetUserDetailsPlexStatus).GetFields()) + { + var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); + if (attributes.Length == 0) + { + continue; + } + + var attribute = attributes[0] as JsonPropertyAttribute; + if (attribute != null && attribute.PropertyName == value) + { + var enumVal = field.GetValue(null); + + if (enumVal is GetUserDetailsPlexStatus) + { + return (GetUserDetailsPlexStatus)enumVal; + } + } + } + + throw new Exception($"Unknown value {value} for enum GetUserDetailsPlexStatus"); + } + } + +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/GetUserDetailsResponse.cs b/PlexAPI/Models/Requests/GetUserDetailsResponse.cs new file mode 100644 index 0000000..b24518f --- /dev/null +++ b/PlexAPI/Models/Requests/GetUserDetailsResponse.cs @@ -0,0 +1,40 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using PlexAPI.Models.Requests; + using PlexAPI.Utils; + using System.Net.Http; + using System; + + public class GetUserDetailsResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage RawResponse { get; set; } = default!; + + /// + /// Logged in user details + /// + public GetUserDetailsUserPlexAccount? UserPlexAccount { get; set; } + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/GetUserDetailsStatus.cs b/PlexAPI/Models/Requests/GetUserDetailsStatus.cs new file mode 100644 index 0000000..6c971f8 --- /dev/null +++ b/PlexAPI/Models/Requests/GetUserDetailsStatus.cs @@ -0,0 +1,57 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using PlexAPI.Utils; + using System; + + public enum GetUserDetailsStatus + { + [JsonProperty("online")] + Online, + [JsonProperty("offline")] + Offline, + } + + public static class GetUserDetailsStatusExtension + { + public static string Value(this GetUserDetailsStatus value) + { + return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); + } + + public static GetUserDetailsStatus ToEnum(this string value) + { + foreach(var field in typeof(GetUserDetailsStatus).GetFields()) + { + var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); + if (attributes.Length == 0) + { + continue; + } + + var attribute = attributes[0] as JsonPropertyAttribute; + if (attribute != null && attribute.PropertyName == value) + { + var enumVal = field.GetValue(null); + + if (enumVal is GetUserDetailsStatus) + { + return (GetUserDetailsStatus)enumVal; + } + } + } + + throw new Exception($"Unknown value {value} for enum GetUserDetailsStatus"); + } + } + +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/GetUserDetailsSubscription.cs b/PlexAPI/Models/Requests/GetUserDetailsSubscription.cs new file mode 100644 index 0000000..018fc79 --- /dev/null +++ b/PlexAPI/Models/Requests/GetUserDetailsSubscription.cs @@ -0,0 +1,57 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using PlexAPI.Models.Requests; + using PlexAPI.Utils; + using System.Collections.Generic; + using System; + + public class GetUserDetailsSubscription + { + + /// + /// List of features allowed on your Plex Pass subscription + /// + [JsonProperty("features")] + public List? Features { get; set; } + + /// + /// If the account's Plex Pass subscription is active + /// + [JsonProperty("active")] + public bool? Active { get; set; } + + /// + /// Date the account subscribed to Plex Pass + /// + [JsonProperty("subscribedAt")] + public DateTime? SubscribedAt { get; set; } + + /// + /// String representation of subscriptionActive + /// + [JsonProperty("status")] + public GetUserDetailsPlexResponseStatus? Status { get; set; } + + /// + /// Payment service used for your Plex Pass subscription + /// + [JsonProperty("paymentService")] + public string? PaymentService { get; set; } = null; + + /// + /// Name of Plex Pass subscription plan + /// + [JsonProperty("plan")] + public string? Plan { get; set; } = null; + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/GetUserDetailsUserPlexAccount.cs b/PlexAPI/Models/Requests/GetUserDetailsUserPlexAccount.cs new file mode 100644 index 0000000..3d8476a --- /dev/null +++ b/PlexAPI/Models/Requests/GetUserDetailsUserPlexAccount.cs @@ -0,0 +1,256 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using PlexAPI.Models.Requests; + using PlexAPI.Utils; + using System.Collections.Generic; + using System; + + /// + /// Logged in user details + /// + public class GetUserDetailsUserPlexAccount + { + + /// + /// Unknown + /// + [JsonProperty("adsConsent", NullValueHandling = NullValueHandling.Include)] + public bool? AdsConsent { get; set; } + + /// + /// Unknown + /// + [JsonProperty("adsConsentReminderAt", NullValueHandling = NullValueHandling.Include)] + public DateTime? AdsConsentReminderAt { get; set; } + + /// + /// Unknown + /// + [JsonProperty("adsConsentSetAt", NullValueHandling = NullValueHandling.Include)] + public DateTime? AdsConsentSetAt { get; set; } + + /// + /// Unknown + /// + [JsonProperty("anonymous")] + public bool? Anonymous { get; set; } = false; + + /// + /// The account token + /// + [JsonProperty("authToken")] + public string AuthToken { get; set; } = default!; + + /// + /// If the two-factor authentication backup codes have been created + /// + [JsonProperty("backupCodesCreated")] + public bool? BackupCodesCreated { get; set; } = false; + + /// + /// If the account has been confirmed + /// + [JsonProperty("confirmed")] + public bool? Confirmed { get; set; } = false; + + /// + /// The account country + /// + [JsonProperty("country")] + public string Country { get; set; } = default!; + + /// + /// The account email address + /// + [JsonProperty("email")] + public string Email { get; set; } = default!; + + /// + /// If login with email only is enabled + /// + [JsonProperty("emailOnlyAuth")] + public bool? EmailOnlyAuth { get; set; } = false; + + /// + /// If experimental features are enabled + /// + [JsonProperty("experimentalFeatures")] + public bool? ExperimentalFeatures { get; set; } = false; + + /// + /// Your account full name + /// + [JsonProperty("friendlyName")] + public string FriendlyName { get; set; } = default!; + + /// + /// List of devices your allowed to use with this account + /// + [JsonProperty("entitlements")] + public List Entitlements { get; set; } = default!; + + /// + /// If the account is a Plex Home guest user + /// + [JsonProperty("guest")] + public bool? Guest { get; set; } = false; + + /// + /// If the account has a password + /// + [JsonProperty("hasPassword")] + public bool? HasPassword { get; set; } = true; + + /// + /// If the account is a Plex Home user + /// + [JsonProperty("home")] + public bool? Home { get; set; } = false; + + /// + /// If the account is the Plex Home admin + /// + [JsonProperty("homeAdmin")] + public bool? HomeAdmin { get; set; } = false; + + /// + /// The number of accounts in the Plex Home + /// + [JsonProperty("homeSize")] + public int HomeSize { get; set; } = default!; + + /// + /// The Plex account ID + /// + [JsonProperty("id")] + public int Id { get; set; } = default!; + + /// + /// Unix epoch datetime the account joined Plex + /// + [JsonProperty("joinedAt")] + public int JoinedAt { get; set; } = default!; + + /// + /// The account locale + /// + [JsonProperty("locale", NullValueHandling = NullValueHandling.Include)] + public string? Locale { get; set; } + + /// + /// If you are subscribed to the Plex newsletter + /// + [JsonProperty("mailingListActive")] + public bool? MailingListActive { get; set; } = false; + + /// + /// Your current mailing list status + /// + [JsonProperty("mailingListStatus")] + public MailingListStatus MailingListStatus { get; set; } = default!; + + /// + /// The maximum number of accounts allowed in the Plex Home + /// + [JsonProperty("maxHomeSize")] + public int MaxHomeSize { get; set; } = default!; + + /// + /// [Might be removed] The hashed Plex Home PIN + /// + [Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible")] + [JsonProperty("pin")] + public string? Pin { get; set; } + + [JsonProperty("profile")] + public List Profile { get; set; } = default!; + + /// + /// If the account has a Plex Home PIN enabled + /// + [JsonProperty("protected")] + public bool? Protected { get; set; } = false; + + /// + /// Unix epoch datetime the authtoken expires + /// + [JsonProperty("rememberExpiresAt")] + public int RememberExpiresAt { get; set; } = default!; + + /// + /// If the account is a Plex Home managed user + /// + [JsonProperty("restricted")] + public bool? Restricted { get; set; } = false; + + /// + /// [Might be removed] List of account roles. Plexpass membership listed here + /// + [JsonProperty("roles")] + public List? Roles { get; set; } + + /// + /// Unknown + /// + [JsonProperty("scrobbleTypes")] + public string ScrobbleTypes { get; set; } = default!; + + [JsonProperty("services")] + public List Services { get; set; } = default!; + + /// + /// If the account’s Plex Pass subscription is active + /// + [JsonProperty("subscription")] + public Subscription Subscription { get; set; } = default!; + + /// + /// Description of the Plex Pass subscription + /// + [JsonProperty("subscriptionDescription", NullValueHandling = NullValueHandling.Include)] + public string? SubscriptionDescription { get; set; } + + [JsonProperty("subscriptions")] + public List Subscriptions { get; set; } = default!; + + /// + /// URL of the account thumbnail + /// + [JsonProperty("thumb")] + public string Thumb { get; set; } = default!; + + /// + /// The title of the account (username or friendly name) + /// + [JsonProperty("title")] + public string Title { get; set; } = default!; + + /// + /// If two-factor authentication is enabled + /// + [JsonProperty("twoFactorEnabled")] + public bool? TwoFactorEnabled { get; set; } = false; + + /// + /// The account username + /// + [JsonProperty("username")] + public string Username { get; set; } = default!; + + /// + /// The account UUID + /// + [JsonProperty("uuid")] + public string Uuid { get; set; } = default!; + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/GetUserFriendsResponse.cs b/PlexAPI/Models/Requests/GetUserFriendsResponse.cs new file mode 100644 index 0000000..e7ec0c4 --- /dev/null +++ b/PlexAPI/Models/Requests/GetUserFriendsResponse.cs @@ -0,0 +1,41 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using PlexAPI.Models.Requests; + using PlexAPI.Utils; + using System.Collections.Generic; + using System.Net.Http; + using System; + + public class GetUserFriendsResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage RawResponse { get; set; } = default!; + + /// + /// Friends Data + /// + public List? Friends { get; set; } + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/GetWatchlistRequest.cs b/PlexAPI/Models/Requests/GetWatchlistRequest.cs index 2129737..eedf677 100644 --- a/PlexAPI/Models/Requests/GetWatchlistRequest.cs +++ b/PlexAPI/Models/Requests/GetWatchlistRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetWatchlistResponse.cs b/PlexAPI/Models/Requests/GetWatchlistResponse.cs index 0f8e9e5..c87e731 100644 --- a/PlexAPI/Models/Requests/GetWatchlistResponse.cs +++ b/PlexAPI/Models/Requests/GetWatchlistResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetWatchlistResponseBody.cs b/PlexAPI/Models/Requests/GetWatchlistResponseBody.cs index 341054b..564f287 100644 --- a/PlexAPI/Models/Requests/GetWatchlistResponseBody.cs +++ b/PlexAPI/Models/Requests/GetWatchlistResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/Guids.cs b/PlexAPI/Models/Requests/Guids.cs index a053005..fc8ef34 100644 --- a/PlexAPI/Models/Requests/Guids.cs +++ b/PlexAPI/Models/Requests/Guids.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/Hub.cs b/PlexAPI/Models/Requests/Hub.cs index 5b4eb50..67b370c 100644 --- a/PlexAPI/Models/Requests/Hub.cs +++ b/PlexAPI/Models/Requests/Hub.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/Image.cs b/PlexAPI/Models/Requests/Image.cs index 3ef8de1..5716ed7 100644 --- a/PlexAPI/Models/Requests/Image.cs +++ b/PlexAPI/Models/Requests/Image.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/IncludeCollections.cs b/PlexAPI/Models/Requests/IncludeCollections.cs index 67938ff..d8c83f7 100644 --- a/PlexAPI/Models/Requests/IncludeCollections.cs +++ b/PlexAPI/Models/Requests/IncludeCollections.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/IncludeDetails.cs b/PlexAPI/Models/Requests/IncludeDetails.cs index 3d46d46..20bf307 100644 --- a/PlexAPI/Models/Requests/IncludeDetails.cs +++ b/PlexAPI/Models/Requests/IncludeDetails.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/IncludeExternalMedia.cs b/PlexAPI/Models/Requests/IncludeExternalMedia.cs index b5e23f6..3ec8054 100644 --- a/PlexAPI/Models/Requests/IncludeExternalMedia.cs +++ b/PlexAPI/Models/Requests/IncludeExternalMedia.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/GetLibrariesLocation.cs b/PlexAPI/Models/Requests/IncludeHttps.cs similarity index 58% rename from PlexAPI/Models/Requests/GetLibrariesLocation.cs rename to PlexAPI/Models/Requests/IncludeHttps.cs index 374eae9..b5eb020 100644 --- a/PlexAPI/Models/Requests/GetLibrariesLocation.cs +++ b/PlexAPI/Models/Requests/IncludeHttps.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -9,16 +9,15 @@ #nullable enable namespace PlexAPI.Models.Requests { - using Newtonsoft.Json; using PlexAPI.Utils; - public class GetLibrariesLocation + /// + /// Include Https entries in the results + /// + public enum IncludeHttps { - - [JsonProperty("id")] - public int? Id { get; set; } - - [JsonProperty("path")] - public string? Path { get; set; } + Zero = 0, + One = 1, } + } \ No newline at end of file diff --git a/PlexAPI/Models/Requests/IncludeIPv6.cs b/PlexAPI/Models/Requests/IncludeIPv6.cs new file mode 100644 index 0000000..fe9d602 --- /dev/null +++ b/PlexAPI/Models/Requests/IncludeIPv6.cs @@ -0,0 +1,23 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using PlexAPI.Utils; + + /// + /// Include IPv6 entries in the results + /// + public enum IncludeIPv6 + { + Zero = 0, + One = 1, + } + +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/IncludeRelay.cs b/PlexAPI/Models/Requests/IncludeRelay.cs new file mode 100644 index 0000000..6a77d23 --- /dev/null +++ b/PlexAPI/Models/Requests/IncludeRelay.cs @@ -0,0 +1,23 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using PlexAPI.Utils; + + /// + /// Include Relay addresses in the results + /// + public enum IncludeRelay + { + Zero = 0, + One = 1, + } + +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/InternalPaymentMethod.cs b/PlexAPI/Models/Requests/InternalPaymentMethod.cs new file mode 100644 index 0000000..a43daa3 --- /dev/null +++ b/PlexAPI/Models/Requests/InternalPaymentMethod.cs @@ -0,0 +1,17 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using PlexAPI.Utils; + + public class InternalPaymentMethod + { + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/Level.cs b/PlexAPI/Models/Requests/Level.cs index 7dac163..ac08970 100644 --- a/PlexAPI/Models/Requests/Level.cs +++ b/PlexAPI/Models/Requests/Level.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/LibrarySectionID.cs b/PlexAPI/Models/Requests/LibrarySectionID.cs index b8ebe53..1972135 100644 --- a/PlexAPI/Models/Requests/LibrarySectionID.cs +++ b/PlexAPI/Models/Requests/LibrarySectionID.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -53,15 +53,19 @@ namespace PlexAPI.Models.Requests return Value.GetHashCode(); } } - + [JsonConverter(typeof(LibrarySectionID.LibrarySectionIDConverter))] public class LibrarySectionID { public LibrarySectionID(LibrarySectionIDType type) { Type = type; } - public long? Integer { get; set; } - public string? Str { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public long? Integer { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public string? Str { get; set; } public LibrarySectionIDType Type { get; set; } @@ -116,14 +120,14 @@ namespace PlexAPI.Models.Requests { // try next option } - + if (json[0] == '"' && json[^1] == '"'){ return new LibrarySectionID(LibrarySectionIDType.Str) { Str = json[1..^1] }; } - + if (fallbackCandidates.Count > 0) { fallbackCandidates.Sort((a, b) => ResponseBodyDeserializer.CompareFallbackCandidates(a.Item1, b.Item1, json)); @@ -144,7 +148,6 @@ namespace PlexAPI.Models.Requests } } - throw new InvalidOperationException("Could not deserialize into any supported types."); } @@ -172,8 +175,8 @@ namespace PlexAPI.Models.Requests } } + } } - } \ No newline at end of file diff --git a/PlexAPI/Models/Requests/Libtype.cs b/PlexAPI/Models/Requests/Libtype.cs index afa4ac2..ae3c487 100644 --- a/PlexAPI/Models/Requests/Libtype.cs +++ b/PlexAPI/Models/Requests/Libtype.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/Location.cs b/PlexAPI/Models/Requests/Location.cs index 7b59681..be2a564 100644 --- a/PlexAPI/Models/Requests/Location.cs +++ b/PlexAPI/Models/Requests/Location.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -15,34 +15,10 @@ namespace PlexAPI.Models.Requests public class Location { - [JsonProperty("code")] - public string? Code { get; set; } + [JsonProperty("id")] + public int? Id { get; set; } - [JsonProperty("european_union_member")] - public bool? EuropeanUnionMember { get; set; } - - [JsonProperty("continent_code")] - public string? ContinentCode { get; set; } - - [JsonProperty("country")] - public string? Country { get; set; } - - [JsonProperty("city")] - public string? City { get; set; } - - [JsonProperty("time_zone")] - public string? TimeZone { get; set; } - - [JsonProperty("postal_code")] - public string? PostalCode { get; set; } - - [JsonProperty("in_privacy_restricted_country")] - public bool? InPrivacyRestrictedCountry { get; set; } - - [JsonProperty("subdivisions")] - public string? Subdivisions { get; set; } - - [JsonProperty("coordinates")] - public string? Coordinates { get; set; } + [JsonProperty("path")] + public string? Path { get; set; } } } \ No newline at end of file diff --git a/PlexAPI/Models/Requests/LogLineRequest.cs b/PlexAPI/Models/Requests/LogLineRequest.cs index e601a43..0c4286d 100644 --- a/PlexAPI/Models/Requests/LogLineRequest.cs +++ b/PlexAPI/Models/Requests/LogLineRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/LogLineResponse.cs b/PlexAPI/Models/Requests/LogLineResponse.cs index ae03e10..a9d8dc4 100644 --- a/PlexAPI/Models/Requests/LogLineResponse.cs +++ b/PlexAPI/Models/Requests/LogLineResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/LogMultiLineResponse.cs b/PlexAPI/Models/Requests/LogMultiLineResponse.cs index 1396395..9b27c02 100644 --- a/PlexAPI/Models/Requests/LogMultiLineResponse.cs +++ b/PlexAPI/Models/Requests/LogMultiLineResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/MailingListStatus.cs b/PlexAPI/Models/Requests/MailingListStatus.cs new file mode 100644 index 0000000..ec10aed --- /dev/null +++ b/PlexAPI/Models/Requests/MailingListStatus.cs @@ -0,0 +1,60 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using PlexAPI.Utils; + using System; + + /// + /// Your current mailing list status + /// + public enum MailingListStatus + { + [JsonProperty("subscribed")] + Subscribed, + [JsonProperty("unsubscribed")] + Unsubscribed, + } + + public static class MailingListStatusExtension + { + public static string Value(this MailingListStatus value) + { + return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); + } + + public static MailingListStatus ToEnum(this string value) + { + foreach(var field in typeof(MailingListStatus).GetFields()) + { + var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); + if (attributes.Length == 0) + { + continue; + } + + var attribute = attributes[0] as JsonPropertyAttribute; + if (attribute != null && attribute.PropertyName == value) + { + var enumVal = field.GetValue(null); + + if (enumVal is MailingListStatus) + { + return (MailingListStatus)enumVal; + } + } + } + + throw new Exception($"Unknown value {value} for enum MailingListStatus"); + } + } + +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/MarkPlayedRequest.cs b/PlexAPI/Models/Requests/MarkPlayedRequest.cs index a2ba26c..5361dc5 100644 --- a/PlexAPI/Models/Requests/MarkPlayedRequest.cs +++ b/PlexAPI/Models/Requests/MarkPlayedRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/MarkPlayedResponse.cs b/PlexAPI/Models/Requests/MarkPlayedResponse.cs index 8eac32b..de058e8 100644 --- a/PlexAPI/Models/Requests/MarkPlayedResponse.cs +++ b/PlexAPI/Models/Requests/MarkPlayedResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/MarkUnplayedRequest.cs b/PlexAPI/Models/Requests/MarkUnplayedRequest.cs index 66b08a7..a52408c 100644 --- a/PlexAPI/Models/Requests/MarkUnplayedRequest.cs +++ b/PlexAPI/Models/Requests/MarkUnplayedRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/MarkUnplayedResponse.cs b/PlexAPI/Models/Requests/MarkUnplayedResponse.cs index 2f86b95..7ac2f95 100644 --- a/PlexAPI/Models/Requests/MarkUnplayedResponse.cs +++ b/PlexAPI/Models/Requests/MarkUnplayedResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/Media.cs b/PlexAPI/Models/Requests/Media.cs index 67cb81c..0c3c3e2 100644 --- a/PlexAPI/Models/Requests/Media.cs +++ b/PlexAPI/Models/Requests/Media.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/MediaContainer.cs b/PlexAPI/Models/Requests/MediaContainer.cs index 5c961f9..5830b7f 100644 --- a/PlexAPI/Models/Requests/MediaContainer.cs +++ b/PlexAPI/Models/Requests/MediaContainer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/Metadata.cs b/PlexAPI/Models/Requests/Metadata.cs index b4c77d3..0b373e8 100644 --- a/PlexAPI/Models/Requests/Metadata.cs +++ b/PlexAPI/Models/Requests/Metadata.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/MinSize.cs b/PlexAPI/Models/Requests/MinSize.cs index 083b8b5..4534079 100644 --- a/PlexAPI/Models/Requests/MinSize.cs +++ b/PlexAPI/Models/Requests/MinSize.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/MyPlex.cs b/PlexAPI/Models/Requests/MyPlex.cs index b18881a..e3df2d2 100644 --- a/PlexAPI/Models/Requests/MyPlex.cs +++ b/PlexAPI/Models/Requests/MyPlex.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/OnlyTransient.cs b/PlexAPI/Models/Requests/OnlyTransient.cs index 22767d3..a1398fe 100644 --- a/PlexAPI/Models/Requests/OnlyTransient.cs +++ b/PlexAPI/Models/Requests/OnlyTransient.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/Operator.cs b/PlexAPI/Models/Requests/Operator.cs index 1c937d8..61aebeb 100644 --- a/PlexAPI/Models/Requests/Operator.cs +++ b/PlexAPI/Models/Requests/Operator.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/Part.cs b/PlexAPI/Models/Requests/Part.cs index e453114..6b0f755 100644 --- a/PlexAPI/Models/Requests/Part.cs +++ b/PlexAPI/Models/Requests/Part.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/PastSubscription.cs b/PlexAPI/Models/Requests/PastSubscription.cs new file mode 100644 index 0000000..ef97fc1 --- /dev/null +++ b/PlexAPI/Models/Requests/PastSubscription.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using PlexAPI.Models.Requests; + using PlexAPI.Utils; + using System.Collections.Generic; + + public class PastSubscription + { + + [JsonProperty("id", NullValueHandling = NullValueHandling.Include)] + public string? Id { get; set; } + + [JsonProperty("mode", NullValueHandling = NullValueHandling.Include)] + public string? Mode { get; set; } + + /// + /// Unix epoch datetime + /// + [JsonProperty("renewsAt", NullValueHandling = NullValueHandling.Include)] + public int? RenewsAt { get; set; } + + /// + /// Unix epoch datetime + /// + [JsonProperty("endsAt", NullValueHandling = NullValueHandling.Include)] + public int? EndsAt { get; set; } + + [JsonProperty("canceled")] + public bool? Canceled { get; set; } = false; + + [JsonProperty("gracePeriod")] + public bool? GracePeriod { get; set; } = false; + + [JsonProperty("onHold")] + public bool? OnHold { get; set; } = false; + + [JsonProperty("canReactivate")] + public bool? CanReactivate { get; set; } = false; + + [JsonProperty("canUpgrade")] + public bool? CanUpgrade { get; set; } = false; + + [JsonProperty("canDowngrade")] + public bool? CanDowngrade { get; set; } = false; + + [JsonProperty("canConvert")] + public bool? CanConvert { get; set; } = false; + + [JsonProperty("type")] + public string Type { get; set; } = default!; + + [JsonProperty("transfer", NullValueHandling = NullValueHandling.Include)] + public string? Transfer { get; set; } + + [JsonProperty("state")] + public PostUsersSigninDataState State { get; set; } = default!; + + [JsonProperty("billing")] + public List Billing { get; set; } = default!; + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/PathParamFilter.cs b/PlexAPI/Models/Requests/PathParamFilter.cs index 8c871de..8bb4c61 100644 --- a/PlexAPI/Models/Requests/PathParamFilter.cs +++ b/PlexAPI/Models/Requests/PathParamFilter.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/PathParamTaskName.cs b/PlexAPI/Models/Requests/PathParamTaskName.cs index 524e1ae..f82dc9c 100644 --- a/PlexAPI/Models/Requests/PathParamTaskName.cs +++ b/PlexAPI/Models/Requests/PathParamTaskName.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/PerformSearchRequest.cs b/PlexAPI/Models/Requests/PerformSearchRequest.cs index b09d656..bb3ea14 100644 --- a/PlexAPI/Models/Requests/PerformSearchRequest.cs +++ b/PlexAPI/Models/Requests/PerformSearchRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/PerformSearchResponse.cs b/PlexAPI/Models/Requests/PerformSearchResponse.cs index 3da6674..8a78ac5 100644 --- a/PlexAPI/Models/Requests/PerformSearchResponse.cs +++ b/PlexAPI/Models/Requests/PerformSearchResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/PerformVoiceSearchRequest.cs b/PlexAPI/Models/Requests/PerformVoiceSearchRequest.cs index 5bdc647..0a226a2 100644 --- a/PlexAPI/Models/Requests/PerformVoiceSearchRequest.cs +++ b/PlexAPI/Models/Requests/PerformVoiceSearchRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/PerformVoiceSearchResponse.cs b/PlexAPI/Models/Requests/PerformVoiceSearchResponse.cs index d0a2703..4b3a26b 100644 --- a/PlexAPI/Models/Requests/PerformVoiceSearchResponse.cs +++ b/PlexAPI/Models/Requests/PerformVoiceSearchResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/Player.cs b/PlexAPI/Models/Requests/Player.cs index 95ee717..fd18d38 100644 --- a/PlexAPI/Models/Requests/Player.cs +++ b/PlexAPI/Models/Requests/Player.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/PlaylistType.cs b/PlexAPI/Models/Requests/PlaylistType.cs index cfe1819..a36f5eb 100644 --- a/PlexAPI/Models/Requests/PlaylistType.cs +++ b/PlexAPI/Models/Requests/PlaylistType.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/PlexDevice.cs b/PlexAPI/Models/Requests/PlexDevice.cs new file mode 100644 index 0000000..ca93af1 --- /dev/null +++ b/PlexAPI/Models/Requests/PlexDevice.cs @@ -0,0 +1,93 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using PlexAPI.Models.Requests; + using PlexAPI.Utils; + using System.Collections.Generic; + using System; + + public class PlexDevice + { + + [JsonProperty("name")] + public string Name { get; set; } = default!; + + [JsonProperty("product")] + public string Product { get; set; } = default!; + + [JsonProperty("productVersion")] + public string ProductVersion { get; set; } = default!; + + [JsonProperty("platform")] + public string Platform { get; set; } = default!; + + [JsonProperty("platformVersion")] + public string PlatformVersion { get; set; } = default!; + + [JsonProperty("device")] + public string Device { get; set; } = default!; + + [JsonProperty("clientIdentifier")] + public string ClientIdentifier { get; set; } = default!; + + [JsonProperty("createdAt")] + public DateTime CreatedAt { get; set; } = default!; + + [JsonProperty("lastSeenAt")] + public DateTime LastSeenAt { get; set; } = default!; + + [JsonProperty("provides")] + public string Provides { get; set; } = default!; + + [JsonProperty("ownerId")] + public string? OwnerId { get; set; } + + [JsonProperty("sourceTitle")] + public string? SourceTitle { get; set; } + + [JsonProperty("publicAddress")] + public string? PublicAddress { get; set; } + + [JsonProperty("accessToken")] + public string? AccessToken { get; set; } + + [JsonProperty("owned")] + public bool? Owned { get; set; } + + [JsonProperty("home")] + public bool? Home { get; set; } + + [JsonProperty("synced")] + public bool? Synced { get; set; } + + [JsonProperty("relay")] + public bool? Relay { get; set; } + + [JsonProperty("presence")] + public bool? Presence { get; set; } + + [JsonProperty("httpsRequired")] + public bool? HttpsRequired { get; set; } + + [JsonProperty("publicAddressMatches")] + public bool? PublicAddressMatches { get; set; } + + [JsonProperty("dnsRebindingProtection")] + public bool? DnsRebindingProtection { get; set; } + + [JsonProperty("natLoopbackSupported")] + public bool? NatLoopbackSupported { get; set; } + + [JsonProperty("connections")] + public List? Connections { get; set; } + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/PostUsersSigninDataFeatures.cs b/PlexAPI/Models/Requests/PostUsersSigninDataFeatures.cs new file mode 100644 index 0000000..fcaf966 --- /dev/null +++ b/PlexAPI/Models/Requests/PostUsersSigninDataFeatures.cs @@ -0,0 +1,171 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using PlexAPI.Utils; + using System; + + public enum PostUsersSigninDataFeatures + { + [JsonProperty("Android - Dolby Vision")] + AndroidDolbyVision, + [JsonProperty("Android - PiP")] + AndroidPiP, + [JsonProperty("CU Sunset")] + CUSunset, + [JsonProperty("HRK_enable_EUR")] + HRKEnableEUR, + [JsonProperty("TREBLE-show-features")] + TREBLEShowFeatures, + [JsonProperty("ad-countdown-timer")] + AdCountdownTimer, + [JsonProperty("adaptive_bitrate")] + AdaptiveBitrate, + [JsonProperty("amazon-loop-debug")] + AmazonLoopDebug, + [JsonProperty("avod-ad-analysis")] + AvodAdAnalysis, + [JsonProperty("avod-new-media")] + AvodNewMedia, + [JsonProperty("blacklist_get_signin")] + BlacklistGetSignin, + [JsonProperty("client-radio-stations")] + ClientRadioStations, + [JsonProperty("cloudflare-turnstile-required")] + CloudflareTurnstileRequired, + [JsonProperty("collections")] + Collections, + [JsonProperty("comments_and_replies_push_notifications")] + CommentsAndRepliesPushNotifications, + [JsonProperty("community_access_plex_tv")] + CommunityAccessPlexTv, + [JsonProperty("companions_sonos")] + CompanionsSonos, + [JsonProperty("custom-home-removal")] + CustomHomeRemoval, + [JsonProperty("disable_home_user_friendships")] + DisableHomeUserFriendships, + [JsonProperty("disable_sharing_friendships")] + DisableSharingFriendships, + [JsonProperty("drm_support")] + DrmSupport, + [JsonProperty("exclude restrictions")] + ExcludeRestrictions, + [JsonProperty("federated-auth")] + FederatedAuth, + [JsonProperty("friend_request_push_notifications")] + FriendRequestPushNotifications, + [JsonProperty("guided-upgrade")] + GuidedUpgrade, + [JsonProperty("home")] + Home, + [JsonProperty("increase-password-complexity")] + IncreasePasswordComplexity, + [JsonProperty("ios14-privacy-banner")] + Ios14PrivacyBanner, + [JsonProperty("iterable-notification-tokens")] + IterableNotificationTokens, + [JsonProperty("keep-payment-method")] + KeepPaymentMethod, + [JsonProperty("kevin-bacon")] + KevinBacon, + [JsonProperty("korea-consent")] + KoreaConsent, + [JsonProperty("le_isrg_root_x1")] + LeIsrgRootX1, + [JsonProperty("lets_encrypt")] + LetsEncrypt, + [JsonProperty("lightning-dvr-pivot")] + LightningDvrPivot, + [JsonProperty("live-tv-support-incomplete-segments")] + LiveTvSupportIncompleteSegments, + [JsonProperty("livetv")] + Livetv, + [JsonProperty("metadata_search")] + MetadataSearch, + [JsonProperty("new_plex_pass_prices")] + NewPlexPassPrices, + [JsonProperty("news-provider-sunset-modal")] + NewsProviderSunsetModal, + [JsonProperty("photos-favorites")] + PhotosFavorites, + [JsonProperty("photos-metadata-edition")] + PhotosMetadataEdition, + [JsonProperty("pms_health")] + PmsHealth, + [JsonProperty("radio")] + Radio, + [JsonProperty("rate-limit-client-token")] + RateLimitClientToken, + [JsonProperty("scrobbling-service-plex-tv")] + ScrobblingServicePlexTv, + [JsonProperty("shared_server_notification")] + SharedServerNotification, + [JsonProperty("shared_source_notification")] + SharedSourceNotification, + [JsonProperty("signin_with_apple")] + SigninWithApple, + [JsonProperty("spring_serve_ad_provider")] + SpringServeAdProvider, + [JsonProperty("transcoder_cache")] + TranscoderCache, + [JsonProperty("tuner-sharing")] + TunerSharing, + [JsonProperty("two-factor-authentication")] + TwoFactorAuthentication, + [JsonProperty("unsupportedtuners")] + Unsupportedtuners, + [JsonProperty("upgrade-3ds2")] + Upgrade3ds2, + [JsonProperty("vod-schema")] + VodSchema, + [JsonProperty("vod_cloudflare")] + VodCloudflare, + [JsonProperty("watch-together-invite")] + WatchTogetherInvite, + [JsonProperty("web_server_dashboard")] + WebServerDashboard, + } + + public static class PostUsersSigninDataFeaturesExtension + { + public static string Value(this PostUsersSigninDataFeatures value) + { + return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); + } + + public static PostUsersSigninDataFeatures ToEnum(this string value) + { + foreach(var field in typeof(PostUsersSigninDataFeatures).GetFields()) + { + var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); + if (attributes.Length == 0) + { + continue; + } + + var attribute = attributes[0] as JsonPropertyAttribute; + if (attribute != null && attribute.PropertyName == value) + { + var enumVal = field.GetValue(null); + + if (enumVal is PostUsersSigninDataFeatures) + { + return (PostUsersSigninDataFeatures)enumVal; + } + } + } + + throw new Exception($"Unknown value {value} for enum PostUsersSigninDataFeatures"); + } + } + +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/PostUsersSigninDataMailingListStatus.cs b/PlexAPI/Models/Requests/PostUsersSigninDataMailingListStatus.cs new file mode 100644 index 0000000..c933746 --- /dev/null +++ b/PlexAPI/Models/Requests/PostUsersSigninDataMailingListStatus.cs @@ -0,0 +1,60 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using PlexAPI.Utils; + using System; + + /// + /// Your current mailing list status + /// + public enum PostUsersSigninDataMailingListStatus + { + [JsonProperty("subscribed")] + Subscribed, + [JsonProperty("unsubscribed")] + Unsubscribed, + } + + public static class PostUsersSigninDataMailingListStatusExtension + { + public static string Value(this PostUsersSigninDataMailingListStatus value) + { + return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); + } + + public static PostUsersSigninDataMailingListStatus ToEnum(this string value) + { + foreach(var field in typeof(PostUsersSigninDataMailingListStatus).GetFields()) + { + var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); + if (attributes.Length == 0) + { + continue; + } + + var attribute = attributes[0] as JsonPropertyAttribute; + if (attribute != null && attribute.PropertyName == value) + { + var enumVal = field.GetValue(null); + + if (enumVal is PostUsersSigninDataMailingListStatus) + { + return (PostUsersSigninDataMailingListStatus)enumVal; + } + } + } + + throw new Exception($"Unknown value {value} for enum PostUsersSigninDataMailingListStatus"); + } + } + +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/PostUsersSigninDataRequest.cs b/PlexAPI/Models/Requests/PostUsersSigninDataRequest.cs new file mode 100644 index 0000000..654ca9a --- /dev/null +++ b/PlexAPI/Models/Requests/PostUsersSigninDataRequest.cs @@ -0,0 +1,36 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using PlexAPI.Models.Requests; + using PlexAPI.Utils; + + public class PostUsersSigninDataRequest + { + + /// + /// The unique identifier for the client application
+ /// + /// + /// This is used to track the client application and its usage
+ /// (UUID, serial number, or other number unique per device)
+ /// + ///
+ ///
+ [SpeakeasyMetadata("header:style=simple,explode=false,name=X-Plex-Client-Identifier")] + public string? XPlexClientIdentifier { get; set; } + + /// + /// Login credentials + /// + [SpeakeasyMetadata("request:mediaType=application/x-www-form-urlencoded")] + public PostUsersSigninDataRequestBody? RequestBody { get; set; } + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/PostUsersSigninDataRequestBody.cs b/PlexAPI/Models/Requests/PostUsersSigninDataRequestBody.cs new file mode 100644 index 0000000..bb5fdd0 --- /dev/null +++ b/PlexAPI/Models/Requests/PostUsersSigninDataRequestBody.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using PlexAPI.Utils; + + /// + /// Login credentials + /// + public class PostUsersSigninDataRequestBody + { + + [SpeakeasyMetadata("form:name=login")] + public string Login { get; set; } = default!; + + [SpeakeasyMetadata("form:name=password")] + public string Password { get; set; } = default!; + + [SpeakeasyMetadata("form:name=rememberMe")] + public bool? RememberMe { get; set; } = false; + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/PostUsersSigninDataResponse.cs b/PlexAPI/Models/Requests/PostUsersSigninDataResponse.cs new file mode 100644 index 0000000..8064164 --- /dev/null +++ b/PlexAPI/Models/Requests/PostUsersSigninDataResponse.cs @@ -0,0 +1,40 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using PlexAPI.Models.Requests; + using PlexAPI.Utils; + using System.Net.Http; + using System; + + public class PostUsersSigninDataResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage RawResponse { get; set; } = default!; + + /// + /// Returns the user account data with a valid auth token + /// + public PostUsersSigninDataUserPlexAccount? UserPlexAccount { get; set; } + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/PostUsersSigninDataServices.cs b/PlexAPI/Models/Requests/PostUsersSigninDataServices.cs new file mode 100644 index 0000000..2716b7a --- /dev/null +++ b/PlexAPI/Models/Requests/PostUsersSigninDataServices.cs @@ -0,0 +1,34 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using PlexAPI.Models.Requests; + using PlexAPI.Utils; + + public class PostUsersSigninDataServices + { + + [JsonProperty("identifier")] + public string Identifier { get; set; } = default!; + + [JsonProperty("endpoint")] + public string Endpoint { get; set; } = default!; + + [JsonProperty("token", NullValueHandling = NullValueHandling.Include)] + public string? Token { get; set; } + + [JsonProperty("secret", NullValueHandling = NullValueHandling.Include)] + public string? Secret { get; set; } + + [JsonProperty("status")] + public PostUsersSigninDataStatus Status { get; set; } = default!; + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/PostUsersSigninDataState.cs b/PlexAPI/Models/Requests/PostUsersSigninDataState.cs new file mode 100644 index 0000000..5b641d3 --- /dev/null +++ b/PlexAPI/Models/Requests/PostUsersSigninDataState.cs @@ -0,0 +1,55 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using PlexAPI.Utils; + using System; + + public enum PostUsersSigninDataState + { + [JsonProperty("ended")] + Ended, + } + + public static class PostUsersSigninDataStateExtension + { + public static string Value(this PostUsersSigninDataState value) + { + return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); + } + + public static PostUsersSigninDataState ToEnum(this string value) + { + foreach(var field in typeof(PostUsersSigninDataState).GetFields()) + { + var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); + if (attributes.Length == 0) + { + continue; + } + + var attribute = attributes[0] as JsonPropertyAttribute; + if (attribute != null && attribute.PropertyName == value) + { + var enumVal = field.GetValue(null); + + if (enumVal is PostUsersSigninDataState) + { + return (PostUsersSigninDataState)enumVal; + } + } + } + + throw new Exception($"Unknown value {value} for enum PostUsersSigninDataState"); + } + } + +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/PostUsersSigninDataStatus.cs b/PlexAPI/Models/Requests/PostUsersSigninDataStatus.cs new file mode 100644 index 0000000..9318d8e --- /dev/null +++ b/PlexAPI/Models/Requests/PostUsersSigninDataStatus.cs @@ -0,0 +1,57 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using PlexAPI.Utils; + using System; + + public enum PostUsersSigninDataStatus + { + [JsonProperty("online")] + Online, + [JsonProperty("offline")] + Offline, + } + + public static class PostUsersSigninDataStatusExtension + { + public static string Value(this PostUsersSigninDataStatus value) + { + return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); + } + + public static PostUsersSigninDataStatus ToEnum(this string value) + { + foreach(var field in typeof(PostUsersSigninDataStatus).GetFields()) + { + var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); + if (attributes.Length == 0) + { + continue; + } + + var attribute = attributes[0] as JsonPropertyAttribute; + if (attribute != null && attribute.PropertyName == value) + { + var enumVal = field.GetValue(null); + + if (enumVal is PostUsersSigninDataStatus) + { + return (PostUsersSigninDataStatus)enumVal; + } + } + } + + throw new Exception($"Unknown value {value} for enum PostUsersSigninDataStatus"); + } + } + +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/PostUsersSigninDataSubscription.cs b/PlexAPI/Models/Requests/PostUsersSigninDataSubscription.cs new file mode 100644 index 0000000..590b16a --- /dev/null +++ b/PlexAPI/Models/Requests/PostUsersSigninDataSubscription.cs @@ -0,0 +1,60 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using PlexAPI.Models.Requests; + using PlexAPI.Utils; + using System.Collections.Generic; + using System; + + /// + /// If the account’s Plex Pass subscription is active + /// + public class PostUsersSigninDataSubscription + { + + /// + /// List of features allowed on your Plex Pass subscription + /// + [JsonProperty("features")] + public List? Features { get; set; } + + /// + /// If the account's Plex Pass subscription is active + /// + [JsonProperty("active")] + public bool? Active { get; set; } + + /// + /// Date the account subscribed to Plex Pass + /// + [JsonProperty("subscribedAt")] + public DateTime? SubscribedAt { get; set; } + + /// + /// String representation of subscriptionActive + /// + [JsonProperty("status")] + public PostUsersSigninDataUserStatus? Status { get; set; } + + /// + /// Payment service used for your Plex Pass subscription + /// + [JsonProperty("paymentService")] + public string? PaymentService { get; set; } = null; + + /// + /// Name of Plex Pass subscription plan + /// + [JsonProperty("plan")] + public string? Plan { get; set; } = null; + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/PostUsersSigninDataUserFeatures.cs b/PlexAPI/Models/Requests/PostUsersSigninDataUserFeatures.cs new file mode 100644 index 0000000..a57091e --- /dev/null +++ b/PlexAPI/Models/Requests/PostUsersSigninDataUserFeatures.cs @@ -0,0 +1,171 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using PlexAPI.Utils; + using System; + + public enum PostUsersSigninDataUserFeatures + { + [JsonProperty("Android - Dolby Vision")] + AndroidDolbyVision, + [JsonProperty("Android - PiP")] + AndroidPiP, + [JsonProperty("CU Sunset")] + CUSunset, + [JsonProperty("HRK_enable_EUR")] + HRKEnableEUR, + [JsonProperty("TREBLE-show-features")] + TREBLEShowFeatures, + [JsonProperty("ad-countdown-timer")] + AdCountdownTimer, + [JsonProperty("adaptive_bitrate")] + AdaptiveBitrate, + [JsonProperty("amazon-loop-debug")] + AmazonLoopDebug, + [JsonProperty("avod-ad-analysis")] + AvodAdAnalysis, + [JsonProperty("avod-new-media")] + AvodNewMedia, + [JsonProperty("blacklist_get_signin")] + BlacklistGetSignin, + [JsonProperty("client-radio-stations")] + ClientRadioStations, + [JsonProperty("cloudflare-turnstile-required")] + CloudflareTurnstileRequired, + [JsonProperty("collections")] + Collections, + [JsonProperty("comments_and_replies_push_notifications")] + CommentsAndRepliesPushNotifications, + [JsonProperty("community_access_plex_tv")] + CommunityAccessPlexTv, + [JsonProperty("companions_sonos")] + CompanionsSonos, + [JsonProperty("custom-home-removal")] + CustomHomeRemoval, + [JsonProperty("disable_home_user_friendships")] + DisableHomeUserFriendships, + [JsonProperty("disable_sharing_friendships")] + DisableSharingFriendships, + [JsonProperty("drm_support")] + DrmSupport, + [JsonProperty("exclude restrictions")] + ExcludeRestrictions, + [JsonProperty("federated-auth")] + FederatedAuth, + [JsonProperty("friend_request_push_notifications")] + FriendRequestPushNotifications, + [JsonProperty("guided-upgrade")] + GuidedUpgrade, + [JsonProperty("home")] + Home, + [JsonProperty("increase-password-complexity")] + IncreasePasswordComplexity, + [JsonProperty("ios14-privacy-banner")] + Ios14PrivacyBanner, + [JsonProperty("iterable-notification-tokens")] + IterableNotificationTokens, + [JsonProperty("keep-payment-method")] + KeepPaymentMethod, + [JsonProperty("kevin-bacon")] + KevinBacon, + [JsonProperty("korea-consent")] + KoreaConsent, + [JsonProperty("le_isrg_root_x1")] + LeIsrgRootX1, + [JsonProperty("lets_encrypt")] + LetsEncrypt, + [JsonProperty("lightning-dvr-pivot")] + LightningDvrPivot, + [JsonProperty("live-tv-support-incomplete-segments")] + LiveTvSupportIncompleteSegments, + [JsonProperty("livetv")] + Livetv, + [JsonProperty("metadata_search")] + MetadataSearch, + [JsonProperty("new_plex_pass_prices")] + NewPlexPassPrices, + [JsonProperty("news-provider-sunset-modal")] + NewsProviderSunsetModal, + [JsonProperty("photos-favorites")] + PhotosFavorites, + [JsonProperty("photos-metadata-edition")] + PhotosMetadataEdition, + [JsonProperty("pms_health")] + PmsHealth, + [JsonProperty("radio")] + Radio, + [JsonProperty("rate-limit-client-token")] + RateLimitClientToken, + [JsonProperty("scrobbling-service-plex-tv")] + ScrobblingServicePlexTv, + [JsonProperty("shared_server_notification")] + SharedServerNotification, + [JsonProperty("shared_source_notification")] + SharedSourceNotification, + [JsonProperty("signin_with_apple")] + SigninWithApple, + [JsonProperty("spring_serve_ad_provider")] + SpringServeAdProvider, + [JsonProperty("transcoder_cache")] + TranscoderCache, + [JsonProperty("tuner-sharing")] + TunerSharing, + [JsonProperty("two-factor-authentication")] + TwoFactorAuthentication, + [JsonProperty("unsupportedtuners")] + Unsupportedtuners, + [JsonProperty("upgrade-3ds2")] + Upgrade3ds2, + [JsonProperty("vod-schema")] + VodSchema, + [JsonProperty("vod_cloudflare")] + VodCloudflare, + [JsonProperty("watch-together-invite")] + WatchTogetherInvite, + [JsonProperty("web_server_dashboard")] + WebServerDashboard, + } + + public static class PostUsersSigninDataUserFeaturesExtension + { + public static string Value(this PostUsersSigninDataUserFeatures value) + { + return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); + } + + public static PostUsersSigninDataUserFeatures ToEnum(this string value) + { + foreach(var field in typeof(PostUsersSigninDataUserFeatures).GetFields()) + { + var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); + if (attributes.Length == 0) + { + continue; + } + + var attribute = attributes[0] as JsonPropertyAttribute; + if (attribute != null && attribute.PropertyName == value) + { + var enumVal = field.GetValue(null); + + if (enumVal is PostUsersSigninDataUserFeatures) + { + return (PostUsersSigninDataUserFeatures)enumVal; + } + } + } + + throw new Exception($"Unknown value {value} for enum PostUsersSigninDataUserFeatures"); + } + } + +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/PostUsersSigninDataUserPlexAccount.cs b/PlexAPI/Models/Requests/PostUsersSigninDataUserPlexAccount.cs new file mode 100644 index 0000000..b009826 --- /dev/null +++ b/PlexAPI/Models/Requests/PostUsersSigninDataUserPlexAccount.cs @@ -0,0 +1,262 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using PlexAPI.Models.Requests; + using PlexAPI.Utils; + using System.Collections.Generic; + using System; + + /// + /// Returns the user account data with a valid auth token + /// + public class PostUsersSigninDataUserPlexAccount + { + + /// + /// Unknown + /// + [JsonProperty("adsConsent", NullValueHandling = NullValueHandling.Include)] + public bool? AdsConsent { get; set; } + + /// + /// Unknown + /// + [JsonProperty("adsConsentReminderAt", NullValueHandling = NullValueHandling.Include)] + public DateTime? AdsConsentReminderAt { get; set; } + + /// + /// Unknown + /// + [JsonProperty("adsConsentSetAt", NullValueHandling = NullValueHandling.Include)] + public DateTime? AdsConsentSetAt { get; set; } + + /// + /// Unknown + /// + [JsonProperty("anonymous")] + public bool? Anonymous { get; set; } = false; + + /// + /// The account token + /// + [JsonProperty("authToken")] + public string AuthToken { get; set; } = default!; + + /// + /// If the two-factor authentication backup codes have been created + /// + [JsonProperty("backupCodesCreated")] + public bool? BackupCodesCreated { get; set; } = false; + + /// + /// If the account has been confirmed + /// + [JsonProperty("confirmed")] + public bool? Confirmed { get; set; } = false; + + /// + /// The account country + /// + [JsonProperty("country")] + public string Country { get; set; } = default!; + + /// + /// The account email address + /// + [JsonProperty("email")] + public string Email { get; set; } = default!; + + /// + /// If login with email only is enabled + /// + [JsonProperty("emailOnlyAuth")] + public bool? EmailOnlyAuth { get; set; } = false; + + /// + /// If experimental features are enabled + /// + [JsonProperty("experimentalFeatures")] + public bool? ExperimentalFeatures { get; set; } = false; + + /// + /// Your account full name + /// + [JsonProperty("friendlyName")] + public string FriendlyName { get; set; } = default!; + + /// + /// List of devices your allowed to use with this account + /// + [JsonProperty("entitlements")] + public List Entitlements { get; set; } = default!; + + /// + /// If the account is a Plex Home guest user + /// + [JsonProperty("guest")] + public bool? Guest { get; set; } = false; + + /// + /// If the account has a password + /// + [JsonProperty("hasPassword")] + public bool? HasPassword { get; set; } = true; + + /// + /// If the account is a Plex Home user + /// + [JsonProperty("home")] + public bool? Home { get; set; } = false; + + /// + /// If the account is the Plex Home admin + /// + [JsonProperty("homeAdmin")] + public bool? HomeAdmin { get; set; } = false; + + /// + /// The number of accounts in the Plex Home + /// + [JsonProperty("homeSize")] + public int HomeSize { get; set; } = default!; + + /// + /// The Plex account ID + /// + [JsonProperty("id")] + public int Id { get; set; } = default!; + + /// + /// Unix epoch datetime the account joined Plex + /// + [JsonProperty("joinedAt")] + public int JoinedAt { get; set; } = default!; + + /// + /// The account locale + /// + [JsonProperty("locale", NullValueHandling = NullValueHandling.Include)] + public string? Locale { get; set; } + + /// + /// If you are subscribed to the Plex newsletter + /// + [JsonProperty("mailingListActive")] + public bool? MailingListActive { get; set; } = false; + + /// + /// Your current mailing list status + /// + [JsonProperty("mailingListStatus")] + public PostUsersSigninDataMailingListStatus MailingListStatus { get; set; } = default!; + + /// + /// The maximum number of accounts allowed in the Plex Home + /// + [JsonProperty("maxHomeSize")] + public int MaxHomeSize { get; set; } = default!; + + /// + /// [Might be removed] The hashed Plex Home PIN + /// + [Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible")] + [JsonProperty("pin")] + public string? Pin { get; set; } + + [JsonProperty("profile")] + public List Profile { get; set; } = default!; + + /// + /// If the account has a Plex Home PIN enabled + /// + [JsonProperty("protected")] + public bool? Protected { get; set; } = false; + + /// + /// Unix epoch datetime the authtoken expires + /// + [JsonProperty("rememberExpiresAt")] + public int RememberExpiresAt { get; set; } = default!; + + /// + /// If the account is a Plex Home managed user + /// + [JsonProperty("restricted")] + public bool? Restricted { get; set; } = false; + + /// + /// [Might be removed] List of account roles. Plexpass membership listed here + /// + [JsonProperty("roles")] + public List? Roles { get; set; } + + /// + /// Unknown + /// + [JsonProperty("scrobbleTypes")] + public string ScrobbleTypes { get; set; } = default!; + + [JsonProperty("services")] + public List Services { get; set; } = default!; + + /// + /// If the account’s Plex Pass subscription is active + /// + [JsonProperty("subscription")] + public PostUsersSigninDataSubscription Subscription { get; set; } = default!; + + /// + /// Description of the Plex Pass subscription + /// + [JsonProperty("subscriptionDescription", NullValueHandling = NullValueHandling.Include)] + public string? SubscriptionDescription { get; set; } + + [JsonProperty("subscriptions")] + public List Subscriptions { get; set; } = default!; + + /// + /// URL of the account thumbnail + /// + [JsonProperty("thumb")] + public string Thumb { get; set; } = default!; + + /// + /// The title of the account (username or friendly name) + /// + [JsonProperty("title")] + public string Title { get; set; } = default!; + + /// + /// If two-factor authentication is enabled + /// + [JsonProperty("twoFactorEnabled")] + public bool? TwoFactorEnabled { get; set; } = false; + + /// + /// The account username + /// + [JsonProperty("username")] + public string Username { get; set; } = default!; + + /// + /// The account UUID + /// + [JsonProperty("uuid")] + public string Uuid { get; set; } = default!; + + [JsonProperty("pastSubscriptions")] + public List PastSubscriptions { get; set; } = default!; + + [JsonProperty("trials")] + public List Trials { get; set; } = default!; + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/PostUsersSigninDataUserProfile.cs b/PlexAPI/Models/Requests/PostUsersSigninDataUserProfile.cs new file mode 100644 index 0000000..78d22d1 --- /dev/null +++ b/PlexAPI/Models/Requests/PostUsersSigninDataUserProfile.cs @@ -0,0 +1,60 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using PlexAPI.Utils; + + public class PostUsersSigninDataUserProfile + { + + /// + /// If the account has automatically select audio and subtitle tracks enabled + /// + [JsonProperty("autoSelectAudio")] + public bool? AutoSelectAudio { get; set; } = true; + + /// + /// The preferred audio language for the account + /// + [JsonProperty("defaultAudioLanguage")] + public string? DefaultAudioLanguage { get; set; } + + /// + /// The preferred subtitle language for the account + /// + [JsonProperty("defaultSubtitleLanguage")] + public string? DefaultSubtitleLanguage { get; set; } + + /// + /// The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) + /// + [JsonProperty("autoSelectSubtitle")] + public long? AutoSelectSubtitle { get; set; } + + /// + /// The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) + /// + [JsonProperty("defaultSubtitleAccessibility")] + public long? DefaultSubtitleAccessibility { get; set; } + + /// + /// The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) + /// + [JsonProperty("defaultSubtitleForced")] + public long? DefaultSubtitleForced { get; set; } + + [JsonProperty("watchedIndicator")] + public long? WatchedIndicator { get; set; } + + [JsonProperty("mediaReviewsVisibility")] + public long? MediaReviewsVisibility { get; set; } + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/PostUsersSigninDataUserResponseStatus.cs b/PlexAPI/Models/Requests/PostUsersSigninDataUserResponseStatus.cs new file mode 100644 index 0000000..efbf8a0 --- /dev/null +++ b/PlexAPI/Models/Requests/PostUsersSigninDataUserResponseStatus.cs @@ -0,0 +1,60 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using PlexAPI.Utils; + using System; + + /// + /// String representation of subscriptionActive + /// + public enum PostUsersSigninDataUserResponseStatus + { + [JsonProperty("Inactive")] + Inactive, + [JsonProperty("Active")] + Active, + } + + public static class PostUsersSigninDataUserResponseStatusExtension + { + public static string Value(this PostUsersSigninDataUserResponseStatus value) + { + return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); + } + + public static PostUsersSigninDataUserResponseStatus ToEnum(this string value) + { + foreach(var field in typeof(PostUsersSigninDataUserResponseStatus).GetFields()) + { + var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); + if (attributes.Length == 0) + { + continue; + } + + var attribute = attributes[0] as JsonPropertyAttribute; + if (attribute != null && attribute.PropertyName == value) + { + var enumVal = field.GetValue(null); + + if (enumVal is PostUsersSigninDataUserResponseStatus) + { + return (PostUsersSigninDataUserResponseStatus)enumVal; + } + } + } + + throw new Exception($"Unknown value {value} for enum PostUsersSigninDataUserResponseStatus"); + } + } + +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/PostUsersSigninDataUserStatus.cs b/PlexAPI/Models/Requests/PostUsersSigninDataUserStatus.cs new file mode 100644 index 0000000..40fca22 --- /dev/null +++ b/PlexAPI/Models/Requests/PostUsersSigninDataUserStatus.cs @@ -0,0 +1,60 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using PlexAPI.Utils; + using System; + + /// + /// String representation of subscriptionActive + /// + public enum PostUsersSigninDataUserStatus + { + [JsonProperty("Inactive")] + Inactive, + [JsonProperty("Active")] + Active, + } + + public static class PostUsersSigninDataUserStatusExtension + { + public static string Value(this PostUsersSigninDataUserStatus value) + { + return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); + } + + public static PostUsersSigninDataUserStatus ToEnum(this string value) + { + foreach(var field in typeof(PostUsersSigninDataUserStatus).GetFields()) + { + var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); + if (attributes.Length == 0) + { + continue; + } + + var attribute = attributes[0] as JsonPropertyAttribute; + if (attribute != null && attribute.PropertyName == value) + { + var enumVal = field.GetValue(null); + + if (enumVal is PostUsersSigninDataUserStatus) + { + return (PostUsersSigninDataUserStatus)enumVal; + } + } + } + + throw new Exception($"Unknown value {value} for enum PostUsersSigninDataUserStatus"); + } + } + +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/PostUsersSigninDataUserSubscription.cs b/PlexAPI/Models/Requests/PostUsersSigninDataUserSubscription.cs new file mode 100644 index 0000000..44f54d6 --- /dev/null +++ b/PlexAPI/Models/Requests/PostUsersSigninDataUserSubscription.cs @@ -0,0 +1,57 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using PlexAPI.Models.Requests; + using PlexAPI.Utils; + using System.Collections.Generic; + using System; + + public class PostUsersSigninDataUserSubscription + { + + /// + /// List of features allowed on your Plex Pass subscription + /// + [JsonProperty("features")] + public List? Features { get; set; } + + /// + /// If the account's Plex Pass subscription is active + /// + [JsonProperty("active")] + public bool? Active { get; set; } + + /// + /// Date the account subscribed to Plex Pass + /// + [JsonProperty("subscribedAt")] + public DateTime? SubscribedAt { get; set; } + + /// + /// String representation of subscriptionActive + /// + [JsonProperty("status")] + public PostUsersSigninDataUserResponseStatus? Status { get; set; } + + /// + /// Payment service used for your Plex Pass subscription + /// + [JsonProperty("paymentService")] + public string? PaymentService { get; set; } = null; + + /// + /// Name of Plex Pass subscription plan + /// + [JsonProperty("plan")] + public string? Plan { get; set; } = null; + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/Producer.cs b/PlexAPI/Models/Requests/Producer.cs index 6b3907c..8af99e1 100644 --- a/PlexAPI/Models/Requests/Producer.cs +++ b/PlexAPI/Models/Requests/Producer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/Provider.cs b/PlexAPI/Models/Requests/Provider.cs index 37d56b7..12a3eb9 100644 --- a/PlexAPI/Models/Requests/Provider.cs +++ b/PlexAPI/Models/Requests/Provider.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/QueryParamOnlyTransient.cs b/PlexAPI/Models/Requests/QueryParamOnlyTransient.cs index 600507c..418c8b5 100644 --- a/PlexAPI/Models/Requests/QueryParamOnlyTransient.cs +++ b/PlexAPI/Models/Requests/QueryParamOnlyTransient.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/QueryParamSmart.cs b/PlexAPI/Models/Requests/QueryParamSmart.cs index 0c426a8..93d8d29 100644 --- a/PlexAPI/Models/Requests/QueryParamSmart.cs +++ b/PlexAPI/Models/Requests/QueryParamSmart.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/QueryParamType.cs b/PlexAPI/Models/Requests/QueryParamType.cs index 16bfe5f..e0f4e8c 100644 --- a/PlexAPI/Models/Requests/QueryParamType.cs +++ b/PlexAPI/Models/Requests/QueryParamType.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/Ratings.cs b/PlexAPI/Models/Requests/Ratings.cs index 938ee67..eb54cea 100644 --- a/PlexAPI/Models/Requests/Ratings.cs +++ b/PlexAPI/Models/Requests/Ratings.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/RefreshLibraryRequest.cs b/PlexAPI/Models/Requests/RefreshLibraryRequest.cs index 5bac3cf..4ccc13a 100644 --- a/PlexAPI/Models/Requests/RefreshLibraryRequest.cs +++ b/PlexAPI/Models/Requests/RefreshLibraryRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/RefreshLibraryResponse.cs b/PlexAPI/Models/Requests/RefreshLibraryResponse.cs index ffa9656..dd9e450 100644 --- a/PlexAPI/Models/Requests/RefreshLibraryResponse.cs +++ b/PlexAPI/Models/Requests/RefreshLibraryResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/Release.cs b/PlexAPI/Models/Requests/Release.cs index a56fe42..1d00592 100644 --- a/PlexAPI/Models/Requests/Release.cs +++ b/PlexAPI/Models/Requests/Release.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/ResponseBody.cs b/PlexAPI/Models/Requests/ResponseBody.cs new file mode 100644 index 0000000..1789c11 --- /dev/null +++ b/PlexAPI/Models/Requests/ResponseBody.cs @@ -0,0 +1,39 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using PlexAPI.Utils; + + public class ResponseBody + { + + [JsonProperty("identifier")] + public string Identifier { get; set; } = default!; + + [JsonProperty("baseURL")] + public string BaseURL { get; set; } = default!; + + [JsonProperty("title")] + public string Title { get; set; } = default!; + + [JsonProperty("linkURL")] + public string LinkURL { get; set; } = default!; + + [JsonProperty("provides")] + public string Provides { get; set; } = default!; + + /// + /// The plex authtoken used to identify with + /// + [JsonProperty("token")] + public string Token { get; set; } = default!; + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/Role.cs b/PlexAPI/Models/Requests/Role.cs index c1f7bbd..7ae8259 100644 --- a/PlexAPI/Models/Requests/Role.cs +++ b/PlexAPI/Models/Requests/Role.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/Scope.cs b/PlexAPI/Models/Requests/Scope.cs index 52d35b8..2e648af 100644 --- a/PlexAPI/Models/Requests/Scope.cs +++ b/PlexAPI/Models/Requests/Scope.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/SearchLibraryMediaContainer.cs b/PlexAPI/Models/Requests/SearchLibraryMediaContainer.cs index ff15c76..9166bd7 100644 --- a/PlexAPI/Models/Requests/SearchLibraryMediaContainer.cs +++ b/PlexAPI/Models/Requests/SearchLibraryMediaContainer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/SearchLibraryMetadata.cs b/PlexAPI/Models/Requests/SearchLibraryMetadata.cs index a9255f7..0b0b0c4 100644 --- a/PlexAPI/Models/Requests/SearchLibraryMetadata.cs +++ b/PlexAPI/Models/Requests/SearchLibraryMetadata.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/SearchLibraryRequest.cs b/PlexAPI/Models/Requests/SearchLibraryRequest.cs index b832fe5..610ead1 100644 --- a/PlexAPI/Models/Requests/SearchLibraryRequest.cs +++ b/PlexAPI/Models/Requests/SearchLibraryRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/SearchLibraryResponse.cs b/PlexAPI/Models/Requests/SearchLibraryResponse.cs index 508e560..4989aed 100644 --- a/PlexAPI/Models/Requests/SearchLibraryResponse.cs +++ b/PlexAPI/Models/Requests/SearchLibraryResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/SearchLibraryResponseBody.cs b/PlexAPI/Models/Requests/SearchLibraryResponseBody.cs index b6d3010..286e48f 100644 --- a/PlexAPI/Models/Requests/SearchLibraryResponseBody.cs +++ b/PlexAPI/Models/Requests/SearchLibraryResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/Server.cs b/PlexAPI/Models/Requests/Server.cs index ea50097..402f25a 100644 --- a/PlexAPI/Models/Requests/Server.cs +++ b/PlexAPI/Models/Requests/Server.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/Services.cs b/PlexAPI/Models/Requests/Services.cs new file mode 100644 index 0000000..da95987 --- /dev/null +++ b/PlexAPI/Models/Requests/Services.cs @@ -0,0 +1,34 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using PlexAPI.Models.Requests; + using PlexAPI.Utils; + + public class Services + { + + [JsonProperty("identifier")] + public string Identifier { get; set; } = default!; + + [JsonProperty("endpoint")] + public string Endpoint { get; set; } = default!; + + [JsonProperty("token", NullValueHandling = NullValueHandling.Include)] + public string? Token { get; set; } + + [JsonProperty("secret", NullValueHandling = NullValueHandling.Include)] + public string? Secret { get; set; } + + [JsonProperty("status")] + public GetUserDetailsStatus Status { get; set; } = default!; + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/Session.cs b/PlexAPI/Models/Requests/Session.cs index 0977806..401f73e 100644 --- a/PlexAPI/Models/Requests/Session.cs +++ b/PlexAPI/Models/Requests/Session.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/Setting.cs b/PlexAPI/Models/Requests/Setting.cs index f46b1a8..85f4075 100644 --- a/PlexAPI/Models/Requests/Setting.cs +++ b/PlexAPI/Models/Requests/Setting.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/SharedServers.cs b/PlexAPI/Models/Requests/SharedServers.cs new file mode 100644 index 0000000..29898d3 --- /dev/null +++ b/PlexAPI/Models/Requests/SharedServers.cs @@ -0,0 +1,17 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using PlexAPI.Utils; + + public class SharedServers + { + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/SharedSources.cs b/PlexAPI/Models/Requests/SharedSources.cs new file mode 100644 index 0000000..2f5af20 --- /dev/null +++ b/PlexAPI/Models/Requests/SharedSources.cs @@ -0,0 +1,17 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using PlexAPI.Utils; + + public class SharedSources + { + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/Skip.cs b/PlexAPI/Models/Requests/Skip.cs index 2a0a1b9..3605f0f 100644 --- a/PlexAPI/Models/Requests/Skip.cs +++ b/PlexAPI/Models/Requests/Skip.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/Smart.cs b/PlexAPI/Models/Requests/Smart.cs index 8c4a505..d3805df 100644 --- a/PlexAPI/Models/Requests/Smart.cs +++ b/PlexAPI/Models/Requests/Smart.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/Sort.cs b/PlexAPI/Models/Requests/Sort.cs index 5f5f4b4..cab292b 100644 --- a/PlexAPI/Models/Requests/Sort.cs +++ b/PlexAPI/Models/Requests/Sort.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/StartAllTasksResponse.cs b/PlexAPI/Models/Requests/StartAllTasksResponse.cs index e476567..b9bbcc8 100644 --- a/PlexAPI/Models/Requests/StartAllTasksResponse.cs +++ b/PlexAPI/Models/Requests/StartAllTasksResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/StartTaskRequest.cs b/PlexAPI/Models/Requests/StartTaskRequest.cs index bacccb9..323b2ac 100644 --- a/PlexAPI/Models/Requests/StartTaskRequest.cs +++ b/PlexAPI/Models/Requests/StartTaskRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/StartTaskResponse.cs b/PlexAPI/Models/Requests/StartTaskResponse.cs index 6641cda..b073a0a 100644 --- a/PlexAPI/Models/Requests/StartTaskResponse.cs +++ b/PlexAPI/Models/Requests/StartTaskResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/StartUniversalTranscodeRequest.cs b/PlexAPI/Models/Requests/StartUniversalTranscodeRequest.cs index 5386e29..60dbe64 100644 --- a/PlexAPI/Models/Requests/StartUniversalTranscodeRequest.cs +++ b/PlexAPI/Models/Requests/StartUniversalTranscodeRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/StartUniversalTranscodeResponse.cs b/PlexAPI/Models/Requests/StartUniversalTranscodeResponse.cs index 6e934ae..0e6fd52 100644 --- a/PlexAPI/Models/Requests/StartUniversalTranscodeResponse.cs +++ b/PlexAPI/Models/Requests/StartUniversalTranscodeResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/State.cs b/PlexAPI/Models/Requests/State.cs index 5384f56..cd0b14b 100644 --- a/PlexAPI/Models/Requests/State.cs +++ b/PlexAPI/Models/Requests/State.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/StatisticsBandwidth.cs b/PlexAPI/Models/Requests/StatisticsBandwidth.cs index b4c2450..dbd1896 100644 --- a/PlexAPI/Models/Requests/StatisticsBandwidth.cs +++ b/PlexAPI/Models/Requests/StatisticsBandwidth.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/StatisticsMedia.cs b/PlexAPI/Models/Requests/StatisticsMedia.cs index 80142cd..20272a6 100644 --- a/PlexAPI/Models/Requests/StatisticsMedia.cs +++ b/PlexAPI/Models/Requests/StatisticsMedia.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/StatisticsResources.cs b/PlexAPI/Models/Requests/StatisticsResources.cs index 9d102f3..8eb25e2 100644 --- a/PlexAPI/Models/Requests/StatisticsResources.cs +++ b/PlexAPI/Models/Requests/StatisticsResources.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/Status.cs b/PlexAPI/Models/Requests/Status.cs new file mode 100644 index 0000000..812bdd6 --- /dev/null +++ b/PlexAPI/Models/Requests/Status.cs @@ -0,0 +1,58 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using PlexAPI.Utils; + using System; + + /// + /// Current friend request status + /// + public enum Status + { + [JsonProperty("accepted")] + Accepted, + } + + public static class StatusExtension + { + public static string Value(this Status value) + { + return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); + } + + public static Status ToEnum(this string value) + { + foreach(var field in typeof(Status).GetFields()) + { + var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); + if (attributes.Length == 0) + { + continue; + } + + var attribute = attributes[0] as JsonPropertyAttribute; + if (attribute != null && attribute.PropertyName == value) + { + var enumVal = field.GetValue(null); + + if (enumVal is Status) + { + return (Status)enumVal; + } + } + } + + throw new Exception($"Unknown value {value} for enum Status"); + } + } + +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/StopAllTasksResponse.cs b/PlexAPI/Models/Requests/StopAllTasksResponse.cs index 5b5ea40..5275d02 100644 --- a/PlexAPI/Models/Requests/StopAllTasksResponse.cs +++ b/PlexAPI/Models/Requests/StopAllTasksResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/StopTaskRequest.cs b/PlexAPI/Models/Requests/StopTaskRequest.cs index 9b07307..3d0bf98 100644 --- a/PlexAPI/Models/Requests/StopTaskRequest.cs +++ b/PlexAPI/Models/Requests/StopTaskRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/StopTaskResponse.cs b/PlexAPI/Models/Requests/StopTaskResponse.cs index eb8a786..59dab23 100644 --- a/PlexAPI/Models/Requests/StopTaskResponse.cs +++ b/PlexAPI/Models/Requests/StopTaskResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/StopTranscodeSessionRequest.cs b/PlexAPI/Models/Requests/StopTranscodeSessionRequest.cs index 1425e89..8adee28 100644 --- a/PlexAPI/Models/Requests/StopTranscodeSessionRequest.cs +++ b/PlexAPI/Models/Requests/StopTranscodeSessionRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/StopTranscodeSessionResponse.cs b/PlexAPI/Models/Requests/StopTranscodeSessionResponse.cs index 823a15e..7a62131 100644 --- a/PlexAPI/Models/Requests/StopTranscodeSessionResponse.cs +++ b/PlexAPI/Models/Requests/StopTranscodeSessionResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/Stream.cs b/PlexAPI/Models/Requests/Stream.cs index 89018f4..0f8a7f7 100644 --- a/PlexAPI/Models/Requests/Stream.cs +++ b/PlexAPI/Models/Requests/Stream.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/Subscription.cs b/PlexAPI/Models/Requests/Subscription.cs new file mode 100644 index 0000000..80d346e --- /dev/null +++ b/PlexAPI/Models/Requests/Subscription.cs @@ -0,0 +1,60 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using PlexAPI.Models.Requests; + using PlexAPI.Utils; + using System.Collections.Generic; + using System; + + /// + /// If the account’s Plex Pass subscription is active + /// + public class Subscription + { + + /// + /// List of features allowed on your Plex Pass subscription + /// + [JsonProperty("features")] + public List? Features { get; set; } + + /// + /// If the account's Plex Pass subscription is active + /// + [JsonProperty("active")] + public bool? Active { get; set; } + + /// + /// Date the account subscribed to Plex Pass + /// + [JsonProperty("subscribedAt")] + public DateTime? SubscribedAt { get; set; } + + /// + /// String representation of subscriptionActive + /// + [JsonProperty("status")] + public GetUserDetailsPlexStatus? Status { get; set; } + + /// + /// Payment service used for your Plex Pass subscription + /// + [JsonProperty("paymentService")] + public string? PaymentService { get; set; } = null; + + /// + /// Name of Plex Pass subscription plan + /// + [JsonProperty("plan")] + public string? Plan { get; set; } = null; + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/Tag.cs b/PlexAPI/Models/Requests/Tag.cs index a509e0a..65ffa7b 100644 --- a/PlexAPI/Models/Requests/Tag.cs +++ b/PlexAPI/Models/Requests/Tag.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/TaskName.cs b/PlexAPI/Models/Requests/TaskName.cs index cb65747..6764852 100644 --- a/PlexAPI/Models/Requests/TaskName.cs +++ b/PlexAPI/Models/Requests/TaskName.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/Tonight.cs b/PlexAPI/Models/Requests/Tonight.cs index c63da8e..5a2c08d 100644 --- a/PlexAPI/Models/Requests/Tonight.cs +++ b/PlexAPI/Models/Requests/Tonight.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/TranscodeSession.cs b/PlexAPI/Models/Requests/TranscodeSession.cs index d616e5f..d0da984 100644 --- a/PlexAPI/Models/Requests/TranscodeSession.cs +++ b/PlexAPI/Models/Requests/TranscodeSession.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/Trials.cs b/PlexAPI/Models/Requests/Trials.cs new file mode 100644 index 0000000..6cdc3dd --- /dev/null +++ b/PlexAPI/Models/Requests/Trials.cs @@ -0,0 +1,17 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using PlexAPI.Utils; + + public class Trials + { + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/Type.cs b/PlexAPI/Models/Requests/Type.cs index c471588..71dd993 100644 --- a/PlexAPI/Models/Requests/Type.cs +++ b/PlexAPI/Models/Requests/Type.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/UpdatePlayProgressRequest.cs b/PlexAPI/Models/Requests/UpdatePlayProgressRequest.cs index 0d6f547..79734c3 100644 --- a/PlexAPI/Models/Requests/UpdatePlayProgressRequest.cs +++ b/PlexAPI/Models/Requests/UpdatePlayProgressRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/UpdatePlayProgressResponse.cs b/PlexAPI/Models/Requests/UpdatePlayProgressResponse.cs index cd0dbda..841f118 100644 --- a/PlexAPI/Models/Requests/UpdatePlayProgressResponse.cs +++ b/PlexAPI/Models/Requests/UpdatePlayProgressResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/UpdatePlaylistRequest.cs b/PlexAPI/Models/Requests/UpdatePlaylistRequest.cs index 3df3fd1..82605e6 100644 --- a/PlexAPI/Models/Requests/UpdatePlaylistRequest.cs +++ b/PlexAPI/Models/Requests/UpdatePlaylistRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/UpdatePlaylistResponse.cs b/PlexAPI/Models/Requests/UpdatePlaylistResponse.cs index f72610e..f6f9049 100644 --- a/PlexAPI/Models/Requests/UpdatePlaylistResponse.cs +++ b/PlexAPI/Models/Requests/UpdatePlaylistResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/UploadPlaylistRequest.cs b/PlexAPI/Models/Requests/UploadPlaylistRequest.cs index 2535319..2468f5e 100644 --- a/PlexAPI/Models/Requests/UploadPlaylistRequest.cs +++ b/PlexAPI/Models/Requests/UploadPlaylistRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/UploadPlaylistResponse.cs b/PlexAPI/Models/Requests/UploadPlaylistResponse.cs index 8fb0c02..1bd3517 100644 --- a/PlexAPI/Models/Requests/UploadPlaylistResponse.cs +++ b/PlexAPI/Models/Requests/UploadPlaylistResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/Upscale.cs b/PlexAPI/Models/Requests/Upscale.cs index 36d22af..b34d699 100644 --- a/PlexAPI/Models/Requests/Upscale.cs +++ b/PlexAPI/Models/Requests/Upscale.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/User.cs b/PlexAPI/Models/Requests/User.cs index 2141499..a25a824 100644 --- a/PlexAPI/Models/Requests/User.cs +++ b/PlexAPI/Models/Requests/User.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Models/Requests/UserProfile.cs b/PlexAPI/Models/Requests/UserProfile.cs new file mode 100644 index 0000000..61c770d --- /dev/null +++ b/PlexAPI/Models/Requests/UserProfile.cs @@ -0,0 +1,60 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI.Models.Requests +{ + using Newtonsoft.Json; + using PlexAPI.Utils; + + public class UserProfile + { + + /// + /// If the account has automatically select audio and subtitle tracks enabled + /// + [JsonProperty("autoSelectAudio")] + public bool? AutoSelectAudio { get; set; } = true; + + /// + /// The preferred audio language for the account + /// + [JsonProperty("defaultAudioLanguage")] + public string? DefaultAudioLanguage { get; set; } + + /// + /// The preferred subtitle language for the account + /// + [JsonProperty("defaultSubtitleLanguage")] + public string? DefaultSubtitleLanguage { get; set; } + + /// + /// The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) + /// + [JsonProperty("autoSelectSubtitle")] + public long? AutoSelectSubtitle { get; set; } + + /// + /// The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) + /// + [JsonProperty("defaultSubtitleAccessibility")] + public long? DefaultSubtitleAccessibility { get; set; } + + /// + /// The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) + /// + [JsonProperty("defaultSubtitleForced")] + public long? DefaultSubtitleForced { get; set; } + + [JsonProperty("watchedIndicator")] + public long? WatchedIndicator { get; set; } + + [JsonProperty("mediaReviewsVisibility")] + public long? MediaReviewsVisibility { get; set; } + } +} \ No newline at end of file diff --git a/PlexAPI/Models/Requests/Writer.cs b/PlexAPI/Models/Requests/Writer.cs index 7c35899..380c99e 100644 --- a/PlexAPI/Models/Requests/Writer.cs +++ b/PlexAPI/Models/Requests/Writer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Playlists.cs b/PlexAPI/Playlists.cs index e578fe7..44f727f 100644 --- a/PlexAPI/Playlists.cs +++ b/PlexAPI/Playlists.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -146,15 +146,15 @@ namespace PlexAPI { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.354.2"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.404.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.354.2 0.0.3 PlexAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.404.2 0.0.3 PlexAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; - public Playlists(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) + public Playlists(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) { _client = client; _securitySource = securitySource; @@ -504,7 +504,7 @@ namespace PlexAPI StatusCode = responseStatusCode, ContentType = contentType, RawResponse = httpResponse - };; + }; } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { @@ -591,7 +591,7 @@ namespace PlexAPI StatusCode = responseStatusCode, ContentType = contentType, RawResponse = httpResponse - };; + }; } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { @@ -772,7 +772,7 @@ namespace PlexAPI StatusCode = responseStatusCode, ContentType = contentType, RawResponse = httpResponse - };; + }; } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { @@ -955,7 +955,7 @@ namespace PlexAPI StatusCode = responseStatusCode, ContentType = contentType, RawResponse = httpResponse - };; + }; } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { diff --git a/PlexAPI/Plex.cs b/PlexAPI/Plex.cs index 3f3d95a..8fd6cc5 100644 --- a/PlexAPI/Plex.cs +++ b/PlexAPI/Plex.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -32,6 +32,33 @@ namespace PlexAPI public interface IPlex { + /// + /// Get Companions Data + /// + /// + /// Get Companions Data + /// + /// + Task GetCompanionsDataAsync(string? serverUrl = null); + + /// + /// Get list of friends of the user logged in + /// + /// + /// Get friends of provided auth token. + /// + /// + Task GetUserFriendsAsync(string? serverUrl = null); + + /// + /// Get Geo Data + /// + /// + /// Returns the geolocation and locale data of the caller + /// + /// + Task GetGeoDataAsync(string? serverUrl = null); + /// /// Get Plex Home Data /// @@ -41,6 +68,15 @@ namespace PlexAPI /// Task GetHomeDataAsync(); + /// + /// Get Resources + /// + /// + /// Get Resources + /// + /// + Task GetResourcesAsync(string? xPlexClientIdentifier = null, IncludeHttps? includeHttps = null, IncludeRelay? includeRelay = null, IncludeIPv6? includeIPv6 = null, string? serverUrl = null); + /// /// Get a Pin /// @@ -51,13 +87,22 @@ namespace PlexAPI Task GetPinAsync(string xPlexProduct, bool? strong = null, string? xPlexClientIdentifier = null, string? serverUrl = null); /// - /// Get Access Token + /// Get Access Token by PinId /// /// - /// Retrieve an Access Token from Plex.tv after the Pin has already been authenticated + /// Retrieve an Access Token from Plex.tv after the Pin has been authenticated /// /// - Task GetTokenAsync(string pinID, string? xPlexClientIdentifier = null, string? serverUrl = null); + Task GetTokenByPinIdAsync(long pinID, string? xPlexClientIdentifier = null, string? serverUrl = null); + + /// + /// Get UserData By Token + /// + /// + /// Get the User data from the provided X-Plex-Token + /// + /// + Task GetUserDetailsAsync(string? serverUrl = null); } /// @@ -69,6 +114,30 @@ namespace PlexAPI /// public class Plex: IPlex { + /// + /// List of server URLs available for the getCompanionsData operation. + /// + public static readonly string[] GetCompanionsDataServerList = { + "https://plex.tv/api/v2", + }; + /// + /// List of server URLs available for the getUserFriends operation. + /// + public static readonly string[] GetUserFriendsServerList = { + "https://plex.tv/api/v2", + }; + /// + /// List of server URLs available for the getGeoData operation. + /// + public static readonly string[] GetGeoDataServerList = { + "https://plex.tv/api/v2", + }; + /// + /// List of server URLs available for the getResources operation. + /// + public static readonly string[] GetResourcesServerList = { + "https://plex.tv/api/v2", + }; /// /// List of server URLs available for the getPin operation. /// @@ -76,22 +145,28 @@ namespace PlexAPI "https://plex.tv/api/v2", }; /// - /// List of server URLs available for the getToken operation. + /// List of server URLs available for the getTokenByPinId operation. /// - public static readonly string[] GetTokenServerList = { + public static readonly string[] GetTokenByPinIdServerList = { + "https://plex.tv/api/v2", + }; + /// + /// List of server URLs available for the getUserDetails operation. + /// + public static readonly string[] GetUserDetailsServerList = { "https://plex.tv/api/v2", }; public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.354.2"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.404.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.354.2 0.0.3 PlexAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.404.2 0.0.3 PlexAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; - public Plex(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) + public Plex(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) { _client = client; _securitySource = securitySource; @@ -99,6 +174,292 @@ namespace PlexAPI SDKConfiguration = config; } + public async Task GetCompanionsDataAsync(string? serverUrl = null) + { + string baseUrl = Utilities.TemplateUrl(GetCompanionsDataServerList[0], new Dictionary(){ + }); + if (serverUrl != null) + { + baseUrl = serverUrl; + } + + var urlString = baseUrl + "/companions"; + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("user-agent", _userAgent); + + if (_securitySource != null) + { + httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest); + } + + var hookCtx = new HookContext("getCompanionsData", null, _securitySource); + + httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest); + + HttpResponseMessage httpResponse; + try + { + httpResponse = await _client.SendAsync(httpRequest); + int _statusCode = (int)httpResponse.StatusCode; + + if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600) + { + var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), httpResponse, null); + if (_httpResponse != null) + { + httpResponse = _httpResponse; + } + } + } + catch (Exception error) + { + var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error); + if (_httpResponse != null) + { + httpResponse = _httpResponse; + } + else + { + throw; + } + } + + httpResponse = await this.SDKConfiguration.Hooks.AfterSuccessAsync(new AfterSuccessContext(hookCtx), httpResponse); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + int responseStatusCode = (int)httpResponse.StatusCode; + if(responseStatusCode == 200) + { + if(Utilities.IsContentTypeMatch("application/json", contentType)) + { + var obj = ResponseBodyDeserializer.Deserialize>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + var response = new GetCompanionsDataResponse() + { + StatusCode = responseStatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + response.ResponseBodies = obj; + return response; + } + else + { + throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + } + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + { + throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode == 401) + { + if(Utilities.IsContentTypeMatch("application/json", contentType)) + { + var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + obj!.RawResponse = httpResponse; + throw obj!; + } + else + { + throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + } + else + { + throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + } + + public async Task GetUserFriendsAsync(string? serverUrl = null) + { + string baseUrl = Utilities.TemplateUrl(GetUserFriendsServerList[0], new Dictionary(){ + }); + if (serverUrl != null) + { + baseUrl = serverUrl; + } + + var urlString = baseUrl + "/friends"; + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("user-agent", _userAgent); + + if (_securitySource != null) + { + httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest); + } + + var hookCtx = new HookContext("getUserFriends", null, _securitySource); + + httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest); + + HttpResponseMessage httpResponse; + try + { + httpResponse = await _client.SendAsync(httpRequest); + int _statusCode = (int)httpResponse.StatusCode; + + if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600) + { + var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), httpResponse, null); + if (_httpResponse != null) + { + httpResponse = _httpResponse; + } + } + } + catch (Exception error) + { + var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error); + if (_httpResponse != null) + { + httpResponse = _httpResponse; + } + else + { + throw; + } + } + + httpResponse = await this.SDKConfiguration.Hooks.AfterSuccessAsync(new AfterSuccessContext(hookCtx), httpResponse); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + int responseStatusCode = (int)httpResponse.StatusCode; + if(responseStatusCode == 200) + { + if(Utilities.IsContentTypeMatch("application/json", contentType)) + { + var obj = ResponseBodyDeserializer.Deserialize>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + var response = new GetUserFriendsResponse() + { + StatusCode = responseStatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + response.Friends = obj; + return response; + } + else + { + throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + } + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + { + throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode == 401) + { + if(Utilities.IsContentTypeMatch("application/json", contentType)) + { + var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + obj!.RawResponse = httpResponse; + throw obj!; + } + else + { + throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + } + else + { + throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + } + + public async Task GetGeoDataAsync(string? serverUrl = null) + { + string baseUrl = Utilities.TemplateUrl(GetGeoDataServerList[0], new Dictionary(){ + }); + if (serverUrl != null) + { + baseUrl = serverUrl; + } + + var urlString = baseUrl + "/geoip"; + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("user-agent", _userAgent); + + var hookCtx = new HookContext("getGeoData", null, null); + + httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest); + + HttpResponseMessage httpResponse; + try + { + httpResponse = await _client.SendAsync(httpRequest); + int _statusCode = (int)httpResponse.StatusCode; + + if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600) + { + var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), httpResponse, null); + if (_httpResponse != null) + { + httpResponse = _httpResponse; + } + } + } + catch (Exception error) + { + var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error); + if (_httpResponse != null) + { + httpResponse = _httpResponse; + } + else + { + throw; + } + } + + httpResponse = await this.SDKConfiguration.Hooks.AfterSuccessAsync(new AfterSuccessContext(hookCtx), httpResponse); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + int responseStatusCode = (int)httpResponse.StatusCode; + if(responseStatusCode == 200) + { + if(Utilities.IsContentTypeMatch("application/json", contentType)) + { + var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + var response = new GetGeoDataResponse() + { + StatusCode = responseStatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + response.GeoData = obj; + return response; + } + else + { + throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + } + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + { + throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode == 401) + { + if(Utilities.IsContentTypeMatch("application/json", contentType)) + { + var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + obj!.RawResponse = httpResponse; + throw obj!; + } + else + { + throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + } + else + { + throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + } + public async Task GetHomeDataAsync() { string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl(); @@ -191,6 +552,107 @@ namespace PlexAPI } } + public async Task GetResourcesAsync(string? xPlexClientIdentifier = null, IncludeHttps? includeHttps = null, IncludeRelay? includeRelay = null, IncludeIPv6? includeIPv6 = null, string? serverUrl = null) + { + var request = new GetResourcesRequest() + { + XPlexClientIdentifier = xPlexClientIdentifier, + IncludeHttps = includeHttps, + IncludeRelay = includeRelay, + IncludeIPv6 = includeIPv6, + }; + request.XPlexClientIdentifier ??= SDKConfiguration.XPlexClientIdentifier; + + string baseUrl = Utilities.TemplateUrl(GetResourcesServerList[0], new Dictionary(){ + }); + if (serverUrl != null) + { + baseUrl = serverUrl; + } + var urlString = URLBuilder.Build(baseUrl, "/resources", request); + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("user-agent", _userAgent); + HeaderSerializer.PopulateHeaders(ref httpRequest, request); + + var hookCtx = new HookContext("getResources", null, null); + + httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest); + + HttpResponseMessage httpResponse; + try + { + httpResponse = await _client.SendAsync(httpRequest); + int _statusCode = (int)httpResponse.StatusCode; + + if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600) + { + var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), httpResponse, null); + if (_httpResponse != null) + { + httpResponse = _httpResponse; + } + } + } + catch (Exception error) + { + var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error); + if (_httpResponse != null) + { + httpResponse = _httpResponse; + } + else + { + throw; + } + } + + httpResponse = await this.SDKConfiguration.Hooks.AfterSuccessAsync(new AfterSuccessContext(hookCtx), httpResponse); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + int responseStatusCode = (int)httpResponse.StatusCode; + if(responseStatusCode == 200) + { + if(Utilities.IsContentTypeMatch("application/json", contentType)) + { + var obj = ResponseBodyDeserializer.Deserialize>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + var response = new GetResourcesResponse() + { + StatusCode = responseStatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + response.PlexDevices = obj; + return response; + } + else + { + throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + } + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + { + throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode == 401) + { + if(Utilities.IsContentTypeMatch("application/json", contentType)) + { + var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + obj!.RawResponse = httpResponse; + throw obj!; + } + else + { + throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + } + else + { + throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + } + public async Task GetPinAsync(string xPlexProduct, bool? strong = null, string? xPlexClientIdentifier = null, string? serverUrl = null) { var request = new GetPinRequest() @@ -249,18 +711,18 @@ namespace PlexAPI var contentType = httpResponse.Content.Headers.ContentType?.MediaType; int responseStatusCode = (int)httpResponse.StatusCode; - if(responseStatusCode == 201) + if(responseStatusCode == 200) { if(Utilities.IsContentTypeMatch("application/json", contentType)) { - var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); var response = new GetPinResponse() { StatusCode = responseStatusCode, ContentType = contentType, RawResponse = httpResponse }; - response.Object = obj; + response.AuthPinContainer = obj; return response; } else @@ -272,7 +734,7 @@ namespace PlexAPI { if(Utilities.IsContentTypeMatch("application/json", contentType)) { - var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); obj!.RawResponse = httpResponse; throw obj!; } @@ -291,16 +753,16 @@ namespace PlexAPI } } - public async Task GetTokenAsync(string pinID, string? xPlexClientIdentifier = null, string? serverUrl = null) + public async Task GetTokenByPinIdAsync(long pinID, string? xPlexClientIdentifier = null, string? serverUrl = null) { - var request = new GetTokenRequest() + var request = new GetTokenByPinIdRequest() { PinID = pinID, XPlexClientIdentifier = xPlexClientIdentifier, }; request.XPlexClientIdentifier ??= SDKConfiguration.XPlexClientIdentifier; - string baseUrl = Utilities.TemplateUrl(GetTokenServerList[0], new Dictionary(){ + string baseUrl = Utilities.TemplateUrl(GetTokenByPinIdServerList[0], new Dictionary(){ }); if (serverUrl != null) { @@ -312,7 +774,7 @@ namespace PlexAPI httpRequest.Headers.Add("user-agent", _userAgent); HeaderSerializer.PopulateHeaders(ref httpRequest, request); - var hookCtx = new HookContext("getToken", null, null); + var hookCtx = new HookContext("getTokenByPinId", null, null); httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest); @@ -322,7 +784,7 @@ namespace PlexAPI httpResponse = await _client.SendAsync(httpRequest); int _statusCode = (int)httpResponse.StatusCode; - if (_statusCode == 400 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600) + if (_statusCode == 400 || _statusCode == 404 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600) { var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), httpResponse, null); if (_httpResponse != null) @@ -352,14 +814,14 @@ namespace PlexAPI { if(Utilities.IsContentTypeMatch("application/json", contentType)) { - var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); - var response = new GetTokenResponse() + var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + var response = new GetTokenByPinIdResponse() { StatusCode = responseStatusCode, ContentType = contentType, RawResponse = httpResponse }; - response.Object = obj; + response.AuthPinContainer = obj; return response; } else @@ -367,11 +829,15 @@ namespace PlexAPI throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } } - else if(responseStatusCode == 400) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + { + throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode == 404) { if(Utilities.IsContentTypeMatch("application/json", contentType)) { - var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); obj!.RawResponse = httpResponse; throw obj!; } @@ -380,10 +846,103 @@ namespace PlexAPI throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } } - else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else + { + throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + } + + public async Task GetUserDetailsAsync(string? serverUrl = null) + { + string baseUrl = Utilities.TemplateUrl(GetUserDetailsServerList[0], new Dictionary(){ + }); + if (serverUrl != null) + { + baseUrl = serverUrl; + } + + var urlString = baseUrl + "/user"; + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("user-agent", _userAgent); + + if (_securitySource != null) + { + httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest); + } + + var hookCtx = new HookContext("getUserDetails", null, _securitySource); + + httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest); + + HttpResponseMessage httpResponse; + try + { + httpResponse = await _client.SendAsync(httpRequest); + int _statusCode = (int)httpResponse.StatusCode; + + if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600) + { + var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), httpResponse, null); + if (_httpResponse != null) + { + httpResponse = _httpResponse; + } + } + } + catch (Exception error) + { + var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error); + if (_httpResponse != null) + { + httpResponse = _httpResponse; + } + else + { + throw; + } + } + + httpResponse = await this.SDKConfiguration.Hooks.AfterSuccessAsync(new AfterSuccessContext(hookCtx), httpResponse); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + int responseStatusCode = (int)httpResponse.StatusCode; + if(responseStatusCode == 200) + { + if(Utilities.IsContentTypeMatch("application/json", contentType)) + { + var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + var response = new GetUserDetailsResponse() + { + StatusCode = responseStatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + response.UserPlexAccount = obj; + return response; + } + else + { + throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + } + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + else if(responseStatusCode == 401) + { + if(Utilities.IsContentTypeMatch("application/json", contentType)) + { + var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + obj!.RawResponse = httpResponse; + throw obj!; + } + else + { + throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + } else { throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); diff --git a/PlexAPI/PlexAPI.csproj b/PlexAPI/PlexAPI.csproj index a52bdc1..91c8413 100644 --- a/PlexAPI/PlexAPI.csproj +++ b/PlexAPI/PlexAPI.csproj @@ -1,24 +1,37 @@ + true PlexAPI - 0.3.0 - LukeHagar + 0.4.0 net5.0 + LukeHagar + Copyright (c) LukeHagar 2024 + https://github.com/LukeHagar/plexcsharp.git + git + Plex-API: An Open API Spec for interacting with Plex.tv + + + enable + 1591 + + + + true README.md LICENSE.md - true - 1591 - https://github.com/LukeHagar/plexcsharp + + - + + \ No newline at end of file diff --git a/PlexAPI/PlexAPISDK.cs b/PlexAPI/PlexAPISDK.cs index 972cd09..6e059f0 100644 --- a/PlexAPI/PlexAPISDK.cs +++ b/PlexAPI/PlexAPISDK.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -63,11 +63,7 @@ namespace PlexAPI } /// - /// Plex-API: A Plex Media Server API Map - /// - /// - /// An Open API Spec for interacting with Plex.tv and Plex Servers - /// + /// Plex-API: An Open API Spec for interacting with Plex.tv /// public interface IPlexAPISDK { @@ -217,6 +213,15 @@ namespace PlexAPI /// public IUpdater Updater { get; } + /// + /// API Calls that perform operations with Plex Media Server Users
+ /// + /// + /// + /// + ///
+ public IUser User { get; } + /// /// API Calls that perform operations with Plex Media Server Watchlists
/// @@ -265,25 +270,21 @@ namespace PlexAPI } /// - /// Plex-API: A Plex Media Server API Map - /// - /// - /// An Open API Spec for interacting with Plex.tv and Plex Servers - /// + /// Plex-API: An Open API Spec for interacting with Plex.tv /// public class PlexAPISDK: IPlexAPISDK { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.354.2"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.404.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.354.2 0.0.3 PlexAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.404.2 0.0.3 PlexAPI"; private string _serverUrl = ""; private int _serverIndex = 0; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; public IServer Server { get; private set; } public IMedia Media { get; private set; } public IVideo Video { get; private set; } @@ -299,6 +300,7 @@ namespace PlexAPI public IStatistics Statistics { get; private set; } public ISessions Sessions { get; private set; } public IUpdater Updater { get; private set; } + public IUser User { get; private set; } public IWatchlist Watchlist { get; private set; } public PlexAPISDK(string? accessToken = null, Func? accessTokenSource = null, string? xPlexClientIdentifier = null, int? serverIndex = null, ServerProtocol? protocol = null, string? ip = null, string? port = null, string? serverUrl = null, Dictionary? urlParams = null, ISpeakeasyHttpClient? client = null, RetryConfig? retryConfig = null) @@ -334,15 +336,11 @@ namespace PlexAPI if(accessTokenSource != null) { - _securitySource = () => new Security() { AccessToken = accessTokenSource() }; + _securitySource = () => new PlexAPI.Models.Components.Security() { AccessToken = accessTokenSource() }; } else if(accessToken != null) { - _securitySource = () => new Security() { AccessToken = accessToken }; - } - else - { - throw new Exception("accessToken and accessTokenSource cannot both be null"); + _securitySource = () => new PlexAPI.Models.Components.Security() { AccessToken = accessToken }; } SDKConfiguration = new SDKConfig() @@ -402,6 +400,9 @@ namespace PlexAPI Updater = new Updater(_client, _securitySource, _serverUrl, SDKConfiguration); + User = new User(_client, _securitySource, _serverUrl, SDKConfiguration); + + Watchlist = new Watchlist(_client, _securitySource, _serverUrl, SDKConfiguration); } } diff --git a/PlexAPI/Search.cs b/PlexAPI/Search.cs index 74ad9fc..72dc761 100644 --- a/PlexAPI/Search.cs +++ b/PlexAPI/Search.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -87,15 +87,15 @@ namespace PlexAPI { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.354.2"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.404.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.354.2 0.0.3 PlexAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.404.2 0.0.3 PlexAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; - public Search(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) + public Search(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) { _client = client; _securitySource = securitySource; @@ -165,7 +165,7 @@ namespace PlexAPI StatusCode = responseStatusCode, ContentType = contentType, RawResponse = httpResponse - };; + }; } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { @@ -252,7 +252,7 @@ namespace PlexAPI StatusCode = responseStatusCode, ContentType = contentType, RawResponse = httpResponse - };; + }; } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { diff --git a/PlexAPI/Server.cs b/PlexAPI/Server.cs index 4a84b7d..3e3dfcc 100644 --- a/PlexAPI/Server.cs +++ b/PlexAPI/Server.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -117,15 +117,15 @@ namespace PlexAPI { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.354.2"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.404.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.354.2 0.0.3 PlexAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.404.2 0.0.3 PlexAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; - public Server(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) + public Server(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) { _client = client; _securitySource = securitySource; @@ -741,7 +741,7 @@ namespace PlexAPI StatusCode = responseStatusCode, ContentType = contentType, RawResponse = httpResponse - };; + }; } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { diff --git a/PlexAPI/Sessions.cs b/PlexAPI/Sessions.cs index ae99692..feeeff8 100644 --- a/PlexAPI/Sessions.cs +++ b/PlexAPI/Sessions.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -80,15 +80,15 @@ namespace PlexAPI { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.354.2"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.404.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.354.2 0.0.3 PlexAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.404.2 0.0.3 PlexAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; - public Sessions(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) + public Sessions(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) { _client = client; _securitySource = securitySource; @@ -438,7 +438,7 @@ namespace PlexAPI StatusCode = responseStatusCode, ContentType = contentType, RawResponse = httpResponse - };; + }; } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { diff --git a/PlexAPI/Statistics.cs b/PlexAPI/Statistics.cs index 93a4f45..8ac0560 100644 --- a/PlexAPI/Statistics.cs +++ b/PlexAPI/Statistics.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -71,15 +71,15 @@ namespace PlexAPI { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.354.2"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.404.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.354.2 0.0.3 PlexAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.404.2 0.0.3 PlexAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; - public Statistics(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) + public Statistics(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) { _client = client; _securitySource = securitySource; diff --git a/PlexAPI/Updater.cs b/PlexAPI/Updater.cs index 1ff967e..69dcc4b 100644 --- a/PlexAPI/Updater.cs +++ b/PlexAPI/Updater.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -74,15 +74,15 @@ namespace PlexAPI { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.354.2"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.404.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.354.2 0.0.3 PlexAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.404.2 0.0.3 PlexAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; - public Updater(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) + public Updater(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) { _client = client; _securitySource = securitySource; @@ -242,7 +242,7 @@ namespace PlexAPI StatusCode = responseStatusCode, ContentType = contentType, RawResponse = httpResponse - };; + }; } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { @@ -328,7 +328,7 @@ namespace PlexAPI StatusCode = responseStatusCode, ContentType = contentType, RawResponse = httpResponse - };; + }; } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode == 500 || responseStatusCode >= 500 && responseStatusCode < 600) { diff --git a/PlexAPI/User.cs b/PlexAPI/User.cs new file mode 100644 index 0000000..53e4813 --- /dev/null +++ b/PlexAPI/User.cs @@ -0,0 +1,184 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace PlexAPI +{ + using Newtonsoft.Json; + using PlexAPI.Hooks; + using PlexAPI.Models.Components; + using PlexAPI.Models.Errors; + using PlexAPI.Models.Requests; + using PlexAPI.Utils.Retries; + using PlexAPI.Utils; + using System.Collections.Generic; + using System.Net.Http.Headers; + using System.Net.Http; + using System.Threading.Tasks; + using System; + + /// + /// API Calls that perform operations with Plex Media Server Users
+ /// + /// + /// + /// + ///
+ public interface IUser + { + + /// + /// Get User SignIn Data + /// + /// + /// Sign in user with username and password and return user data with Plex authentication token + /// + /// + Task PostUsersSigninDataAsync(string? xPlexClientIdentifier = null, PostUsersSigninDataRequestBody? requestBody = null, string? serverUrl = null); + } + + /// + /// API Calls that perform operations with Plex Media Server Users
+ /// + /// + /// + /// + ///
+ public class User: IUser + { + /// + /// List of server URLs available for the post-users-signin-data operation. + /// + public static readonly string[] PostUsersSigninDataServerList = { + "https://plex.tv/api/v2", + }; + public SDKConfig SDKConfiguration { get; private set; } + private const string _language = "csharp"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.404.2"; + private const string _openapiDocVersion = "0.0.3"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.404.2 0.0.3 PlexAPI"; + private string _serverUrl = ""; + private ISpeakeasyHttpClient _client; + private Func? _securitySource; + + public User(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) + { + _client = client; + _securitySource = securitySource; + _serverUrl = serverUrl; + SDKConfiguration = config; + } + + public async Task PostUsersSigninDataAsync(string? xPlexClientIdentifier = null, PostUsersSigninDataRequestBody? requestBody = null, string? serverUrl = null) + { + var request = new PostUsersSigninDataRequest() + { + XPlexClientIdentifier = xPlexClientIdentifier, + RequestBody = requestBody, + }; + request.XPlexClientIdentifier ??= SDKConfiguration.XPlexClientIdentifier; + + string baseUrl = Utilities.TemplateUrl(PostUsersSigninDataServerList[0], new Dictionary(){ + }); + if (serverUrl != null) + { + baseUrl = serverUrl; + } + + var urlString = baseUrl + "/users/signin"; + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("user-agent", _userAgent); + HeaderSerializer.PopulateHeaders(ref httpRequest, request); + + var serializedBody = RequestBodySerializer.Serialize(request, "RequestBody", "form", false, true); + if (serializedBody != null) + { + httpRequest.Content = serializedBody; + } + + var hookCtx = new HookContext("post-users-signin-data", null, null); + + httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest); + + HttpResponseMessage httpResponse; + try + { + httpResponse = await _client.SendAsync(httpRequest); + int _statusCode = (int)httpResponse.StatusCode; + + if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600) + { + var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), httpResponse, null); + if (_httpResponse != null) + { + httpResponse = _httpResponse; + } + } + } + catch (Exception error) + { + var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error); + if (_httpResponse != null) + { + httpResponse = _httpResponse; + } + else + { + throw; + } + } + + httpResponse = await this.SDKConfiguration.Hooks.AfterSuccessAsync(new AfterSuccessContext(hookCtx), httpResponse); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + int responseStatusCode = (int)httpResponse.StatusCode; + if(responseStatusCode == 201) + { + if(Utilities.IsContentTypeMatch("application/json", contentType)) + { + var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + var response = new PostUsersSigninDataResponse() + { + StatusCode = responseStatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + response.UserPlexAccount = obj; + return response; + } + else + { + throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + } + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + { + throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode == 401) + { + if(Utilities.IsContentTypeMatch("application/json", contentType)) + { + var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + obj!.RawResponse = httpResponse; + throw obj!; + } + else + { + throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + } + else + { + throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + } + } +} \ No newline at end of file diff --git a/PlexAPI/Utils/AnyDeserializer.cs b/PlexAPI/Utils/AnyDeserializer.cs index f22cf18..d485b6b 100644 --- a/PlexAPI/Utils/AnyDeserializer.cs +++ b/PlexAPI/Utils/AnyDeserializer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Utils/BigIntStrConverter.cs b/PlexAPI/Utils/BigIntStrConverter.cs index f5618fc..da00a81 100644 --- a/PlexAPI/Utils/BigIntStrConverter.cs +++ b/PlexAPI/Utils/BigIntStrConverter.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Utils/DecimalStrConverter.cs b/PlexAPI/Utils/DecimalStrConverter.cs index 45ee53a..c43d1f5 100644 --- a/PlexAPI/Utils/DecimalStrConverter.cs +++ b/PlexAPI/Utils/DecimalStrConverter.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Utils/EnumConverter.cs b/PlexAPI/Utils/EnumConverter.cs index cd412f6..f4de839 100644 --- a/PlexAPI/Utils/EnumConverter.cs +++ b/PlexAPI/Utils/EnumConverter.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -40,7 +40,8 @@ namespace PlexAPI.Utils var extensionType = System.Type.GetType(objectType.FullName + "Extension"); if (Nullable.GetUnderlyingType(objectType) != null) { - extensionType = System.Type.GetType(Nullable.GetUnderlyingType(objectType)!.FullName + "Extension"); + objectType = Nullable.GetUnderlyingType(objectType)!; + extensionType = System.Type.GetType(objectType!.FullName + "Extension"); } if (extensionType == null) diff --git a/PlexAPI/Utils/FlexibleObjectDeserializer.cs b/PlexAPI/Utils/FlexibleObjectDeserializer.cs index 0f9fde7..54e2682 100644 --- a/PlexAPI/Utils/FlexibleObjectDeserializer.cs +++ b/PlexAPI/Utils/FlexibleObjectDeserializer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Utils/HeaderSerializer.cs b/PlexAPI/Utils/HeaderSerializer.cs index b6ee2ef..697d105 100644 --- a/PlexAPI/Utils/HeaderSerializer.cs +++ b/PlexAPI/Utils/HeaderSerializer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Utils/IsoDateTimeSerializer.cs b/PlexAPI/Utils/IsoDateTimeSerializer.cs index 2cb05bb..9a40e4e 100644 --- a/PlexAPI/Utils/IsoDateTimeSerializer.cs +++ b/PlexAPI/Utils/IsoDateTimeSerializer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Utils/RequestBodySerializer.cs b/PlexAPI/Utils/RequestBodySerializer.cs index 643cef7..34b3ce8 100644 --- a/PlexAPI/Utils/RequestBodySerializer.cs +++ b/PlexAPI/Utils/RequestBodySerializer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -399,11 +399,31 @@ namespace PlexAPI.Utils form[metadata.Name] = new List(); } - form[metadata.Name].Add(Utilities.ValueToString(val)); + if (Utilities.IsList(val)) + { + foreach(var item in (IEnumerable)val) + { + form[metadata.Name].Add(Utilities.ValueToString(item)); + } + } + else + { + form[metadata.Name].Add(Utilities.ValueToString(val)); + } } else { - items.Add($"{metadata.Name},{Utilities.ValueToString(val)}"); + if (Utilities.IsList(val)) + { + foreach(var item in (IEnumerable)val) + { + items.Add($"{metadata.Name},{Utilities.ValueToString(item)}"); + } + } + else + { + items.Add($"{metadata.Name},{Utilities.ValueToString(val)}"); + } } } diff --git a/PlexAPI/Utils/ResponseBodyDeserializer.cs b/PlexAPI/Utils/ResponseBodyDeserializer.cs index c1252c1..0d77ba7 100644 --- a/PlexAPI/Utils/ResponseBodyDeserializer.cs +++ b/PlexAPI/Utils/ResponseBodyDeserializer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Utils/Retries/BackoffStrategy.cs b/PlexAPI/Utils/Retries/BackoffStrategy.cs index f89a737..343fd4b 100644 --- a/PlexAPI/Utils/Retries/BackoffStrategy.cs +++ b/PlexAPI/Utils/Retries/BackoffStrategy.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Utils/Retries/Retries.cs b/PlexAPI/Utils/Retries/Retries.cs index ab76a21..33b329d 100644 --- a/PlexAPI/Utils/Retries/Retries.cs +++ b/PlexAPI/Utils/Retries/Retries.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Utils/Retries/RetryConfig.cs b/PlexAPI/Utils/Retries/RetryConfig.cs index cc1ac7b..bc7506f 100644 --- a/PlexAPI/Utils/Retries/RetryConfig.cs +++ b/PlexAPI/Utils/Retries/RetryConfig.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Utils/SecurityMetadata.cs b/PlexAPI/Utils/SecurityMetadata.cs index 8a957ce..fec1e66 100644 --- a/PlexAPI/Utils/SecurityMetadata.cs +++ b/PlexAPI/Utils/SecurityMetadata.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Utils/SpeakeasyHttpClient.cs b/PlexAPI/Utils/SpeakeasyHttpClient.cs index e79b416..ae469dd 100644 --- a/PlexAPI/Utils/SpeakeasyHttpClient.cs +++ b/PlexAPI/Utils/SpeakeasyHttpClient.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Utils/SpeakeasyMetadata.cs b/PlexAPI/Utils/SpeakeasyMetadata.cs index 557b4c7..c6d0720 100644 --- a/PlexAPI/Utils/SpeakeasyMetadata.cs +++ b/PlexAPI/Utils/SpeakeasyMetadata.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Utils/URLBuilder.cs b/PlexAPI/Utils/URLBuilder.cs index b82d286..f3645e5 100644 --- a/PlexAPI/Utils/URLBuilder.cs +++ b/PlexAPI/Utils/URLBuilder.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/PlexAPI/Utils/Utilities.cs b/PlexAPI/Utils/Utilities.cs index feac2ae..f686539 100644 --- a/PlexAPI/Utils/Utilities.cs +++ b/PlexAPI/Utils/Utilities.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -208,6 +208,10 @@ namespace PlexAPI.Utils } return (string)(method.Invoke(null, new[] { value }) ?? ""); } + else if (IsDictionary(value)) + { + return JsonConvert.SerializeObject(value, GetDefaultJsonSerializerSettings()); + } return value.ToString() ?? ""; } diff --git a/PlexAPI/Video.cs b/PlexAPI/Video.cs index 8dd971b..e90bd7d 100644 --- a/PlexAPI/Video.cs +++ b/PlexAPI/Video.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -62,15 +62,15 @@ namespace PlexAPI { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.354.2"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.404.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.354.2 0.0.3 PlexAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.404.2 0.0.3 PlexAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; - public Video(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) + public Video(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) { _client = client; _securitySource = securitySource; @@ -134,7 +134,7 @@ namespace PlexAPI StatusCode = responseStatusCode, ContentType = contentType, RawResponse = httpResponse - };; + }; } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { @@ -215,7 +215,7 @@ namespace PlexAPI StatusCode = responseStatusCode, ContentType = contentType, RawResponse = httpResponse - };; + }; } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { diff --git a/PlexAPI/Watchlist.cs b/PlexAPI/Watchlist.cs index 3edcd7b..4da00c7 100644 --- a/PlexAPI/Watchlist.cs +++ b/PlexAPI/Watchlist.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -59,15 +59,15 @@ namespace PlexAPI }; public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.354.2"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.404.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.354.2 0.0.3 PlexAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.404.2 0.0.3 PlexAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; - public Watchlist(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) + public Watchlist(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) { _client = client; _securitySource = securitySource; diff --git a/README.md b/README.md index 7dc9396..56b906c 100644 --- a/README.md +++ b/README.md @@ -82,9 +82,14 @@ var res = await sdk.Server.GetServerCapabilitiesAsync(); ### [Plex](docs/sdks/plex/README.md) +* [GetCompanionsData](docs/sdks/plex/README.md#getcompanionsdata) - Get Companions Data +* [GetUserFriends](docs/sdks/plex/README.md#getuserfriends) - Get list of friends of the user logged in +* [GetGeoData](docs/sdks/plex/README.md#getgeodata) - Get Geo Data * [GetHomeData](docs/sdks/plex/README.md#gethomedata) - Get Plex Home Data +* [GetResources](docs/sdks/plex/README.md#getresources) - Get Resources * [GetPin](docs/sdks/plex/README.md#getpin) - Get a Pin -* [GetToken](docs/sdks/plex/README.md#gettoken) - Get Access Token +* [GetTokenByPinId](docs/sdks/plex/README.md#gettokenbypinid) - Get Access Token by PinId +* [GetUserDetails](docs/sdks/plex/README.md#getuserdetails) - Get UserData By Token ### [Hubs](docs/sdks/hubs/README.md) @@ -154,6 +159,10 @@ var res = await sdk.Server.GetServerCapabilitiesAsync(); * [CheckForUpdates](docs/sdks/updater/README.md#checkforupdates) - Checking for updates * [ApplyUpdates](docs/sdks/updater/README.md#applyupdates) - Apply Updates +### [User](docs/sdks/user/README.md) + +* [PostUsersSigninData](docs/sdks/user/README.md#postuserssignindata) - Get User SignIn Data + ### [Watchlist](docs/sdks/watchlist/README.md) * [GetWatchlist](docs/sdks/watchlist/README.md#getwatchlist) - Get User Watchlist @@ -190,16 +199,13 @@ The server URL can also be overridden on a per-operation basis, provided a serve ```csharp using PlexAPI; using PlexAPI.Models.Components; -using PlexAPI.Models.Requests; -var sdk = new PlexAPISDK(xPlexClientIdentifier: "Postman"); - -var res = await sdk.Plex.GetPinAsync( - serverUrl: "https://plex.tv/api/v2", - xPlexProduct: "Postman", - strong: false, +var sdk = new PlexAPISDK( + accessToken: "", xPlexClientIdentifier: "Postman"); +var res = await sdk.Plex.GetCompanionsDataAsync(serverUrl: "https://plex.tv/api/v2"); + // handle response ``` @@ -230,46 +236,6 @@ var res = await sdk.Server.GetServerCapabilitiesAsync(); ``` - -## Global Parameters - -## Global Parameters - -A parameter is configured globally. This parameter may be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, This global value will be used as the default on the operations that use it. When such operations are called, there is a place in each to override the global value, if needed. - -For example, you can set `X-Plex-Client-Identifier` to `"Postman"` at SDK initialization and then you do not have to pass the same value on calls to operations like `GetPin`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration. - - -### Available Globals - -The following global parameter is available. - -| Name | Type | Required | Description | -| ---- | ---- |:--------:| ----------- | -| xPlexClientIdentifier | string | | The unique identifier for the client application -This is used to track the client application and its usage -(UUID, serial number, or other number unique per device) - | - - -### Example - -```csharp -using PlexAPI; -using PlexAPI.Models.Components; -using PlexAPI.Models.Requests; - -var sdk = new PlexAPISDK(xPlexClientIdentifier: "Postman"); - -var res = await sdk.Plex.GetPinAsync( - xPlexProduct: "Postman", - strong: false, - xPlexClientIdentifier: "Postman"); - -// handle response -``` - - ## Error Handling diff --git a/RELEASES.md b/RELEASES.md index 99eaf2c..33d0c2d 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -54,4 +54,14 @@ Based on: - OpenAPI Doc 0.0.3 - Speakeasy CLI 1.148.0 (2.237.3) https://github.com/speakeasy-api/speakeasy ### Generated -- [csharp v0.1.5] . \ No newline at end of file +- [csharp v0.1.5] . + +## 2024-08-23 00:08:54 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.377.3 (2.404.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [csharp v0.4.0] . +### Releases +- [NuGet v0.4.0] https://www.nuget.org/packages/PlexAPI/0.4.0 - . \ No newline at end of file diff --git a/docs/Models/Components/Security.md b/docs/Models/Components/Security.md index cd7c168..9ff3ae5 100644 --- a/docs/Models/Components/Security.md +++ b/docs/Models/Components/Security.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `AccessToken` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| `AccessToken` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/GetCompanionsDataErrors.md b/docs/Models/Errors/GetCompanionsDataErrors.md new file mode 100644 index 0000000..cd3e516 --- /dev/null +++ b/docs/Models/Errors/GetCompanionsDataErrors.md @@ -0,0 +1,10 @@ +# GetCompanionsDataErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `Code` | *double* | :heavy_minus_sign: | N/A | 1001 | +| `Message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `Status` | *double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/Models/Errors/GetCompanionsDataResponseBody.md b/docs/Models/Errors/GetCompanionsDataResponseBody.md new file mode 100644 index 0000000..2465548 --- /dev/null +++ b/docs/Models/Errors/GetCompanionsDataResponseBody.md @@ -0,0 +1,11 @@ +# GetCompanionsDataResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `Errors` | List<[GetCompanionsDataErrors](../../Models/Errors/GetCompanionsDataErrors.md)> | :heavy_minus_sign: | N/A | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Errors/GetGeoDataErrors.md b/docs/Models/Errors/GetGeoDataErrors.md new file mode 100644 index 0000000..edcd7f5 --- /dev/null +++ b/docs/Models/Errors/GetGeoDataErrors.md @@ -0,0 +1,10 @@ +# GetGeoDataErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `Code` | *double* | :heavy_minus_sign: | N/A | 1001 | +| `Message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `Status` | *double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/Models/Errors/GetTokenResponseBody.md b/docs/Models/Errors/GetGeoDataResponseBody.md similarity index 91% rename from docs/Models/Errors/GetTokenResponseBody.md rename to docs/Models/Errors/GetGeoDataResponseBody.md index 676b6cd..792971c 100644 --- a/docs/Models/Errors/GetTokenResponseBody.md +++ b/docs/Models/Errors/GetGeoDataResponseBody.md @@ -1,11 +1,11 @@ -# GetTokenResponseBody +# GetGeoDataResponseBody -X-Plex-Client-Identifier is missing +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. ## Fields | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -| `Errors` | List<[GetTokenErrors](../../Models/Errors/GetTokenErrors.md)> | :heavy_minus_sign: | N/A | +| `Errors` | List<[GetGeoDataErrors](../../Models/Errors/GetGeoDataErrors.md)> | :heavy_minus_sign: | N/A | | `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Errors/GetPinErrors.md b/docs/Models/Errors/GetPinErrors.md index 29b493d..77a5b92 100644 --- a/docs/Models/Errors/GetPinErrors.md +++ b/docs/Models/Errors/GetPinErrors.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | Example | | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | -| `Code` | *double* | :heavy_minus_sign: | N/A | 1000 | +| `Code` | *long* | :heavy_minus_sign: | N/A | 1000 | | `Message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | -| `Status` | *double* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file +| `Status` | *long* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/Models/Errors/GetPinResponseBody.md b/docs/Models/Errors/GetPinResponseBody.md index 72f4ba1..074a264 100644 --- a/docs/Models/Errors/GetPinResponseBody.md +++ b/docs/Models/Errors/GetPinResponseBody.md @@ -1,6 +1,6 @@ # GetPinResponseBody -X-Plex-Client-Identifier is missing +Bad Request response when the X-Plex-Client-Identifier is missing ## Fields diff --git a/docs/Models/Errors/GetResourcesErrors.md b/docs/Models/Errors/GetResourcesErrors.md new file mode 100644 index 0000000..2c4b78b --- /dev/null +++ b/docs/Models/Errors/GetResourcesErrors.md @@ -0,0 +1,10 @@ +# GetResourcesErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `Code` | *double* | :heavy_minus_sign: | N/A | 1001 | +| `Message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `Status` | *double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/Models/Errors/GetResourcesResponseBody.md b/docs/Models/Errors/GetResourcesResponseBody.md new file mode 100644 index 0000000..da17077 --- /dev/null +++ b/docs/Models/Errors/GetResourcesResponseBody.md @@ -0,0 +1,11 @@ +# GetResourcesResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `Errors` | List<[GetResourcesErrors](../../Models/Errors/GetResourcesErrors.md)> | :heavy_minus_sign: | N/A | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Errors/GetTokenByPinIdErrors.md b/docs/Models/Errors/GetTokenByPinIdErrors.md new file mode 100644 index 0000000..635382d --- /dev/null +++ b/docs/Models/Errors/GetTokenByPinIdErrors.md @@ -0,0 +1,9 @@ +# GetTokenByPinIdErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------- | ------------------------- | ------------------------- | ------------------------- | ------------------------- | +| `Code` | *long* | :heavy_minus_sign: | N/A | 1020 | +| `Message` | *string* | :heavy_minus_sign: | N/A | Code not found or expired | \ No newline at end of file diff --git a/docs/Models/Errors/GetTokenByPinIdResponseBody.md b/docs/Models/Errors/GetTokenByPinIdResponseBody.md new file mode 100644 index 0000000..8848339 --- /dev/null +++ b/docs/Models/Errors/GetTokenByPinIdResponseBody.md @@ -0,0 +1,11 @@ +# GetTokenByPinIdResponseBody + +Not Found or Expired + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `Errors` | List<[GetTokenByPinIdErrors](../../Models/Errors/GetTokenByPinIdErrors.md)> | :heavy_minus_sign: | N/A | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Errors/GetTokenErrors.md b/docs/Models/Errors/GetTokenErrors.md deleted file mode 100644 index cfb3fba..0000000 --- a/docs/Models/Errors/GetTokenErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetTokenErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | -| `Code` | *double* | :heavy_minus_sign: | N/A | 1000 | -| `Message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | -| `Status` | *double* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/Models/Errors/GetUserDetailsErrors.md b/docs/Models/Errors/GetUserDetailsErrors.md new file mode 100644 index 0000000..6db42cc --- /dev/null +++ b/docs/Models/Errors/GetUserDetailsErrors.md @@ -0,0 +1,10 @@ +# GetUserDetailsErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `Code` | *double* | :heavy_minus_sign: | N/A | 1001 | +| `Message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `Status` | *double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/Models/Errors/GetUserDetailsResponseBody.md b/docs/Models/Errors/GetUserDetailsResponseBody.md new file mode 100644 index 0000000..a15602a --- /dev/null +++ b/docs/Models/Errors/GetUserDetailsResponseBody.md @@ -0,0 +1,11 @@ +# GetUserDetailsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `Errors` | List<[GetUserDetailsErrors](../../Models/Errors/GetUserDetailsErrors.md)> | :heavy_minus_sign: | N/A | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Errors/GetUserFriendsErrors.md b/docs/Models/Errors/GetUserFriendsErrors.md new file mode 100644 index 0000000..263ed3f --- /dev/null +++ b/docs/Models/Errors/GetUserFriendsErrors.md @@ -0,0 +1,10 @@ +# GetUserFriendsErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `Code` | *double* | :heavy_minus_sign: | N/A | 1001 | +| `Message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `Status` | *double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/Models/Errors/GetUserFriendsResponseBody.md b/docs/Models/Errors/GetUserFriendsResponseBody.md new file mode 100644 index 0000000..31b6b72 --- /dev/null +++ b/docs/Models/Errors/GetUserFriendsResponseBody.md @@ -0,0 +1,11 @@ +# GetUserFriendsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `Errors` | List<[GetUserFriendsErrors](../../Models/Errors/GetUserFriendsErrors.md)> | :heavy_minus_sign: | N/A | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Errors/PostUsersSigninDataErrors.md b/docs/Models/Errors/PostUsersSigninDataErrors.md new file mode 100644 index 0000000..0ac2c9e --- /dev/null +++ b/docs/Models/Errors/PostUsersSigninDataErrors.md @@ -0,0 +1,10 @@ +# PostUsersSigninDataErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `Code` | *double* | :heavy_minus_sign: | N/A | 1001 | +| `Message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `Status` | *double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/Models/Errors/PostUsersSigninDataResponseBody.md b/docs/Models/Errors/PostUsersSigninDataResponseBody.md new file mode 100644 index 0000000..03fbbbe --- /dev/null +++ b/docs/Models/Errors/PostUsersSigninDataResponseBody.md @@ -0,0 +1,11 @@ +# PostUsersSigninDataResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `Errors` | List<[PostUsersSigninDataErrors](../../Models/Errors/PostUsersSigninDataErrors.md)> | :heavy_minus_sign: | N/A | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Requests/Billing.md b/docs/Models/Requests/Billing.md new file mode 100644 index 0000000..8c4a046 --- /dev/null +++ b/docs/Models/Requests/Billing.md @@ -0,0 +1,9 @@ +# Billing + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `InternalPaymentMethod` | [InternalPaymentMethod](../../Models/Requests/InternalPaymentMethod.md) | :heavy_check_mark: | N/A | +| `PaymentMethodId` | *long* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Requests/Connections.md b/docs/Models/Requests/Connections.md new file mode 100644 index 0000000..afa7e6e --- /dev/null +++ b/docs/Models/Requests/Connections.md @@ -0,0 +1,14 @@ +# Connections + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Protocol` | *string* | :heavy_minus_sign: | N/A | +| `Address` | *string* | :heavy_minus_sign: | N/A | +| `Port` | *double* | :heavy_minus_sign: | N/A | +| `Uri` | *string* | :heavy_minus_sign: | N/A | +| `Local` | *bool* | :heavy_minus_sign: | N/A | +| `Relay` | *bool* | :heavy_minus_sign: | N/A | +| `IPv6` | *bool* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Requests/Features.md b/docs/Models/Requests/Features.md new file mode 100644 index 0000000..8350d24 --- /dev/null +++ b/docs/Models/Requests/Features.md @@ -0,0 +1,66 @@ +# Features + + +## Values + +| Name | Value | +| --------------------------------------- | --------------------------------------- | +| `AndroidDolbyVision` | Android - Dolby Vision | +| `AndroidPiP` | Android - PiP | +| `CUSunset` | CU Sunset | +| `HRKEnableEUR` | HRK_enable_EUR | +| `TREBLEShowFeatures` | TREBLE-show-features | +| `AdCountdownTimer` | ad-countdown-timer | +| `AdaptiveBitrate` | adaptive_bitrate | +| `AmazonLoopDebug` | amazon-loop-debug | +| `AvodAdAnalysis` | avod-ad-analysis | +| `AvodNewMedia` | avod-new-media | +| `BlacklistGetSignin` | blacklist_get_signin | +| `ClientRadioStations` | client-radio-stations | +| `CloudflareTurnstileRequired` | cloudflare-turnstile-required | +| `Collections` | collections | +| `CommentsAndRepliesPushNotifications` | comments_and_replies_push_notifications | +| `CommunityAccessPlexTv` | community_access_plex_tv | +| `CompanionsSonos` | companions_sonos | +| `CustomHomeRemoval` | custom-home-removal | +| `DisableHomeUserFriendships` | disable_home_user_friendships | +| `DisableSharingFriendships` | disable_sharing_friendships | +| `DrmSupport` | drm_support | +| `ExcludeRestrictions` | exclude restrictions | +| `FederatedAuth` | federated-auth | +| `FriendRequestPushNotifications` | friend_request_push_notifications | +| `GuidedUpgrade` | guided-upgrade | +| `Home` | home | +| `IncreasePasswordComplexity` | increase-password-complexity | +| `Ios14PrivacyBanner` | ios14-privacy-banner | +| `IterableNotificationTokens` | iterable-notification-tokens | +| `KeepPaymentMethod` | keep-payment-method | +| `KevinBacon` | kevin-bacon | +| `KoreaConsent` | korea-consent | +| `LeIsrgRootX1` | le_isrg_root_x1 | +| `LetsEncrypt` | lets_encrypt | +| `LightningDvrPivot` | lightning-dvr-pivot | +| `LiveTvSupportIncompleteSegments` | live-tv-support-incomplete-segments | +| `Livetv` | livetv | +| `MetadataSearch` | metadata_search | +| `NewPlexPassPrices` | new_plex_pass_prices | +| `NewsProviderSunsetModal` | news-provider-sunset-modal | +| `PhotosFavorites` | photos-favorites | +| `PhotosMetadataEdition` | photos-metadata-edition | +| `PmsHealth` | pms_health | +| `Radio` | radio | +| `RateLimitClientToken` | rate-limit-client-token | +| `ScrobblingServicePlexTv` | scrobbling-service-plex-tv | +| `SharedServerNotification` | shared_server_notification | +| `SharedSourceNotification` | shared_source_notification | +| `SigninWithApple` | signin_with_apple | +| `SpringServeAdProvider` | spring_serve_ad_provider | +| `TranscoderCache` | transcoder_cache | +| `TunerSharing` | tuner-sharing | +| `TwoFactorAuthentication` | two-factor-authentication | +| `Unsupportedtuners` | unsupportedtuners | +| `Upgrade3ds2` | upgrade-3ds2 | +| `VodSchema` | vod-schema | +| `VodCloudflare` | vod_cloudflare | +| `WatchTogetherInvite` | watch-together-invite | +| `WebServerDashboard` | web_server_dashboard | \ No newline at end of file diff --git a/docs/Models/Requests/Friend.md b/docs/Models/Requests/Friend.md new file mode 100644 index 0000000..8e12d05 --- /dev/null +++ b/docs/Models/Requests/Friend.md @@ -0,0 +1,19 @@ +# Friend + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | +| `Email` | *string* | :heavy_check_mark: | The account email address | username@email.com | +| `FriendlyName` | *string* | :heavy_check_mark: | The account full name | exampleUser | +| `Home` | *bool* | :heavy_check_mark: | If the account is a Plex Home user | | +| `Id` | *int* | :heavy_check_mark: | The Plex account ID | | +| `Restricted` | *bool* | :heavy_minus_sign: | If the account is a Plex Home managed user | | +| `SharedServers` | List<[SharedServers](../../Models/Requests/SharedServers.md)> | :heavy_check_mark: | N/A | | +| `SharedSources` | List<[SharedSources](../../Models/Requests/SharedSources.md)> | :heavy_check_mark: | N/A | | +| `Status` | [Status](../../Models/Requests/Status.md) | :heavy_check_mark: | Current friend request status | accepted | +| `Thumb` | *string* | :heavy_check_mark: | URL of the account thumbnail | https://plex.tv/users/7d1916e0d8f6e76b/avatar?c=1694481578 | +| `Title` | *string* | :heavy_check_mark: | The title of the account (username or friendly name) | username123 | +| `Username` | *string* | :heavy_check_mark: | The account username | username123 | +| `Uuid` | *string* | :heavy_check_mark: | The account Universally Unique Identifier (UUID) | 7d1916e0d8f6e76b | \ No newline at end of file diff --git a/docs/Models/Requests/GeoData.md b/docs/Models/Requests/GeoData.md new file mode 100644 index 0000000..49887a8 --- /dev/null +++ b/docs/Models/Requests/GeoData.md @@ -0,0 +1,20 @@ +# GeoData + +Geo location data + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `Code` | *string* | :heavy_check_mark: | The ISO 3166-1 alpha-2 code of the country. | VI | +| `ContinentCode` | *string* | :heavy_check_mark: | The continent code where the country is located. | NA | +| `Country` | *string* | :heavy_check_mark: | The official name of the country. | United States Virgin Islands | +| `City` | *string* | :heavy_check_mark: | The name of the city. | Amsterdam | +| `EuropeanUnionMember` | *bool* | :heavy_minus_sign: | Indicates if the country is a member of the European Union. | true | +| `TimeZone` | *string* | :heavy_check_mark: | The time zone of the country. | America/St_Thomas | +| `PostalCode` | *long* | :heavy_check_mark: | The postal code of the location. | 802 | +| `InPrivacyRestrictedCountry` | *bool* | :heavy_minus_sign: | Indicates if the country has privacy restrictions. | true | +| `InPrivacyRestrictedRegion` | *bool* | :heavy_minus_sign: | Indicates if the region has privacy restrictions. | true | +| `Subdivisions` | *string* | :heavy_check_mark: | The name of the primary administrative subdivision. | Saint Thomas | +| `Coordinates` | *string* | :heavy_check_mark: | The geographical coordinates (latitude, longitude) of the location. | 18.3381, -64.8941 | \ No newline at end of file diff --git a/docs/Models/Requests/GetCompanionsDataResponse.md b/docs/Models/Requests/GetCompanionsDataResponse.md new file mode 100644 index 0000000..21cf202 --- /dev/null +++ b/docs/Models/Requests/GetCompanionsDataResponse.md @@ -0,0 +1,11 @@ +# GetCompanionsDataResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `ResponseBodies` | List<[ResponseBody](../../Models/Requests/ResponseBody.md)> | :heavy_minus_sign: | Companions Data | \ No newline at end of file diff --git a/docs/Models/Requests/GetGeoDataGeoData.md b/docs/Models/Requests/GetGeoDataGeoData.md new file mode 100644 index 0000000..1078eff --- /dev/null +++ b/docs/Models/Requests/GetGeoDataGeoData.md @@ -0,0 +1,20 @@ +# GetGeoDataGeoData + +Geo location data + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `Code` | *string* | :heavy_check_mark: | The ISO 3166-1 alpha-2 code of the country. | VI | +| `ContinentCode` | *string* | :heavy_check_mark: | The continent code where the country is located. | NA | +| `Country` | *string* | :heavy_check_mark: | The official name of the country. | United States Virgin Islands | +| `City` | *string* | :heavy_check_mark: | The name of the city. | Amsterdam | +| `EuropeanUnionMember` | *bool* | :heavy_minus_sign: | Indicates if the country is a member of the European Union. | true | +| `TimeZone` | *string* | :heavy_check_mark: | The time zone of the country. | America/St_Thomas | +| `PostalCode` | *long* | :heavy_check_mark: | The postal code of the location. | 802 | +| `InPrivacyRestrictedCountry` | *bool* | :heavy_minus_sign: | Indicates if the country has privacy restrictions. | true | +| `InPrivacyRestrictedRegion` | *bool* | :heavy_minus_sign: | Indicates if the region has privacy restrictions. | true | +| `Subdivisions` | *string* | :heavy_check_mark: | The name of the primary administrative subdivision. | Saint Thomas | +| `Coordinates` | *string* | :heavy_check_mark: | The geographical coordinates (latitude, longitude) of the location. | 18.3381, -64.8941 | \ No newline at end of file diff --git a/docs/Models/Requests/GetPinResponseBody.md b/docs/Models/Requests/GetGeoDataResponse.md similarity index 57% rename from docs/Models/Requests/GetPinResponseBody.md rename to docs/Models/Requests/GetGeoDataResponse.md index 4abc355..db601ec 100644 --- a/docs/Models/Requests/GetPinResponseBody.md +++ b/docs/Models/Requests/GetGeoDataResponse.md @@ -1,21 +1,11 @@ -# GetPinResponseBody - -The Pin +# GetGeoDataResponse ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Id` | *double* | :heavy_minus_sign: | PinID for use with authentication | 1272322473 | -| `Code` | *string* | :heavy_minus_sign: | N/A | 3patfx1a78ukcbr7x0n9bl26t | -| `Product` | *string* | :heavy_minus_sign: | N/A | Plex Web | -| `Trusted` | *bool* | :heavy_minus_sign: | N/A | | -| `Qr` | *string* | :heavy_minus_sign: | a link to a QR code hosted on plex.tv
The QR code redirects to the relevant `plex.tv/link` authentication page
Which then prompts the user for the 4 Digit Link Pin
| https://plex.tv/api/v2/pins/qr/3patfx1a78ukcbr7x0n9bl26t | -| `ClientIdentifier` | *string* | :heavy_minus_sign: | N/A | Postman | -| `Location` | [Location](../../Models/Requests/Location.md) | :heavy_minus_sign: | N/A | | -| `ExpiresIn` | *double* | :heavy_minus_sign: | N/A | 1800 | -| `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | N/A | 2023-04-12 17:00:03 +0000 UTC | -| `ExpiresAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | N/A | 2023-04-12 17:30:03 +0000 UTC | -| `AuthToken` | *string* | :heavy_minus_sign: | N/A | | -| `NewRegistration` | *bool* | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | +| `GeoData` | [GetGeoDataGeoData](../../Models/Requests/GetGeoDataGeoData.md) | :heavy_minus_sign: | Gets the geo location data of the user | {
"code": "VI",
"continent_code": "NA",
"country": "United States Virgin Islands",
"city": "Amsterdam",
"european_union_member": true,
"time_zone": "America/St_Thomas",
"postal_code": 802,
"in_privacy_restricted_country": true,
"in_privacy_restricted_region": true,
"subdivisions": "Saint Thomas",
"coordinates": "18.3381, -64.8941"
} | \ No newline at end of file diff --git a/docs/Models/Requests/GetLibrariesDirectory.md b/docs/Models/Requests/GetLibrariesDirectory.md index d1427dc..26db394 100644 --- a/docs/Models/Requests/GetLibrariesDirectory.md +++ b/docs/Models/Requests/GetLibrariesDirectory.md @@ -3,26 +3,26 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `AllowSync` | *bool* | :heavy_minus_sign: | N/A | true | -| `Art` | *string* | :heavy_minus_sign: | N/A | /:/resources/movie-fanart.jpg | -| `Composite` | *string* | :heavy_minus_sign: | N/A | /library/sections/1/composite/1705615584 | -| `Filters` | *bool* | :heavy_minus_sign: | N/A | true | -| `Refreshing` | *bool* | :heavy_minus_sign: | N/A | false | -| `Thumb` | *string* | :heavy_minus_sign: | N/A | /:/resources/movie.png | -| `Key` | *string* | :heavy_minus_sign: | N/A | 1 | -| `Type` | *string* | :heavy_minus_sign: | N/A | movie | -| `Title` | *string* | :heavy_minus_sign: | N/A | Movies | -| `Agent` | *string* | :heavy_minus_sign: | N/A | tv.plex.agents.movie | -| `Scanner` | *string* | :heavy_minus_sign: | N/A | Plex Movie | -| `Language` | *string* | :heavy_minus_sign: | N/A | en-US | -| `Uuid` | *string* | :heavy_minus_sign: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 | -| `UpdatedAt` | *int* | :heavy_minus_sign: | N/A | 1705615634 | -| `CreatedAt` | *int* | :heavy_minus_sign: | N/A | 1654131312 | -| `ScannedAt` | *int* | :heavy_minus_sign: | N/A | 1705615584 | -| `Content` | *bool* | :heavy_minus_sign: | N/A | true | -| `Directory` | *bool* | :heavy_minus_sign: | N/A | true | -| `ContentChangedAt` | *int* | :heavy_minus_sign: | N/A | 3192854 | -| `Hidden` | *int* | :heavy_minus_sign: | N/A | 0 | -| `Location` | List<[GetLibrariesLocation](../../Models/Requests/GetLibrariesLocation.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | +| `AllowSync` | *bool* | :heavy_minus_sign: | N/A | true | +| `Art` | *string* | :heavy_minus_sign: | N/A | /:/resources/movie-fanart.jpg | +| `Composite` | *string* | :heavy_minus_sign: | N/A | /library/sections/1/composite/1705615584 | +| `Filters` | *bool* | :heavy_minus_sign: | N/A | true | +| `Refreshing` | *bool* | :heavy_minus_sign: | N/A | false | +| `Thumb` | *string* | :heavy_minus_sign: | N/A | /:/resources/movie.png | +| `Key` | *string* | :heavy_minus_sign: | N/A | 1 | +| `Type` | *string* | :heavy_minus_sign: | N/A | movie | +| `Title` | *string* | :heavy_minus_sign: | N/A | Movies | +| `Agent` | *string* | :heavy_minus_sign: | N/A | tv.plex.agents.movie | +| `Scanner` | *string* | :heavy_minus_sign: | N/A | Plex Movie | +| `Language` | *string* | :heavy_minus_sign: | N/A | en-US | +| `Uuid` | *string* | :heavy_minus_sign: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 | +| `UpdatedAt` | *int* | :heavy_minus_sign: | N/A | 1705615634 | +| `CreatedAt` | *int* | :heavy_minus_sign: | N/A | 1654131312 | +| `ScannedAt` | *int* | :heavy_minus_sign: | N/A | 1705615584 | +| `Content` | *bool* | :heavy_minus_sign: | N/A | true | +| `Directory` | *bool* | :heavy_minus_sign: | N/A | true | +| `ContentChangedAt` | *int* | :heavy_minus_sign: | N/A | 3192854 | +| `Hidden` | *int* | :heavy_minus_sign: | N/A | 0 | +| `Location` | List<[Location](../../Models/Requests/Location.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Requests/GetLibrariesLocation.md b/docs/Models/Requests/GetLibrariesLocation.md deleted file mode 100644 index d3ed793..0000000 --- a/docs/Models/Requests/GetLibrariesLocation.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetLibrariesLocation - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | -| `Id` | *int* | :heavy_minus_sign: | N/A | 1 | -| `Path` | *string* | :heavy_minus_sign: | N/A | /movies | \ No newline at end of file diff --git a/docs/Models/Requests/GetPinAuthPinContainer.md b/docs/Models/Requests/GetPinAuthPinContainer.md new file mode 100644 index 0000000..1fa1a7b --- /dev/null +++ b/docs/Models/Requests/GetPinAuthPinContainer.md @@ -0,0 +1,21 @@ +# GetPinAuthPinContainer + +Requests a new pin id used in the authentication flow + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Id` | *long* | :heavy_check_mark: | N/A | 308667304 | +| `Code` | *string* | :heavy_check_mark: | N/A | 7RQZ | +| `Product` | *string* | :heavy_check_mark: | N/A | 0 | +| `Trusted` | *bool* | :heavy_minus_sign: | N/A | | +| `Qr` | *string* | :heavy_check_mark: | N/A | https://plex.tv/api/v2/pins/qr/7RQZ | +| `ClientIdentifier` | *string* | :heavy_check_mark: | The X-Client-Identifier used in the request | | +| `Location` | [GeoData](../../Models/Requests/GeoData.md) | :heavy_check_mark: | Geo location data | {
"code": "VI",
"continent_code": "NA",
"country": "United States Virgin Islands",
"city": "Amsterdam",
"european_union_member": true,
"time_zone": "America/St_Thomas",
"postal_code": 802,
"in_privacy_restricted_country": true,
"in_privacy_restricted_region": true,
"subdivisions": "Saint Thomas",
"coordinates": "18.3381, -64.8941"
} | +| `ExpiresIn` | *long* | :heavy_minus_sign: | The number of seconds this pin expires, by default 900 seconds | 876 | +| `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | N/A | 2024-07-16T17:03:05Z | +| `ExpiresAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | N/A | 2024-07-16T17:18:05Z | +| `AuthToken` | *object* | :heavy_minus_sign: | N/A | | +| `NewRegistration` | *object* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Requests/GetPinResponse.md b/docs/Models/Requests/GetPinResponse.md index 71fb9b9..a40e0e7 100644 --- a/docs/Models/Requests/GetPinResponse.md +++ b/docs/Models/Requests/GetPinResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `Object` | [Models.Requests.GetPinResponseBody](../../Models/Requests/GetPinResponseBody.md) | :heavy_minus_sign: | The Pin | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | +| `AuthPinContainer` | [GetPinAuthPinContainer](../../Models/Requests/GetPinAuthPinContainer.md) | :heavy_minus_sign: | Requests a new pin id used in the authentication flow | {
"id": 308667304,
"code": "7RQZ",
"product": "0",
"trusted": false,
"qr": "https://plex.tv/api/v2/pins/qr/7RQZ",
"clientIdentifier": "string",
"location": {
"code": "VI",
"continent_code": "NA",
"country": "United States Virgin Islands",
"city": "Amsterdam",
"european_union_member": true,
"time_zone": "America/St_Thomas",
"postal_code": 802,
"in_privacy_restricted_country": true,
"in_privacy_restricted_region": true,
"subdivisions": "Saint Thomas",
"coordinates": "18.3381, -64.8941"
},
"expiresIn": 876,
"createdAt": "2024-07-16T17:03:05Z",
"expiresAt": "2024-07-16T17:18:05Z",
"authToken": null,
"newRegistration": null
} | \ No newline at end of file diff --git a/docs/Models/Requests/GetResourcesRequest.md b/docs/Models/Requests/GetResourcesRequest.md new file mode 100644 index 0000000..8756772 --- /dev/null +++ b/docs/Models/Requests/GetResourcesRequest.md @@ -0,0 +1,11 @@ +# GetResourcesRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `XPlexClientIdentifier` | *string* | :heavy_minus_sign: | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
| Postman | +| `IncludeHttps` | [IncludeHttps](../../Models/Requests/IncludeHttps.md) | :heavy_minus_sign: | Include Https entries in the results | | +| `IncludeRelay` | [IncludeRelay](../../Models/Requests/IncludeRelay.md) | :heavy_minus_sign: | Include Relay addresses in the results | | +| `IncludeIPv6` | [IncludeIPv6](../../Models/Requests/IncludeIPv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | | \ No newline at end of file diff --git a/docs/Models/Requests/GetResourcesResponse.md b/docs/Models/Requests/GetResourcesResponse.md new file mode 100644 index 0000000..9ac2d40 --- /dev/null +++ b/docs/Models/Requests/GetResourcesResponse.md @@ -0,0 +1,11 @@ +# GetResourcesResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `PlexDevices` | List<[PlexDevice](../../Models/Requests/PlexDevice.md)> | :heavy_minus_sign: | List of Plex Devices. This includes Plex hosted servers and clients | \ No newline at end of file diff --git a/docs/Models/Requests/GetTokenByPinIdAuthPinContainer.md b/docs/Models/Requests/GetTokenByPinIdAuthPinContainer.md new file mode 100644 index 0000000..d93c96a --- /dev/null +++ b/docs/Models/Requests/GetTokenByPinIdAuthPinContainer.md @@ -0,0 +1,21 @@ +# GetTokenByPinIdAuthPinContainer + +The Pin with a non-null authToken when it has been verified by the user + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Id` | *long* | :heavy_check_mark: | N/A | 308667304 | +| `Code` | *string* | :heavy_check_mark: | N/A | 7RQZ | +| `Product` | *string* | :heavy_check_mark: | N/A | 0 | +| `Trusted` | *bool* | :heavy_minus_sign: | N/A | | +| `Qr` | *string* | :heavy_check_mark: | N/A | https://plex.tv/api/v2/pins/qr/7RQZ | +| `ClientIdentifier` | *string* | :heavy_check_mark: | The X-Client-Identifier used in the request | | +| `Location` | [GetTokenByPinIdGeoData](../../Models/Requests/GetTokenByPinIdGeoData.md) | :heavy_check_mark: | Geo location data | {
"code": "VI",
"continent_code": "NA",
"country": "United States Virgin Islands",
"city": "Amsterdam",
"european_union_member": true,
"time_zone": "America/St_Thomas",
"postal_code": 802,
"in_privacy_restricted_country": true,
"in_privacy_restricted_region": true,
"subdivisions": "Saint Thomas",
"coordinates": "18.3381, -64.8941"
} | +| `ExpiresIn` | *long* | :heavy_minus_sign: | The number of seconds this pin expires, by default 900 seconds | 876 | +| `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | N/A | 2024-07-16T17:03:05Z | +| `ExpiresAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | N/A | 2024-07-16T17:18:05Z | +| `AuthToken` | *object* | :heavy_minus_sign: | N/A | | +| `NewRegistration` | *object* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Requests/GetTokenByPinIdGeoData.md b/docs/Models/Requests/GetTokenByPinIdGeoData.md new file mode 100644 index 0000000..1407a8a --- /dev/null +++ b/docs/Models/Requests/GetTokenByPinIdGeoData.md @@ -0,0 +1,20 @@ +# GetTokenByPinIdGeoData + +Geo location data + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `Code` | *string* | :heavy_check_mark: | The ISO 3166-1 alpha-2 code of the country. | VI | +| `ContinentCode` | *string* | :heavy_check_mark: | The continent code where the country is located. | NA | +| `Country` | *string* | :heavy_check_mark: | The official name of the country. | United States Virgin Islands | +| `City` | *string* | :heavy_check_mark: | The name of the city. | Amsterdam | +| `EuropeanUnionMember` | *bool* | :heavy_minus_sign: | Indicates if the country is a member of the European Union. | true | +| `TimeZone` | *string* | :heavy_check_mark: | The time zone of the country. | America/St_Thomas | +| `PostalCode` | *long* | :heavy_check_mark: | The postal code of the location. | 802 | +| `InPrivacyRestrictedCountry` | *bool* | :heavy_minus_sign: | Indicates if the country has privacy restrictions. | true | +| `InPrivacyRestrictedRegion` | *bool* | :heavy_minus_sign: | Indicates if the region has privacy restrictions. | true | +| `Subdivisions` | *string* | :heavy_check_mark: | The name of the primary administrative subdivision. | Saint Thomas | +| `Coordinates` | *string* | :heavy_check_mark: | The geographical coordinates (latitude, longitude) of the location. | 18.3381, -64.8941 | \ No newline at end of file diff --git a/docs/Models/Requests/GetTokenRequest.md b/docs/Models/Requests/GetTokenByPinIdRequest.md similarity index 97% rename from docs/Models/Requests/GetTokenRequest.md rename to docs/Models/Requests/GetTokenByPinIdRequest.md index 083e00d..cddb3e0 100644 --- a/docs/Models/Requests/GetTokenRequest.md +++ b/docs/Models/Requests/GetTokenByPinIdRequest.md @@ -1,9 +1,9 @@ -# GetTokenRequest +# GetTokenByPinIdRequest ## Fields | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `PinID` | *string* | :heavy_check_mark: | The PinID to retrieve an access token for | | +| `PinID` | *long* | :heavy_check_mark: | The PinID to retrieve an access token for | | | `XPlexClientIdentifier` | *string* | :heavy_minus_sign: | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
| Postman | \ No newline at end of file diff --git a/docs/Models/Requests/GetTokenByPinIdResponse.md b/docs/Models/Requests/GetTokenByPinIdResponse.md new file mode 100644 index 0000000..757c1a3 --- /dev/null +++ b/docs/Models/Requests/GetTokenByPinIdResponse.md @@ -0,0 +1,11 @@ +# GetTokenByPinIdResponse + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | +| `AuthPinContainer` | [GetTokenByPinIdAuthPinContainer](../../Models/Requests/GetTokenByPinIdAuthPinContainer.md) | :heavy_minus_sign: | The Pin with a non-null authToken when it has been verified by the user | {
"id": 308667304,
"code": "7RQZ",
"product": "0",
"trusted": false,
"qr": "https://plex.tv/api/v2/pins/qr/7RQZ",
"clientIdentifier": "string",
"location": {
"code": "VI",
"continent_code": "NA",
"country": "United States Virgin Islands",
"city": "Amsterdam",
"european_union_member": true,
"time_zone": "America/St_Thomas",
"postal_code": 802,
"in_privacy_restricted_country": true,
"in_privacy_restricted_region": true,
"subdivisions": "Saint Thomas",
"coordinates": "18.3381, -64.8941"
},
"expiresIn": 876,
"createdAt": "2024-07-16T17:03:05Z",
"expiresAt": "2024-07-16T17:18:05Z",
"authToken": null,
"newRegistration": null
} | \ No newline at end of file diff --git a/docs/Models/Requests/GetTokenLocation.md b/docs/Models/Requests/GetTokenLocation.md deleted file mode 100644 index ed92fa6..0000000 --- a/docs/Models/Requests/GetTokenLocation.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetTokenLocation - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `Code` | *string* | :heavy_minus_sign: | N/A | US | -| `EuropeanUnionMember` | *bool* | :heavy_minus_sign: | N/A | | -| `ContinentCode` | *string* | :heavy_minus_sign: | N/A | NA | -| `Country` | *string* | :heavy_minus_sign: | N/A | United States | -| `City` | *string* | :heavy_minus_sign: | N/A | Austin | -| `TimeZone` | *string* | :heavy_minus_sign: | N/A | America/Chicago | -| `PostalCode` | *string* | :heavy_minus_sign: | N/A | 78732 | -| `InPrivacyRestrictedCountry` | *bool* | :heavy_minus_sign: | N/A | | -| `Subdivisions` | *string* | :heavy_minus_sign: | N/A | Texas | -| `Coordinates` | *string* | :heavy_minus_sign: | N/A | 30.3768 -97.8935 | \ No newline at end of file diff --git a/docs/Models/Requests/GetTokenResponseBody.md b/docs/Models/Requests/GetTokenResponseBody.md deleted file mode 100644 index a5a920f..0000000 --- a/docs/Models/Requests/GetTokenResponseBody.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetTokenResponseBody - -Access Token - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Id` | *double* | :heavy_minus_sign: | PinID for use with authentication | 1272322473 | -| `Code` | *string* | :heavy_minus_sign: | N/A | 3patfx1a78ukcbr7x0n9bl26t | -| `Product` | *string* | :heavy_minus_sign: | N/A | Plex Web | -| `Trusted` | *bool* | :heavy_minus_sign: | N/A | | -| `Qr` | *string* | :heavy_minus_sign: | a link to a QR code hosted on plex.tv
The QR code redirects to the relevant `plex.tv/link` authentication page
Which then prompts the user for the 4 Digit Link Pin
| https://plex.tv/api/v2/pins/qr/3patfx1a78ukcbr7x0n9bl26t | -| `ClientIdentifier` | *string* | :heavy_minus_sign: | N/A | Postman | -| `Location` | [GetTokenLocation](../../Models/Requests/GetTokenLocation.md) | :heavy_minus_sign: | N/A | | -| `ExpiresIn` | *double* | :heavy_minus_sign: | N/A | 1800 | -| `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | N/A | 2023-04-12 17:00:03 +0000 UTC | -| `ExpiresAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | N/A | 2023-04-12 17:30:03 +0000 UTC | -| `AuthToken` | *string* | :heavy_minus_sign: | N/A | | -| `NewRegistration` | *string* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Requests/GetTopWatchedContentMetadata.md b/docs/Models/Requests/GetTopWatchedContentMetadata.md index a947548..da04f3e 100644 --- a/docs/Models/Requests/GetTopWatchedContentMetadata.md +++ b/docs/Models/Requests/GetTopWatchedContentMetadata.md @@ -36,4 +36,4 @@ | `Country` | List<[GetTopWatchedContentCountry](../../Models/Requests/GetTopWatchedContentCountry.md)> | :heavy_minus_sign: | N/A | | | `Guids` | List<[GetTopWatchedContentGuids](../../Models/Requests/GetTopWatchedContentGuids.md)> | :heavy_minus_sign: | N/A | | | `Role` | List<[GetTopWatchedContentRole](../../Models/Requests/GetTopWatchedContentRole.md)> | :heavy_minus_sign: | N/A | | -| `User` | List<[User](../../Models/Requests/User.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `User` | List<[Models.Requests.User](../../Models/Requests/User.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Requests/GetUserDetailsFeatures.md b/docs/Models/Requests/GetUserDetailsFeatures.md new file mode 100644 index 0000000..dd4d900 --- /dev/null +++ b/docs/Models/Requests/GetUserDetailsFeatures.md @@ -0,0 +1,66 @@ +# GetUserDetailsFeatures + + +## Values + +| Name | Value | +| --------------------------------------- | --------------------------------------- | +| `AndroidDolbyVision` | Android - Dolby Vision | +| `AndroidPiP` | Android - PiP | +| `CUSunset` | CU Sunset | +| `HRKEnableEUR` | HRK_enable_EUR | +| `TREBLEShowFeatures` | TREBLE-show-features | +| `AdCountdownTimer` | ad-countdown-timer | +| `AdaptiveBitrate` | adaptive_bitrate | +| `AmazonLoopDebug` | amazon-loop-debug | +| `AvodAdAnalysis` | avod-ad-analysis | +| `AvodNewMedia` | avod-new-media | +| `BlacklistGetSignin` | blacklist_get_signin | +| `ClientRadioStations` | client-radio-stations | +| `CloudflareTurnstileRequired` | cloudflare-turnstile-required | +| `Collections` | collections | +| `CommentsAndRepliesPushNotifications` | comments_and_replies_push_notifications | +| `CommunityAccessPlexTv` | community_access_plex_tv | +| `CompanionsSonos` | companions_sonos | +| `CustomHomeRemoval` | custom-home-removal | +| `DisableHomeUserFriendships` | disable_home_user_friendships | +| `DisableSharingFriendships` | disable_sharing_friendships | +| `DrmSupport` | drm_support | +| `ExcludeRestrictions` | exclude restrictions | +| `FederatedAuth` | federated-auth | +| `FriendRequestPushNotifications` | friend_request_push_notifications | +| `GuidedUpgrade` | guided-upgrade | +| `Home` | home | +| `IncreasePasswordComplexity` | increase-password-complexity | +| `Ios14PrivacyBanner` | ios14-privacy-banner | +| `IterableNotificationTokens` | iterable-notification-tokens | +| `KeepPaymentMethod` | keep-payment-method | +| `KevinBacon` | kevin-bacon | +| `KoreaConsent` | korea-consent | +| `LeIsrgRootX1` | le_isrg_root_x1 | +| `LetsEncrypt` | lets_encrypt | +| `LightningDvrPivot` | lightning-dvr-pivot | +| `LiveTvSupportIncompleteSegments` | live-tv-support-incomplete-segments | +| `Livetv` | livetv | +| `MetadataSearch` | metadata_search | +| `NewPlexPassPrices` | new_plex_pass_prices | +| `NewsProviderSunsetModal` | news-provider-sunset-modal | +| `PhotosFavorites` | photos-favorites | +| `PhotosMetadataEdition` | photos-metadata-edition | +| `PmsHealth` | pms_health | +| `Radio` | radio | +| `RateLimitClientToken` | rate-limit-client-token | +| `ScrobblingServicePlexTv` | scrobbling-service-plex-tv | +| `SharedServerNotification` | shared_server_notification | +| `SharedSourceNotification` | shared_source_notification | +| `SigninWithApple` | signin_with_apple | +| `SpringServeAdProvider` | spring_serve_ad_provider | +| `TranscoderCache` | transcoder_cache | +| `TunerSharing` | tuner-sharing | +| `TwoFactorAuthentication` | two-factor-authentication | +| `Unsupportedtuners` | unsupportedtuners | +| `Upgrade3ds2` | upgrade-3ds2 | +| `VodSchema` | vod-schema | +| `VodCloudflare` | vod_cloudflare | +| `WatchTogetherInvite` | watch-together-invite | +| `WebServerDashboard` | web_server_dashboard | \ No newline at end of file diff --git a/docs/Models/Requests/GetUserDetailsPlexResponseStatus.md b/docs/Models/Requests/GetUserDetailsPlexResponseStatus.md new file mode 100644 index 0000000..3843300 --- /dev/null +++ b/docs/Models/Requests/GetUserDetailsPlexResponseStatus.md @@ -0,0 +1,11 @@ +# GetUserDetailsPlexResponseStatus + +String representation of subscriptionActive + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `Inactive` | Inactive | +| `Active` | Active | \ No newline at end of file diff --git a/docs/Models/Requests/GetUserDetailsPlexStatus.md b/docs/Models/Requests/GetUserDetailsPlexStatus.md new file mode 100644 index 0000000..f66d1f6 --- /dev/null +++ b/docs/Models/Requests/GetUserDetailsPlexStatus.md @@ -0,0 +1,11 @@ +# GetUserDetailsPlexStatus + +String representation of subscriptionActive + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `Inactive` | Inactive | +| `Active` | Active | \ No newline at end of file diff --git a/docs/Models/Requests/GetUserDetailsResponse.md b/docs/Models/Requests/GetUserDetailsResponse.md new file mode 100644 index 0000000..7589d53 --- /dev/null +++ b/docs/Models/Requests/GetUserDetailsResponse.md @@ -0,0 +1,11 @@ +# GetUserDetailsResponse + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | +| `UserPlexAccount` | [GetUserDetailsUserPlexAccount](../../Models/Requests/GetUserDetailsUserPlexAccount.md) | :heavy_minus_sign: | Logged in user details | {
"adsConsent": true,
"adsConsentReminderAt": "2019-08-24T14:15:22Z",
"adsConsentSetAt": "2019-08-24T14:15:22Z",
"anonymous": false,
"authToken": "CxoUzBTSV5hsxjTpFKaf",
"backupCodesCreated": false,
"confirmed": false,
"country": "US",
"email": "username@email.com",
"emailOnlyAuth": false,
"experimentalFeatures": false,
"friendlyName": "friendlyUsername",
"entitlements": [],
"guest": false,
"hasPassword": true,
"home": false,
"homeAdmin": false,
"homeSize": 1,
"id": 13692262,
"joinedAt": 1721154902,
"locale": null,
"mailingListActive": false,
"mailingListStatus": "subscribed",
"maxHomeSize": 15,
"pastSubscriptions": [
{
"id": "string",
"mode": "string",
"renewsAt": "string",
"endsAt": "1556281940",
"canceled": "0",
"gracePeriod": "0",
"onHold": "0",
"canReactivate": "0",
"canUpgrade": "0",
"canDowngrade": "0",
"canConvert": "0",
"type": "plexpass",
"transfer": "string",
"state": "ended",
"billing": [
{
"internalPaymentMethod": "string",
"paymentMethodId": "string"
}
]
}
],
"pin": "string",
"profile": [
{
"autoSelectAudio": true,
"defaultAudioLanguage": "ja",
"defaultSubtitleLanguage": "en",
"autoSelectSubtitle": 1,
"defaultSubtitleAccessibility": 1,
"defaultSubtitleForced": 0,
"watchedIndicator": 1,
"mediaReviewsVisibility": 0
}
],
"protected": false,
"rememberExpiresAt": 1722364046,
"restricted": false,
"roles": [
"string"
],
"scrobbleTypes": "",
"services": [
{
"identifier": "metadata-dev",
"endpoint": "https://epg.provider.plex.tv",
"token": "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv",
"secret": "string",
"status": "online"
}
],
"subscription": {
"features": [
"Android - Dolby Vision"
],
"active": true,
"subscribedAt": "2021-04-12T18:21:12Z",
"status": "Inactive",
"paymentService": "string",
"plan": "string"
},
"subscriptionDescription": "string",
"subscriptions": [
{
"features": [
"Android - Dolby Vision"
],
"active": true,
"subscribedAt": "2021-04-12T18:21:12Z",
"status": "Inactive",
"paymentService": "string",
"plan": "string"
}
],
"thumb": "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101",
"title": "UsernameTitle",
"trials": [
{}
],
"twoFactorEnabled": false,
"username": "Username",
"uuid": "dae343c1f45beb4f"
} | \ No newline at end of file diff --git a/docs/Models/Requests/GetUserDetailsStatus.md b/docs/Models/Requests/GetUserDetailsStatus.md new file mode 100644 index 0000000..2f46a13 --- /dev/null +++ b/docs/Models/Requests/GetUserDetailsStatus.md @@ -0,0 +1,9 @@ +# GetUserDetailsStatus + + +## Values + +| Name | Value | +| --------- | --------- | +| `Online` | online | +| `Offline` | offline | \ No newline at end of file diff --git a/docs/Models/Requests/GetUserDetailsSubscription.md b/docs/Models/Requests/GetUserDetailsSubscription.md new file mode 100644 index 0000000..9db9381 --- /dev/null +++ b/docs/Models/Requests/GetUserDetailsSubscription.md @@ -0,0 +1,13 @@ +# GetUserDetailsSubscription + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `Features` | List<[GetUserDetailsFeatures](../../Models/Requests/GetUserDetailsFeatures.md)> | :heavy_minus_sign: | List of features allowed on your Plex Pass subscription | | +| `Active` | *bool* | :heavy_minus_sign: | If the account's Plex Pass subscription is active | true | +| `SubscribedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | Date the account subscribed to Plex Pass | 2021-04-12T18:21:12Z | +| `Status` | [GetUserDetailsPlexResponseStatus](../../Models/Requests/GetUserDetailsPlexResponseStatus.md) | :heavy_minus_sign: | String representation of subscriptionActive | Inactive | +| `PaymentService` | *string* | :heavy_minus_sign: | Payment service used for your Plex Pass subscription | | +| `Plan` | *string* | :heavy_minus_sign: | Name of Plex Pass subscription plan | | \ No newline at end of file diff --git a/docs/Models/Requests/GetUserDetailsUserPlexAccount.md b/docs/Models/Requests/GetUserDetailsUserPlexAccount.md new file mode 100644 index 0000000..45fb4c1 --- /dev/null +++ b/docs/Models/Requests/GetUserDetailsUserPlexAccount.md @@ -0,0 +1,49 @@ +# GetUserDetailsUserPlexAccount + +Logged in user details + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `AdsConsent` | *bool* | :heavy_check_mark: | Unknown | | +| `AdsConsentReminderAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | Unknown | | +| `AdsConsentSetAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | Unknown | | +| `Anonymous` | *bool* | :heavy_minus_sign: | Unknown | | +| `AuthToken` | *string* | :heavy_check_mark: | The account token | CxoUzBTSV5hsxjTpFKaf | +| `BackupCodesCreated` | *bool* | :heavy_minus_sign: | If the two-factor authentication backup codes have been created | | +| `Confirmed` | *bool* | :heavy_minus_sign: | If the account has been confirmed | | +| `Country` | *string* | :heavy_check_mark: | The account country | US | +| `Email` | *string* | :heavy_check_mark: | The account email address | username@email.com | +| `EmailOnlyAuth` | *bool* | :heavy_minus_sign: | If login with email only is enabled | | +| `ExperimentalFeatures` | *bool* | :heavy_minus_sign: | If experimental features are enabled | | +| `FriendlyName` | *string* | :heavy_check_mark: | Your account full name | friendlyUsername | +| `Entitlements` | List<*string*> | :heavy_check_mark: | List of devices your allowed to use with this account | | +| `Guest` | *bool* | :heavy_minus_sign: | If the account is a Plex Home guest user | | +| `HasPassword` | *bool* | :heavy_minus_sign: | If the account has a password | | +| `Home` | *bool* | :heavy_minus_sign: | If the account is a Plex Home user | | +| `HomeAdmin` | *bool* | :heavy_minus_sign: | If the account is the Plex Home admin | | +| `HomeSize` | *int* | :heavy_check_mark: | The number of accounts in the Plex Home | 1 | +| `Id` | *int* | :heavy_check_mark: | The Plex account ID | 13692262 | +| `JoinedAt` | *int* | :heavy_check_mark: | Unix epoch datetime the account joined Plex | 1721154902 | +| `Locale` | *string* | :heavy_check_mark: | The account locale | | +| `MailingListActive` | *bool* | :heavy_minus_sign: | If you are subscribed to the Plex newsletter | | +| `MailingListStatus` | [MailingListStatus](../../Models/Requests/MailingListStatus.md) | :heavy_check_mark: | Your current mailing list status | | +| `MaxHomeSize` | *int* | :heavy_check_mark: | The maximum number of accounts allowed in the Plex Home | 15 | +| ~~`Pin`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

[Might be removed] The hashed Plex Home PIN | | +| `Profile` | List<[UserProfile](../../Models/Requests/UserProfile.md)> | :heavy_check_mark: | N/A | | +| `Protected` | *bool* | :heavy_minus_sign: | If the account has a Plex Home PIN enabled | | +| `RememberExpiresAt` | *int* | :heavy_check_mark: | Unix epoch datetime the authtoken expires | 1722364046 | +| `Restricted` | *bool* | :heavy_minus_sign: | If the account is a Plex Home managed user | | +| `Roles` | List<*string*> | :heavy_minus_sign: | [Might be removed] List of account roles. Plexpass membership listed here | | +| `ScrobbleTypes` | *string* | :heavy_check_mark: | Unknown | | +| `Services` | List<[Services](../../Models/Requests/Services.md)> | :heavy_check_mark: | N/A | | +| `Subscription` | [Subscription](../../Models/Requests/Subscription.md) | :heavy_check_mark: | If the account’s Plex Pass subscription is active | | +| `SubscriptionDescription` | *string* | :heavy_check_mark: | Description of the Plex Pass subscription | | +| `Subscriptions` | List<[GetUserDetailsSubscription](../../Models/Requests/GetUserDetailsSubscription.md)> | :heavy_check_mark: | N/A | | +| `Thumb` | *string* | :heavy_check_mark: | URL of the account thumbnail | https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101 | +| `Title` | *string* | :heavy_check_mark: | The title of the account (username or friendly name) | UsernameTitle | +| `TwoFactorEnabled` | *bool* | :heavy_minus_sign: | If two-factor authentication is enabled | | +| `Username` | *string* | :heavy_check_mark: | The account username | Username | +| `Uuid` | *string* | :heavy_check_mark: | The account UUID | dae343c1f45beb4f | \ No newline at end of file diff --git a/docs/Models/Requests/GetTokenResponse.md b/docs/Models/Requests/GetUserFriendsResponse.md similarity index 88% rename from docs/Models/Requests/GetTokenResponse.md rename to docs/Models/Requests/GetUserFriendsResponse.md index f37a9af..3d23a4c 100644 --- a/docs/Models/Requests/GetTokenResponse.md +++ b/docs/Models/Requests/GetUserFriendsResponse.md @@ -1,4 +1,4 @@ -# GetTokenResponse +# GetUserFriendsResponse ## Fields @@ -8,4 +8,4 @@ | `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `Object` | [Models.Requests.GetTokenResponseBody](../../Models/Requests/GetTokenResponseBody.md) | :heavy_minus_sign: | Access Token | \ No newline at end of file +| `Friends` | List<[Friend](../../Models/Requests/Friend.md)> | :heavy_minus_sign: | Friends Data | \ No newline at end of file diff --git a/docs/Models/Requests/IncludeHttps.md b/docs/Models/Requests/IncludeHttps.md new file mode 100644 index 0000000..8f1d81a --- /dev/null +++ b/docs/Models/Requests/IncludeHttps.md @@ -0,0 +1,11 @@ +# IncludeHttps + +Include Https entries in the results + + +## Values + +| Name | Value | +| ------ | ------ | +| `Zero` | 0 | +| `One` | 1 | \ No newline at end of file diff --git a/docs/Models/Requests/IncludeIPv6.md b/docs/Models/Requests/IncludeIPv6.md new file mode 100644 index 0000000..96e4493 --- /dev/null +++ b/docs/Models/Requests/IncludeIPv6.md @@ -0,0 +1,11 @@ +# IncludeIPv6 + +Include IPv6 entries in the results + + +## Values + +| Name | Value | +| ------ | ------ | +| `Zero` | 0 | +| `One` | 1 | \ No newline at end of file diff --git a/docs/Models/Requests/IncludeRelay.md b/docs/Models/Requests/IncludeRelay.md new file mode 100644 index 0000000..4b3e243 --- /dev/null +++ b/docs/Models/Requests/IncludeRelay.md @@ -0,0 +1,11 @@ +# IncludeRelay + +Include Relay addresses in the results + + +## Values + +| Name | Value | +| ------ | ------ | +| `Zero` | 0 | +| `One` | 1 | \ No newline at end of file diff --git a/docs/Models/Requests/InternalPaymentMethod.md b/docs/Models/Requests/InternalPaymentMethod.md new file mode 100644 index 0000000..f1103c2 --- /dev/null +++ b/docs/Models/Requests/InternalPaymentMethod.md @@ -0,0 +1,7 @@ +# InternalPaymentMethod + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/Models/Requests/LibrarySectionID.md b/docs/Models/Requests/LibrarySectionID.md index 51c90cc..5f3ffee 100644 --- a/docs/Models/Requests/LibrarySectionID.md +++ b/docs/Models/Requests/LibrarySectionID.md @@ -1,2 +1,16 @@ # LibrarySectionID + +## Supported Types + +### Integer + +```csharp +LibrarySectionID.CreateInteger(/* values here */); +``` + +### Str + +```csharp +LibrarySectionID.CreateStr(/* values here */); +``` diff --git a/docs/Models/Requests/Location.md b/docs/Models/Requests/Location.md index 856b5f7..905e369 100644 --- a/docs/Models/Requests/Location.md +++ b/docs/Models/Requests/Location.md @@ -3,15 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `Code` | *string* | :heavy_minus_sign: | N/A | US | -| `EuropeanUnionMember` | *bool* | :heavy_minus_sign: | N/A | | -| `ContinentCode` | *string* | :heavy_minus_sign: | N/A | NA | -| `Country` | *string* | :heavy_minus_sign: | N/A | United States | -| `City` | *string* | :heavy_minus_sign: | N/A | Austin | -| `TimeZone` | *string* | :heavy_minus_sign: | N/A | America/Chicago | -| `PostalCode` | *string* | :heavy_minus_sign: | N/A | 78732 | -| `InPrivacyRestrictedCountry` | *bool* | :heavy_minus_sign: | N/A | | -| `Subdivisions` | *string* | :heavy_minus_sign: | N/A | Texas | -| `Coordinates` | *string* | :heavy_minus_sign: | N/A | 30.3768 -97.8935 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `Id` | *int* | :heavy_minus_sign: | N/A | 1 | +| `Path` | *string* | :heavy_minus_sign: | N/A | /movies | \ No newline at end of file diff --git a/docs/Models/Requests/MailingListStatus.md b/docs/Models/Requests/MailingListStatus.md new file mode 100644 index 0000000..bb5d4ea --- /dev/null +++ b/docs/Models/Requests/MailingListStatus.md @@ -0,0 +1,11 @@ +# MailingListStatus + +Your current mailing list status + + +## Values + +| Name | Value | +| -------------- | -------------- | +| `Subscribed` | subscribed | +| `Unsubscribed` | unsubscribed | \ No newline at end of file diff --git a/docs/Models/Requests/PastSubscription.md b/docs/Models/Requests/PastSubscription.md new file mode 100644 index 0000000..7c62b4d --- /dev/null +++ b/docs/Models/Requests/PastSubscription.md @@ -0,0 +1,22 @@ +# PastSubscription + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `Id` | *string* | :heavy_check_mark: | N/A | | +| `Mode` | *string* | :heavy_check_mark: | N/A | | +| `RenewsAt` | *int* | :heavy_check_mark: | Unix epoch datetime | | +| `EndsAt` | *int* | :heavy_check_mark: | Unix epoch datetime | 1556281940 | +| `Canceled` | *bool* | :heavy_minus_sign: | N/A | false | +| `GracePeriod` | *bool* | :heavy_minus_sign: | N/A | false | +| `OnHold` | *bool* | :heavy_minus_sign: | N/A | false | +| `CanReactivate` | *bool* | :heavy_minus_sign: | N/A | false | +| `CanUpgrade` | *bool* | :heavy_minus_sign: | N/A | false | +| `CanDowngrade` | *bool* | :heavy_minus_sign: | N/A | false | +| `CanConvert` | *bool* | :heavy_minus_sign: | N/A | false | +| `Type` | *string* | :heavy_check_mark: | N/A | plexpass | +| `Transfer` | *string* | :heavy_check_mark: | N/A | | +| `State` | [PostUsersSigninDataState](../../Models/Requests/PostUsersSigninDataState.md) | :heavy_check_mark: | N/A | ended | +| `Billing` | List<[Billing](../../Models/Requests/Billing.md)> | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/Models/Requests/PlexDevice.md b/docs/Models/Requests/PlexDevice.md new file mode 100644 index 0000000..6804c4b --- /dev/null +++ b/docs/Models/Requests/PlexDevice.md @@ -0,0 +1,31 @@ +# PlexDevice + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `Name` | *string* | :heavy_check_mark: | N/A | +| `Product` | *string* | :heavy_check_mark: | N/A | +| `ProductVersion` | *string* | :heavy_check_mark: | N/A | +| `Platform` | *string* | :heavy_check_mark: | N/A | +| `PlatformVersion` | *string* | :heavy_check_mark: | N/A | +| `Device` | *string* | :heavy_check_mark: | N/A | +| `ClientIdentifier` | *string* | :heavy_check_mark: | N/A | +| `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | N/A | +| `LastSeenAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | N/A | +| `Provides` | *string* | :heavy_check_mark: | N/A | +| `OwnerId` | *string* | :heavy_minus_sign: | N/A | +| `SourceTitle` | *string* | :heavy_minus_sign: | N/A | +| `PublicAddress` | *string* | :heavy_minus_sign: | N/A | +| `AccessToken` | *string* | :heavy_minus_sign: | N/A | +| `Owned` | *bool* | :heavy_minus_sign: | N/A | +| `Home` | *bool* | :heavy_minus_sign: | N/A | +| `Synced` | *bool* | :heavy_minus_sign: | N/A | +| `Relay` | *bool* | :heavy_minus_sign: | N/A | +| `Presence` | *bool* | :heavy_minus_sign: | N/A | +| `HttpsRequired` | *bool* | :heavy_minus_sign: | N/A | +| `PublicAddressMatches` | *bool* | :heavy_minus_sign: | N/A | +| `DnsRebindingProtection` | *bool* | :heavy_minus_sign: | N/A | +| `NatLoopbackSupported` | *bool* | :heavy_minus_sign: | N/A | +| `Connections` | List<[Connections](../../Models/Requests/Connections.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Requests/PostUsersSigninDataFeatures.md b/docs/Models/Requests/PostUsersSigninDataFeatures.md new file mode 100644 index 0000000..24bfb85 --- /dev/null +++ b/docs/Models/Requests/PostUsersSigninDataFeatures.md @@ -0,0 +1,66 @@ +# PostUsersSigninDataFeatures + + +## Values + +| Name | Value | +| --------------------------------------- | --------------------------------------- | +| `AndroidDolbyVision` | Android - Dolby Vision | +| `AndroidPiP` | Android - PiP | +| `CUSunset` | CU Sunset | +| `HRKEnableEUR` | HRK_enable_EUR | +| `TREBLEShowFeatures` | TREBLE-show-features | +| `AdCountdownTimer` | ad-countdown-timer | +| `AdaptiveBitrate` | adaptive_bitrate | +| `AmazonLoopDebug` | amazon-loop-debug | +| `AvodAdAnalysis` | avod-ad-analysis | +| `AvodNewMedia` | avod-new-media | +| `BlacklistGetSignin` | blacklist_get_signin | +| `ClientRadioStations` | client-radio-stations | +| `CloudflareTurnstileRequired` | cloudflare-turnstile-required | +| `Collections` | collections | +| `CommentsAndRepliesPushNotifications` | comments_and_replies_push_notifications | +| `CommunityAccessPlexTv` | community_access_plex_tv | +| `CompanionsSonos` | companions_sonos | +| `CustomHomeRemoval` | custom-home-removal | +| `DisableHomeUserFriendships` | disable_home_user_friendships | +| `DisableSharingFriendships` | disable_sharing_friendships | +| `DrmSupport` | drm_support | +| `ExcludeRestrictions` | exclude restrictions | +| `FederatedAuth` | federated-auth | +| `FriendRequestPushNotifications` | friend_request_push_notifications | +| `GuidedUpgrade` | guided-upgrade | +| `Home` | home | +| `IncreasePasswordComplexity` | increase-password-complexity | +| `Ios14PrivacyBanner` | ios14-privacy-banner | +| `IterableNotificationTokens` | iterable-notification-tokens | +| `KeepPaymentMethod` | keep-payment-method | +| `KevinBacon` | kevin-bacon | +| `KoreaConsent` | korea-consent | +| `LeIsrgRootX1` | le_isrg_root_x1 | +| `LetsEncrypt` | lets_encrypt | +| `LightningDvrPivot` | lightning-dvr-pivot | +| `LiveTvSupportIncompleteSegments` | live-tv-support-incomplete-segments | +| `Livetv` | livetv | +| `MetadataSearch` | metadata_search | +| `NewPlexPassPrices` | new_plex_pass_prices | +| `NewsProviderSunsetModal` | news-provider-sunset-modal | +| `PhotosFavorites` | photos-favorites | +| `PhotosMetadataEdition` | photos-metadata-edition | +| `PmsHealth` | pms_health | +| `Radio` | radio | +| `RateLimitClientToken` | rate-limit-client-token | +| `ScrobblingServicePlexTv` | scrobbling-service-plex-tv | +| `SharedServerNotification` | shared_server_notification | +| `SharedSourceNotification` | shared_source_notification | +| `SigninWithApple` | signin_with_apple | +| `SpringServeAdProvider` | spring_serve_ad_provider | +| `TranscoderCache` | transcoder_cache | +| `TunerSharing` | tuner-sharing | +| `TwoFactorAuthentication` | two-factor-authentication | +| `Unsupportedtuners` | unsupportedtuners | +| `Upgrade3ds2` | upgrade-3ds2 | +| `VodSchema` | vod-schema | +| `VodCloudflare` | vod_cloudflare | +| `WatchTogetherInvite` | watch-together-invite | +| `WebServerDashboard` | web_server_dashboard | \ No newline at end of file diff --git a/docs/Models/Requests/PostUsersSigninDataMailingListStatus.md b/docs/Models/Requests/PostUsersSigninDataMailingListStatus.md new file mode 100644 index 0000000..b86710a --- /dev/null +++ b/docs/Models/Requests/PostUsersSigninDataMailingListStatus.md @@ -0,0 +1,11 @@ +# PostUsersSigninDataMailingListStatus + +Your current mailing list status + + +## Values + +| Name | Value | +| -------------- | -------------- | +| `Subscribed` | subscribed | +| `Unsubscribed` | unsubscribed | \ No newline at end of file diff --git a/docs/Models/Requests/PostUsersSigninDataRequest.md b/docs/Models/Requests/PostUsersSigninDataRequest.md new file mode 100644 index 0000000..6912eac --- /dev/null +++ b/docs/Models/Requests/PostUsersSigninDataRequest.md @@ -0,0 +1,9 @@ +# PostUsersSigninDataRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `XPlexClientIdentifier` | *string* | :heavy_minus_sign: | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
| Postman | +| `RequestBody` | [PostUsersSigninDataRequestBody](../../Models/Requests/PostUsersSigninDataRequestBody.md) | :heavy_minus_sign: | Login credentials | | \ No newline at end of file diff --git a/docs/Models/Requests/PostUsersSigninDataRequestBody.md b/docs/Models/Requests/PostUsersSigninDataRequestBody.md new file mode 100644 index 0000000..6b8ebf8 --- /dev/null +++ b/docs/Models/Requests/PostUsersSigninDataRequestBody.md @@ -0,0 +1,12 @@ +# PostUsersSigninDataRequestBody + +Login credentials + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `Login` | *string* | :heavy_check_mark: | N/A | username@email.com | +| `Password` | *string* | :heavy_check_mark: | N/A | password123 | +| `RememberMe` | *bool* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Requests/PostUsersSigninDataResponse.md b/docs/Models/Requests/PostUsersSigninDataResponse.md new file mode 100644 index 0000000..d3a26c2 --- /dev/null +++ b/docs/Models/Requests/PostUsersSigninDataResponse.md @@ -0,0 +1,11 @@ +# PostUsersSigninDataResponse + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | +| `UserPlexAccount` | [PostUsersSigninDataUserPlexAccount](../../Models/Requests/PostUsersSigninDataUserPlexAccount.md) | :heavy_minus_sign: | Returns the user account data with a valid auth token | {
"adsConsent": true,
"adsConsentReminderAt": "2019-08-24T14:15:22Z",
"adsConsentSetAt": "2019-08-24T14:15:22Z",
"anonymous": false,
"authToken": "CxoUzBTSV5hsxjTpFKaf",
"backupCodesCreated": false,
"confirmed": false,
"country": "US",
"email": "username@email.com",
"emailOnlyAuth": false,
"experimentalFeatures": false,
"friendlyName": "friendlyUsername",
"entitlements": [],
"guest": false,
"hasPassword": true,
"home": false,
"homeAdmin": false,
"homeSize": 1,
"id": 13692262,
"joinedAt": 1721154902,
"locale": null,
"mailingListActive": false,
"mailingListStatus": "subscribed",
"maxHomeSize": 15,
"pastSubscriptions": [
{
"id": "string",
"mode": "string",
"renewsAt": "string",
"endsAt": "1556281940",
"canceled": "0",
"gracePeriod": "0",
"onHold": "0",
"canReactivate": "0",
"canUpgrade": "0",
"canDowngrade": "0",
"canConvert": "0",
"type": "plexpass",
"transfer": "string",
"state": "ended",
"billing": [
{
"internalPaymentMethod": "string",
"paymentMethodId": "string"
}
]
}
],
"pin": "string",
"profile": [
{
"autoSelectAudio": true,
"defaultAudioLanguage": "ja",
"defaultSubtitleLanguage": "en",
"autoSelectSubtitle": 1,
"defaultSubtitleAccessibility": 1,
"defaultSubtitleForced": 0,
"watchedIndicator": 1,
"mediaReviewsVisibility": 0
}
],
"protected": false,
"rememberExpiresAt": 1722364046,
"restricted": false,
"roles": [
"string"
],
"scrobbleTypes": "",
"services": [
{
"identifier": "metadata-dev",
"endpoint": "https://epg.provider.plex.tv",
"token": "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv",
"secret": "string",
"status": "online"
}
],
"subscription": {
"features": [
"Android - Dolby Vision"
],
"active": true,
"subscribedAt": "2021-04-12T18:21:12Z",
"status": "Inactive",
"paymentService": "string",
"plan": "string"
},
"subscriptionDescription": "string",
"subscriptions": [
{
"features": [
"Android - Dolby Vision"
],
"active": true,
"subscribedAt": "2021-04-12T18:21:12Z",
"status": "Inactive",
"paymentService": "string",
"plan": "string"
}
],
"thumb": "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101",
"title": "UsernameTitle",
"trials": [
{}
],
"twoFactorEnabled": false,
"username": "Username",
"uuid": "dae343c1f45beb4f"
} | \ No newline at end of file diff --git a/docs/Models/Requests/PostUsersSigninDataServices.md b/docs/Models/Requests/PostUsersSigninDataServices.md new file mode 100644 index 0000000..81475ef --- /dev/null +++ b/docs/Models/Requests/PostUsersSigninDataServices.md @@ -0,0 +1,12 @@ +# PostUsersSigninDataServices + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | +| `Identifier` | *string* | :heavy_check_mark: | N/A | metadata-dev | +| `Endpoint` | *string* | :heavy_check_mark: | N/A | https://epg.provider.plex.tv | +| `Token` | *string* | :heavy_check_mark: | N/A | DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv | +| `Secret` | *string* | :heavy_check_mark: | N/A | | +| `Status` | [PostUsersSigninDataStatus](../../Models/Requests/PostUsersSigninDataStatus.md) | :heavy_check_mark: | N/A | online | \ No newline at end of file diff --git a/docs/Models/Requests/PostUsersSigninDataState.md b/docs/Models/Requests/PostUsersSigninDataState.md new file mode 100644 index 0000000..71ceb32 --- /dev/null +++ b/docs/Models/Requests/PostUsersSigninDataState.md @@ -0,0 +1,8 @@ +# PostUsersSigninDataState + + +## Values + +| Name | Value | +| ------- | ------- | +| `Ended` | ended | \ No newline at end of file diff --git a/docs/Models/Requests/PostUsersSigninDataStatus.md b/docs/Models/Requests/PostUsersSigninDataStatus.md new file mode 100644 index 0000000..74fbbae --- /dev/null +++ b/docs/Models/Requests/PostUsersSigninDataStatus.md @@ -0,0 +1,9 @@ +# PostUsersSigninDataStatus + + +## Values + +| Name | Value | +| --------- | --------- | +| `Online` | online | +| `Offline` | offline | \ No newline at end of file diff --git a/docs/Models/Requests/PostUsersSigninDataSubscription.md b/docs/Models/Requests/PostUsersSigninDataSubscription.md new file mode 100644 index 0000000..a9e1a3b --- /dev/null +++ b/docs/Models/Requests/PostUsersSigninDataSubscription.md @@ -0,0 +1,15 @@ +# PostUsersSigninDataSubscription + +If the account’s Plex Pass subscription is active + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `Features` | List<[PostUsersSigninDataFeatures](../../Models/Requests/PostUsersSigninDataFeatures.md)> | :heavy_minus_sign: | List of features allowed on your Plex Pass subscription | | +| `Active` | *bool* | :heavy_minus_sign: | If the account's Plex Pass subscription is active | true | +| `SubscribedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | Date the account subscribed to Plex Pass | 2021-04-12T18:21:12Z | +| `Status` | [PostUsersSigninDataUserStatus](../../Models/Requests/PostUsersSigninDataUserStatus.md) | :heavy_minus_sign: | String representation of subscriptionActive | Inactive | +| `PaymentService` | *string* | :heavy_minus_sign: | Payment service used for your Plex Pass subscription | | +| `Plan` | *string* | :heavy_minus_sign: | Name of Plex Pass subscription plan | | \ No newline at end of file diff --git a/docs/Models/Requests/PostUsersSigninDataUserFeatures.md b/docs/Models/Requests/PostUsersSigninDataUserFeatures.md new file mode 100644 index 0000000..40e5668 --- /dev/null +++ b/docs/Models/Requests/PostUsersSigninDataUserFeatures.md @@ -0,0 +1,66 @@ +# PostUsersSigninDataUserFeatures + + +## Values + +| Name | Value | +| --------------------------------------- | --------------------------------------- | +| `AndroidDolbyVision` | Android - Dolby Vision | +| `AndroidPiP` | Android - PiP | +| `CUSunset` | CU Sunset | +| `HRKEnableEUR` | HRK_enable_EUR | +| `TREBLEShowFeatures` | TREBLE-show-features | +| `AdCountdownTimer` | ad-countdown-timer | +| `AdaptiveBitrate` | adaptive_bitrate | +| `AmazonLoopDebug` | amazon-loop-debug | +| `AvodAdAnalysis` | avod-ad-analysis | +| `AvodNewMedia` | avod-new-media | +| `BlacklistGetSignin` | blacklist_get_signin | +| `ClientRadioStations` | client-radio-stations | +| `CloudflareTurnstileRequired` | cloudflare-turnstile-required | +| `Collections` | collections | +| `CommentsAndRepliesPushNotifications` | comments_and_replies_push_notifications | +| `CommunityAccessPlexTv` | community_access_plex_tv | +| `CompanionsSonos` | companions_sonos | +| `CustomHomeRemoval` | custom-home-removal | +| `DisableHomeUserFriendships` | disable_home_user_friendships | +| `DisableSharingFriendships` | disable_sharing_friendships | +| `DrmSupport` | drm_support | +| `ExcludeRestrictions` | exclude restrictions | +| `FederatedAuth` | federated-auth | +| `FriendRequestPushNotifications` | friend_request_push_notifications | +| `GuidedUpgrade` | guided-upgrade | +| `Home` | home | +| `IncreasePasswordComplexity` | increase-password-complexity | +| `Ios14PrivacyBanner` | ios14-privacy-banner | +| `IterableNotificationTokens` | iterable-notification-tokens | +| `KeepPaymentMethod` | keep-payment-method | +| `KevinBacon` | kevin-bacon | +| `KoreaConsent` | korea-consent | +| `LeIsrgRootX1` | le_isrg_root_x1 | +| `LetsEncrypt` | lets_encrypt | +| `LightningDvrPivot` | lightning-dvr-pivot | +| `LiveTvSupportIncompleteSegments` | live-tv-support-incomplete-segments | +| `Livetv` | livetv | +| `MetadataSearch` | metadata_search | +| `NewPlexPassPrices` | new_plex_pass_prices | +| `NewsProviderSunsetModal` | news-provider-sunset-modal | +| `PhotosFavorites` | photos-favorites | +| `PhotosMetadataEdition` | photos-metadata-edition | +| `PmsHealth` | pms_health | +| `Radio` | radio | +| `RateLimitClientToken` | rate-limit-client-token | +| `ScrobblingServicePlexTv` | scrobbling-service-plex-tv | +| `SharedServerNotification` | shared_server_notification | +| `SharedSourceNotification` | shared_source_notification | +| `SigninWithApple` | signin_with_apple | +| `SpringServeAdProvider` | spring_serve_ad_provider | +| `TranscoderCache` | transcoder_cache | +| `TunerSharing` | tuner-sharing | +| `TwoFactorAuthentication` | two-factor-authentication | +| `Unsupportedtuners` | unsupportedtuners | +| `Upgrade3ds2` | upgrade-3ds2 | +| `VodSchema` | vod-schema | +| `VodCloudflare` | vod_cloudflare | +| `WatchTogetherInvite` | watch-together-invite | +| `WebServerDashboard` | web_server_dashboard | \ No newline at end of file diff --git a/docs/Models/Requests/PostUsersSigninDataUserPlexAccount.md b/docs/Models/Requests/PostUsersSigninDataUserPlexAccount.md new file mode 100644 index 0000000..565e542 --- /dev/null +++ b/docs/Models/Requests/PostUsersSigninDataUserPlexAccount.md @@ -0,0 +1,51 @@ +# PostUsersSigninDataUserPlexAccount + +Returns the user account data with a valid auth token + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `AdsConsent` | *bool* | :heavy_check_mark: | Unknown | | +| `AdsConsentReminderAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | Unknown | | +| `AdsConsentSetAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | Unknown | | +| `Anonymous` | *bool* | :heavy_minus_sign: | Unknown | | +| `AuthToken` | *string* | :heavy_check_mark: | The account token | CxoUzBTSV5hsxjTpFKaf | +| `BackupCodesCreated` | *bool* | :heavy_minus_sign: | If the two-factor authentication backup codes have been created | | +| `Confirmed` | *bool* | :heavy_minus_sign: | If the account has been confirmed | | +| `Country` | *string* | :heavy_check_mark: | The account country | US | +| `Email` | *string* | :heavy_check_mark: | The account email address | username@email.com | +| `EmailOnlyAuth` | *bool* | :heavy_minus_sign: | If login with email only is enabled | | +| `ExperimentalFeatures` | *bool* | :heavy_minus_sign: | If experimental features are enabled | | +| `FriendlyName` | *string* | :heavy_check_mark: | Your account full name | friendlyUsername | +| `Entitlements` | List<*string*> | :heavy_check_mark: | List of devices your allowed to use with this account | | +| `Guest` | *bool* | :heavy_minus_sign: | If the account is a Plex Home guest user | | +| `HasPassword` | *bool* | :heavy_minus_sign: | If the account has a password | | +| `Home` | *bool* | :heavy_minus_sign: | If the account is a Plex Home user | | +| `HomeAdmin` | *bool* | :heavy_minus_sign: | If the account is the Plex Home admin | | +| `HomeSize` | *int* | :heavy_check_mark: | The number of accounts in the Plex Home | 1 | +| `Id` | *int* | :heavy_check_mark: | The Plex account ID | 13692262 | +| `JoinedAt` | *int* | :heavy_check_mark: | Unix epoch datetime the account joined Plex | 1721154902 | +| `Locale` | *string* | :heavy_check_mark: | The account locale | | +| `MailingListActive` | *bool* | :heavy_minus_sign: | If you are subscribed to the Plex newsletter | | +| `MailingListStatus` | [PostUsersSigninDataMailingListStatus](../../Models/Requests/PostUsersSigninDataMailingListStatus.md) | :heavy_check_mark: | Your current mailing list status | | +| `MaxHomeSize` | *int* | :heavy_check_mark: | The maximum number of accounts allowed in the Plex Home | 15 | +| ~~`Pin`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

[Might be removed] The hashed Plex Home PIN | | +| `Profile` | List<[PostUsersSigninDataUserProfile](../../Models/Requests/PostUsersSigninDataUserProfile.md)> | :heavy_check_mark: | N/A | | +| `Protected` | *bool* | :heavy_minus_sign: | If the account has a Plex Home PIN enabled | | +| `RememberExpiresAt` | *int* | :heavy_check_mark: | Unix epoch datetime the authtoken expires | 1722364046 | +| `Restricted` | *bool* | :heavy_minus_sign: | If the account is a Plex Home managed user | | +| `Roles` | List<*string*> | :heavy_minus_sign: | [Might be removed] List of account roles. Plexpass membership listed here | | +| `ScrobbleTypes` | *string* | :heavy_check_mark: | Unknown | | +| `Services` | List<[PostUsersSigninDataServices](../../Models/Requests/PostUsersSigninDataServices.md)> | :heavy_check_mark: | N/A | | +| `Subscription` | [PostUsersSigninDataSubscription](../../Models/Requests/PostUsersSigninDataSubscription.md) | :heavy_check_mark: | If the account’s Plex Pass subscription is active | | +| `SubscriptionDescription` | *string* | :heavy_check_mark: | Description of the Plex Pass subscription | | +| `Subscriptions` | List<[PostUsersSigninDataUserSubscription](../../Models/Requests/PostUsersSigninDataUserSubscription.md)> | :heavy_check_mark: | N/A | | +| `Thumb` | *string* | :heavy_check_mark: | URL of the account thumbnail | https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101 | +| `Title` | *string* | :heavy_check_mark: | The title of the account (username or friendly name) | UsernameTitle | +| `TwoFactorEnabled` | *bool* | :heavy_minus_sign: | If two-factor authentication is enabled | | +| `Username` | *string* | :heavy_check_mark: | The account username | Username | +| `Uuid` | *string* | :heavy_check_mark: | The account UUID | dae343c1f45beb4f | +| `PastSubscriptions` | List<[PastSubscription](../../Models/Requests/PastSubscription.md)> | :heavy_check_mark: | N/A | | +| `Trials` | List<[Trials](../../Models/Requests/Trials.md)> | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/Models/Requests/PostUsersSigninDataUserProfile.md b/docs/Models/Requests/PostUsersSigninDataUserProfile.md new file mode 100644 index 0000000..24fc685 --- /dev/null +++ b/docs/Models/Requests/PostUsersSigninDataUserProfile.md @@ -0,0 +1,15 @@ +# PostUsersSigninDataUserProfile + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `AutoSelectAudio` | *bool* | :heavy_minus_sign: | If the account has automatically select audio and subtitle tracks enabled | true | +| `DefaultAudioLanguage` | *string* | :heavy_minus_sign: | The preferred audio language for the account | ja | +| `DefaultSubtitleLanguage` | *string* | :heavy_minus_sign: | The preferred subtitle language for the account | en | +| `AutoSelectSubtitle` | *long* | :heavy_minus_sign: | The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) | 1 | +| `DefaultSubtitleAccessibility` | *long* | :heavy_minus_sign: | The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) | 1 | +| `DefaultSubtitleForced` | *long* | :heavy_minus_sign: | The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) | 0 | +| `WatchedIndicator` | *long* | :heavy_minus_sign: | N/A | 1 | +| `MediaReviewsVisibility` | *long* | :heavy_minus_sign: | N/A | 0 | \ No newline at end of file diff --git a/docs/Models/Requests/PostUsersSigninDataUserResponseStatus.md b/docs/Models/Requests/PostUsersSigninDataUserResponseStatus.md new file mode 100644 index 0000000..d2f2a10 --- /dev/null +++ b/docs/Models/Requests/PostUsersSigninDataUserResponseStatus.md @@ -0,0 +1,11 @@ +# PostUsersSigninDataUserResponseStatus + +String representation of subscriptionActive + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `Inactive` | Inactive | +| `Active` | Active | \ No newline at end of file diff --git a/docs/Models/Requests/PostUsersSigninDataUserStatus.md b/docs/Models/Requests/PostUsersSigninDataUserStatus.md new file mode 100644 index 0000000..5c1d206 --- /dev/null +++ b/docs/Models/Requests/PostUsersSigninDataUserStatus.md @@ -0,0 +1,11 @@ +# PostUsersSigninDataUserStatus + +String representation of subscriptionActive + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `Inactive` | Inactive | +| `Active` | Active | \ No newline at end of file diff --git a/docs/Models/Requests/PostUsersSigninDataUserSubscription.md b/docs/Models/Requests/PostUsersSigninDataUserSubscription.md new file mode 100644 index 0000000..48e41dc --- /dev/null +++ b/docs/Models/Requests/PostUsersSigninDataUserSubscription.md @@ -0,0 +1,13 @@ +# PostUsersSigninDataUserSubscription + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `Features` | List<[PostUsersSigninDataUserFeatures](../../Models/Requests/PostUsersSigninDataUserFeatures.md)> | :heavy_minus_sign: | List of features allowed on your Plex Pass subscription | | +| `Active` | *bool* | :heavy_minus_sign: | If the account's Plex Pass subscription is active | true | +| `SubscribedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | Date the account subscribed to Plex Pass | 2021-04-12T18:21:12Z | +| `Status` | [PostUsersSigninDataUserResponseStatus](../../Models/Requests/PostUsersSigninDataUserResponseStatus.md) | :heavy_minus_sign: | String representation of subscriptionActive | Inactive | +| `PaymentService` | *string* | :heavy_minus_sign: | Payment service used for your Plex Pass subscription | | +| `Plan` | *string* | :heavy_minus_sign: | Name of Plex Pass subscription plan | | \ No newline at end of file diff --git a/docs/Models/Requests/ResponseBody.md b/docs/Models/Requests/ResponseBody.md new file mode 100644 index 0000000..224469e --- /dev/null +++ b/docs/Models/Requests/ResponseBody.md @@ -0,0 +1,13 @@ +# ResponseBody + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `Identifier` | *string* | :heavy_check_mark: | N/A | tv.plex.sonos | +| `BaseURL` | *string* | :heavy_check_mark: | N/A | https://sonos.plex.tv | +| `Title` | *string* | :heavy_check_mark: | N/A | Sonos | +| `LinkURL` | *string* | :heavy_check_mark: | N/A | https://sonos.plex.tv/link | +| `Provides` | *string* | :heavy_check_mark: | N/A | client,player | +| `Token` | *string* | :heavy_check_mark: | The plex authtoken used to identify with | | \ No newline at end of file diff --git a/docs/Models/Requests/Services.md b/docs/Models/Requests/Services.md new file mode 100644 index 0000000..05b8812 --- /dev/null +++ b/docs/Models/Requests/Services.md @@ -0,0 +1,12 @@ +# Services + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `Identifier` | *string* | :heavy_check_mark: | N/A | metadata-dev | +| `Endpoint` | *string* | :heavy_check_mark: | N/A | https://epg.provider.plex.tv | +| `Token` | *string* | :heavy_check_mark: | N/A | DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv | +| `Secret` | *string* | :heavy_check_mark: | N/A | | +| `Status` | [GetUserDetailsStatus](../../Models/Requests/GetUserDetailsStatus.md) | :heavy_check_mark: | N/A | online | \ No newline at end of file diff --git a/docs/Models/Requests/SharedServers.md b/docs/Models/Requests/SharedServers.md new file mode 100644 index 0000000..d787f3b --- /dev/null +++ b/docs/Models/Requests/SharedServers.md @@ -0,0 +1,7 @@ +# SharedServers + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/Models/Requests/SharedSources.md b/docs/Models/Requests/SharedSources.md new file mode 100644 index 0000000..ca74299 --- /dev/null +++ b/docs/Models/Requests/SharedSources.md @@ -0,0 +1,7 @@ +# SharedSources + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/Models/Requests/Status.md b/docs/Models/Requests/Status.md new file mode 100644 index 0000000..c89cdaf --- /dev/null +++ b/docs/Models/Requests/Status.md @@ -0,0 +1,10 @@ +# Status + +Current friend request status + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `Accepted` | accepted | \ No newline at end of file diff --git a/docs/Models/Requests/Subscription.md b/docs/Models/Requests/Subscription.md new file mode 100644 index 0000000..a33013d --- /dev/null +++ b/docs/Models/Requests/Subscription.md @@ -0,0 +1,15 @@ +# Subscription + +If the account’s Plex Pass subscription is active + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `Features` | List<[Features](../../Models/Requests/Features.md)> | :heavy_minus_sign: | List of features allowed on your Plex Pass subscription | | +| `Active` | *bool* | :heavy_minus_sign: | If the account's Plex Pass subscription is active | true | +| `SubscribedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | Date the account subscribed to Plex Pass | 2021-04-12T18:21:12Z | +| `Status` | [GetUserDetailsPlexStatus](../../Models/Requests/GetUserDetailsPlexStatus.md) | :heavy_minus_sign: | String representation of subscriptionActive | Inactive | +| `PaymentService` | *string* | :heavy_minus_sign: | Payment service used for your Plex Pass subscription | | +| `Plan` | *string* | :heavy_minus_sign: | Name of Plex Pass subscription plan | | \ No newline at end of file diff --git a/docs/Models/Requests/Trials.md b/docs/Models/Requests/Trials.md new file mode 100644 index 0000000..1b9b77d --- /dev/null +++ b/docs/Models/Requests/Trials.md @@ -0,0 +1,7 @@ +# Trials + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/Models/Requests/UserProfile.md b/docs/Models/Requests/UserProfile.md new file mode 100644 index 0000000..119ac89 --- /dev/null +++ b/docs/Models/Requests/UserProfile.md @@ -0,0 +1,15 @@ +# UserProfile + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `AutoSelectAudio` | *bool* | :heavy_minus_sign: | If the account has automatically select audio and subtitle tracks enabled | true | +| `DefaultAudioLanguage` | *string* | :heavy_minus_sign: | The preferred audio language for the account | ja | +| `DefaultSubtitleLanguage` | *string* | :heavy_minus_sign: | The preferred subtitle language for the account | en | +| `AutoSelectSubtitle` | *long* | :heavy_minus_sign: | The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) | 1 | +| `DefaultSubtitleAccessibility` | *long* | :heavy_minus_sign: | The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) | 1 | +| `DefaultSubtitleForced` | *long* | :heavy_minus_sign: | The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) | 0 | +| `WatchedIndicator` | *long* | :heavy_minus_sign: | N/A | 1 | +| `MediaReviewsVisibility` | *long* | :heavy_minus_sign: | N/A | 0 | \ No newline at end of file diff --git a/docs/sdks/activities/README.md b/docs/sdks/activities/README.md index e6ed110..fb4ab38 100644 --- a/docs/sdks/activities/README.md +++ b/docs/sdks/activities/README.md @@ -36,10 +36,10 @@ var res = await sdk.Activities.GetServerActivitiesAsync(); // handle response ``` - ### Response **[GetServerActivitiesResponse](../../Models/Requests/GetServerActivitiesResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -47,6 +47,7 @@ var res = await sdk.Activities.GetServerActivitiesAsync(); | PlexAPI.Models.Errors.GetServerActivitiesResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## CancelServerActivities Cancel Server Activities @@ -55,8 +56,8 @@ Cancel Server Activities ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -73,10 +74,10 @@ var res = await sdk.Activities.CancelServerActivitiesAsync(activityUUID: "25b71e | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | | `ActivityUUID` | *string* | :heavy_check_mark: | The UUID of the activity to cancel. | 25b71ed5-0f9d-461c-baa7-d404e9e10d3e | - ### Response **[CancelServerActivitiesResponse](../../Models/Requests/CancelServerActivitiesResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/authentication/README.md b/docs/sdks/authentication/README.md index 2ea73b1..7af7a5d 100644 --- a/docs/sdks/authentication/README.md +++ b/docs/sdks/authentication/README.md @@ -20,8 +20,8 @@ This endpoint provides the caller with a temporary token with the same access le ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -41,10 +41,10 @@ var res = await sdk.Authentication.GetTransientTokenAsync( | `Type` | [GetTransientTokenQueryParamType](../../Models/Requests/GetTransientTokenQueryParamType.md) | :heavy_check_mark: | `delegation` - This is the only supported `type` parameter. | | `Scope` | [Scope](../../Models/Requests/Scope.md) | :heavy_check_mark: | `all` - This is the only supported `scope` parameter. | - ### Response **[GetTransientTokenResponse](../../Models/Requests/GetTransientTokenResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -52,6 +52,7 @@ var res = await sdk.Authentication.GetTransientTokenAsync( | PlexAPI.Models.Errors.GetTransientTokenResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetSourceConnectionInformation If a caller requires connection details and a transient token for a source that is known to the server, for example a cloud media provider or shared PMS, then this endpoint can be called. This endpoint is only accessible with either an admin token or a valid transient token generated from an admin token. @@ -62,8 +63,8 @@ Note: requires Plex Media Server >= 1.15.4. ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -80,10 +81,10 @@ var res = await sdk.Authentication.GetSourceConnectionInformationAsync(source: " | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | | `Source` | *string* | :heavy_check_mark: | The source identifier with an included prefix. | server://client-identifier | - ### Response **[GetSourceConnectionInformationResponse](../../Models/Requests/GetSourceConnectionInformationResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/butler/README.md b/docs/sdks/butler/README.md index 0e17a34..9292ae4 100644 --- a/docs/sdks/butler/README.md +++ b/docs/sdks/butler/README.md @@ -33,10 +33,10 @@ var res = await sdk.Butler.GetButlerTasksAsync(); // handle response ``` - ### Response **[GetButlerTasksResponse](../../Models/Requests/GetButlerTasksResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -44,6 +44,7 @@ var res = await sdk.Butler.GetButlerTasksAsync(); | PlexAPI.Models.Errors.GetButlerTasksResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## StartAllTasks This endpoint will attempt to start all Butler tasks that are enabled in the settings. Butler tasks normally run automatically during a time window configured on the server's Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: @@ -68,10 +69,10 @@ var res = await sdk.Butler.StartAllTasksAsync(); // handle response ``` - ### Response **[StartAllTasksResponse](../../Models/Requests/StartAllTasksResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -79,6 +80,7 @@ var res = await sdk.Butler.StartAllTasksAsync(); | PlexAPI.Models.Errors.StartAllTasksResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## StopAllTasks This endpoint will stop all currently running tasks and remove any scheduled tasks from the queue. @@ -99,10 +101,10 @@ var res = await sdk.Butler.StopAllTasksAsync(); // handle response ``` - ### Response **[StopAllTasksResponse](../../Models/Requests/StopAllTasksResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -110,6 +112,7 @@ var res = await sdk.Butler.StopAllTasksAsync(); | PlexAPI.Models.Errors.StopAllTasksResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## StartTask This endpoint will attempt to start a single Butler task that is enabled in the settings. Butler tasks normally run automatically during a time window configured on the server's Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: @@ -123,8 +126,8 @@ This endpoint will attempt to start a single Butler task that is enabled in the ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -141,10 +144,10 @@ var res = await sdk.Butler.StartTaskAsync(taskName: PlexAPI.Models.Requests.Task | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | | `TaskName` | [TaskName](../../Models/Requests/TaskName.md) | :heavy_check_mark: | the name of the task to be started. | - ### Response **[StartTaskResponse](../../Models/Requests/StartTaskResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -152,6 +155,7 @@ var res = await sdk.Butler.StartTaskAsync(taskName: PlexAPI.Models.Requests.Task | PlexAPI.Models.Errors.StartTaskResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## StopTask This endpoint will stop a currently running task by name, or remove it from the list of scheduled tasks if it exists. See the section above for a list of task names for this endpoint. @@ -161,8 +165,8 @@ This endpoint will stop a currently running task by name, or remove it from the ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -179,10 +183,10 @@ var res = await sdk.Butler.StopTaskAsync(taskName: PlexAPI.Models.Requests.PathP | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | | `TaskName` | [PathParamTaskName](../../Models/Requests/PathParamTaskName.md) | :heavy_check_mark: | The name of the task to be started. | - ### Response **[StopTaskResponse](../../Models/Requests/StopTaskResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/hubs/README.md b/docs/sdks/hubs/README.md index ac873b1..8f79bcd 100644 --- a/docs/sdks/hubs/README.md +++ b/docs/sdks/hubs/README.md @@ -19,8 +19,8 @@ Get Global Hubs filtered by the parameters provided. ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -28,7 +28,7 @@ var sdk = new PlexAPISDK( var res = await sdk.Hubs.GetGlobalHubsAsync( count: 1262.49D, - onlyTransient: OnlyTransient.One); + onlyTransient: PlexAPI.Models.Requests.OnlyTransient.One); // handle response ``` @@ -40,10 +40,10 @@ var res = await sdk.Hubs.GetGlobalHubsAsync( | `Count` | *double* | :heavy_minus_sign: | The number of items to return with each hub. | | `OnlyTransient` | [OnlyTransient](../../Models/Requests/OnlyTransient.md) | :heavy_minus_sign: | Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). | - ### Response **[GetGlobalHubsResponse](../../Models/Requests/GetGlobalHubsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -51,6 +51,7 @@ var res = await sdk.Hubs.GetGlobalHubsAsync( | PlexAPI.Models.Errors.GetGlobalHubsResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetLibraryHubs This endpoint will return a list of library specific hubs @@ -60,8 +61,8 @@ This endpoint will return a list of library specific hubs ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -70,7 +71,7 @@ var sdk = new PlexAPISDK( var res = await sdk.Hubs.GetLibraryHubsAsync( sectionId: 6728.76D, count: 9010.22D, - onlyTransient: QueryParamOnlyTransient.Zero); + onlyTransient: PlexAPI.Models.Requests.QueryParamOnlyTransient.Zero); // handle response ``` @@ -83,10 +84,10 @@ var res = await sdk.Hubs.GetLibraryHubsAsync( | `Count` | *double* | :heavy_minus_sign: | The number of items to return with each hub. | | `OnlyTransient` | [QueryParamOnlyTransient](../../Models/Requests/QueryParamOnlyTransient.md) | :heavy_minus_sign: | Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). | - ### Response **[GetLibraryHubsResponse](../../Models/Requests/GetLibraryHubsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/library/README.md b/docs/sdks/library/README.md index 400b3a8..b8f4929 100644 --- a/docs/sdks/library/README.md +++ b/docs/sdks/library/README.md @@ -29,8 +29,8 @@ This resource returns hash values for local files ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -50,10 +50,10 @@ var res = await sdk.Library.GetFileHashAsync( | `Url` | *string* | :heavy_check_mark: | This is the path to the local file, must be prefixed by `file://` | file://C:\Image.png&type=13 | | `Type` | *double* | :heavy_minus_sign: | Item type | | - ### Response **[GetFileHashResponse](../../Models/Requests/GetFileHashResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -61,6 +61,7 @@ var res = await sdk.Library.GetFileHashAsync( | PlexAPI.Models.Errors.GetFileHashResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetRecentlyAdded This endpoint will return the recently added content. @@ -81,10 +82,10 @@ var res = await sdk.Library.GetRecentlyAddedAsync(); // handle response ``` - ### Response **[GetRecentlyAddedResponse](../../Models/Requests/GetRecentlyAddedResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -92,6 +93,7 @@ var res = await sdk.Library.GetRecentlyAddedAsync(); | PlexAPI.Models.Errors.GetRecentlyAddedResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetLibraries A library section (commonly referred to as just a library) is a collection of media. @@ -117,10 +119,10 @@ var res = await sdk.Library.GetLibrariesAsync(); // handle response ``` - ### Response **[GetLibrariesResponse](../../Models/Requests/GetLibrariesResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -128,6 +130,7 @@ var res = await sdk.Library.GetLibrariesAsync(); | PlexAPI.Models.Errors.GetLibrariesResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetLibrary ## Library Details Endpoint @@ -175,8 +178,8 @@ Each type in the library comes with a set of filters and sorts, aiding in buildi ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -184,7 +187,7 @@ var sdk = new PlexAPISDK( var res = await sdk.Library.GetLibraryAsync( sectionId: 1000D, - includeDetails: IncludeDetails.Zero); + includeDetails: PlexAPI.Models.Requests.IncludeDetails.Zero); // handle response ``` @@ -196,10 +199,10 @@ var res = await sdk.Library.GetLibraryAsync( | `SectionId` | *double* | :heavy_check_mark: | the Id of the library to query | 1000 | | `IncludeDetails` | [IncludeDetails](../../Models/Requests/IncludeDetails.md) | :heavy_minus_sign: | Whether or not to include details for a section (types, filters, and sorts).
Only exists for backwards compatibility, media providers other than the server libraries have it on always.
| | - ### Response **[GetLibraryResponse](../../Models/Requests/GetLibraryResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -207,6 +210,7 @@ var res = await sdk.Library.GetLibraryAsync( | PlexAPI.Models.Errors.GetLibraryResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## DeleteLibrary Delate a library using a specific section @@ -215,8 +219,8 @@ Delate a library using a specific section ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -233,10 +237,10 @@ var res = await sdk.Library.DeleteLibraryAsync(sectionId: 1000D); | ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | | `SectionId` | *double* | :heavy_check_mark: | the Id of the library to query | 1000 | - ### Response **[DeleteLibraryResponse](../../Models/Requests/DeleteLibraryResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -244,6 +248,7 @@ var res = await sdk.Library.DeleteLibraryAsync(sectionId: 1000D); | PlexAPI.Models.Errors.DeleteLibraryResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetLibraryItems Fetches details from a specific section of the library identified by a section key and a tag. The tag parameter accepts the following values: @@ -272,8 +277,8 @@ Fetches details from a specific section of the library identified by a section k ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -295,10 +300,10 @@ var res = await sdk.Library.GetLibraryItemsAsync( | `Tag` | [Tag](../../Models/Requests/Tag.md) | :heavy_check_mark: | A key representing a specific tag within the section. | | | `IncludeGuids` | *long* | :heavy_minus_sign: | Adds the Guids object to the response
| 1 | - ### Response **[GetLibraryItemsResponse](../../Models/Requests/GetLibraryItemsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -306,6 +311,7 @@ var res = await sdk.Library.GetLibraryItemsAsync( | PlexAPI.Models.Errors.GetLibraryItemsResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## RefreshLibrary This endpoint Refreshes the library. @@ -315,8 +321,8 @@ This endpoint Refreshes the library. ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -333,10 +339,10 @@ var res = await sdk.Library.RefreshLibraryAsync(sectionId: 934.16D); | -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- | | `SectionId` | *double* | :heavy_check_mark: | the Id of the library to refresh | - ### Response **[RefreshLibraryResponse](../../Models/Requests/RefreshLibraryResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -344,6 +350,7 @@ var res = await sdk.Library.RefreshLibraryAsync(sectionId: 934.16D); | PlexAPI.Models.Errors.RefreshLibraryResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## SearchLibrary Search for content within a specific section of the library. @@ -370,8 +377,8 @@ Each type in the library comes with a set of filters and sorts, aiding in buildi ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -391,10 +398,10 @@ var res = await sdk.Library.SearchLibraryAsync( | `SectionId` | *long* | :heavy_check_mark: | the Id of the library to query | | `Type` | [Type](../../Models/Requests/Type.md) | :heavy_check_mark: | Plex content type to search for | - ### Response **[SearchLibraryResponse](../../Models/Requests/SearchLibraryResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -402,6 +409,7 @@ var res = await sdk.Library.SearchLibraryAsync( | PlexAPI.Models.Errors.SearchLibraryResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetMetadata This endpoint will return the metadata of a library item specified with the ratingKey. @@ -411,8 +419,8 @@ This endpoint will return the metadata of a library item specified with the rati ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -429,10 +437,10 @@ var res = await sdk.Library.GetMetadataAsync(ratingKey: 8382.31D); | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | | `RatingKey` | *double* | :heavy_check_mark: | the id of the library item to return the children of. | - ### Response **[GetMetadataResponse](../../Models/Requests/GetMetadataResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -440,6 +448,7 @@ var res = await sdk.Library.GetMetadataAsync(ratingKey: 8382.31D); | PlexAPI.Models.Errors.GetMetadataResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetMetadataChildren This endpoint will return the children of of a library item specified with the ratingKey. @@ -449,8 +458,8 @@ This endpoint will return the children of of a library item specified with the r ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -470,10 +479,10 @@ var res = await sdk.Library.GetMetadataChildrenAsync( | `RatingKey` | *double* | :heavy_check_mark: | the id of the library item to return the children of. | | `IncludeElements` | *string* | :heavy_minus_sign: | Adds additional elements to the response. Supported types are (Stream)
| - ### Response **[GetMetadataChildrenResponse](../../Models/Requests/GetMetadataChildrenResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -481,6 +490,7 @@ var res = await sdk.Library.GetMetadataChildrenAsync( | PlexAPI.Models.Errors.GetMetadataChildrenResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetTopWatchedContent This endpoint will return the top watched content from libraries of a certain type @@ -490,8 +500,8 @@ This endpoint will return the top watched content from libraries of a certain ty ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -511,16 +521,17 @@ var res = await sdk.Library.GetTopWatchedContentAsync( | `Type` | *long* | :heavy_check_mark: | the library type (1 - movies, 2 - shows, 3 - music) | | | `IncludeGuids` | *long* | :heavy_minus_sign: | Adds the Guids object to the response
| 1 | - ### Response **[GetTopWatchedContentResponse](../../Models/Requests/GetTopWatchedContentResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | ---------------------------------- | ---------------------------------- | ---------------------------------- | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetOnDeck This endpoint will return the on deck content. @@ -541,10 +552,10 @@ var res = await sdk.Library.GetOnDeckAsync(); // handle response ``` - ### Response **[GetOnDeckResponse](../../Models/Requests/GetOnDeckResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/log/README.md b/docs/sdks/log/README.md index 4e9f7bf..dc2f7ab 100644 --- a/docs/sdks/log/README.md +++ b/docs/sdks/log/README.md @@ -21,8 +21,8 @@ This endpoint will write a single-line log message, including a level and source ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -44,10 +44,10 @@ var res = await sdk.Log.LogLineAsync( | `Message` | *string* | :heavy_check_mark: | The text of the message to write to the log. | Test log message | | `Source` | *string* | :heavy_check_mark: | a string indicating the source of the message. | Postman | - ### Response **[LogLineResponse](../../Models/Requests/LogLineResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -55,6 +55,7 @@ var res = await sdk.Log.LogLineAsync( | PlexAPI.Models.Errors.LogLineResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## LogMultiLine This endpoint allows for the batch addition of log entries to the main Plex Media Server log. @@ -105,10 +106,10 @@ var res = await sdk.Log.LogMultiLineAsync(req); | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | | `request` | *string* | :heavy_check_mark: | The request object to use for the request. | - ### Response **[LogMultiLineResponse](../../Models/Requests/LogMultiLineResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -116,6 +117,7 @@ var res = await sdk.Log.LogMultiLineAsync(req); | PlexAPI.Models.Errors.LogMultiLineResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## EnablePaperTrail This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail networked logging site for a period of time. @@ -136,10 +138,10 @@ var res = await sdk.Log.EnablePaperTrailAsync(); // handle response ``` - ### Response **[EnablePaperTrailResponse](../../Models/Requests/EnablePaperTrailResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/media/README.md b/docs/sdks/media/README.md index 85606fe..c0f8ac3 100644 --- a/docs/sdks/media/README.md +++ b/docs/sdks/media/README.md @@ -20,8 +20,8 @@ This will mark the provided media key as Played. ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -38,10 +38,10 @@ var res = await sdk.Media.MarkPlayedAsync(key: 59398D); | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | | `Key` | *double* | :heavy_check_mark: | The media key to mark as played | 59398 | - ### Response **[MarkPlayedResponse](../../Models/Requests/MarkPlayedResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -49,6 +49,7 @@ var res = await sdk.Media.MarkPlayedAsync(key: 59398D); | PlexAPI.Models.Errors.MarkPlayedResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## MarkUnplayed This will mark the provided media key as Unplayed. @@ -57,8 +58,8 @@ This will mark the provided media key as Unplayed. ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -75,10 +76,10 @@ var res = await sdk.Media.MarkUnplayedAsync(key: 59398D); | --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- | | `Key` | *double* | :heavy_check_mark: | The media key to mark as Unplayed | 59398 | - ### Response **[MarkUnplayedResponse](../../Models/Requests/MarkUnplayedResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -86,6 +87,7 @@ var res = await sdk.Media.MarkUnplayedAsync(key: 59398D); | PlexAPI.Models.Errors.MarkUnplayedResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## UpdatePlayProgress This API command can be used to update the play progress of a media item. @@ -95,8 +97,8 @@ This API command can be used to update the play progress of a media item. ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -118,10 +120,10 @@ var res = await sdk.Media.UpdatePlayProgressAsync( | `Time` | *double* | :heavy_check_mark: | The time, in milliseconds, used to set the media playback progress. | 90000 | | `State` | *string* | :heavy_check_mark: | The playback state of the media item. | played | - ### Response **[UpdatePlayProgressResponse](../../Models/Requests/UpdatePlayProgressResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/playlists/README.md b/docs/sdks/playlists/README.md index 7dc3f11..d5926b2 100644 --- a/docs/sdks/playlists/README.md +++ b/docs/sdks/playlists/README.md @@ -32,8 +32,8 @@ Create a new playlist. By default the playlist is blank. To create a playlist al ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -57,10 +57,10 @@ var res = await sdk.Playlists.CreatePlaylistAsync(req); | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | | `request` | [CreatePlaylistRequest](../../Models/Requests/CreatePlaylistRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[CreatePlaylistResponse](../../Models/Requests/CreatePlaylistResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -68,6 +68,7 @@ var res = await sdk.Playlists.CreatePlaylistAsync(req); | PlexAPI.Models.Errors.CreatePlaylistResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetPlaylists Get All Playlists given the specified filters. @@ -76,16 +77,16 @@ Get All Playlists given the specified filters. ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", xPlexClientIdentifier: "Postman"); var res = await sdk.Playlists.GetPlaylistsAsync( - playlistType: PlaylistType.Audio, - smart: QueryParamSmart.Zero); + playlistType: PlexAPI.Models.Requests.PlaylistType.Audio, + smart: PlexAPI.Models.Requests.QueryParamSmart.Zero); // handle response ``` @@ -97,10 +98,10 @@ var res = await sdk.Playlists.GetPlaylistsAsync( | `PlaylistType` | [PlaylistType](../../Models/Requests/PlaylistType.md) | :heavy_minus_sign: | limit to a type of playlist. | | `Smart` | [QueryParamSmart](../../Models/Requests/QueryParamSmart.md) | :heavy_minus_sign: | type of playlists to return (default is all). | - ### Response **[GetPlaylistsResponse](../../Models/Requests/GetPlaylistsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -108,6 +109,7 @@ var res = await sdk.Playlists.GetPlaylistsAsync( | PlexAPI.Models.Errors.GetPlaylistsResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetPlaylist Gets detailed metadata for a playlist. A playlist for many purposes (rating, editing metadata, tagging), can be treated like a regular metadata item: @@ -118,8 +120,8 @@ Smart playlist details contain the `content` attribute. This is the content URI ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -136,10 +138,10 @@ var res = await sdk.Playlists.GetPlaylistAsync(playlistID: 4109.48D); | ---------------------- | ---------------------- | ---------------------- | ---------------------- | | `PlaylistID` | *double* | :heavy_check_mark: | the ID of the playlist | - ### Response **[GetPlaylistResponse](../../Models/Requests/GetPlaylistResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -147,6 +149,7 @@ var res = await sdk.Playlists.GetPlaylistAsync(playlistID: 4109.48D); | PlexAPI.Models.Errors.GetPlaylistResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## DeletePlaylist This endpoint will delete a playlist @@ -156,8 +159,8 @@ This endpoint will delete a playlist ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -174,10 +177,10 @@ var res = await sdk.Playlists.DeletePlaylistAsync(playlistID: 216.22D); | ---------------------- | ---------------------- | ---------------------- | ---------------------- | | `PlaylistID` | *double* | :heavy_check_mark: | the ID of the playlist | - ### Response **[DeletePlaylistResponse](../../Models/Requests/DeletePlaylistResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -185,6 +188,7 @@ var res = await sdk.Playlists.DeletePlaylistAsync(playlistID: 216.22D); | PlexAPI.Models.Errors.DeletePlaylistResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## UpdatePlaylist From PMS version 1.9.1 clients can also edit playlist metadata using this endpoint as they would via `PUT /library/metadata/{playlistID}` @@ -194,8 +198,8 @@ From PMS version 1.9.1 clients can also edit playlist metadata using this endpoi ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -217,10 +221,10 @@ var res = await sdk.Playlists.UpdatePlaylistAsync( | `Title` | *string* | :heavy_minus_sign: | name of the playlist | | `Summary` | *string* | :heavy_minus_sign: | summary description of the playlist | - ### Response **[UpdatePlaylistResponse](../../Models/Requests/UpdatePlaylistResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -228,6 +232,7 @@ var res = await sdk.Playlists.UpdatePlaylistAsync( | PlexAPI.Models.Errors.UpdatePlaylistResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetPlaylistContents Gets the contents of a playlist. Should be paged by clients via standard mechanisms. @@ -240,8 +245,8 @@ Note that for dumb playlists, items have a `playlistItemID` attribute which is u ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -261,10 +266,10 @@ var res = await sdk.Playlists.GetPlaylistContentsAsync( | `PlaylistID` | *double* | :heavy_check_mark: | the ID of the playlist | | `Type` | *double* | :heavy_check_mark: | the metadata type of the item to return | - ### Response **[GetPlaylistContentsResponse](../../Models/Requests/GetPlaylistContentsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -272,6 +277,7 @@ var res = await sdk.Playlists.GetPlaylistContentsAsync( | PlexAPI.Models.Errors.GetPlaylistContentsResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## ClearPlaylistContents Clears a playlist, only works with dumb playlists. Returns the playlist. @@ -281,8 +287,8 @@ Clears a playlist, only works with dumb playlists. Returns the playlist. ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -299,10 +305,10 @@ var res = await sdk.Playlists.ClearPlaylistContentsAsync(playlistID: 1893.18D); | ---------------------- | ---------------------- | ---------------------- | ---------------------- | | `PlaylistID` | *double* | :heavy_check_mark: | the ID of the playlist | - ### Response **[ClearPlaylistContentsResponse](../../Models/Requests/ClearPlaylistContentsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -310,6 +316,7 @@ var res = await sdk.Playlists.ClearPlaylistContentsAsync(playlistID: 1893.18D); | PlexAPI.Models.Errors.ClearPlaylistContentsResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## AddPlaylistContents Adds a generator to a playlist, same parameters as the POST to create. With a dumb playlist, this adds the specified items to the playlist. @@ -320,8 +327,8 @@ With a smart playlist, passing a new `uri` parameter replaces the rules for the ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -343,10 +350,10 @@ var res = await sdk.Playlists.AddPlaylistContentsAsync( | `Uri` | *string* | :heavy_check_mark: | the content URI for the playlist | server://12345/com.plexapp.plugins.library/library/metadata/1 | | `PlayQueueID` | *double* | :heavy_minus_sign: | the play queue to add to a playlist | 123 | - ### Response **[AddPlaylistContentsResponse](../../Models/Requests/AddPlaylistContentsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -354,6 +361,7 @@ var res = await sdk.Playlists.AddPlaylistContentsAsync( | PlexAPI.Models.Errors.AddPlaylistContentsResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## UploadPlaylist Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file. @@ -363,8 +371,8 @@ Imports m3u playlists by passing a path on the server to scan for m3u-formatted ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -384,10 +392,10 @@ var res = await sdk.Playlists.UploadPlaylistAsync( | `Path` | *string* | :heavy_check_mark: | absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server.
If the `path` argument is a directory, that path will be scanned for playlist files to be processed.
Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it.
The GUID of each playlist is based on the filename.
If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it.
The GUID of each playlist is based on the filename.
| /home/barkley/playlist.m3u | | `Force` | [Force](../../Models/Requests/Force.md) | :heavy_check_mark: | Force overwriting of duplicate playlists.
By default, a playlist file uploaded with the same path will overwrite the existing playlist.
The `force` argument is used to disable overwriting.
If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded.
| | - ### Response **[UploadPlaylistResponse](../../Models/Requests/UploadPlaylistResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/plex/README.md b/docs/sdks/plex/README.md index 118f686..b027c8c 100644 --- a/docs/sdks/plex/README.md +++ b/docs/sdks/plex/README.md @@ -8,9 +8,123 @@ API Calls that perform operations directly against https://Plex.tv ### Available Operations +* [GetCompanionsData](#getcompanionsdata) - Get Companions Data +* [GetUserFriends](#getuserfriends) - Get list of friends of the user logged in +* [GetGeoData](#getgeodata) - Get Geo Data * [GetHomeData](#gethomedata) - Get Plex Home Data +* [GetResources](#getresources) - Get Resources * [GetPin](#getpin) - Get a Pin -* [GetToken](#gettoken) - Get Access Token +* [GetTokenByPinId](#gettokenbypinid) - Get Access Token by PinId +* [GetUserDetails](#getuserdetails) - Get UserData By Token + +## GetCompanionsData + +Get Companions Data + +### Example Usage + +```csharp +using PlexAPI; +using PlexAPI.Models.Components; + +var sdk = new PlexAPISDK( + accessToken: "", + xPlexClientIdentifier: "Postman"); + +var res = await sdk.Plex.GetCompanionsDataAsync(); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + +### Response + +**[GetCompanionsDataResponse](../../Models/Requests/GetCompanionsDataResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | +| PlexAPI.Models.Errors.GetCompanionsDataResponseBody | 401 | application/json | +| PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + + +## GetUserFriends + +Get friends of provided auth token. + +### Example Usage + +```csharp +using PlexAPI; +using PlexAPI.Models.Components; + +var sdk = new PlexAPISDK( + accessToken: "", + xPlexClientIdentifier: "Postman"); + +var res = await sdk.Plex.GetUserFriendsAsync(); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + +### Response + +**[GetUserFriendsResponse](../../Models/Requests/GetUserFriendsResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | +| PlexAPI.Models.Errors.GetUserFriendsResponseBody | 401 | application/json | +| PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + + +## GetGeoData + +Returns the geolocation and locale data of the caller + +### Example Usage + +```csharp +using PlexAPI; +using PlexAPI.Models.Components; + +var sdk = new PlexAPISDK(xPlexClientIdentifier: "Postman"); + +var res = await sdk.Plex.GetGeoDataAsync(); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + +### Response + +**[GetGeoDataResponse](../../Models/Requests/GetGeoDataResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | +| PlexAPI.Models.Errors.GetGeoDataResponseBody | 401 | application/json | +| PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetHomeData @@ -31,10 +145,10 @@ var res = await sdk.Plex.GetHomeDataAsync(); // handle response ``` - ### Response **[GetHomeDataResponse](../../Models/Requests/GetHomeDataResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -42,6 +156,51 @@ var res = await sdk.Plex.GetHomeDataAsync(); | PlexAPI.Models.Errors.GetHomeDataResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + +## GetResources + +Get Resources + +### Example Usage + +```csharp +using PlexAPI; +using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; + +var sdk = new PlexAPISDK(xPlexClientIdentifier: "Postman"); + +var res = await sdk.Plex.GetResourcesAsync( + xPlexClientIdentifier: "Postman", + includeHttps: PlexAPI.Models.Requests.IncludeHttps.Zero, + includeRelay: PlexAPI.Models.Requests.IncludeRelay.Zero, + includeIPv6: PlexAPI.Models.Requests.IncludeIPv6.One); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `XPlexClientIdentifier` | *string* | :heavy_minus_sign: | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
| Postman | +| `IncludeHttps` | [IncludeHttps](../../Models/Requests/IncludeHttps.md) | :heavy_minus_sign: | Include Https entries in the results | | +| `IncludeRelay` | [IncludeRelay](../../Models/Requests/IncludeRelay.md) | :heavy_minus_sign: | Include Relay addresses in the results | | +| `IncludeIPv6` | [IncludeIPv6](../../Models/Requests/IncludeIPv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | http://localhost:8080 | + +### Response + +**[GetResourcesResponse](../../Models/Requests/GetResourcesResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | +| PlexAPI.Models.Errors.GetResourcesResponseBody | 401 | application/json | +| PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + + ## GetPin Retrieve a Pin from Plex.tv for authentication flows @@ -50,8 +209,8 @@ Retrieve a Pin from Plex.tv for authentication flows ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK(xPlexClientIdentifier: "Postman"); @@ -72,10 +231,10 @@ var res = await sdk.Plex.GetPinAsync( | `XPlexClientIdentifier` | *string* | :heavy_minus_sign: | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
| Postman | | `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | http://localhost:8080 | - ### Response **[GetPinResponse](../../Models/Requests/GetPinResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -83,21 +242,22 @@ var res = await sdk.Plex.GetPinAsync( | PlexAPI.Models.Errors.GetPinResponseBody | 400 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | -## GetToken -Retrieve an Access Token from Plex.tv after the Pin has already been authenticated +## GetTokenByPinId + +Retrieve an Access Token from Plex.tv after the Pin has been authenticated ### Example Usage ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK(xPlexClientIdentifier: "Postman"); -var res = await sdk.Plex.GetTokenAsync( - pinID: "", +var res = await sdk.Plex.GetTokenByPinIdAsync( + pinID: 408895, xPlexClientIdentifier: "Postman"); // handle response @@ -107,17 +267,54 @@ var res = await sdk.Plex.GetTokenAsync( | Parameter | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `PinID` | *string* | :heavy_check_mark: | The PinID to retrieve an access token for | | +| `PinID` | *long* | :heavy_check_mark: | The PinID to retrieve an access token for | | | `XPlexClientIdentifier` | *string* | :heavy_minus_sign: | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
| Postman | | `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | http://localhost:8080 | +### Response + +**[GetTokenByPinIdResponse](../../Models/Requests/GetTokenByPinIdResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | +| PlexAPI.Models.Errors.GetTokenByPinIdResponseBody | 404 | application/json | +| PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + + +## GetUserDetails + +Get the User data from the provided X-Plex-Token + +### Example Usage + +```csharp +using PlexAPI; +using PlexAPI.Models.Components; + +var sdk = new PlexAPISDK( + accessToken: "", + xPlexClientIdentifier: "Postman"); + +var res = await sdk.Plex.GetUserDetailsAsync(); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | ### Response -**[GetTokenResponse](../../Models/Requests/GetTokenResponse.md)** +**[GetUserDetailsResponse](../../Models/Requests/GetUserDetailsResponse.md)** + ### Errors -| Error Object | Status Code | Content Type | -| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| PlexAPI.Models.Errors.GetTokenResponseBody | 400 | application/json | -| PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | +| PlexAPI.Models.Errors.GetUserDetailsResponseBody | 401 | application/json | +| PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/plexapi/README.md b/docs/sdks/plexapi/README.md index 8ee580c..16ebfce 100644 --- a/docs/sdks/plexapi/README.md +++ b/docs/sdks/plexapi/README.md @@ -1,9 +1,5 @@ # PlexAPI SDK - ## Overview -An Open API Spec for interacting with Plex.tv and Plex Servers - -### Available Operations - +Plex-API: An Open API Spec for interacting with Plex.tv \ No newline at end of file diff --git a/docs/sdks/search/README.md b/docs/sdks/search/README.md index df69a33..7dd4069 100644 --- a/docs/sdks/search/README.md +++ b/docs/sdks/search/README.md @@ -32,8 +32,8 @@ This request is intended to be very fast, and called as the user types. ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -55,10 +55,10 @@ var res = await sdk.Search.PerformSearchAsync( | `SectionId` | *double* | :heavy_minus_sign: | This gives context to the search, and can result in re-ordering of search result hubs | | | `Limit` | *double* | :heavy_minus_sign: | The number of items to return per hub | 5 | - ### Response **[PerformSearchResponse](../../Models/Requests/PerformSearchResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -66,6 +66,7 @@ var res = await sdk.Search.PerformSearchAsync( | PlexAPI.Models.Errors.PerformSearchResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## PerformVoiceSearch This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint. @@ -78,8 +79,8 @@ Results, as well as their containing per-type hubs, contain a `distance` attribu ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -101,10 +102,10 @@ var res = await sdk.Search.PerformVoiceSearchAsync( | `SectionId` | *double* | :heavy_minus_sign: | This gives context to the search, and can result in re-ordering of search result hubs | | | `Limit` | *double* | :heavy_minus_sign: | The number of items to return per hub | 5 | - ### Response **[PerformVoiceSearchResponse](../../Models/Requests/PerformVoiceSearchResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -112,6 +113,7 @@ var res = await sdk.Search.PerformVoiceSearchAsync( | PlexAPI.Models.Errors.PerformVoiceSearchResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetSearchResults This will search the database for the string provided. @@ -120,8 +122,8 @@ This will search the database for the string provided. ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -138,10 +140,10 @@ var res = await sdk.Search.GetSearchResultsAsync(query: "110"); | ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | | `Query` | *string* | :heavy_check_mark: | The search query string to use | 110 | - ### Response **[GetSearchResultsResponse](../../Models/Requests/GetSearchResultsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/server/README.md b/docs/sdks/server/README.md index c65340a..166e907 100644 --- a/docs/sdks/server/README.md +++ b/docs/sdks/server/README.md @@ -36,10 +36,10 @@ var res = await sdk.Server.GetServerCapabilitiesAsync(); // handle response ``` - ### Response **[GetServerCapabilitiesResponse](../../Models/Requests/GetServerCapabilitiesResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -47,6 +47,7 @@ var res = await sdk.Server.GetServerCapabilitiesAsync(); | PlexAPI.Models.Errors.GetServerCapabilitiesResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetServerPreferences Get Server Preferences @@ -66,10 +67,10 @@ var res = await sdk.Server.GetServerPreferencesAsync(); // handle response ``` - ### Response **[GetServerPreferencesResponse](../../Models/Requests/GetServerPreferencesResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -77,6 +78,7 @@ var res = await sdk.Server.GetServerPreferencesAsync(); | PlexAPI.Models.Errors.GetServerPreferencesResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetAvailableClients Get Available Clients @@ -96,10 +98,10 @@ var res = await sdk.Server.GetAvailableClientsAsync(); // handle response ``` - ### Response **[GetAvailableClientsResponse](../../Models/Requests/GetAvailableClientsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -107,6 +109,7 @@ var res = await sdk.Server.GetAvailableClientsAsync(); | PlexAPI.Models.Errors.GetAvailableClientsResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetDevices Get Devices @@ -126,10 +129,10 @@ var res = await sdk.Server.GetDevicesAsync(); // handle response ``` - ### Response **[GetDevicesResponse](../../Models/Requests/GetDevicesResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -137,6 +140,7 @@ var res = await sdk.Server.GetDevicesAsync(); | PlexAPI.Models.Errors.GetDevicesResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetServerIdentity Get Server Identity @@ -156,10 +160,10 @@ var res = await sdk.Server.GetServerIdentityAsync(); // handle response ``` - ### Response **[GetServerIdentityResponse](../../Models/Requests/GetServerIdentityResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -167,6 +171,7 @@ var res = await sdk.Server.GetServerIdentityAsync(); | PlexAPI.Models.Errors.GetServerIdentityResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetMyPlexAccount Returns MyPlex Account Information @@ -186,10 +191,10 @@ var res = await sdk.Server.GetMyPlexAccountAsync(); // handle response ``` - ### Response **[GetMyPlexAccountResponse](../../Models/Requests/GetMyPlexAccountResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -197,6 +202,7 @@ var res = await sdk.Server.GetMyPlexAccountAsync(); | PlexAPI.Models.Errors.GetMyPlexAccountResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetResizedPhoto Plex's Photo transcoder is used throughout the service to serve images at specified sizes. @@ -206,8 +212,8 @@ Plex's Photo transcoder is used throughout the service to serve images at specif ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -234,10 +240,10 @@ var res = await sdk.Server.GetResizedPhotoAsync(req); | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | | `request` | [GetResizedPhotoRequest](../../Models/Requests/GetResizedPhotoRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[GetResizedPhotoResponse](../../Models/Requests/GetResizedPhotoResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -245,6 +251,7 @@ var res = await sdk.Server.GetResizedPhotoAsync(req); | PlexAPI.Models.Errors.GetResizedPhotoResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetServerList Get Server List @@ -264,10 +271,10 @@ var res = await sdk.Server.GetServerListAsync(); // handle response ``` - ### Response **[GetServerListResponse](../../Models/Requests/GetServerListResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/sessions/README.md b/docs/sdks/sessions/README.md index d58254f..ff962c7 100644 --- a/docs/sdks/sessions/README.md +++ b/docs/sdks/sessions/README.md @@ -32,10 +32,10 @@ var res = await sdk.Sessions.GetSessionsAsync(); // handle response ``` - ### Response **[GetSessionsResponse](../../Models/Requests/GetSessionsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -43,6 +43,7 @@ var res = await sdk.Sessions.GetSessionsAsync(); | PlexAPI.Models.Errors.GetSessionsResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetSessionHistory This will Retrieve a listing of all history views. @@ -51,8 +52,8 @@ This will Retrieve a listing of all history views. ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -76,10 +77,10 @@ var res = await sdk.Sessions.GetSessionHistoryAsync( | `Filter` | [Filter](../../Models/Requests/Filter.md) | :heavy_minus_sign: | Filters content by field and direction/equality
(Unknown if viewedAt is the only supported column)
| {
"viewed-at-greater-than": {
"value": "viewedAt\u003e"
},
"viewed-at-greater-than-or-equal-to": {
"value": "viewedAt\u003e=\u003e"
},
"viewed-at-less-than": {
"value": "viewedAt\u003c"
}
} | | `LibrarySectionID` | *long* | :heavy_minus_sign: | Filters the results based on the id of a valid library section
| 12 | - ### Response **[GetSessionHistoryResponse](../../Models/Requests/GetSessionHistoryResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -87,6 +88,7 @@ var res = await sdk.Sessions.GetSessionHistoryAsync( | PlexAPI.Models.Errors.GetSessionHistoryResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetTranscodeSessions Get Transcode Sessions @@ -106,10 +108,10 @@ var res = await sdk.Sessions.GetTranscodeSessionsAsync(); // handle response ``` - ### Response **[GetTranscodeSessionsResponse](../../Models/Requests/GetTranscodeSessionsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -117,6 +119,7 @@ var res = await sdk.Sessions.GetTranscodeSessionsAsync(); | PlexAPI.Models.Errors.GetTranscodeSessionsResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## StopTranscodeSession Stop a Transcode Session @@ -125,8 +128,8 @@ Stop a Transcode Session ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -143,10 +146,10 @@ var res = await sdk.Sessions.StopTranscodeSessionAsync(sessionKey: "zz7llzqlx8w9 | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | | `SessionKey` | *string* | :heavy_check_mark: | the Key of the transcode session to stop | zz7llzqlx8w9vnrsbnwhbmep | - ### Response **[StopTranscodeSessionResponse](../../Models/Requests/StopTranscodeSessionResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/statistics/README.md b/docs/sdks/statistics/README.md index 79ee6e8..68b8397 100644 --- a/docs/sdks/statistics/README.md +++ b/docs/sdks/statistics/README.md @@ -20,8 +20,8 @@ This will return the media statistics for the server ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -38,10 +38,10 @@ var res = await sdk.Statistics.GetStatisticsAsync(timespan: 4); | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | | `Timespan` | *long* | :heavy_minus_sign: | The timespan to retrieve statistics for
the exact meaning of this parameter is not known
| 4 | - ### Response **[GetStatisticsResponse](../../Models/Requests/GetStatisticsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -49,6 +49,7 @@ var res = await sdk.Statistics.GetStatisticsAsync(timespan: 4); | PlexAPI.Models.Errors.GetStatisticsResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetResourcesStatistics This will return the resources for the server @@ -57,8 +58,8 @@ This will return the resources for the server ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -75,10 +76,10 @@ var res = await sdk.Statistics.GetResourcesStatisticsAsync(timespan: 4); | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | | `Timespan` | *long* | :heavy_minus_sign: | The timespan to retrieve statistics for
the exact meaning of this parameter is not known
| 4 | - ### Response **[GetResourcesStatisticsResponse](../../Models/Requests/GetResourcesStatisticsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -86,6 +87,7 @@ var res = await sdk.Statistics.GetResourcesStatisticsAsync(timespan: 4); | PlexAPI.Models.Errors.GetResourcesStatisticsResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetBandwidthStatistics This will return the bandwidth statistics for the server @@ -94,8 +96,8 @@ This will return the bandwidth statistics for the server ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -112,10 +114,10 @@ var res = await sdk.Statistics.GetBandwidthStatisticsAsync(timespan: 4); | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | | `Timespan` | *long* | :heavy_minus_sign: | The timespan to retrieve statistics for
the exact meaning of this parameter is not known
| 4 | - ### Response **[GetBandwidthStatisticsResponse](../../Models/Requests/GetBandwidthStatisticsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/updater/README.md b/docs/sdks/updater/README.md index 64326d6..10b47a5 100644 --- a/docs/sdks/updater/README.md +++ b/docs/sdks/updater/README.md @@ -32,10 +32,10 @@ var res = await sdk.Updater.GetUpdateStatusAsync(); // handle response ``` - ### Response **[GetUpdateStatusResponse](../../Models/Requests/GetUpdateStatusResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -43,6 +43,7 @@ var res = await sdk.Updater.GetUpdateStatusAsync(); | PlexAPI.Models.Errors.GetUpdateStatusResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## CheckForUpdates Checking for updates @@ -51,14 +52,14 @@ Checking for updates ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", xPlexClientIdentifier: "Postman"); -var res = await sdk.Updater.CheckForUpdatesAsync(download: Download.One); +var res = await sdk.Updater.CheckForUpdatesAsync(download: PlexAPI.Models.Requests.Download.One); // handle response ``` @@ -69,10 +70,10 @@ var res = await sdk.Updater.CheckForUpdatesAsync(download: Download.One); | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | | `Download` | [Download](../../Models/Requests/Download.md) | :heavy_minus_sign: | Indicate that you want to start download any updates found. | 1 | - ### Response **[CheckForUpdatesResponse](../../Models/Requests/CheckForUpdatesResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -80,6 +81,7 @@ var res = await sdk.Updater.CheckForUpdatesAsync(download: Download.One); | PlexAPI.Models.Errors.CheckForUpdatesResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## ApplyUpdates Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed @@ -89,16 +91,16 @@ Note that these two parameters are effectively mutually exclusive. The `tonight` ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", xPlexClientIdentifier: "Postman"); var res = await sdk.Updater.ApplyUpdatesAsync( - tonight: Tonight.One, - skip: Skip.One); + tonight: PlexAPI.Models.Requests.Tonight.One, + skip: PlexAPI.Models.Requests.Skip.One); // handle response ``` @@ -110,10 +112,10 @@ var res = await sdk.Updater.ApplyUpdatesAsync( | `Tonight` | [Tonight](../../Models/Requests/Tonight.md) | :heavy_minus_sign: | Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install | 1 | | `Skip` | [Skip](../../Models/Requests/Skip.md) | :heavy_minus_sign: | Indicate that the latest version should be marked as skipped. The entry for this version will have the `state` set to `skipped`. | 1 | - ### Response **[ApplyUpdatesResponse](../../Models/Requests/ApplyUpdatesResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/user/README.md b/docs/sdks/user/README.md new file mode 100644 index 0000000..c1532c2 --- /dev/null +++ b/docs/sdks/user/README.md @@ -0,0 +1,53 @@ +# User +(*User*) + +## Overview + +API Calls that perform operations with Plex Media Server Users + + +### Available Operations + +* [PostUsersSigninData](#postuserssignindata) - Get User SignIn Data + +## PostUsersSigninData + +Sign in user with username and password and return user data with Plex authentication token + +### Example Usage + +```csharp +using PlexAPI; +using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; + +var sdk = new PlexAPISDK(xPlexClientIdentifier: "Postman"); + +var res = await sdk.User.PostUsersSigninDataAsync( + xPlexClientIdentifier: "Postman", + requestBody: new PostUsersSigninDataRequestBody() { + Login = "username@email.com", + Password = "password123", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `XPlexClientIdentifier` | *string* | :heavy_minus_sign: | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
| Postman | +| `RequestBody` | [PostUsersSigninDataRequestBody](../../Models/Requests/PostUsersSigninDataRequestBody.md) | :heavy_minus_sign: | Login credentials | | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | http://localhost:8080 | + +### Response + +**[PostUsersSigninDataResponse](../../Models/Requests/PostUsersSigninDataResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| PlexAPI.Models.Errors.PostUsersSigninDataResponseBody | 401 | application/json | +| PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/video/README.md b/docs/sdks/video/README.md index 61f7b36..5b19435 100644 --- a/docs/sdks/video/README.md +++ b/docs/sdks/video/README.md @@ -19,8 +19,8 @@ Get the timeline for a media item ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -50,10 +50,10 @@ var res = await sdk.Video.GetTimelineAsync(req); | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | | `request` | [GetTimelineRequest](../../Models/Requests/GetTimelineRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[GetTimelineResponse](../../Models/Requests/GetTimelineResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -61,6 +61,7 @@ var res = await sdk.Video.GetTimelineAsync(req); | PlexAPI.Models.Errors.GetTimelineResponseBody | 401 | application/json | | PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* | + ## StartUniversalTranscode Begin a Universal Transcode Session @@ -69,8 +70,8 @@ Begin a Universal Transcode Session ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -106,10 +107,10 @@ var res = await sdk.Video.StartUniversalTranscodeAsync(req); | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | | `request` | [StartUniversalTranscodeRequest](../../Models/Requests/StartUniversalTranscodeRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[StartUniversalTranscodeResponse](../../Models/Requests/StartUniversalTranscodeResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/watchlist/README.md b/docs/sdks/watchlist/README.md index 3e86a52..5453e72 100644 --- a/docs/sdks/watchlist/README.md +++ b/docs/sdks/watchlist/README.md @@ -18,8 +18,8 @@ Get User Watchlist ```csharp using PlexAPI; -using PlexAPI.Models.Components; using PlexAPI.Models.Requests; +using PlexAPI.Models.Components; var sdk = new PlexAPISDK( accessToken: "", @@ -42,10 +42,10 @@ var res = await sdk.Watchlist.GetWatchlistAsync(req); | `request` | [GetWatchlistRequest](../../Models/Requests/GetWatchlistRequest.md) | :heavy_check_mark: | The request object to use for the request. | | `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | - ### Response **[GetWatchlistResponse](../../Models/Requests/GetWatchlistResponse.md)** + ### Errors | Error Object | Status Code | Content Type |