simplex-chat 0.3.0 → 6.5.0-beta.10
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 +107 -22
- package/binding.gyp +50 -0
- package/cpp/simplex.cc +426 -0
- package/cpp/simplex.h +46 -0
- package/dist/api.d.ts +423 -0
- package/dist/api.js +857 -0
- package/dist/api.js.map +1 -0
- package/dist/bot.d.ts +29 -0
- package/dist/bot.js +189 -0
- package/dist/bot.js.map +1 -0
- package/dist/core.d.ts +128 -0
- package/dist/core.js +121 -0
- package/dist/core.js.map +1 -0
- package/dist/index.d.ts +19 -2
- package/dist/index.js +20 -4
- package/dist/index.js.map +1 -1
- package/dist/simplex.d.ts +10 -0
- package/dist/simplex.js +1 -0
- package/dist/util.d.ts +15 -0
- package/dist/util.js +91 -0
- package/dist/util.js.map +1 -0
- package/docs/Namespace.api.md +33 -0
- package/docs/Namespace.bot.md +23 -0
- package/docs/Namespace.core.md +48 -0
- package/docs/Namespace.util.md +25 -0
- package/docs/README.md +12 -0
- package/docs/api.Class.ChatApi.md +1752 -0
- package/docs/api.Class.ChatCommandError.md +205 -0
- package/docs/api.Enumeration.ConnReqType.md +27 -0
- package/docs/api.Interface.BotAddressSettings.md +60 -0
- package/docs/api.TypeAlias.DbConfig.md +64 -0
- package/docs/api.TypeAlias.EventSubscriberFunc.md +27 -0
- package/docs/api.TypeAlias.EventSubscribers.md +11 -0
- package/docs/api.Variable.defaultBotAddressSettings.md +11 -0
- package/docs/bot.Function.run.md +21 -0
- package/docs/bot.Interface.BotConfig.md +75 -0
- package/docs/bot.Interface.BotOptions.md +81 -0
- package/docs/bot.TypeAlias.BotDbOpts.md +17 -0
- package/docs/core.Class.ChatAPIError.md +205 -0
- package/docs/core.Class.ChatInitError.md +205 -0
- package/docs/core.DBMigrationError.Interface.ErrorMigration.md +41 -0
- package/docs/core.DBMigrationError.Interface.ErrorNotADatabase.md +33 -0
- package/docs/core.DBMigrationError.Interface.ErrorSQL.md +41 -0
- package/docs/core.DBMigrationError.Interface.InvalidConfirmation.md +25 -0
- package/docs/core.DBMigrationError.TypeAlias.Tag.md +11 -0
- package/docs/core.Enumeration.MigrationConfirmation.md +43 -0
- package/docs/core.Function.chatCloseStore.md +23 -0
- package/docs/core.Function.chatDecryptFile.md +31 -0
- package/docs/core.Function.chatEncryptFile.md +31 -0
- package/docs/core.Function.chatMigrateInit.md +31 -0
- package/docs/core.Function.chatReadFile.md +27 -0
- package/docs/core.Function.chatRecvMsgWait.md +27 -0
- package/docs/core.Function.chatSendCmd.md +27 -0
- package/docs/core.Function.chatWriteFile.md +31 -0
- package/docs/core.Interface.APIResult.md +31 -0
- package/docs/core.Interface.CryptoArgs.md +27 -0
- package/docs/core.Interface.UpMigration.md +25 -0
- package/docs/core.MTRError.Interface.MTREDifferent.md +33 -0
- package/docs/core.MTRError.Interface.MTRENoDown.md +33 -0
- package/docs/core.MTRError.TypeAlias.Tag.md +11 -0
- package/docs/core.MigrationError.Interface.MEDowngrade.md +33 -0
- package/docs/core.MigrationError.Interface.MEUpgrade.md +33 -0
- package/docs/core.MigrationError.Interface.MigrationError.md +33 -0
- package/docs/core.MigrationError.TypeAlias.Tag.md +11 -0
- package/docs/core.Namespace.DBMigrationError.md +18 -0
- package/docs/core.Namespace.MTRError.md +16 -0
- package/docs/core.Namespace.MigrationError.md +17 -0
- package/docs/core.TypeAlias.DBMigrationError.md +11 -0
- package/docs/core.TypeAlias.MTRError.md +11 -0
- package/docs/core.TypeAlias.MigrationError.md +11 -0
- package/docs/util.Function.botAddressSettings.md +21 -0
- package/docs/util.Function.chatInfoName.md +21 -0
- package/docs/util.Function.chatInfoRef.md +21 -0
- package/docs/util.Function.ciBotCommand.md +21 -0
- package/docs/util.Function.ciContentText.md +21 -0
- package/docs/util.Function.contactAddressStr.md +21 -0
- package/docs/util.Function.fromLocalProfile.md +21 -0
- package/docs/util.Function.reactionText.md +21 -0
- package/docs/util.Function.senderName.md +25 -0
- package/docs/util.Interface.BotCommand.md +25 -0
- package/examples/squaring-bot-pg.js +21 -0
- package/examples/squaring-bot-readme.js +17 -0
- package/examples/squaring-bot.ts +42 -0
- package/package.json +36 -48
- package/src/api.ts +939 -0
- package/src/bot.ts +214 -0
- package/src/core.ts +210 -0
- package/src/download-libs.js +239 -0
- package/src/index.ts +22 -0
- package/src/simplex.d.ts +10 -0
- package/src/simplex.js +1 -0
- package/src/util.ts +92 -0
- package/tsconfig.json +23 -0
- package/dist/client.d.ts +0 -61
- package/dist/client.js +0 -271
- package/dist/client.js.map +0 -1
- package/dist/command.d.ts +0 -408
- package/dist/command.js +0 -184
- package/dist/command.js.map +0 -1
- package/dist/index-web.d.ts +0 -1
- package/dist/index-web.js +0 -6
- package/dist/index-web.js.map +0 -1
- package/dist/index.bundle.js +0 -11
- package/dist/queue.d.ts +0 -24
- package/dist/queue.js +0 -77
- package/dist/queue.js.map +0 -1
- package/dist/response.d.ts +0 -754
- package/dist/response.js +0 -21
- package/dist/response.js.map +0 -1
- package/dist/test.html +0 -7
- package/dist/transport.d.ts +0 -54
- package/dist/transport.js +0 -131
- package/dist/transport.js.map +0 -1
- package/dist/websocket.d.ts +0 -8
- package/dist/websocket.js +0 -4
- package/dist/websocket.js.map +0 -1
package/dist/util.js
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.chatInfoRef = chatInfoRef;
|
|
4
|
+
exports.chatInfoName = chatInfoName;
|
|
5
|
+
exports.senderName = senderName;
|
|
6
|
+
exports.contactAddressStr = contactAddressStr;
|
|
7
|
+
exports.botAddressSettings = botAddressSettings;
|
|
8
|
+
exports.fromLocalProfile = fromLocalProfile;
|
|
9
|
+
exports.ciContentText = ciContentText;
|
|
10
|
+
exports.ciBotCommand = ciBotCommand;
|
|
11
|
+
exports.reactionText = reactionText;
|
|
12
|
+
const types_1 = require("@simplex-chat/types");
|
|
13
|
+
function chatInfoRef(cInfo) {
|
|
14
|
+
var _a, _b;
|
|
15
|
+
switch (cInfo.type) {
|
|
16
|
+
case types_1.T.ChatType.Direct: return { chatType: types_1.T.ChatType.Direct, chatId: cInfo.contact.contactId };
|
|
17
|
+
case types_1.T.ChatType.Group: {
|
|
18
|
+
const chatScope = ((_a = cInfo.groupChatScope) === null || _a === void 0 ? void 0 : _a.type) == "memberSupport"
|
|
19
|
+
? { type: "memberSupport", groupMemberId_: (_b = cInfo.groupChatScope.groupMember_) === null || _b === void 0 ? void 0 : _b.groupMemberId }
|
|
20
|
+
: undefined;
|
|
21
|
+
return { chatType: types_1.T.ChatType.Group, chatId: cInfo.groupInfo.groupId, chatScope };
|
|
22
|
+
}
|
|
23
|
+
default: return undefined;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function chatInfoName(cInfo) {
|
|
27
|
+
switch (cInfo.type) {
|
|
28
|
+
case "direct": return `@${cInfo.contact.profile.displayName}`;
|
|
29
|
+
case "group": {
|
|
30
|
+
const scope = cInfo.groupChatScope;
|
|
31
|
+
const scopeName = (scope === null || scope === void 0 ? void 0 : scope.type) === "memberSupport"
|
|
32
|
+
? `(support${scope.groupMember_ ? ` ${scope.groupMember_.memberProfile.displayName}` : ""})`
|
|
33
|
+
: "";
|
|
34
|
+
return `#${cInfo.groupInfo.groupProfile.displayName}${scopeName}`;
|
|
35
|
+
}
|
|
36
|
+
case "local": return "private notes";
|
|
37
|
+
case "contactRequest": return `request from @${cInfo.contactRequest.profile.displayName}`;
|
|
38
|
+
case "contactConnection": {
|
|
39
|
+
const alias = cInfo.contactConnection.localAlias;
|
|
40
|
+
return `pending connection${alias ? ` (@${alias})` : ""}`;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function senderName(cInfo, chatDir) {
|
|
45
|
+
const sender = chatDir.type === "groupRcv"
|
|
46
|
+
? ` @${chatDir.groupMember.memberProfile.displayName}`
|
|
47
|
+
: "";
|
|
48
|
+
return chatInfoName(cInfo) + sender;
|
|
49
|
+
}
|
|
50
|
+
function contactAddressStr(link) {
|
|
51
|
+
return link.connShortLink || link.connFullLink;
|
|
52
|
+
}
|
|
53
|
+
function botAddressSettings({ addressSettings }) {
|
|
54
|
+
return {
|
|
55
|
+
autoAccept: addressSettings.autoAccept ? true : false,
|
|
56
|
+
welcomeMessage: addressSettings.autoReply,
|
|
57
|
+
businessAddress: addressSettings.businessAddress
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function fromLocalProfile({ displayName, fullName, shortDescr, image, contactLink, preferences, peerType }) {
|
|
61
|
+
const profile = { displayName, fullName, shortDescr, image, contactLink, preferences, peerType };
|
|
62
|
+
for (const key in profile) {
|
|
63
|
+
if (typeof profile[key] === "undefined")
|
|
64
|
+
delete profile[key];
|
|
65
|
+
}
|
|
66
|
+
return profile;
|
|
67
|
+
}
|
|
68
|
+
function ciContentText({ content }) {
|
|
69
|
+
switch (content.type) {
|
|
70
|
+
case "sndMsgContent": return content.msgContent.text;
|
|
71
|
+
case "rcvMsgContent": return content.msgContent.text;
|
|
72
|
+
default: return undefined;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
// returns command (without /) and trimmed parameters
|
|
76
|
+
function ciBotCommand(chatItem) {
|
|
77
|
+
var _a;
|
|
78
|
+
const msg = (_a = ciContentText(chatItem)) === null || _a === void 0 ? void 0 : _a.trim();
|
|
79
|
+
if (msg) {
|
|
80
|
+
const r = msg.match(/\/([^\s]+)(.*)/);
|
|
81
|
+
if (r && r.length >= 3) {
|
|
82
|
+
return { keyword: r[1], params: r[2].trim() };
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return undefined;
|
|
86
|
+
}
|
|
87
|
+
function reactionText(reaction) {
|
|
88
|
+
const r = reaction.chatReaction;
|
|
89
|
+
return r.reaction.type === "emoji" ? r.reaction.emoji : r.reaction.tag;
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=util.js.map
|
package/dist/util.js.map
ADDED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C,CAAC,CAAC,CAAC,IAAI,EAAE,EAAC,CAAA;QAC7C,CAAC;IACH,CAAC;IACD,OAAO,SAAS,CAAA;AAClB,CAAC;AAED,SAAgB,YAAY,CAAC,QAAuB;IAClD,MAAM,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAA;IAC/B,OAAO,CAAC,CAAC,QAAQ,CAAC,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAA;AACxE,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
[**simplex-chat**](README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[simplex-chat](README.md) / api
|
|
6
|
+
|
|
7
|
+
# api
|
|
8
|
+
|
|
9
|
+
An API to send chat commands and receive chat events to/from chat core.
|
|
10
|
+
You need to use it in bot event handlers, and for any other use cases.
|
|
11
|
+
|
|
12
|
+
## Enumerations
|
|
13
|
+
|
|
14
|
+
- [ConnReqType](api.Enumeration.ConnReqType.md)
|
|
15
|
+
|
|
16
|
+
## Classes
|
|
17
|
+
|
|
18
|
+
- [ChatApi](api.Class.ChatApi.md)
|
|
19
|
+
- [ChatCommandError](api.Class.ChatCommandError.md)
|
|
20
|
+
|
|
21
|
+
## Interfaces
|
|
22
|
+
|
|
23
|
+
- [BotAddressSettings](api.Interface.BotAddressSettings.md)
|
|
24
|
+
|
|
25
|
+
## Type Aliases
|
|
26
|
+
|
|
27
|
+
- [DbConfig](api.TypeAlias.DbConfig.md)
|
|
28
|
+
- [EventSubscriberFunc](api.TypeAlias.EventSubscriberFunc.md)
|
|
29
|
+
- [EventSubscribers](api.TypeAlias.EventSubscribers.md)
|
|
30
|
+
|
|
31
|
+
## Variables
|
|
32
|
+
|
|
33
|
+
- [defaultBotAddressSettings](api.Variable.defaultBotAddressSettings.md)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
[**simplex-chat**](README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[simplex-chat](README.md) / bot
|
|
6
|
+
|
|
7
|
+
# bot
|
|
8
|
+
|
|
9
|
+
A simple declarative API to run a chat-bot with a single function call.
|
|
10
|
+
It automates creating and updating of the bot profile, address and bot commands shown in the app UI.
|
|
11
|
+
|
|
12
|
+
## Interfaces
|
|
13
|
+
|
|
14
|
+
- [BotConfig](bot.Interface.BotConfig.md)
|
|
15
|
+
- [BotOptions](bot.Interface.BotOptions.md)
|
|
16
|
+
|
|
17
|
+
## Type Aliases
|
|
18
|
+
|
|
19
|
+
- [BotDbOpts](bot.TypeAlias.BotDbOpts.md)
|
|
20
|
+
|
|
21
|
+
## Functions
|
|
22
|
+
|
|
23
|
+
- [run](bot.Function.run.md)
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
[**simplex-chat**](README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[simplex-chat](README.md) / core
|
|
6
|
+
|
|
7
|
+
# core
|
|
8
|
+
|
|
9
|
+
A low level API to the core library - the same that is used in desktop clients.
|
|
10
|
+
You are unlikely to ever need to use this module directly.
|
|
11
|
+
|
|
12
|
+
## Namespaces
|
|
13
|
+
|
|
14
|
+
- [DBMigrationError](core.Namespace.DBMigrationError.md)
|
|
15
|
+
- [MigrationError](core.Namespace.MigrationError.md)
|
|
16
|
+
- [MTRError](core.Namespace.MTRError.md)
|
|
17
|
+
|
|
18
|
+
## Enumerations
|
|
19
|
+
|
|
20
|
+
- [MigrationConfirmation](core.Enumeration.MigrationConfirmation.md)
|
|
21
|
+
|
|
22
|
+
## Classes
|
|
23
|
+
|
|
24
|
+
- [ChatAPIError](core.Class.ChatAPIError.md)
|
|
25
|
+
- [ChatInitError](core.Class.ChatInitError.md)
|
|
26
|
+
|
|
27
|
+
## Interfaces
|
|
28
|
+
|
|
29
|
+
- [APIResult](core.Interface.APIResult.md)
|
|
30
|
+
- [CryptoArgs](core.Interface.CryptoArgs.md)
|
|
31
|
+
- [UpMigration](core.Interface.UpMigration.md)
|
|
32
|
+
|
|
33
|
+
## Type Aliases
|
|
34
|
+
|
|
35
|
+
- [DBMigrationError](core.TypeAlias.DBMigrationError.md)
|
|
36
|
+
- [MigrationError](core.TypeAlias.MigrationError.md)
|
|
37
|
+
- [MTRError](core.TypeAlias.MTRError.md)
|
|
38
|
+
|
|
39
|
+
## Functions
|
|
40
|
+
|
|
41
|
+
- [chatCloseStore](core.Function.chatCloseStore.md)
|
|
42
|
+
- [chatDecryptFile](core.Function.chatDecryptFile.md)
|
|
43
|
+
- [chatEncryptFile](core.Function.chatEncryptFile.md)
|
|
44
|
+
- [chatMigrateInit](core.Function.chatMigrateInit.md)
|
|
45
|
+
- [chatReadFile](core.Function.chatReadFile.md)
|
|
46
|
+
- [chatRecvMsgWait](core.Function.chatRecvMsgWait.md)
|
|
47
|
+
- [chatSendCmd](core.Function.chatSendCmd.md)
|
|
48
|
+
- [chatWriteFile](core.Function.chatWriteFile.md)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
[**simplex-chat**](README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[simplex-chat](README.md) / util
|
|
6
|
+
|
|
7
|
+
# util
|
|
8
|
+
|
|
9
|
+
Useful functions for chat events and types.
|
|
10
|
+
|
|
11
|
+
## Interfaces
|
|
12
|
+
|
|
13
|
+
- [BotCommand](util.Interface.BotCommand.md)
|
|
14
|
+
|
|
15
|
+
## Functions
|
|
16
|
+
|
|
17
|
+
- [botAddressSettings](util.Function.botAddressSettings.md)
|
|
18
|
+
- [chatInfoName](util.Function.chatInfoName.md)
|
|
19
|
+
- [chatInfoRef](util.Function.chatInfoRef.md)
|
|
20
|
+
- [ciBotCommand](util.Function.ciBotCommand.md)
|
|
21
|
+
- [ciContentText](util.Function.ciContentText.md)
|
|
22
|
+
- [contactAddressStr](util.Function.contactAddressStr.md)
|
|
23
|
+
- [fromLocalProfile](util.Function.fromLocalProfile.md)
|
|
24
|
+
- [reactionText](util.Function.reactionText.md)
|
|
25
|
+
- [senderName](util.Function.senderName.md)
|