Expand description
Typed public gRPC client for RiffDB.
This crate contains transport ergonomics only. Contract validation, authorization, idempotency, command execution, and durable recovery remain server-owned semantics.
Modules§
- app_v1
- Exact symbolic application wire types used by the typed transport client. Symbolic application API v1.
- generated
- Boundaries implemented by contract-generated ergonomic modules. Stable boundary for compiler-generated Rust command modules.
- v1
- Exact public wire types used by the typed transport client.
Structs§
- Application
Catalog Feature View - One checked symbolic application feature view.
- Application
Catalog Preflight - Checked feature-preflight result for one exact application contract.
- Application
Command - One symbolic command invocation with only name-addressed input.
- Application
Command Result - Successful command completion without kernel protocol details.
- Application
Contextual Batch - One bounded contextual pull.
- Application
Contextual Hydration - One freshly executed hydration in a contextual work item.
- Application
Contextual Reaction - One currently authorized declared reaction.
- Application
Contextual Work Item - One leased event with fresh same-snapshot context and authorized reactions.
- Application
Error - One fully checked bounded application-semantic failure.
- Application
Error Context - Bounded symbolic context for one application failure.
- Application
Event - Safe symbolic event selected by the compiled stream definition.
- Application
Event Batch - One bounded consumer response.
- Application
Event Consumer - Checked durable consumer identity including the bounded caller-owned name.
- Application
Event Consumer Status - Bounded durable consumer status.
- Application
Event Delivery - One attempt-specific leased event.
- Application
Event Id - Stable symbolic event identity.
- Application
Event Lease Evidence - Minimal exact evidence required to mutate one live event lease.
- Application
Event Progress Cursor - Opaque protected-consumer continuation. No event identity or checkpoint is recoverable from these bytes.
- Application
Event Response Stream - Stream of checked, application-safe durable consumer batches.
- Application
Export Operation Id - The caller-stable identifier of one symbolic application export.
- Application
Export Selection V1 - Exact caller-selected subset of one current V5 lineage grant.
- Application
Installation Campaign Id - The caller-stable identifier of one application installation campaign.
- Application
Live Query Stream - Stream of closed application-safe live-query updates.
- Application
Protected Event Consumer Status - Metadata-safe status for a row-policy-protected consumer.
- Application
Reactive Operation - Exact immutable reactive operation selected by generated code.
- Application
Record - One name-addressed returned record.
- Application
Result Field - One top-level query result field.
- Application
Session Configuration Error - Invalid local construction of one exact application-session identity.
- Application
Session Identity - Exact immutable application identity selected by one optional session.
- Application
Source Span - Checked half-open source span in submitted RiffQL.
- Application
Uuid - Canonical UUID value with lazy display text.
- Apply
Contract Migration - One immutable confirmed migration apply with caller-stable identity.
- Archive
Name V1 - A checked operator-configured archive name, never a filesystem path or URI.
- Attempt
Budget - A caller-selected nonzero bound on total transport submissions.
- Backup
Name V1 - A checked immutable backup name beneath the server-owned backup root.
- Bearer
Credential - One bounded POC capability bearer credential.
- Bootstrap
Call Metadata - Checked metadata available only to loopback bootstrap capability creation.
- Bootstrap
Capability Create Template - A checked immutable bootstrap capability-create operation.
- Bootstrap
Credential - One bounded credential for the loopback-only bootstrap call.
- Call
Metadata - Checked metadata applied consistently to one SDK call.
- Canonical
Vector - Freshness policy and commit token types used by projected queries. A validated, dimension-checked vector of f32 values in canonical form.
- Check
Contract Migration - One immutable read-only migration check with caller-stable identity.
- Commit
Notification Stream - A commit-notification stream decoded by the strict client codec.
- Commit
Sequence - A single-node application commit sequence.
- Commit
Token - Freshness policy and commit token types used by projected queries. An opaque, scoped commit identity used as a causal freshness fence.
- Contract
Migration Operation Id - The caller-stable identifier of one contract migration operation.
- Create
Offline Backup - One checked immutable offline-backup creation.
- Database
Alias - A canonical, non-secret database selector.
- Event
Consumer Options - Bounded pull/stream policy accepted by the public consumer service.
- Event
Consumer Response Stream - A durable event-consumer stream decoded by the strict client codec.
- Generated
Batch Item - One independently completed generated command at its stable input offset.
- Generated
Batch Options - Bounds for generated command batches.
- Generated
Batch Progress - Bounded progress safe to persist without command inputs or outcomes.
- Generated
Batch Result - Stable per-item generated batch result and resumable item checkpoint.
- Generated
Execution - A generated outcome together with its complete checked transport response.
- Idempotent
Command - One immutable idempotent command used by every automatic retry attempt.
- Live
Query Checkpoint - Live-query convergence frontier and reconnect cursor.
- Live
Query Cursor - Opaque consistency cursor safe to persist and return on reconnect.
- Live
Query Patch - One bounded keyed patch.
- Live
Query Terminal - Terminal live-query reason and last non-secret frontier.
- Live
Query Update Stream - A live named-query stream decoded by the strict client codec.
- Migration
Bundle Hash - The hash of one canonical compiled migration bundle.
- Named
Query - One named query invocation pinned optionally to an immutable module hash.
- Named
Query Result - Complete one-snapshot named query result.
- Normal
Capability Create Template - A checked immutable normal capability-create operation.
- Offline
Maintenance Operation Id - The caller-stable identifier of one offline maintenance operation.
- Outcome
Unknown - The public client’s explicit unresolved idempotent-operation disposition.
- Projected
Aggregate Group - One aggregate group: key cells and aggregate cells.
- Projected
Order - One sort key addressed by projected field name.
- Projected
Query - Typed projected-query request builder.
- Projected
Ready Row - One Ready projected row: select cells and primary-key components.
- Projection
Frontier - Freshness policy and commit token types used by projected queries. An opaque, scoped projection visibility frontier.
- Protocol
Failure - A bounded protocol failure containing no peer-provided text or bytes.
- Public
Error - A failure safe to display, serialize, or map at a public transport boundary.
- Query
Options - Typed execution options shared by every generated named query.
- Query
Response Identity - Exact server-returned identity for one named query execution.
- Request
Id - The identifier of one transport submission.
- Restore
Archived Backup - One immutable archive restore whose archive selection is frozen by its durable receipt.
- Restore
Offline Backup - One checked immutable offline-backup restore.
- Retire
Offline Backup - One checked immutable offline-backup retirement.
- Riff
DbClient - Typed clients for every service in the public
riffdb.v1API. - Stable
Application Client - Application-only client facade.
- Start
Application Export - One immutable exact application-export start or replay submission.
- Start
Application Installation - One immutable exact application-installation start or resume submission.
- Start
Application Reimport - One immutable, exact application-reimport start submission.
- Start
Offline Storage Scrub - One selector-free offline storage scrub (ADR-0203). Its only input is the caller-stable operation ID: there is no target, scope, or validation choice.
- System
IdSource - Stateless production source for client-owned UUIDv7 values.
- Tenant
Id - A bounded exact tenant identifier.
- Trace
Parent - One bounded outbound
traceparentmetadata value. - Typed
Command Result - Typed generated command result without kernel protocol exposure.
- Typed
Contextual Batch - One generated contextual pull.
- Typed
Contextual Work Item - One generated event plus its contextual work and lease evidence.
- Typed
Event Batch - One bounded generated consumer batch.
- Typed
Event Delivery - One generated typed event together with its exact lease evidence.
- Typed
Live Query Reset - One generated complete reset with its reason and reconnect frontier.
- Typed
Live Query Snapshot - One generated complete snapshot with its exact reconnect frontier.
- Typed
Live Query Stream - Generated closed live-query stream.
- Typed
Query Result - Typed generated result with its snapshot and pagination metadata.
- Validation
Issue - One stable validation code associated with a structured path.
- Validation
Issues - A non-empty bounded collection of validation issues.
- Validation
Path - A bounded path to a value that failed validation.
- Vector
Inspection Page - One bounded policy-filtered vector-state page.
- Vector
Model Version Item - One policy-visible outdated model observation.
- Vector
Model Version Summary - Whole-partition model-version summary, returned only when policy permits counts.
- Vector
Staleness Item - One policy-visible stale entity observation.
- Vector
Staleness Summary - Whole-partition staleness summary, returned only when policy permits counts.
- Vector
State Inspection - One symbolic bounded vector-state inspection request.
- Verified
TlsConnector - Stateful verified-TLS connector with atomic trust-root replacement.
Enums§
- Application
Cardinality - Query result cardinality declared in RiffQL.
- Application
Catalog Feature - Closed application feature vocabulary returned by symbolic catalog preflight.
- Application
Catalog Feature State - Availability of one closed application feature.
- Application
Client Error - Closed application-client failure.
- Application
Contract - Active or exact symbolic contract selection.
- Application
Error Category - Coarse application failure category.
- Application
Error Code - Closed stable code registry for application-semantic failures.
- Application
Event Checkpoint - Durable consumer checkpoint.
- Application
Event Consumer Public Status - Public consumer status selected by the stream’s authorization model.
- Application
Event Mutation Result - Closed result for consumer metadata mutations.
- Application
Event Pull Disposition - Closed completion class for one bounded pull.
- Application
FixCode - Closed machine-actionable remediation.
- Application
Live Query Update - Closed application live-query update.
- Application
Operation - Closed application operation inventory used only for public-safe context.
- Application
Recovery Action - Closed application recovery action.
- Application
Value - A bounded application value addressed only by contract names.
- Archive
Restore Stop V1 - Exact application-sequence selection for an offline archive restore.
- Backup
Name V1Error - A safe backup-name validation failure.
- Bearer
Credential File Error - A closed, redaction-safe failure to load one protected bearer credential.
- Capability
Application Export Scope V1 - Closed V1 scope for one lineage-scoped application export grant.
- Capability
Application Reimport Scope V1 - Closed V1 scope for one exact application-reimport campaign grant.
- Capability
Create Template Error - A closed local failure while constructing a capability-create template.
- Client
Error - A closed failure returned by the Rust SDK.
- Command
Shape Error - A safe local error while constructing an immutable command submission.
- Contract
Migration Submission Error - A safe local failure while constructing immutable migration input.
- Details
Free Status - A valid details-free status from a closed non-
PublicErrorboundary. - Error
Class - A protocol-neutral classification for a public failure.
- Freshness
Policy - Freshness policy and commit token types used by projected queries. Projected-query freshness policy (ADR-0086 §3).
- Generated
Batch Error - Failure before a generated batch can submit any item.
- Generated
Execution Error - A closed failure while executing one generated command shape.
- Idempotent
Transport Batch Error - A local shape failure for one bounded transport batch of ordinary commands.
- Identifier
Generation Error - A safe local failure while generating one client identifier.
- Live
Query Patch Operation - Closed keyed list mutation.
- Metadata
Error - A safe local metadata-construction failure.
- Offline
Maintenance Replacement Confirmation - The caller’s exact destructive-replacement confirmation.
- Projected
Aggregate - One aggregate function over a projected column.
- Projected
Aggregate Value - One aggregate result cell.
- Projected
Degraded Reason - Closed degraded reason codes from the wire.
- Projected
Predicate - Equality or range predicate addressed by projected field name.
- Projected
Query Outcome - Typed projected-query outcome mirroring the wire oneof arms.
- Projected
Rebuilding Reason - Closed rebuilding reason codes from the wire.
- Projected
Response Encoding - Wire encoding preference for a Ready projected-query response.
- Projected
Sort Direction - Sort direction for one projected order key.
- Protocol
Failure Kind - The closed reason an untrusted gRPC failure was rejected.
- Public
Error Details - Structured, caller-safe detail for a public failure.
- Public
Error Kind - The closed set of failures that RiffDB may expose to an untrusted caller.
- Recovery
Action - Safe, protocol-neutral recovery guidance for a public failure.
- TlsClient
Failure - Closed, path-redacted failure while constructing a verified TLS channel.
- TlsTrust
Reload Status - Redacted disposition of the latest trust-root observation.
- Validation
Code - A stable, caller-safe explanation for one validation failure.
- Validation
Path Segment - One non-secret location component in a validation issue.
- Vector
State Inspection Kind - Closed population selected by an authoritative vector-state inspection.
- Vector
State Inspection Result - Closed response shape. Count summaries and row-policy-filtered pages cannot be confused or silently substituted.
Constants§
- APPLICATION_
SESSION_ PROTOCOL_ V1 - Version of the first bounded application-session protocol.
- DEFAULT_
DATABASE_ ALIAS - Compatibility alias assigned to the legacy single-database configuration.
- MAX_
APPLICATION_ SESSION_ IN_ FLIGHT - Hard public ceiling for independently in-flight session operations.
- MAX_
GENERATED_ BATCH_ CONCURRENCY - Maximum independently in-flight items in one generated command batch.
Functions§
- generate_
agent_ session_ id - Generates one optional caller agent-session identifier.
- generate_
application_ export_ operation_ id - Generates one caller-stable symbolic-export operation identifier.
- generate_
application_ installation_ campaign_ id - Generates one caller-stable application installation or reimport campaign identifier.
- generate_
capability_ id - Generates one caller-selected capability identifier.
- generate_
contract_ migration_ operation_ id - Generates one caller-stable contract-migration operation identifier.
- generate_
offline_ maintenance_ operation_ id - Generates one caller-stable offline-maintenance operation identifier.
- generate_
request_ id - Generates one fresh outer transport request identifier.
- load_
protected_ bearer_ credential - Loads one exact bearer presentation through the protected Linux file rule.