/* * 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 GetContextResponseDto = { /** * Context type (e.g., tenant, app, workspace) */ type: string; /** * Unique identifier for this context */ id: string; /** * Custom data associated with this context */ data: { [k: string]: any }; /** * Creation timestamp */ createdAt: string; /** * Last update timestamp */ updatedAt: string; }; /** @internal */ export const GetContextResponseDto$inboundSchema: z.ZodType< GetContextResponseDto, z.ZodTypeDef, unknown > = z.object({ type: z.string(), id: z.string(), data: z.record(z.any()), createdAt: z.string(), updatedAt: z.string(), }); export function getContextResponseDtoFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => GetContextResponseDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetContextResponseDto' from JSON`, ); }