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.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 "../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`,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user