simploxide_api_types/
responses.rs

1use super::{errors::*, *};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4#[serde(tag = "type")]
5#[non_exhaustive]
6pub enum ApiCreateMyAddressResponse {
7    /// UserContactLinkCreated: User contact address created.
8    #[serde(rename = "userContactLinkCreated")]
9    UserContactLinkCreated(UserContactLinkCreatedResponse),
10    /// ChatCmdError: Command error.
11    #[serde(rename = "chatCmdError")]
12    ChatCmdError(ChatCmdErrorResponse),
13    #[serde(untagged)]
14    Undocumented(BTreeMap<String, JsonObject>),
15}
16
17#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
18#[serde(tag = "type")]
19#[non_exhaustive]
20pub enum ApiDeleteMyAddressResponse {
21    /// UserContactLinkDeleted: User contact address deleted.
22    #[serde(rename = "userContactLinkDeleted")]
23    UserContactLinkDeleted(UserContactLinkDeletedResponse),
24    /// ChatCmdError: Command error.
25    #[serde(rename = "chatCmdError")]
26    ChatCmdError(ChatCmdErrorResponse),
27    #[serde(untagged)]
28    Undocumented(BTreeMap<String, JsonObject>),
29}
30
31#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
32#[serde(tag = "type")]
33#[non_exhaustive]
34pub enum ApiShowMyAddressResponse {
35    /// UserContactLink: User contact address.
36    #[serde(rename = "userContactLink")]
37    UserContactLink(UserContactLinkResponse),
38    /// ChatCmdError: Command error.
39    #[serde(rename = "chatCmdError")]
40    ChatCmdError(ChatCmdErrorResponse),
41    #[serde(untagged)]
42    Undocumented(BTreeMap<String, JsonObject>),
43}
44
45#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
46#[serde(tag = "type")]
47#[non_exhaustive]
48pub enum ApiSetProfileAddressResponse {
49    /// UserProfileUpdated: User profile updated.
50    #[serde(rename = "userProfileUpdated")]
51    UserProfileUpdated(UserProfileUpdatedResponse),
52    /// ChatCmdError: Command error.
53    #[serde(rename = "chatCmdError")]
54    ChatCmdError(ChatCmdErrorResponse),
55    #[serde(untagged)]
56    Undocumented(BTreeMap<String, JsonObject>),
57}
58
59#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
60#[serde(tag = "type")]
61#[non_exhaustive]
62pub enum ApiSetAddressSettingsResponse {
63    /// UserContactLinkUpdated: User contact address updated.
64    #[serde(rename = "userContactLinkUpdated")]
65    UserContactLinkUpdated(UserContactLinkUpdatedResponse),
66    /// ChatCmdError: Command error.
67    #[serde(rename = "chatCmdError")]
68    ChatCmdError(ChatCmdErrorResponse),
69    #[serde(untagged)]
70    Undocumented(BTreeMap<String, JsonObject>),
71}
72
73#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
74#[serde(tag = "type")]
75#[non_exhaustive]
76pub enum ApiSendMessagesResponse {
77    /// NewChatItems: New messages.
78    #[serde(rename = "newChatItems")]
79    NewChatItems(NewChatItemsResponse),
80    /// ChatCmdError: Command error.
81    #[serde(rename = "chatCmdError")]
82    ChatCmdError(ChatCmdErrorResponse),
83    #[serde(untagged)]
84    Undocumented(BTreeMap<String, JsonObject>),
85}
86
87#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
88#[serde(tag = "type")]
89#[non_exhaustive]
90pub enum ApiUpdateChatItemResponse {
91    /// ChatItemUpdated: Message updated.
92    #[serde(rename = "chatItemUpdated")]
93    ChatItemUpdated(ChatItemUpdatedResponse),
94    /// ChatItemNotChanged: Message not changed.
95    #[serde(rename = "chatItemNotChanged")]
96    ChatItemNotChanged(ChatItemNotChangedResponse),
97    /// ChatCmdError: Command error.
98    #[serde(rename = "chatCmdError")]
99    ChatCmdError(ChatCmdErrorResponse),
100    #[serde(untagged)]
101    Undocumented(BTreeMap<String, JsonObject>),
102}
103
104#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
105#[serde(tag = "type")]
106#[non_exhaustive]
107pub enum ApiDeleteChatItemResponse {
108    /// ChatItemsDeleted: Messages deleted.
109    #[serde(rename = "chatItemsDeleted")]
110    ChatItemsDeleted(ChatItemsDeletedResponse),
111    /// ChatCmdError: Command error.
112    #[serde(rename = "chatCmdError")]
113    ChatCmdError(ChatCmdErrorResponse),
114    #[serde(untagged)]
115    Undocumented(BTreeMap<String, JsonObject>),
116}
117
118#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
119#[serde(tag = "type")]
120#[non_exhaustive]
121pub enum ApiDeleteMemberChatItemResponse {
122    /// ChatItemsDeleted: Messages deleted.
123    #[serde(rename = "chatItemsDeleted")]
124    ChatItemsDeleted(ChatItemsDeletedResponse),
125    /// ChatCmdError: Command error.
126    #[serde(rename = "chatCmdError")]
127    ChatCmdError(ChatCmdErrorResponse),
128    #[serde(untagged)]
129    Undocumented(BTreeMap<String, JsonObject>),
130}
131
132#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
133#[serde(tag = "type")]
134#[non_exhaustive]
135pub enum ApiChatItemReactionResponse {
136    /// ChatItemReaction: Message reaction.
137    #[serde(rename = "chatItemReaction")]
138    ChatItemReaction(ChatItemReactionResponse),
139    /// ChatCmdError: Command error.
140    #[serde(rename = "chatCmdError")]
141    ChatCmdError(ChatCmdErrorResponse),
142    #[serde(untagged)]
143    Undocumented(BTreeMap<String, JsonObject>),
144}
145
146#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
147#[serde(tag = "type")]
148#[non_exhaustive]
149pub enum ReceiveFileResponse {
150    /// RcvFileAccepted: File accepted to be received.
151    #[serde(rename = "rcvFileAccepted")]
152    RcvFileAccepted(RcvFileAcceptedResponse),
153    /// RcvFileAcceptedSndCancelled: File accepted, but no longer sent.
154    #[serde(rename = "rcvFileAcceptedSndCancelled")]
155    RcvFileAcceptedSndCancelled(RcvFileAcceptedSndCancelledResponse),
156    /// ChatCmdError: Command error.
157    #[serde(rename = "chatCmdError")]
158    ChatCmdError(ChatCmdErrorResponse),
159    #[serde(untagged)]
160    Undocumented(BTreeMap<String, JsonObject>),
161}
162
163#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
164#[serde(tag = "type")]
165#[non_exhaustive]
166pub enum CancelFileResponse {
167    /// SndFileCancelled: Cancelled sending file.
168    #[serde(rename = "sndFileCancelled")]
169    SndFileCancelled(SndFileCancelledResponse),
170    /// RcvFileCancelled: Cancelled receiving file.
171    #[serde(rename = "rcvFileCancelled")]
172    RcvFileCancelled(RcvFileCancelledResponse),
173    /// ChatCmdError: Command error.
174    #[serde(rename = "chatCmdError")]
175    ChatCmdError(ChatCmdErrorResponse),
176    #[serde(untagged)]
177    Undocumented(BTreeMap<String, JsonObject>),
178}
179
180#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
181#[serde(tag = "type")]
182#[non_exhaustive]
183pub enum ApiAddMemberResponse {
184    /// SentGroupInvitation: Group invitation sent.
185    #[serde(rename = "sentGroupInvitation")]
186    SentGroupInvitation(SentGroupInvitationResponse),
187    /// ChatCmdError: Command error.
188    #[serde(rename = "chatCmdError")]
189    ChatCmdError(ChatCmdErrorResponse),
190    #[serde(untagged)]
191    Undocumented(BTreeMap<String, JsonObject>),
192}
193
194#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
195#[serde(tag = "type")]
196#[non_exhaustive]
197pub enum ApiJoinGroupResponse {
198    /// UserAcceptedGroupSent: User accepted group invitation.
199    #[serde(rename = "userAcceptedGroupSent")]
200    UserAcceptedGroupSent(UserAcceptedGroupSentResponse),
201    /// ChatCmdError: Command error.
202    #[serde(rename = "chatCmdError")]
203    ChatCmdError(ChatCmdErrorResponse),
204    #[serde(untagged)]
205    Undocumented(BTreeMap<String, JsonObject>),
206}
207
208#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
209#[serde(tag = "type")]
210#[non_exhaustive]
211pub enum ApiAcceptMemberResponse {
212    /// MemberAccepted: Member accepted to group.
213    #[serde(rename = "memberAccepted")]
214    MemberAccepted(MemberAcceptedResponse),
215    /// ChatCmdError: Command error.
216    #[serde(rename = "chatCmdError")]
217    ChatCmdError(ChatCmdErrorResponse),
218    #[serde(untagged)]
219    Undocumented(BTreeMap<String, JsonObject>),
220}
221
222#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
223#[serde(tag = "type")]
224#[non_exhaustive]
225pub enum ApiMembersRoleResponse {
226    /// MembersRoleUser: Members role changed by user.
227    #[serde(rename = "membersRoleUser")]
228    MembersRoleUser(MembersRoleUserResponse),
229    /// ChatCmdError: Command error.
230    #[serde(rename = "chatCmdError")]
231    ChatCmdError(ChatCmdErrorResponse),
232    #[serde(untagged)]
233    Undocumented(BTreeMap<String, JsonObject>),
234}
235
236#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
237#[serde(tag = "type")]
238#[non_exhaustive]
239pub enum ApiBlockMembersForAllResponse {
240    /// MembersBlockedForAllUser: Members blocked for all by admin.
241    #[serde(rename = "membersBlockedForAllUser")]
242    MembersBlockedForAllUser(MembersBlockedForAllUserResponse),
243    /// ChatCmdError: Command error.
244    #[serde(rename = "chatCmdError")]
245    ChatCmdError(ChatCmdErrorResponse),
246    #[serde(untagged)]
247    Undocumented(BTreeMap<String, JsonObject>),
248}
249
250#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
251#[serde(tag = "type")]
252#[non_exhaustive]
253pub enum ApiRemoveMembersResponse {
254    /// UserDeletedMembers: Members deleted.
255    #[serde(rename = "userDeletedMembers")]
256    UserDeletedMembers(UserDeletedMembersResponse),
257    /// ChatCmdError: Command error.
258    #[serde(rename = "chatCmdError")]
259    ChatCmdError(ChatCmdErrorResponse),
260    #[serde(untagged)]
261    Undocumented(BTreeMap<String, JsonObject>),
262}
263
264#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
265#[serde(tag = "type")]
266#[non_exhaustive]
267pub enum ApiLeaveGroupResponse {
268    /// LeftMemberUser: User left group.
269    #[serde(rename = "leftMemberUser")]
270    LeftMemberUser(LeftMemberUserResponse),
271    /// ChatCmdError: Command error.
272    #[serde(rename = "chatCmdError")]
273    ChatCmdError(ChatCmdErrorResponse),
274    #[serde(untagged)]
275    Undocumented(BTreeMap<String, JsonObject>),
276}
277
278#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
279#[serde(tag = "type")]
280#[non_exhaustive]
281pub enum ApiListMembersResponse {
282    /// GroupMembers: Group members.
283    #[serde(rename = "groupMembers")]
284    GroupMembers(GroupMembersResponse),
285    /// ChatCmdError: Command error.
286    #[serde(rename = "chatCmdError")]
287    ChatCmdError(ChatCmdErrorResponse),
288    #[serde(untagged)]
289    Undocumented(BTreeMap<String, JsonObject>),
290}
291
292#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
293#[serde(tag = "type")]
294#[non_exhaustive]
295pub enum ApiNewGroupResponse {
296    /// GroupCreated: Group created.
297    #[serde(rename = "groupCreated")]
298    GroupCreated(GroupCreatedResponse),
299    /// ChatCmdError: Command error.
300    #[serde(rename = "chatCmdError")]
301    ChatCmdError(ChatCmdErrorResponse),
302    #[serde(untagged)]
303    Undocumented(BTreeMap<String, JsonObject>),
304}
305
306#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
307#[serde(tag = "type")]
308#[non_exhaustive]
309pub enum ApiUpdateGroupProfileResponse {
310    /// GroupUpdated: Group updated.
311    #[serde(rename = "groupUpdated")]
312    GroupUpdated(GroupUpdatedResponse),
313    /// ChatCmdError: Command error.
314    #[serde(rename = "chatCmdError")]
315    ChatCmdError(ChatCmdErrorResponse),
316    #[serde(untagged)]
317    Undocumented(BTreeMap<String, JsonObject>),
318}
319
320#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
321#[serde(tag = "type")]
322#[non_exhaustive]
323pub enum ApiCreateGroupLinkResponse {
324    /// GroupLinkCreated: Group link created.
325    #[serde(rename = "groupLinkCreated")]
326    GroupLinkCreated(GroupLinkCreatedResponse),
327    /// ChatCmdError: Command error.
328    #[serde(rename = "chatCmdError")]
329    ChatCmdError(ChatCmdErrorResponse),
330    #[serde(untagged)]
331    Undocumented(BTreeMap<String, JsonObject>),
332}
333
334#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
335#[serde(tag = "type")]
336#[non_exhaustive]
337pub enum ApiGroupLinkMemberRoleResponse {
338    /// GroupLink: Group link.
339    #[serde(rename = "groupLink")]
340    GroupLink(GroupLinkResponse),
341    /// ChatCmdError: Command error.
342    #[serde(rename = "chatCmdError")]
343    ChatCmdError(ChatCmdErrorResponse),
344    #[serde(untagged)]
345    Undocumented(BTreeMap<String, JsonObject>),
346}
347
348#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
349#[serde(tag = "type")]
350#[non_exhaustive]
351pub enum ApiDeleteGroupLinkResponse {
352    /// GroupLinkDeleted: Group link deleted.
353    #[serde(rename = "groupLinkDeleted")]
354    GroupLinkDeleted(GroupLinkDeletedResponse),
355    /// ChatCmdError: Command error.
356    #[serde(rename = "chatCmdError")]
357    ChatCmdError(ChatCmdErrorResponse),
358    #[serde(untagged)]
359    Undocumented(BTreeMap<String, JsonObject>),
360}
361
362#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
363#[serde(tag = "type")]
364#[non_exhaustive]
365pub enum ApiGetGroupLinkResponse {
366    /// GroupLink: Group link.
367    #[serde(rename = "groupLink")]
368    GroupLink(GroupLinkResponse),
369    /// ChatCmdError: Command error.
370    #[serde(rename = "chatCmdError")]
371    ChatCmdError(ChatCmdErrorResponse),
372    #[serde(untagged)]
373    Undocumented(BTreeMap<String, JsonObject>),
374}
375
376#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
377#[serde(tag = "type")]
378#[non_exhaustive]
379pub enum ApiAddContactResponse {
380    /// Invitation: One-time invitation.
381    #[serde(rename = "invitation")]
382    Invitation(InvitationResponse),
383    /// ChatCmdError: Command error.
384    #[serde(rename = "chatCmdError")]
385    ChatCmdError(ChatCmdErrorResponse),
386    #[serde(untagged)]
387    Undocumented(BTreeMap<String, JsonObject>),
388}
389
390#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
391#[serde(tag = "type")]
392#[non_exhaustive]
393pub enum ApiConnectPlanResponse {
394    /// ConnectionPlan: Connection link information.
395    #[serde(rename = "connectionPlan")]
396    ConnectionPlan(ConnectionPlanResponse),
397    /// ChatCmdError: Command error.
398    #[serde(rename = "chatCmdError")]
399    ChatCmdError(ChatCmdErrorResponse),
400    #[serde(untagged)]
401    Undocumented(BTreeMap<String, JsonObject>),
402}
403
404#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
405#[serde(tag = "type")]
406#[non_exhaustive]
407pub enum ApiConnectResponse {
408    /// SentConfirmation: Confirmation sent to one-time invitation.
409    #[serde(rename = "sentConfirmation")]
410    SentConfirmation(SentConfirmationResponse),
411    /// ContactAlreadyExists: Contact already exists.
412    #[serde(rename = "contactAlreadyExists")]
413    ContactAlreadyExists(ContactAlreadyExistsResponse),
414    /// SentInvitation: Invitation sent to contact address.
415    #[serde(rename = "sentInvitation")]
416    SentInvitation(SentInvitationResponse),
417    /// ChatCmdError: Command error.
418    #[serde(rename = "chatCmdError")]
419    ChatCmdError(ChatCmdErrorResponse),
420    #[serde(untagged)]
421    Undocumented(BTreeMap<String, JsonObject>),
422}
423
424#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
425#[serde(tag = "type")]
426#[non_exhaustive]
427pub enum ConnectResponse {
428    /// SentConfirmation: Confirmation sent to one-time invitation.
429    #[serde(rename = "sentConfirmation")]
430    SentConfirmation(SentConfirmationResponse),
431    /// ContactAlreadyExists: Contact already exists.
432    #[serde(rename = "contactAlreadyExists")]
433    ContactAlreadyExists(ContactAlreadyExistsResponse),
434    /// SentInvitation: Invitation sent to contact address.
435    #[serde(rename = "sentInvitation")]
436    SentInvitation(SentInvitationResponse),
437    /// ChatCmdError: Command error.
438    #[serde(rename = "chatCmdError")]
439    ChatCmdError(ChatCmdErrorResponse),
440    #[serde(untagged)]
441    Undocumented(BTreeMap<String, JsonObject>),
442}
443
444#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
445#[serde(tag = "type")]
446#[non_exhaustive]
447pub enum ApiAcceptContactResponse {
448    /// AcceptingContactRequest: Contact request accepted.
449    #[serde(rename = "acceptingContactRequest")]
450    AcceptingContactRequest(AcceptingContactRequestResponse),
451    /// ChatCmdError: Command error.
452    #[serde(rename = "chatCmdError")]
453    ChatCmdError(ChatCmdErrorResponse),
454    #[serde(untagged)]
455    Undocumented(BTreeMap<String, JsonObject>),
456}
457
458#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
459#[serde(tag = "type")]
460#[non_exhaustive]
461pub enum ApiRejectContactResponse {
462    /// ContactRequestRejected: Contact request rejected.
463    #[serde(rename = "contactRequestRejected")]
464    ContactRequestRejected(ContactRequestRejectedResponse),
465    /// ChatCmdError: Command error.
466    #[serde(rename = "chatCmdError")]
467    ChatCmdError(ChatCmdErrorResponse),
468    #[serde(untagged)]
469    Undocumented(BTreeMap<String, JsonObject>),
470}
471
472#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
473#[serde(tag = "type")]
474#[non_exhaustive]
475pub enum ApiListContactsResponse {
476    /// ContactsList: Contacts.
477    #[serde(rename = "contactsList")]
478    ContactsList(ContactsListResponse),
479    /// ChatCmdError: Command error.
480    #[serde(rename = "chatCmdError")]
481    ChatCmdError(ChatCmdErrorResponse),
482    #[serde(untagged)]
483    Undocumented(BTreeMap<String, JsonObject>),
484}
485
486#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
487#[serde(tag = "type")]
488#[non_exhaustive]
489pub enum ApiListGroupsResponse {
490    /// GroupsList: Groups.
491    #[serde(rename = "groupsList")]
492    GroupsList(GroupsListResponse),
493    /// ChatCmdError: Command error.
494    #[serde(rename = "chatCmdError")]
495    ChatCmdError(ChatCmdErrorResponse),
496    #[serde(untagged)]
497    Undocumented(BTreeMap<String, JsonObject>),
498}
499
500#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
501#[serde(tag = "type")]
502#[non_exhaustive]
503pub enum ApiDeleteChatResponse {
504    /// ContactDeleted: Contact deleted.
505    #[serde(rename = "contactDeleted")]
506    ContactDeleted(ContactDeletedResponse),
507    /// ContactConnectionDeleted: Connection deleted.
508    #[serde(rename = "contactConnectionDeleted")]
509    ContactConnectionDeleted(ContactConnectionDeletedResponse),
510    /// GroupDeletedUser: User deleted group.
511    #[serde(rename = "groupDeletedUser")]
512    GroupDeletedUser(GroupDeletedUserResponse),
513    /// ChatCmdError: Command error.
514    #[serde(rename = "chatCmdError")]
515    ChatCmdError(ChatCmdErrorResponse),
516    #[serde(untagged)]
517    Undocumented(BTreeMap<String, JsonObject>),
518}
519
520#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
521#[serde(tag = "type")]
522#[non_exhaustive]
523pub enum ShowActiveUserResponse {
524    /// ActiveUser: Active user profile.
525    #[serde(rename = "activeUser")]
526    ActiveUser(ActiveUserResponse),
527    /// ChatCmdError: Command error.
528    #[serde(rename = "chatCmdError")]
529    ChatCmdError(ChatCmdErrorResponse),
530    #[serde(untagged)]
531    Undocumented(BTreeMap<String, JsonObject>),
532}
533
534#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
535#[serde(tag = "type")]
536#[non_exhaustive]
537pub enum CreateActiveUserResponse {
538    /// ActiveUser: Active user profile.
539    #[serde(rename = "activeUser")]
540    ActiveUser(ActiveUserResponse),
541    /// ChatCmdError: Command error.
542    #[serde(rename = "chatCmdError")]
543    ChatCmdError(ChatCmdErrorResponse),
544    #[serde(untagged)]
545    Undocumented(BTreeMap<String, JsonObject>),
546}
547
548#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
549#[serde(tag = "type")]
550#[non_exhaustive]
551pub enum ListUsersResponse {
552    /// UsersList: Users.
553    #[serde(rename = "usersList")]
554    UsersList(UsersListResponse),
555    /// ChatCmdError: Command error.
556    #[serde(rename = "chatCmdError")]
557    ChatCmdError(ChatCmdErrorResponse),
558    #[serde(untagged)]
559    Undocumented(BTreeMap<String, JsonObject>),
560}
561
562#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
563#[serde(tag = "type")]
564#[non_exhaustive]
565pub enum ApiSetActiveUserResponse {
566    /// ActiveUser: Active user profile.
567    #[serde(rename = "activeUser")]
568    ActiveUser(ActiveUserResponse),
569    /// ChatCmdError: Command error.
570    #[serde(rename = "chatCmdError")]
571    ChatCmdError(ChatCmdErrorResponse),
572    #[serde(untagged)]
573    Undocumented(BTreeMap<String, JsonObject>),
574}
575
576#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
577#[serde(tag = "type")]
578#[non_exhaustive]
579pub enum ApiDeleteUserResponse {
580    /// CmdOk: Ok.
581    #[serde(rename = "cmdOk")]
582    CmdOk(CmdOkResponse),
583    /// ChatCmdError: Command error.
584    #[serde(rename = "chatCmdError")]
585    ChatCmdError(ChatCmdErrorResponse),
586    #[serde(untagged)]
587    Undocumented(BTreeMap<String, JsonObject>),
588}
589
590#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
591#[serde(tag = "type")]
592#[non_exhaustive]
593pub enum ApiUpdateProfileResponse {
594    /// UserProfileUpdated: User profile updated.
595    #[serde(rename = "userProfileUpdated")]
596    UserProfileUpdated(UserProfileUpdatedResponse),
597    /// UserProfileNoChange: User profile was not changed.
598    #[serde(rename = "userProfileNoChange")]
599    UserProfileNoChange(UserProfileNoChangeResponse),
600    /// ChatCmdError: Command error.
601    #[serde(rename = "chatCmdError")]
602    ChatCmdError(ChatCmdErrorResponse),
603    #[serde(untagged)]
604    Undocumented(BTreeMap<String, JsonObject>),
605}
606
607#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
608#[serde(tag = "type")]
609#[non_exhaustive]
610pub enum ApiSetContactPrefsResponse {
611    /// ContactPrefsUpdated: Contact preferences updated.
612    #[serde(rename = "contactPrefsUpdated")]
613    ContactPrefsUpdated(ContactPrefsUpdatedResponse),
614    /// ChatCmdError: Command error.
615    #[serde(rename = "chatCmdError")]
616    ChatCmdError(ChatCmdErrorResponse),
617    #[serde(untagged)]
618    Undocumented(BTreeMap<String, JsonObject>),
619}
620
621#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
622#[cfg_attr(feature = "bon", derive(::bon::Builder))]
623#[cfg_attr(feature = "bon", builder(on(String, into)))]
624pub struct AcceptingContactRequestResponse {
625    #[serde(rename = "user")]
626    pub user: User,
627
628    #[serde(rename = "contact")]
629    pub contact: Contact,
630
631    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
632    #[cfg_attr(feature = "bon", builder(default))]
633    pub undocumented: BTreeMap<String, JsonObject>,
634}
635
636#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
637#[cfg_attr(feature = "bon", derive(::bon::Builder))]
638#[cfg_attr(feature = "bon", builder(on(String, into)))]
639pub struct ActiveUserResponse {
640    #[serde(rename = "user")]
641    pub user: User,
642
643    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
644    #[cfg_attr(feature = "bon", builder(default))]
645    pub undocumented: BTreeMap<String, JsonObject>,
646}
647
648#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
649#[cfg_attr(feature = "bon", derive(::bon::Builder))]
650#[cfg_attr(feature = "bon", builder(on(String, into)))]
651pub struct ChatCmdErrorResponse {
652    #[serde(rename = "chatError")]
653    pub chat_error: ChatError,
654
655    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
656    #[cfg_attr(feature = "bon", builder(default))]
657    pub undocumented: BTreeMap<String, JsonObject>,
658}
659
660#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
661#[cfg_attr(feature = "bon", derive(::bon::Builder))]
662#[cfg_attr(feature = "bon", builder(on(String, into)))]
663pub struct ChatItemNotChangedResponse {
664    #[serde(rename = "user")]
665    pub user: User,
666
667    #[serde(rename = "chatItem")]
668    pub chat_item: AChatItem,
669
670    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
671    #[cfg_attr(feature = "bon", builder(default))]
672    pub undocumented: BTreeMap<String, JsonObject>,
673}
674
675#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
676#[cfg_attr(feature = "bon", derive(::bon::Builder))]
677#[cfg_attr(feature = "bon", builder(on(String, into)))]
678pub struct ChatItemReactionResponse {
679    #[serde(rename = "user")]
680    pub user: User,
681
682    #[serde(rename = "added")]
683    pub added: bool,
684
685    #[serde(rename = "reaction")]
686    pub reaction: ACIReaction,
687
688    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
689    #[cfg_attr(feature = "bon", builder(default))]
690    pub undocumented: BTreeMap<String, JsonObject>,
691}
692
693#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
694#[cfg_attr(feature = "bon", derive(::bon::Builder))]
695#[cfg_attr(feature = "bon", builder(on(String, into)))]
696pub struct ChatItemUpdatedResponse {
697    #[serde(rename = "user")]
698    pub user: User,
699
700    #[serde(rename = "chatItem")]
701    pub chat_item: AChatItem,
702
703    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
704    #[cfg_attr(feature = "bon", builder(default))]
705    pub undocumented: BTreeMap<String, JsonObject>,
706}
707
708#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
709#[cfg_attr(feature = "bon", derive(::bon::Builder))]
710#[cfg_attr(feature = "bon", builder(on(String, into)))]
711pub struct ChatItemsDeletedResponse {
712    #[serde(rename = "user")]
713    pub user: User,
714
715    #[serde(rename = "chatItemDeletions")]
716    pub chat_item_deletions: Vec<ChatItemDeletion>,
717
718    #[serde(rename = "byUser")]
719    pub by_user: bool,
720
721    #[serde(rename = "timed")]
722    pub timed: bool,
723
724    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
725    #[cfg_attr(feature = "bon", builder(default))]
726    pub undocumented: BTreeMap<String, JsonObject>,
727}
728
729#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
730#[cfg_attr(feature = "bon", derive(::bon::Builder))]
731#[cfg_attr(feature = "bon", builder(on(String, into)))]
732pub struct CmdOkResponse {
733    #[serde(rename = "user_", skip_serializing_if = "Option::is_none")]
734    pub user: Option<User>,
735
736    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
737    #[cfg_attr(feature = "bon", builder(default))]
738    pub undocumented: BTreeMap<String, JsonObject>,
739}
740
741#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
742#[cfg_attr(feature = "bon", derive(::bon::Builder))]
743#[cfg_attr(feature = "bon", builder(on(String, into)))]
744pub struct ConnectionPlanResponse {
745    #[serde(rename = "user")]
746    pub user: User,
747
748    #[serde(rename = "connLink")]
749    pub conn_link: CreatedConnLink,
750
751    #[serde(rename = "connectionPlan")]
752    pub connection_plan: ConnectionPlan,
753
754    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
755    #[cfg_attr(feature = "bon", builder(default))]
756    pub undocumented: BTreeMap<String, JsonObject>,
757}
758
759#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
760#[cfg_attr(feature = "bon", derive(::bon::Builder))]
761#[cfg_attr(feature = "bon", builder(on(String, into)))]
762pub struct ContactAlreadyExistsResponse {
763    #[serde(rename = "user")]
764    pub user: User,
765
766    #[serde(rename = "contact")]
767    pub contact: Contact,
768
769    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
770    #[cfg_attr(feature = "bon", builder(default))]
771    pub undocumented: BTreeMap<String, JsonObject>,
772}
773
774#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
775#[cfg_attr(feature = "bon", derive(::bon::Builder))]
776#[cfg_attr(feature = "bon", builder(on(String, into)))]
777pub struct ContactConnectionDeletedResponse {
778    #[serde(rename = "user")]
779    pub user: User,
780
781    #[serde(rename = "connection")]
782    pub connection: PendingContactConnection,
783
784    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
785    #[cfg_attr(feature = "bon", builder(default))]
786    pub undocumented: BTreeMap<String, JsonObject>,
787}
788
789#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
790#[cfg_attr(feature = "bon", derive(::bon::Builder))]
791#[cfg_attr(feature = "bon", builder(on(String, into)))]
792pub struct ContactDeletedResponse {
793    #[serde(rename = "user")]
794    pub user: User,
795
796    #[serde(rename = "contact")]
797    pub contact: Contact,
798
799    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
800    #[cfg_attr(feature = "bon", builder(default))]
801    pub undocumented: BTreeMap<String, JsonObject>,
802}
803
804#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
805#[cfg_attr(feature = "bon", derive(::bon::Builder))]
806#[cfg_attr(feature = "bon", builder(on(String, into)))]
807pub struct ContactPrefsUpdatedResponse {
808    #[serde(rename = "user")]
809    pub user: User,
810
811    #[serde(rename = "fromContact")]
812    pub from_contact: Contact,
813
814    #[serde(rename = "toContact")]
815    pub to_contact: Contact,
816
817    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
818    #[cfg_attr(feature = "bon", builder(default))]
819    pub undocumented: BTreeMap<String, JsonObject>,
820}
821
822#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
823#[cfg_attr(feature = "bon", derive(::bon::Builder))]
824#[cfg_attr(feature = "bon", builder(on(String, into)))]
825pub struct ContactRequestRejectedResponse {
826    #[serde(rename = "user")]
827    pub user: User,
828
829    #[serde(rename = "contactRequest")]
830    pub contact_request: UserContactRequest,
831
832    #[serde(rename = "contact_", skip_serializing_if = "Option::is_none")]
833    pub contact: Option<Contact>,
834
835    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
836    #[cfg_attr(feature = "bon", builder(default))]
837    pub undocumented: BTreeMap<String, JsonObject>,
838}
839
840#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
841#[cfg_attr(feature = "bon", derive(::bon::Builder))]
842#[cfg_attr(feature = "bon", builder(on(String, into)))]
843pub struct ContactsListResponse {
844    #[serde(rename = "user")]
845    pub user: User,
846
847    #[serde(rename = "contacts")]
848    pub contacts: Vec<Contact>,
849
850    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
851    #[cfg_attr(feature = "bon", builder(default))]
852    pub undocumented: BTreeMap<String, JsonObject>,
853}
854
855#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
856#[cfg_attr(feature = "bon", derive(::bon::Builder))]
857#[cfg_attr(feature = "bon", builder(on(String, into)))]
858pub struct GroupCreatedResponse {
859    #[serde(rename = "user")]
860    pub user: User,
861
862    #[serde(rename = "groupInfo")]
863    pub group_info: GroupInfo,
864
865    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
866    #[cfg_attr(feature = "bon", builder(default))]
867    pub undocumented: BTreeMap<String, JsonObject>,
868}
869
870#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
871#[cfg_attr(feature = "bon", derive(::bon::Builder))]
872#[cfg_attr(feature = "bon", builder(on(String, into)))]
873pub struct GroupDeletedUserResponse {
874    #[serde(rename = "user")]
875    pub user: User,
876
877    #[serde(rename = "groupInfo")]
878    pub group_info: GroupInfo,
879
880    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
881    #[cfg_attr(feature = "bon", builder(default))]
882    pub undocumented: BTreeMap<String, JsonObject>,
883}
884
885#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
886#[cfg_attr(feature = "bon", derive(::bon::Builder))]
887#[cfg_attr(feature = "bon", builder(on(String, into)))]
888pub struct GroupLinkCreatedResponse {
889    #[serde(rename = "user")]
890    pub user: User,
891
892    #[serde(rename = "groupInfo")]
893    pub group_info: GroupInfo,
894
895    #[serde(rename = "groupLink")]
896    pub group_link: GroupLink,
897
898    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
899    #[cfg_attr(feature = "bon", builder(default))]
900    pub undocumented: BTreeMap<String, JsonObject>,
901}
902
903#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
904#[cfg_attr(feature = "bon", derive(::bon::Builder))]
905#[cfg_attr(feature = "bon", builder(on(String, into)))]
906pub struct GroupLinkDeletedResponse {
907    #[serde(rename = "user")]
908    pub user: User,
909
910    #[serde(rename = "groupInfo")]
911    pub group_info: GroupInfo,
912
913    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
914    #[cfg_attr(feature = "bon", builder(default))]
915    pub undocumented: BTreeMap<String, JsonObject>,
916}
917
918#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
919#[cfg_attr(feature = "bon", derive(::bon::Builder))]
920#[cfg_attr(feature = "bon", builder(on(String, into)))]
921pub struct GroupLinkResponse {
922    #[serde(rename = "user")]
923    pub user: User,
924
925    #[serde(rename = "groupInfo")]
926    pub group_info: GroupInfo,
927
928    #[serde(rename = "groupLink")]
929    pub group_link: GroupLink,
930
931    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
932    #[cfg_attr(feature = "bon", builder(default))]
933    pub undocumented: BTreeMap<String, JsonObject>,
934}
935
936#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
937#[cfg_attr(feature = "bon", derive(::bon::Builder))]
938#[cfg_attr(feature = "bon", builder(on(String, into)))]
939pub struct GroupMembersResponse {
940    #[serde(rename = "user")]
941    pub user: User,
942
943    #[serde(rename = "group")]
944    pub group: Group,
945
946    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
947    #[cfg_attr(feature = "bon", builder(default))]
948    pub undocumented: BTreeMap<String, JsonObject>,
949}
950
951#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
952#[cfg_attr(feature = "bon", derive(::bon::Builder))]
953#[cfg_attr(feature = "bon", builder(on(String, into)))]
954pub struct GroupUpdatedResponse {
955    #[serde(rename = "user")]
956    pub user: User,
957
958    #[serde(rename = "fromGroup")]
959    pub from_group: GroupInfo,
960
961    #[serde(rename = "toGroup")]
962    pub to_group: GroupInfo,
963
964    #[serde(rename = "member_", skip_serializing_if = "Option::is_none")]
965    pub member: Option<GroupMember>,
966
967    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
968    #[cfg_attr(feature = "bon", builder(default))]
969    pub undocumented: BTreeMap<String, JsonObject>,
970}
971
972#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
973#[cfg_attr(feature = "bon", derive(::bon::Builder))]
974#[cfg_attr(feature = "bon", builder(on(String, into)))]
975pub struct GroupsListResponse {
976    #[serde(rename = "user")]
977    pub user: User,
978
979    #[serde(rename = "groups")]
980    pub groups: Vec<GroupInfoSummary>,
981
982    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
983    #[cfg_attr(feature = "bon", builder(default))]
984    pub undocumented: BTreeMap<String, JsonObject>,
985}
986
987#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
988#[cfg_attr(feature = "bon", derive(::bon::Builder))]
989#[cfg_attr(feature = "bon", builder(on(String, into)))]
990pub struct InvitationResponse {
991    #[serde(rename = "user")]
992    pub user: User,
993
994    #[serde(rename = "connLinkInvitation")]
995    pub conn_link_invitation: CreatedConnLink,
996
997    #[serde(rename = "connection")]
998    pub connection: PendingContactConnection,
999
1000    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
1001    #[cfg_attr(feature = "bon", builder(default))]
1002    pub undocumented: BTreeMap<String, JsonObject>,
1003}
1004
1005#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
1006#[cfg_attr(feature = "bon", derive(::bon::Builder))]
1007#[cfg_attr(feature = "bon", builder(on(String, into)))]
1008pub struct LeftMemberUserResponse {
1009    #[serde(rename = "user")]
1010    pub user: User,
1011
1012    #[serde(rename = "groupInfo")]
1013    pub group_info: GroupInfo,
1014
1015    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
1016    #[cfg_attr(feature = "bon", builder(default))]
1017    pub undocumented: BTreeMap<String, JsonObject>,
1018}
1019
1020#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
1021#[cfg_attr(feature = "bon", derive(::bon::Builder))]
1022#[cfg_attr(feature = "bon", builder(on(String, into)))]
1023pub struct MemberAcceptedResponse {
1024    #[serde(rename = "user")]
1025    pub user: User,
1026
1027    #[serde(rename = "groupInfo")]
1028    pub group_info: GroupInfo,
1029
1030    #[serde(rename = "member")]
1031    pub member: GroupMember,
1032
1033    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
1034    #[cfg_attr(feature = "bon", builder(default))]
1035    pub undocumented: BTreeMap<String, JsonObject>,
1036}
1037
1038#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
1039#[cfg_attr(feature = "bon", derive(::bon::Builder))]
1040#[cfg_attr(feature = "bon", builder(on(String, into)))]
1041pub struct MembersBlockedForAllUserResponse {
1042    #[serde(rename = "user")]
1043    pub user: User,
1044
1045    #[serde(rename = "groupInfo")]
1046    pub group_info: GroupInfo,
1047
1048    #[serde(rename = "members")]
1049    pub members: Vec<GroupMember>,
1050
1051    #[serde(rename = "blocked")]
1052    pub blocked: bool,
1053
1054    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
1055    #[cfg_attr(feature = "bon", builder(default))]
1056    pub undocumented: BTreeMap<String, JsonObject>,
1057}
1058
1059#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
1060#[cfg_attr(feature = "bon", derive(::bon::Builder))]
1061#[cfg_attr(feature = "bon", builder(on(String, into)))]
1062pub struct MembersRoleUserResponse {
1063    #[serde(rename = "user")]
1064    pub user: User,
1065
1066    #[serde(rename = "groupInfo")]
1067    pub group_info: GroupInfo,
1068
1069    #[serde(rename = "members")]
1070    pub members: Vec<GroupMember>,
1071
1072    #[serde(rename = "toRole")]
1073    pub to_role: GroupMemberRole,
1074
1075    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
1076    #[cfg_attr(feature = "bon", builder(default))]
1077    pub undocumented: BTreeMap<String, JsonObject>,
1078}
1079
1080#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
1081#[cfg_attr(feature = "bon", derive(::bon::Builder))]
1082#[cfg_attr(feature = "bon", builder(on(String, into)))]
1083pub struct NewChatItemsResponse {
1084    #[serde(rename = "user")]
1085    pub user: User,
1086
1087    #[serde(rename = "chatItems")]
1088    pub chat_items: Vec<AChatItem>,
1089
1090    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
1091    #[cfg_attr(feature = "bon", builder(default))]
1092    pub undocumented: BTreeMap<String, JsonObject>,
1093}
1094
1095#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
1096#[cfg_attr(feature = "bon", derive(::bon::Builder))]
1097#[cfg_attr(feature = "bon", builder(on(String, into)))]
1098pub struct RcvFileAcceptedResponse {
1099    #[serde(rename = "user")]
1100    pub user: User,
1101
1102    #[serde(rename = "chatItem")]
1103    pub chat_item: AChatItem,
1104
1105    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
1106    #[cfg_attr(feature = "bon", builder(default))]
1107    pub undocumented: BTreeMap<String, JsonObject>,
1108}
1109
1110#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
1111#[cfg_attr(feature = "bon", derive(::bon::Builder))]
1112#[cfg_attr(feature = "bon", builder(on(String, into)))]
1113pub struct RcvFileAcceptedSndCancelledResponse {
1114    #[serde(rename = "user")]
1115    pub user: User,
1116
1117    #[serde(rename = "rcvFileTransfer")]
1118    pub rcv_file_transfer: RcvFileTransfer,
1119
1120    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
1121    #[cfg_attr(feature = "bon", builder(default))]
1122    pub undocumented: BTreeMap<String, JsonObject>,
1123}
1124
1125#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
1126#[cfg_attr(feature = "bon", derive(::bon::Builder))]
1127#[cfg_attr(feature = "bon", builder(on(String, into)))]
1128pub struct RcvFileCancelledResponse {
1129    #[serde(rename = "user")]
1130    pub user: User,
1131
1132    #[serde(rename = "chatItem_", skip_serializing_if = "Option::is_none")]
1133    pub chat_item: Option<AChatItem>,
1134
1135    #[serde(rename = "rcvFileTransfer")]
1136    pub rcv_file_transfer: RcvFileTransfer,
1137
1138    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
1139    #[cfg_attr(feature = "bon", builder(default))]
1140    pub undocumented: BTreeMap<String, JsonObject>,
1141}
1142
1143#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
1144#[cfg_attr(feature = "bon", derive(::bon::Builder))]
1145#[cfg_attr(feature = "bon", builder(on(String, into)))]
1146pub struct SentConfirmationResponse {
1147    #[serde(rename = "user")]
1148    pub user: User,
1149
1150    #[serde(rename = "connection")]
1151    pub connection: PendingContactConnection,
1152
1153    #[serde(rename = "customUserProfile", skip_serializing_if = "Option::is_none")]
1154    pub custom_user_profile: Option<Profile>,
1155
1156    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
1157    #[cfg_attr(feature = "bon", builder(default))]
1158    pub undocumented: BTreeMap<String, JsonObject>,
1159}
1160
1161#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
1162#[cfg_attr(feature = "bon", derive(::bon::Builder))]
1163#[cfg_attr(feature = "bon", builder(on(String, into)))]
1164pub struct SentGroupInvitationResponse {
1165    #[serde(rename = "user")]
1166    pub user: User,
1167
1168    #[serde(rename = "groupInfo")]
1169    pub group_info: GroupInfo,
1170
1171    #[serde(rename = "contact")]
1172    pub contact: Contact,
1173
1174    #[serde(rename = "member")]
1175    pub member: GroupMember,
1176
1177    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
1178    #[cfg_attr(feature = "bon", builder(default))]
1179    pub undocumented: BTreeMap<String, JsonObject>,
1180}
1181
1182#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
1183#[cfg_attr(feature = "bon", derive(::bon::Builder))]
1184#[cfg_attr(feature = "bon", builder(on(String, into)))]
1185pub struct SentInvitationResponse {
1186    #[serde(rename = "user")]
1187    pub user: User,
1188
1189    #[serde(rename = "connection")]
1190    pub connection: PendingContactConnection,
1191
1192    #[serde(rename = "customUserProfile", skip_serializing_if = "Option::is_none")]
1193    pub custom_user_profile: Option<Profile>,
1194
1195    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
1196    #[cfg_attr(feature = "bon", builder(default))]
1197    pub undocumented: BTreeMap<String, JsonObject>,
1198}
1199
1200#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
1201#[cfg_attr(feature = "bon", derive(::bon::Builder))]
1202#[cfg_attr(feature = "bon", builder(on(String, into)))]
1203pub struct SndFileCancelledResponse {
1204    #[serde(rename = "user")]
1205    pub user: User,
1206
1207    #[serde(rename = "chatItem_", skip_serializing_if = "Option::is_none")]
1208    pub chat_item: Option<AChatItem>,
1209
1210    #[serde(rename = "fileTransferMeta")]
1211    pub file_transfer_meta: FileTransferMeta,
1212
1213    #[serde(rename = "sndFileTransfers")]
1214    pub snd_file_transfers: Vec<SndFileTransfer>,
1215
1216    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
1217    #[cfg_attr(feature = "bon", builder(default))]
1218    pub undocumented: BTreeMap<String, JsonObject>,
1219}
1220
1221#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
1222#[cfg_attr(feature = "bon", derive(::bon::Builder))]
1223#[cfg_attr(feature = "bon", builder(on(String, into)))]
1224pub struct UserAcceptedGroupSentResponse {
1225    #[serde(rename = "user")]
1226    pub user: User,
1227
1228    #[serde(rename = "groupInfo")]
1229    pub group_info: GroupInfo,
1230
1231    #[serde(rename = "hostContact", skip_serializing_if = "Option::is_none")]
1232    pub host_contact: Option<Contact>,
1233
1234    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
1235    #[cfg_attr(feature = "bon", builder(default))]
1236    pub undocumented: BTreeMap<String, JsonObject>,
1237}
1238
1239#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
1240#[cfg_attr(feature = "bon", derive(::bon::Builder))]
1241#[cfg_attr(feature = "bon", builder(on(String, into)))]
1242pub struct UserContactLinkCreatedResponse {
1243    #[serde(rename = "user")]
1244    pub user: User,
1245
1246    #[serde(rename = "connLinkContact")]
1247    pub conn_link_contact: CreatedConnLink,
1248
1249    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
1250    #[cfg_attr(feature = "bon", builder(default))]
1251    pub undocumented: BTreeMap<String, JsonObject>,
1252}
1253
1254#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
1255#[cfg_attr(feature = "bon", derive(::bon::Builder))]
1256#[cfg_attr(feature = "bon", builder(on(String, into)))]
1257pub struct UserContactLinkDeletedResponse {
1258    #[serde(rename = "user")]
1259    pub user: User,
1260
1261    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
1262    #[cfg_attr(feature = "bon", builder(default))]
1263    pub undocumented: BTreeMap<String, JsonObject>,
1264}
1265
1266#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
1267#[cfg_attr(feature = "bon", derive(::bon::Builder))]
1268#[cfg_attr(feature = "bon", builder(on(String, into)))]
1269pub struct UserContactLinkResponse {
1270    #[serde(rename = "user")]
1271    pub user: User,
1272
1273    #[serde(rename = "contactLink")]
1274    pub contact_link: UserContactLink,
1275
1276    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
1277    #[cfg_attr(feature = "bon", builder(default))]
1278    pub undocumented: BTreeMap<String, JsonObject>,
1279}
1280
1281#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
1282#[cfg_attr(feature = "bon", derive(::bon::Builder))]
1283#[cfg_attr(feature = "bon", builder(on(String, into)))]
1284pub struct UserContactLinkUpdatedResponse {
1285    #[serde(rename = "user")]
1286    pub user: User,
1287
1288    #[serde(rename = "contactLink")]
1289    pub contact_link: UserContactLink,
1290
1291    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
1292    #[cfg_attr(feature = "bon", builder(default))]
1293    pub undocumented: BTreeMap<String, JsonObject>,
1294}
1295
1296#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
1297#[cfg_attr(feature = "bon", derive(::bon::Builder))]
1298#[cfg_attr(feature = "bon", builder(on(String, into)))]
1299pub struct UserDeletedMembersResponse {
1300    #[serde(rename = "user")]
1301    pub user: User,
1302
1303    #[serde(rename = "groupInfo")]
1304    pub group_info: GroupInfo,
1305
1306    #[serde(rename = "members")]
1307    pub members: Vec<GroupMember>,
1308
1309    #[serde(rename = "withMessages")]
1310    pub with_messages: bool,
1311
1312    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
1313    #[cfg_attr(feature = "bon", builder(default))]
1314    pub undocumented: BTreeMap<String, JsonObject>,
1315}
1316
1317#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
1318#[cfg_attr(feature = "bon", derive(::bon::Builder))]
1319#[cfg_attr(feature = "bon", builder(on(String, into)))]
1320pub struct UserProfileNoChangeResponse {
1321    #[serde(rename = "user")]
1322    pub user: User,
1323
1324    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
1325    #[cfg_attr(feature = "bon", builder(default))]
1326    pub undocumented: BTreeMap<String, JsonObject>,
1327}
1328
1329#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
1330#[cfg_attr(feature = "bon", derive(::bon::Builder))]
1331#[cfg_attr(feature = "bon", builder(on(String, into)))]
1332pub struct UserProfileUpdatedResponse {
1333    #[serde(rename = "user")]
1334    pub user: User,
1335
1336    #[serde(rename = "fromProfile")]
1337    pub from_profile: Profile,
1338
1339    #[serde(rename = "toProfile")]
1340    pub to_profile: Profile,
1341
1342    #[serde(rename = "updateSummary")]
1343    pub update_summary: UserProfileUpdateSummary,
1344
1345    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
1346    #[cfg_attr(feature = "bon", builder(default))]
1347    pub undocumented: BTreeMap<String, JsonObject>,
1348}
1349
1350#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
1351#[cfg_attr(feature = "bon", derive(::bon::Builder))]
1352#[cfg_attr(feature = "bon", builder(on(String, into)))]
1353pub struct UsersListResponse {
1354    #[serde(rename = "users")]
1355    pub users: Vec<UserInfo>,
1356
1357    #[serde(flatten, skip_serializing_if = "BTreeMap::is_empty")]
1358    #[cfg_attr(feature = "bon", builder(default))]
1359    pub undocumented: BTreeMap<String, JsonObject>,
1360}