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

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

export type ImportDatasetFromCampaignRequest = {
  campaignId: string;
};

/** @internal */
export type ImportDatasetFromCampaignRequest$Outbound = {
  campaign_id: string;
};

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

export function importDatasetFromCampaignRequestToJSON(
  importDatasetFromCampaignRequest: ImportDatasetFromCampaignRequest,
): string {
  return JSON.stringify(
    ImportDatasetFromCampaignRequest$outboundSchema.parse(
      importDatasetFromCampaignRequest,
    ),
  );
}
