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

import * as z from "zod/v3";

export type ReadPrivateLinkEndpointRequest = {
  /**
   * The project ID the PrivateLink endpoint belongs to.
   */
  projectId: string;
  /**
   * The unique identifier of the PrivateLink endpoint.
   */
  endpointId: string;
  /**
   * The Team identifier to perform the request on behalf of.
   */
  teamId?: string | undefined;
  /**
   * The Team slug to perform the request on behalf of.
   */
  slug?: string | undefined;
};

/** @internal */
export type ReadPrivateLinkEndpointRequest$Outbound = {
  projectId: string;
  endpointId: string;
  teamId?: string | undefined;
  slug?: string | undefined;
};

/** @internal */
export const ReadPrivateLinkEndpointRequest$outboundSchema: z.ZodType<
  ReadPrivateLinkEndpointRequest$Outbound,
  z.ZodTypeDef,
  ReadPrivateLinkEndpointRequest
> = z.object({
  projectId: z.string(),
  endpointId: z.string(),
  teamId: z.string().optional(),
  slug: z.string().optional(),
});

export function readPrivateLinkEndpointRequestToJSON(
  readPrivateLinkEndpointRequest: ReadPrivateLinkEndpointRequest,
): string {
  return JSON.stringify(
    ReadPrivateLinkEndpointRequest$outboundSchema.parse(
      readPrivateLinkEndpointRequest,
    ),
  );
}
