/*
 * 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 AgentsApiV1ConversationsMessagesRequest = {
  /**
   * ID of the conversation from which we are fetching messages.
   */
  conversationId: string;
};

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

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

export function agentsApiV1ConversationsMessagesRequestToJSON(
  agentsApiV1ConversationsMessagesRequest:
    AgentsApiV1ConversationsMessagesRequest,
): string {
  return JSON.stringify(
    AgentsApiV1ConversationsMessagesRequest$outboundSchema.parse(
      agentsApiV1ConversationsMessagesRequest,
    ),
  );
}
