/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 7f01842972c6
 */

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

export type ImportDatasetFromPlaygroundRequest = {
  conversationIds: Array<string>;
};

/** @internal */
export type ImportDatasetFromPlaygroundRequest$Outbound = {
  conversation_ids: Array<string>;
};

/** @internal */
export const ImportDatasetFromPlaygroundRequest$outboundSchema: z.ZodType<
  ImportDatasetFromPlaygroundRequest$Outbound,
  ImportDatasetFromPlaygroundRequest
> = z.object({
  conversationIds: z.array(z.string()),
}).transform((v) => {
  return remap$(v, {
    conversationIds: "conversation_ids",
  });
});

export function importDatasetFromPlaygroundRequestToJSON(
  importDatasetFromPlaygroundRequest: ImportDatasetFromPlaygroundRequest,
): string {
  return JSON.stringify(
    ImportDatasetFromPlaygroundRequest$outboundSchema.parse(
      importDatasetFromPlaygroundRequest,
    ),
  );
}
