1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//! # oas-document
//!
//! OAS Identity Document types and validation for the Open Agent Specification.
//!
//! This crate provides the [`OasDocument`] type for representing, constructing,
//! and validating OAS Identity Documents as defined in OAS Specification §5.
//!
//! ## Key Types
//!
//! - [`OasDocument`] — The core identity document
//! - [`DocumentBuilder`](builder::DocumentBuilder) — Ergonomic document construction
//! - [`DocumentProof`](proof_format::DocumentProof) — Ed25519Signature2020 proofs
//! - [`LineageSection`](lineage_section::LineageSection) — Lineage chain data
//! - [`ConformanceLevel`](conformance::ConformanceLevel) — L0/L1/L2 conformance
//! - [`LifecycleStatus`](lifecycle::LifecycleStatus) — Entity lifecycle states
//!
//! ## Example
//!
//! ```
//! use oas_document::builder::DocumentBuilder;
//! use oas_document::conformance::ConformanceLevel;
//! use oas_crypto::keypair::OasKeyPair;
//!
//! let keypair = OasKeyPair::generate();
//! let doc = DocumentBuilder::new("did:oas:test:hmr:alice", "hmr")
//! .controller("did:oas:test:hmr:alice")
//! .conformance_level(ConformanceLevel::L1)
//! .add_verification_method(&keypair)
//! .name("Alice")
//! .build_and_sign(&keypair, "2026-01-15T00:00:00Z")
//! .unwrap();
//!
//! assert_eq!(doc.kind, "hmr");
//! assert!(doc.proof.is_some());
//! ```
pub use OasDocument;
pub use DocumentError;
pub use ;