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

import * as z from "zod/v3";

export type DeleteByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequest =
  {
    /**
     * Single Docker repository team slug component.
     */
    teamSlug: string;
    /**
     * Single Docker repository project slug component.
     */
    projectSlug: string;
    /**
     * Single Docker repository name component.
     */
    repositoryName: string;
    /**
     * Content-addressable digest (algorithm:hex).
     */
    digest: string;
  };

/** @internal */
export type DeleteByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequest$Outbound =
  {
    teamSlug: string;
    projectSlug: string;
    repositoryName: string;
    digest: string;
  };

/** @internal */
export const DeleteByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequest$outboundSchema:
  z.ZodType<
    DeleteByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequest$Outbound,
    z.ZodTypeDef,
    DeleteByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequest
  > = z.object({
    teamSlug: z.string(),
    projectSlug: z.string(),
    repositoryName: z.string(),
    digest: z.string(),
  });

export function deleteByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequestToJSON(
  deleteByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequest:
    DeleteByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequest,
): string {
  return JSON.stringify(
    DeleteByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequest$outboundSchema
      .parse(deleteByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequest),
  );
}
