@simplex-chat/types 0.1.0 → 0.2.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/README.md +1 -1
- package/dist/commands.d.ts +14 -0
- package/dist/commands.js +22 -7
- package/dist/commands.js.map +1 -1
- package/dist/events.d.ts +47 -48
- package/dist/responses.d.ts +57 -49
- package/dist/types.d.ts +87 -40
- package/dist/types.js +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +4 -3
- package/src/commands.ts +693 -0
- package/src/events.ts +432 -0
- package/src/index.ts +4 -0
- package/src/responses.ts +416 -0
- package/src/types.ts +4587 -0
package/dist/responses.d.ts
CHANGED
|
@@ -1,256 +1,264 @@
|
|
|
1
1
|
import * as T from "./types";
|
|
2
|
-
export type ChatResponse = CR.AcceptingContactRequest | CR.ActiveUser | CR.ChatItemNotChanged | CR.ChatItemReaction | CR.ChatItemUpdated | CR.ChatItemsDeleted | CR.CmdOk | CR.ChatCmdError | CR.ConnectionPlan | CR.ContactAlreadyExists | CR.ContactConnectionDeleted | CR.ContactDeleted | CR.ContactPrefsUpdated | CR.ContactRequestRejected | CR.ContactsList | CR.GroupDeletedUser | CR.GroupLink | CR.GroupLinkCreated | CR.GroupLinkDeleted | CR.GroupCreated | CR.GroupMembers | CR.GroupUpdated | CR.GroupsList | CR.Invitation | CR.LeftMemberUser | CR.MemberAccepted | CR.MembersBlockedForAllUser | CR.MembersRoleUser | CR.NewChatItems | CR.RcvFileAccepted | CR.RcvFileAcceptedSndCancelled | CR.RcvFileCancelled | CR.SentConfirmation | CR.SentGroupInvitation | CR.SentInvitation | CR.SndFileCancelled | CR.UserAcceptedGroupSent | CR.UserContactLink | CR.UserContactLinkCreated | CR.UserContactLinkDeleted | CR.UserContactLinkUpdated | CR.UserDeletedMembers | CR.UserProfileUpdated | CR.UserProfileNoChange | CR.UsersList;
|
|
2
|
+
export type ChatResponse = CR.AcceptingContactRequest | CR.ActiveUser | CR.ChatItemNotChanged | CR.ChatItemReaction | CR.ChatItemUpdated | CR.ChatItemsDeleted | CR.ChatRunning | CR.ChatStarted | CR.ChatStopped | CR.CmdOk | CR.ChatCmdError | CR.ConnectionPlan | CR.ContactAlreadyExists | CR.ContactConnectionDeleted | CR.ContactDeleted | CR.ContactPrefsUpdated | CR.ContactRequestRejected | CR.ContactsList | CR.GroupDeletedUser | CR.GroupLink | CR.GroupLinkCreated | CR.GroupLinkDeleted | CR.GroupCreated | CR.GroupMembers | CR.GroupUpdated | CR.GroupsList | CR.Invitation | CR.LeftMemberUser | CR.MemberAccepted | CR.MembersBlockedForAllUser | CR.MembersRoleUser | CR.NewChatItems | CR.RcvFileAccepted | CR.RcvFileAcceptedSndCancelled | CR.RcvFileCancelled | CR.SentConfirmation | CR.SentGroupInvitation | CR.SentInvitation | CR.SndFileCancelled | CR.UserAcceptedGroupSent | CR.UserContactLink | CR.UserContactLinkCreated | CR.UserContactLinkDeleted | CR.UserContactLinkUpdated | CR.UserDeletedMembers | CR.UserProfileUpdated | CR.UserProfileNoChange | CR.UsersList | CR.Interface;
|
|
3
3
|
export declare namespace CR {
|
|
4
|
-
|
|
4
|
+
type Tag = "acceptingContactRequest" | "activeUser" | "chatItemNotChanged" | "chatItemReaction" | "chatItemUpdated" | "chatItemsDeleted" | "chatRunning" | "chatStarted" | "chatStopped" | "cmdOk" | "chatCmdError" | "connectionPlan" | "contactAlreadyExists" | "contactConnectionDeleted" | "contactDeleted" | "contactPrefsUpdated" | "contactRequestRejected" | "contactsList" | "groupDeletedUser" | "groupLink" | "groupLinkCreated" | "groupLinkDeleted" | "groupCreated" | "groupMembers" | "groupUpdated" | "groupsList" | "invitation" | "leftMemberUser" | "memberAccepted" | "membersBlockedForAllUser" | "membersRoleUser" | "newChatItems" | "rcvFileAccepted" | "rcvFileAcceptedSndCancelled" | "rcvFileCancelled" | "sentConfirmation" | "sentGroupInvitation" | "sentInvitation" | "sndFileCancelled" | "userAcceptedGroupSent" | "userContactLink" | "userContactLinkCreated" | "userContactLinkDeleted" | "userContactLinkUpdated" | "userDeletedMembers" | "userProfileUpdated" | "userProfileNoChange" | "usersList" | string;
|
|
5
5
|
interface Interface {
|
|
6
6
|
type: Tag;
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
interface AcceptingContactRequest extends Interface {
|
|
9
9
|
type: "acceptingContactRequest";
|
|
10
10
|
user: T.User;
|
|
11
11
|
contact: T.Contact;
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
interface ActiveUser extends Interface {
|
|
14
14
|
type: "activeUser";
|
|
15
15
|
user: T.User;
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
interface ChatItemNotChanged extends Interface {
|
|
18
18
|
type: "chatItemNotChanged";
|
|
19
19
|
user: T.User;
|
|
20
20
|
chatItem: T.AChatItem;
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
interface ChatItemReaction extends Interface {
|
|
23
23
|
type: "chatItemReaction";
|
|
24
24
|
user: T.User;
|
|
25
25
|
added: boolean;
|
|
26
26
|
reaction: T.ACIReaction;
|
|
27
27
|
}
|
|
28
|
-
|
|
28
|
+
interface ChatItemUpdated extends Interface {
|
|
29
29
|
type: "chatItemUpdated";
|
|
30
30
|
user: T.User;
|
|
31
31
|
chatItem: T.AChatItem;
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
interface ChatItemsDeleted extends Interface {
|
|
34
34
|
type: "chatItemsDeleted";
|
|
35
35
|
user: T.User;
|
|
36
36
|
chatItemDeletions: T.ChatItemDeletion[];
|
|
37
37
|
byUser: boolean;
|
|
38
38
|
timed: boolean;
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
interface ChatRunning extends Interface {
|
|
41
|
+
type: "chatRunning";
|
|
42
|
+
}
|
|
43
|
+
interface ChatStarted extends Interface {
|
|
44
|
+
type: "chatStarted";
|
|
45
|
+
}
|
|
46
|
+
interface ChatStopped extends Interface {
|
|
47
|
+
type: "chatStopped";
|
|
48
|
+
}
|
|
49
|
+
interface CmdOk extends Interface {
|
|
41
50
|
type: "cmdOk";
|
|
42
51
|
user_?: T.User;
|
|
43
52
|
}
|
|
44
|
-
|
|
53
|
+
interface ChatCmdError extends Interface {
|
|
45
54
|
type: "chatCmdError";
|
|
46
55
|
chatError: T.ChatError;
|
|
47
56
|
}
|
|
48
|
-
|
|
57
|
+
interface ConnectionPlan extends Interface {
|
|
49
58
|
type: "connectionPlan";
|
|
50
59
|
user: T.User;
|
|
51
60
|
connLink: T.CreatedConnLink;
|
|
52
61
|
connectionPlan: T.ConnectionPlan;
|
|
53
62
|
}
|
|
54
|
-
|
|
63
|
+
interface ContactAlreadyExists extends Interface {
|
|
55
64
|
type: "contactAlreadyExists";
|
|
56
65
|
user: T.User;
|
|
57
66
|
contact: T.Contact;
|
|
58
67
|
}
|
|
59
|
-
|
|
68
|
+
interface ContactConnectionDeleted extends Interface {
|
|
60
69
|
type: "contactConnectionDeleted";
|
|
61
70
|
user: T.User;
|
|
62
71
|
connection: T.PendingContactConnection;
|
|
63
72
|
}
|
|
64
|
-
|
|
73
|
+
interface ContactDeleted extends Interface {
|
|
65
74
|
type: "contactDeleted";
|
|
66
75
|
user: T.User;
|
|
67
76
|
contact: T.Contact;
|
|
68
77
|
}
|
|
69
|
-
|
|
78
|
+
interface ContactPrefsUpdated extends Interface {
|
|
70
79
|
type: "contactPrefsUpdated";
|
|
71
80
|
user: T.User;
|
|
72
81
|
fromContact: T.Contact;
|
|
73
82
|
toContact: T.Contact;
|
|
74
83
|
}
|
|
75
|
-
|
|
84
|
+
interface ContactRequestRejected extends Interface {
|
|
76
85
|
type: "contactRequestRejected";
|
|
77
86
|
user: T.User;
|
|
78
87
|
contactRequest: T.UserContactRequest;
|
|
79
88
|
contact_?: T.Contact;
|
|
80
89
|
}
|
|
81
|
-
|
|
90
|
+
interface ContactsList extends Interface {
|
|
82
91
|
type: "contactsList";
|
|
83
92
|
user: T.User;
|
|
84
93
|
contacts: T.Contact[];
|
|
85
94
|
}
|
|
86
|
-
|
|
95
|
+
interface GroupDeletedUser extends Interface {
|
|
87
96
|
type: "groupDeletedUser";
|
|
88
97
|
user: T.User;
|
|
89
98
|
groupInfo: T.GroupInfo;
|
|
90
99
|
}
|
|
91
|
-
|
|
100
|
+
interface GroupLink extends Interface {
|
|
92
101
|
type: "groupLink";
|
|
93
102
|
user: T.User;
|
|
94
103
|
groupInfo: T.GroupInfo;
|
|
95
104
|
groupLink: T.GroupLink;
|
|
96
105
|
}
|
|
97
|
-
|
|
106
|
+
interface GroupLinkCreated extends Interface {
|
|
98
107
|
type: "groupLinkCreated";
|
|
99
108
|
user: T.User;
|
|
100
109
|
groupInfo: T.GroupInfo;
|
|
101
110
|
groupLink: T.GroupLink;
|
|
102
111
|
}
|
|
103
|
-
|
|
112
|
+
interface GroupLinkDeleted extends Interface {
|
|
104
113
|
type: "groupLinkDeleted";
|
|
105
114
|
user: T.User;
|
|
106
115
|
groupInfo: T.GroupInfo;
|
|
107
116
|
}
|
|
108
|
-
|
|
117
|
+
interface GroupCreated extends Interface {
|
|
109
118
|
type: "groupCreated";
|
|
110
119
|
user: T.User;
|
|
111
120
|
groupInfo: T.GroupInfo;
|
|
112
121
|
}
|
|
113
|
-
|
|
122
|
+
interface GroupMembers extends Interface {
|
|
114
123
|
type: "groupMembers";
|
|
115
124
|
user: T.User;
|
|
116
125
|
group: T.Group;
|
|
117
126
|
}
|
|
118
|
-
|
|
127
|
+
interface GroupUpdated extends Interface {
|
|
119
128
|
type: "groupUpdated";
|
|
120
129
|
user: T.User;
|
|
121
130
|
fromGroup: T.GroupInfo;
|
|
122
131
|
toGroup: T.GroupInfo;
|
|
123
132
|
member_?: T.GroupMember;
|
|
124
133
|
}
|
|
125
|
-
|
|
134
|
+
interface GroupsList extends Interface {
|
|
126
135
|
type: "groupsList";
|
|
127
136
|
user: T.User;
|
|
128
|
-
groups: T.
|
|
137
|
+
groups: T.GroupInfo[];
|
|
129
138
|
}
|
|
130
|
-
|
|
139
|
+
interface Invitation extends Interface {
|
|
131
140
|
type: "invitation";
|
|
132
141
|
user: T.User;
|
|
133
142
|
connLinkInvitation: T.CreatedConnLink;
|
|
134
143
|
connection: T.PendingContactConnection;
|
|
135
144
|
}
|
|
136
|
-
|
|
145
|
+
interface LeftMemberUser extends Interface {
|
|
137
146
|
type: "leftMemberUser";
|
|
138
147
|
user: T.User;
|
|
139
148
|
groupInfo: T.GroupInfo;
|
|
140
149
|
}
|
|
141
|
-
|
|
150
|
+
interface MemberAccepted extends Interface {
|
|
142
151
|
type: "memberAccepted";
|
|
143
152
|
user: T.User;
|
|
144
153
|
groupInfo: T.GroupInfo;
|
|
145
154
|
member: T.GroupMember;
|
|
146
155
|
}
|
|
147
|
-
|
|
156
|
+
interface MembersBlockedForAllUser extends Interface {
|
|
148
157
|
type: "membersBlockedForAllUser";
|
|
149
158
|
user: T.User;
|
|
150
159
|
groupInfo: T.GroupInfo;
|
|
151
160
|
members: T.GroupMember[];
|
|
152
161
|
blocked: boolean;
|
|
153
162
|
}
|
|
154
|
-
|
|
163
|
+
interface MembersRoleUser extends Interface {
|
|
155
164
|
type: "membersRoleUser";
|
|
156
165
|
user: T.User;
|
|
157
166
|
groupInfo: T.GroupInfo;
|
|
158
167
|
members: T.GroupMember[];
|
|
159
168
|
toRole: T.GroupMemberRole;
|
|
160
169
|
}
|
|
161
|
-
|
|
170
|
+
interface NewChatItems extends Interface {
|
|
162
171
|
type: "newChatItems";
|
|
163
172
|
user: T.User;
|
|
164
173
|
chatItems: T.AChatItem[];
|
|
165
174
|
}
|
|
166
|
-
|
|
175
|
+
interface RcvFileAccepted extends Interface {
|
|
167
176
|
type: "rcvFileAccepted";
|
|
168
177
|
user: T.User;
|
|
169
178
|
chatItem: T.AChatItem;
|
|
170
179
|
}
|
|
171
|
-
|
|
180
|
+
interface RcvFileAcceptedSndCancelled extends Interface {
|
|
172
181
|
type: "rcvFileAcceptedSndCancelled";
|
|
173
182
|
user: T.User;
|
|
174
183
|
rcvFileTransfer: T.RcvFileTransfer;
|
|
175
184
|
}
|
|
176
|
-
|
|
185
|
+
interface RcvFileCancelled extends Interface {
|
|
177
186
|
type: "rcvFileCancelled";
|
|
178
187
|
user: T.User;
|
|
179
188
|
chatItem_?: T.AChatItem;
|
|
180
189
|
rcvFileTransfer: T.RcvFileTransfer;
|
|
181
190
|
}
|
|
182
|
-
|
|
191
|
+
interface SentConfirmation extends Interface {
|
|
183
192
|
type: "sentConfirmation";
|
|
184
193
|
user: T.User;
|
|
185
194
|
connection: T.PendingContactConnection;
|
|
186
195
|
customUserProfile?: T.Profile;
|
|
187
196
|
}
|
|
188
|
-
|
|
197
|
+
interface SentGroupInvitation extends Interface {
|
|
189
198
|
type: "sentGroupInvitation";
|
|
190
199
|
user: T.User;
|
|
191
200
|
groupInfo: T.GroupInfo;
|
|
192
201
|
contact: T.Contact;
|
|
193
202
|
member: T.GroupMember;
|
|
194
203
|
}
|
|
195
|
-
|
|
204
|
+
interface SentInvitation extends Interface {
|
|
196
205
|
type: "sentInvitation";
|
|
197
206
|
user: T.User;
|
|
198
207
|
connection: T.PendingContactConnection;
|
|
199
208
|
customUserProfile?: T.Profile;
|
|
200
209
|
}
|
|
201
|
-
|
|
210
|
+
interface SndFileCancelled extends Interface {
|
|
202
211
|
type: "sndFileCancelled";
|
|
203
212
|
user: T.User;
|
|
204
213
|
chatItem_?: T.AChatItem;
|
|
205
214
|
fileTransferMeta: T.FileTransferMeta;
|
|
206
215
|
sndFileTransfers: T.SndFileTransfer[];
|
|
207
216
|
}
|
|
208
|
-
|
|
217
|
+
interface UserAcceptedGroupSent extends Interface {
|
|
209
218
|
type: "userAcceptedGroupSent";
|
|
210
219
|
user: T.User;
|
|
211
220
|
groupInfo: T.GroupInfo;
|
|
212
221
|
hostContact?: T.Contact;
|
|
213
222
|
}
|
|
214
|
-
|
|
223
|
+
interface UserContactLink extends Interface {
|
|
215
224
|
type: "userContactLink";
|
|
216
225
|
user: T.User;
|
|
217
226
|
contactLink: T.UserContactLink;
|
|
218
227
|
}
|
|
219
|
-
|
|
228
|
+
interface UserContactLinkCreated extends Interface {
|
|
220
229
|
type: "userContactLinkCreated";
|
|
221
230
|
user: T.User;
|
|
222
231
|
connLinkContact: T.CreatedConnLink;
|
|
223
232
|
}
|
|
224
|
-
|
|
233
|
+
interface UserContactLinkDeleted extends Interface {
|
|
225
234
|
type: "userContactLinkDeleted";
|
|
226
235
|
user: T.User;
|
|
227
236
|
}
|
|
228
|
-
|
|
237
|
+
interface UserContactLinkUpdated extends Interface {
|
|
229
238
|
type: "userContactLinkUpdated";
|
|
230
239
|
user: T.User;
|
|
231
240
|
contactLink: T.UserContactLink;
|
|
232
241
|
}
|
|
233
|
-
|
|
242
|
+
interface UserDeletedMembers extends Interface {
|
|
234
243
|
type: "userDeletedMembers";
|
|
235
244
|
user: T.User;
|
|
236
245
|
groupInfo: T.GroupInfo;
|
|
237
246
|
members: T.GroupMember[];
|
|
238
247
|
withMessages: boolean;
|
|
239
248
|
}
|
|
240
|
-
|
|
249
|
+
interface UserProfileUpdated extends Interface {
|
|
241
250
|
type: "userProfileUpdated";
|
|
242
251
|
user: T.User;
|
|
243
252
|
fromProfile: T.Profile;
|
|
244
253
|
toProfile: T.Profile;
|
|
245
254
|
updateSummary: T.UserProfileUpdateSummary;
|
|
246
255
|
}
|
|
247
|
-
|
|
256
|
+
interface UserProfileNoChange extends Interface {
|
|
248
257
|
type: "userProfileNoChange";
|
|
249
258
|
user: T.User;
|
|
250
259
|
}
|
|
251
|
-
|
|
260
|
+
interface UsersList extends Interface {
|
|
252
261
|
type: "usersList";
|
|
253
262
|
users: T.UserInfo[];
|
|
254
263
|
}
|
|
255
|
-
export {};
|
|
256
264
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -36,9 +36,9 @@ export declare namespace AgentCryptoError {
|
|
|
36
36
|
}
|
|
37
37
|
export {};
|
|
38
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;
|
|
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.NOTICE | AgentErrorType.INTERNAL | AgentErrorType.CRITICAL | AgentErrorType.INACTIVE;
|
|
40
40
|
export declare namespace AgentErrorType {
|
|
41
|
-
export type Tag = "CMD" | "CONN" | "NO_USER" | "SMP" | "NTF" | "XFTP" | "FILE" | "PROXY" | "RCP" | "BROKER" | "AGENT" | "INTERNAL" | "CRITICAL" | "INACTIVE";
|
|
41
|
+
export type Tag = "CMD" | "CONN" | "NO_USER" | "SMP" | "NTF" | "XFTP" | "FILE" | "PROXY" | "RCP" | "BROKER" | "AGENT" | "NOTICE" | "INTERNAL" | "CRITICAL" | "INACTIVE";
|
|
42
42
|
interface Interface {
|
|
43
43
|
type: Tag;
|
|
44
44
|
}
|
|
@@ -93,6 +93,12 @@ export declare namespace AgentErrorType {
|
|
|
93
93
|
type: "AGENT";
|
|
94
94
|
agentErr: SMPAgentError;
|
|
95
95
|
}
|
|
96
|
+
export interface NOTICE extends Interface {
|
|
97
|
+
type: "NOTICE";
|
|
98
|
+
server: string;
|
|
99
|
+
preset: boolean;
|
|
100
|
+
expiresAt?: string;
|
|
101
|
+
}
|
|
96
102
|
export interface INTERNAL extends Interface {
|
|
97
103
|
type: "INTERNAL";
|
|
98
104
|
internalErr: string;
|
|
@@ -112,6 +118,7 @@ export interface AutoAccept {
|
|
|
112
118
|
}
|
|
113
119
|
export interface BlockingInfo {
|
|
114
120
|
reason: BlockingReason;
|
|
121
|
+
notice?: ClientNotice;
|
|
115
122
|
}
|
|
116
123
|
export declare enum BlockingReason {
|
|
117
124
|
Spam = "spam",
|
|
@@ -133,6 +140,7 @@ export declare namespace BrokerErrorType {
|
|
|
133
140
|
}
|
|
134
141
|
export interface NETWORK extends Interface {
|
|
135
142
|
type: "NETWORK";
|
|
143
|
+
networkError: NetworkError;
|
|
136
144
|
}
|
|
137
145
|
export interface HOST extends Interface {
|
|
138
146
|
type: "HOST";
|
|
@@ -627,6 +635,7 @@ export declare namespace ChatError {
|
|
|
627
635
|
export interface ErrorAgent extends Interface {
|
|
628
636
|
type: "errorAgent";
|
|
629
637
|
agentError: AgentErrorType;
|
|
638
|
+
agentConnId: string;
|
|
630
639
|
connectionEntity_?: ConnectionEntity;
|
|
631
640
|
}
|
|
632
641
|
export interface ErrorStore extends Interface {
|
|
@@ -635,9 +644,9 @@ export declare namespace ChatError {
|
|
|
635
644
|
}
|
|
636
645
|
export {};
|
|
637
646
|
}
|
|
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.
|
|
647
|
+
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.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
648
|
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" | "
|
|
649
|
+
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" | "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
650
|
interface Interface {
|
|
642
651
|
type: Tag;
|
|
643
652
|
}
|
|
@@ -818,11 +827,6 @@ export declare namespace ChatErrorType {
|
|
|
818
827
|
type: "fileAlreadyExists";
|
|
819
828
|
filePath: string;
|
|
820
829
|
}
|
|
821
|
-
export interface FileRead extends Interface {
|
|
822
|
-
type: "fileRead";
|
|
823
|
-
filePath: string;
|
|
824
|
-
message: string;
|
|
825
|
-
}
|
|
826
830
|
export interface FileWrite extends Interface {
|
|
827
831
|
type: "fileWrite";
|
|
828
832
|
filePath: string;
|
|
@@ -1027,6 +1031,9 @@ export declare enum ChatWallpaperScale {
|
|
|
1027
1031
|
Fit = "fit",
|
|
1028
1032
|
Repeat = "repeat"
|
|
1029
1033
|
}
|
|
1034
|
+
export interface ClientNotice {
|
|
1035
|
+
ttl?: number;
|
|
1036
|
+
}
|
|
1030
1037
|
export declare enum Color {
|
|
1031
1038
|
Black = "black",
|
|
1032
1039
|
Red = "red",
|
|
@@ -1135,9 +1142,9 @@ export interface Connection {
|
|
|
1135
1142
|
quotaErrCounter: number;
|
|
1136
1143
|
createdAt: string;
|
|
1137
1144
|
}
|
|
1138
|
-
export type ConnectionEntity = ConnectionEntity.RcvDirectMsgConnection | ConnectionEntity.RcvGroupMsgConnection | ConnectionEntity.
|
|
1145
|
+
export type ConnectionEntity = ConnectionEntity.RcvDirectMsgConnection | ConnectionEntity.RcvGroupMsgConnection | ConnectionEntity.UserContactConnection;
|
|
1139
1146
|
export declare namespace ConnectionEntity {
|
|
1140
|
-
export type Tag = "rcvDirectMsgConnection" | "rcvGroupMsgConnection" | "
|
|
1147
|
+
export type Tag = "rcvDirectMsgConnection" | "rcvGroupMsgConnection" | "userContactConnection";
|
|
1141
1148
|
interface Interface {
|
|
1142
1149
|
type: Tag;
|
|
1143
1150
|
}
|
|
@@ -1152,16 +1159,6 @@ export declare namespace ConnectionEntity {
|
|
|
1152
1159
|
groupInfo: GroupInfo;
|
|
1153
1160
|
groupMember: GroupMember;
|
|
1154
1161
|
}
|
|
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
1162
|
export interface UserContactConnection extends Interface {
|
|
1166
1163
|
type: "userContactConnection";
|
|
1167
1164
|
entityConnection: Connection;
|
|
@@ -1225,7 +1222,6 @@ export interface Contact {
|
|
|
1225
1222
|
localDisplayName: string;
|
|
1226
1223
|
profile: LocalProfile;
|
|
1227
1224
|
activeConn?: Connection;
|
|
1228
|
-
viaGroup?: number;
|
|
1229
1225
|
contactUsed: boolean;
|
|
1230
1226
|
contactStatus: ContactStatus;
|
|
1231
1227
|
chatSettings: ChatSettings;
|
|
@@ -1621,6 +1617,7 @@ export declare enum GroupFeatureEnabled {
|
|
|
1621
1617
|
}
|
|
1622
1618
|
export interface GroupInfo {
|
|
1623
1619
|
groupId: number;
|
|
1620
|
+
useRelays: boolean;
|
|
1624
1621
|
localDisplayName: string;
|
|
1625
1622
|
groupProfile: GroupProfile;
|
|
1626
1623
|
localAlias: string;
|
|
@@ -1637,13 +1634,10 @@ export interface GroupInfo {
|
|
|
1637
1634
|
chatItemTTL?: number;
|
|
1638
1635
|
uiThemes?: UIThemeEntityOverrides;
|
|
1639
1636
|
customData?: object;
|
|
1637
|
+
groupSummary: GroupSummary;
|
|
1640
1638
|
membersRequireAttention: number;
|
|
1641
1639
|
viaGroupLinkUri?: string;
|
|
1642
1640
|
}
|
|
1643
|
-
export interface GroupInfoSummary {
|
|
1644
|
-
groupInfo: GroupInfo;
|
|
1645
|
-
groupSummary: GroupSummary;
|
|
1646
|
-
}
|
|
1647
1641
|
export interface GroupLink {
|
|
1648
1642
|
userContactLinkId: number;
|
|
1649
1643
|
connLinkContact: CreatedConnLink;
|
|
@@ -1682,6 +1676,7 @@ export declare namespace GroupLinkPlan {
|
|
|
1682
1676
|
export interface GroupMember {
|
|
1683
1677
|
groupMemberId: number;
|
|
1684
1678
|
groupId: number;
|
|
1679
|
+
indexInGroup: number;
|
|
1685
1680
|
memberId: string;
|
|
1686
1681
|
memberRole: GroupMemberRole;
|
|
1687
1682
|
memberCategory: GroupMemberCategory;
|
|
@@ -2012,6 +2007,35 @@ export declare enum MsgReceiptStatus {
|
|
|
2012
2007
|
Ok = "ok",
|
|
2013
2008
|
BadMsgHash = "badMsgHash"
|
|
2014
2009
|
}
|
|
2010
|
+
export type NetworkError = NetworkError.ConnectError | NetworkError.TLSError | NetworkError.UnknownCAError | NetworkError.FailedError | NetworkError.TimeoutError | NetworkError.SubscribeError;
|
|
2011
|
+
export declare namespace NetworkError {
|
|
2012
|
+
export type Tag = "connectError" | "tLSError" | "unknownCAError" | "failedError" | "timeoutError" | "subscribeError";
|
|
2013
|
+
interface Interface {
|
|
2014
|
+
type: Tag;
|
|
2015
|
+
}
|
|
2016
|
+
export interface ConnectError extends Interface {
|
|
2017
|
+
type: "connectError";
|
|
2018
|
+
connectError: string;
|
|
2019
|
+
}
|
|
2020
|
+
export interface TLSError extends Interface {
|
|
2021
|
+
type: "tLSError";
|
|
2022
|
+
tlsError: string;
|
|
2023
|
+
}
|
|
2024
|
+
export interface UnknownCAError extends Interface {
|
|
2025
|
+
type: "unknownCAError";
|
|
2026
|
+
}
|
|
2027
|
+
export interface FailedError extends Interface {
|
|
2028
|
+
type: "failedError";
|
|
2029
|
+
}
|
|
2030
|
+
export interface TimeoutError extends Interface {
|
|
2031
|
+
type: "timeoutError";
|
|
2032
|
+
}
|
|
2033
|
+
export interface SubscribeError extends Interface {
|
|
2034
|
+
type: "subscribeError";
|
|
2035
|
+
subscribeError: string;
|
|
2036
|
+
}
|
|
2037
|
+
export {};
|
|
2038
|
+
}
|
|
2015
2039
|
export interface NewUser {
|
|
2016
2040
|
profile?: Profile;
|
|
2017
2041
|
pastTimestamp: boolean;
|
|
@@ -2232,11 +2256,6 @@ export interface RcvFileDescr {
|
|
|
2232
2256
|
fileDescrPartNo: number;
|
|
2233
2257
|
fileDescrComplete: boolean;
|
|
2234
2258
|
}
|
|
2235
|
-
export interface RcvFileInfo {
|
|
2236
|
-
filePath: string;
|
|
2237
|
-
connId?: number;
|
|
2238
|
-
agentConnId?: string;
|
|
2239
|
-
}
|
|
2240
2259
|
export type RcvFileStatus = RcvFileStatus.New | RcvFileStatus.Accepted | RcvFileStatus.Connected | RcvFileStatus.Complete | RcvFileStatus.Cancelled;
|
|
2241
2260
|
export declare namespace RcvFileStatus {
|
|
2242
2261
|
export type Tag = "new" | "accepted" | "connected" | "complete" | "cancelled";
|
|
@@ -2248,19 +2267,19 @@ export declare namespace RcvFileStatus {
|
|
|
2248
2267
|
}
|
|
2249
2268
|
export interface Accepted extends Interface {
|
|
2250
2269
|
type: "accepted";
|
|
2251
|
-
|
|
2270
|
+
filePath: string;
|
|
2252
2271
|
}
|
|
2253
2272
|
export interface Connected extends Interface {
|
|
2254
2273
|
type: "connected";
|
|
2255
|
-
|
|
2274
|
+
filePath: string;
|
|
2256
2275
|
}
|
|
2257
2276
|
export interface Complete extends Interface {
|
|
2258
2277
|
type: "complete";
|
|
2259
|
-
|
|
2278
|
+
filePath: string;
|
|
2260
2279
|
}
|
|
2261
2280
|
export interface Cancelled extends Interface {
|
|
2262
2281
|
type: "cancelled";
|
|
2263
|
-
|
|
2282
|
+
filePath_?: string;
|
|
2264
2283
|
}
|
|
2265
2284
|
export {};
|
|
2266
2285
|
}
|
|
@@ -2543,9 +2562,9 @@ export declare namespace SrvError {
|
|
|
2543
2562
|
}
|
|
2544
2563
|
export {};
|
|
2545
2564
|
}
|
|
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.
|
|
2565
|
+
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.GroupMemberNotFoundByIndex | StoreError.MemberRelationsVectorNotFound | StoreError.GroupHostMemberNotFound | StoreError.GroupMemberNotFoundByMemberId | StoreError.MemberContactGroupMemberNotFound | StoreError.InvalidMemberRelationUpdate | 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.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 | StoreError.InvalidDeliveryTask | StoreError.DeliveryTaskNotFound | StoreError.InvalidDeliveryJob | StoreError.DeliveryJobNotFound | StoreError.WorkItemError;
|
|
2547
2566
|
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" | "
|
|
2567
|
+
export type Tag = "duplicateName" | "userNotFound" | "userNotFoundByName" | "userNotFoundByContactId" | "userNotFoundByGroupId" | "userNotFoundByFileId" | "userNotFoundByContactRequestId" | "contactNotFound" | "contactNotFoundByName" | "contactNotFoundByMemberId" | "contactNotReady" | "duplicateContactLink" | "userContactLinkNotFound" | "contactRequestNotFound" | "contactRequestNotFoundByName" | "invalidContactRequestEntity" | "invalidBusinessChatContactRequest" | "groupNotFound" | "groupNotFoundByName" | "groupMemberNameNotFound" | "groupMemberNotFound" | "groupMemberNotFoundByIndex" | "memberRelationsVectorNotFound" | "groupHostMemberNotFound" | "groupMemberNotFoundByMemberId" | "memberContactGroupMemberNotFound" | "invalidMemberRelationUpdate" | "groupWithoutUser" | "duplicateGroupMember" | "groupAlreadyJoined" | "groupInvitationNotFound" | "noteFolderAlreadyExists" | "noteFolderNotFound" | "userNoteFolderNotFound" | "sndFileNotFound" | "sndFileInvalid" | "rcvFileNotFound" | "rcvFileDescrNotFound" | "fileNotFound" | "rcvFileInvalid" | "rcvFileInvalidDescrPart" | "localFileNoTransfer" | "sharedMsgIdNotFoundByFileId" | "fileIdNotFoundBySharedMsgId" | "sndFileNotFoundXFTP" | "rcvFileNotFoundXFTP" | "connectionNotFound" | "connectionNotFoundById" | "connectionNotFoundByMemberId" | "pendingConnectionNotFound" | "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" | "invalidDeliveryTask" | "deliveryTaskNotFound" | "invalidDeliveryJob" | "deliveryJobNotFound" | "workItemError";
|
|
2549
2568
|
interface Interface {
|
|
2550
2569
|
type: Tag;
|
|
2551
2570
|
}
|
|
@@ -2630,6 +2649,14 @@ export declare namespace StoreError {
|
|
|
2630
2649
|
type: "groupMemberNotFound";
|
|
2631
2650
|
groupMemberId: number;
|
|
2632
2651
|
}
|
|
2652
|
+
export interface GroupMemberNotFoundByIndex extends Interface {
|
|
2653
|
+
type: "groupMemberNotFoundByIndex";
|
|
2654
|
+
groupMemberIndex: number;
|
|
2655
|
+
}
|
|
2656
|
+
export interface MemberRelationsVectorNotFound extends Interface {
|
|
2657
|
+
type: "memberRelationsVectorNotFound";
|
|
2658
|
+
groupMemberId: number;
|
|
2659
|
+
}
|
|
2633
2660
|
export interface GroupHostMemberNotFound extends Interface {
|
|
2634
2661
|
type: "groupHostMemberNotFound";
|
|
2635
2662
|
groupId: number;
|
|
@@ -2642,6 +2669,9 @@ export declare namespace StoreError {
|
|
|
2642
2669
|
type: "memberContactGroupMemberNotFound";
|
|
2643
2670
|
contactId: number;
|
|
2644
2671
|
}
|
|
2672
|
+
export interface InvalidMemberRelationUpdate extends Interface {
|
|
2673
|
+
type: "invalidMemberRelationUpdate";
|
|
2674
|
+
}
|
|
2645
2675
|
export interface GroupWithoutUser extends Interface {
|
|
2646
2676
|
type: "groupWithoutUser";
|
|
2647
2677
|
}
|
|
@@ -2728,9 +2758,6 @@ export declare namespace StoreError {
|
|
|
2728
2758
|
type: "pendingConnectionNotFound";
|
|
2729
2759
|
connId: number;
|
|
2730
2760
|
}
|
|
2731
|
-
export interface IntroNotFound extends Interface {
|
|
2732
|
-
type: "introNotFound";
|
|
2733
|
-
}
|
|
2734
2761
|
export interface UniqueID extends Interface {
|
|
2735
2762
|
type: "uniqueID";
|
|
2736
2763
|
}
|
|
@@ -2845,6 +2872,26 @@ export declare namespace StoreError {
|
|
|
2845
2872
|
export interface InvalidMention extends Interface {
|
|
2846
2873
|
type: "invalidMention";
|
|
2847
2874
|
}
|
|
2875
|
+
export interface InvalidDeliveryTask extends Interface {
|
|
2876
|
+
type: "invalidDeliveryTask";
|
|
2877
|
+
taskId: number;
|
|
2878
|
+
}
|
|
2879
|
+
export interface DeliveryTaskNotFound extends Interface {
|
|
2880
|
+
type: "deliveryTaskNotFound";
|
|
2881
|
+
taskId: number;
|
|
2882
|
+
}
|
|
2883
|
+
export interface InvalidDeliveryJob extends Interface {
|
|
2884
|
+
type: "invalidDeliveryJob";
|
|
2885
|
+
jobId: number;
|
|
2886
|
+
}
|
|
2887
|
+
export interface DeliveryJobNotFound extends Interface {
|
|
2888
|
+
type: "deliveryJobNotFound";
|
|
2889
|
+
jobId: number;
|
|
2890
|
+
}
|
|
2891
|
+
export interface WorkItemError extends Interface {
|
|
2892
|
+
type: "workItemError";
|
|
2893
|
+
errContext: string;
|
|
2894
|
+
}
|
|
2848
2895
|
export {};
|
|
2849
2896
|
}
|
|
2850
2897
|
export declare enum SwitchPhase {
|
package/dist/types.js
CHANGED
|
@@ -62,7 +62,7 @@ var ChatPeerType;
|
|
|
62
62
|
var ChatRef;
|
|
63
63
|
(function (ChatRef) {
|
|
64
64
|
function cmdString(self) {
|
|
65
|
-
return self.chatType
|
|
65
|
+
return ChatType.cmdString(self.chatType) + self.chatId + (self.chatScope ? GroupChatScope.cmdString(self.chatScope) : '');
|
|
66
66
|
}
|
|
67
67
|
ChatRef.cmdString = cmdString;
|
|
68
68
|
})(ChatRef || (exports.ChatRef = ChatRef = {}));
|