ObjectStackObjectStack

Protocol Reference

Complete reference of all 139 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.

These reference pages are auto-generated from the Zod source files in packages/spec/src/. Run pnpm gen:docs to regenerate.

Quick Navigation

ModuleSchemasDescription
Data Protocol18Objects, Fields, Queries, Drivers (ObjectQL)
UI Protocol10Views, Apps, Dashboards, Reports, Actions (ObjectUI)
Kernel Protocol17Plugin Lifecycle, Manifests, Events, Service Registry
System Protocol22Logging, Jobs, Cache, Metrics, Notifications (ObjectOS)
AI Protocol13Agents, RAG, Models, Conversations, NLQ
API Protocol20REST, GraphQL, WebSocket, Batch, Discovery
Automation Protocol8Flows, Workflows, Approvals, Triggers, ETL
Security Protocol5Permissions, Policies, RLS, Sharing
Identity Protocol4Users, Organizations, Roles, SCIM
Hub Protocol9Marketplace, Plugin Registry, Tenancy, Licensing
Integration Protocol7Connectors, Message Queues, HTTP, Object Storage
Shared Protocol4HTTP, Identifiers, Mappings, Auth
QA Protocol1Test Suites and BDD Scenarios

Total: 139 Zod schemas (across 13 protocol modules + 1 root stack schema)


Data Protocol (ObjectQL)

Location: packages/spec/src/data/ Count: 18 schemas

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
datasource.zod.tsDatasourceSchemaData source connection configurations
analytics.zod.tsAnalyticsSchemaAnalytics definitions and aggregation
mapping.zod.tsFieldMappingSchemaField mapping configurations for data transformation
hook.zod.tsHookSchemaLifecycle hooks (before/after insert, update, delete)
data-engine.zod.tsDataEngineSchemaData engine configuration and capabilities
driver.zod.tsDriverSchemaGeneric database driver interface and capabilities
driver-sql.zod.tsSQLDriverSchemaSQL-specific driver configuration
driver-nosql.zod.tsNoSQLDriverSchemaNoSQL-specific driver configuration
document.zod.tsDocumentSchemaDocument-oriented data structures
external-lookup.zod.tsExternalLookupSchemaExternal data source lookup configurations
driver/postgres.zod.tsPostgresConfigSchemaPostgreSQL driver configuration
driver/mongo.zod.tsMongoConfigSchemaMongoDB driver configuration

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 schemas

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
chart.zod.tsChartSchemaChart definitions and configurations
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


Kernel Protocol

Location: packages/spec/src/kernel/ Count: 17 schemas

Defines the plugin architecture and kernel runtime.

FileSchemaPurpose
manifest.zod.tsManifestSchemaApplication/plugin manifest (objectstack.config.ts) with 7 package types
context.zod.tsKernelContextSchemaKernel execution context with user, org, tenant info
plugin.zod.tsPluginSchemaPlugin lifecycle and interface definitions
plugin-capability.zod.tsPluginCapabilitySchemaPlugin capability declarations
plugin-lifecycle-events.zod.tsPluginLifecycleEventsSchemaPlugin lifecycle event definitions
plugin-lifecycle-advanced.zod.tsPluginLifecycleAdvancedSchemaAdvanced lifecycle hooks
plugin-loading.zod.tsPluginLoadingSchemaPlugin loading and initialization
plugin-security-advanced.zod.tsPluginSecurityAdvancedSchemaPlugin security and sandboxing
plugin-structure.zod.tsPluginStructureSchemaPlugin file structure conventions
plugin-validator.zod.tsPluginValidatorSchemaPlugin validation rules
plugin-versioning.zod.tsPluginVersioningSchemaPlugin versioning and compatibility
service-registry.zod.tsServiceRegistrySchemaService discovery and registration
startup-orchestrator.zod.tsStartupOrchestratorSchemaSystem startup orchestration
events.zod.tsEventSchemaEvent bus and pub/sub patterns
feature.zod.tsFeatureFlagSchemaFeature flag definitions
metadata-loader.zod.tsMetadataLoaderSchemaMetadata loading configuration
package-registry.zod.tsPackageRegistrySchemaPackage registry and resolution

Learn more: Kernel Protocol Reference


System Protocol (ObjectOS)

Location: packages/spec/src/system/ Count: 22 schemas

Defines the "Runtime Environment" and platform capabilities.

FileSchemaPurpose
audit.zod.tsAuditEventSchemaAudit logging for compliance
auth-config.zod.tsAuthConfigSchemaAuthentication configuration
cache.zod.tsCacheSchemaCaching layer configuration
change-management.zod.tsChangeManagementSchemaChange tracking and deployment
collaboration.zod.tsCollaborationSchemaReal-time collaboration features
compliance.zod.tsComplianceSchemaCompliance and regulatory controls
encryption.zod.tsEncryptionSchemaEncryption and key management
http-server.zod.tsHTTPServerSchemaHTTP server configuration
job.zod.tsJobSchemaBackground job scheduling (cron, interval, delayed)
logging.zod.tsLoggingSchemaStructured logging configuration
masking.zod.tsMaskingSchemaData masking rules
message-queue.zod.tsMessageQueueSchemaMessage queue integration
metadata-persistence.zod.tsMetadataPersistenceSchemaMetadata storage and persistence
metrics.zod.tsMetricsSchemaApplication metrics and monitoring
migration.zod.tsMigrationSchemaData and schema migration
notification.zod.tsNotificationSchemaNotification service configuration
object-storage.zod.tsObjectStorageSchemaObject storage configuration
search-engine.zod.tsSearchEngineSchemaFull-text search configuration
service-registry.zod.tsServiceRegistrySchemaSystem service registry
tracing.zod.tsTracingSchemaDistributed tracing configuration
translation.zod.tsTranslationSchemai18n/l10n support
worker.zod.tsWorkerSchemaBackground worker configuration

Learn more: System Protocol Reference


AI Protocol

Location: packages/spec/src/ai/ Count: 13 schemas

Defines AI agent integration capabilities.

FileSchemaPurpose
agent.zod.tsAgentSchemaAI agent definitions and configurations
agent-action.zod.tsAgentActionSchemaActions that agents can perform
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
feedback-loop.zod.tsFeedbackLoopSchemaAI feedback loop and learning
devops-agent.zod.tsDevOpsAgentSchemaDevOps automation agents
plugin-development.zod.tsPluginDevelopmentSchemaAI-assisted plugin development
runtime-ops.zod.tsRuntimeOpsSchemaAI runtime operations and monitoring

Learn more: AI Protocol Reference


API Protocol

Location: packages/spec/src/api/ Count: 20 schemas

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
graphql.zod.tsGraphQLSchemaGraphQL API configuration
realtime.zod.tsRealtimeSchemaWebSocket/SSE real-time subscriptions
websocket.zod.tsWebSocketSchemaWebSocket protocol configuration
discovery.zod.tsDiscoverySchemaAPI discovery and introspection
batch.zod.tsBatchSchemaBatch API request processing
http-cache.zod.tsHTTPCacheSchemaHTTP caching strategies
errors.zod.tsErrorSchemaStandardized error responses
protocol.zod.tsProtocolSchemaAPI protocol definitions
rest-server.zod.tsRESTServerSchemaREST server configuration
auth.zod.tsAuthSchemaAPI authentication configuration
analytics.zod.tsAnalyticsSchemaAPI analytics and usage tracking
documentation.zod.tsDocumentationSchemaAPI documentation generation
hub.zod.tsHubSchemaAPI hub integration
metadata.zod.tsMetadataSchemaAPI metadata endpoints
registry.zod.tsRegistrySchemaAPI registry and versioning
storage.zod.tsStorageSchemaAPI-level storage operations

Learn more: API Protocol Reference


Automation Protocol

Location: packages/spec/src/automation/ Count: 8 schemas

Defines workflow automation and business process management.

FileSchemaPurpose
workflow.zod.tsWorkflowSchemaState machine and approval processes
flow.zod.tsFlowSchemaVisual logic orchestration (autolaunched, screen, schedule)
approval.zod.tsApprovalSchemaApproval process configuration
state-machine.zod.tsStateMachineSchemaState machine definitions
webhook.zod.tsWebhookSchemaWebhook definitions and handlers
etl.zod.tsETLSchemaExtract, transform, load pipelines
trigger-registry.zod.tsTriggerRegistrySchemaEvent-driven automation triggers
sync.zod.tsSyncSchemaData synchronization configurations

Learn more: Automation Protocol Reference


Security Protocol

Location: packages/spec/src/security/ Count: 5 schemas

Defines access control and security policies.

FileSchemaPurpose
permission.zod.tsPermissionSchemaPermission profiles and object-level CRUD access
policy.zod.tsPolicySchemaSecurity policy definitions
rls.zod.tsRLSSchemaRow-level security rules
sharing.zod.tsSharingSchemaSharing rules and access grants
territory.zod.tsTerritorySchemaTerritory-based access management

Learn more: Security Protocol Reference


Identity Protocol

Location: packages/spec/src/identity/ Count: 4 schemas

Defines user identity and organization management.

FileSchemaPurpose
identity.zod.tsIdentitySchemaUser identity and authentication profiles
organization.zod.tsOrganizationSchemaOrganization structures and hierarchies
role.zod.tsRoleSchemaRole definitions and hierarchies
scim.zod.tsSCIMSchemaSCIM 2.0 provisioning support

Learn more: Identity Protocol Reference


Hub Protocol

Location: packages/spec/src/hub/ Count: 9 schemas

Defines marketplace and multi-tenancy capabilities.

FileSchemaPurpose
marketplace.zod.tsMarketplaceSchemaPlugin marketplace configuration
plugin-registry.zod.tsPluginRegistrySchemaPlugin registry and versioning
plugin-security.zod.tsPluginSecuritySchemaPlugin security policies
composer.zod.tsComposerSchemaApplication composition tools
space.zod.tsSpaceSchemaWorkspace and environment management
tenant.zod.tsTenantSchemaMulti-tenancy configuration
license.zod.tsLicenseSchemaLicensing and entitlement management
hub-federation.zod.tsHubFederationSchemaHub federation and cross-instance communication
registry-config.zod.tsRegistryConfigSchemaRegistry configuration and settings

Learn more: Hub Protocol Reference


Integration Protocol

Location: packages/spec/src/integration/ Count: 7 schemas

Defines external system connectors and adapters.

FileSchemaPurpose
connector.zod.tsConnectorSchemaGeneric connector interface
connector/saas.zod.tsSaaSConnectorSchemaSaaS platform connectors (Salesforce, HubSpot, etc.)
connector/database.zod.tsDatabaseConnectorSchemaDatabase connection adapters
connector/file-storage.zod.tsFileStorageConnectorSchemaCloud storage connectors (S3, Azure Blob, etc.)
connector/message-queue.zod.tsMessageQueueConnectorSchemaMessage queue integrations (RabbitMQ, Kafka, etc.)
connector/github.zod.tsGitHubConnectorSchemaGitHub API integration
connector/vercel.zod.tsVercelConnectorSchemaVercel deployment integration

Learn more: Integration Protocol Reference


Shared Protocol

Location: packages/spec/src/shared/ Count: 4 schemas

Common utilities and identifiers shared across protocols.

FileSchemaPurpose
http.zod.tsHTTPSchemaHTTP request/response definitions
identifiers.zod.tsIdentifiersSchemaCommon identifier patterns (IDs, names, URIs)
mapping.zod.tsMappingSchemaGeneric mapping definitions
connector-auth.zod.tsConnectorAuthSchemaConnector authentication patterns

Learn more: Shared Protocol Reference


QA Protocol

Location: packages/spec/src/qa/ Count: 1 schema

Defines testing and quality assurance capabilities.

FileSchemaPurpose
testing.zod.tsTestSuiteSchemaTest suites, scenarios, steps, actions, and assertions

Key Features:

  • Declarative test definitions with setup/teardown
  • Action-based testing (create, update, delete, API calls)
  • Comprehensive assertion operators
  • Test context and variable capture between steps
  • Permission testing with user impersonation

Learn more: QA Protocol Reference


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

Usage

import { Data, UI, Automation, AI } from '@objectstack/spec';

// Runtime validation
import { ObjectSchema } from '@objectstack/spec/data';
const result = ObjectSchema.safeParse(objectDefinition);

Next Steps

On this page