@simplex-chat/types 0.0.1
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/LICENSE +661 -0
- package/README.md +11 -0
- package/dist/commands.d.ts +332 -0
- package/dist/commands.js +293 -0
- package/dist/commands.js.map +1 -0
- package/dist/events.d.ts +290 -0
- package/dist/events.js +5 -0
- package/dist/events.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/dist/responses.d.ts +252 -0
- package/dist/responses.js +5 -0
- package/dist/responses.js.map +1 -0
- package/dist/types.d.ts +3056 -0
- package/dist/types.js +294 -0
- package/dist/types.js.map +1 -0
- package/package.json +37 -0
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,3056 @@
|
|
|
1
|
+
export interface ACIReaction {
|
|
2
|
+
chatInfo: ChatInfo;
|
|
3
|
+
chatReaction: CIReaction;
|
|
4
|
+
}
|
|
5
|
+
export interface AChat {
|
|
6
|
+
chatInfo: ChatInfo;
|
|
7
|
+
chatItems: [ChatItem];
|
|
8
|
+
chatStats: ChatStats;
|
|
9
|
+
}
|
|
10
|
+
export interface AChatItem {
|
|
11
|
+
chatInfo: ChatInfo;
|
|
12
|
+
chatItem: ChatItem;
|
|
13
|
+
}
|
|
14
|
+
export interface AddressSettings {
|
|
15
|
+
businessAddress: boolean;
|
|
16
|
+
autoAccept?: AutoAccept;
|
|
17
|
+
autoReply?: MsgContent;
|
|
18
|
+
}
|
|
19
|
+
export type AgentCryptoError = AgentCryptoError.DECRYPT_AES | AgentCryptoError.DECRYPT_CB | AgentCryptoError.RATCHET_HEADER | AgentCryptoError.RATCHET_SYNC;
|
|
20
|
+
export declare namespace AgentCryptoError {
|
|
21
|
+
export type Tag = "DECRYPT_AES" | "DECRYPT_CB" | "RATCHET_HEADER" | "RATCHET_SYNC";
|
|
22
|
+
interface Interface {
|
|
23
|
+
type: Tag;
|
|
24
|
+
}
|
|
25
|
+
export interface DECRYPT_AES extends Interface {
|
|
26
|
+
type: "DECRYPT_AES";
|
|
27
|
+
}
|
|
28
|
+
export interface DECRYPT_CB extends Interface {
|
|
29
|
+
type: "DECRYPT_CB";
|
|
30
|
+
}
|
|
31
|
+
export interface RATCHET_HEADER extends Interface {
|
|
32
|
+
type: "RATCHET_HEADER";
|
|
33
|
+
}
|
|
34
|
+
export interface RATCHET_SYNC extends Interface {
|
|
35
|
+
type: "RATCHET_SYNC";
|
|
36
|
+
}
|
|
37
|
+
export {};
|
|
38
|
+
}
|
|
39
|
+
export type AgentErrorType = AgentErrorType.CMD | AgentErrorType.CONN | AgentErrorType.NO_USER | AgentErrorType.SMP | AgentErrorType.NTF | AgentErrorType.XFTP | AgentErrorType.FILE | AgentErrorType.PROXY | AgentErrorType.RCP | AgentErrorType.BROKER | AgentErrorType.AGENT | AgentErrorType.INTERNAL | AgentErrorType.CRITICAL | AgentErrorType.INACTIVE;
|
|
40
|
+
export declare namespace AgentErrorType {
|
|
41
|
+
export type Tag = "CMD" | "CONN" | "NO_USER" | "SMP" | "NTF" | "XFTP" | "FILE" | "PROXY" | "RCP" | "BROKER" | "AGENT" | "INTERNAL" | "CRITICAL" | "INACTIVE";
|
|
42
|
+
interface Interface {
|
|
43
|
+
type: Tag;
|
|
44
|
+
}
|
|
45
|
+
export interface CMD extends Interface {
|
|
46
|
+
type: "CMD";
|
|
47
|
+
cmdErr: CommandErrorType;
|
|
48
|
+
errContext: string;
|
|
49
|
+
}
|
|
50
|
+
export interface CONN extends Interface {
|
|
51
|
+
type: "CONN";
|
|
52
|
+
connErr: ConnectionErrorType;
|
|
53
|
+
errContext: string;
|
|
54
|
+
}
|
|
55
|
+
export interface NO_USER extends Interface {
|
|
56
|
+
type: "NO_USER";
|
|
57
|
+
}
|
|
58
|
+
export interface SMP extends Interface {
|
|
59
|
+
type: "SMP";
|
|
60
|
+
serverAddress: string;
|
|
61
|
+
smpErr: ErrorType;
|
|
62
|
+
}
|
|
63
|
+
export interface NTF extends Interface {
|
|
64
|
+
type: "NTF";
|
|
65
|
+
serverAddress: string;
|
|
66
|
+
ntfErr: ErrorType;
|
|
67
|
+
}
|
|
68
|
+
export interface XFTP extends Interface {
|
|
69
|
+
type: "XFTP";
|
|
70
|
+
serverAddress: string;
|
|
71
|
+
xftpErr: XFTPErrorType;
|
|
72
|
+
}
|
|
73
|
+
export interface FILE extends Interface {
|
|
74
|
+
type: "FILE";
|
|
75
|
+
fileErr: FileErrorType;
|
|
76
|
+
}
|
|
77
|
+
export interface PROXY extends Interface {
|
|
78
|
+
type: "PROXY";
|
|
79
|
+
proxyServer: string;
|
|
80
|
+
relayServer: string;
|
|
81
|
+
proxyErr: ProxyClientError;
|
|
82
|
+
}
|
|
83
|
+
export interface RCP extends Interface {
|
|
84
|
+
type: "RCP";
|
|
85
|
+
rcpErr: RCErrorType;
|
|
86
|
+
}
|
|
87
|
+
export interface BROKER extends Interface {
|
|
88
|
+
type: "BROKER";
|
|
89
|
+
brokerAddress: string;
|
|
90
|
+
brokerErr: BrokerErrorType;
|
|
91
|
+
}
|
|
92
|
+
export interface AGENT extends Interface {
|
|
93
|
+
type: "AGENT";
|
|
94
|
+
agentErr: SMPAgentError;
|
|
95
|
+
}
|
|
96
|
+
export interface INTERNAL extends Interface {
|
|
97
|
+
type: "INTERNAL";
|
|
98
|
+
internalErr: string;
|
|
99
|
+
}
|
|
100
|
+
export interface CRITICAL extends Interface {
|
|
101
|
+
type: "CRITICAL";
|
|
102
|
+
offerRestart: boolean;
|
|
103
|
+
criticalErr: string;
|
|
104
|
+
}
|
|
105
|
+
export interface INACTIVE extends Interface {
|
|
106
|
+
type: "INACTIVE";
|
|
107
|
+
}
|
|
108
|
+
export {};
|
|
109
|
+
}
|
|
110
|
+
export interface AutoAccept {
|
|
111
|
+
acceptIncognito: boolean;
|
|
112
|
+
}
|
|
113
|
+
export interface BlockingInfo {
|
|
114
|
+
reason: BlockingReason;
|
|
115
|
+
}
|
|
116
|
+
export declare enum BlockingReason {
|
|
117
|
+
Spam = "spam",
|
|
118
|
+
Content = "content"
|
|
119
|
+
}
|
|
120
|
+
export type BrokerErrorType = BrokerErrorType.RESPONSE | BrokerErrorType.UNEXPECTED | BrokerErrorType.NETWORK | BrokerErrorType.HOST | BrokerErrorType.NO_SERVICE | BrokerErrorType.TRANSPORT | BrokerErrorType.TIMEOUT;
|
|
121
|
+
export declare namespace BrokerErrorType {
|
|
122
|
+
export type Tag = "RESPONSE" | "UNEXPECTED" | "NETWORK" | "HOST" | "NO_SERVICE" | "TRANSPORT" | "TIMEOUT";
|
|
123
|
+
interface Interface {
|
|
124
|
+
type: Tag;
|
|
125
|
+
}
|
|
126
|
+
export interface RESPONSE extends Interface {
|
|
127
|
+
type: "RESPONSE";
|
|
128
|
+
respErr: string;
|
|
129
|
+
}
|
|
130
|
+
export interface UNEXPECTED extends Interface {
|
|
131
|
+
type: "UNEXPECTED";
|
|
132
|
+
respErr: string;
|
|
133
|
+
}
|
|
134
|
+
export interface NETWORK extends Interface {
|
|
135
|
+
type: "NETWORK";
|
|
136
|
+
}
|
|
137
|
+
export interface HOST extends Interface {
|
|
138
|
+
type: "HOST";
|
|
139
|
+
}
|
|
140
|
+
export interface NO_SERVICE extends Interface {
|
|
141
|
+
type: "NO_SERVICE";
|
|
142
|
+
}
|
|
143
|
+
export interface TRANSPORT extends Interface {
|
|
144
|
+
type: "TRANSPORT";
|
|
145
|
+
transportErr: TransportError;
|
|
146
|
+
}
|
|
147
|
+
export interface TIMEOUT extends Interface {
|
|
148
|
+
type: "TIMEOUT";
|
|
149
|
+
}
|
|
150
|
+
export {};
|
|
151
|
+
}
|
|
152
|
+
export interface BusinessChatInfo {
|
|
153
|
+
chatType: BusinessChatType;
|
|
154
|
+
businessId: string;
|
|
155
|
+
customerId: string;
|
|
156
|
+
}
|
|
157
|
+
export declare enum BusinessChatType {
|
|
158
|
+
Business = "business",
|
|
159
|
+
Customer = "customer"
|
|
160
|
+
}
|
|
161
|
+
export declare enum CICallStatus {
|
|
162
|
+
Pending = "pending",
|
|
163
|
+
Missed = "missed",
|
|
164
|
+
Rejected = "rejected",
|
|
165
|
+
Accepted = "accepted",
|
|
166
|
+
Negotiated = "negotiated",
|
|
167
|
+
Progress = "progress",
|
|
168
|
+
Ended = "ended",
|
|
169
|
+
Error = "error"
|
|
170
|
+
}
|
|
171
|
+
export type CIContent = CIContent.SndMsgContent | CIContent.RcvMsgContent | CIContent.SndDeleted | CIContent.RcvDeleted | CIContent.SndCall | CIContent.RcvCall | CIContent.RcvIntegrityError | CIContent.RcvDecryptionError | CIContent.RcvGroupInvitation | CIContent.SndGroupInvitation | CIContent.RcvDirectEvent | CIContent.RcvGroupEvent | CIContent.SndGroupEvent | CIContent.RcvConnEvent | CIContent.SndConnEvent | CIContent.RcvChatFeature | CIContent.SndChatFeature | CIContent.RcvChatPreference | CIContent.SndChatPreference | CIContent.RcvGroupFeature | CIContent.SndGroupFeature | CIContent.RcvChatFeatureRejected | CIContent.RcvGroupFeatureRejected | CIContent.SndModerated | CIContent.RcvModerated | CIContent.RcvBlocked | CIContent.SndDirectE2EEInfo | CIContent.RcvDirectE2EEInfo | CIContent.SndGroupE2EEInfo | CIContent.RcvGroupE2EEInfo | CIContent.ChatBanner;
|
|
172
|
+
export declare namespace CIContent {
|
|
173
|
+
export type Tag = "sndMsgContent" | "rcvMsgContent" | "sndDeleted" | "rcvDeleted" | "sndCall" | "rcvCall" | "rcvIntegrityError" | "rcvDecryptionError" | "rcvGroupInvitation" | "sndGroupInvitation" | "rcvDirectEvent" | "rcvGroupEvent" | "sndGroupEvent" | "rcvConnEvent" | "sndConnEvent" | "rcvChatFeature" | "sndChatFeature" | "rcvChatPreference" | "sndChatPreference" | "rcvGroupFeature" | "sndGroupFeature" | "rcvChatFeatureRejected" | "rcvGroupFeatureRejected" | "sndModerated" | "rcvModerated" | "rcvBlocked" | "sndDirectE2EEInfo" | "rcvDirectE2EEInfo" | "sndGroupE2EEInfo" | "rcvGroupE2EEInfo" | "chatBanner";
|
|
174
|
+
interface Interface {
|
|
175
|
+
type: Tag;
|
|
176
|
+
}
|
|
177
|
+
export interface SndMsgContent extends Interface {
|
|
178
|
+
type: "sndMsgContent";
|
|
179
|
+
msgContent: MsgContent;
|
|
180
|
+
}
|
|
181
|
+
export interface RcvMsgContent extends Interface {
|
|
182
|
+
type: "rcvMsgContent";
|
|
183
|
+
msgContent: MsgContent;
|
|
184
|
+
}
|
|
185
|
+
export interface SndDeleted extends Interface {
|
|
186
|
+
type: "sndDeleted";
|
|
187
|
+
deleteMode: CIDeleteMode;
|
|
188
|
+
}
|
|
189
|
+
export interface RcvDeleted extends Interface {
|
|
190
|
+
type: "rcvDeleted";
|
|
191
|
+
deleteMode: CIDeleteMode;
|
|
192
|
+
}
|
|
193
|
+
export interface SndCall extends Interface {
|
|
194
|
+
type: "sndCall";
|
|
195
|
+
status: CICallStatus;
|
|
196
|
+
duration: number;
|
|
197
|
+
}
|
|
198
|
+
export interface RcvCall extends Interface {
|
|
199
|
+
type: "rcvCall";
|
|
200
|
+
status: CICallStatus;
|
|
201
|
+
duration: number;
|
|
202
|
+
}
|
|
203
|
+
export interface RcvIntegrityError extends Interface {
|
|
204
|
+
type: "rcvIntegrityError";
|
|
205
|
+
msgError: MsgErrorType;
|
|
206
|
+
}
|
|
207
|
+
export interface RcvDecryptionError extends Interface {
|
|
208
|
+
type: "rcvDecryptionError";
|
|
209
|
+
msgDecryptError: MsgDecryptError;
|
|
210
|
+
msgCount: number;
|
|
211
|
+
}
|
|
212
|
+
export interface RcvGroupInvitation extends Interface {
|
|
213
|
+
type: "rcvGroupInvitation";
|
|
214
|
+
groupInvitation: CIGroupInvitation;
|
|
215
|
+
memberRole: GroupMemberRole;
|
|
216
|
+
}
|
|
217
|
+
export interface SndGroupInvitation extends Interface {
|
|
218
|
+
type: "sndGroupInvitation";
|
|
219
|
+
groupInvitation: CIGroupInvitation;
|
|
220
|
+
memberRole: GroupMemberRole;
|
|
221
|
+
}
|
|
222
|
+
export interface RcvDirectEvent extends Interface {
|
|
223
|
+
type: "rcvDirectEvent";
|
|
224
|
+
rcvDirectEvent: RcvDirectEvent;
|
|
225
|
+
}
|
|
226
|
+
export interface RcvGroupEvent extends Interface {
|
|
227
|
+
type: "rcvGroupEvent";
|
|
228
|
+
rcvGroupEvent: RcvGroupEvent;
|
|
229
|
+
}
|
|
230
|
+
export interface SndGroupEvent extends Interface {
|
|
231
|
+
type: "sndGroupEvent";
|
|
232
|
+
sndGroupEvent: SndGroupEvent;
|
|
233
|
+
}
|
|
234
|
+
export interface RcvConnEvent extends Interface {
|
|
235
|
+
type: "rcvConnEvent";
|
|
236
|
+
rcvConnEvent: RcvConnEvent;
|
|
237
|
+
}
|
|
238
|
+
export interface SndConnEvent extends Interface {
|
|
239
|
+
type: "sndConnEvent";
|
|
240
|
+
sndConnEvent: SndConnEvent;
|
|
241
|
+
}
|
|
242
|
+
export interface RcvChatFeature extends Interface {
|
|
243
|
+
type: "rcvChatFeature";
|
|
244
|
+
feature: ChatFeature;
|
|
245
|
+
enabled: PrefEnabled;
|
|
246
|
+
param?: number;
|
|
247
|
+
}
|
|
248
|
+
export interface SndChatFeature extends Interface {
|
|
249
|
+
type: "sndChatFeature";
|
|
250
|
+
feature: ChatFeature;
|
|
251
|
+
enabled: PrefEnabled;
|
|
252
|
+
param?: number;
|
|
253
|
+
}
|
|
254
|
+
export interface RcvChatPreference extends Interface {
|
|
255
|
+
type: "rcvChatPreference";
|
|
256
|
+
feature: ChatFeature;
|
|
257
|
+
allowed: FeatureAllowed;
|
|
258
|
+
param?: number;
|
|
259
|
+
}
|
|
260
|
+
export interface SndChatPreference extends Interface {
|
|
261
|
+
type: "sndChatPreference";
|
|
262
|
+
feature: ChatFeature;
|
|
263
|
+
allowed: FeatureAllowed;
|
|
264
|
+
param?: number;
|
|
265
|
+
}
|
|
266
|
+
export interface RcvGroupFeature extends Interface {
|
|
267
|
+
type: "rcvGroupFeature";
|
|
268
|
+
groupFeature: GroupFeature;
|
|
269
|
+
preference: GroupPreference;
|
|
270
|
+
param?: number;
|
|
271
|
+
memberRole_?: GroupMemberRole;
|
|
272
|
+
}
|
|
273
|
+
export interface SndGroupFeature extends Interface {
|
|
274
|
+
type: "sndGroupFeature";
|
|
275
|
+
groupFeature: GroupFeature;
|
|
276
|
+
preference: GroupPreference;
|
|
277
|
+
param?: number;
|
|
278
|
+
memberRole_?: GroupMemberRole;
|
|
279
|
+
}
|
|
280
|
+
export interface RcvChatFeatureRejected extends Interface {
|
|
281
|
+
type: "rcvChatFeatureRejected";
|
|
282
|
+
feature: ChatFeature;
|
|
283
|
+
}
|
|
284
|
+
export interface RcvGroupFeatureRejected extends Interface {
|
|
285
|
+
type: "rcvGroupFeatureRejected";
|
|
286
|
+
groupFeature: GroupFeature;
|
|
287
|
+
}
|
|
288
|
+
export interface SndModerated extends Interface {
|
|
289
|
+
type: "sndModerated";
|
|
290
|
+
}
|
|
291
|
+
export interface RcvModerated extends Interface {
|
|
292
|
+
type: "rcvModerated";
|
|
293
|
+
}
|
|
294
|
+
export interface RcvBlocked extends Interface {
|
|
295
|
+
type: "rcvBlocked";
|
|
296
|
+
}
|
|
297
|
+
export interface SndDirectE2EEInfo extends Interface {
|
|
298
|
+
type: "sndDirectE2EEInfo";
|
|
299
|
+
e2eeInfo: E2EInfo;
|
|
300
|
+
}
|
|
301
|
+
export interface RcvDirectE2EEInfo extends Interface {
|
|
302
|
+
type: "rcvDirectE2EEInfo";
|
|
303
|
+
e2eeInfo: E2EInfo;
|
|
304
|
+
}
|
|
305
|
+
export interface SndGroupE2EEInfo extends Interface {
|
|
306
|
+
type: "sndGroupE2EEInfo";
|
|
307
|
+
e2eeInfo: E2EInfo;
|
|
308
|
+
}
|
|
309
|
+
export interface RcvGroupE2EEInfo extends Interface {
|
|
310
|
+
type: "rcvGroupE2EEInfo";
|
|
311
|
+
e2eeInfo: E2EInfo;
|
|
312
|
+
}
|
|
313
|
+
export interface ChatBanner extends Interface {
|
|
314
|
+
type: "chatBanner";
|
|
315
|
+
}
|
|
316
|
+
export {};
|
|
317
|
+
}
|
|
318
|
+
export declare enum CIDeleteMode {
|
|
319
|
+
Broadcast = "broadcast",
|
|
320
|
+
Internal = "internal",
|
|
321
|
+
InternalMark = "internalMark"
|
|
322
|
+
}
|
|
323
|
+
export type CIDeleted = CIDeleted.Deleted | CIDeleted.Blocked | CIDeleted.BlockedByAdmin | CIDeleted.Moderated;
|
|
324
|
+
export declare namespace CIDeleted {
|
|
325
|
+
export type Tag = "deleted" | "blocked" | "blockedByAdmin" | "moderated";
|
|
326
|
+
interface Interface {
|
|
327
|
+
type: Tag;
|
|
328
|
+
}
|
|
329
|
+
export interface Deleted extends Interface {
|
|
330
|
+
type: "deleted";
|
|
331
|
+
deletedTs?: string;
|
|
332
|
+
chatType: ChatType;
|
|
333
|
+
}
|
|
334
|
+
export interface Blocked extends Interface {
|
|
335
|
+
type: "blocked";
|
|
336
|
+
deletedTs?: string;
|
|
337
|
+
}
|
|
338
|
+
export interface BlockedByAdmin extends Interface {
|
|
339
|
+
type: "blockedByAdmin";
|
|
340
|
+
deletedTs?: string;
|
|
341
|
+
}
|
|
342
|
+
export interface Moderated extends Interface {
|
|
343
|
+
type: "moderated";
|
|
344
|
+
deletedTs?: string;
|
|
345
|
+
byGroupMember: GroupMember;
|
|
346
|
+
}
|
|
347
|
+
export {};
|
|
348
|
+
}
|
|
349
|
+
export type CIDirection = CIDirection.DirectSnd | CIDirection.DirectRcv | CIDirection.GroupSnd | CIDirection.GroupRcv | CIDirection.LocalSnd | CIDirection.LocalRcv;
|
|
350
|
+
export declare namespace CIDirection {
|
|
351
|
+
export type Tag = "directSnd" | "directRcv" | "groupSnd" | "groupRcv" | "localSnd" | "localRcv";
|
|
352
|
+
interface Interface {
|
|
353
|
+
type: Tag;
|
|
354
|
+
}
|
|
355
|
+
export interface DirectSnd extends Interface {
|
|
356
|
+
type: "directSnd";
|
|
357
|
+
}
|
|
358
|
+
export interface DirectRcv extends Interface {
|
|
359
|
+
type: "directRcv";
|
|
360
|
+
}
|
|
361
|
+
export interface GroupSnd extends Interface {
|
|
362
|
+
type: "groupSnd";
|
|
363
|
+
}
|
|
364
|
+
export interface GroupRcv extends Interface {
|
|
365
|
+
type: "groupRcv";
|
|
366
|
+
groupMember: GroupMember;
|
|
367
|
+
}
|
|
368
|
+
export interface LocalSnd extends Interface {
|
|
369
|
+
type: "localSnd";
|
|
370
|
+
}
|
|
371
|
+
export interface LocalRcv extends Interface {
|
|
372
|
+
type: "localRcv";
|
|
373
|
+
}
|
|
374
|
+
export {};
|
|
375
|
+
}
|
|
376
|
+
export interface CIFile {
|
|
377
|
+
fileId: number;
|
|
378
|
+
fileName: string;
|
|
379
|
+
fileSize: number;
|
|
380
|
+
fileSource?: CryptoFile;
|
|
381
|
+
fileStatus: CIFileStatus;
|
|
382
|
+
fileProtocol: FileProtocol;
|
|
383
|
+
}
|
|
384
|
+
export type CIFileStatus = CIFileStatus.SndStored | CIFileStatus.SndTransfer | CIFileStatus.SndCancelled | CIFileStatus.SndComplete | CIFileStatus.SndError | CIFileStatus.SndWarning | CIFileStatus.RcvInvitation | CIFileStatus.RcvAccepted | CIFileStatus.RcvTransfer | CIFileStatus.RcvAborted | CIFileStatus.RcvComplete | CIFileStatus.RcvCancelled | CIFileStatus.RcvError | CIFileStatus.RcvWarning | CIFileStatus.Invalid;
|
|
385
|
+
export declare namespace CIFileStatus {
|
|
386
|
+
export type Tag = "sndStored" | "sndTransfer" | "sndCancelled" | "sndComplete" | "sndError" | "sndWarning" | "rcvInvitation" | "rcvAccepted" | "rcvTransfer" | "rcvAborted" | "rcvComplete" | "rcvCancelled" | "rcvError" | "rcvWarning" | "invalid";
|
|
387
|
+
interface Interface {
|
|
388
|
+
type: Tag;
|
|
389
|
+
}
|
|
390
|
+
export interface SndStored extends Interface {
|
|
391
|
+
type: "sndStored";
|
|
392
|
+
}
|
|
393
|
+
export interface SndTransfer extends Interface {
|
|
394
|
+
type: "sndTransfer";
|
|
395
|
+
sndProgress: number;
|
|
396
|
+
sndTotal: number;
|
|
397
|
+
}
|
|
398
|
+
export interface SndCancelled extends Interface {
|
|
399
|
+
type: "sndCancelled";
|
|
400
|
+
}
|
|
401
|
+
export interface SndComplete extends Interface {
|
|
402
|
+
type: "sndComplete";
|
|
403
|
+
}
|
|
404
|
+
export interface SndError extends Interface {
|
|
405
|
+
type: "sndError";
|
|
406
|
+
sndFileError: FileError;
|
|
407
|
+
}
|
|
408
|
+
export interface SndWarning extends Interface {
|
|
409
|
+
type: "sndWarning";
|
|
410
|
+
sndFileError: FileError;
|
|
411
|
+
}
|
|
412
|
+
export interface RcvInvitation extends Interface {
|
|
413
|
+
type: "rcvInvitation";
|
|
414
|
+
}
|
|
415
|
+
export interface RcvAccepted extends Interface {
|
|
416
|
+
type: "rcvAccepted";
|
|
417
|
+
}
|
|
418
|
+
export interface RcvTransfer extends Interface {
|
|
419
|
+
type: "rcvTransfer";
|
|
420
|
+
rcvProgress: number;
|
|
421
|
+
rcvTotal: number;
|
|
422
|
+
}
|
|
423
|
+
export interface RcvAborted extends Interface {
|
|
424
|
+
type: "rcvAborted";
|
|
425
|
+
}
|
|
426
|
+
export interface RcvComplete extends Interface {
|
|
427
|
+
type: "rcvComplete";
|
|
428
|
+
}
|
|
429
|
+
export interface RcvCancelled extends Interface {
|
|
430
|
+
type: "rcvCancelled";
|
|
431
|
+
}
|
|
432
|
+
export interface RcvError extends Interface {
|
|
433
|
+
type: "rcvError";
|
|
434
|
+
rcvFileError: FileError;
|
|
435
|
+
}
|
|
436
|
+
export interface RcvWarning extends Interface {
|
|
437
|
+
type: "rcvWarning";
|
|
438
|
+
rcvFileError: FileError;
|
|
439
|
+
}
|
|
440
|
+
export interface Invalid extends Interface {
|
|
441
|
+
type: "invalid";
|
|
442
|
+
text: string;
|
|
443
|
+
}
|
|
444
|
+
export {};
|
|
445
|
+
}
|
|
446
|
+
export type CIForwardedFrom = CIForwardedFrom.Unknown | CIForwardedFrom.Contact | CIForwardedFrom.Group;
|
|
447
|
+
export declare namespace CIForwardedFrom {
|
|
448
|
+
export type Tag = "unknown" | "contact" | "group";
|
|
449
|
+
interface Interface {
|
|
450
|
+
type: Tag;
|
|
451
|
+
}
|
|
452
|
+
export interface Unknown extends Interface {
|
|
453
|
+
type: "unknown";
|
|
454
|
+
}
|
|
455
|
+
export interface Contact extends Interface {
|
|
456
|
+
type: "contact";
|
|
457
|
+
chatName: string;
|
|
458
|
+
msgDir: MsgDirection;
|
|
459
|
+
contactId?: number;
|
|
460
|
+
chatItemId?: number;
|
|
461
|
+
}
|
|
462
|
+
export interface Group extends Interface {
|
|
463
|
+
type: "group";
|
|
464
|
+
chatName: string;
|
|
465
|
+
msgDir: MsgDirection;
|
|
466
|
+
groupId?: number;
|
|
467
|
+
chatItemId?: number;
|
|
468
|
+
}
|
|
469
|
+
export {};
|
|
470
|
+
}
|
|
471
|
+
export interface CIGroupInvitation {
|
|
472
|
+
groupId: number;
|
|
473
|
+
groupMemberId: number;
|
|
474
|
+
localDisplayName: string;
|
|
475
|
+
groupProfile: GroupProfile;
|
|
476
|
+
status: CIGroupInvitationStatus;
|
|
477
|
+
}
|
|
478
|
+
export declare enum CIGroupInvitationStatus {
|
|
479
|
+
Pending = "pending",
|
|
480
|
+
Accepted = "accepted",
|
|
481
|
+
Rejected = "rejected",
|
|
482
|
+
Expired = "expired"
|
|
483
|
+
}
|
|
484
|
+
export interface CIMention {
|
|
485
|
+
memberId: string;
|
|
486
|
+
memberRef?: CIMentionMember;
|
|
487
|
+
}
|
|
488
|
+
export interface CIMentionMember {
|
|
489
|
+
groupMemberId: number;
|
|
490
|
+
displayName: string;
|
|
491
|
+
localAlias?: string;
|
|
492
|
+
memberRole: GroupMemberRole;
|
|
493
|
+
}
|
|
494
|
+
export interface CIMeta {
|
|
495
|
+
itemId: number;
|
|
496
|
+
itemTs: string;
|
|
497
|
+
itemText: string;
|
|
498
|
+
itemStatus: CIStatus;
|
|
499
|
+
sentViaProxy?: boolean;
|
|
500
|
+
itemSharedMsgId?: string;
|
|
501
|
+
itemForwarded?: CIForwardedFrom;
|
|
502
|
+
itemDeleted?: CIDeleted;
|
|
503
|
+
itemEdited: boolean;
|
|
504
|
+
itemTimed?: CITimed;
|
|
505
|
+
itemLive?: boolean;
|
|
506
|
+
userMention: boolean;
|
|
507
|
+
deletable: boolean;
|
|
508
|
+
editable: boolean;
|
|
509
|
+
forwardedByMember?: number;
|
|
510
|
+
showGroupAsSender: boolean;
|
|
511
|
+
createdAt: string;
|
|
512
|
+
updatedAt: string;
|
|
513
|
+
}
|
|
514
|
+
export interface CIQuote {
|
|
515
|
+
chatDir?: CIDirection;
|
|
516
|
+
itemId?: number;
|
|
517
|
+
sharedMsgId?: string;
|
|
518
|
+
sentAt: string;
|
|
519
|
+
content: MsgContent;
|
|
520
|
+
formattedText?: [FormattedText];
|
|
521
|
+
}
|
|
522
|
+
export interface CIReaction {
|
|
523
|
+
chatDir: CIDirection;
|
|
524
|
+
chatItem: ChatItem;
|
|
525
|
+
sentAt: string;
|
|
526
|
+
reaction: MsgReaction;
|
|
527
|
+
}
|
|
528
|
+
export interface CIReactionCount {
|
|
529
|
+
reaction: MsgReaction;
|
|
530
|
+
userReacted: boolean;
|
|
531
|
+
totalReacted: number;
|
|
532
|
+
}
|
|
533
|
+
export type CIStatus = CIStatus.SndNew | CIStatus.SndSent | CIStatus.SndRcvd | CIStatus.SndErrorAuth | CIStatus.SndError | CIStatus.SndWarning | CIStatus.RcvNew | CIStatus.RcvRead | CIStatus.Invalid;
|
|
534
|
+
export declare namespace CIStatus {
|
|
535
|
+
export type Tag = "sndNew" | "sndSent" | "sndRcvd" | "sndErrorAuth" | "sndError" | "sndWarning" | "rcvNew" | "rcvRead" | "invalid";
|
|
536
|
+
interface Interface {
|
|
537
|
+
type: Tag;
|
|
538
|
+
}
|
|
539
|
+
export interface SndNew extends Interface {
|
|
540
|
+
type: "sndNew";
|
|
541
|
+
}
|
|
542
|
+
export interface SndSent extends Interface {
|
|
543
|
+
type: "sndSent";
|
|
544
|
+
sndProgress: SndCIStatusProgress;
|
|
545
|
+
}
|
|
546
|
+
export interface SndRcvd extends Interface {
|
|
547
|
+
type: "sndRcvd";
|
|
548
|
+
msgRcptStatus: MsgReceiptStatus;
|
|
549
|
+
sndProgress: SndCIStatusProgress;
|
|
550
|
+
}
|
|
551
|
+
export interface SndErrorAuth extends Interface {
|
|
552
|
+
type: "sndErrorAuth";
|
|
553
|
+
}
|
|
554
|
+
export interface SndError extends Interface {
|
|
555
|
+
type: "sndError";
|
|
556
|
+
agentError: SndError;
|
|
557
|
+
}
|
|
558
|
+
export interface SndWarning extends Interface {
|
|
559
|
+
type: "sndWarning";
|
|
560
|
+
agentError: SndError;
|
|
561
|
+
}
|
|
562
|
+
export interface RcvNew extends Interface {
|
|
563
|
+
type: "rcvNew";
|
|
564
|
+
}
|
|
565
|
+
export interface RcvRead extends Interface {
|
|
566
|
+
type: "rcvRead";
|
|
567
|
+
}
|
|
568
|
+
export interface Invalid extends Interface {
|
|
569
|
+
type: "invalid";
|
|
570
|
+
text: string;
|
|
571
|
+
}
|
|
572
|
+
export {};
|
|
573
|
+
}
|
|
574
|
+
export interface CITimed {
|
|
575
|
+
ttl: number;
|
|
576
|
+
deleteAt?: string;
|
|
577
|
+
}
|
|
578
|
+
export type ChatBotCommand = ChatBotCommand.Command | ChatBotCommand.Menu;
|
|
579
|
+
export declare namespace ChatBotCommand {
|
|
580
|
+
export type Tag = "command" | "menu";
|
|
581
|
+
interface Interface {
|
|
582
|
+
type: Tag;
|
|
583
|
+
}
|
|
584
|
+
export interface Command extends Interface {
|
|
585
|
+
type: "command";
|
|
586
|
+
keyword: string;
|
|
587
|
+
label: string;
|
|
588
|
+
params?: string;
|
|
589
|
+
}
|
|
590
|
+
export interface Menu extends Interface {
|
|
591
|
+
type: "menu";
|
|
592
|
+
label: string;
|
|
593
|
+
commands: [ChatBotCommand];
|
|
594
|
+
}
|
|
595
|
+
export {};
|
|
596
|
+
}
|
|
597
|
+
export type ChatDeleteMode = ChatDeleteMode.Full | ChatDeleteMode.Entity | ChatDeleteMode.Messages;
|
|
598
|
+
export declare namespace ChatDeleteMode {
|
|
599
|
+
export type Tag = "full" | "entity" | "messages";
|
|
600
|
+
interface Interface {
|
|
601
|
+
type: Tag;
|
|
602
|
+
}
|
|
603
|
+
export interface Full extends Interface {
|
|
604
|
+
type: "full";
|
|
605
|
+
notify: boolean;
|
|
606
|
+
}
|
|
607
|
+
export interface Entity extends Interface {
|
|
608
|
+
type: "entity";
|
|
609
|
+
notify: boolean;
|
|
610
|
+
}
|
|
611
|
+
export interface Messages extends Interface {
|
|
612
|
+
type: "messages";
|
|
613
|
+
}
|
|
614
|
+
export function cmdString(self: ChatDeleteMode): string;
|
|
615
|
+
export {};
|
|
616
|
+
}
|
|
617
|
+
export type ChatError = ChatError.Error | ChatError.ErrorAgent | ChatError.ErrorStore;
|
|
618
|
+
export declare namespace ChatError {
|
|
619
|
+
export type Tag = "error" | "errorAgent" | "errorStore";
|
|
620
|
+
interface Interface {
|
|
621
|
+
type: Tag;
|
|
622
|
+
}
|
|
623
|
+
export interface Error extends Interface {
|
|
624
|
+
type: "error";
|
|
625
|
+
errorType: ChatErrorType;
|
|
626
|
+
}
|
|
627
|
+
export interface ErrorAgent extends Interface {
|
|
628
|
+
type: "errorAgent";
|
|
629
|
+
agentError: AgentErrorType;
|
|
630
|
+
connectionEntity_?: ConnectionEntity;
|
|
631
|
+
}
|
|
632
|
+
export interface ErrorStore extends Interface {
|
|
633
|
+
type: "errorStore";
|
|
634
|
+
storeError: StoreError;
|
|
635
|
+
}
|
|
636
|
+
export {};
|
|
637
|
+
}
|
|
638
|
+
export type ChatErrorType = ChatErrorType.NoActiveUser | ChatErrorType.NoConnectionUser | ChatErrorType.NoSndFileUser | ChatErrorType.NoRcvFileUser | ChatErrorType.UserUnknown | ChatErrorType.ActiveUserExists | ChatErrorType.UserExists | ChatErrorType.DifferentActiveUser | ChatErrorType.CantDeleteActiveUser | ChatErrorType.CantDeleteLastUser | ChatErrorType.CantHideLastUser | ChatErrorType.HiddenUserAlwaysMuted | ChatErrorType.EmptyUserPassword | ChatErrorType.UserAlreadyHidden | ChatErrorType.UserNotHidden | ChatErrorType.InvalidDisplayName | ChatErrorType.ChatNotStarted | ChatErrorType.ChatNotStopped | ChatErrorType.ChatStoreChanged | ChatErrorType.InvalidConnReq | ChatErrorType.UnsupportedConnReq | ChatErrorType.ConnReqMessageProhibited | ChatErrorType.ContactNotReady | ChatErrorType.ContactNotActive | ChatErrorType.ContactDisabled | ChatErrorType.ConnectionDisabled | ChatErrorType.GroupUserRole | ChatErrorType.GroupMemberInitialRole | ChatErrorType.ContactIncognitoCantInvite | ChatErrorType.GroupIncognitoCantInvite | ChatErrorType.GroupContactRole | ChatErrorType.GroupDuplicateMember | ChatErrorType.GroupDuplicateMemberId | ChatErrorType.GroupNotJoined | ChatErrorType.GroupMemberNotActive | ChatErrorType.CantBlockMemberForSelf | ChatErrorType.GroupMemberUserRemoved | ChatErrorType.GroupMemberNotFound | ChatErrorType.GroupCantResendInvitation | ChatErrorType.GroupInternal | ChatErrorType.FileNotFound | ChatErrorType.FileSize | ChatErrorType.FileAlreadyReceiving | ChatErrorType.FileCancelled | ChatErrorType.FileCancel | ChatErrorType.FileAlreadyExists | ChatErrorType.FileRead | ChatErrorType.FileWrite | ChatErrorType.FileSend | ChatErrorType.FileRcvChunk | ChatErrorType.FileInternal | ChatErrorType.FileImageType | ChatErrorType.FileImageSize | ChatErrorType.FileNotReceived | ChatErrorType.FileNotApproved | ChatErrorType.FallbackToSMPProhibited | ChatErrorType.InlineFileProhibited | ChatErrorType.InvalidForward | ChatErrorType.InvalidChatItemUpdate | ChatErrorType.InvalidChatItemDelete | ChatErrorType.HasCurrentCall | ChatErrorType.NoCurrentCall | ChatErrorType.CallContact | ChatErrorType.DirectMessagesProhibited | ChatErrorType.AgentVersion | ChatErrorType.AgentNoSubResult | ChatErrorType.CommandError | ChatErrorType.AgentCommandError | ChatErrorType.InvalidFileDescription | ChatErrorType.ConnectionIncognitoChangeProhibited | ChatErrorType.ConnectionUserChangeProhibited | ChatErrorType.PeerChatVRangeIncompatible | ChatErrorType.InternalError | ChatErrorType.Exception;
|
|
639
|
+
export declare namespace ChatErrorType {
|
|
640
|
+
export type Tag = "noActiveUser" | "noConnectionUser" | "noSndFileUser" | "noRcvFileUser" | "userUnknown" | "activeUserExists" | "userExists" | "differentActiveUser" | "cantDeleteActiveUser" | "cantDeleteLastUser" | "cantHideLastUser" | "hiddenUserAlwaysMuted" | "emptyUserPassword" | "userAlreadyHidden" | "userNotHidden" | "invalidDisplayName" | "chatNotStarted" | "chatNotStopped" | "chatStoreChanged" | "invalidConnReq" | "unsupportedConnReq" | "connReqMessageProhibited" | "contactNotReady" | "contactNotActive" | "contactDisabled" | "connectionDisabled" | "groupUserRole" | "groupMemberInitialRole" | "contactIncognitoCantInvite" | "groupIncognitoCantInvite" | "groupContactRole" | "groupDuplicateMember" | "groupDuplicateMemberId" | "groupNotJoined" | "groupMemberNotActive" | "cantBlockMemberForSelf" | "groupMemberUserRemoved" | "groupMemberNotFound" | "groupCantResendInvitation" | "groupInternal" | "fileNotFound" | "fileSize" | "fileAlreadyReceiving" | "fileCancelled" | "fileCancel" | "fileAlreadyExists" | "fileRead" | "fileWrite" | "fileSend" | "fileRcvChunk" | "fileInternal" | "fileImageType" | "fileImageSize" | "fileNotReceived" | "fileNotApproved" | "fallbackToSMPProhibited" | "inlineFileProhibited" | "invalidForward" | "invalidChatItemUpdate" | "invalidChatItemDelete" | "hasCurrentCall" | "noCurrentCall" | "callContact" | "directMessagesProhibited" | "agentVersion" | "agentNoSubResult" | "commandError" | "agentCommandError" | "invalidFileDescription" | "connectionIncognitoChangeProhibited" | "connectionUserChangeProhibited" | "peerChatVRangeIncompatible" | "internalError" | "exception";
|
|
641
|
+
interface Interface {
|
|
642
|
+
type: Tag;
|
|
643
|
+
}
|
|
644
|
+
export interface NoActiveUser extends Interface {
|
|
645
|
+
type: "noActiveUser";
|
|
646
|
+
}
|
|
647
|
+
export interface NoConnectionUser extends Interface {
|
|
648
|
+
type: "noConnectionUser";
|
|
649
|
+
agentConnId: string;
|
|
650
|
+
}
|
|
651
|
+
export interface NoSndFileUser extends Interface {
|
|
652
|
+
type: "noSndFileUser";
|
|
653
|
+
agentSndFileId: string;
|
|
654
|
+
}
|
|
655
|
+
export interface NoRcvFileUser extends Interface {
|
|
656
|
+
type: "noRcvFileUser";
|
|
657
|
+
agentRcvFileId: string;
|
|
658
|
+
}
|
|
659
|
+
export interface UserUnknown extends Interface {
|
|
660
|
+
type: "userUnknown";
|
|
661
|
+
}
|
|
662
|
+
export interface ActiveUserExists extends Interface {
|
|
663
|
+
type: "activeUserExists";
|
|
664
|
+
}
|
|
665
|
+
export interface UserExists extends Interface {
|
|
666
|
+
type: "userExists";
|
|
667
|
+
contactName: string;
|
|
668
|
+
}
|
|
669
|
+
export interface DifferentActiveUser extends Interface {
|
|
670
|
+
type: "differentActiveUser";
|
|
671
|
+
commandUserId: number;
|
|
672
|
+
activeUserId: number;
|
|
673
|
+
}
|
|
674
|
+
export interface CantDeleteActiveUser extends Interface {
|
|
675
|
+
type: "cantDeleteActiveUser";
|
|
676
|
+
userId: number;
|
|
677
|
+
}
|
|
678
|
+
export interface CantDeleteLastUser extends Interface {
|
|
679
|
+
type: "cantDeleteLastUser";
|
|
680
|
+
userId: number;
|
|
681
|
+
}
|
|
682
|
+
export interface CantHideLastUser extends Interface {
|
|
683
|
+
type: "cantHideLastUser";
|
|
684
|
+
userId: number;
|
|
685
|
+
}
|
|
686
|
+
export interface HiddenUserAlwaysMuted extends Interface {
|
|
687
|
+
type: "hiddenUserAlwaysMuted";
|
|
688
|
+
userId: number;
|
|
689
|
+
}
|
|
690
|
+
export interface EmptyUserPassword extends Interface {
|
|
691
|
+
type: "emptyUserPassword";
|
|
692
|
+
userId: number;
|
|
693
|
+
}
|
|
694
|
+
export interface UserAlreadyHidden extends Interface {
|
|
695
|
+
type: "userAlreadyHidden";
|
|
696
|
+
userId: number;
|
|
697
|
+
}
|
|
698
|
+
export interface UserNotHidden extends Interface {
|
|
699
|
+
type: "userNotHidden";
|
|
700
|
+
userId: number;
|
|
701
|
+
}
|
|
702
|
+
export interface InvalidDisplayName extends Interface {
|
|
703
|
+
type: "invalidDisplayName";
|
|
704
|
+
displayName: string;
|
|
705
|
+
validName: string;
|
|
706
|
+
}
|
|
707
|
+
export interface ChatNotStarted extends Interface {
|
|
708
|
+
type: "chatNotStarted";
|
|
709
|
+
}
|
|
710
|
+
export interface ChatNotStopped extends Interface {
|
|
711
|
+
type: "chatNotStopped";
|
|
712
|
+
}
|
|
713
|
+
export interface ChatStoreChanged extends Interface {
|
|
714
|
+
type: "chatStoreChanged";
|
|
715
|
+
}
|
|
716
|
+
export interface InvalidConnReq extends Interface {
|
|
717
|
+
type: "invalidConnReq";
|
|
718
|
+
}
|
|
719
|
+
export interface UnsupportedConnReq extends Interface {
|
|
720
|
+
type: "unsupportedConnReq";
|
|
721
|
+
}
|
|
722
|
+
export interface ConnReqMessageProhibited extends Interface {
|
|
723
|
+
type: "connReqMessageProhibited";
|
|
724
|
+
}
|
|
725
|
+
export interface ContactNotReady extends Interface {
|
|
726
|
+
type: "contactNotReady";
|
|
727
|
+
contact: Contact;
|
|
728
|
+
}
|
|
729
|
+
export interface ContactNotActive extends Interface {
|
|
730
|
+
type: "contactNotActive";
|
|
731
|
+
contact: Contact;
|
|
732
|
+
}
|
|
733
|
+
export interface ContactDisabled extends Interface {
|
|
734
|
+
type: "contactDisabled";
|
|
735
|
+
contact: Contact;
|
|
736
|
+
}
|
|
737
|
+
export interface ConnectionDisabled extends Interface {
|
|
738
|
+
type: "connectionDisabled";
|
|
739
|
+
connection: Connection;
|
|
740
|
+
}
|
|
741
|
+
export interface GroupUserRole extends Interface {
|
|
742
|
+
type: "groupUserRole";
|
|
743
|
+
groupInfo: GroupInfo;
|
|
744
|
+
requiredRole: GroupMemberRole;
|
|
745
|
+
}
|
|
746
|
+
export interface GroupMemberInitialRole extends Interface {
|
|
747
|
+
type: "groupMemberInitialRole";
|
|
748
|
+
groupInfo: GroupInfo;
|
|
749
|
+
initialRole: GroupMemberRole;
|
|
750
|
+
}
|
|
751
|
+
export interface ContactIncognitoCantInvite extends Interface {
|
|
752
|
+
type: "contactIncognitoCantInvite";
|
|
753
|
+
}
|
|
754
|
+
export interface GroupIncognitoCantInvite extends Interface {
|
|
755
|
+
type: "groupIncognitoCantInvite";
|
|
756
|
+
}
|
|
757
|
+
export interface GroupContactRole extends Interface {
|
|
758
|
+
type: "groupContactRole";
|
|
759
|
+
contactName: string;
|
|
760
|
+
}
|
|
761
|
+
export interface GroupDuplicateMember extends Interface {
|
|
762
|
+
type: "groupDuplicateMember";
|
|
763
|
+
contactName: string;
|
|
764
|
+
}
|
|
765
|
+
export interface GroupDuplicateMemberId extends Interface {
|
|
766
|
+
type: "groupDuplicateMemberId";
|
|
767
|
+
}
|
|
768
|
+
export interface GroupNotJoined extends Interface {
|
|
769
|
+
type: "groupNotJoined";
|
|
770
|
+
groupInfo: GroupInfo;
|
|
771
|
+
}
|
|
772
|
+
export interface GroupMemberNotActive extends Interface {
|
|
773
|
+
type: "groupMemberNotActive";
|
|
774
|
+
}
|
|
775
|
+
export interface CantBlockMemberForSelf extends Interface {
|
|
776
|
+
type: "cantBlockMemberForSelf";
|
|
777
|
+
groupInfo: GroupInfo;
|
|
778
|
+
member: GroupMember;
|
|
779
|
+
setShowMessages: boolean;
|
|
780
|
+
}
|
|
781
|
+
export interface GroupMemberUserRemoved extends Interface {
|
|
782
|
+
type: "groupMemberUserRemoved";
|
|
783
|
+
}
|
|
784
|
+
export interface GroupMemberNotFound extends Interface {
|
|
785
|
+
type: "groupMemberNotFound";
|
|
786
|
+
}
|
|
787
|
+
export interface GroupCantResendInvitation extends Interface {
|
|
788
|
+
type: "groupCantResendInvitation";
|
|
789
|
+
groupInfo: GroupInfo;
|
|
790
|
+
contactName: string;
|
|
791
|
+
}
|
|
792
|
+
export interface GroupInternal extends Interface {
|
|
793
|
+
type: "groupInternal";
|
|
794
|
+
message: string;
|
|
795
|
+
}
|
|
796
|
+
export interface FileNotFound extends Interface {
|
|
797
|
+
type: "fileNotFound";
|
|
798
|
+
message: string;
|
|
799
|
+
}
|
|
800
|
+
export interface FileSize extends Interface {
|
|
801
|
+
type: "fileSize";
|
|
802
|
+
filePath: string;
|
|
803
|
+
}
|
|
804
|
+
export interface FileAlreadyReceiving extends Interface {
|
|
805
|
+
type: "fileAlreadyReceiving";
|
|
806
|
+
message: string;
|
|
807
|
+
}
|
|
808
|
+
export interface FileCancelled extends Interface {
|
|
809
|
+
type: "fileCancelled";
|
|
810
|
+
message: string;
|
|
811
|
+
}
|
|
812
|
+
export interface FileCancel extends Interface {
|
|
813
|
+
type: "fileCancel";
|
|
814
|
+
fileId: number;
|
|
815
|
+
message: string;
|
|
816
|
+
}
|
|
817
|
+
export interface FileAlreadyExists extends Interface {
|
|
818
|
+
type: "fileAlreadyExists";
|
|
819
|
+
filePath: string;
|
|
820
|
+
}
|
|
821
|
+
export interface FileRead extends Interface {
|
|
822
|
+
type: "fileRead";
|
|
823
|
+
filePath: string;
|
|
824
|
+
message: string;
|
|
825
|
+
}
|
|
826
|
+
export interface FileWrite extends Interface {
|
|
827
|
+
type: "fileWrite";
|
|
828
|
+
filePath: string;
|
|
829
|
+
message: string;
|
|
830
|
+
}
|
|
831
|
+
export interface FileSend extends Interface {
|
|
832
|
+
type: "fileSend";
|
|
833
|
+
fileId: number;
|
|
834
|
+
agentError: AgentErrorType;
|
|
835
|
+
}
|
|
836
|
+
export interface FileRcvChunk extends Interface {
|
|
837
|
+
type: "fileRcvChunk";
|
|
838
|
+
message: string;
|
|
839
|
+
}
|
|
840
|
+
export interface FileInternal extends Interface {
|
|
841
|
+
type: "fileInternal";
|
|
842
|
+
message: string;
|
|
843
|
+
}
|
|
844
|
+
export interface FileImageType extends Interface {
|
|
845
|
+
type: "fileImageType";
|
|
846
|
+
filePath: string;
|
|
847
|
+
}
|
|
848
|
+
export interface FileImageSize extends Interface {
|
|
849
|
+
type: "fileImageSize";
|
|
850
|
+
filePath: string;
|
|
851
|
+
}
|
|
852
|
+
export interface FileNotReceived extends Interface {
|
|
853
|
+
type: "fileNotReceived";
|
|
854
|
+
fileId: number;
|
|
855
|
+
}
|
|
856
|
+
export interface FileNotApproved extends Interface {
|
|
857
|
+
type: "fileNotApproved";
|
|
858
|
+
fileId: number;
|
|
859
|
+
unknownServers: [string];
|
|
860
|
+
}
|
|
861
|
+
export interface FallbackToSMPProhibited extends Interface {
|
|
862
|
+
type: "fallbackToSMPProhibited";
|
|
863
|
+
fileId: number;
|
|
864
|
+
}
|
|
865
|
+
export interface InlineFileProhibited extends Interface {
|
|
866
|
+
type: "inlineFileProhibited";
|
|
867
|
+
fileId: number;
|
|
868
|
+
}
|
|
869
|
+
export interface InvalidForward extends Interface {
|
|
870
|
+
type: "invalidForward";
|
|
871
|
+
}
|
|
872
|
+
export interface InvalidChatItemUpdate extends Interface {
|
|
873
|
+
type: "invalidChatItemUpdate";
|
|
874
|
+
}
|
|
875
|
+
export interface InvalidChatItemDelete extends Interface {
|
|
876
|
+
type: "invalidChatItemDelete";
|
|
877
|
+
}
|
|
878
|
+
export interface HasCurrentCall extends Interface {
|
|
879
|
+
type: "hasCurrentCall";
|
|
880
|
+
}
|
|
881
|
+
export interface NoCurrentCall extends Interface {
|
|
882
|
+
type: "noCurrentCall";
|
|
883
|
+
}
|
|
884
|
+
export interface CallContact extends Interface {
|
|
885
|
+
type: "callContact";
|
|
886
|
+
contactId: number;
|
|
887
|
+
}
|
|
888
|
+
export interface DirectMessagesProhibited extends Interface {
|
|
889
|
+
type: "directMessagesProhibited";
|
|
890
|
+
direction: MsgDirection;
|
|
891
|
+
contact: Contact;
|
|
892
|
+
}
|
|
893
|
+
export interface AgentVersion extends Interface {
|
|
894
|
+
type: "agentVersion";
|
|
895
|
+
}
|
|
896
|
+
export interface AgentNoSubResult extends Interface {
|
|
897
|
+
type: "agentNoSubResult";
|
|
898
|
+
agentConnId: string;
|
|
899
|
+
}
|
|
900
|
+
export interface CommandError extends Interface {
|
|
901
|
+
type: "commandError";
|
|
902
|
+
message: string;
|
|
903
|
+
}
|
|
904
|
+
export interface AgentCommandError extends Interface {
|
|
905
|
+
type: "agentCommandError";
|
|
906
|
+
message: string;
|
|
907
|
+
}
|
|
908
|
+
export interface InvalidFileDescription extends Interface {
|
|
909
|
+
type: "invalidFileDescription";
|
|
910
|
+
message: string;
|
|
911
|
+
}
|
|
912
|
+
export interface ConnectionIncognitoChangeProhibited extends Interface {
|
|
913
|
+
type: "connectionIncognitoChangeProhibited";
|
|
914
|
+
}
|
|
915
|
+
export interface ConnectionUserChangeProhibited extends Interface {
|
|
916
|
+
type: "connectionUserChangeProhibited";
|
|
917
|
+
}
|
|
918
|
+
export interface PeerChatVRangeIncompatible extends Interface {
|
|
919
|
+
type: "peerChatVRangeIncompatible";
|
|
920
|
+
}
|
|
921
|
+
export interface InternalError extends Interface {
|
|
922
|
+
type: "internalError";
|
|
923
|
+
message: string;
|
|
924
|
+
}
|
|
925
|
+
export interface Exception extends Interface {
|
|
926
|
+
type: "exception";
|
|
927
|
+
message: string;
|
|
928
|
+
}
|
|
929
|
+
export {};
|
|
930
|
+
}
|
|
931
|
+
export declare enum ChatFeature {
|
|
932
|
+
TimedMessages = "timedMessages",
|
|
933
|
+
FullDelete = "fullDelete",
|
|
934
|
+
Reactions = "reactions",
|
|
935
|
+
Voice = "voice",
|
|
936
|
+
Files = "files",
|
|
937
|
+
Calls = "calls",
|
|
938
|
+
Sessions = "sessions"
|
|
939
|
+
}
|
|
940
|
+
export type ChatInfo = ChatInfo.Direct | ChatInfo.Group | ChatInfo.Local | ChatInfo.ContactRequest | ChatInfo.ContactConnection;
|
|
941
|
+
export declare namespace ChatInfo {
|
|
942
|
+
export type Tag = "direct" | "group" | "local" | "contactRequest" | "contactConnection";
|
|
943
|
+
interface Interface {
|
|
944
|
+
type: Tag;
|
|
945
|
+
}
|
|
946
|
+
export interface Direct extends Interface {
|
|
947
|
+
type: "direct";
|
|
948
|
+
contact: Contact;
|
|
949
|
+
}
|
|
950
|
+
export interface Group extends Interface {
|
|
951
|
+
type: "group";
|
|
952
|
+
groupInfo: GroupInfo;
|
|
953
|
+
groupChatScope?: GroupChatScopeInfo;
|
|
954
|
+
}
|
|
955
|
+
export interface Local extends Interface {
|
|
956
|
+
type: "local";
|
|
957
|
+
noteFolder: NoteFolder;
|
|
958
|
+
}
|
|
959
|
+
export interface ContactRequest extends Interface {
|
|
960
|
+
type: "contactRequest";
|
|
961
|
+
contactRequest: UserContactRequest;
|
|
962
|
+
}
|
|
963
|
+
export interface ContactConnection extends Interface {
|
|
964
|
+
type: "contactConnection";
|
|
965
|
+
contactConnection: PendingContactConnection;
|
|
966
|
+
}
|
|
967
|
+
export {};
|
|
968
|
+
}
|
|
969
|
+
export interface ChatItem {
|
|
970
|
+
chatDir: CIDirection;
|
|
971
|
+
meta: CIMeta;
|
|
972
|
+
content: CIContent;
|
|
973
|
+
mentions: {
|
|
974
|
+
[key: string]: CIMention;
|
|
975
|
+
};
|
|
976
|
+
formattedText?: [FormattedText];
|
|
977
|
+
quotedItem?: CIQuote;
|
|
978
|
+
reactions: [CIReactionCount];
|
|
979
|
+
file?: CIFile;
|
|
980
|
+
}
|
|
981
|
+
export interface ChatItemDeletion {
|
|
982
|
+
deletedChatItem: AChatItem;
|
|
983
|
+
toChatItem?: AChatItem;
|
|
984
|
+
}
|
|
985
|
+
export declare enum ChatPeerType {
|
|
986
|
+
Human = "human",
|
|
987
|
+
Bot = "bot"
|
|
988
|
+
}
|
|
989
|
+
export interface ChatRef {
|
|
990
|
+
chatType: ChatType;
|
|
991
|
+
chatId: number;
|
|
992
|
+
chatScope?: GroupChatScope;
|
|
993
|
+
}
|
|
994
|
+
export declare namespace ChatRef {
|
|
995
|
+
function cmdString(self: ChatRef): string;
|
|
996
|
+
}
|
|
997
|
+
export interface ChatSettings {
|
|
998
|
+
enableNtfs: MsgFilter;
|
|
999
|
+
sendRcpts?: boolean;
|
|
1000
|
+
favorite: boolean;
|
|
1001
|
+
}
|
|
1002
|
+
export interface ChatStats {
|
|
1003
|
+
unreadCount: number;
|
|
1004
|
+
unreadMentions: number;
|
|
1005
|
+
reportsCount: number;
|
|
1006
|
+
minUnreadItemId: number;
|
|
1007
|
+
unreadChat: boolean;
|
|
1008
|
+
}
|
|
1009
|
+
export declare enum ChatType {
|
|
1010
|
+
Direct = "direct",
|
|
1011
|
+
Group = "group",
|
|
1012
|
+
Local = "local"
|
|
1013
|
+
}
|
|
1014
|
+
export declare namespace ChatType {
|
|
1015
|
+
function cmdString(self: ChatType): string;
|
|
1016
|
+
}
|
|
1017
|
+
export interface ChatWallpaper {
|
|
1018
|
+
preset?: string;
|
|
1019
|
+
imageFile?: string;
|
|
1020
|
+
background?: string;
|
|
1021
|
+
tint?: string;
|
|
1022
|
+
scaleType?: ChatWallpaperScale;
|
|
1023
|
+
scale?: number;
|
|
1024
|
+
}
|
|
1025
|
+
export declare enum ChatWallpaperScale {
|
|
1026
|
+
Fill = "fill",
|
|
1027
|
+
Fit = "fit",
|
|
1028
|
+
Repeat = "repeat"
|
|
1029
|
+
}
|
|
1030
|
+
export declare enum Color {
|
|
1031
|
+
Black = "black",
|
|
1032
|
+
Red = "red",
|
|
1033
|
+
Green = "green",
|
|
1034
|
+
Yellow = "yellow",
|
|
1035
|
+
Blue = "blue",
|
|
1036
|
+
Magenta = "magenta",
|
|
1037
|
+
Cyan = "cyan",
|
|
1038
|
+
White = "white"
|
|
1039
|
+
}
|
|
1040
|
+
export type CommandError = CommandError.UNKNOWN | CommandError.SYNTAX | CommandError.PROHIBITED | CommandError.NO_AUTH | CommandError.HAS_AUTH | CommandError.NO_ENTITY;
|
|
1041
|
+
export declare namespace CommandError {
|
|
1042
|
+
export type Tag = "UNKNOWN" | "SYNTAX" | "PROHIBITED" | "NO_AUTH" | "HAS_AUTH" | "NO_ENTITY";
|
|
1043
|
+
interface Interface {
|
|
1044
|
+
type: Tag;
|
|
1045
|
+
}
|
|
1046
|
+
export interface UNKNOWN extends Interface {
|
|
1047
|
+
type: "UNKNOWN";
|
|
1048
|
+
}
|
|
1049
|
+
export interface SYNTAX extends Interface {
|
|
1050
|
+
type: "SYNTAX";
|
|
1051
|
+
}
|
|
1052
|
+
export interface PROHIBITED extends Interface {
|
|
1053
|
+
type: "PROHIBITED";
|
|
1054
|
+
}
|
|
1055
|
+
export interface NO_AUTH extends Interface {
|
|
1056
|
+
type: "NO_AUTH";
|
|
1057
|
+
}
|
|
1058
|
+
export interface HAS_AUTH extends Interface {
|
|
1059
|
+
type: "HAS_AUTH";
|
|
1060
|
+
}
|
|
1061
|
+
export interface NO_ENTITY extends Interface {
|
|
1062
|
+
type: "NO_ENTITY";
|
|
1063
|
+
}
|
|
1064
|
+
export {};
|
|
1065
|
+
}
|
|
1066
|
+
export type CommandErrorType = CommandErrorType.PROHIBITED | CommandErrorType.SYNTAX | CommandErrorType.NO_CONN | CommandErrorType.SIZE | CommandErrorType.LARGE;
|
|
1067
|
+
export declare namespace CommandErrorType {
|
|
1068
|
+
export type Tag = "PROHIBITED" | "SYNTAX" | "NO_CONN" | "SIZE" | "LARGE";
|
|
1069
|
+
interface Interface {
|
|
1070
|
+
type: Tag;
|
|
1071
|
+
}
|
|
1072
|
+
export interface PROHIBITED extends Interface {
|
|
1073
|
+
type: "PROHIBITED";
|
|
1074
|
+
}
|
|
1075
|
+
export interface SYNTAX extends Interface {
|
|
1076
|
+
type: "SYNTAX";
|
|
1077
|
+
}
|
|
1078
|
+
export interface NO_CONN extends Interface {
|
|
1079
|
+
type: "NO_CONN";
|
|
1080
|
+
}
|
|
1081
|
+
export interface SIZE extends Interface {
|
|
1082
|
+
type: "SIZE";
|
|
1083
|
+
}
|
|
1084
|
+
export interface LARGE extends Interface {
|
|
1085
|
+
type: "LARGE";
|
|
1086
|
+
}
|
|
1087
|
+
export {};
|
|
1088
|
+
}
|
|
1089
|
+
export interface ComposedMessage {
|
|
1090
|
+
fileSource?: CryptoFile;
|
|
1091
|
+
quotedItemId?: number;
|
|
1092
|
+
msgContent: MsgContent;
|
|
1093
|
+
mentions: {
|
|
1094
|
+
[key: string]: number;
|
|
1095
|
+
};
|
|
1096
|
+
}
|
|
1097
|
+
export declare enum ConnStatus {
|
|
1098
|
+
New = "new",
|
|
1099
|
+
Prepared = "prepared",
|
|
1100
|
+
Joined = "joined",
|
|
1101
|
+
Requested = "requested",
|
|
1102
|
+
Accepted = "accepted",
|
|
1103
|
+
Snd_ready = "snd-ready",
|
|
1104
|
+
Ready = "ready",
|
|
1105
|
+
Deleted = "deleted"
|
|
1106
|
+
}
|
|
1107
|
+
export declare enum ConnType {
|
|
1108
|
+
Contact = "contact",
|
|
1109
|
+
Member = "member",
|
|
1110
|
+
User_contact = "user_contact"
|
|
1111
|
+
}
|
|
1112
|
+
export interface Connection {
|
|
1113
|
+
connId: number;
|
|
1114
|
+
agentConnId: string;
|
|
1115
|
+
connChatVersion: number;
|
|
1116
|
+
peerChatVRange: VersionRange;
|
|
1117
|
+
connLevel: number;
|
|
1118
|
+
viaContact?: number;
|
|
1119
|
+
viaUserContactLink?: number;
|
|
1120
|
+
viaGroupLink: boolean;
|
|
1121
|
+
groupLinkId?: string;
|
|
1122
|
+
xContactId?: string;
|
|
1123
|
+
customUserProfileId?: number;
|
|
1124
|
+
connType: ConnType;
|
|
1125
|
+
connStatus: ConnStatus;
|
|
1126
|
+
contactConnInitiated: boolean;
|
|
1127
|
+
localAlias: string;
|
|
1128
|
+
entityId?: number;
|
|
1129
|
+
connectionCode?: SecurityCode;
|
|
1130
|
+
pqSupport: boolean;
|
|
1131
|
+
pqEncryption: boolean;
|
|
1132
|
+
pqSndEnabled?: boolean;
|
|
1133
|
+
pqRcvEnabled?: boolean;
|
|
1134
|
+
authErrCounter: number;
|
|
1135
|
+
quotaErrCounter: number;
|
|
1136
|
+
createdAt: string;
|
|
1137
|
+
}
|
|
1138
|
+
export type ConnectionEntity = ConnectionEntity.RcvDirectMsgConnection | ConnectionEntity.RcvGroupMsgConnection | ConnectionEntity.SndFileConnection | ConnectionEntity.RcvFileConnection | ConnectionEntity.UserContactConnection;
|
|
1139
|
+
export declare namespace ConnectionEntity {
|
|
1140
|
+
export type Tag = "rcvDirectMsgConnection" | "rcvGroupMsgConnection" | "sndFileConnection" | "rcvFileConnection" | "userContactConnection";
|
|
1141
|
+
interface Interface {
|
|
1142
|
+
type: Tag;
|
|
1143
|
+
}
|
|
1144
|
+
export interface RcvDirectMsgConnection extends Interface {
|
|
1145
|
+
type: "rcvDirectMsgConnection";
|
|
1146
|
+
entityConnection: Connection;
|
|
1147
|
+
contact?: Contact;
|
|
1148
|
+
}
|
|
1149
|
+
export interface RcvGroupMsgConnection extends Interface {
|
|
1150
|
+
type: "rcvGroupMsgConnection";
|
|
1151
|
+
entityConnection: Connection;
|
|
1152
|
+
groupInfo: GroupInfo;
|
|
1153
|
+
groupMember: GroupMember;
|
|
1154
|
+
}
|
|
1155
|
+
export interface SndFileConnection extends Interface {
|
|
1156
|
+
type: "sndFileConnection";
|
|
1157
|
+
entityConnection: Connection;
|
|
1158
|
+
sndFileTransfer: SndFileTransfer;
|
|
1159
|
+
}
|
|
1160
|
+
export interface RcvFileConnection extends Interface {
|
|
1161
|
+
type: "rcvFileConnection";
|
|
1162
|
+
entityConnection: Connection;
|
|
1163
|
+
rcvFileTransfer: RcvFileTransfer;
|
|
1164
|
+
}
|
|
1165
|
+
export interface UserContactConnection extends Interface {
|
|
1166
|
+
type: "userContactConnection";
|
|
1167
|
+
entityConnection: Connection;
|
|
1168
|
+
userContact: UserContact;
|
|
1169
|
+
}
|
|
1170
|
+
export {};
|
|
1171
|
+
}
|
|
1172
|
+
export type ConnectionErrorType = ConnectionErrorType.NOT_FOUND | ConnectionErrorType.DUPLICATE | ConnectionErrorType.SIMPLEX | ConnectionErrorType.NOT_ACCEPTED | ConnectionErrorType.NOT_AVAILABLE;
|
|
1173
|
+
export declare namespace ConnectionErrorType {
|
|
1174
|
+
export type Tag = "NOT_FOUND" | "DUPLICATE" | "SIMPLEX" | "NOT_ACCEPTED" | "NOT_AVAILABLE";
|
|
1175
|
+
interface Interface {
|
|
1176
|
+
type: Tag;
|
|
1177
|
+
}
|
|
1178
|
+
export interface NOT_FOUND extends Interface {
|
|
1179
|
+
type: "NOT_FOUND";
|
|
1180
|
+
}
|
|
1181
|
+
export interface DUPLICATE extends Interface {
|
|
1182
|
+
type: "DUPLICATE";
|
|
1183
|
+
}
|
|
1184
|
+
export interface SIMPLEX extends Interface {
|
|
1185
|
+
type: "SIMPLEX";
|
|
1186
|
+
}
|
|
1187
|
+
export interface NOT_ACCEPTED extends Interface {
|
|
1188
|
+
type: "NOT_ACCEPTED";
|
|
1189
|
+
}
|
|
1190
|
+
export interface NOT_AVAILABLE extends Interface {
|
|
1191
|
+
type: "NOT_AVAILABLE";
|
|
1192
|
+
}
|
|
1193
|
+
export {};
|
|
1194
|
+
}
|
|
1195
|
+
export declare enum ConnectionMode {
|
|
1196
|
+
INV = "inv",
|
|
1197
|
+
CON = "con"
|
|
1198
|
+
}
|
|
1199
|
+
export type ConnectionPlan = ConnectionPlan.InvitationLink | ConnectionPlan.ContactAddress | ConnectionPlan.GroupLink | ConnectionPlan.Error;
|
|
1200
|
+
export declare namespace ConnectionPlan {
|
|
1201
|
+
export type Tag = "invitationLink" | "contactAddress" | "groupLink" | "error";
|
|
1202
|
+
interface Interface {
|
|
1203
|
+
type: Tag;
|
|
1204
|
+
}
|
|
1205
|
+
export interface InvitationLink extends Interface {
|
|
1206
|
+
type: "invitationLink";
|
|
1207
|
+
invitationLinkPlan: InvitationLinkPlan;
|
|
1208
|
+
}
|
|
1209
|
+
export interface ContactAddress extends Interface {
|
|
1210
|
+
type: "contactAddress";
|
|
1211
|
+
contactAddressPlan: ContactAddressPlan;
|
|
1212
|
+
}
|
|
1213
|
+
export interface GroupLink extends Interface {
|
|
1214
|
+
type: "groupLink";
|
|
1215
|
+
groupLinkPlan: GroupLinkPlan;
|
|
1216
|
+
}
|
|
1217
|
+
export interface Error extends Interface {
|
|
1218
|
+
type: "error";
|
|
1219
|
+
chatError: ChatError;
|
|
1220
|
+
}
|
|
1221
|
+
export {};
|
|
1222
|
+
}
|
|
1223
|
+
export interface Contact {
|
|
1224
|
+
contactId: number;
|
|
1225
|
+
localDisplayName: string;
|
|
1226
|
+
profile: LocalProfile;
|
|
1227
|
+
activeConn?: Connection;
|
|
1228
|
+
viaGroup?: number;
|
|
1229
|
+
contactUsed: boolean;
|
|
1230
|
+
contactStatus: ContactStatus;
|
|
1231
|
+
chatSettings: ChatSettings;
|
|
1232
|
+
userPreferences: Preferences;
|
|
1233
|
+
mergedPreferences: ContactUserPreferences;
|
|
1234
|
+
createdAt: string;
|
|
1235
|
+
updatedAt: string;
|
|
1236
|
+
chatTs?: string;
|
|
1237
|
+
preparedContact?: PreparedContact;
|
|
1238
|
+
contactRequestId?: number;
|
|
1239
|
+
contactGroupMemberId?: number;
|
|
1240
|
+
contactGrpInvSent: boolean;
|
|
1241
|
+
groupDirectInv?: GroupDirectInvitation;
|
|
1242
|
+
chatTags: [number];
|
|
1243
|
+
chatItemTTL?: number;
|
|
1244
|
+
uiThemes?: UIThemeEntityOverrides;
|
|
1245
|
+
chatDeleted: boolean;
|
|
1246
|
+
customData?: object;
|
|
1247
|
+
}
|
|
1248
|
+
export type ContactAddressPlan = ContactAddressPlan.Ok | ContactAddressPlan.OwnLink | ContactAddressPlan.ConnectingConfirmReconnect | ContactAddressPlan.ConnectingProhibit | ContactAddressPlan.Known | ContactAddressPlan.ContactViaAddress;
|
|
1249
|
+
export declare namespace ContactAddressPlan {
|
|
1250
|
+
export type Tag = "ok" | "ownLink" | "connectingConfirmReconnect" | "connectingProhibit" | "known" | "contactViaAddress";
|
|
1251
|
+
interface Interface {
|
|
1252
|
+
type: Tag;
|
|
1253
|
+
}
|
|
1254
|
+
export interface Ok extends Interface {
|
|
1255
|
+
type: "ok";
|
|
1256
|
+
contactSLinkData_?: ContactShortLinkData;
|
|
1257
|
+
}
|
|
1258
|
+
export interface OwnLink extends Interface {
|
|
1259
|
+
type: "ownLink";
|
|
1260
|
+
}
|
|
1261
|
+
export interface ConnectingConfirmReconnect extends Interface {
|
|
1262
|
+
type: "connectingConfirmReconnect";
|
|
1263
|
+
}
|
|
1264
|
+
export interface ConnectingProhibit extends Interface {
|
|
1265
|
+
type: "connectingProhibit";
|
|
1266
|
+
contact: Contact;
|
|
1267
|
+
}
|
|
1268
|
+
export interface Known extends Interface {
|
|
1269
|
+
type: "known";
|
|
1270
|
+
contact: Contact;
|
|
1271
|
+
}
|
|
1272
|
+
export interface ContactViaAddress extends Interface {
|
|
1273
|
+
type: "contactViaAddress";
|
|
1274
|
+
contact: Contact;
|
|
1275
|
+
}
|
|
1276
|
+
export {};
|
|
1277
|
+
}
|
|
1278
|
+
export interface ContactShortLinkData {
|
|
1279
|
+
profile: Profile;
|
|
1280
|
+
message?: MsgContent;
|
|
1281
|
+
business: boolean;
|
|
1282
|
+
}
|
|
1283
|
+
export declare enum ContactStatus {
|
|
1284
|
+
Active = "active",
|
|
1285
|
+
Deleted = "deleted",
|
|
1286
|
+
DeletedByUser = "deletedByUser"
|
|
1287
|
+
}
|
|
1288
|
+
export type ContactUserPref = ContactUserPref.Contact | ContactUserPref.User;
|
|
1289
|
+
export declare namespace ContactUserPref {
|
|
1290
|
+
export type Tag = "contact" | "user";
|
|
1291
|
+
interface Interface {
|
|
1292
|
+
type: Tag;
|
|
1293
|
+
}
|
|
1294
|
+
export interface Contact extends Interface {
|
|
1295
|
+
type: "contact";
|
|
1296
|
+
preference: SimplePreference;
|
|
1297
|
+
}
|
|
1298
|
+
export interface User extends Interface {
|
|
1299
|
+
type: "user";
|
|
1300
|
+
preference: SimplePreference;
|
|
1301
|
+
}
|
|
1302
|
+
export {};
|
|
1303
|
+
}
|
|
1304
|
+
export interface ContactUserPreference {
|
|
1305
|
+
enabled: PrefEnabled;
|
|
1306
|
+
userPreference: ContactUserPref;
|
|
1307
|
+
contactPreference: SimplePreference;
|
|
1308
|
+
}
|
|
1309
|
+
export interface ContactUserPreferences {
|
|
1310
|
+
timedMessages: ContactUserPreference;
|
|
1311
|
+
fullDelete: ContactUserPreference;
|
|
1312
|
+
reactions: ContactUserPreference;
|
|
1313
|
+
voice: ContactUserPreference;
|
|
1314
|
+
files: ContactUserPreference;
|
|
1315
|
+
calls: ContactUserPreference;
|
|
1316
|
+
sessions: ContactUserPreference;
|
|
1317
|
+
commands?: [ChatBotCommand];
|
|
1318
|
+
}
|
|
1319
|
+
export interface CreatedConnLink {
|
|
1320
|
+
connFullLink: string;
|
|
1321
|
+
connShortLink?: string;
|
|
1322
|
+
}
|
|
1323
|
+
export declare namespace CreatedConnLink {
|
|
1324
|
+
function cmdString(self: CreatedConnLink): string;
|
|
1325
|
+
}
|
|
1326
|
+
export interface CryptoFile {
|
|
1327
|
+
filePath: string;
|
|
1328
|
+
cryptoArgs?: CryptoFileArgs;
|
|
1329
|
+
}
|
|
1330
|
+
export interface CryptoFileArgs {
|
|
1331
|
+
fileKey: string;
|
|
1332
|
+
fileNonce: string;
|
|
1333
|
+
}
|
|
1334
|
+
export interface E2EInfo {
|
|
1335
|
+
pqEnabled?: boolean;
|
|
1336
|
+
}
|
|
1337
|
+
export type ErrorType = ErrorType.BLOCK | ErrorType.SESSION | ErrorType.CMD | ErrorType.PROXY | ErrorType.AUTH | ErrorType.BLOCKED | ErrorType.SERVICE | ErrorType.CRYPTO | ErrorType.QUOTA | ErrorType.STORE | ErrorType.NO_MSG | ErrorType.LARGE_MSG | ErrorType.EXPIRED | ErrorType.INTERNAL | ErrorType.DUPLICATE_;
|
|
1338
|
+
export declare namespace ErrorType {
|
|
1339
|
+
export type Tag = "BLOCK" | "SESSION" | "CMD" | "PROXY" | "AUTH" | "BLOCKED" | "SERVICE" | "CRYPTO" | "QUOTA" | "STORE" | "NO_MSG" | "LARGE_MSG" | "EXPIRED" | "INTERNAL" | "DUPLICATE_";
|
|
1340
|
+
interface Interface {
|
|
1341
|
+
type: Tag;
|
|
1342
|
+
}
|
|
1343
|
+
export interface BLOCK extends Interface {
|
|
1344
|
+
type: "BLOCK";
|
|
1345
|
+
}
|
|
1346
|
+
export interface SESSION extends Interface {
|
|
1347
|
+
type: "SESSION";
|
|
1348
|
+
}
|
|
1349
|
+
export interface CMD extends Interface {
|
|
1350
|
+
type: "CMD";
|
|
1351
|
+
cmdErr: CommandError;
|
|
1352
|
+
}
|
|
1353
|
+
export interface PROXY extends Interface {
|
|
1354
|
+
type: "PROXY";
|
|
1355
|
+
proxyErr: ProxyError;
|
|
1356
|
+
}
|
|
1357
|
+
export interface AUTH extends Interface {
|
|
1358
|
+
type: "AUTH";
|
|
1359
|
+
}
|
|
1360
|
+
export interface BLOCKED extends Interface {
|
|
1361
|
+
type: "BLOCKED";
|
|
1362
|
+
blockInfo: BlockingInfo;
|
|
1363
|
+
}
|
|
1364
|
+
export interface SERVICE extends Interface {
|
|
1365
|
+
type: "SERVICE";
|
|
1366
|
+
}
|
|
1367
|
+
export interface CRYPTO extends Interface {
|
|
1368
|
+
type: "CRYPTO";
|
|
1369
|
+
}
|
|
1370
|
+
export interface QUOTA extends Interface {
|
|
1371
|
+
type: "QUOTA";
|
|
1372
|
+
}
|
|
1373
|
+
export interface STORE extends Interface {
|
|
1374
|
+
type: "STORE";
|
|
1375
|
+
storeErr: string;
|
|
1376
|
+
}
|
|
1377
|
+
export interface NO_MSG extends Interface {
|
|
1378
|
+
type: "NO_MSG";
|
|
1379
|
+
}
|
|
1380
|
+
export interface LARGE_MSG extends Interface {
|
|
1381
|
+
type: "LARGE_MSG";
|
|
1382
|
+
}
|
|
1383
|
+
export interface EXPIRED extends Interface {
|
|
1384
|
+
type: "EXPIRED";
|
|
1385
|
+
}
|
|
1386
|
+
export interface INTERNAL extends Interface {
|
|
1387
|
+
type: "INTERNAL";
|
|
1388
|
+
}
|
|
1389
|
+
export interface DUPLICATE_ extends Interface {
|
|
1390
|
+
type: "DUPLICATE_";
|
|
1391
|
+
}
|
|
1392
|
+
export {};
|
|
1393
|
+
}
|
|
1394
|
+
export declare enum FeatureAllowed {
|
|
1395
|
+
Always = "always",
|
|
1396
|
+
Yes = "yes",
|
|
1397
|
+
No = "no"
|
|
1398
|
+
}
|
|
1399
|
+
export interface FileDescr {
|
|
1400
|
+
fileDescrText: string;
|
|
1401
|
+
fileDescrPartNo: number;
|
|
1402
|
+
fileDescrComplete: boolean;
|
|
1403
|
+
}
|
|
1404
|
+
export type FileError = FileError.Auth | FileError.Blocked | FileError.NoFile | FileError.Relay | FileError.Other;
|
|
1405
|
+
export declare namespace FileError {
|
|
1406
|
+
export type Tag = "auth" | "blocked" | "noFile" | "relay" | "other";
|
|
1407
|
+
interface Interface {
|
|
1408
|
+
type: Tag;
|
|
1409
|
+
}
|
|
1410
|
+
export interface Auth extends Interface {
|
|
1411
|
+
type: "auth";
|
|
1412
|
+
}
|
|
1413
|
+
export interface Blocked extends Interface {
|
|
1414
|
+
type: "blocked";
|
|
1415
|
+
server: string;
|
|
1416
|
+
blockInfo: BlockingInfo;
|
|
1417
|
+
}
|
|
1418
|
+
export interface NoFile extends Interface {
|
|
1419
|
+
type: "noFile";
|
|
1420
|
+
}
|
|
1421
|
+
export interface Relay extends Interface {
|
|
1422
|
+
type: "relay";
|
|
1423
|
+
srvError: SrvError;
|
|
1424
|
+
}
|
|
1425
|
+
export interface Other extends Interface {
|
|
1426
|
+
type: "other";
|
|
1427
|
+
fileError: string;
|
|
1428
|
+
}
|
|
1429
|
+
export {};
|
|
1430
|
+
}
|
|
1431
|
+
export type FileErrorType = FileErrorType.NOT_APPROVED | FileErrorType.SIZE | FileErrorType.REDIRECT | FileErrorType.FILE_IO | FileErrorType.NO_FILE;
|
|
1432
|
+
export declare namespace FileErrorType {
|
|
1433
|
+
export type Tag = "NOT_APPROVED" | "SIZE" | "REDIRECT" | "FILE_IO" | "NO_FILE";
|
|
1434
|
+
interface Interface {
|
|
1435
|
+
type: Tag;
|
|
1436
|
+
}
|
|
1437
|
+
export interface NOT_APPROVED extends Interface {
|
|
1438
|
+
type: "NOT_APPROVED";
|
|
1439
|
+
}
|
|
1440
|
+
export interface SIZE extends Interface {
|
|
1441
|
+
type: "SIZE";
|
|
1442
|
+
}
|
|
1443
|
+
export interface REDIRECT extends Interface {
|
|
1444
|
+
type: "REDIRECT";
|
|
1445
|
+
redirectError: string;
|
|
1446
|
+
}
|
|
1447
|
+
export interface FILE_IO extends Interface {
|
|
1448
|
+
type: "FILE_IO";
|
|
1449
|
+
fileIOError: string;
|
|
1450
|
+
}
|
|
1451
|
+
export interface NO_FILE extends Interface {
|
|
1452
|
+
type: "NO_FILE";
|
|
1453
|
+
}
|
|
1454
|
+
export {};
|
|
1455
|
+
}
|
|
1456
|
+
export interface FileInvitation {
|
|
1457
|
+
fileName: string;
|
|
1458
|
+
fileSize: number;
|
|
1459
|
+
fileDigest?: string;
|
|
1460
|
+
fileConnReq?: string;
|
|
1461
|
+
fileInline?: InlineFileMode;
|
|
1462
|
+
fileDescr?: FileDescr;
|
|
1463
|
+
}
|
|
1464
|
+
export declare enum FileProtocol {
|
|
1465
|
+
SMP = "smp",
|
|
1466
|
+
XFTP = "xftp",
|
|
1467
|
+
LOCAL = "local"
|
|
1468
|
+
}
|
|
1469
|
+
export declare enum FileStatus {
|
|
1470
|
+
New = "new",
|
|
1471
|
+
Accepted = "accepted",
|
|
1472
|
+
Connected = "connected",
|
|
1473
|
+
Complete = "complete",
|
|
1474
|
+
Cancelled = "cancelled"
|
|
1475
|
+
}
|
|
1476
|
+
export interface FileTransferMeta {
|
|
1477
|
+
fileId: number;
|
|
1478
|
+
xftpSndFile?: XFTPSndFile;
|
|
1479
|
+
xftpRedirectFor?: number;
|
|
1480
|
+
fileName: string;
|
|
1481
|
+
filePath: string;
|
|
1482
|
+
fileSize: number;
|
|
1483
|
+
fileInline?: InlineFileMode;
|
|
1484
|
+
chunkSize: number;
|
|
1485
|
+
cancelled: boolean;
|
|
1486
|
+
}
|
|
1487
|
+
export type Format = Format.Bold | Format.Italic | Format.StrikeThrough | Format.Snippet | Format.Secret | Format.Colored | Format.Uri | Format.HyperLink | Format.SimplexLink | Format.Command | Format.Mention | Format.Email | Format.Phone;
|
|
1488
|
+
export declare namespace Format {
|
|
1489
|
+
export type Tag = "bold" | "italic" | "strikeThrough" | "snippet" | "secret" | "colored" | "uri" | "hyperLink" | "simplexLink" | "command" | "mention" | "email" | "phone";
|
|
1490
|
+
interface Interface {
|
|
1491
|
+
type: Tag;
|
|
1492
|
+
}
|
|
1493
|
+
export interface Bold extends Interface {
|
|
1494
|
+
type: "bold";
|
|
1495
|
+
}
|
|
1496
|
+
export interface Italic extends Interface {
|
|
1497
|
+
type: "italic";
|
|
1498
|
+
}
|
|
1499
|
+
export interface StrikeThrough extends Interface {
|
|
1500
|
+
type: "strikeThrough";
|
|
1501
|
+
}
|
|
1502
|
+
export interface Snippet extends Interface {
|
|
1503
|
+
type: "snippet";
|
|
1504
|
+
}
|
|
1505
|
+
export interface Secret extends Interface {
|
|
1506
|
+
type: "secret";
|
|
1507
|
+
}
|
|
1508
|
+
export interface Colored extends Interface {
|
|
1509
|
+
type: "colored";
|
|
1510
|
+
color: Color;
|
|
1511
|
+
}
|
|
1512
|
+
export interface Uri extends Interface {
|
|
1513
|
+
type: "uri";
|
|
1514
|
+
}
|
|
1515
|
+
export interface HyperLink extends Interface {
|
|
1516
|
+
type: "hyperLink";
|
|
1517
|
+
showText?: string;
|
|
1518
|
+
linkUri: string;
|
|
1519
|
+
}
|
|
1520
|
+
export interface SimplexLink extends Interface {
|
|
1521
|
+
type: "simplexLink";
|
|
1522
|
+
showText?: string;
|
|
1523
|
+
linkType: SimplexLinkType;
|
|
1524
|
+
simplexUri: string;
|
|
1525
|
+
smpHosts: [string];
|
|
1526
|
+
}
|
|
1527
|
+
export interface Command extends Interface {
|
|
1528
|
+
type: "command";
|
|
1529
|
+
commandStr: string;
|
|
1530
|
+
}
|
|
1531
|
+
export interface Mention extends Interface {
|
|
1532
|
+
type: "mention";
|
|
1533
|
+
memberName: string;
|
|
1534
|
+
}
|
|
1535
|
+
export interface Email extends Interface {
|
|
1536
|
+
type: "email";
|
|
1537
|
+
}
|
|
1538
|
+
export interface Phone extends Interface {
|
|
1539
|
+
type: "phone";
|
|
1540
|
+
}
|
|
1541
|
+
export {};
|
|
1542
|
+
}
|
|
1543
|
+
export interface FormattedText {
|
|
1544
|
+
format?: Format;
|
|
1545
|
+
text: string;
|
|
1546
|
+
}
|
|
1547
|
+
export interface FullGroupPreferences {
|
|
1548
|
+
timedMessages: TimedMessagesGroupPreference;
|
|
1549
|
+
directMessages: RoleGroupPreference;
|
|
1550
|
+
fullDelete: GroupPreference;
|
|
1551
|
+
reactions: GroupPreference;
|
|
1552
|
+
voice: RoleGroupPreference;
|
|
1553
|
+
files: RoleGroupPreference;
|
|
1554
|
+
simplexLinks: RoleGroupPreference;
|
|
1555
|
+
reports: GroupPreference;
|
|
1556
|
+
history: GroupPreference;
|
|
1557
|
+
sessions: RoleGroupPreference;
|
|
1558
|
+
commands: [ChatBotCommand];
|
|
1559
|
+
}
|
|
1560
|
+
export interface FullPreferences {
|
|
1561
|
+
timedMessages: TimedMessagesPreference;
|
|
1562
|
+
fullDelete: SimplePreference;
|
|
1563
|
+
reactions: SimplePreference;
|
|
1564
|
+
voice: SimplePreference;
|
|
1565
|
+
files: SimplePreference;
|
|
1566
|
+
calls: SimplePreference;
|
|
1567
|
+
sessions: SimplePreference;
|
|
1568
|
+
commands: [ChatBotCommand];
|
|
1569
|
+
}
|
|
1570
|
+
export interface Group {
|
|
1571
|
+
groupInfo: GroupInfo;
|
|
1572
|
+
members: [GroupMember];
|
|
1573
|
+
}
|
|
1574
|
+
export type GroupChatScope = GroupChatScope.MemberSupport;
|
|
1575
|
+
export declare namespace GroupChatScope {
|
|
1576
|
+
export type Tag = "memberSupport";
|
|
1577
|
+
interface Interface {
|
|
1578
|
+
type: Tag;
|
|
1579
|
+
}
|
|
1580
|
+
export interface MemberSupport extends Interface {
|
|
1581
|
+
type: "memberSupport";
|
|
1582
|
+
groupMemberId_?: number;
|
|
1583
|
+
}
|
|
1584
|
+
export function cmdString(self: GroupChatScope): string;
|
|
1585
|
+
export {};
|
|
1586
|
+
}
|
|
1587
|
+
export type GroupChatScopeInfo = GroupChatScopeInfo.MemberSupport;
|
|
1588
|
+
export declare namespace GroupChatScopeInfo {
|
|
1589
|
+
export type Tag = "memberSupport";
|
|
1590
|
+
interface Interface {
|
|
1591
|
+
type: Tag;
|
|
1592
|
+
}
|
|
1593
|
+
export interface MemberSupport extends Interface {
|
|
1594
|
+
type: "memberSupport";
|
|
1595
|
+
groupMember_?: GroupMember;
|
|
1596
|
+
}
|
|
1597
|
+
export {};
|
|
1598
|
+
}
|
|
1599
|
+
export interface GroupDirectInvitation {
|
|
1600
|
+
groupDirectInvLink: string;
|
|
1601
|
+
fromGroupId_?: number;
|
|
1602
|
+
fromGroupMemberId_?: number;
|
|
1603
|
+
fromGroupMemberConnId_?: number;
|
|
1604
|
+
groupDirectInvStartedConnection: boolean;
|
|
1605
|
+
}
|
|
1606
|
+
export declare enum GroupFeature {
|
|
1607
|
+
TimedMessages = "timedMessages",
|
|
1608
|
+
DirectMessages = "directMessages",
|
|
1609
|
+
FullDelete = "fullDelete",
|
|
1610
|
+
Reactions = "reactions",
|
|
1611
|
+
Voice = "voice",
|
|
1612
|
+
Files = "files",
|
|
1613
|
+
SimplexLinks = "simplexLinks",
|
|
1614
|
+
Reports = "reports",
|
|
1615
|
+
History = "history",
|
|
1616
|
+
Sessions = "sessions"
|
|
1617
|
+
}
|
|
1618
|
+
export declare enum GroupFeatureEnabled {
|
|
1619
|
+
On = "on",
|
|
1620
|
+
Off = "off"
|
|
1621
|
+
}
|
|
1622
|
+
export interface GroupInfo {
|
|
1623
|
+
groupId: number;
|
|
1624
|
+
localDisplayName: string;
|
|
1625
|
+
groupProfile: GroupProfile;
|
|
1626
|
+
localAlias: string;
|
|
1627
|
+
businessChat?: BusinessChatInfo;
|
|
1628
|
+
fullGroupPreferences: FullGroupPreferences;
|
|
1629
|
+
membership: GroupMember;
|
|
1630
|
+
chatSettings: ChatSettings;
|
|
1631
|
+
createdAt: string;
|
|
1632
|
+
updatedAt: string;
|
|
1633
|
+
chatTs?: string;
|
|
1634
|
+
userMemberProfileSentAt?: string;
|
|
1635
|
+
preparedGroup?: PreparedGroup;
|
|
1636
|
+
chatTags: [number];
|
|
1637
|
+
chatItemTTL?: number;
|
|
1638
|
+
uiThemes?: UIThemeEntityOverrides;
|
|
1639
|
+
customData?: object;
|
|
1640
|
+
membersRequireAttention: number;
|
|
1641
|
+
viaGroupLinkUri?: string;
|
|
1642
|
+
}
|
|
1643
|
+
export interface GroupInfoSummary {
|
|
1644
|
+
groupInfo: GroupInfo;
|
|
1645
|
+
groupSummary: GroupSummary;
|
|
1646
|
+
}
|
|
1647
|
+
export interface GroupLink {
|
|
1648
|
+
userContactLinkId: number;
|
|
1649
|
+
connLinkContact: CreatedConnLink;
|
|
1650
|
+
shortLinkDataSet: boolean;
|
|
1651
|
+
shortLinkLargeDataSet: boolean;
|
|
1652
|
+
groupLinkId: string;
|
|
1653
|
+
acceptMemberRole: GroupMemberRole;
|
|
1654
|
+
}
|
|
1655
|
+
export type GroupLinkPlan = GroupLinkPlan.Ok | GroupLinkPlan.OwnLink | GroupLinkPlan.ConnectingConfirmReconnect | GroupLinkPlan.ConnectingProhibit | GroupLinkPlan.Known;
|
|
1656
|
+
export declare namespace GroupLinkPlan {
|
|
1657
|
+
export type Tag = "ok" | "ownLink" | "connectingConfirmReconnect" | "connectingProhibit" | "known";
|
|
1658
|
+
interface Interface {
|
|
1659
|
+
type: Tag;
|
|
1660
|
+
}
|
|
1661
|
+
export interface Ok extends Interface {
|
|
1662
|
+
type: "ok";
|
|
1663
|
+
groupSLinkData_?: GroupShortLinkData;
|
|
1664
|
+
}
|
|
1665
|
+
export interface OwnLink extends Interface {
|
|
1666
|
+
type: "ownLink";
|
|
1667
|
+
groupInfo: GroupInfo;
|
|
1668
|
+
}
|
|
1669
|
+
export interface ConnectingConfirmReconnect extends Interface {
|
|
1670
|
+
type: "connectingConfirmReconnect";
|
|
1671
|
+
}
|
|
1672
|
+
export interface ConnectingProhibit extends Interface {
|
|
1673
|
+
type: "connectingProhibit";
|
|
1674
|
+
groupInfo_?: GroupInfo;
|
|
1675
|
+
}
|
|
1676
|
+
export interface Known extends Interface {
|
|
1677
|
+
type: "known";
|
|
1678
|
+
groupInfo: GroupInfo;
|
|
1679
|
+
}
|
|
1680
|
+
export {};
|
|
1681
|
+
}
|
|
1682
|
+
export interface GroupMember {
|
|
1683
|
+
groupMemberId: number;
|
|
1684
|
+
groupId: number;
|
|
1685
|
+
memberId: string;
|
|
1686
|
+
memberRole: GroupMemberRole;
|
|
1687
|
+
memberCategory: GroupMemberCategory;
|
|
1688
|
+
memberStatus: GroupMemberStatus;
|
|
1689
|
+
memberSettings: GroupMemberSettings;
|
|
1690
|
+
blockedByAdmin: boolean;
|
|
1691
|
+
invitedBy: InvitedBy;
|
|
1692
|
+
invitedByGroupMemberId?: number;
|
|
1693
|
+
localDisplayName: string;
|
|
1694
|
+
memberProfile: LocalProfile;
|
|
1695
|
+
memberContactId?: number;
|
|
1696
|
+
memberContactProfileId: number;
|
|
1697
|
+
activeConn?: Connection;
|
|
1698
|
+
memberChatVRange: VersionRange;
|
|
1699
|
+
createdAt: string;
|
|
1700
|
+
updatedAt: string;
|
|
1701
|
+
supportChat?: GroupSupportChat;
|
|
1702
|
+
}
|
|
1703
|
+
export interface GroupMemberAdmission {
|
|
1704
|
+
review?: MemberCriteria;
|
|
1705
|
+
}
|
|
1706
|
+
export declare enum GroupMemberCategory {
|
|
1707
|
+
User = "user",
|
|
1708
|
+
Invitee = "invitee",
|
|
1709
|
+
Host = "host",
|
|
1710
|
+
Pre = "pre",
|
|
1711
|
+
Post = "post"
|
|
1712
|
+
}
|
|
1713
|
+
export interface GroupMemberRef {
|
|
1714
|
+
groupMemberId: number;
|
|
1715
|
+
profile: Profile;
|
|
1716
|
+
}
|
|
1717
|
+
export declare enum GroupMemberRole {
|
|
1718
|
+
Observer = "observer",
|
|
1719
|
+
Author = "author",
|
|
1720
|
+
Member = "member",
|
|
1721
|
+
Moderator = "moderator",
|
|
1722
|
+
Admin = "admin",
|
|
1723
|
+
Owner = "owner"
|
|
1724
|
+
}
|
|
1725
|
+
export interface GroupMemberSettings {
|
|
1726
|
+
showMessages: boolean;
|
|
1727
|
+
}
|
|
1728
|
+
export declare enum GroupMemberStatus {
|
|
1729
|
+
Rejected = "rejected",
|
|
1730
|
+
Removed = "removed",
|
|
1731
|
+
Left = "left",
|
|
1732
|
+
Deleted = "deleted",
|
|
1733
|
+
Unknown = "unknown",
|
|
1734
|
+
Invited = "invited",
|
|
1735
|
+
Pending_approval = "pending_approval",
|
|
1736
|
+
Pending_review = "pending_review",
|
|
1737
|
+
Introduced = "introduced",
|
|
1738
|
+
Intro_inv = "intro-inv",
|
|
1739
|
+
Accepted = "accepted",
|
|
1740
|
+
Announced = "announced",
|
|
1741
|
+
Connected = "connected",
|
|
1742
|
+
Complete = "complete",
|
|
1743
|
+
Creator = "creator"
|
|
1744
|
+
}
|
|
1745
|
+
export interface GroupPreference {
|
|
1746
|
+
enable: GroupFeatureEnabled;
|
|
1747
|
+
}
|
|
1748
|
+
export interface GroupPreferences {
|
|
1749
|
+
timedMessages?: TimedMessagesGroupPreference;
|
|
1750
|
+
directMessages?: RoleGroupPreference;
|
|
1751
|
+
fullDelete?: GroupPreference;
|
|
1752
|
+
reactions?: GroupPreference;
|
|
1753
|
+
voice?: RoleGroupPreference;
|
|
1754
|
+
files?: RoleGroupPreference;
|
|
1755
|
+
simplexLinks?: RoleGroupPreference;
|
|
1756
|
+
reports?: GroupPreference;
|
|
1757
|
+
history?: GroupPreference;
|
|
1758
|
+
sessions?: RoleGroupPreference;
|
|
1759
|
+
commands?: [ChatBotCommand];
|
|
1760
|
+
}
|
|
1761
|
+
export interface GroupProfile {
|
|
1762
|
+
displayName: string;
|
|
1763
|
+
fullName: string;
|
|
1764
|
+
shortDescr?: string;
|
|
1765
|
+
description?: string;
|
|
1766
|
+
image?: string;
|
|
1767
|
+
groupPreferences?: GroupPreferences;
|
|
1768
|
+
memberAdmission?: GroupMemberAdmission;
|
|
1769
|
+
}
|
|
1770
|
+
export interface GroupShortLinkData {
|
|
1771
|
+
groupProfile: GroupProfile;
|
|
1772
|
+
}
|
|
1773
|
+
export interface GroupSummary {
|
|
1774
|
+
currentMembers: number;
|
|
1775
|
+
}
|
|
1776
|
+
export interface GroupSupportChat {
|
|
1777
|
+
chatTs: string;
|
|
1778
|
+
unread: number;
|
|
1779
|
+
memberAttention: number;
|
|
1780
|
+
mentions: number;
|
|
1781
|
+
lastMsgFromMemberTs?: string;
|
|
1782
|
+
}
|
|
1783
|
+
export declare enum HandshakeError {
|
|
1784
|
+
PARSE = "PARSE",
|
|
1785
|
+
IDENTITY = "IDENTITY",
|
|
1786
|
+
BAD_AUTH = "BAD_AUTH",
|
|
1787
|
+
BAD_SERVICE = "BAD_SERVICE"
|
|
1788
|
+
}
|
|
1789
|
+
export declare enum InlineFileMode {
|
|
1790
|
+
Offer = "offer",
|
|
1791
|
+
Sent = "sent"
|
|
1792
|
+
}
|
|
1793
|
+
export type InvitationLinkPlan = InvitationLinkPlan.Ok | InvitationLinkPlan.OwnLink | InvitationLinkPlan.Connecting | InvitationLinkPlan.Known;
|
|
1794
|
+
export declare namespace InvitationLinkPlan {
|
|
1795
|
+
export type Tag = "ok" | "ownLink" | "connecting" | "known";
|
|
1796
|
+
interface Interface {
|
|
1797
|
+
type: Tag;
|
|
1798
|
+
}
|
|
1799
|
+
export interface Ok extends Interface {
|
|
1800
|
+
type: "ok";
|
|
1801
|
+
contactSLinkData_?: ContactShortLinkData;
|
|
1802
|
+
}
|
|
1803
|
+
export interface OwnLink extends Interface {
|
|
1804
|
+
type: "ownLink";
|
|
1805
|
+
}
|
|
1806
|
+
export interface Connecting extends Interface {
|
|
1807
|
+
type: "connecting";
|
|
1808
|
+
contact_?: Contact;
|
|
1809
|
+
}
|
|
1810
|
+
export interface Known extends Interface {
|
|
1811
|
+
type: "known";
|
|
1812
|
+
contact: Contact;
|
|
1813
|
+
}
|
|
1814
|
+
export {};
|
|
1815
|
+
}
|
|
1816
|
+
export type InvitedBy = InvitedBy.Contact | InvitedBy.User | InvitedBy.Unknown;
|
|
1817
|
+
export declare namespace InvitedBy {
|
|
1818
|
+
export type Tag = "contact" | "user" | "unknown";
|
|
1819
|
+
interface Interface {
|
|
1820
|
+
type: Tag;
|
|
1821
|
+
}
|
|
1822
|
+
export interface Contact extends Interface {
|
|
1823
|
+
type: "contact";
|
|
1824
|
+
byContactId: number;
|
|
1825
|
+
}
|
|
1826
|
+
export interface User extends Interface {
|
|
1827
|
+
type: "user";
|
|
1828
|
+
}
|
|
1829
|
+
export interface Unknown extends Interface {
|
|
1830
|
+
type: "unknown";
|
|
1831
|
+
}
|
|
1832
|
+
export {};
|
|
1833
|
+
}
|
|
1834
|
+
export type LinkContent = LinkContent.Page | LinkContent.Image | LinkContent.Video | LinkContent.Unknown;
|
|
1835
|
+
export declare namespace LinkContent {
|
|
1836
|
+
export type Tag = "page" | "image" | "video" | "unknown";
|
|
1837
|
+
interface Interface {
|
|
1838
|
+
type: Tag;
|
|
1839
|
+
}
|
|
1840
|
+
export interface Page extends Interface {
|
|
1841
|
+
type: "page";
|
|
1842
|
+
}
|
|
1843
|
+
export interface Image extends Interface {
|
|
1844
|
+
type: "image";
|
|
1845
|
+
}
|
|
1846
|
+
export interface Video extends Interface {
|
|
1847
|
+
type: "video";
|
|
1848
|
+
duration?: number;
|
|
1849
|
+
}
|
|
1850
|
+
export interface Unknown extends Interface {
|
|
1851
|
+
type: "unknown";
|
|
1852
|
+
tag: string;
|
|
1853
|
+
json: object;
|
|
1854
|
+
}
|
|
1855
|
+
export {};
|
|
1856
|
+
}
|
|
1857
|
+
export interface LinkPreview {
|
|
1858
|
+
uri: string;
|
|
1859
|
+
title: string;
|
|
1860
|
+
description: string;
|
|
1861
|
+
image: string;
|
|
1862
|
+
content?: LinkContent;
|
|
1863
|
+
}
|
|
1864
|
+
export interface LocalProfile {
|
|
1865
|
+
profileId: number;
|
|
1866
|
+
displayName: string;
|
|
1867
|
+
fullName: string;
|
|
1868
|
+
shortDescr?: string;
|
|
1869
|
+
image?: string;
|
|
1870
|
+
contactLink?: string;
|
|
1871
|
+
preferences?: Preferences;
|
|
1872
|
+
peerType?: ChatPeerType;
|
|
1873
|
+
localAlias: string;
|
|
1874
|
+
}
|
|
1875
|
+
export declare enum MemberCriteria {
|
|
1876
|
+
All = "all"
|
|
1877
|
+
}
|
|
1878
|
+
export type MsgChatLink = MsgChatLink.Contact | MsgChatLink.Invitation | MsgChatLink.Group;
|
|
1879
|
+
export declare namespace MsgChatLink {
|
|
1880
|
+
export type Tag = "contact" | "invitation" | "group";
|
|
1881
|
+
interface Interface {
|
|
1882
|
+
type: Tag;
|
|
1883
|
+
}
|
|
1884
|
+
export interface Contact extends Interface {
|
|
1885
|
+
type: "contact";
|
|
1886
|
+
connLink: string;
|
|
1887
|
+
profile: Profile;
|
|
1888
|
+
business: boolean;
|
|
1889
|
+
}
|
|
1890
|
+
export interface Invitation extends Interface {
|
|
1891
|
+
type: "invitation";
|
|
1892
|
+
invLink: string;
|
|
1893
|
+
profile: Profile;
|
|
1894
|
+
}
|
|
1895
|
+
export interface Group extends Interface {
|
|
1896
|
+
type: "group";
|
|
1897
|
+
connLink: string;
|
|
1898
|
+
groupProfile: GroupProfile;
|
|
1899
|
+
}
|
|
1900
|
+
export {};
|
|
1901
|
+
}
|
|
1902
|
+
export type MsgContent = MsgContent.Text | MsgContent.Link | MsgContent.Image | MsgContent.Video | MsgContent.Voice | MsgContent.File | MsgContent.Report | MsgContent.Chat | MsgContent.Unknown;
|
|
1903
|
+
export declare namespace MsgContent {
|
|
1904
|
+
export type Tag = "text" | "link" | "image" | "video" | "voice" | "file" | "report" | "chat" | "unknown";
|
|
1905
|
+
interface Interface {
|
|
1906
|
+
type: Tag;
|
|
1907
|
+
}
|
|
1908
|
+
export interface Text extends Interface {
|
|
1909
|
+
type: "text";
|
|
1910
|
+
text: string;
|
|
1911
|
+
}
|
|
1912
|
+
export interface Link extends Interface {
|
|
1913
|
+
type: "link";
|
|
1914
|
+
text: string;
|
|
1915
|
+
preview: LinkPreview;
|
|
1916
|
+
}
|
|
1917
|
+
export interface Image extends Interface {
|
|
1918
|
+
type: "image";
|
|
1919
|
+
text: string;
|
|
1920
|
+
image: string;
|
|
1921
|
+
}
|
|
1922
|
+
export interface Video extends Interface {
|
|
1923
|
+
type: "video";
|
|
1924
|
+
text: string;
|
|
1925
|
+
image: string;
|
|
1926
|
+
duration: number;
|
|
1927
|
+
}
|
|
1928
|
+
export interface Voice extends Interface {
|
|
1929
|
+
type: "voice";
|
|
1930
|
+
text: string;
|
|
1931
|
+
duration: number;
|
|
1932
|
+
}
|
|
1933
|
+
export interface File extends Interface {
|
|
1934
|
+
type: "file";
|
|
1935
|
+
text: string;
|
|
1936
|
+
}
|
|
1937
|
+
export interface Report extends Interface {
|
|
1938
|
+
type: "report";
|
|
1939
|
+
text: string;
|
|
1940
|
+
reason: ReportReason;
|
|
1941
|
+
}
|
|
1942
|
+
export interface Chat extends Interface {
|
|
1943
|
+
type: "chat";
|
|
1944
|
+
text: string;
|
|
1945
|
+
chatLink: MsgChatLink;
|
|
1946
|
+
}
|
|
1947
|
+
export interface Unknown extends Interface {
|
|
1948
|
+
type: "unknown";
|
|
1949
|
+
tag: string;
|
|
1950
|
+
text: string;
|
|
1951
|
+
json: object;
|
|
1952
|
+
}
|
|
1953
|
+
export {};
|
|
1954
|
+
}
|
|
1955
|
+
export declare enum MsgDecryptError {
|
|
1956
|
+
RatchetHeader = "ratchetHeader",
|
|
1957
|
+
TooManySkipped = "tooManySkipped",
|
|
1958
|
+
RatchetEarlier = "ratchetEarlier",
|
|
1959
|
+
Other = "other",
|
|
1960
|
+
RatchetSync = "ratchetSync"
|
|
1961
|
+
}
|
|
1962
|
+
export declare enum MsgDirection {
|
|
1963
|
+
Rcv = "rcv",
|
|
1964
|
+
Snd = "snd"
|
|
1965
|
+
}
|
|
1966
|
+
export type MsgErrorType = MsgErrorType.MsgSkipped | MsgErrorType.MsgBadId | MsgErrorType.MsgBadHash | MsgErrorType.MsgDuplicate;
|
|
1967
|
+
export declare namespace MsgErrorType {
|
|
1968
|
+
export type Tag = "msgSkipped" | "msgBadId" | "msgBadHash" | "msgDuplicate";
|
|
1969
|
+
interface Interface {
|
|
1970
|
+
type: Tag;
|
|
1971
|
+
}
|
|
1972
|
+
export interface MsgSkipped extends Interface {
|
|
1973
|
+
type: "msgSkipped";
|
|
1974
|
+
fromMsgId: number;
|
|
1975
|
+
toMsgId: number;
|
|
1976
|
+
}
|
|
1977
|
+
export interface MsgBadId extends Interface {
|
|
1978
|
+
type: "msgBadId";
|
|
1979
|
+
msgId: number;
|
|
1980
|
+
}
|
|
1981
|
+
export interface MsgBadHash extends Interface {
|
|
1982
|
+
type: "msgBadHash";
|
|
1983
|
+
}
|
|
1984
|
+
export interface MsgDuplicate extends Interface {
|
|
1985
|
+
type: "msgDuplicate";
|
|
1986
|
+
}
|
|
1987
|
+
export {};
|
|
1988
|
+
}
|
|
1989
|
+
export declare enum MsgFilter {
|
|
1990
|
+
None = "none",
|
|
1991
|
+
All = "all",
|
|
1992
|
+
Mentions = "mentions"
|
|
1993
|
+
}
|
|
1994
|
+
export type MsgReaction = MsgReaction.Emoji | MsgReaction.Unknown;
|
|
1995
|
+
export declare namespace MsgReaction {
|
|
1996
|
+
export type Tag = "emoji" | "unknown";
|
|
1997
|
+
interface Interface {
|
|
1998
|
+
type: Tag;
|
|
1999
|
+
}
|
|
2000
|
+
export interface Emoji extends Interface {
|
|
2001
|
+
type: "emoji";
|
|
2002
|
+
emoji: string;
|
|
2003
|
+
}
|
|
2004
|
+
export interface Unknown extends Interface {
|
|
2005
|
+
type: "unknown";
|
|
2006
|
+
tag: string;
|
|
2007
|
+
json: object;
|
|
2008
|
+
}
|
|
2009
|
+
export {};
|
|
2010
|
+
}
|
|
2011
|
+
export declare enum MsgReceiptStatus {
|
|
2012
|
+
Ok = "ok",
|
|
2013
|
+
BadMsgHash = "badMsgHash"
|
|
2014
|
+
}
|
|
2015
|
+
export interface NewUser {
|
|
2016
|
+
profile?: Profile;
|
|
2017
|
+
pastTimestamp: boolean;
|
|
2018
|
+
}
|
|
2019
|
+
export interface NoteFolder {
|
|
2020
|
+
noteFolderId: number;
|
|
2021
|
+
userId: number;
|
|
2022
|
+
createdAt: string;
|
|
2023
|
+
updatedAt: string;
|
|
2024
|
+
chatTs: string;
|
|
2025
|
+
favorite: boolean;
|
|
2026
|
+
unread: boolean;
|
|
2027
|
+
}
|
|
2028
|
+
export interface PendingContactConnection {
|
|
2029
|
+
pccConnId: number;
|
|
2030
|
+
pccAgentConnId: string;
|
|
2031
|
+
pccConnStatus: ConnStatus;
|
|
2032
|
+
viaContactUri: boolean;
|
|
2033
|
+
viaUserContactLink?: number;
|
|
2034
|
+
groupLinkId?: string;
|
|
2035
|
+
customUserProfileId?: number;
|
|
2036
|
+
connLinkInv?: CreatedConnLink;
|
|
2037
|
+
localAlias: string;
|
|
2038
|
+
createdAt: string;
|
|
2039
|
+
updatedAt: string;
|
|
2040
|
+
}
|
|
2041
|
+
export interface PrefEnabled {
|
|
2042
|
+
forUser: boolean;
|
|
2043
|
+
forContact: boolean;
|
|
2044
|
+
}
|
|
2045
|
+
export interface Preferences {
|
|
2046
|
+
timedMessages?: TimedMessagesPreference;
|
|
2047
|
+
fullDelete?: SimplePreference;
|
|
2048
|
+
reactions?: SimplePreference;
|
|
2049
|
+
voice?: SimplePreference;
|
|
2050
|
+
files?: SimplePreference;
|
|
2051
|
+
calls?: SimplePreference;
|
|
2052
|
+
sessions?: SimplePreference;
|
|
2053
|
+
commands?: [ChatBotCommand];
|
|
2054
|
+
}
|
|
2055
|
+
export interface PreparedContact {
|
|
2056
|
+
connLinkToConnect: CreatedConnLink;
|
|
2057
|
+
uiConnLinkType: ConnectionMode;
|
|
2058
|
+
welcomeSharedMsgId?: string;
|
|
2059
|
+
requestSharedMsgId?: string;
|
|
2060
|
+
}
|
|
2061
|
+
export interface PreparedGroup {
|
|
2062
|
+
connLinkToConnect: CreatedConnLink;
|
|
2063
|
+
connLinkPreparedConnection: boolean;
|
|
2064
|
+
connLinkStartedConnection: boolean;
|
|
2065
|
+
welcomeSharedMsgId?: string;
|
|
2066
|
+
requestSharedMsgId?: string;
|
|
2067
|
+
}
|
|
2068
|
+
export interface Profile {
|
|
2069
|
+
displayName: string;
|
|
2070
|
+
fullName: string;
|
|
2071
|
+
shortDescr?: string;
|
|
2072
|
+
image?: string;
|
|
2073
|
+
contactLink?: string;
|
|
2074
|
+
preferences?: Preferences;
|
|
2075
|
+
peerType?: ChatPeerType;
|
|
2076
|
+
}
|
|
2077
|
+
export type ProxyClientError = ProxyClientError.ProtocolError | ProxyClientError.UnexpectedResponse | ProxyClientError.ResponseError;
|
|
2078
|
+
export declare namespace ProxyClientError {
|
|
2079
|
+
export type Tag = "protocolError" | "unexpectedResponse" | "responseError";
|
|
2080
|
+
interface Interface {
|
|
2081
|
+
type: Tag;
|
|
2082
|
+
}
|
|
2083
|
+
export interface ProtocolError extends Interface {
|
|
2084
|
+
type: "protocolError";
|
|
2085
|
+
protocolErr: ErrorType;
|
|
2086
|
+
}
|
|
2087
|
+
export interface UnexpectedResponse extends Interface {
|
|
2088
|
+
type: "unexpectedResponse";
|
|
2089
|
+
responseStr: string;
|
|
2090
|
+
}
|
|
2091
|
+
export interface ResponseError extends Interface {
|
|
2092
|
+
type: "responseError";
|
|
2093
|
+
responseErr: ErrorType;
|
|
2094
|
+
}
|
|
2095
|
+
export {};
|
|
2096
|
+
}
|
|
2097
|
+
export type ProxyError = ProxyError.PROTOCOL | ProxyError.BROKER | ProxyError.BASIC_AUTH | ProxyError.NO_SESSION;
|
|
2098
|
+
export declare namespace ProxyError {
|
|
2099
|
+
export type Tag = "PROTOCOL" | "BROKER" | "BASIC_AUTH" | "NO_SESSION";
|
|
2100
|
+
interface Interface {
|
|
2101
|
+
type: Tag;
|
|
2102
|
+
}
|
|
2103
|
+
export interface PROTOCOL extends Interface {
|
|
2104
|
+
type: "PROTOCOL";
|
|
2105
|
+
protocolErr: ErrorType;
|
|
2106
|
+
}
|
|
2107
|
+
export interface BROKER extends Interface {
|
|
2108
|
+
type: "BROKER";
|
|
2109
|
+
brokerErr: BrokerErrorType;
|
|
2110
|
+
}
|
|
2111
|
+
export interface BASIC_AUTH extends Interface {
|
|
2112
|
+
type: "BASIC_AUTH";
|
|
2113
|
+
}
|
|
2114
|
+
export interface NO_SESSION extends Interface {
|
|
2115
|
+
type: "NO_SESSION";
|
|
2116
|
+
}
|
|
2117
|
+
export {};
|
|
2118
|
+
}
|
|
2119
|
+
export type RCErrorType = RCErrorType.Internal | RCErrorType.Identity | RCErrorType.NoLocalAddress | RCErrorType.NewController | RCErrorType.NotDiscovered | RCErrorType.TLSStartFailed | RCErrorType.Exception | RCErrorType.CtrlAuth | RCErrorType.CtrlNotFound | RCErrorType.CtrlError | RCErrorType.Invitation | RCErrorType.Version | RCErrorType.Encrypt | RCErrorType.Decrypt | RCErrorType.BlockSize | RCErrorType.Syntax;
|
|
2120
|
+
export declare namespace RCErrorType {
|
|
2121
|
+
export type Tag = "internal" | "identity" | "noLocalAddress" | "newController" | "notDiscovered" | "tLSStartFailed" | "exception" | "ctrlAuth" | "ctrlNotFound" | "ctrlError" | "invitation" | "version" | "encrypt" | "decrypt" | "blockSize" | "syntax";
|
|
2122
|
+
interface Interface {
|
|
2123
|
+
type: Tag;
|
|
2124
|
+
}
|
|
2125
|
+
export interface Internal extends Interface {
|
|
2126
|
+
type: "internal";
|
|
2127
|
+
internalErr: string;
|
|
2128
|
+
}
|
|
2129
|
+
export interface Identity extends Interface {
|
|
2130
|
+
type: "identity";
|
|
2131
|
+
}
|
|
2132
|
+
export interface NoLocalAddress extends Interface {
|
|
2133
|
+
type: "noLocalAddress";
|
|
2134
|
+
}
|
|
2135
|
+
export interface NewController extends Interface {
|
|
2136
|
+
type: "newController";
|
|
2137
|
+
}
|
|
2138
|
+
export interface NotDiscovered extends Interface {
|
|
2139
|
+
type: "notDiscovered";
|
|
2140
|
+
}
|
|
2141
|
+
export interface TLSStartFailed extends Interface {
|
|
2142
|
+
type: "tLSStartFailed";
|
|
2143
|
+
}
|
|
2144
|
+
export interface Exception extends Interface {
|
|
2145
|
+
type: "exception";
|
|
2146
|
+
exception: string;
|
|
2147
|
+
}
|
|
2148
|
+
export interface CtrlAuth extends Interface {
|
|
2149
|
+
type: "ctrlAuth";
|
|
2150
|
+
}
|
|
2151
|
+
export interface CtrlNotFound extends Interface {
|
|
2152
|
+
type: "ctrlNotFound";
|
|
2153
|
+
}
|
|
2154
|
+
export interface CtrlError extends Interface {
|
|
2155
|
+
type: "ctrlError";
|
|
2156
|
+
ctrlErr: string;
|
|
2157
|
+
}
|
|
2158
|
+
export interface Invitation extends Interface {
|
|
2159
|
+
type: "invitation";
|
|
2160
|
+
}
|
|
2161
|
+
export interface Version extends Interface {
|
|
2162
|
+
type: "version";
|
|
2163
|
+
}
|
|
2164
|
+
export interface Encrypt extends Interface {
|
|
2165
|
+
type: "encrypt";
|
|
2166
|
+
}
|
|
2167
|
+
export interface Decrypt extends Interface {
|
|
2168
|
+
type: "decrypt";
|
|
2169
|
+
}
|
|
2170
|
+
export interface BlockSize extends Interface {
|
|
2171
|
+
type: "blockSize";
|
|
2172
|
+
}
|
|
2173
|
+
export interface Syntax extends Interface {
|
|
2174
|
+
type: "syntax";
|
|
2175
|
+
syntaxErr: string;
|
|
2176
|
+
}
|
|
2177
|
+
export {};
|
|
2178
|
+
}
|
|
2179
|
+
export declare enum RatchetSyncState {
|
|
2180
|
+
Ok = "ok",
|
|
2181
|
+
Allowed = "allowed",
|
|
2182
|
+
Required = "required",
|
|
2183
|
+
Started = "started",
|
|
2184
|
+
Agreed = "agreed"
|
|
2185
|
+
}
|
|
2186
|
+
export type RcvConnEvent = RcvConnEvent.SwitchQueue | RcvConnEvent.RatchetSync | RcvConnEvent.VerificationCodeReset | RcvConnEvent.PqEnabled;
|
|
2187
|
+
export declare namespace RcvConnEvent {
|
|
2188
|
+
export type Tag = "switchQueue" | "ratchetSync" | "verificationCodeReset" | "pqEnabled";
|
|
2189
|
+
interface Interface {
|
|
2190
|
+
type: Tag;
|
|
2191
|
+
}
|
|
2192
|
+
export interface SwitchQueue extends Interface {
|
|
2193
|
+
type: "switchQueue";
|
|
2194
|
+
phase: SwitchPhase;
|
|
2195
|
+
}
|
|
2196
|
+
export interface RatchetSync extends Interface {
|
|
2197
|
+
type: "ratchetSync";
|
|
2198
|
+
syncStatus: RatchetSyncState;
|
|
2199
|
+
}
|
|
2200
|
+
export interface VerificationCodeReset extends Interface {
|
|
2201
|
+
type: "verificationCodeReset";
|
|
2202
|
+
}
|
|
2203
|
+
export interface PqEnabled extends Interface {
|
|
2204
|
+
type: "pqEnabled";
|
|
2205
|
+
enabled: boolean;
|
|
2206
|
+
}
|
|
2207
|
+
export {};
|
|
2208
|
+
}
|
|
2209
|
+
export type RcvDirectEvent = RcvDirectEvent.ContactDeleted | RcvDirectEvent.ProfileUpdated | RcvDirectEvent.GroupInvLinkReceived;
|
|
2210
|
+
export declare namespace RcvDirectEvent {
|
|
2211
|
+
export type Tag = "contactDeleted" | "profileUpdated" | "groupInvLinkReceived";
|
|
2212
|
+
interface Interface {
|
|
2213
|
+
type: Tag;
|
|
2214
|
+
}
|
|
2215
|
+
export interface ContactDeleted extends Interface {
|
|
2216
|
+
type: "contactDeleted";
|
|
2217
|
+
}
|
|
2218
|
+
export interface ProfileUpdated extends Interface {
|
|
2219
|
+
type: "profileUpdated";
|
|
2220
|
+
fromProfile: Profile;
|
|
2221
|
+
toProfile: Profile;
|
|
2222
|
+
}
|
|
2223
|
+
export interface GroupInvLinkReceived extends Interface {
|
|
2224
|
+
type: "groupInvLinkReceived";
|
|
2225
|
+
groupProfile: GroupProfile;
|
|
2226
|
+
}
|
|
2227
|
+
export {};
|
|
2228
|
+
}
|
|
2229
|
+
export interface RcvFileDescr {
|
|
2230
|
+
fileDescrId: number;
|
|
2231
|
+
fileDescrText: string;
|
|
2232
|
+
fileDescrPartNo: number;
|
|
2233
|
+
fileDescrComplete: boolean;
|
|
2234
|
+
}
|
|
2235
|
+
export interface RcvFileInfo {
|
|
2236
|
+
filePath: string;
|
|
2237
|
+
connId?: number;
|
|
2238
|
+
agentConnId?: string;
|
|
2239
|
+
}
|
|
2240
|
+
export type RcvFileStatus = RcvFileStatus.New | RcvFileStatus.Accepted | RcvFileStatus.Connected | RcvFileStatus.Complete | RcvFileStatus.Cancelled;
|
|
2241
|
+
export declare namespace RcvFileStatus {
|
|
2242
|
+
export type Tag = "new" | "accepted" | "connected" | "complete" | "cancelled";
|
|
2243
|
+
interface Interface {
|
|
2244
|
+
type: Tag;
|
|
2245
|
+
}
|
|
2246
|
+
export interface New extends Interface {
|
|
2247
|
+
type: "new";
|
|
2248
|
+
}
|
|
2249
|
+
export interface Accepted extends Interface {
|
|
2250
|
+
type: "accepted";
|
|
2251
|
+
fileInfo: RcvFileInfo;
|
|
2252
|
+
}
|
|
2253
|
+
export interface Connected extends Interface {
|
|
2254
|
+
type: "connected";
|
|
2255
|
+
fileInfo: RcvFileInfo;
|
|
2256
|
+
}
|
|
2257
|
+
export interface Complete extends Interface {
|
|
2258
|
+
type: "complete";
|
|
2259
|
+
fileInfo: RcvFileInfo;
|
|
2260
|
+
}
|
|
2261
|
+
export interface Cancelled extends Interface {
|
|
2262
|
+
type: "cancelled";
|
|
2263
|
+
fileInfo_?: RcvFileInfo;
|
|
2264
|
+
}
|
|
2265
|
+
export {};
|
|
2266
|
+
}
|
|
2267
|
+
export interface RcvFileTransfer {
|
|
2268
|
+
fileId: number;
|
|
2269
|
+
xftpRcvFile?: XFTPRcvFile;
|
|
2270
|
+
fileInvitation: FileInvitation;
|
|
2271
|
+
fileStatus: RcvFileStatus;
|
|
2272
|
+
rcvFileInline?: InlineFileMode;
|
|
2273
|
+
senderDisplayName: string;
|
|
2274
|
+
chunkSize: number;
|
|
2275
|
+
cancelled: boolean;
|
|
2276
|
+
grpMemberId?: number;
|
|
2277
|
+
cryptoArgs?: CryptoFileArgs;
|
|
2278
|
+
}
|
|
2279
|
+
export type RcvGroupEvent = RcvGroupEvent.MemberAdded | RcvGroupEvent.MemberConnected | RcvGroupEvent.MemberAccepted | RcvGroupEvent.UserAccepted | RcvGroupEvent.MemberLeft | RcvGroupEvent.MemberRole | RcvGroupEvent.MemberBlocked | RcvGroupEvent.UserRole | RcvGroupEvent.MemberDeleted | RcvGroupEvent.UserDeleted | RcvGroupEvent.GroupDeleted | RcvGroupEvent.GroupUpdated | RcvGroupEvent.InvitedViaGroupLink | RcvGroupEvent.MemberCreatedContact | RcvGroupEvent.MemberProfileUpdated | RcvGroupEvent.NewMemberPendingReview;
|
|
2280
|
+
export declare namespace RcvGroupEvent {
|
|
2281
|
+
export type Tag = "memberAdded" | "memberConnected" | "memberAccepted" | "userAccepted" | "memberLeft" | "memberRole" | "memberBlocked" | "userRole" | "memberDeleted" | "userDeleted" | "groupDeleted" | "groupUpdated" | "invitedViaGroupLink" | "memberCreatedContact" | "memberProfileUpdated" | "newMemberPendingReview";
|
|
2282
|
+
interface Interface {
|
|
2283
|
+
type: Tag;
|
|
2284
|
+
}
|
|
2285
|
+
export interface MemberAdded extends Interface {
|
|
2286
|
+
type: "memberAdded";
|
|
2287
|
+
groupMemberId: number;
|
|
2288
|
+
profile: Profile;
|
|
2289
|
+
}
|
|
2290
|
+
export interface MemberConnected extends Interface {
|
|
2291
|
+
type: "memberConnected";
|
|
2292
|
+
}
|
|
2293
|
+
export interface MemberAccepted extends Interface {
|
|
2294
|
+
type: "memberAccepted";
|
|
2295
|
+
groupMemberId: number;
|
|
2296
|
+
profile: Profile;
|
|
2297
|
+
}
|
|
2298
|
+
export interface UserAccepted extends Interface {
|
|
2299
|
+
type: "userAccepted";
|
|
2300
|
+
}
|
|
2301
|
+
export interface MemberLeft extends Interface {
|
|
2302
|
+
type: "memberLeft";
|
|
2303
|
+
}
|
|
2304
|
+
export interface MemberRole extends Interface {
|
|
2305
|
+
type: "memberRole";
|
|
2306
|
+
groupMemberId: number;
|
|
2307
|
+
profile: Profile;
|
|
2308
|
+
role: GroupMemberRole;
|
|
2309
|
+
}
|
|
2310
|
+
export interface MemberBlocked extends Interface {
|
|
2311
|
+
type: "memberBlocked";
|
|
2312
|
+
groupMemberId: number;
|
|
2313
|
+
profile: Profile;
|
|
2314
|
+
blocked: boolean;
|
|
2315
|
+
}
|
|
2316
|
+
export interface UserRole extends Interface {
|
|
2317
|
+
type: "userRole";
|
|
2318
|
+
role: GroupMemberRole;
|
|
2319
|
+
}
|
|
2320
|
+
export interface MemberDeleted extends Interface {
|
|
2321
|
+
type: "memberDeleted";
|
|
2322
|
+
groupMemberId: number;
|
|
2323
|
+
profile: Profile;
|
|
2324
|
+
}
|
|
2325
|
+
export interface UserDeleted extends Interface {
|
|
2326
|
+
type: "userDeleted";
|
|
2327
|
+
}
|
|
2328
|
+
export interface GroupDeleted extends Interface {
|
|
2329
|
+
type: "groupDeleted";
|
|
2330
|
+
}
|
|
2331
|
+
export interface GroupUpdated extends Interface {
|
|
2332
|
+
type: "groupUpdated";
|
|
2333
|
+
groupProfile: GroupProfile;
|
|
2334
|
+
}
|
|
2335
|
+
export interface InvitedViaGroupLink extends Interface {
|
|
2336
|
+
type: "invitedViaGroupLink";
|
|
2337
|
+
}
|
|
2338
|
+
export interface MemberCreatedContact extends Interface {
|
|
2339
|
+
type: "memberCreatedContact";
|
|
2340
|
+
}
|
|
2341
|
+
export interface MemberProfileUpdated extends Interface {
|
|
2342
|
+
type: "memberProfileUpdated";
|
|
2343
|
+
fromProfile: Profile;
|
|
2344
|
+
toProfile: Profile;
|
|
2345
|
+
}
|
|
2346
|
+
export interface NewMemberPendingReview extends Interface {
|
|
2347
|
+
type: "newMemberPendingReview";
|
|
2348
|
+
}
|
|
2349
|
+
export {};
|
|
2350
|
+
}
|
|
2351
|
+
export declare enum ReportReason {
|
|
2352
|
+
Spam = "spam",
|
|
2353
|
+
Content = "content",
|
|
2354
|
+
Community = "community",
|
|
2355
|
+
Profile = "profile",
|
|
2356
|
+
Other = "other"
|
|
2357
|
+
}
|
|
2358
|
+
export interface RoleGroupPreference {
|
|
2359
|
+
enable: GroupFeatureEnabled;
|
|
2360
|
+
role?: GroupMemberRole;
|
|
2361
|
+
}
|
|
2362
|
+
export type SMPAgentError = SMPAgentError.A_MESSAGE | SMPAgentError.A_PROHIBITED | SMPAgentError.A_VERSION | SMPAgentError.A_LINK | SMPAgentError.A_CRYPTO | SMPAgentError.A_DUPLICATE | SMPAgentError.A_QUEUE;
|
|
2363
|
+
export declare namespace SMPAgentError {
|
|
2364
|
+
export type Tag = "A_MESSAGE" | "A_PROHIBITED" | "A_VERSION" | "A_LINK" | "A_CRYPTO" | "A_DUPLICATE" | "A_QUEUE";
|
|
2365
|
+
interface Interface {
|
|
2366
|
+
type: Tag;
|
|
2367
|
+
}
|
|
2368
|
+
export interface A_MESSAGE extends Interface {
|
|
2369
|
+
type: "A_MESSAGE";
|
|
2370
|
+
}
|
|
2371
|
+
export interface A_PROHIBITED extends Interface {
|
|
2372
|
+
type: "A_PROHIBITED";
|
|
2373
|
+
prohibitedErr: string;
|
|
2374
|
+
}
|
|
2375
|
+
export interface A_VERSION extends Interface {
|
|
2376
|
+
type: "A_VERSION";
|
|
2377
|
+
}
|
|
2378
|
+
export interface A_LINK extends Interface {
|
|
2379
|
+
type: "A_LINK";
|
|
2380
|
+
linkErr: string;
|
|
2381
|
+
}
|
|
2382
|
+
export interface A_CRYPTO extends Interface {
|
|
2383
|
+
type: "A_CRYPTO";
|
|
2384
|
+
cryptoErr: AgentCryptoError;
|
|
2385
|
+
}
|
|
2386
|
+
export interface A_DUPLICATE extends Interface {
|
|
2387
|
+
type: "A_DUPLICATE";
|
|
2388
|
+
}
|
|
2389
|
+
export interface A_QUEUE extends Interface {
|
|
2390
|
+
type: "A_QUEUE";
|
|
2391
|
+
queueErr: string;
|
|
2392
|
+
}
|
|
2393
|
+
export {};
|
|
2394
|
+
}
|
|
2395
|
+
export interface SecurityCode {
|
|
2396
|
+
securityCode: string;
|
|
2397
|
+
verifiedAt: string;
|
|
2398
|
+
}
|
|
2399
|
+
export interface SimplePreference {
|
|
2400
|
+
allow: FeatureAllowed;
|
|
2401
|
+
}
|
|
2402
|
+
export declare enum SimplexLinkType {
|
|
2403
|
+
Contact = "contact",
|
|
2404
|
+
Invitation = "invitation",
|
|
2405
|
+
Group = "group",
|
|
2406
|
+
Channel = "channel",
|
|
2407
|
+
Relay = "relay"
|
|
2408
|
+
}
|
|
2409
|
+
export declare enum SndCIStatusProgress {
|
|
2410
|
+
Partial = "partial",
|
|
2411
|
+
Complete = "complete"
|
|
2412
|
+
}
|
|
2413
|
+
export type SndConnEvent = SndConnEvent.SwitchQueue | SndConnEvent.RatchetSync | SndConnEvent.PqEnabled;
|
|
2414
|
+
export declare namespace SndConnEvent {
|
|
2415
|
+
export type Tag = "switchQueue" | "ratchetSync" | "pqEnabled";
|
|
2416
|
+
interface Interface {
|
|
2417
|
+
type: Tag;
|
|
2418
|
+
}
|
|
2419
|
+
export interface SwitchQueue extends Interface {
|
|
2420
|
+
type: "switchQueue";
|
|
2421
|
+
phase: SwitchPhase;
|
|
2422
|
+
member?: GroupMemberRef;
|
|
2423
|
+
}
|
|
2424
|
+
export interface RatchetSync extends Interface {
|
|
2425
|
+
type: "ratchetSync";
|
|
2426
|
+
syncStatus: RatchetSyncState;
|
|
2427
|
+
member?: GroupMemberRef;
|
|
2428
|
+
}
|
|
2429
|
+
export interface PqEnabled extends Interface {
|
|
2430
|
+
type: "pqEnabled";
|
|
2431
|
+
enabled: boolean;
|
|
2432
|
+
}
|
|
2433
|
+
export {};
|
|
2434
|
+
}
|
|
2435
|
+
export type SndError = SndError.Auth | SndError.Quota | SndError.Expired | SndError.Relay | SndError.Proxy | SndError.ProxyRelay | SndError.Other;
|
|
2436
|
+
export declare namespace SndError {
|
|
2437
|
+
export type Tag = "auth" | "quota" | "expired" | "relay" | "proxy" | "proxyRelay" | "other";
|
|
2438
|
+
interface Interface {
|
|
2439
|
+
type: Tag;
|
|
2440
|
+
}
|
|
2441
|
+
export interface Auth extends Interface {
|
|
2442
|
+
type: "auth";
|
|
2443
|
+
}
|
|
2444
|
+
export interface Quota extends Interface {
|
|
2445
|
+
type: "quota";
|
|
2446
|
+
}
|
|
2447
|
+
export interface Expired extends Interface {
|
|
2448
|
+
type: "expired";
|
|
2449
|
+
}
|
|
2450
|
+
export interface Relay extends Interface {
|
|
2451
|
+
type: "relay";
|
|
2452
|
+
srvError: SrvError;
|
|
2453
|
+
}
|
|
2454
|
+
export interface Proxy extends Interface {
|
|
2455
|
+
type: "proxy";
|
|
2456
|
+
proxyServer: string;
|
|
2457
|
+
srvError: SrvError;
|
|
2458
|
+
}
|
|
2459
|
+
export interface ProxyRelay extends Interface {
|
|
2460
|
+
type: "proxyRelay";
|
|
2461
|
+
proxyServer: string;
|
|
2462
|
+
srvError: SrvError;
|
|
2463
|
+
}
|
|
2464
|
+
export interface Other extends Interface {
|
|
2465
|
+
type: "other";
|
|
2466
|
+
sndError: string;
|
|
2467
|
+
}
|
|
2468
|
+
export {};
|
|
2469
|
+
}
|
|
2470
|
+
export interface SndFileTransfer {
|
|
2471
|
+
fileId: number;
|
|
2472
|
+
fileName: string;
|
|
2473
|
+
filePath: string;
|
|
2474
|
+
fileSize: number;
|
|
2475
|
+
chunkSize: number;
|
|
2476
|
+
recipientDisplayName: string;
|
|
2477
|
+
connId: number;
|
|
2478
|
+
agentConnId: string;
|
|
2479
|
+
groupMemberId?: number;
|
|
2480
|
+
fileStatus: FileStatus;
|
|
2481
|
+
fileDescrId?: number;
|
|
2482
|
+
fileInline?: InlineFileMode;
|
|
2483
|
+
}
|
|
2484
|
+
export type SndGroupEvent = SndGroupEvent.MemberRole | SndGroupEvent.MemberBlocked | SndGroupEvent.UserRole | SndGroupEvent.MemberDeleted | SndGroupEvent.UserLeft | SndGroupEvent.GroupUpdated | SndGroupEvent.MemberAccepted | SndGroupEvent.UserPendingReview;
|
|
2485
|
+
export declare namespace SndGroupEvent {
|
|
2486
|
+
export type Tag = "memberRole" | "memberBlocked" | "userRole" | "memberDeleted" | "userLeft" | "groupUpdated" | "memberAccepted" | "userPendingReview";
|
|
2487
|
+
interface Interface {
|
|
2488
|
+
type: Tag;
|
|
2489
|
+
}
|
|
2490
|
+
export interface MemberRole extends Interface {
|
|
2491
|
+
type: "memberRole";
|
|
2492
|
+
groupMemberId: number;
|
|
2493
|
+
profile: Profile;
|
|
2494
|
+
role: GroupMemberRole;
|
|
2495
|
+
}
|
|
2496
|
+
export interface MemberBlocked extends Interface {
|
|
2497
|
+
type: "memberBlocked";
|
|
2498
|
+
groupMemberId: number;
|
|
2499
|
+
profile: Profile;
|
|
2500
|
+
blocked: boolean;
|
|
2501
|
+
}
|
|
2502
|
+
export interface UserRole extends Interface {
|
|
2503
|
+
type: "userRole";
|
|
2504
|
+
role: GroupMemberRole;
|
|
2505
|
+
}
|
|
2506
|
+
export interface MemberDeleted extends Interface {
|
|
2507
|
+
type: "memberDeleted";
|
|
2508
|
+
groupMemberId: number;
|
|
2509
|
+
profile: Profile;
|
|
2510
|
+
}
|
|
2511
|
+
export interface UserLeft extends Interface {
|
|
2512
|
+
type: "userLeft";
|
|
2513
|
+
}
|
|
2514
|
+
export interface GroupUpdated extends Interface {
|
|
2515
|
+
type: "groupUpdated";
|
|
2516
|
+
groupProfile: GroupProfile;
|
|
2517
|
+
}
|
|
2518
|
+
export interface MemberAccepted extends Interface {
|
|
2519
|
+
type: "memberAccepted";
|
|
2520
|
+
groupMemberId: number;
|
|
2521
|
+
profile: Profile;
|
|
2522
|
+
}
|
|
2523
|
+
export interface UserPendingReview extends Interface {
|
|
2524
|
+
type: "userPendingReview";
|
|
2525
|
+
}
|
|
2526
|
+
export {};
|
|
2527
|
+
}
|
|
2528
|
+
export type SrvError = SrvError.Host | SrvError.Version | SrvError.Other;
|
|
2529
|
+
export declare namespace SrvError {
|
|
2530
|
+
export type Tag = "host" | "version" | "other";
|
|
2531
|
+
interface Interface {
|
|
2532
|
+
type: Tag;
|
|
2533
|
+
}
|
|
2534
|
+
export interface Host extends Interface {
|
|
2535
|
+
type: "host";
|
|
2536
|
+
}
|
|
2537
|
+
export interface Version extends Interface {
|
|
2538
|
+
type: "version";
|
|
2539
|
+
}
|
|
2540
|
+
export interface Other extends Interface {
|
|
2541
|
+
type: "other";
|
|
2542
|
+
srvError: string;
|
|
2543
|
+
}
|
|
2544
|
+
export {};
|
|
2545
|
+
}
|
|
2546
|
+
export type StoreError = StoreError.DuplicateName | StoreError.UserNotFound | StoreError.UserNotFoundByName | StoreError.UserNotFoundByContactId | StoreError.UserNotFoundByGroupId | StoreError.UserNotFoundByFileId | StoreError.UserNotFoundByContactRequestId | StoreError.ContactNotFound | StoreError.ContactNotFoundByName | StoreError.ContactNotFoundByMemberId | StoreError.ContactNotReady | StoreError.DuplicateContactLink | StoreError.UserContactLinkNotFound | StoreError.ContactRequestNotFound | StoreError.ContactRequestNotFoundByName | StoreError.InvalidContactRequestEntity | StoreError.InvalidBusinessChatContactRequest | StoreError.GroupNotFound | StoreError.GroupNotFoundByName | StoreError.GroupMemberNameNotFound | StoreError.GroupMemberNotFound | StoreError.GroupHostMemberNotFound | StoreError.GroupMemberNotFoundByMemberId | StoreError.MemberContactGroupMemberNotFound | StoreError.GroupWithoutUser | StoreError.DuplicateGroupMember | StoreError.GroupAlreadyJoined | StoreError.GroupInvitationNotFound | StoreError.NoteFolderAlreadyExists | StoreError.NoteFolderNotFound | StoreError.UserNoteFolderNotFound | StoreError.SndFileNotFound | StoreError.SndFileInvalid | StoreError.RcvFileNotFound | StoreError.RcvFileDescrNotFound | StoreError.FileNotFound | StoreError.RcvFileInvalid | StoreError.RcvFileInvalidDescrPart | StoreError.LocalFileNoTransfer | StoreError.SharedMsgIdNotFoundByFileId | StoreError.FileIdNotFoundBySharedMsgId | StoreError.SndFileNotFoundXFTP | StoreError.RcvFileNotFoundXFTP | StoreError.ConnectionNotFound | StoreError.ConnectionNotFoundById | StoreError.ConnectionNotFoundByMemberId | StoreError.PendingConnectionNotFound | StoreError.IntroNotFound | StoreError.UniqueID | StoreError.LargeMsg | StoreError.InternalError | StoreError.DBException | StoreError.DBBusyError | StoreError.BadChatItem | StoreError.ChatItemNotFound | StoreError.ChatItemNotFoundByText | StoreError.ChatItemSharedMsgIdNotFound | StoreError.ChatItemNotFoundByFileId | StoreError.ChatItemNotFoundByContactId | StoreError.ChatItemNotFoundByGroupId | StoreError.ProfileNotFound | StoreError.DuplicateGroupLink | StoreError.GroupLinkNotFound | StoreError.HostMemberIdNotFound | StoreError.ContactNotFoundByFileId | StoreError.NoGroupSndStatus | StoreError.DuplicateGroupMessage | StoreError.RemoteHostNotFound | StoreError.RemoteHostUnknown | StoreError.RemoteHostDuplicateCA | StoreError.RemoteCtrlNotFound | StoreError.RemoteCtrlDuplicateCA | StoreError.ProhibitedDeleteUser | StoreError.OperatorNotFound | StoreError.UsageConditionsNotFound | StoreError.InvalidQuote | StoreError.InvalidMention;
|
|
2547
|
+
export declare namespace StoreError {
|
|
2548
|
+
export type Tag = "duplicateName" | "userNotFound" | "userNotFoundByName" | "userNotFoundByContactId" | "userNotFoundByGroupId" | "userNotFoundByFileId" | "userNotFoundByContactRequestId" | "contactNotFound" | "contactNotFoundByName" | "contactNotFoundByMemberId" | "contactNotReady" | "duplicateContactLink" | "userContactLinkNotFound" | "contactRequestNotFound" | "contactRequestNotFoundByName" | "invalidContactRequestEntity" | "invalidBusinessChatContactRequest" | "groupNotFound" | "groupNotFoundByName" | "groupMemberNameNotFound" | "groupMemberNotFound" | "groupHostMemberNotFound" | "groupMemberNotFoundByMemberId" | "memberContactGroupMemberNotFound" | "groupWithoutUser" | "duplicateGroupMember" | "groupAlreadyJoined" | "groupInvitationNotFound" | "noteFolderAlreadyExists" | "noteFolderNotFound" | "userNoteFolderNotFound" | "sndFileNotFound" | "sndFileInvalid" | "rcvFileNotFound" | "rcvFileDescrNotFound" | "fileNotFound" | "rcvFileInvalid" | "rcvFileInvalidDescrPart" | "localFileNoTransfer" | "sharedMsgIdNotFoundByFileId" | "fileIdNotFoundBySharedMsgId" | "sndFileNotFoundXFTP" | "rcvFileNotFoundXFTP" | "connectionNotFound" | "connectionNotFoundById" | "connectionNotFoundByMemberId" | "pendingConnectionNotFound" | "introNotFound" | "uniqueID" | "largeMsg" | "internalError" | "dBException" | "dBBusyError" | "badChatItem" | "chatItemNotFound" | "chatItemNotFoundByText" | "chatItemSharedMsgIdNotFound" | "chatItemNotFoundByFileId" | "chatItemNotFoundByContactId" | "chatItemNotFoundByGroupId" | "profileNotFound" | "duplicateGroupLink" | "groupLinkNotFound" | "hostMemberIdNotFound" | "contactNotFoundByFileId" | "noGroupSndStatus" | "duplicateGroupMessage" | "remoteHostNotFound" | "remoteHostUnknown" | "remoteHostDuplicateCA" | "remoteCtrlNotFound" | "remoteCtrlDuplicateCA" | "prohibitedDeleteUser" | "operatorNotFound" | "usageConditionsNotFound" | "invalidQuote" | "invalidMention";
|
|
2549
|
+
interface Interface {
|
|
2550
|
+
type: Tag;
|
|
2551
|
+
}
|
|
2552
|
+
export interface DuplicateName extends Interface {
|
|
2553
|
+
type: "duplicateName";
|
|
2554
|
+
}
|
|
2555
|
+
export interface UserNotFound extends Interface {
|
|
2556
|
+
type: "userNotFound";
|
|
2557
|
+
userId: number;
|
|
2558
|
+
}
|
|
2559
|
+
export interface UserNotFoundByName extends Interface {
|
|
2560
|
+
type: "userNotFoundByName";
|
|
2561
|
+
contactName: string;
|
|
2562
|
+
}
|
|
2563
|
+
export interface UserNotFoundByContactId extends Interface {
|
|
2564
|
+
type: "userNotFoundByContactId";
|
|
2565
|
+
contactId: number;
|
|
2566
|
+
}
|
|
2567
|
+
export interface UserNotFoundByGroupId extends Interface {
|
|
2568
|
+
type: "userNotFoundByGroupId";
|
|
2569
|
+
groupId: number;
|
|
2570
|
+
}
|
|
2571
|
+
export interface UserNotFoundByFileId extends Interface {
|
|
2572
|
+
type: "userNotFoundByFileId";
|
|
2573
|
+
fileId: number;
|
|
2574
|
+
}
|
|
2575
|
+
export interface UserNotFoundByContactRequestId extends Interface {
|
|
2576
|
+
type: "userNotFoundByContactRequestId";
|
|
2577
|
+
contactRequestId: number;
|
|
2578
|
+
}
|
|
2579
|
+
export interface ContactNotFound extends Interface {
|
|
2580
|
+
type: "contactNotFound";
|
|
2581
|
+
contactId: number;
|
|
2582
|
+
}
|
|
2583
|
+
export interface ContactNotFoundByName extends Interface {
|
|
2584
|
+
type: "contactNotFoundByName";
|
|
2585
|
+
contactName: string;
|
|
2586
|
+
}
|
|
2587
|
+
export interface ContactNotFoundByMemberId extends Interface {
|
|
2588
|
+
type: "contactNotFoundByMemberId";
|
|
2589
|
+
groupMemberId: number;
|
|
2590
|
+
}
|
|
2591
|
+
export interface ContactNotReady extends Interface {
|
|
2592
|
+
type: "contactNotReady";
|
|
2593
|
+
contactName: string;
|
|
2594
|
+
}
|
|
2595
|
+
export interface DuplicateContactLink extends Interface {
|
|
2596
|
+
type: "duplicateContactLink";
|
|
2597
|
+
}
|
|
2598
|
+
export interface UserContactLinkNotFound extends Interface {
|
|
2599
|
+
type: "userContactLinkNotFound";
|
|
2600
|
+
}
|
|
2601
|
+
export interface ContactRequestNotFound extends Interface {
|
|
2602
|
+
type: "contactRequestNotFound";
|
|
2603
|
+
contactRequestId: number;
|
|
2604
|
+
}
|
|
2605
|
+
export interface ContactRequestNotFoundByName extends Interface {
|
|
2606
|
+
type: "contactRequestNotFoundByName";
|
|
2607
|
+
contactName: string;
|
|
2608
|
+
}
|
|
2609
|
+
export interface InvalidContactRequestEntity extends Interface {
|
|
2610
|
+
type: "invalidContactRequestEntity";
|
|
2611
|
+
contactRequestId: number;
|
|
2612
|
+
}
|
|
2613
|
+
export interface InvalidBusinessChatContactRequest extends Interface {
|
|
2614
|
+
type: "invalidBusinessChatContactRequest";
|
|
2615
|
+
}
|
|
2616
|
+
export interface GroupNotFound extends Interface {
|
|
2617
|
+
type: "groupNotFound";
|
|
2618
|
+
groupId: number;
|
|
2619
|
+
}
|
|
2620
|
+
export interface GroupNotFoundByName extends Interface {
|
|
2621
|
+
type: "groupNotFoundByName";
|
|
2622
|
+
groupName: string;
|
|
2623
|
+
}
|
|
2624
|
+
export interface GroupMemberNameNotFound extends Interface {
|
|
2625
|
+
type: "groupMemberNameNotFound";
|
|
2626
|
+
groupId: number;
|
|
2627
|
+
groupMemberName: string;
|
|
2628
|
+
}
|
|
2629
|
+
export interface GroupMemberNotFound extends Interface {
|
|
2630
|
+
type: "groupMemberNotFound";
|
|
2631
|
+
groupMemberId: number;
|
|
2632
|
+
}
|
|
2633
|
+
export interface GroupHostMemberNotFound extends Interface {
|
|
2634
|
+
type: "groupHostMemberNotFound";
|
|
2635
|
+
groupId: number;
|
|
2636
|
+
}
|
|
2637
|
+
export interface GroupMemberNotFoundByMemberId extends Interface {
|
|
2638
|
+
type: "groupMemberNotFoundByMemberId";
|
|
2639
|
+
memberId: string;
|
|
2640
|
+
}
|
|
2641
|
+
export interface MemberContactGroupMemberNotFound extends Interface {
|
|
2642
|
+
type: "memberContactGroupMemberNotFound";
|
|
2643
|
+
contactId: number;
|
|
2644
|
+
}
|
|
2645
|
+
export interface GroupWithoutUser extends Interface {
|
|
2646
|
+
type: "groupWithoutUser";
|
|
2647
|
+
}
|
|
2648
|
+
export interface DuplicateGroupMember extends Interface {
|
|
2649
|
+
type: "duplicateGroupMember";
|
|
2650
|
+
}
|
|
2651
|
+
export interface GroupAlreadyJoined extends Interface {
|
|
2652
|
+
type: "groupAlreadyJoined";
|
|
2653
|
+
}
|
|
2654
|
+
export interface GroupInvitationNotFound extends Interface {
|
|
2655
|
+
type: "groupInvitationNotFound";
|
|
2656
|
+
}
|
|
2657
|
+
export interface NoteFolderAlreadyExists extends Interface {
|
|
2658
|
+
type: "noteFolderAlreadyExists";
|
|
2659
|
+
noteFolderId: number;
|
|
2660
|
+
}
|
|
2661
|
+
export interface NoteFolderNotFound extends Interface {
|
|
2662
|
+
type: "noteFolderNotFound";
|
|
2663
|
+
noteFolderId: number;
|
|
2664
|
+
}
|
|
2665
|
+
export interface UserNoteFolderNotFound extends Interface {
|
|
2666
|
+
type: "userNoteFolderNotFound";
|
|
2667
|
+
}
|
|
2668
|
+
export interface SndFileNotFound extends Interface {
|
|
2669
|
+
type: "sndFileNotFound";
|
|
2670
|
+
fileId: number;
|
|
2671
|
+
}
|
|
2672
|
+
export interface SndFileInvalid extends Interface {
|
|
2673
|
+
type: "sndFileInvalid";
|
|
2674
|
+
fileId: number;
|
|
2675
|
+
}
|
|
2676
|
+
export interface RcvFileNotFound extends Interface {
|
|
2677
|
+
type: "rcvFileNotFound";
|
|
2678
|
+
fileId: number;
|
|
2679
|
+
}
|
|
2680
|
+
export interface RcvFileDescrNotFound extends Interface {
|
|
2681
|
+
type: "rcvFileDescrNotFound";
|
|
2682
|
+
fileId: number;
|
|
2683
|
+
}
|
|
2684
|
+
export interface FileNotFound extends Interface {
|
|
2685
|
+
type: "fileNotFound";
|
|
2686
|
+
fileId: number;
|
|
2687
|
+
}
|
|
2688
|
+
export interface RcvFileInvalid extends Interface {
|
|
2689
|
+
type: "rcvFileInvalid";
|
|
2690
|
+
fileId: number;
|
|
2691
|
+
}
|
|
2692
|
+
export interface RcvFileInvalidDescrPart extends Interface {
|
|
2693
|
+
type: "rcvFileInvalidDescrPart";
|
|
2694
|
+
}
|
|
2695
|
+
export interface LocalFileNoTransfer extends Interface {
|
|
2696
|
+
type: "localFileNoTransfer";
|
|
2697
|
+
fileId: number;
|
|
2698
|
+
}
|
|
2699
|
+
export interface SharedMsgIdNotFoundByFileId extends Interface {
|
|
2700
|
+
type: "sharedMsgIdNotFoundByFileId";
|
|
2701
|
+
fileId: number;
|
|
2702
|
+
}
|
|
2703
|
+
export interface FileIdNotFoundBySharedMsgId extends Interface {
|
|
2704
|
+
type: "fileIdNotFoundBySharedMsgId";
|
|
2705
|
+
sharedMsgId: string;
|
|
2706
|
+
}
|
|
2707
|
+
export interface SndFileNotFoundXFTP extends Interface {
|
|
2708
|
+
type: "sndFileNotFoundXFTP";
|
|
2709
|
+
agentSndFileId: string;
|
|
2710
|
+
}
|
|
2711
|
+
export interface RcvFileNotFoundXFTP extends Interface {
|
|
2712
|
+
type: "rcvFileNotFoundXFTP";
|
|
2713
|
+
agentRcvFileId: string;
|
|
2714
|
+
}
|
|
2715
|
+
export interface ConnectionNotFound extends Interface {
|
|
2716
|
+
type: "connectionNotFound";
|
|
2717
|
+
agentConnId: string;
|
|
2718
|
+
}
|
|
2719
|
+
export interface ConnectionNotFoundById extends Interface {
|
|
2720
|
+
type: "connectionNotFoundById";
|
|
2721
|
+
connId: number;
|
|
2722
|
+
}
|
|
2723
|
+
export interface ConnectionNotFoundByMemberId extends Interface {
|
|
2724
|
+
type: "connectionNotFoundByMemberId";
|
|
2725
|
+
groupMemberId: number;
|
|
2726
|
+
}
|
|
2727
|
+
export interface PendingConnectionNotFound extends Interface {
|
|
2728
|
+
type: "pendingConnectionNotFound";
|
|
2729
|
+
connId: number;
|
|
2730
|
+
}
|
|
2731
|
+
export interface IntroNotFound extends Interface {
|
|
2732
|
+
type: "introNotFound";
|
|
2733
|
+
}
|
|
2734
|
+
export interface UniqueID extends Interface {
|
|
2735
|
+
type: "uniqueID";
|
|
2736
|
+
}
|
|
2737
|
+
export interface LargeMsg extends Interface {
|
|
2738
|
+
type: "largeMsg";
|
|
2739
|
+
}
|
|
2740
|
+
export interface InternalError extends Interface {
|
|
2741
|
+
type: "internalError";
|
|
2742
|
+
message: string;
|
|
2743
|
+
}
|
|
2744
|
+
export interface DBException extends Interface {
|
|
2745
|
+
type: "dBException";
|
|
2746
|
+
message: string;
|
|
2747
|
+
}
|
|
2748
|
+
export interface DBBusyError extends Interface {
|
|
2749
|
+
type: "dBBusyError";
|
|
2750
|
+
message: string;
|
|
2751
|
+
}
|
|
2752
|
+
export interface BadChatItem extends Interface {
|
|
2753
|
+
type: "badChatItem";
|
|
2754
|
+
itemId: number;
|
|
2755
|
+
itemTs?: string;
|
|
2756
|
+
}
|
|
2757
|
+
export interface ChatItemNotFound extends Interface {
|
|
2758
|
+
type: "chatItemNotFound";
|
|
2759
|
+
itemId: number;
|
|
2760
|
+
}
|
|
2761
|
+
export interface ChatItemNotFoundByText extends Interface {
|
|
2762
|
+
type: "chatItemNotFoundByText";
|
|
2763
|
+
text: string;
|
|
2764
|
+
}
|
|
2765
|
+
export interface ChatItemSharedMsgIdNotFound extends Interface {
|
|
2766
|
+
type: "chatItemSharedMsgIdNotFound";
|
|
2767
|
+
sharedMsgId: string;
|
|
2768
|
+
}
|
|
2769
|
+
export interface ChatItemNotFoundByFileId extends Interface {
|
|
2770
|
+
type: "chatItemNotFoundByFileId";
|
|
2771
|
+
fileId: number;
|
|
2772
|
+
}
|
|
2773
|
+
export interface ChatItemNotFoundByContactId extends Interface {
|
|
2774
|
+
type: "chatItemNotFoundByContactId";
|
|
2775
|
+
contactId: number;
|
|
2776
|
+
}
|
|
2777
|
+
export interface ChatItemNotFoundByGroupId extends Interface {
|
|
2778
|
+
type: "chatItemNotFoundByGroupId";
|
|
2779
|
+
groupId: number;
|
|
2780
|
+
}
|
|
2781
|
+
export interface ProfileNotFound extends Interface {
|
|
2782
|
+
type: "profileNotFound";
|
|
2783
|
+
profileId: number;
|
|
2784
|
+
}
|
|
2785
|
+
export interface DuplicateGroupLink extends Interface {
|
|
2786
|
+
type: "duplicateGroupLink";
|
|
2787
|
+
groupInfo: GroupInfo;
|
|
2788
|
+
}
|
|
2789
|
+
export interface GroupLinkNotFound extends Interface {
|
|
2790
|
+
type: "groupLinkNotFound";
|
|
2791
|
+
groupInfo: GroupInfo;
|
|
2792
|
+
}
|
|
2793
|
+
export interface HostMemberIdNotFound extends Interface {
|
|
2794
|
+
type: "hostMemberIdNotFound";
|
|
2795
|
+
groupId: number;
|
|
2796
|
+
}
|
|
2797
|
+
export interface ContactNotFoundByFileId extends Interface {
|
|
2798
|
+
type: "contactNotFoundByFileId";
|
|
2799
|
+
fileId: number;
|
|
2800
|
+
}
|
|
2801
|
+
export interface NoGroupSndStatus extends Interface {
|
|
2802
|
+
type: "noGroupSndStatus";
|
|
2803
|
+
itemId: number;
|
|
2804
|
+
groupMemberId: number;
|
|
2805
|
+
}
|
|
2806
|
+
export interface DuplicateGroupMessage extends Interface {
|
|
2807
|
+
type: "duplicateGroupMessage";
|
|
2808
|
+
groupId: number;
|
|
2809
|
+
sharedMsgId: string;
|
|
2810
|
+
authorGroupMemberId?: number;
|
|
2811
|
+
forwardedByGroupMemberId?: number;
|
|
2812
|
+
}
|
|
2813
|
+
export interface RemoteHostNotFound extends Interface {
|
|
2814
|
+
type: "remoteHostNotFound";
|
|
2815
|
+
remoteHostId: number;
|
|
2816
|
+
}
|
|
2817
|
+
export interface RemoteHostUnknown extends Interface {
|
|
2818
|
+
type: "remoteHostUnknown";
|
|
2819
|
+
}
|
|
2820
|
+
export interface RemoteHostDuplicateCA extends Interface {
|
|
2821
|
+
type: "remoteHostDuplicateCA";
|
|
2822
|
+
}
|
|
2823
|
+
export interface RemoteCtrlNotFound extends Interface {
|
|
2824
|
+
type: "remoteCtrlNotFound";
|
|
2825
|
+
remoteCtrlId: number;
|
|
2826
|
+
}
|
|
2827
|
+
export interface RemoteCtrlDuplicateCA extends Interface {
|
|
2828
|
+
type: "remoteCtrlDuplicateCA";
|
|
2829
|
+
}
|
|
2830
|
+
export interface ProhibitedDeleteUser extends Interface {
|
|
2831
|
+
type: "prohibitedDeleteUser";
|
|
2832
|
+
userId: number;
|
|
2833
|
+
contactId: number;
|
|
2834
|
+
}
|
|
2835
|
+
export interface OperatorNotFound extends Interface {
|
|
2836
|
+
type: "operatorNotFound";
|
|
2837
|
+
serverOperatorId: number;
|
|
2838
|
+
}
|
|
2839
|
+
export interface UsageConditionsNotFound extends Interface {
|
|
2840
|
+
type: "usageConditionsNotFound";
|
|
2841
|
+
}
|
|
2842
|
+
export interface InvalidQuote extends Interface {
|
|
2843
|
+
type: "invalidQuote";
|
|
2844
|
+
}
|
|
2845
|
+
export interface InvalidMention extends Interface {
|
|
2846
|
+
type: "invalidMention";
|
|
2847
|
+
}
|
|
2848
|
+
export {};
|
|
2849
|
+
}
|
|
2850
|
+
export declare enum SwitchPhase {
|
|
2851
|
+
Started = "started",
|
|
2852
|
+
Confirmed = "confirmed",
|
|
2853
|
+
Secured = "secured",
|
|
2854
|
+
Completed = "completed"
|
|
2855
|
+
}
|
|
2856
|
+
export interface TimedMessagesGroupPreference {
|
|
2857
|
+
enable: GroupFeatureEnabled;
|
|
2858
|
+
ttl?: number;
|
|
2859
|
+
}
|
|
2860
|
+
export interface TimedMessagesPreference {
|
|
2861
|
+
allow: FeatureAllowed;
|
|
2862
|
+
ttl?: number;
|
|
2863
|
+
}
|
|
2864
|
+
export type TransportError = TransportError.BadBlock | TransportError.Version | TransportError.LargeMsg | TransportError.BadSession | TransportError.NoServerAuth | TransportError.Handshake;
|
|
2865
|
+
export declare namespace TransportError {
|
|
2866
|
+
export type Tag = "badBlock" | "version" | "largeMsg" | "badSession" | "noServerAuth" | "handshake";
|
|
2867
|
+
interface Interface {
|
|
2868
|
+
type: Tag;
|
|
2869
|
+
}
|
|
2870
|
+
export interface BadBlock extends Interface {
|
|
2871
|
+
type: "badBlock";
|
|
2872
|
+
}
|
|
2873
|
+
export interface Version extends Interface {
|
|
2874
|
+
type: "version";
|
|
2875
|
+
}
|
|
2876
|
+
export interface LargeMsg extends Interface {
|
|
2877
|
+
type: "largeMsg";
|
|
2878
|
+
}
|
|
2879
|
+
export interface BadSession extends Interface {
|
|
2880
|
+
type: "badSession";
|
|
2881
|
+
}
|
|
2882
|
+
export interface NoServerAuth extends Interface {
|
|
2883
|
+
type: "noServerAuth";
|
|
2884
|
+
}
|
|
2885
|
+
export interface Handshake extends Interface {
|
|
2886
|
+
type: "handshake";
|
|
2887
|
+
handshakeErr: HandshakeError;
|
|
2888
|
+
}
|
|
2889
|
+
export {};
|
|
2890
|
+
}
|
|
2891
|
+
export declare enum UIColorMode {
|
|
2892
|
+
Light = "light",
|
|
2893
|
+
Dark = "dark"
|
|
2894
|
+
}
|
|
2895
|
+
export interface UIColors {
|
|
2896
|
+
accent?: string;
|
|
2897
|
+
accentVariant?: string;
|
|
2898
|
+
secondary?: string;
|
|
2899
|
+
secondaryVariant?: string;
|
|
2900
|
+
background?: string;
|
|
2901
|
+
menus?: string;
|
|
2902
|
+
title?: string;
|
|
2903
|
+
accentVariant2?: string;
|
|
2904
|
+
sentMessage?: string;
|
|
2905
|
+
sentReply?: string;
|
|
2906
|
+
receivedMessage?: string;
|
|
2907
|
+
receivedReply?: string;
|
|
2908
|
+
}
|
|
2909
|
+
export interface UIThemeEntityOverride {
|
|
2910
|
+
mode: UIColorMode;
|
|
2911
|
+
wallpaper?: ChatWallpaper;
|
|
2912
|
+
colors: UIColors;
|
|
2913
|
+
}
|
|
2914
|
+
export interface UIThemeEntityOverrides {
|
|
2915
|
+
light?: UIThemeEntityOverride;
|
|
2916
|
+
dark?: UIThemeEntityOverride;
|
|
2917
|
+
}
|
|
2918
|
+
export interface UpdatedMessage {
|
|
2919
|
+
msgContent: MsgContent;
|
|
2920
|
+
mentions: {
|
|
2921
|
+
[key: string]: number;
|
|
2922
|
+
};
|
|
2923
|
+
}
|
|
2924
|
+
export interface User {
|
|
2925
|
+
userId: number;
|
|
2926
|
+
agentUserId: number;
|
|
2927
|
+
userContactId: number;
|
|
2928
|
+
localDisplayName: string;
|
|
2929
|
+
profile: LocalProfile;
|
|
2930
|
+
fullPreferences: FullPreferences;
|
|
2931
|
+
activeUser: boolean;
|
|
2932
|
+
activeOrder: number;
|
|
2933
|
+
viewPwdHash?: UserPwdHash;
|
|
2934
|
+
showNtfs: boolean;
|
|
2935
|
+
sendRcptsContacts: boolean;
|
|
2936
|
+
sendRcptsSmallGroups: boolean;
|
|
2937
|
+
autoAcceptMemberContacts: boolean;
|
|
2938
|
+
userMemberProfileUpdatedAt?: string;
|
|
2939
|
+
uiThemes?: UIThemeEntityOverrides;
|
|
2940
|
+
}
|
|
2941
|
+
export interface UserContact {
|
|
2942
|
+
userContactLinkId: number;
|
|
2943
|
+
connReqContact: string;
|
|
2944
|
+
groupId?: number;
|
|
2945
|
+
}
|
|
2946
|
+
export interface UserContactLink {
|
|
2947
|
+
userContactLinkId: number;
|
|
2948
|
+
connLinkContact: CreatedConnLink;
|
|
2949
|
+
shortLinkDataSet: boolean;
|
|
2950
|
+
shortLinkLargeDataSet: boolean;
|
|
2951
|
+
addressSettings: AddressSettings;
|
|
2952
|
+
}
|
|
2953
|
+
export interface UserContactRequest {
|
|
2954
|
+
contactRequestId: number;
|
|
2955
|
+
agentInvitationId: string;
|
|
2956
|
+
contactId_?: number;
|
|
2957
|
+
businessGroupId_?: number;
|
|
2958
|
+
userContactLinkId_?: number;
|
|
2959
|
+
cReqChatVRange: VersionRange;
|
|
2960
|
+
localDisplayName: string;
|
|
2961
|
+
profileId: number;
|
|
2962
|
+
profile: Profile;
|
|
2963
|
+
createdAt: string;
|
|
2964
|
+
updatedAt: string;
|
|
2965
|
+
xContactId?: string;
|
|
2966
|
+
pqSupport: boolean;
|
|
2967
|
+
welcomeSharedMsgId?: string;
|
|
2968
|
+
requestSharedMsgId?: string;
|
|
2969
|
+
}
|
|
2970
|
+
export interface UserInfo {
|
|
2971
|
+
user: User;
|
|
2972
|
+
unreadCount: number;
|
|
2973
|
+
}
|
|
2974
|
+
export interface UserProfileUpdateSummary {
|
|
2975
|
+
updateSuccesses: number;
|
|
2976
|
+
updateFailures: number;
|
|
2977
|
+
changedContacts: [Contact];
|
|
2978
|
+
}
|
|
2979
|
+
export interface UserPwdHash {
|
|
2980
|
+
hash: string;
|
|
2981
|
+
salt: string;
|
|
2982
|
+
}
|
|
2983
|
+
export interface VersionRange {
|
|
2984
|
+
minVersion: number;
|
|
2985
|
+
maxVersion: number;
|
|
2986
|
+
}
|
|
2987
|
+
export type XFTPErrorType = XFTPErrorType.BLOCK | XFTPErrorType.SESSION | XFTPErrorType.HANDSHAKE | XFTPErrorType.CMD | XFTPErrorType.AUTH | XFTPErrorType.BLOCKED | XFTPErrorType.SIZE | XFTPErrorType.QUOTA | XFTPErrorType.DIGEST | XFTPErrorType.CRYPTO | XFTPErrorType.NO_FILE | XFTPErrorType.HAS_FILE | XFTPErrorType.FILE_IO | XFTPErrorType.TIMEOUT | XFTPErrorType.INTERNAL | XFTPErrorType.DUPLICATE_;
|
|
2988
|
+
export declare namespace XFTPErrorType {
|
|
2989
|
+
export type Tag = "BLOCK" | "SESSION" | "HANDSHAKE" | "CMD" | "AUTH" | "BLOCKED" | "SIZE" | "QUOTA" | "DIGEST" | "CRYPTO" | "NO_FILE" | "HAS_FILE" | "FILE_IO" | "TIMEOUT" | "INTERNAL" | "DUPLICATE_";
|
|
2990
|
+
interface Interface {
|
|
2991
|
+
type: Tag;
|
|
2992
|
+
}
|
|
2993
|
+
export interface BLOCK extends Interface {
|
|
2994
|
+
type: "BLOCK";
|
|
2995
|
+
}
|
|
2996
|
+
export interface SESSION extends Interface {
|
|
2997
|
+
type: "SESSION";
|
|
2998
|
+
}
|
|
2999
|
+
export interface HANDSHAKE extends Interface {
|
|
3000
|
+
type: "HANDSHAKE";
|
|
3001
|
+
}
|
|
3002
|
+
export interface CMD extends Interface {
|
|
3003
|
+
type: "CMD";
|
|
3004
|
+
cmdErr: CommandError;
|
|
3005
|
+
}
|
|
3006
|
+
export interface AUTH extends Interface {
|
|
3007
|
+
type: "AUTH";
|
|
3008
|
+
}
|
|
3009
|
+
export interface BLOCKED extends Interface {
|
|
3010
|
+
type: "BLOCKED";
|
|
3011
|
+
blockInfo: BlockingInfo;
|
|
3012
|
+
}
|
|
3013
|
+
export interface SIZE extends Interface {
|
|
3014
|
+
type: "SIZE";
|
|
3015
|
+
}
|
|
3016
|
+
export interface QUOTA extends Interface {
|
|
3017
|
+
type: "QUOTA";
|
|
3018
|
+
}
|
|
3019
|
+
export interface DIGEST extends Interface {
|
|
3020
|
+
type: "DIGEST";
|
|
3021
|
+
}
|
|
3022
|
+
export interface CRYPTO extends Interface {
|
|
3023
|
+
type: "CRYPTO";
|
|
3024
|
+
}
|
|
3025
|
+
export interface NO_FILE extends Interface {
|
|
3026
|
+
type: "NO_FILE";
|
|
3027
|
+
}
|
|
3028
|
+
export interface HAS_FILE extends Interface {
|
|
3029
|
+
type: "HAS_FILE";
|
|
3030
|
+
}
|
|
3031
|
+
export interface FILE_IO extends Interface {
|
|
3032
|
+
type: "FILE_IO";
|
|
3033
|
+
}
|
|
3034
|
+
export interface TIMEOUT extends Interface {
|
|
3035
|
+
type: "TIMEOUT";
|
|
3036
|
+
}
|
|
3037
|
+
export interface INTERNAL extends Interface {
|
|
3038
|
+
type: "INTERNAL";
|
|
3039
|
+
}
|
|
3040
|
+
export interface DUPLICATE_ extends Interface {
|
|
3041
|
+
type: "DUPLICATE_";
|
|
3042
|
+
}
|
|
3043
|
+
export {};
|
|
3044
|
+
}
|
|
3045
|
+
export interface XFTPRcvFile {
|
|
3046
|
+
rcvFileDescription: RcvFileDescr;
|
|
3047
|
+
agentRcvFileId?: string;
|
|
3048
|
+
agentRcvFileDeleted: boolean;
|
|
3049
|
+
userApprovedRelays: boolean;
|
|
3050
|
+
}
|
|
3051
|
+
export interface XFTPSndFile {
|
|
3052
|
+
agentSndFileId: string;
|
|
3053
|
+
privateSndFileDescr?: string;
|
|
3054
|
+
agentSndFileDeleted: boolean;
|
|
3055
|
+
cryptoArgs?: CryptoFileArgs;
|
|
3056
|
+
}
|