/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; export type CreateContextRequestDto = { /** * Context type (e.g., tenant, app, workspace). Must be lowercase alphanumeric with optional separators. */ type: string; /** * Unique identifier for this context. Must be lowercase alphanumeric with optional separators. */ id: string; /** * Optional custom data to associate with this context. */ data?: { [k: string]: any } | undefined; }; /** @internal */ export type CreateContextRequestDto$Outbound = { type: string; id: string; data?: { [k: string]: any } | undefined; }; /** @internal */ export const CreateContextRequestDto$outboundSchema: z.ZodType< CreateContextRequestDto$Outbound, z.ZodTypeDef, CreateContextRequestDto > = z.object({ type: z.string(), id: z.string(), data: z.record(z.any()).optional(), }); export function createContextRequestDtoToJSON( createContextRequestDto: CreateContextRequestDto, ): string { return JSON.stringify( CreateContextRequestDto$outboundSchema.parse(createContextRequestDto), ); }