@kanonak-protocol/types
v1.9.0
Published
Auto-generated TypeScript type definitions and interfaces for Kanonak Protocol (types-only package)
Downloads
1,253
Maintainers
Readme
@kanonak-protocol/types
TypeScript type definitions and interfaces for Kanonak Protocol.
This package provides the type contracts used by @kanonak-protocol/sdk and @kanonak-protocol/cli. It is auto-generated from the C# source of truth and should not be edited manually.
Installation
npm install @kanonak-protocol/typesWhat's included
- Document types —
KanonakDocument,KanonakMetadata,Namespace,Import,Version - Object types —
Kanonak,SubjectKanonak,EmbeddedKanonak,ReferenceKanonak - Statement types —
IStatement,ScalarStatement,ReferenceStatement,EmbeddedStatement - Validation types —
IDocumentValidationRule,IRepositoryValidationRule - Registry types — OAuth, credential store, and publisher configuration interfaces
- CTL types — Kanonak Template Language document and resolution types
Usage
Most consumers should use @kanonak-protocol/sdk which re-exports these types along with implementations. Use this package directly only if you need the type definitions without the runtime code.
import type { KanonakDocument, Import } from '@kanonak-protocol/types/document/models/types';
import type { SubjectKanonak } from '@kanonak-protocol/types/object/kanonaks/types';License
Apache-2.0
