/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type DeleteTagRequest = { /** * The ID of the tag to delete. */ id: string; }; /** * The deleted tag ID. */ export type DeleteTagResponseBody = { /** * The ID of the deleted tag. */ id: string; }; /** @internal */ export type DeleteTagRequest$Outbound = { id: string; }; /** @internal */ export const DeleteTagRequest$outboundSchema: z.ZodType< DeleteTagRequest$Outbound, z.ZodTypeDef, DeleteTagRequest > = z.object({ id: z.string(), }); export function deleteTagRequestToJSON( deleteTagRequest: DeleteTagRequest, ): string { return JSON.stringify( DeleteTagRequest$outboundSchema.parse(deleteTagRequest), ); } /** @internal */ export const DeleteTagResponseBody$inboundSchema: z.ZodType< DeleteTagResponseBody, z.ZodTypeDef, unknown > = z.object({ id: z.string(), }); export function deleteTagResponseBodyFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeleteTagResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteTagResponseBody' from JSON`, ); }