ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.456.1

This commit is contained in:
speakeasybot
2024-12-20 16:02:41 +00:00
parent c10e011a68
commit 4e989e0de3
305 changed files with 12286 additions and 2514 deletions

View File

@@ -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,