simplex-chat 6.5.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,360 @@
1
+ # API Responses
2
+ # This file is generated automatically.
3
+ from __future__ import annotations
4
+ from typing import Literal, NotRequired, TypedDict
5
+ from . import _types as T
6
+
7
+ class AcceptingContactRequest(TypedDict):
8
+ type: Literal["acceptingContactRequest"]
9
+ user: "T.User"
10
+ contact: "T.Contact"
11
+
12
+ class ActiveUser(TypedDict):
13
+ type: Literal["activeUser"]
14
+ user: "T.User"
15
+
16
+ class ChatItemNotChanged(TypedDict):
17
+ type: Literal["chatItemNotChanged"]
18
+ user: "T.User"
19
+ chatItem: "T.AChatItem"
20
+
21
+ class ChatItemReaction(TypedDict):
22
+ type: Literal["chatItemReaction"]
23
+ user: "T.User"
24
+ added: bool
25
+ reaction: "T.ACIReaction"
26
+
27
+ class ChatItemUpdated(TypedDict):
28
+ type: Literal["chatItemUpdated"]
29
+ user: "T.User"
30
+ chatItem: "T.AChatItem"
31
+
32
+ class ChatItemsDeleted(TypedDict):
33
+ type: Literal["chatItemsDeleted"]
34
+ user: "T.User"
35
+ chatItemDeletions: list["T.ChatItemDeletion"]
36
+ byUser: bool
37
+ timed: bool
38
+
39
+ class ChatRunning(TypedDict):
40
+ type: Literal["chatRunning"]
41
+
42
+ class ChatStarted(TypedDict):
43
+ type: Literal["chatStarted"]
44
+
45
+ class ChatStopped(TypedDict):
46
+ type: Literal["chatStopped"]
47
+
48
+ class CmdOk(TypedDict):
49
+ type: Literal["cmdOk"]
50
+ user_: NotRequired["T.User"]
51
+
52
+ class ChatCmdError(TypedDict):
53
+ type: Literal["chatCmdError"]
54
+ chatError: "T.ChatError"
55
+
56
+ class ConnectionPlan(TypedDict):
57
+ type: Literal["connectionPlan"]
58
+ user: "T.User"
59
+ connLink: "T.CreatedConnLink"
60
+ connectionPlan: "T.ConnectionPlan"
61
+
62
+ class ContactAlreadyExists(TypedDict):
63
+ type: Literal["contactAlreadyExists"]
64
+ user: "T.User"
65
+ contact: "T.Contact"
66
+
67
+ class ContactConnectionDeleted(TypedDict):
68
+ type: Literal["contactConnectionDeleted"]
69
+ user: "T.User"
70
+ connection: "T.PendingContactConnection"
71
+
72
+ class ContactDeleted(TypedDict):
73
+ type: Literal["contactDeleted"]
74
+ user: "T.User"
75
+ contact: "T.Contact"
76
+
77
+ class ContactPrefsUpdated(TypedDict):
78
+ type: Literal["contactPrefsUpdated"]
79
+ user: "T.User"
80
+ fromContact: "T.Contact"
81
+ toContact: "T.Contact"
82
+
83
+ class ContactRequestRejected(TypedDict):
84
+ type: Literal["contactRequestRejected"]
85
+ user: "T.User"
86
+ contactRequest: "T.UserContactRequest"
87
+ contact_: NotRequired["T.Contact"]
88
+
89
+ class ContactsList(TypedDict):
90
+ type: Literal["contactsList"]
91
+ user: "T.User"
92
+ contacts: list["T.Contact"]
93
+
94
+ class GroupDeletedUser(TypedDict):
95
+ type: Literal["groupDeletedUser"]
96
+ user: "T.User"
97
+ groupInfo: "T.GroupInfo"
98
+ msgSigned: bool
99
+
100
+ class GroupLink(TypedDict):
101
+ type: Literal["groupLink"]
102
+ user: "T.User"
103
+ groupInfo: "T.GroupInfo"
104
+ groupLink: "T.GroupLink"
105
+
106
+ class GroupLinkCreated(TypedDict):
107
+ type: Literal["groupLinkCreated"]
108
+ user: "T.User"
109
+ groupInfo: "T.GroupInfo"
110
+ groupLink: "T.GroupLink"
111
+
112
+ class GroupLinkDeleted(TypedDict):
113
+ type: Literal["groupLinkDeleted"]
114
+ user: "T.User"
115
+ groupInfo: "T.GroupInfo"
116
+
117
+ class GroupCreated(TypedDict):
118
+ type: Literal["groupCreated"]
119
+ user: "T.User"
120
+ groupInfo: "T.GroupInfo"
121
+
122
+ class PublicGroupCreated(TypedDict):
123
+ type: Literal["publicGroupCreated"]
124
+ user: "T.User"
125
+ groupInfo: "T.GroupInfo"
126
+ groupLink: "T.GroupLink"
127
+ groupRelays: list["T.GroupRelay"]
128
+
129
+ class PublicGroupCreationFailed(TypedDict):
130
+ type: Literal["publicGroupCreationFailed"]
131
+ user: "T.User"
132
+ addRelayResults: list["T.AddRelayResult"]
133
+
134
+ class GroupRelays(TypedDict):
135
+ type: Literal["groupRelays"]
136
+ user: "T.User"
137
+ groupInfo: "T.GroupInfo"
138
+ groupRelays: list["T.GroupRelay"]
139
+
140
+ class GroupRelaysAdded(TypedDict):
141
+ type: Literal["groupRelaysAdded"]
142
+ user: "T.User"
143
+ groupInfo: "T.GroupInfo"
144
+ groupLink: "T.GroupLink"
145
+ groupRelays: list["T.GroupRelay"]
146
+
147
+ class GroupRelaysAddFailed(TypedDict):
148
+ type: Literal["groupRelaysAddFailed"]
149
+ user: "T.User"
150
+ addRelayResults: list["T.AddRelayResult"]
151
+
152
+ class GroupMembers(TypedDict):
153
+ type: Literal["groupMembers"]
154
+ user: "T.User"
155
+ group: "T.Group"
156
+
157
+ class GroupUpdated(TypedDict):
158
+ type: Literal["groupUpdated"]
159
+ user: "T.User"
160
+ fromGroup: "T.GroupInfo"
161
+ toGroup: "T.GroupInfo"
162
+ member_: NotRequired["T.GroupMember"]
163
+ msgSigned: bool
164
+
165
+ class GroupsList(TypedDict):
166
+ type: Literal["groupsList"]
167
+ user: "T.User"
168
+ groups: list["T.GroupInfo"]
169
+
170
+ class Invitation(TypedDict):
171
+ type: Literal["invitation"]
172
+ user: "T.User"
173
+ connLinkInvitation: "T.CreatedConnLink"
174
+ connection: "T.PendingContactConnection"
175
+
176
+ class LeftMemberUser(TypedDict):
177
+ type: Literal["leftMemberUser"]
178
+ user: "T.User"
179
+ groupInfo: "T.GroupInfo"
180
+
181
+ class MemberAccepted(TypedDict):
182
+ type: Literal["memberAccepted"]
183
+ user: "T.User"
184
+ groupInfo: "T.GroupInfo"
185
+ member: "T.GroupMember"
186
+
187
+ class MembersBlockedForAllUser(TypedDict):
188
+ type: Literal["membersBlockedForAllUser"]
189
+ user: "T.User"
190
+ groupInfo: "T.GroupInfo"
191
+ members: list["T.GroupMember"]
192
+ blocked: bool
193
+ msgSigned: bool
194
+
195
+ class MembersRoleUser(TypedDict):
196
+ type: Literal["membersRoleUser"]
197
+ user: "T.User"
198
+ groupInfo: "T.GroupInfo"
199
+ members: list["T.GroupMember"]
200
+ toRole: "T.GroupMemberRole"
201
+ msgSigned: bool
202
+
203
+ class NewChatItems(TypedDict):
204
+ type: Literal["newChatItems"]
205
+ user: "T.User"
206
+ chatItems: list["T.AChatItem"]
207
+
208
+ class RcvFileAccepted(TypedDict):
209
+ type: Literal["rcvFileAccepted"]
210
+ user: "T.User"
211
+ chatItem: "T.AChatItem"
212
+
213
+ class RcvFileAcceptedSndCancelled(TypedDict):
214
+ type: Literal["rcvFileAcceptedSndCancelled"]
215
+ user: "T.User"
216
+ rcvFileTransfer: "T.RcvFileTransfer"
217
+
218
+ class RcvFileCancelled(TypedDict):
219
+ type: Literal["rcvFileCancelled"]
220
+ user: "T.User"
221
+ chatItem_: NotRequired["T.AChatItem"]
222
+ rcvFileTransfer: "T.RcvFileTransfer"
223
+
224
+ class SentConfirmation(TypedDict):
225
+ type: Literal["sentConfirmation"]
226
+ user: "T.User"
227
+ connection: "T.PendingContactConnection"
228
+ customUserProfile: NotRequired["T.Profile"]
229
+
230
+ class SentGroupInvitation(TypedDict):
231
+ type: Literal["sentGroupInvitation"]
232
+ user: "T.User"
233
+ groupInfo: "T.GroupInfo"
234
+ contact: "T.Contact"
235
+ member: "T.GroupMember"
236
+
237
+ class SentInvitation(TypedDict):
238
+ type: Literal["sentInvitation"]
239
+ user: "T.User"
240
+ connection: "T.PendingContactConnection"
241
+ customUserProfile: NotRequired["T.Profile"]
242
+
243
+ class SndFileCancelled(TypedDict):
244
+ type: Literal["sndFileCancelled"]
245
+ user: "T.User"
246
+ chatItem_: NotRequired["T.AChatItem"]
247
+ fileTransferMeta: "T.FileTransferMeta"
248
+ sndFileTransfers: list["T.SndFileTransfer"]
249
+
250
+ class UserAcceptedGroupSent(TypedDict):
251
+ type: Literal["userAcceptedGroupSent"]
252
+ user: "T.User"
253
+ groupInfo: "T.GroupInfo"
254
+ hostContact: NotRequired["T.Contact"]
255
+
256
+ class UserContactLink(TypedDict):
257
+ type: Literal["userContactLink"]
258
+ user: "T.User"
259
+ contactLink: "T.UserContactLink"
260
+
261
+ class UserContactLinkCreated(TypedDict):
262
+ type: Literal["userContactLinkCreated"]
263
+ user: "T.User"
264
+ connLinkContact: "T.CreatedConnLink"
265
+
266
+ class UserContactLinkDeleted(TypedDict):
267
+ type: Literal["userContactLinkDeleted"]
268
+ user: "T.User"
269
+
270
+ class UserContactLinkUpdated(TypedDict):
271
+ type: Literal["userContactLinkUpdated"]
272
+ user: "T.User"
273
+ contactLink: "T.UserContactLink"
274
+
275
+ class UserDeletedMembers(TypedDict):
276
+ type: Literal["userDeletedMembers"]
277
+ user: "T.User"
278
+ groupInfo: "T.GroupInfo"
279
+ members: list["T.GroupMember"]
280
+ withMessages: bool
281
+ msgSigned: bool
282
+
283
+ class UserProfileUpdated(TypedDict):
284
+ type: Literal["userProfileUpdated"]
285
+ user: "T.User"
286
+ fromProfile: "T.Profile"
287
+ toProfile: "T.Profile"
288
+ updateSummary: "T.UserProfileUpdateSummary"
289
+
290
+ class UserProfileNoChange(TypedDict):
291
+ type: Literal["userProfileNoChange"]
292
+ user: "T.User"
293
+
294
+ class UsersList(TypedDict):
295
+ type: Literal["usersList"]
296
+ users: list["T.UserInfo"]
297
+
298
+ class ApiChats(TypedDict):
299
+ type: Literal["apiChats"]
300
+ user: "T.User"
301
+ chats: list["T.AChat"]
302
+
303
+ ChatResponse = (
304
+ AcceptingContactRequest
305
+ | ActiveUser
306
+ | ChatItemNotChanged
307
+ | ChatItemReaction
308
+ | ChatItemUpdated
309
+ | ChatItemsDeleted
310
+ | ChatRunning
311
+ | ChatStarted
312
+ | ChatStopped
313
+ | CmdOk
314
+ | ChatCmdError
315
+ | ConnectionPlan
316
+ | ContactAlreadyExists
317
+ | ContactConnectionDeleted
318
+ | ContactDeleted
319
+ | ContactPrefsUpdated
320
+ | ContactRequestRejected
321
+ | ContactsList
322
+ | GroupDeletedUser
323
+ | GroupLink
324
+ | GroupLinkCreated
325
+ | GroupLinkDeleted
326
+ | GroupCreated
327
+ | PublicGroupCreated
328
+ | PublicGroupCreationFailed
329
+ | GroupRelays
330
+ | GroupRelaysAdded
331
+ | GroupRelaysAddFailed
332
+ | GroupMembers
333
+ | GroupUpdated
334
+ | GroupsList
335
+ | Invitation
336
+ | LeftMemberUser
337
+ | MemberAccepted
338
+ | MembersBlockedForAllUser
339
+ | MembersRoleUser
340
+ | NewChatItems
341
+ | RcvFileAccepted
342
+ | RcvFileAcceptedSndCancelled
343
+ | RcvFileCancelled
344
+ | SentConfirmation
345
+ | SentGroupInvitation
346
+ | SentInvitation
347
+ | SndFileCancelled
348
+ | UserAcceptedGroupSent
349
+ | UserContactLink
350
+ | UserContactLinkCreated
351
+ | UserContactLinkDeleted
352
+ | UserContactLinkUpdated
353
+ | UserDeletedMembers
354
+ | UserProfileUpdated
355
+ | UserProfileNoChange
356
+ | UsersList
357
+ | ApiChats
358
+ )
359
+
360
+ ChatResponse_Tag = Literal["acceptingContactRequest", "activeUser", "chatItemNotChanged", "chatItemReaction", "chatItemUpdated", "chatItemsDeleted", "chatRunning", "chatStarted", "chatStopped", "cmdOk", "chatCmdError", "connectionPlan", "contactAlreadyExists", "contactConnectionDeleted", "contactDeleted", "contactPrefsUpdated", "contactRequestRejected", "contactsList", "groupDeletedUser", "groupLink", "groupLinkCreated", "groupLinkDeleted", "groupCreated", "publicGroupCreated", "publicGroupCreationFailed", "groupRelays", "groupRelaysAdded", "groupRelaysAddFailed", "groupMembers", "groupUpdated", "groupsList", "invitation", "leftMemberUser", "memberAccepted", "membersBlockedForAllUser", "membersRoleUser", "newChatItems", "rcvFileAccepted", "rcvFileAcceptedSndCancelled", "rcvFileCancelled", "sentConfirmation", "sentGroupInvitation", "sentInvitation", "sndFileCancelled", "userAcceptedGroupSent", "userContactLink", "userContactLinkCreated", "userContactLinkDeleted", "userContactLinkUpdated", "userDeletedMembers", "userProfileUpdated", "userProfileNoChange", "usersList", "apiChats"]