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

import * as z from "zod/v3";

export type GetByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequest = {
  /**
   * 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 GetByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequest$Outbound =
  {
    teamSlug: string;
    projectSlug: string;
    repositoryName: string;
    digest: string;
  };

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

export function getByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequestToJSON(
  getByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequest:
    GetByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequest,
): string {
  return JSON.stringify(
    GetByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequest$outboundSchema
      .parse(getByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequest),
  );
}
