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.474.0
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
import { PlexAPICore } from "../core.js";
|
||||
import { encodeFormQuery } from "../lib/encodings.js";
|
||||
import * as M from "../lib/matchers.js";
|
||||
import { compactMap } from "../lib/primitives.js";
|
||||
import { safeParse } from "../lib/schemas.js";
|
||||
import { RequestOptions } from "../lib/sdks.js";
|
||||
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
||||
@@ -68,9 +69,9 @@ export async function statisticsGetBandwidthStatistics(
|
||||
"timespan": payload.timespan,
|
||||
});
|
||||
|
||||
const headers = new Headers({
|
||||
const headers = new Headers(compactMap({
|
||||
Accept: "application/json",
|
||||
});
|
||||
}));
|
||||
|
||||
const secConfig = await extractSecurity(client._options.accessToken);
|
||||
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
||||
@@ -140,7 +141,8 @@ export async function statisticsGetBandwidthStatistics(
|
||||
}),
|
||||
M.jsonErr(400, errors.GetBandwidthStatisticsBadRequest$inboundSchema),
|
||||
M.jsonErr(401, errors.GetBandwidthStatisticsUnauthorized$inboundSchema),
|
||||
M.fail(["4XX", "5XX"]),
|
||||
M.fail("4XX"),
|
||||
M.fail("5XX"),
|
||||
)(response, { extraFields: responseFields });
|
||||
if (!result.ok) {
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user