Reference

SDK Packages

Reference for Kinotic TypeScript SDK packages.

Overview

The Kinotic TypeScript SDK is organized into several packages, each providing a focused set of functionality. All packages are published under the @kinotic-ai scope.


@kinotic-ai/core

Core connectivity, service proxying, events, and CRUD abstractions. This is the foundation package required by all Kinotic applications.

Key Exports

ExportDescription
KinoticMain entry point for connecting to a Kinotic server
ConnectionInfoConnection configuration (host, port, headers)
ConnectedInfoInformation about the established connection
IServiceRegistryInterface for the service registry
ServiceRegistryService registry implementation
IEventBusInterface for the event bus
EventBusEvent bus implementation
CRIKinotic Resource Identifier interface
createCRIFactory function for creating CRI instances
CrudServiceProxyGeneric CRUD service proxy
ICrudServiceProxyCRUD service proxy interface
PagePaginated result container
PageablePagination request parameters
IterablePageAsync-iterable page for streaming results
SortSort configuration for queries
KinoticErrorBase error class
AuthenticationErrorAuthentication failure error
AuthorizationErrorAuthorization failure error

Decorators

DecoratorDescription
@Publish(namespace, name?)Publish a class as a remote service
@Version(version)Set semantic version for a service
@ScopeMark a property as the service scope
@Context()Inject request context into a method parameter
@AbacPolicy(expression)ABAC policy for service method authorization

@kinotic-ai/persistence

Entity persistence layer for defining, syncing, and interacting with Elasticsearch-backed entities.

Key Exports

ExportDescription
PersistencePluginPlugin to register with Kinotic for persistence support
IEntityServiceInterface for entity CRUD operations
IAdminEntityServiceInterface for admin-level entity operations
IEntitiesServiceInterface for managing entity definitions
IAdminEntitiesServiceInterface for admin entity definition management
QueryParameterQuery parameter for named queries
QueryOptionsOptions for query execution
MultiTenancyTypeEnum: NONE, SHARED, DEDICATED
EntityTypeEnum: TABLE, DATA_STREAM
PrecisionTypeEnum: INT, SHORT, LONG, FLOAT, DOUBLE

Entity Decorators

DecoratorDescription
@Entity(multiTenancyType?, entityType?)Mark a class as a persisted entity
@EntityServiceDecorators(config)Configure per-operation decorators
@AutoGeneratedIdServer-generated ID field
@IdManually-assigned ID field
@NotNullRequired field
@TextFull-text search indexing
@Precision(PrecisionType)Numeric precision
@NotIndexedExclude from indexing
@FlattenedFlattened object mapping
@NestedNested object mapping
@Discriminator(propertyName)Polymorphic type discriminator
@TenantIdTenant identifier field
@VersionOptimistic locking
@TimeReferenceTime reference for data streams
@Query(statement)Named query definition

Policy Factory Functions

FunctionDescription
$AbacPolicy(expression)ABAC policy for entity operations
$Policy(policies)Policy rules matrix
$Role(roles)Role-based access

@kinotic-ai/os-api

Platform-level management APIs for interacting with Kinotic OS services like application management, project management, and migrations.

Key Exports

ExportDescription
OsApiPluginPlugin to register with Kinotic for OS API access
IApplicationServiceApplication CRUD operations
IProjectServiceProject management operations
IMigrationServiceMigration execution and management
IEntityDefinitionServiceEntity definition management
INamedQueriesDefinitionServiceNamed queries definition management
IDataInsightsServiceData insights and analytics
ILogManagerLog level management
LogManagerLog manager implementation
ApplicationApplication model
ProjectProject model
ProjectTypeProject type enum
EntityDefinitionEntity definition model
MigrationDefinitionMigration definition model
MigrationRequestMigration execution request
MigrationResultMigration execution result

@kinotic-ai/idl

Interface Definition Language types used internally by the SDK for service and type definitions. Useful when building tooling or working with the Kinotic type system programmatically.

Key Exports

ExportDescription
C3TypeBase type in the Kinotic type hierarchy
ServiceDefinitionComplete definition of a published service
FunctionDefinitionDefinition of a service method

The IDL package provides the type system that powers code generation, entity synchronization, and service registration. Most application developers will not need to interact with this package directly.

Copyright © 2026