/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdk-validation-error.js"; export type DeleteProjectRequest = { /** * The ID of the project. */ id: string; }; /** * Project deleted successfully */ export type DeleteProjectResponse = { /** * Whether the project was deleted. */ deleted: boolean; /** * The ID of the project. */ id: string; }; /** @internal */ export type DeleteProjectRequest$Outbound = { id: string; }; /** @internal */ export const DeleteProjectRequest$outboundSchema: z.ZodMiniType< DeleteProjectRequest$Outbound, DeleteProjectRequest > = z.object({ id: z.string(), }); export function deleteProjectRequestToJSON( deleteProjectRequest: DeleteProjectRequest, ): string { return JSON.stringify( DeleteProjectRequest$outboundSchema.parse(deleteProjectRequest), ); } /** @internal */ export const DeleteProjectResponse$inboundSchema: z.ZodMiniType< DeleteProjectResponse, unknown > = z.object({ deleted: types.boolean(), id: types.string(), }); export function deleteProjectResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeleteProjectResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteProjectResponse' from JSON`, ); }