mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 04:20:46 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.456.1
This commit is contained in:
@@ -48,8 +48,8 @@ export async function libraryGetTopWatchedContent(
|
||||
>
|
||||
> {
|
||||
const input: operations.GetTopWatchedContentRequest = {
|
||||
includeGuids: includeGuids,
|
||||
type: type,
|
||||
includeGuids: includeGuids,
|
||||
};
|
||||
|
||||
const parsed = safeParse(
|
||||
@@ -77,16 +77,25 @@ export async function libraryGetTopWatchedContent(
|
||||
|
||||
const secConfig = await extractSecurity(client._options.accessToken);
|
||||
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
||||
const requestSecurity = resolveGlobalSecurity(securityInput);
|
||||
|
||||
const context = {
|
||||
operationID: "getTopWatchedContent",
|
||||
oAuth2Scopes: [],
|
||||
|
||||
resolvedSecurity: requestSecurity,
|
||||
|
||||
securitySource: client._options.accessToken,
|
||||
retryConfig: options?.retries
|
||||
|| client._options.retryConfig
|
||||
|| { strategy: "none" },
|
||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||
};
|
||||
const requestSecurity = resolveGlobalSecurity(securityInput);
|
||||
|
||||
const requestRes = client._createRequest(context, {
|
||||
security: requestSecurity,
|
||||
method: "GET",
|
||||
baseURL: options?.serverURL,
|
||||
path: path,
|
||||
headers: headers,
|
||||
query: query,
|
||||
@@ -101,9 +110,8 @@ export async function libraryGetTopWatchedContent(
|
||||
const doResult = await client._do(req, {
|
||||
context,
|
||||
errorCodes: ["400", "401", "4XX", "5XX"],
|
||||
retryConfig: options?.retries
|
||||
|| client._options.retryConfig,
|
||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||
retryConfig: context.retryConfig,
|
||||
retryCodes: context.retryCodes,
|
||||
});
|
||||
if (!doResult.ok) {
|
||||
return doResult;
|
||||
|
||||
Reference in New Issue
Block a user