Skip to main content

app_facade_api/
person.rs

1//! Member-facing aliases of the transport-neutral Person domain contract.
2pub use person_api::management::*;
3pub const PREFIX: &str = "/app/person/";
4
5/// Read-only image references available to members and their delegated agents.
6pub const SUMMARY_IMAGES_BATCH_GET_TARGET: &str = "/app/person/summary-images/batch-get";
7#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
8#[serde(rename_all = "camelCase", deny_unknown_fields)]
9pub struct SummaryImagesInput {
10    /// Explicit `person:<id>` or `cluster:<id>` references. No count limit or pagination.
11    pub ids: Vec<String>,
12}
13#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
14#[serde(rename_all = "camelCase")]
15pub struct SummaryImagesOutput {
16    /// Deduplicated in first-request order. Named cluster aliases share the Person URI.
17    pub items: Vec<SummaryImage>,
18    pub missing_ids: Vec<String>,
19}
20#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
21pub struct SummaryImage {
22    pub id: String,
23    /// Scoped immutable Artifact URI; the caller retrieves its bytes through Artifact.
24    pub uri: String,
25}