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

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

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

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

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

export function connectorDeleteUserCredentialsV1RequestToJSON(
  connectorDeleteUserCredentialsV1Request:
    ConnectorDeleteUserCredentialsV1Request,
): string {
  return JSON.stringify(
    ConnectorDeleteUserCredentialsV1Request$outboundSchema.parse(
      connectorDeleteUserCredentialsV1Request,
    ),
  );
}
