New:Socket for Asana Is Now Available.Learn more
Get Started

@prisma-next/contract-authoring

Package Overview
Dependencies
Maintainers
4
Versions
1106
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

dev
Source
npmnpm
Version
0.16.0-dev.35
Version published
Maintainers
4
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 24 Aug 2026

Related posts