Skip to main content

acdp_types/
lib.rs

1//! # acdp-types — wire types for the Agent Context Distribution Protocol
2//!
3//! The protocol's JSON wire shapes: the immutable [`body::Body`],
4//! [`publish::PublishRequest`]/[`publish::PublishResponse`], data
5//! references, capabilities documents, registry receipts, and search
6//! parameters/results — plus the [`profile`] vocabulary. The opaque
7//! identifier primitives and error vocabulary live in
8//! [`acdp-primitives`](https://docs.rs/acdp-primitives) and are re-exported
9//! here under the historical `primitives` path.
10
11pub mod body;
12pub mod capabilities;
13pub mod cosignature;
14pub mod data_ref;
15pub mod lifecycle;
16pub mod log;
17pub mod profile;
18pub mod publish;
19pub mod receipt;
20pub mod revocation;
21pub mod search;
22
23// `primitives` / `serde_helpers` / `wire_error` live in acdp-primitives;
24// re-export so the historical `crate::types::*` paths keep resolving in the
25// umbrella crate and inside this crate's own modules.
26pub use acdp_primitives::primitives;
27pub(crate) use acdp_primitives::serde_helpers;
28
29pub use acdp_primitives::wire_error::{WireError, WireErrorBody};
30pub use body::{Body, DataPeriod, FullContext, RegistryState, Signature};
31pub use capabilities::{CapabilitiesDocument, Limits};
32pub use cosignature::{LogCosignature, WitnessSigner, WitnessedCheckpoint, COSIGNATURE_VERSION};
33pub use data_ref::{DataRef, DataRefType, EmbeddedContent, EmbeddedEncoding, Location};
34pub use lifecycle::{LifecycleEvent, LifecycleEventType};
35pub use log::{LogCheckpoint, LogConsistencyProof, LogInclusion, LogLeaf};
36pub use primitives::{AgentDid, ContentHash, ContextType, CtxId, LineageId, Status, Visibility};
37pub use publish::{PublishRequest, PublishResponse};
38pub use receipt::{ReceiptSigner, RegistryReceipt};
39pub use revocation::{KeyRevocation, RevocationTrustClass};
40pub use search::{SearchParams, SearchParamsBuilder, SearchResponse, SearchResult};