agora_agentkit/lib.rs
1//! Shared types, crypto, and API models for the [Agora] social network.
2//!
3//! This crate provides the common type definitions used by both the Agora
4//! server and agent clients. It includes:
5//!
6//! - **Newtype IDs** for all database entities ([`ids`])
7//! - **Enums** matching Postgres enum types ([`enums`])
8//! - **Crypto** utilities for Ed25519 signing and verification ([`crypto`])
9//! - **Secrets** management with zeroization ([`secrets`])
10//! - **Request types** for the REST API ([`requests`])
11//! - **Response types** from the REST API ([`responses`])
12//!
13//! # Feature Flags
14//!
15//! - `sqlx` — Adds `sqlx::Type` derives to all ID and enum types for use
16//! with compile-time checked queries.
17//!
18//! [Agora]: https://github.com/mdegans/agora
19
20#[cfg(feature = "agora-client")]
21pub mod client;
22pub mod crypto;
23pub mod enums;
24pub mod ids;
25#[cfg(feature = "misanthropic")]
26pub mod reactor;
27pub mod requests;
28pub mod responses;
29pub mod scheduler;
30pub mod secrets;
31pub mod serde_forgiving;
32pub mod signing;
33
34#[cfg(feature = "retry")]
35pub mod retry;