/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */

import * as z from "zod/v3";
import { remap as remap$ } from "../../lib/primitives.js";

export type AgentsApiV1ConversationsHistoryRequest = {
  /**
   * ID of the conversation from which we are fetching entries.
   */
  conversationId: string;
};

/** @internal */
export type AgentsApiV1ConversationsHistoryRequest$Outbound = {
  conversation_id: string;
};

/** @internal */
export const AgentsApiV1ConversationsHistoryRequest$outboundSchema: z.ZodType<
  AgentsApiV1ConversationsHistoryRequest$Outbound,
  z.ZodTypeDef,
  AgentsApiV1ConversationsHistoryRequest
> = z.object({
  conversationId: z.string(),
}).transform((v) => {
  return remap$(v, {
    conversationId: "conversation_id",
  });
});

export function agentsApiV1ConversationsHistoryRequestToJSON(
  agentsApiV1ConversationsHistoryRequest:
    AgentsApiV1ConversationsHistoryRequest,
): string {
  return JSON.stringify(
    AgentsApiV1ConversationsHistoryRequest$outboundSchema.parse(
      agentsApiV1ConversationsHistoryRequest,
    ),
  );
}
