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

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

export type ConnectorGetAuthenticationMethodsV1Request = {
  connectorIdOrName: string;
};

/** @internal */
export type ConnectorGetAuthenticationMethodsV1Request$Outbound = {
  connector_id_or_name: string;
};

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

export function connectorGetAuthenticationMethodsV1RequestToJSON(
  connectorGetAuthenticationMethodsV1Request:
    ConnectorGetAuthenticationMethodsV1Request,
): string {
  return JSON.stringify(
    ConnectorGetAuthenticationMethodsV1Request$outboundSchema.parse(
      connectorGetAuthenticationMethodsV1Request,
    ),
  );
}
