Expand description
Transport-agnostic models of the graph-storage contract.
These types cross three boundaries — the ClientHub trait, the REST DTO
layer (which owns all serde), and the plugin contracts — so they carry no
serde derives, no HTTP types and no database types. Payloads are arbitrary
GTS-validated JSON and travel as serde_json::Value.
Structs§
- Adjacency
Entry - One incident edge in a node read.
- ArmHit
- A hit’s per-arm provenance: which arm matched, at what rank and raw score.
- Component
Readiness - One row of the readiness matrix, as the endpoint reports it.
- Delete
Outcome - Outcome of a soft delete.
- EdgeRef
- A traversed edge reference.
- Edge
Spec - An edge submitted for ingest, addressed by its endpoint node keys.
- Edge
View - An edge as the edge read returns it.
- Effective
Traits - Trait values resolved across the whole derivation chain, stored with the registered type so batch validation never repeats the walk.
- Element
Envelope - The gear-assigned half of an element, identical for every node and every edge and described by the API schema rather than by the element’s GTS type – a producer can neither supply nor extend it, and a type registered statically in the types-registry has nothing to put in it.
- Embedding
Space Id - Full embedding-space identity. Two providers with the same dimension and different identities produce incomparable vectors, so the identity is more than a width.
- Engine
Capabilities - What an engine implementation provides beyond one-hop expansion.
- Graph
Revision - The snapshot identity every compound read observes and reports: the deployment-wide, non-reusable source epoch paired with the per-tenant monotonic revision.
- HopBudget
- Per-hop budget.
- Ingest
Counts - Aggregate counters of one committed batch.
- Ingest
Options - Per-request ingest options.
- Ingest
Outcome - Outcome of one ingest call.
- Ingest
Request - One atomic ingest batch.
- Item
Error - One per-item validation failure. A batch with any of these commits nothing.
- Label
Assignment - Label
Filter - Label filter placeholder (labels are not shipped in this iteration; the field exists so the plugin contract does not change when they are).
- Label
Record - Label
Spec - Migration
Spec - What to do with one type’s stored payloads so they satisfy the candidate.
- Neighborhood
Request - Bounded neighborhood projection request.
- Node
Query - Filterable-field schema of the node projection.
- NodeRow
- One row of the tabular projection.
- Node
Spec - A node submitted for ingest. An upsert replaces the row’s mutable state wholesale: a field the request omits is cleared, never preserved.
- Node
View - A node as read paths return it.
- Page
- A page of results with an opaque continuation token bound to the observed revision (Read Consistency Contract).
- Projection
Request - Tabular projection query.
- Read
Snapshot - Handle to one open compound-read snapshot. Opaque to callers; the store that issued it resolves it back to a live snapshot.
- Readiness
- What
GET /health/readyanswers. - Registered
Type - A registered type plus what this call did to it.
- Remaining
Budget - What is left of an operation’s absolute deadline — never a fresh timeout, so a slow earlier step shortens the next one rather than extending the total.
- Replace
Scope - Declarative scope replacement carried by an ingest batch.
- Revision
Outcome - Revision-only outcome for label mutations.
- Schema
Diagnostic - One reason a directional verdict does not hold, with the schema location
that carries it — so a refusal points at
$.payloadrather than saying “incompatible”. - Search
Hit - One fused search hit.
- Search
Request - One search request.
- Search
Response - Search response, revision-stamped like every compound read.
- Source
Namespace Owner - One source namespace and the producer principal bound to it.
- Store
Capabilities - What a store implementation provides. Anything absent is answered
Unsupported, never approximated. - Subject
- The party behind a write, in the platform’s own vocabulary rather than in
a vocabulary of this gear’s own:
SecurityContext’ssubject_idand optionalsubject_type. - Topology
Page - Topology
Request - Trait
Change - How one trait’s declared paths changed between the two definitions.
- Traversal
Response - Traversal / neighborhood response.
- Traverse
Request - Seeded, depth-bounded traversal request.
- Type
Change - The full verdict on one candidate: what the dry run reports and what a refusal explains itself with.
- Type
IdSet - A resolved set of registered types, the single representation on which a caller’s type filter and an authorizing permission’s pattern intersect.
- Type
Query - Filter for listing registered types.
- Type
Record - A registered type as the gear reports it.
- Type
Registration - One type submitted for registration.
- Type
Registration Options - Per-batch registration options.
- Unknown
Variant - A wire or storage string that names no variant of a closed enum.
Enums§
- Adjacency
Side - Edge incidence direction relative to a node.
- Admission
Basis - Why an update was admitted. Two grounds, never conflated in a report.
- Delete
Request - Soft-delete target.
- Direction
- Expansion direction.
Eitheris the union of the two directed scans in one semi-join — never the undirected pattern shorthand, which plans as an all-vertex probe. - Item
Family - Which collection an ingest item belongs to.
- Item
Outcome - Per-item outcome, reported when
options.report_per_itemis set. - Label
Applies To - Label
Target - Migration
Step - One step of a payload migration.
- Node
Filter Field - Node
Query Filter Field - OnExisting
- What a registration batch may do to an identifier that is already registered with a different schema.
- Readiness
State - The state of one capability (DESIGN § Readiness Matrix).
- Search
Arm - Which arm produced a hit.
- Search
Mode - Search mode. Hybrid runs both arms independently and fuses them with RRF.
- Truncation
Reason - Why an expansion or traversal stopped early. Never silent.
- Type
Change State - How the candidate stands against the registered definition.
- Type
Kind - Kind of a registrable GTS type.
- Type
Outcome - What one registration did.
Constants§
- AUTHZ
- DATABASE
- Matrix row names, spelled once so the endpoint and the documentation cannot drift apart.
- DYNAMIC_
INDEXES - EMBEDDING_
PROVIDER - EMBEDDING_
SPACE - GRAPH_
ENGINE - METRIC_
ANNOTATION - SQLPGQ
- TENANT_
RECONCILIATION - TYPES_
REGISTRY
Functions§
- canonical_
json - One rendering per JSON value, for everything in this contract that identifies something by hashing it.
Type Aliases§
- EdgeId
- Internal edge identity, with the same per-tenant caveat as
NodeId. - EdgeKey
- Deterministic edge key derived from (type, src, dst, discriminator).
- GtsType
Id - Canonical GTS type identifier (
gts.vendor.package._.type.v1~form). - LabelId
- Interned label identity.
- NodeId
- Internal node identity. Surrogate and per-tenant: two tenants may both own
a node
17, so it is never meaningful outside a tenant-scoped call. - NodeKey
- Producer-supplied stable node key, unique within a tenant.
- Tenant
Id - Tenant identity, as carried by the platform security context.