🚀 Socket Launch Week Day 4:Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection.Learn more
Sign In

@prisma-next/contract-authoring

Package Overview
Dependencies
Maintainers
3
Versions
961
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prisma-next/contract-authoring

Target-agnostic authored storage descriptor types for Prisma Next

latest
Source
npmnpm
Version
0.14.0
Version published
Weekly downloads
15K
-8.88%
Maintainers
3
Weekly downloads
 
Created
Source

@prisma-next/contract-authoring

Status: Shared descriptor types for family-specific contract authoring

This package holds the small, target-neutral descriptor vocabulary shared by Prisma Next authoring surfaces, targets, extensions, and ID helpers.

Overview

@prisma-next/contract-authoring is not the active TypeScript contract DSL. It exists to give multiple packages a common way to describe authored storage details without depending on SQL-specific packages.

Responsibilities

  • Index descriptors: IndexDef captures index column lists plus optional name, using, and config
  • Foreign key defaults: ForeignKeyDefaultsState captures default FK materialization choices shared by authoring surfaces
  • Shared authoring vocabulary: Gives target-family packages such as @prisma-next/sql-contract-ts a target-neutral descriptor layer

ColumnTypeDescriptor lives in @prisma-next/framework-components/codec alongside the codec types.

Package Status

This package is the extracted shared descriptor layer from the contract authoring split. The current SQL TypeScript authoring implementation lives in @prisma-next/sql-contract-ts.

Architecture

  • No builders or lowering: This package does not own defineContract, field, model, rel, or any lowering pipeline
  • No target-specific logic: It must remain target-family agnostic and cannot import from @prisma-next/sql-* or other family-specific modules
  • Shared by multiple layers: SQL authoring, target packs, extension packs, and ID helpers all consume these types

Dependencies

  • Runtime dependencies: none

Exports

  • IndexDef
  • ForeignKeyDefaultsState

Usage

This package is intended for internal composition. End-user contract authoring code should import from the family-specific surface, such as @prisma-next/sql-contract-ts, rather than from this package directly.

See Also

  • @prisma-next/sql-contract-ts - SQL TypeScript contract authoring surface

FAQs

Package last updated on 18 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts