Skip to main content

atrium_api/app/bsky/contact/
defs.rs

1// @generated - This file is generated by atrium-codegen. DO NOT EDIT.
2//!Definitions for the `app.bsky.contact.defs` namespace.
3///Associates a profile with the positional index of the contact import input in the call to `app.bsky.contact.importContacts`, so clients can know which phone caused a particular match.
4#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
5#[serde(rename_all = "camelCase")]
6pub struct MatchAndContactIndexData {
7    ///The index of this match in the import contact input.
8    pub contact_index: crate::types::LimitedU16<999u16>,
9    ///Profile of the matched user.
10    pub r#match: crate::app::bsky::actor::defs::ProfileView,
11}
12pub type MatchAndContactIndex = crate::types::Object<MatchAndContactIndexData>;
13///A stash object to be sent via bsync representing a notification to be created.
14#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
15#[serde(rename_all = "camelCase")]
16pub struct NotificationData {
17    ///The DID of who this notification comes from.
18    pub from: crate::types::string::Did,
19    ///The DID of who this notification should go to.
20    pub to: crate::types::string::Did,
21}
22pub type Notification = crate::types::Object<NotificationData>;
23#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
24#[serde(rename_all = "camelCase")]
25pub struct SyncStatusData {
26    ///Number of existing contact matches resulting of the user imports and of their imported contacts having imported the user. Matches stop being counted when the user either follows the matched contact or dismisses the match.
27    pub matches_count: usize,
28    ///Last date when contacts where imported.
29    pub synced_at: crate::types::string::Datetime,
30}
31pub type SyncStatus = crate::types::Object<SyncStatusData>;