use super::{errors::*, *};
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ApiCreateMyAddressResponse {
#[serde(rename = "userContactLinkCreated")]
UserContactLinkCreated(UserContactLinkCreatedResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ApiDeleteMyAddressResponse {
#[serde(rename = "userContactLinkDeleted")]
UserContactLinkDeleted(UserContactLinkDeletedResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ApiShowMyAddressResponse {
#[serde(rename = "userContactLink")]
UserContactLink(UserContactLinkResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ApiSetProfileAddressResponse {
#[serde(rename = "userProfileUpdated")]
UserProfileUpdated(UserProfileUpdatedResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ApiSetAddressSettingsResponse {
#[serde(rename = "userContactLinkUpdated")]
UserContactLinkUpdated(UserContactLinkUpdatedResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ApiSendMessagesResponse {
#[serde(rename = "newChatItems")]
NewChatItems(NewChatItemsResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ApiUpdateChatItemResponse {
#[serde(rename = "chatItemUpdated")]
ChatItemUpdated(ChatItemUpdatedResponse),
#[serde(rename = "chatItemNotChanged")]
ChatItemNotChanged(ChatItemNotChangedResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ApiDeleteChatItemResponse {
#[serde(rename = "chatItemsDeleted")]
ChatItemsDeleted(ChatItemsDeletedResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ApiDeleteMemberChatItemResponse {
#[serde(rename = "chatItemsDeleted")]
ChatItemsDeleted(ChatItemsDeletedResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ApiChatItemReactionResponse {
#[serde(rename = "chatItemReaction")]
ChatItemReaction(ChatItemReactionResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ReceiveFileResponse {
#[serde(rename = "rcvFileAccepted")]
RcvFileAccepted(RcvFileAcceptedResponse),
#[serde(rename = "rcvFileAcceptedSndCancelled")]
RcvFileAcceptedSndCancelled(RcvFileAcceptedSndCancelledResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum CancelFileResponse {
#[serde(rename = "sndFileCancelled")]
SndFileCancelled(SndFileCancelledResponse),
#[serde(rename = "rcvFileCancelled")]
RcvFileCancelled(RcvFileCancelledResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ApiAddMemberResponse {
#[serde(rename = "sentGroupInvitation")]
SentGroupInvitation(SentGroupInvitationResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ApiJoinGroupResponse {
#[serde(rename = "userAcceptedGroupSent")]
UserAcceptedGroupSent(UserAcceptedGroupSentResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ApiAcceptMemberResponse {
#[serde(rename = "memberAccepted")]
MemberAccepted(MemberAcceptedResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ApiMembersRoleResponse {
#[serde(rename = "membersRoleUser")]
MembersRoleUser(MembersRoleUserResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ApiBlockMembersForAllResponse {
#[serde(rename = "membersBlockedForAllUser")]
MembersBlockedForAllUser(MembersBlockedForAllUserResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ApiRemoveMembersResponse {
#[serde(rename = "userDeletedMembers")]
UserDeletedMembers(UserDeletedMembersResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ApiLeaveGroupResponse {
#[serde(rename = "leftMemberUser")]
LeftMemberUser(LeftMemberUserResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ApiListMembersResponse {
#[serde(rename = "groupMembers")]
GroupMembers(GroupMembersResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ApiNewGroupResponse {
#[serde(rename = "groupCreated")]
GroupCreated(GroupCreatedResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ApiUpdateGroupProfileResponse {
#[serde(rename = "groupUpdated")]
GroupUpdated(GroupUpdatedResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ApiCreateGroupLinkResponse {
#[serde(rename = "groupLinkCreated")]
GroupLinkCreated(GroupLinkCreatedResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ApiGroupLinkMemberRoleResponse {
#[serde(rename = "groupLink")]
GroupLink(GroupLinkResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ApiDeleteGroupLinkResponse {
#[serde(rename = "groupLinkDeleted")]
GroupLinkDeleted(GroupLinkDeletedResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ApiGetGroupLinkResponse {
#[serde(rename = "groupLink")]
GroupLink(GroupLinkResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ApiAddContactResponse {
#[serde(rename = "invitation")]
Invitation(InvitationResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ApiConnectPlanResponse {
#[serde(rename = "connectionPlan")]
ConnectionPlan(ConnectionPlanResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ApiConnectResponse {
#[serde(rename = "sentConfirmation")]
SentConfirmation(SentConfirmationResponse),
#[serde(rename = "contactAlreadyExists")]
ContactAlreadyExists(ContactAlreadyExistsResponse),
#[serde(rename = "sentInvitation")]
SentInvitation(SentInvitationResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ConnectResponse {
#[serde(rename = "sentConfirmation")]
SentConfirmation(SentConfirmationResponse),
#[serde(rename = "contactAlreadyExists")]
ContactAlreadyExists(ContactAlreadyExistsResponse),
#[serde(rename = "sentInvitation")]
SentInvitation(SentInvitationResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ApiAcceptContactResponse {
#[serde(rename = "acceptingContactRequest")]
AcceptingContactRequest(AcceptingContactRequestResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ApiRejectContactResponse {
#[serde(rename = "contactRequestRejected")]
ContactRequestRejected(ContactRequestRejectedResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ApiListContactsResponse {
#[serde(rename = "contactsList")]
ContactsList(ContactsListResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ApiListGroupsResponse {
#[serde(rename = "groupsList")]
GroupsList(GroupsListResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ApiDeleteChatResponse {
#[serde(rename = "contactDeleted")]
ContactDeleted(ContactDeletedResponse),
#[serde(rename = "contactConnectionDeleted")]
ContactConnectionDeleted(ContactConnectionDeletedResponse),
#[serde(rename = "groupDeletedUser")]
GroupDeletedUser(GroupDeletedUserResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ShowActiveUserResponse {
#[serde(rename = "activeUser")]
ActiveUser(ActiveUserResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum CreateActiveUserResponse {
#[serde(rename = "activeUser")]
ActiveUser(ActiveUserResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ListUsersResponse {
#[serde(rename = "usersList")]
UsersList(UsersListResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ApiSetActiveUserResponse {
#[serde(rename = "activeUser")]
ActiveUser(ActiveUserResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ApiDeleteUserResponse {
#[serde(rename = "cmdOk")]
CmdOk(CmdOkResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ApiUpdateProfileResponse {
#[serde(rename = "userProfileUpdated")]
UserProfileUpdated(UserProfileUpdatedResponse),
#[serde(rename = "userProfileNoChange")]
UserProfileNoChange(UserProfileNoChangeResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
#[non_exhaustive]
pub enum ApiSetContactPrefsResponse {
#[serde(rename = "contactPrefsUpdated")]
ContactPrefsUpdated(ContactPrefsUpdatedResponse),
#[serde(rename = "chatCmdError")]
ChatCmdError(ChatCmdErrorResponse),
#[serde(untagged)]
Undocumented(JsonObject),
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct AcceptingContactRequestResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "contact")]
pub contact: Contact,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct ActiveUserResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct ChatCmdErrorResponse {
#[serde(rename = "chatError")]
pub chat_error: ChatError,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct ChatItemNotChangedResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "chatItem")]
pub chat_item: AChatItem,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct ChatItemReactionResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "added")]
pub added: bool,
#[serde(rename = "reaction")]
pub reaction: ACIReaction,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct ChatItemUpdatedResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "chatItem")]
pub chat_item: AChatItem,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct ChatItemsDeletedResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "chatItemDeletions")]
pub chat_item_deletions: Vec<ChatItemDeletion>,
#[serde(rename = "byUser")]
pub by_user: bool,
#[serde(rename = "timed")]
pub timed: bool,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct CmdOkResponse {
#[serde(rename = "user_", skip_serializing_if = "Option::is_none")]
pub user: Option<User>,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct ConnectionPlanResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "connLink")]
pub conn_link: CreatedConnLink,
#[serde(rename = "connectionPlan")]
pub connection_plan: ConnectionPlan,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct ContactAlreadyExistsResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "contact")]
pub contact: Contact,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct ContactConnectionDeletedResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "connection")]
pub connection: PendingContactConnection,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct ContactDeletedResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "contact")]
pub contact: Contact,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct ContactPrefsUpdatedResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "fromContact")]
pub from_contact: Contact,
#[serde(rename = "toContact")]
pub to_contact: Contact,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct ContactRequestRejectedResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "contactRequest")]
pub contact_request: UserContactRequest,
#[serde(rename = "contact_", skip_serializing_if = "Option::is_none")]
pub contact: Option<Contact>,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct ContactsListResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "contacts")]
pub contacts: Vec<Contact>,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct GroupCreatedResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "groupInfo")]
pub group_info: GroupInfo,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct GroupDeletedUserResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "groupInfo")]
pub group_info: GroupInfo,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct GroupLinkCreatedResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "groupInfo")]
pub group_info: GroupInfo,
#[serde(rename = "groupLink")]
pub group_link: GroupLink,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct GroupLinkDeletedResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "groupInfo")]
pub group_info: GroupInfo,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct GroupLinkResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "groupInfo")]
pub group_info: GroupInfo,
#[serde(rename = "groupLink")]
pub group_link: GroupLink,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct GroupMembersResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "group")]
pub group: Group,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct GroupUpdatedResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "fromGroup")]
pub from_group: GroupInfo,
#[serde(rename = "toGroup")]
pub to_group: GroupInfo,
#[serde(rename = "member_", skip_serializing_if = "Option::is_none")]
pub member: Option<GroupMember>,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct GroupsListResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "groups")]
pub groups: Vec<GroupInfoSummary>,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct InvitationResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "connLinkInvitation")]
pub conn_link_invitation: CreatedConnLink,
#[serde(rename = "connection")]
pub connection: PendingContactConnection,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct LeftMemberUserResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "groupInfo")]
pub group_info: GroupInfo,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct MemberAcceptedResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "groupInfo")]
pub group_info: GroupInfo,
#[serde(rename = "member")]
pub member: GroupMember,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct MembersBlockedForAllUserResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "groupInfo")]
pub group_info: GroupInfo,
#[serde(rename = "members")]
pub members: Vec<GroupMember>,
#[serde(rename = "blocked")]
pub blocked: bool,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct MembersRoleUserResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "groupInfo")]
pub group_info: GroupInfo,
#[serde(rename = "members")]
pub members: Vec<GroupMember>,
#[serde(rename = "toRole")]
pub to_role: GroupMemberRole,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct NewChatItemsResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "chatItems")]
pub chat_items: Vec<AChatItem>,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct RcvFileAcceptedResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "chatItem")]
pub chat_item: AChatItem,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct RcvFileAcceptedSndCancelledResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "rcvFileTransfer")]
pub rcv_file_transfer: RcvFileTransfer,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct RcvFileCancelledResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "chatItem_", skip_serializing_if = "Option::is_none")]
pub chat_item: Option<AChatItem>,
#[serde(rename = "rcvFileTransfer")]
pub rcv_file_transfer: RcvFileTransfer,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct SentConfirmationResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "connection")]
pub connection: PendingContactConnection,
#[serde(rename = "customUserProfile", skip_serializing_if = "Option::is_none")]
pub custom_user_profile: Option<Profile>,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct SentGroupInvitationResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "groupInfo")]
pub group_info: GroupInfo,
#[serde(rename = "contact")]
pub contact: Contact,
#[serde(rename = "member")]
pub member: GroupMember,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct SentInvitationResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "connection")]
pub connection: PendingContactConnection,
#[serde(rename = "customUserProfile", skip_serializing_if = "Option::is_none")]
pub custom_user_profile: Option<Profile>,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct SndFileCancelledResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "chatItem_", skip_serializing_if = "Option::is_none")]
pub chat_item: Option<AChatItem>,
#[serde(rename = "fileTransferMeta")]
pub file_transfer_meta: FileTransferMeta,
#[serde(rename = "sndFileTransfers")]
pub snd_file_transfers: Vec<SndFileTransfer>,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct UserAcceptedGroupSentResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "groupInfo")]
pub group_info: GroupInfo,
#[serde(rename = "hostContact", skip_serializing_if = "Option::is_none")]
pub host_contact: Option<Contact>,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct UserContactLinkCreatedResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "connLinkContact")]
pub conn_link_contact: CreatedConnLink,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct UserContactLinkDeletedResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct UserContactLinkResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "contactLink")]
pub contact_link: UserContactLink,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct UserContactLinkUpdatedResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "contactLink")]
pub contact_link: UserContactLink,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct UserDeletedMembersResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "groupInfo")]
pub group_info: GroupInfo,
#[serde(rename = "members")]
pub members: Vec<GroupMember>,
#[serde(rename = "withMessages")]
pub with_messages: bool,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct UserProfileNoChangeResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct UserProfileUpdatedResponse {
#[serde(rename = "user")]
pub user: User,
#[serde(rename = "fromProfile")]
pub from_profile: Profile,
#[serde(rename = "toProfile")]
pub to_profile: Profile,
#[serde(rename = "updateSummary")]
pub update_summary: UserProfileUpdateSummary,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "bon", derive(::bon::Builder))]
#[cfg_attr(feature = "bon", builder(on(String, into)))]
pub struct UsersListResponse {
#[serde(rename = "users")]
pub users: Vec<UserInfo>,
#[serde(flatten, skip_serializing_if = "JsonObject::is_null")]
#[cfg_attr(feature = "bon", builder(default))]
pub undocumented: JsonObject,
}