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