Skip to main content

ZteraDB Wire Protocol Specification

Reference Documentation: Request, Response, and Query Type Registries

This document specifies the official numeric opcodes used in the ZteraDB binary wire protocol. These constants facilitate connection negotiation, schema management, multi-tenant administrative routing, access control enforcement, and CRUD data execution patterns.


1. Request Types (Client-to-Server)

Request codes represent specific actions initiated by a client connection. OpCodes are structurally partitioned by their functional domains.

Connection & Basic Operations

ConstantHex ValueDecimalDescription
NONE0x00000No operation / Placeholder state
CONNECT0x00011Initiates client session handshake
DISCONNECT0x00022Gracefully terminates client connection
QUERY0x00055Executes a data query command string
PING0x00077Session heartbeat check

Schema Management

ConstantHex ValueDecimalDescription
CREATE_SCHEMA0x0221545Registers a new structural schema
PUBLISH_SCHEMA0x0222546Commits and freezes a schema version
SCHEMA0x0223547Retrieves comprehensive schema metadata
SCHEMA_FIELDS0x0224548Fetches field mapping attributes
SCHEMA_RELATED0x0225549Resolves structural schema dependencies
SCHEMA_ACCESS0x0226550Manages structural permission mappings

Database Administration

ConstantHex ValueDecimalDescription
DATABASE0x0227551Database instance cataloging request
ACTIVE_DATABASE0x0228552Retrieves/mutates active session context
DATABASE_ACCESS0x0229553Modifies database boundaries access controls

Identity & Access Management (IAM)

ConstantHex ValueDecimalDescription
ENTERPRISE_USER0x0230560Performs user account administration
ROLE0x0231561RBAC configuration and mutation
ACCESS_CONTROL0x0232562Granular system resource control lists
CREDENTIALS0x0237567Rotates or alters cryptographic secret tokens
USER_PROFILE0x0238568Fetches current user metadata constraints
MFA0x0243579Multi-Factor authentication checks

Instance & Orchestration Nodes

ConstantHex ValueDecimalDescription
ZTERADB_ENTERPRISE_INSTANCE_GROUP0x0235565Orchestrates topology node groups
ENTERPRISE_INSTANCE0x0236566Global topology configuration request

Logging, KPIs & System Utilities

ConstantHex ValueDecimalDescription
ISSUE_TRACKER0x0239569Registers or fetches diagnostic tracking bugs
ISSUE_TRACKER_COMMENT0x0240576Appends comments to diagnostic issue tickets
ISSUE_TRACKER_CLUSTER0x0241577Links issue records to multi-node clusters
DOWNLOAD_PACKAGE0x0242578Requests platform binaries download payload
AUDITLOG0x0244580Queries immutable compliance history logs
KPI0x0245581Streams metric vectors for system instrumentation

2. Response Types (Server-to-Client)

Response codes classify operation success alongside network, authorization, or internal runtime failure boundaries.

Success Responses (2xx and lower)

ConstantHex ValueDecimalDescription
NONE0x00000Null placeholder payload
CONNECTED0x00022Handshake successfully negotiated
QUERY_DATA0x00077Emits relational record data batch
PONG0x001016Responds directly to alive validation ping
CREATE_SCHEMA_SUCCESS0x0201513Schema storage verified
PUBLISH_SCHEMA_SUCCESS0x0202514Schema publication verified
QUERY_COMPLETE0x06081544All stream query outputs finished

Client-Side Error Responses (4xx series)

ConstantHex ValueDecimalDescription
DISCONNECT0x04001024Connection closed by client-side event / Force disconnect
NO_ACCESS0x04001024Permission denied / RBAC security challenge rejected
TOKEN_EXPIRED0x04011025Session authorization / Token expired
QUERY_PARSE_ERROR0x04201056Malformed payload query block structure / Syntax error
INVALID_SCHEMA0x04211057Supplied schema structural validation failed
FIELD_ERROR0x04221058Out of bounds properties array mapping / Field error

Server-Side Error Responses (5xx series)

ConstantHex ValueDecimalDescription
CONNECT_ERROR0x05001280Inbound system networking context exception
DISCONNECT_ERROR0x05011281Resource leak during clean session closing
CLIENT_AUTH_ERROR0x05021282Internal cryptographic parsing bottleneck
QUERY_ERROR0x05201312Engine database structural processing fault
CREATE_SCHEMA_ERROR0x05211313Storage subsystem write configuration drop
PUBLISH_SCHEMA_ERROR0x05221314Cluster replication synchronization failure

3. Query Mutation Types

When the client initiates a request type of QUERY (0x0005), the parsing framework evaluates the query block context header via the following internal operational parameters mapping to structural CRUD data state mutations:

OperationHex ValueDecimal ValueCRUD MappingTechnical Behavior Description
INSERT0x00011CREATEInserts / Appends new data records into the schema
SELECT0x00022READRetrieves / Fetches filtered or complete data records from the schema
UPDATE0x00033UPDATEUpdates / Modifies existing data records within the schema
DELETE0x00044DELETEPurges / Removes specific data records from the schema