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 "../errors/sdkvalidationerror.js";
export type StartAllTasksResponse = {
/**
@@ -75,3 +78,21 @@ export namespace StartAllTasksResponse$ {
/** @deprecated use `StartAllTasksResponse$Outbound` instead. */
export type Outbound = StartAllTasksResponse$Outbound;
}
export function startAllTasksResponseToJSON(
startAllTasksResponse: StartAllTasksResponse,
): string {
return JSON.stringify(
StartAllTasksResponse$outboundSchema.parse(startAllTasksResponse),
);
}
export function startAllTasksResponseFromJSON(
jsonString: string,
): SafeParseResult<StartAllTasksResponse, SDKValidationError> {
return safeParse(
jsonString,
(x) => StartAllTasksResponse$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'StartAllTasksResponse' from JSON`,
);
}