/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { ClosedEnum } from "../types/enums.js"; import { AgentMemoryTurnMessage, AgentMemoryTurnMessage$Outbound, AgentMemoryTurnMessage$outboundSchema, } from "./agent-memory-turn-message.js"; export const TranscriptIndexRequestScope = { Global: "global", Local: "local", } as const; export type TranscriptIndexRequestScope = ClosedEnum< typeof TranscriptIndexRequestScope >; export type TranscriptIndexRequest = { sessionId: string; threadId: string; agentWallet: string; userAddress?: string | undefined; scope?: TranscriptIndexRequestScope | undefined; haiId?: string | undefined; messages: Array; modelUsed?: string | undefined; model?: string | undefined; totalTokens?: number | undefined; tokenCount?: number | undefined; rememberWorkingMemory?: boolean | undefined; }; /** @internal */ export const TranscriptIndexRequestScope$outboundSchema: z.ZodMiniEnum< typeof TranscriptIndexRequestScope > = z.enum(TranscriptIndexRequestScope); /** @internal */ export type TranscriptIndexRequest$Outbound = { sessionId: string; threadId: string; agentWallet: string; userAddress?: string | undefined; scope?: string | undefined; haiId?: string | undefined; messages: Array; modelUsed?: string | undefined; model?: string | undefined; totalTokens?: number | undefined; tokenCount?: number | undefined; rememberWorkingMemory?: boolean | undefined; }; /** @internal */ export const TranscriptIndexRequest$outboundSchema: z.ZodMiniType< TranscriptIndexRequest$Outbound, TranscriptIndexRequest > = z.object({ sessionId: z.string(), threadId: z.string(), agentWallet: z.string(), userAddress: z.optional(z.string()), scope: z.optional(TranscriptIndexRequestScope$outboundSchema), haiId: z.optional(z.string()), messages: z.array(AgentMemoryTurnMessage$outboundSchema), modelUsed: z.optional(z.string()), model: z.optional(z.string()), totalTokens: z.optional(z.int()), tokenCount: z.optional(z.int()), rememberWorkingMemory: z.optional(z.boolean()), }); export function transcriptIndexRequestToJSON( transcriptIndexRequest: TranscriptIndexRequest, ): string { return JSON.stringify( TranscriptIndexRequest$outboundSchema.parse(transcriptIndexRequest), ); }