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

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

export type GetCampaignByIdV1ObservabilityCampaignsCampaignIdGetRequest = {
  campaignId: string;
};

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

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

export function getCampaignByIdV1ObservabilityCampaignsCampaignIdGetRequestToJSON(
  getCampaignByIdV1ObservabilityCampaignsCampaignIdGetRequest:
    GetCampaignByIdV1ObservabilityCampaignsCampaignIdGetRequest,
): string {
  return JSON.stringify(
    GetCampaignByIdV1ObservabilityCampaignsCampaignIdGetRequest$outboundSchema
      .parse(getCampaignByIdV1ObservabilityCampaignsCampaignIdGetRequest),
  );
}
