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

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

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

export function agentsApiV1ConversationsDeleteRequestToJSON(
  agentsApiV1ConversationsDeleteRequest: AgentsApiV1ConversationsDeleteRequest,
): string {
  return JSON.stringify(
    AgentsApiV1ConversationsDeleteRequest$outboundSchema.parse(
      agentsApiV1ConversationsDeleteRequest,
    ),
  );
}
