mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 12:37:46 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.390.7
This commit is contained in:
@@ -30,12 +30,13 @@ import { Result } from "../types/fp.js";
|
||||
*/
|
||||
export async function libraryGetTopWatchedContent(
|
||||
client$: PlexAPICore,
|
||||
type: number,
|
||||
type: models.GetTopWatchedContentQueryParamType,
|
||||
includeGuids?: number | undefined,
|
||||
options?: RequestOptions
|
||||
): Promise<
|
||||
Result<
|
||||
models.GetTopWatchedContentResponse,
|
||||
| models.GetTopWatchedContentLibraryResponseBody
|
||||
| SDKError
|
||||
| SDKValidationError
|
||||
| UnexpectedClientError
|
||||
@@ -101,7 +102,7 @@ export async function libraryGetTopWatchedContent(
|
||||
|
||||
const doResult = await client$.do$(request$, {
|
||||
context,
|
||||
errorCodes: ["4XX", "5XX"],
|
||||
errorCodes: ["400", "401", "4XX", "5XX"],
|
||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||
});
|
||||
@@ -119,6 +120,7 @@ export async function libraryGetTopWatchedContent(
|
||||
|
||||
const [result$] = await m$.match<
|
||||
models.GetTopWatchedContentResponse,
|
||||
| models.GetTopWatchedContentLibraryResponseBody
|
||||
| SDKError
|
||||
| SDKValidationError
|
||||
| UnexpectedClientError
|
||||
@@ -128,7 +130,8 @@ export async function libraryGetTopWatchedContent(
|
||||
| ConnectionError
|
||||
>(
|
||||
m$.json(200, models.GetTopWatchedContentResponse$inboundSchema, { key: "object" }),
|
||||
m$.fail(["4XX", "5XX"])
|
||||
m$.fail([400, "4XX", "5XX"]),
|
||||
m$.jsonErr(401, models.GetTopWatchedContentLibraryResponseBody$inboundSchema)
|
||||
)(response, { extraFields: responseFields$ });
|
||||
if (!result$.ok) {
|
||||
return result$;
|
||||
|
||||
Reference in New Issue
Block a user