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

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

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

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

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

export function postDatasetImportFromPlaygroundInSchemaToJSON(
  postDatasetImportFromPlaygroundInSchema:
    PostDatasetImportFromPlaygroundInSchema,
): string {
  return JSON.stringify(
    PostDatasetImportFromPlaygroundInSchema$outboundSchema.parse(
      postDatasetImportFromPlaygroundInSchema,
    ),
  );
}
