···8787#[cfg(feature = "net_aftertheinter")]
8888pub mod net_aftertheinter;
89899090+#[cfg(feature = "net_altq")]
9191+pub mod net_altq;
9292+9093#[cfg(feature = "net_anisota")]
9194pub mod net_anisota;
9295
+6
crates/jacquard-api/src/net_altq.rs
···11+// @generated by jacquard-lexicon. DO NOT EDIT.
22+//
33+// This file was automatically generated from Lexicon schemas.
44+// Any manual changes will be overwritten on the next regeneration.
55+66+pub mod aqfile;
+135
crates/jacquard-api/src/net_altq/aqfile.rs
···11+// @generated by jacquard-lexicon. DO NOT EDIT.
22+//
33+// Lexicon: net.altq.aqfile
44+//
55+// This file was automatically generated from Lexicon schemas.
66+// Any manual changes will be overwritten on the next regeneration.
77+88+/// Cryptographic checksum for integrity verification.
99+#[jacquard_derive::lexicon]
1010+#[derive(
1111+ serde::Serialize,
1212+ serde::Deserialize,
1313+ Debug,
1414+ Clone,
1515+ PartialEq,
1616+ Eq,
1717+ jacquard_derive::IntoStatic,
1818+ Default
1919+)]
2020+#[serde(rename_all = "camelCase")]
2121+pub struct Checksum<'a> {
2222+ /// Hash algorithm name.
2323+ #[serde(borrow)]
2424+ pub algo: jacquard_common::CowStr<'a>,
2525+ /// Hex or base64 encoded digest produced by the algorithm.
2626+ #[serde(borrow)]
2727+ pub hash: jacquard_common::CowStr<'a>,
2828+}
2929+3030+/// File metadata describing the uploaded blob.
3131+#[jacquard_derive::lexicon]
3232+#[derive(
3333+ serde::Serialize,
3434+ serde::Deserialize,
3535+ Debug,
3636+ Clone,
3737+ PartialEq,
3838+ Eq,
3939+ jacquard_derive::IntoStatic,
4040+ bon::Builder
4141+)]
4242+#[serde(rename_all = "camelCase")]
4343+pub struct File<'a> {
4444+ /// MIME type, e.g. 'video/mp4'.
4545+ #[serde(skip_serializing_if = "std::option::Option::is_none")]
4646+ #[builder(into)]
4747+ #[serde(borrow)]
4848+ pub mime_type: Option<jacquard_common::CowStr<'a>>,
4949+ /// Client-side last-modified timestamp.
5050+ #[serde(skip_serializing_if = "std::option::Option::is_none")]
5151+ #[builder(into)]
5252+ pub modified_at: Option<jacquard_common::types::string::Datetime>,
5353+ /// User-visible filename.
5454+ #[serde(borrow)]
5555+ #[builder(into)]
5656+ pub name: jacquard_common::CowStr<'a>,
5757+ /// File size in bytes.
5858+ pub size: i64,
5959+}
6060+6161+/// A record representing an uploaded file blob with metadata.
6262+#[jacquard_derive::lexicon]
6363+#[derive(
6464+ serde::Serialize,
6565+ serde::Deserialize,
6666+ Debug,
6767+ Clone,
6868+ PartialEq,
6969+ Eq,
7070+ jacquard_derive::IntoStatic,
7171+ bon::Builder
7272+)]
7373+#[serde(rename_all = "camelCase")]
7474+pub struct Aqfile<'a> {
7575+ /// Handle or DID of the account to attribute this upload to.
7676+ #[serde(skip_serializing_if = "std::option::Option::is_none")]
7777+ #[builder(into)]
7878+ #[serde(borrow)]
7979+ pub attribution: Option<jacquard_common::types::ident::AtIdentifier<'a>>,
8080+ /// The uploaded blob reference. Note: Individual PDS instances may enforce lower size limits.
8181+ #[serde(borrow)]
8282+ pub blob: jacquard_common::types::blob::Blob<'a>,
8383+ /// Optional cryptographic checksum for integrity verification.
8484+ #[serde(skip_serializing_if = "std::option::Option::is_none")]
8585+ #[builder(into)]
8686+ #[serde(borrow)]
8787+ pub checksum: Option<crate::net_altq::aqfile::Checksum<'a>>,
8888+ /// Timestamp when this record was created.
8989+ pub created_at: jacquard_common::types::string::Datetime,
9090+ /// Metadata about the file.
9191+ #[serde(borrow)]
9292+ pub file: crate::net_altq::aqfile::File<'a>,
9393+}
9494+9595+/// Typed wrapper for GetRecord response with this collection's record type.
9696+#[derive(
9797+ serde::Serialize,
9898+ serde::Deserialize,
9999+ Debug,
100100+ Clone,
101101+ PartialEq,
102102+ Eq,
103103+ jacquard_derive::IntoStatic
104104+)]
105105+#[serde(rename_all = "camelCase")]
106106+pub struct AqfileGetRecordOutput<'a> {
107107+ #[serde(skip_serializing_if = "std::option::Option::is_none")]
108108+ #[serde(borrow)]
109109+ pub cid: std::option::Option<jacquard_common::types::string::Cid<'a>>,
110110+ #[serde(borrow)]
111111+ pub uri: jacquard_common::types::string::AtUri<'a>,
112112+ #[serde(borrow)]
113113+ pub value: Aqfile<'a>,
114114+}
115115+116116+/// Marker type for deserializing records from this collection.
117117+pub struct AqfileRecord;
118118+impl jacquard_common::xrpc::XrpcResp for AqfileRecord {
119119+ const NSID: &'static str = "net.altq.aqfile";
120120+ const ENCODING: &'static str = "application/json";
121121+ type Output<'de> = AqfileGetRecordOutput<'de>;
122122+ type Err<'de> = jacquard_common::types::collection::RecordError<'de>;
123123+}
124124+125125+impl jacquard_common::types::collection::Collection for Aqfile<'_> {
126126+ const NSID: &'static str = "net.altq.aqfile";
127127+ type Record = AqfileRecord;
128128+}
129129+130130+impl From<AqfileGetRecordOutput<'_>> for Aqfile<'_> {
131131+ fn from(output: AqfileGetRecordOutput<'_>) -> Self {
132132+ use jacquard_common::IntoStatic;
133133+ output.value.into_static()
134134+ }
135135+}