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 data_ref;
14pub mod profile;
15pub mod publish;
16pub mod receipt;
17pub mod search;
18
19// `primitives` / `serde_helpers` / `wire_error` live in acdp-primitives;
20// re-export so the historical `crate::types::*` paths keep resolving in the
21// umbrella crate and inside this crate's own modules.
22pub use acdp_primitives::primitives;
23pub(crate) use acdp_primitives::serde_helpers;
24
25pub use acdp_primitives::wire_error::{WireError, WireErrorBody};
26pub use body::{Body, DataPeriod, FullContext, RegistryState, Signature};
27pub use capabilities::{CapabilitiesDocument, Limits};
28pub use data_ref::{DataRef, DataRefType, EmbeddedContent, EmbeddedEncoding, Location};
29pub use primitives::{AgentDid, ContentHash, ContextType, CtxId, LineageId, Status, Visibility};
30pub use publish::{PublishRequest, PublishResponse};
31pub use receipt::{ReceiptSigner, RegistryReceipt};
32pub use search::{SearchParams, SearchParamsBuilder, SearchResponse, SearchResult};