mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-11 04:20:58 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.456.1
This commit is contained in:
@@ -4,6 +4,9 @@
|
||||
|
||||
import * as z from "zod";
|
||||
import { remap as remap$ } from "../../../lib/primitives.js";
|
||||
import { safeParse } from "../../../lib/schemas.js";
|
||||
import { Result as SafeParseResult } from "../../types/fp.js";
|
||||
import { SDKValidationError } from "./sdkvalidationerror.js";
|
||||
|
||||
export type GetSessionsSessionsErrors = {
|
||||
code?: number | undefined;
|
||||
@@ -135,6 +138,24 @@ export namespace GetSessionsSessionsErrors$ {
|
||||
export type Outbound = GetSessionsSessionsErrors$Outbound;
|
||||
}
|
||||
|
||||
export function getSessionsSessionsErrorsToJSON(
|
||||
getSessionsSessionsErrors: GetSessionsSessionsErrors,
|
||||
): string {
|
||||
return JSON.stringify(
|
||||
GetSessionsSessionsErrors$outboundSchema.parse(getSessionsSessionsErrors),
|
||||
);
|
||||
}
|
||||
|
||||
export function getSessionsSessionsErrorsFromJSON(
|
||||
jsonString: string,
|
||||
): SafeParseResult<GetSessionsSessionsErrors, SDKValidationError> {
|
||||
return safeParse(
|
||||
jsonString,
|
||||
(x) => GetSessionsSessionsErrors$inboundSchema.parse(JSON.parse(x)),
|
||||
`Failed to parse 'GetSessionsSessionsErrors' from JSON`,
|
||||
);
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export const GetSessionsUnauthorized$inboundSchema: z.ZodType<
|
||||
GetSessionsUnauthorized,
|
||||
@@ -235,6 +256,24 @@ export namespace GetSessionsErrors$ {
|
||||
export type Outbound = GetSessionsErrors$Outbound;
|
||||
}
|
||||
|
||||
export function getSessionsErrorsToJSON(
|
||||
getSessionsErrors: GetSessionsErrors,
|
||||
): string {
|
||||
return JSON.stringify(
|
||||
GetSessionsErrors$outboundSchema.parse(getSessionsErrors),
|
||||
);
|
||||
}
|
||||
|
||||
export function getSessionsErrorsFromJSON(
|
||||
jsonString: string,
|
||||
): SafeParseResult<GetSessionsErrors, SDKValidationError> {
|
||||
return safeParse(
|
||||
jsonString,
|
||||
(x) => GetSessionsErrors$inboundSchema.parse(JSON.parse(x)),
|
||||
`Failed to parse 'GetSessionsErrors' from JSON`,
|
||||
);
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export const GetSessionsBadRequest$inboundSchema: z.ZodType<
|
||||
GetSessionsBadRequest,
|
||||
|
||||
Reference in New Issue
Block a user