Skip to main content

Crate openapp_sdk_common

Crate openapp_sdk_common 

Source
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 generated module which mirrors the strongly-typed models produced from packages/api-spec/openapi.json via progenitor.

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 OpenApp backend.
generated
token
OpenApp API-key token parsing.

Constants§

SDK_NAME
The SDK name we advertise in the User-Agent header.
SDK_VERSION
The SDK version (kept in sync with Cargo.toml).