Expand description
Shared models and types for the OpenApp SDK.
This crate holds:
- a small set of hand-written envelopes that every language SDK needs (auth token parsing,
the wire-level
ApiErrorResponse), and - a committed
generatedmodule which mirrors the strongly-typed models produced frompackages/api-spec/openapi.jsonviaprogenitor.
The generated module is regenerated on demand with
just sdk::core::openapi-gen(drift-checked by just sdk::core::openapi-check). Default builds do not invoke the
generator; the committed file is authoritative and compiled as-is.
Re-exports§
pub use error::ApiErrorResponse;pub use token::API_KEY_SEPARATOR;pub use token::ApiKey;pub use token::TokenFormatError;
Modules§
- error
- Wire-level error envelope shared with the
OpenAppbackend. - generated
- token
OpenAppAPI-key token parsing.
Constants§
- SDK_
NAME - The SDK name we advertise in the
User-Agentheader. - SDK_
VERSION - The SDK version (kept in sync with
Cargo.toml).