Skip to main content

Crate auths_sdk

Crate auths_sdk 

Source
Expand description

§auths-sdk

Application services layer for Auths identity operations.

This crate provides high-level orchestration functions for identity management, device linking, platform verification, and registry operations. It sits between the CLI (I/O adapter) and the domain crates (auths-core, auths-id).

§Architecture

auths-cli  →  auths-sdk  →  auths-core + auths-id
(I/O adapter)  (orchestration)  (domain)

SDK functions accept typed configs and return structured Result types. They never prompt for input, print to stdout, or call process::exit().

Re-exports§

pub use context::AuthsContext;
pub use domains::auth::error::*;
pub use domains::compliance::error::*;
pub use domains::device::error::*;
pub use domains::device::types::*;
pub use domains::diagnostics::types::*;
pub use domains::identity::error::*;
pub use domains::identity::types::*;
pub use domains::org::error::*;
pub use domains::signing::types::*;

Modules§

agent_core
Re-exports of agent process types from auths-core. Re-exports of agent types from auths-core.
attestation
Re-exports of attestation operations from auths-id. Re-exports of attestation types and operations from auths-id.
audit
Audit event emission convenience for SDK operations. Audit event emission convenience for SDK operations.
context
Runtime dependency container (AuthsContext) for injecting infrastructure adapters. Runtime dependency container for auths-sdk operations.
core_config
Re-exports of configuration types from auths-core. Re-exports of configuration types from auths-core.
crypto
Re-exports of cryptographic utilities from auths-core. Re-exports of cryptographic utilities from auths-core.
device
Device linking, revocation, and authorization extension operations. Re-exports from the device domain for backwards compatibility.
domains
Domain services for specialized business logic. Domain services for Auths functionality.
error
Domain error types for all SDK operations.
ffi
Re-exports of FFI types from auths-core. Re-exports of FFI types from auths-core.
freeze
Re-exports of freeze types from auths-id. Re-exports of freeze types from auths-id.
identity
Re-exports of identity types and operations from auths-id. Re-exports of identity types and operations from auths-id.
keri
Re-exports of KERI cache module from auths-id. Re-exports of KERI cache module from auths-id, plus SDK-level copy constants that both the CLI and mobile surfaces consume.
keychain
Re-exports of keychain and key storage types from auths-core. Re-exports of keychain, encrypted file storage, and passphrase cache types from auths-core.
keys
Key import and management operations. Key import and management operations.
namespace_registry
Namespace verifier adapter registry mapping ecosystems to implementations. Namespace verifier adapter registry.
oidc_jti_registry
OIDC JWT ID (jti) registry for token replay detection.
pairing
Device pairing orchestration over ephemeral ECDH sessions. Device pairing orchestration.
paths
Re-exports of path utilities from auths-core. Re-exports of path utilities from auths-core.
platform
Platform identity claim creation and verification. Re-exports from the signing domain for backwards compatibility.
ports
Port traits for external I/O adapters (artifact, git, diagnostics).
presentation
HTML and structured report rendering.
registration
Remote registry publication for public DID discovery. Re-exports from the identity domain for backwards compatibility.
result
Return types for SDK workflow functions. Re-exports of domain result types for backwards compatibility.
setup
Identity provisioning for developer, CI, and agent environments. Re-exports from the identity domain for backwards compatibility.
signing
Artifact signing pipeline and attestation creation. Re-exports from the signing domain for backwards compatibility.
storage
Re-exports of Git storage backend types from auths-storage. Re-exports of Git storage backend types from auths-storage.
storage_layout
Re-exports of storage layout types from auths-id. Re-exports of storage layout types from auths-id.
trust
Re-exports of trust and pinned identity types from auths-core. Re-exports of trust and pinned identity types from auths-core.
types
Plain-old-data config structs for all SDK workflows. Re-exports of domain configuration types for backwards compatibility.
verify
Re-exports of verification helpers from auths-verifier. Re-exports of verification helpers from auths-verifier.
witness
Re-exports of witness server and config types. Re-exports of witness server and config types.
workflows
Higher-level identity workflows (rotation, provisioning, auditing).

Traits§

EventSink
Re-export the canonical EventSink trait from auths-telemetry. Synchronous, fire-and-forget sink for structured telemetry payloads.