File size: 383 Bytes
7b8fb69
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import { z } from "zod";

/** Path embedded in every deployed Space image and checked by Hugging Face Jobs. */
export const DEPLOYMENT_MANIFEST_PATH = ".xtap-deployment.json";

export const deploymentManifestSchema = z
  .object({
    source_revision: z.string().regex(/^[0-9a-f]{40}$/u),
  })
  .strict();

export type DeploymentManifest = z.infer<typeof deploymentManifestSchema>;