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

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

export type GetCampaignStatusByIdV1ObservabilityCampaignsCampaignIdStatusGetRequest =
  {
    campaignId: string;
  };

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

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

export function getCampaignStatusByIdV1ObservabilityCampaignsCampaignIdStatusGetRequestToJSON(
  getCampaignStatusByIdV1ObservabilityCampaignsCampaignIdStatusGetRequest:
    GetCampaignStatusByIdV1ObservabilityCampaignsCampaignIdStatusGetRequest,
): string {
  return JSON.stringify(
    GetCampaignStatusByIdV1ObservabilityCampaignsCampaignIdStatusGetRequest$outboundSchema
      .parse(
        getCampaignStatusByIdV1ObservabilityCampaignsCampaignIdStatusGetRequest,
      ),
  );
}
