mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-09 20:47:47 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.300.0
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { remap as remap$ } from "../../lib/primitives";
|
||||
import * as z from "zod";
|
||||
|
||||
export type Errors = {
|
||||
@@ -56,19 +57,11 @@ export class GetServerCapabilitiesResponseBody extends Error {
|
||||
|
||||
/** @internal */
|
||||
export namespace Errors$ {
|
||||
export const inboundSchema: z.ZodType<Errors, z.ZodTypeDef, unknown> = z
|
||||
.object({
|
||||
code: z.number().optional(),
|
||||
message: z.string().optional(),
|
||||
status: z.number().optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
...(v.code === undefined ? null : { code: v.code }),
|
||||
...(v.message === undefined ? null : { message: v.message }),
|
||||
...(v.status === undefined ? null : { status: v.status }),
|
||||
};
|
||||
});
|
||||
export const inboundSchema: z.ZodType<Errors, z.ZodTypeDef, unknown> = z.object({
|
||||
code: z.number().optional(),
|
||||
message: z.string().optional(),
|
||||
status: z.number().optional(),
|
||||
});
|
||||
|
||||
export type Outbound = {
|
||||
code?: number | undefined;
|
||||
@@ -76,19 +69,11 @@ export namespace Errors$ {
|
||||
status?: number | undefined;
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Errors> = z
|
||||
.object({
|
||||
code: z.number().optional(),
|
||||
message: z.string().optional(),
|
||||
status: z.number().optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
...(v.code === undefined ? null : { code: v.code }),
|
||||
...(v.message === undefined ? null : { message: v.message }),
|
||||
...(v.status === undefined ? null : { status: v.status }),
|
||||
};
|
||||
});
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Errors> = z.object({
|
||||
code: z.number().optional(),
|
||||
message: z.string().optional(),
|
||||
status: z.number().optional(),
|
||||
});
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
@@ -103,10 +88,11 @@ export namespace GetServerCapabilitiesResponseBody$ {
|
||||
RawResponse: z.instanceof(Response).optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return new GetServerCapabilitiesResponseBody({
|
||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
||||
const remapped = remap$(v, {
|
||||
RawResponse: "rawResponse",
|
||||
});
|
||||
|
||||
return new GetServerCapabilitiesResponseBody(remapped);
|
||||
});
|
||||
|
||||
export type Outbound = {
|
||||
@@ -133,10 +119,9 @@ export namespace GetServerCapabilitiesResponseBody$ {
|
||||
.optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
||||
};
|
||||
return remap$(v, {
|
||||
rawResponse: "RawResponse",
|
||||
});
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user