---
title: Environment Artifact
description: Environment Artifact protocol schemas
---

{/* ⚠️  AUTO-GENERATED — DO NOT EDIT. Run build-docs.ts to regenerate. Hand-written docs go in content/docs/guides/. */}

# Environment Artifact Envelope (M1)

Describes the response shape of `GET /api/v1/cloud/environments/:environmentId/artifact`

— the assembled artifact ObjectOS pulls from the control plane.

Distinct from the marketplace `PackageArtifactSchema` (a .tgz file listing).

This envelope wraps the compiled `ObjectStackDefinitionSchema` produced by

`objectstack compile` together with control-plane assigned identity

(`commitId`, `checksum`).

<Callout type="info">
**Source:** `packages/spec/src/cloud/environment-artifact.zod.ts`
</Callout>

## TypeScript Usage

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

// Validate data
const result = Sha256Digest.parse(data);
```

---


---

