ObjectStackObjectStack Protocol

Protocol Reference

Complete reference of all 70 ObjectStack protocol specifications

Protocol Reference

This is the complete reference for all protocol specifications in the ObjectStack ecosystem. Each protocol is implemented as a Zod schema providing runtime validation and TypeScript type safety.

Quick Navigation

ModuleProtocolsDescription
Data Protocol8Core business logic and data modeling (ObjectQL)
UI Protocol10User interface definitions and interactions (ObjectUI)
System Protocol14Runtime environment and platform capabilities (ObjectOS)
AI Protocol8AI/ML integration and agent orchestration
API Protocol6Standardized API contracts and communication
Automation Protocol7Workflow automation and integration
Auth Protocol6Identity, authentication, and authorization
Permission Protocol4Access control and security policies
Hub Protocol5Marketplace and multi-tenancy
Shared Protocol1Common utilities and identifiers
Stack Protocol1Root stack definition

Total: 70 protocols


Data Protocol (ObjectQL)

Location: packages/spec/src/data/
Count: 8 protocols

Defines the "Shape of Data" and business logic.

FileSchemaPurpose
field.zod.tsFieldSchemaField definitions with 44 types (text, number, select, lookup, formula, vector, location, etc.)
object.zod.tsObjectSchemaObject/table definitions with fields, indexes, and capabilities
query.zod.tsQuerySchemaAbstract query AST supporting window functions, HAVING, DISTINCT, subqueries
validation.zod.tsValidationRuleSchemaValidation rules for data integrity
filter.zod.tsFilterSchemaQuery filtering and conditions
dataset.zod.tsDatasetSchemaDataset definitions for reporting and analytics
mapping.zod.tsFieldMappingSchemaField mapping configurations for data transformation
hook.zod.tsHookSchemaLifecycle hooks (before/after insert, update, delete)

Key Features:

  • 44 field types including AI/ML vectors and GPS locations
  • Advanced query capabilities (window functions, HAVING, DISTINCT, subqueries)
  • Validation rules and formulas
  • Lifecycle hooks for business logic

Learn more: ObjectQL Documentation


UI Protocol (ObjectUI)

Location: packages/spec/src/ui/
Count: 10 protocols

Defines the "Shape of Interaction" for rendering interfaces.

FileSchemaPurpose
view.zod.tsViewSchemaList views (grid, kanban, calendar, gantt) and form layouts
page.zod.tsPageSchemaFlexiPage layouts with regions and components
app.zod.tsAppSchemaApplication structure and navigation menus
dashboard.zod.tsDashboardSchemaDashboard layouts with grid-based widgets
report.zod.tsReportSchemaReport definitions (tabular, summary, matrix, chart)
action.zod.tsActionSchemaUI actions (buttons, scripts, URLs, flows)
component.zod.tsComponentSchemaReusable UI components
block.zod.tsBlockSchemaUI block definitions
theme.zod.tsThemeSchemaTheming (colors, typography, breakpoints, animations)
widget.zod.tsWidgetSchemaCustom field widgets with lifecycle hooks

Key Features:

  • Server-driven UI with multiple view types
  • Flexible page layouts with component regions
  • Rich dashboard and reporting capabilities
  • Comprehensive theming system

Learn more: ObjectUI Documentation


System Protocol (ObjectOS)

Location: packages/spec/src/system/
Count: 14 protocols

Defines the "Runtime Environment" and platform capabilities.

FileSchemaPurpose
manifest.zod.tsManifestSchemaApplication/plugin manifest (objectstack.config.ts) with 7 package types
datasource.zod.tsDatasourceSchemaData source connection configurations
driver.zod.tsDriverSchemaDatabase driver definitions and options
driver/postgres.zod.tsPostgresConfigSchemaPostgreSQL-specific driver configuration
driver/mongo.zod.tsMongoConfigSchemaMongoDB-specific driver configuration
plugin.zod.tsPluginSchemaPlugin lifecycle and interface definitions
context.zod.tsKernelContextSchemaKernel execution context with user, org, tenant info
events.zod.tsEventSchemaEvent bus and pub/sub patterns
job.zod.tsJobSchemaBackground job scheduling (cron, interval, delayed)
audit.zod.tsAuditEventSchemaAudit logging for compliance
logger.zod.tsLoggerConfigSchemaStructured logging configuration
translation.zod.tsTranslationSchemai18n/l10n support
feature.zod.tsFeatureFlagSchemaFeature flag definitions
scoped-storage.zod.tsScopedStorageSchemaScoped key-value storage

Package Types:

  • app - Business application package
  • plugin - General-purpose functionality extension
  • driver - Database/external service adapter
  • module - Reusable code library
  • objectql - Core data engine implementation
  • gateway - API protocol entry point (GraphQL, REST, RPC)
  • adapter - Runtime container (Express, Hono, Fastify, Serverless)

Learn more: ObjectOS Documentation


AI Protocol

Location: packages/spec/src/ai/
Count: 8 protocols

Defines AI agent integration capabilities.

FileSchemaPurpose
agent.zod.tsAgentSchemaAI agent definitions and configurations
model-registry.zod.tsModelRegistrySchemaLLM registry and selection
rag-pipeline.zod.tsRAGPipelineSchemaRetrieval-augmented generation
nlq.zod.tsNLQSchemaNatural language query processing (NL to ObjectQL)
conversation.zod.tsConversationSchemaConversation management and memory
cost.zod.tsCostTrackingSchemaAI cost tracking and budget management
predictive.zod.tsPredictiveModelSchemaPredictive analytics models
orchestration.zod.tsOrchestrationSchemaAI-powered workflow automation

Learn more: AI Protocol Reference


API Protocol

Location: packages/spec/src/api/
Count: 6 protocols

Defines standardized API contracts.

FileSchemaPurpose
contract.zod.tsAPIContractSchemaAPI endpoint definitions and specifications
endpoint.zod.tsEndpointSchemaREST endpoint definitions with rate limiting
router.zod.tsRouterSchemaAPI routing configuration
odata.zod.tsODataSchemaOData query protocol support
realtime.zod.tsRealtimeSchemaWebSocket/SSE real-time subscriptions
discovery.zod.tsDiscoverySchemaAPI discovery and introspection

Learn more: API Protocol Reference


Recent Additions (2026-01-27)

ObjectQL Advanced Features:

  • Window Functions - ROW_NUMBER, RANK, LAG, LEAD, and aggregate window functions
  • HAVING Clause - Filter aggregated results in GROUP BY queries
  • DISTINCT Queries - Full support for SELECT DISTINCT
  • Subqueries - Nested queries in JOIN clauses
  • Vector Field Type - AI/ML embeddings for semantic search and RAG workflows
  • Location Field Type - GPS coordinates for geospatial applications

Schema Conventions

All schemas follow these conventions:

Naming

  • Configuration Keys (TS Props): camelCase (e.g., maxLength, referenceFilters)
  • Machine Names (Data Values): snake_case (e.g., name: 'project_task', object: 'account')

Validation

  • All schemas use Zod for runtime validation
  • TypeScript types are inferred via z.infer<typeof Schema>
  • JSON schemas are auto-generated for IDE support

Documentation

  • Each schema includes comprehensive JSDoc comments
  • Examples are provided for complex configurations
  • Deprecated fields are marked with @deprecated

Next Steps

On this page