Skip to content

Latest commit

 

History

History
46 lines (27 loc) · 1.22 KB

File metadata and controls

46 lines (27 loc) · 1.22 KB
title Environment Artifact
description Environment Artifact protocol schemas

{/* ⚠️ AUTO-GENERATED — DO NOT EDIT. Run build-docs.ts to regenerate. Hand-written docs live in the module folders under content/docs/. */}

Environment Artifact Envelope — re-export (#4740, #4535 C10)

The envelope has exactly ONE declaration:

../system/environment-artifact.zod (maintainer route A′ on #4740 —

./system holds the live wire shape, ./cloud re-exports it). Importing

from @objectstack/spec/cloud and @objectstack/spec/system yields the

SAME symbols, so the import path can never change the shape a consumer

gets (the #4411 dual-source trap, closed for this name).

Do NOT re-declare the envelope here. A second declaration under this name

is exactly what check:dual-source-exports and the symbol-identity pin in

../system/environment-artifact.test.ts exist to reject.

**Source:** `packages/spec/src/cloud/environment-artifact.zod.ts`

TypeScript Usage

import { Sha256DigestSchema } from '@objectstack/spec/cloud';
import type { Sha256Digest } from '@objectstack/spec/cloud';

// Validate data
const result = Sha256DigestSchema.parse(data);