@simplex-chat/types 0.2.2 → 0.3.0

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.
package/src/responses.ts DELETED
@@ -1,423 +0,0 @@
1
- // API Responses
2
- // This file is generated automatically.
3
-
4
- import * as T from "./types"
5
-
6
- export type ChatResponse =
7
- | CR.AcceptingContactRequest
8
- | CR.ActiveUser
9
- | CR.ChatItemNotChanged
10
- | CR.ChatItemReaction
11
- | CR.ChatItemUpdated
12
- | CR.ChatItemsDeleted
13
- | CR.ChatRunning
14
- | CR.ChatStarted
15
- | CR.ChatStopped
16
- | CR.CmdOk
17
- | CR.ChatCmdError
18
- | CR.ConnectionPlan
19
- | CR.ContactAlreadyExists
20
- | CR.ContactConnectionDeleted
21
- | CR.ContactDeleted
22
- | CR.ContactPrefsUpdated
23
- | CR.ContactRequestRejected
24
- | CR.ContactsList
25
- | CR.GroupDeletedUser
26
- | CR.GroupLink
27
- | CR.GroupLinkCreated
28
- | CR.GroupLinkDeleted
29
- | CR.GroupCreated
30
- | CR.GroupMembers
31
- | CR.GroupUpdated
32
- | CR.GroupsList
33
- | CR.Invitation
34
- | CR.LeftMemberUser
35
- | CR.MemberAccepted
36
- | CR.MembersBlockedForAllUser
37
- | CR.MembersRoleUser
38
- | CR.NewChatItems
39
- | CR.RcvFileAccepted
40
- | CR.RcvFileAcceptedSndCancelled
41
- | CR.RcvFileCancelled
42
- | CR.SentConfirmation
43
- | CR.SentGroupInvitation
44
- | CR.SentInvitation
45
- | CR.SndFileCancelled
46
- | CR.UserAcceptedGroupSent
47
- | CR.UserContactLink
48
- | CR.UserContactLinkCreated
49
- | CR.UserContactLinkDeleted
50
- | CR.UserContactLinkUpdated
51
- | CR.UserDeletedMembers
52
- | CR.UserProfileUpdated
53
- | CR.UserProfileNoChange
54
- | CR.UsersList
55
- | CR.Unkwnown
56
-
57
- export namespace CR {
58
- export type Tag = KnownTag | UnknownTag
59
-
60
- export type KnownTag =
61
- | "acceptingContactRequest"
62
- | "activeUser"
63
- | "chatItemNotChanged"
64
- | "chatItemReaction"
65
- | "chatItemUpdated"
66
- | "chatItemsDeleted"
67
- | "chatRunning"
68
- | "chatStarted"
69
- | "chatStopped"
70
- | "cmdOk"
71
- | "chatCmdError"
72
- | "connectionPlan"
73
- | "contactAlreadyExists"
74
- | "contactConnectionDeleted"
75
- | "contactDeleted"
76
- | "contactPrefsUpdated"
77
- | "contactRequestRejected"
78
- | "contactsList"
79
- | "groupDeletedUser"
80
- | "groupLink"
81
- | "groupLinkCreated"
82
- | "groupLinkDeleted"
83
- | "groupCreated"
84
- | "groupMembers"
85
- | "groupUpdated"
86
- | "groupsList"
87
- | "invitation"
88
- | "leftMemberUser"
89
- | "memberAccepted"
90
- | "membersBlockedForAllUser"
91
- | "membersRoleUser"
92
- | "newChatItems"
93
- | "rcvFileAccepted"
94
- | "rcvFileAcceptedSndCancelled"
95
- | "rcvFileCancelled"
96
- | "sentConfirmation"
97
- | "sentGroupInvitation"
98
- | "sentInvitation"
99
- | "sndFileCancelled"
100
- | "userAcceptedGroupSent"
101
- | "userContactLink"
102
- | "userContactLinkCreated"
103
- | "userContactLinkDeleted"
104
- | "userContactLinkUpdated"
105
- | "userDeletedMembers"
106
- | "userProfileUpdated"
107
- | "userProfileNoChange"
108
- | "usersList"
109
-
110
- export interface Interface {
111
- type: Tag
112
- }
113
-
114
- export type UnknownTag = Exclude<string, KnownTag>;
115
-
116
- export interface AcceptingContactRequest extends Interface {
117
- type: "acceptingContactRequest"
118
- user: T.User
119
- contact: T.Contact
120
- }
121
-
122
- export interface ActiveUser extends Interface {
123
- type: "activeUser"
124
- user: T.User
125
- }
126
-
127
- export interface ChatItemNotChanged extends Interface {
128
- type: "chatItemNotChanged"
129
- user: T.User
130
- chatItem: T.AChatItem
131
- }
132
-
133
- export interface ChatItemReaction extends Interface {
134
- type: "chatItemReaction"
135
- user: T.User
136
- added: boolean
137
- reaction: T.ACIReaction
138
- }
139
-
140
- export interface ChatItemUpdated extends Interface {
141
- type: "chatItemUpdated"
142
- user: T.User
143
- chatItem: T.AChatItem
144
- }
145
-
146
- export interface ChatItemsDeleted extends Interface {
147
- type: "chatItemsDeleted"
148
- user: T.User
149
- chatItemDeletions: T.ChatItemDeletion[]
150
- byUser: boolean
151
- timed: boolean
152
- }
153
-
154
- export interface ChatRunning extends Interface {
155
- type: "chatRunning"
156
- }
157
-
158
- export interface ChatStarted extends Interface {
159
- type: "chatStarted"
160
- }
161
-
162
- export interface ChatStopped extends Interface {
163
- type: "chatStopped"
164
- }
165
-
166
- export interface CmdOk extends Interface {
167
- type: "cmdOk"
168
- user_?: T.User
169
- }
170
-
171
- export interface ChatCmdError extends Interface {
172
- type: "chatCmdError"
173
- chatError: T.ChatError
174
- }
175
-
176
- export interface ConnectionPlan extends Interface {
177
- type: "connectionPlan"
178
- user: T.User
179
- connLink: T.CreatedConnLink
180
- connectionPlan: T.ConnectionPlan
181
- }
182
-
183
- export interface ContactAlreadyExists extends Interface {
184
- type: "contactAlreadyExists"
185
- user: T.User
186
- contact: T.Contact
187
- }
188
-
189
- export interface ContactConnectionDeleted extends Interface {
190
- type: "contactConnectionDeleted"
191
- user: T.User
192
- connection: T.PendingContactConnection
193
- }
194
-
195
- export interface ContactDeleted extends Interface {
196
- type: "contactDeleted"
197
- user: T.User
198
- contact: T.Contact
199
- }
200
-
201
- export interface ContactPrefsUpdated extends Interface {
202
- type: "contactPrefsUpdated"
203
- user: T.User
204
- fromContact: T.Contact
205
- toContact: T.Contact
206
- }
207
-
208
- export interface ContactRequestRejected extends Interface {
209
- type: "contactRequestRejected"
210
- user: T.User
211
- contactRequest: T.UserContactRequest
212
- contact_?: T.Contact
213
- }
214
-
215
- export interface ContactsList extends Interface {
216
- type: "contactsList"
217
- user: T.User
218
- contacts: T.Contact[]
219
- }
220
-
221
- export interface GroupDeletedUser extends Interface {
222
- type: "groupDeletedUser"
223
- user: T.User
224
- groupInfo: T.GroupInfo
225
- }
226
-
227
- export interface GroupLink extends Interface {
228
- type: "groupLink"
229
- user: T.User
230
- groupInfo: T.GroupInfo
231
- groupLink: T.GroupLink
232
- }
233
-
234
- export interface GroupLinkCreated extends Interface {
235
- type: "groupLinkCreated"
236
- user: T.User
237
- groupInfo: T.GroupInfo
238
- groupLink: T.GroupLink
239
- }
240
-
241
- export interface GroupLinkDeleted extends Interface {
242
- type: "groupLinkDeleted"
243
- user: T.User
244
- groupInfo: T.GroupInfo
245
- }
246
-
247
- export interface GroupCreated extends Interface {
248
- type: "groupCreated"
249
- user: T.User
250
- groupInfo: T.GroupInfo
251
- }
252
-
253
- export interface GroupMembers extends Interface {
254
- type: "groupMembers"
255
- user: T.User
256
- group: T.Group
257
- }
258
-
259
- export interface GroupUpdated extends Interface {
260
- type: "groupUpdated"
261
- user: T.User
262
- fromGroup: T.GroupInfo
263
- toGroup: T.GroupInfo
264
- member_?: T.GroupMember
265
- }
266
-
267
- export interface GroupsList extends Interface {
268
- type: "groupsList"
269
- user: T.User
270
- groups: T.GroupInfo[]
271
- }
272
-
273
- export interface Invitation extends Interface {
274
- type: "invitation"
275
- user: T.User
276
- connLinkInvitation: T.CreatedConnLink
277
- connection: T.PendingContactConnection
278
- }
279
-
280
- export interface LeftMemberUser extends Interface {
281
- type: "leftMemberUser"
282
- user: T.User
283
- groupInfo: T.GroupInfo
284
- }
285
-
286
- export interface MemberAccepted extends Interface {
287
- type: "memberAccepted"
288
- user: T.User
289
- groupInfo: T.GroupInfo
290
- member: T.GroupMember
291
- }
292
-
293
- export interface MembersBlockedForAllUser extends Interface {
294
- type: "membersBlockedForAllUser"
295
- user: T.User
296
- groupInfo: T.GroupInfo
297
- members: T.GroupMember[]
298
- blocked: boolean
299
- }
300
-
301
- export interface MembersRoleUser extends Interface {
302
- type: "membersRoleUser"
303
- user: T.User
304
- groupInfo: T.GroupInfo
305
- members: T.GroupMember[]
306
- toRole: T.GroupMemberRole
307
- }
308
-
309
- export interface NewChatItems extends Interface {
310
- type: "newChatItems"
311
- user: T.User
312
- chatItems: T.AChatItem[]
313
- }
314
-
315
- export interface RcvFileAccepted extends Interface {
316
- type: "rcvFileAccepted"
317
- user: T.User
318
- chatItem: T.AChatItem
319
- }
320
-
321
- export interface RcvFileAcceptedSndCancelled extends Interface {
322
- type: "rcvFileAcceptedSndCancelled"
323
- user: T.User
324
- rcvFileTransfer: T.RcvFileTransfer
325
- }
326
-
327
- export interface RcvFileCancelled extends Interface {
328
- type: "rcvFileCancelled"
329
- user: T.User
330
- chatItem_?: T.AChatItem
331
- rcvFileTransfer: T.RcvFileTransfer
332
- }
333
-
334
- export interface SentConfirmation extends Interface {
335
- type: "sentConfirmation"
336
- user: T.User
337
- connection: T.PendingContactConnection
338
- customUserProfile?: T.Profile
339
- }
340
-
341
- export interface SentGroupInvitation extends Interface {
342
- type: "sentGroupInvitation"
343
- user: T.User
344
- groupInfo: T.GroupInfo
345
- contact: T.Contact
346
- member: T.GroupMember
347
- }
348
-
349
- export interface SentInvitation extends Interface {
350
- type: "sentInvitation"
351
- user: T.User
352
- connection: T.PendingContactConnection
353
- customUserProfile?: T.Profile
354
- }
355
-
356
- export interface SndFileCancelled extends Interface {
357
- type: "sndFileCancelled"
358
- user: T.User
359
- chatItem_?: T.AChatItem
360
- fileTransferMeta: T.FileTransferMeta
361
- sndFileTransfers: T.SndFileTransfer[]
362
- }
363
-
364
- export interface UserAcceptedGroupSent extends Interface {
365
- type: "userAcceptedGroupSent"
366
- user: T.User
367
- groupInfo: T.GroupInfo
368
- hostContact?: T.Contact
369
- }
370
-
371
- export interface UserContactLink extends Interface {
372
- type: "userContactLink"
373
- user: T.User
374
- contactLink: T.UserContactLink
375
- }
376
-
377
- export interface UserContactLinkCreated extends Interface {
378
- type: "userContactLinkCreated"
379
- user: T.User
380
- connLinkContact: T.CreatedConnLink
381
- }
382
-
383
- export interface UserContactLinkDeleted extends Interface {
384
- type: "userContactLinkDeleted"
385
- user: T.User
386
- }
387
-
388
- export interface UserContactLinkUpdated extends Interface {
389
- type: "userContactLinkUpdated"
390
- user: T.User
391
- contactLink: T.UserContactLink
392
- }
393
-
394
- export interface UserDeletedMembers extends Interface {
395
- type: "userDeletedMembers"
396
- user: T.User
397
- groupInfo: T.GroupInfo
398
- members: T.GroupMember[]
399
- withMessages: boolean
400
- }
401
-
402
- export interface UserProfileUpdated extends Interface {
403
- type: "userProfileUpdated"
404
- user: T.User
405
- fromProfile: T.Profile
406
- toProfile: T.Profile
407
- updateSummary: T.UserProfileUpdateSummary
408
- }
409
-
410
- export interface UserProfileNoChange extends Interface {
411
- type: "userProfileNoChange"
412
- user: T.User
413
- }
414
-
415
- export interface UsersList extends Interface {
416
- type: "usersList"
417
- users: T.UserInfo[]
418
- }
419
-
420
- export interface Unkwnown extends Interface {
421
- type: UnknownTag
422
- }
423
- }