/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { ClosedEnum } from "../types/enums.js"; export const VectorSearchRequestScope = { Global: "global", Local: "local", } as const; export type VectorSearchRequestScope = ClosedEnum< typeof VectorSearchRequestScope >; export type VectorSearchRequest = { query: string; queryEmbedding?: Array | undefined; agentWallet: string; userAddress?: string | undefined; threadId?: string | undefined; scope?: VectorSearchRequestScope | undefined; haiId?: string | undefined; filters?: { [k: string]: any } | undefined; limit?: number | undefined; threshold?: number | undefined; }; /** @internal */ export const VectorSearchRequestScope$outboundSchema: z.ZodMiniEnum< typeof VectorSearchRequestScope > = z.enum(VectorSearchRequestScope); /** @internal */ export type VectorSearchRequest$Outbound = { query: string; queryEmbedding?: Array | undefined; agentWallet: string; userAddress?: string | undefined; threadId?: string | undefined; scope?: string | undefined; haiId?: string | undefined; filters?: { [k: string]: any } | undefined; limit?: number | undefined; threshold?: number | undefined; }; /** @internal */ export const VectorSearchRequest$outboundSchema: z.ZodMiniType< VectorSearchRequest$Outbound, VectorSearchRequest > = z.object({ query: z.string(), queryEmbedding: z.optional(z.array(z.number())), agentWallet: z.string(), userAddress: z.optional(z.string()), threadId: z.optional(z.string()), scope: z.optional(VectorSearchRequestScope$outboundSchema), haiId: z.optional(z.string()), filters: z.optional(z.record(z.string(), z.any())), limit: z.optional(z.int()), threshold: z.optional(z.number()), }); export function vectorSearchRequestToJSON( vectorSearchRequest: VectorSearchRequest, ): string { return JSON.stringify( VectorSearchRequest$outboundSchema.parse(vectorSearchRequest), ); }