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 anchor;
12pub mod body;
13pub mod capabilities;
14pub mod cosignature;
15pub mod data_ref;
16pub mod event_receipt;
17pub mod lifecycle;
18pub mod log;
19pub mod profile;
20pub mod publish;
21pub mod receipt;
22pub mod revocation;
23pub mod search;
24
25// `primitives` / `serde_helpers` / `wire_error` live in acdp-primitives;
26// re-export so the historical `crate::types::*` paths keep resolving in the
27// umbrella crate and inside this crate's own modules.
28pub use acdp_primitives::primitives;
29pub(crate) use acdp_primitives::serde_helpers;
30
31pub use acdp_primitives::wire_error::{WireError, WireErrorBody};
32pub use anchor::AnchorEntry;
33pub use body::{Body, DataPeriod, FullContext, RegistryState, Signature};
34pub use capabilities::{CapabilitiesDocument, Limits};
35pub use cosignature::{LogCosignature, WitnessSigner, WitnessedCheckpoint, COSIGNATURE_VERSION};
36pub use data_ref::{DataRef, DataRefType, EmbeddedContent, EmbeddedEncoding, Location};
37pub use event_receipt::EventReceipt;
38pub use lifecycle::{LifecycleEvent, LifecycleEventType};
39pub use log::{LogCheckpoint, LogConsistencyProof, LogInclusion, LogLeaf};
40pub use primitives::{AgentDid, ContentHash, ContextType, CtxId, LineageId, Status, Visibility};
41pub use publish::{PublishRequest, PublishResponse};
42pub use receipt::{ReceiptKeyStatus, ReceiptSigner, RegistryReceipt};
43pub use revocation::{KeyRevocation, RevocationTrustClass};
44pub use search::{SearchParams, SearchParamsBuilder, SearchResponse, SearchResult};