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
//! Types Registry SDK
//!
//! This crate provides the public API for the `types-registry` module:
//! - `TypesRegistryApi` trait for inter-module communication
//! - `GtsEntity` model representing registered GTS entities
//! - `ListQuery` for filtering entity listings
//! - `TypesRegistryError` for error handling
//!
//! ## Usage
//!
//! Consumers obtain the client from `ClientHub`:
//! ```ignore
//! use types_registry_sdk::TypesRegistryApi;
//!
//! // Get the client from ClientHub
//! let client = hub.get::<dyn TypesRegistryApi>()?;
//!
//! // Register entities
//! let entities = client.register(&ctx, json_values).await?;
//!
//! // List entities with filtering
//! let query = ListQuery::default().with_vendor("acme");
//! let entities = client.list(&ctx, query).await?;
//!
//! // Get a single entity
//! let entity = client.get(&ctx, "gts.acme.core.events.user_created.v1~").await?;
//! ```
// Re-export main types at crate root for convenience
pub use TypesRegistryClient;
pub use TypesRegistryError;
pub use ;