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

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

export type ConnectorDeleteOrganizationCredentialsV1Request = {
  credentialsName: string;
  connectorIdOrName: string;
};

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

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

export function connectorDeleteOrganizationCredentialsV1RequestToJSON(
  connectorDeleteOrganizationCredentialsV1Request:
    ConnectorDeleteOrganizationCredentialsV1Request,
): string {
  return JSON.stringify(
    ConnectorDeleteOrganizationCredentialsV1Request$outboundSchema.parse(
      connectorDeleteOrganizationCredentialsV1Request,
    ),
  );
}
