/* * 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 AuditLogEntryResource = { /** * The type of the resource. */ type: string; /** * The ID of the resource. */ id: string; /** * The descriptive name of the resource. */ name: string; }; /** @internal */ export const AuditLogEntryResource$inboundSchema: z.ZodType< AuditLogEntryResource, z.ZodTypeDef, unknown > = z.object({ type: z.string(), id: z.string(), name: z.string(), }); export function auditLogEntryResourceFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => AuditLogEntryResource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AuditLogEntryResource' from JSON`, ); }