/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { lazySchema as lazySchema$, safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * A object containing a unique identifier for the resource that was created, updated, or deleted. */ export type UnifiedId = { /** * The unique identifier of the resource */ id: string; }; /** @internal */ export const UnifiedId$inboundSchema: z.ZodType< UnifiedId, z.ZodTypeDef, unknown > = /* @__PURE__ */ lazySchema$(() => z.object({ id: types.string(), }) ); export function unifiedIdFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => UnifiedId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UnifiedId' from JSON`, ); }