Skip to main content

type_bridge_contract/
lib.rs

1//! Versioned, binding-neutral contract primitives for TypeBridge.
2//!
3//! This public, release-lockstep supporting crate sits at the bottom of the
4//! workspace dependency graph. It deliberately contains no parser, query,
5//! migration, provider, or binding dependencies.
6
7#![deny(missing_docs)]
8
9/// Open capability identifiers and deterministic sets.
10pub mod capability;
11/// Canonical JSON encoding, decoding, and format versions.
12pub mod codec;
13/// Canonical TypeDB decimal parsing and comparison.
14pub mod decimal;
15/// Stable binding-neutral structured diagnostics.
16pub mod diagnostic;
17/// One parser per closed enum and the `unknown_enum_value` diagnostic.
18pub mod enum_spelling;
19/// Value-only typed provider failures.
20pub mod failure;
21/// Domain-separated fingerprint algorithms and values.
22pub mod fingerprint;
23/// Validated typed identifier primitives.
24pub mod id;
25/// Canonical codec structural limits.
26pub mod limits;
27/// Durable managed-scope identities, bindings, and profile fingerprints.
28pub mod managed_scope;
29/// Context-free canonical migration identities, fingerprints, and schema steps.
30pub mod migration;
31/// Canonical typed migration assertion syntax and fingerprints.
32pub mod migration_assertion;
33/// Closed binding-neutral migration backfill plans and fingerprints.
34pub mod migration_backfill;
35pub use migration_assertion::migration_assertion_capability_vocabulary;
36pub use query_plan::{query_given_rows_capability, query_plan_capability_vocabulary};
37mod migration_assertion_wire;
38/// Target-independent canonical generated-model records and ordered archives.
39pub mod projected_record;
40/// Binding-target configuration and reproducible projection fingerprints.
41pub mod projection;
42/// Fail-closed canonical wire decoding for runtime projections.
43pub mod projection_wire;
44/// Versioned schema identities, facts, provenance, and fingerprints.
45/// Reusable typed query plans and the first public V2 read vocabulary.
46pub mod query_plan;
47pub mod query_remote;
48/// Additive V2 remote envelopes and hydrated model-result evidence.
49pub mod query_remote_v2;
50/// Additive staged transaction envelopes and authenticated replies.
51pub mod query_remote_v3;
52pub mod reserved;
53
54mod query_invocation_wire;
55mod query_plan_wire;
56
57mod declared_schema_wire;
58pub mod schema;
59/// Trusted, reversible schema transitions over one durable managed scope.
60pub mod schema_delta;
61mod schema_delta_wire;
62/// Domain-safe schema fingerprint wrappers.
63pub mod schema_fingerprint;
64pub mod schema_lowering;
65/// Versioned in-memory diagnostics for binding-neutral SDK execution.
66pub mod sdk_diagnostic;
67/// Versioned server-semantic defaults shared by resolution and fingerprints.
68pub mod semantic_profile;
69/// The core batch split rule shared by every binding and the proxy.
70pub mod split;
71/// Canonical temporal component values.
72pub mod temporal;
73/// Domain-tagged canonical scalar, cardinality, and annotation values.
74pub mod value;