simplex-chat 0.2.1 → 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 +108 -21
- 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 +34 -37
- 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 -76
- package/dist/client.js +0 -329
- package/dist/client.js.map +0 -1
- package/dist/command.d.ts +0 -412
- package/dist/command.js +0 -186
- 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 -755
- 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 -51
- 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
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
[**simplex-chat**](README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[simplex-chat](README.md) / [core](Namespace.core.md) / chatMigrateInit
|
|
6
|
+
|
|
7
|
+
# Function: chatMigrateInit()
|
|
8
|
+
|
|
9
|
+
> **chatMigrateInit**(`dbPath`, `dbKey`, `confirm`): `Promise`\<`bigint`\>
|
|
10
|
+
|
|
11
|
+
Defined in: [src/core.ts:7](../src/core.ts#L7)
|
|
12
|
+
|
|
13
|
+
Initialize chat controller
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
### dbPath
|
|
18
|
+
|
|
19
|
+
`string`
|
|
20
|
+
|
|
21
|
+
### dbKey
|
|
22
|
+
|
|
23
|
+
`string`
|
|
24
|
+
|
|
25
|
+
### confirm
|
|
26
|
+
|
|
27
|
+
[`MigrationConfirmation`](core.Enumeration.MigrationConfirmation.md)
|
|
28
|
+
|
|
29
|
+
## Returns
|
|
30
|
+
|
|
31
|
+
`Promise`\<`bigint`\>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
[**simplex-chat**](README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[simplex-chat](README.md) / [core](Namespace.core.md) / chatReadFile
|
|
6
|
+
|
|
7
|
+
# Function: chatReadFile()
|
|
8
|
+
|
|
9
|
+
> **chatReadFile**(`path`, `__namedParameters`): `Promise`\<`ArrayBuffer`\>
|
|
10
|
+
|
|
11
|
+
Defined in: [src/core.ts:58](../src/core.ts#L58)
|
|
12
|
+
|
|
13
|
+
Read buffer from encrypted file
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
### path
|
|
18
|
+
|
|
19
|
+
`string`
|
|
20
|
+
|
|
21
|
+
### \_\_namedParameters
|
|
22
|
+
|
|
23
|
+
[`CryptoArgs`](core.Interface.CryptoArgs.md)
|
|
24
|
+
|
|
25
|
+
## Returns
|
|
26
|
+
|
|
27
|
+
`Promise`\<`ArrayBuffer`\>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
[**simplex-chat**](README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[simplex-chat](README.md) / [core](Namespace.core.md) / chatRecvMsgWait
|
|
6
|
+
|
|
7
|
+
# Function: chatRecvMsgWait()
|
|
8
|
+
|
|
9
|
+
> **chatRecvMsgWait**(`ctrl`, `wait`): `Promise`\<`ChatEvent` \| `undefined`\>
|
|
10
|
+
|
|
11
|
+
Defined in: [src/core.ts:37](../src/core.ts#L37)
|
|
12
|
+
|
|
13
|
+
Receive chat event
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
### ctrl
|
|
18
|
+
|
|
19
|
+
`bigint`
|
|
20
|
+
|
|
21
|
+
### wait
|
|
22
|
+
|
|
23
|
+
`number`
|
|
24
|
+
|
|
25
|
+
## Returns
|
|
26
|
+
|
|
27
|
+
`Promise`\<`ChatEvent` \| `undefined`\>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
[**simplex-chat**](README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[simplex-chat](README.md) / [core](Namespace.core.md) / chatSendCmd
|
|
6
|
+
|
|
7
|
+
# Function: chatSendCmd()
|
|
8
|
+
|
|
9
|
+
> **chatSendCmd**(`ctrl`, `cmd`): `Promise`\<`ChatResponse`\>
|
|
10
|
+
|
|
11
|
+
Defined in: [src/core.ts:25](../src/core.ts#L25)
|
|
12
|
+
|
|
13
|
+
Send chat command as string
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
### ctrl
|
|
18
|
+
|
|
19
|
+
`bigint`
|
|
20
|
+
|
|
21
|
+
### cmd
|
|
22
|
+
|
|
23
|
+
`string`
|
|
24
|
+
|
|
25
|
+
## Returns
|
|
26
|
+
|
|
27
|
+
`Promise`\<`ChatResponse`\>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
[**simplex-chat**](README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[simplex-chat](README.md) / [core](Namespace.core.md) / chatWriteFile
|
|
6
|
+
|
|
7
|
+
# Function: chatWriteFile()
|
|
8
|
+
|
|
9
|
+
> **chatWriteFile**(`ctrl`, `path`, `buffer`): `Promise`\<[`CryptoArgs`](core.Interface.CryptoArgs.md)\>
|
|
10
|
+
|
|
11
|
+
Defined in: [src/core.ts:50](../src/core.ts#L50)
|
|
12
|
+
|
|
13
|
+
Write buffer to encrypted file
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
### ctrl
|
|
18
|
+
|
|
19
|
+
`bigint`
|
|
20
|
+
|
|
21
|
+
### path
|
|
22
|
+
|
|
23
|
+
`string`
|
|
24
|
+
|
|
25
|
+
### buffer
|
|
26
|
+
|
|
27
|
+
`ArrayBuffer`
|
|
28
|
+
|
|
29
|
+
## Returns
|
|
30
|
+
|
|
31
|
+
`Promise`\<[`CryptoArgs`](core.Interface.CryptoArgs.md)\>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
[**simplex-chat**](README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[simplex-chat](README.md) / [core](Namespace.core.md) / APIResult
|
|
6
|
+
|
|
7
|
+
# Interface: APIResult\<R\>
|
|
8
|
+
|
|
9
|
+
Defined in: [src/core.ts:87](../src/core.ts#L87)
|
|
10
|
+
|
|
11
|
+
## Type Parameters
|
|
12
|
+
|
|
13
|
+
### R
|
|
14
|
+
|
|
15
|
+
`R`
|
|
16
|
+
|
|
17
|
+
## Properties
|
|
18
|
+
|
|
19
|
+
### error?
|
|
20
|
+
|
|
21
|
+
> `optional` **error?**: `ChatError`
|
|
22
|
+
|
|
23
|
+
Defined in: [src/core.ts:89](../src/core.ts#L89)
|
|
24
|
+
|
|
25
|
+
***
|
|
26
|
+
|
|
27
|
+
### result?
|
|
28
|
+
|
|
29
|
+
> `optional` **result?**: `R`
|
|
30
|
+
|
|
31
|
+
Defined in: [src/core.ts:88](../src/core.ts#L88)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
[**simplex-chat**](README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[simplex-chat](README.md) / [core](Namespace.core.md) / CryptoArgs
|
|
6
|
+
|
|
7
|
+
# Interface: CryptoArgs
|
|
8
|
+
|
|
9
|
+
Defined in: [src/core.ts:111](../src/core.ts#L111)
|
|
10
|
+
|
|
11
|
+
File encryption key and nonce
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
### fileKey
|
|
16
|
+
|
|
17
|
+
> **fileKey**: `string`
|
|
18
|
+
|
|
19
|
+
Defined in: [src/core.ts:112](../src/core.ts#L112)
|
|
20
|
+
|
|
21
|
+
***
|
|
22
|
+
|
|
23
|
+
### fileNonce
|
|
24
|
+
|
|
25
|
+
> **fileNonce**: `string`
|
|
26
|
+
|
|
27
|
+
Defined in: [src/core.ts:113](../src/core.ts#L113)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
[**simplex-chat**](README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[simplex-chat](README.md) / [core](Namespace.core.md) / UpMigration
|
|
6
|
+
|
|
7
|
+
# Interface: UpMigration
|
|
8
|
+
|
|
9
|
+
Defined in: [src/core.ts:185](../src/core.ts#L185)
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
### upName
|
|
14
|
+
|
|
15
|
+
> **upName**: `string`
|
|
16
|
+
|
|
17
|
+
Defined in: [src/core.ts:186](../src/core.ts#L186)
|
|
18
|
+
|
|
19
|
+
***
|
|
20
|
+
|
|
21
|
+
### withDown
|
|
22
|
+
|
|
23
|
+
> **withDown**: `boolean`
|
|
24
|
+
|
|
25
|
+
Defined in: [src/core.ts:187](../src/core.ts#L187)
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
[**simplex-chat**](README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[simplex-chat](README.md) / [core](Namespace.core.md) / [MTRError](core.Namespace.MTRError.md) / MTREDifferent
|
|
6
|
+
|
|
7
|
+
# Interface: MTREDifferent
|
|
8
|
+
|
|
9
|
+
Defined in: [src/core.ts:206](../src/core.ts#L206)
|
|
10
|
+
|
|
11
|
+
## Extends
|
|
12
|
+
|
|
13
|
+
- `Interface`
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
### downMigrations
|
|
18
|
+
|
|
19
|
+
> **downMigrations**: `string`[]
|
|
20
|
+
|
|
21
|
+
Defined in: [src/core.ts:208](../src/core.ts#L208)
|
|
22
|
+
|
|
23
|
+
***
|
|
24
|
+
|
|
25
|
+
### type
|
|
26
|
+
|
|
27
|
+
> **type**: `"different"`
|
|
28
|
+
|
|
29
|
+
Defined in: [src/core.ts:207](../src/core.ts#L207)
|
|
30
|
+
|
|
31
|
+
#### Overrides
|
|
32
|
+
|
|
33
|
+
`Interface.type`
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
[**simplex-chat**](README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[simplex-chat](README.md) / [core](Namespace.core.md) / [MTRError](core.Namespace.MTRError.md) / MTRENoDown
|
|
6
|
+
|
|
7
|
+
# Interface: MTRENoDown
|
|
8
|
+
|
|
9
|
+
Defined in: [src/core.ts:201](../src/core.ts#L201)
|
|
10
|
+
|
|
11
|
+
## Extends
|
|
12
|
+
|
|
13
|
+
- `Interface`
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
### type
|
|
18
|
+
|
|
19
|
+
> **type**: `"noDown"`
|
|
20
|
+
|
|
21
|
+
Defined in: [src/core.ts:202](../src/core.ts#L202)
|
|
22
|
+
|
|
23
|
+
#### Overrides
|
|
24
|
+
|
|
25
|
+
`Interface.type`
|
|
26
|
+
|
|
27
|
+
***
|
|
28
|
+
|
|
29
|
+
### upMigrations
|
|
30
|
+
|
|
31
|
+
> **upMigrations**: [`UpMigration`](core.Interface.UpMigration.md)
|
|
32
|
+
|
|
33
|
+
Defined in: [src/core.ts:203](../src/core.ts#L203)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
[**simplex-chat**](README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[simplex-chat](README.md) / [core](Namespace.core.md) / [MTRError](core.Namespace.MTRError.md) / Tag
|
|
6
|
+
|
|
7
|
+
# Type Alias: Tag
|
|
8
|
+
|
|
9
|
+
> **Tag** = `"noDown"` \| `"different"`
|
|
10
|
+
|
|
11
|
+
Defined in: [src/core.ts:195](../src/core.ts#L195)
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
[**simplex-chat**](README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[simplex-chat](README.md) / [core](Namespace.core.md) / [MigrationError](core.Namespace.MigrationError.md) / MEDowngrade
|
|
6
|
+
|
|
7
|
+
# Interface: MEDowngrade
|
|
8
|
+
|
|
9
|
+
Defined in: [src/core.ts:174](../src/core.ts#L174)
|
|
10
|
+
|
|
11
|
+
## Extends
|
|
12
|
+
|
|
13
|
+
- `Interface`
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
### downMigrations
|
|
18
|
+
|
|
19
|
+
> **downMigrations**: `string`[]
|
|
20
|
+
|
|
21
|
+
Defined in: [src/core.ts:176](../src/core.ts#L176)
|
|
22
|
+
|
|
23
|
+
***
|
|
24
|
+
|
|
25
|
+
### type
|
|
26
|
+
|
|
27
|
+
> **type**: `"downgrade"`
|
|
28
|
+
|
|
29
|
+
Defined in: [src/core.ts:175](../src/core.ts#L175)
|
|
30
|
+
|
|
31
|
+
#### Overrides
|
|
32
|
+
|
|
33
|
+
`Interface.type`
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
[**simplex-chat**](README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[simplex-chat](README.md) / [core](Namespace.core.md) / [MigrationError](core.Namespace.MigrationError.md) / MEUpgrade
|
|
6
|
+
|
|
7
|
+
# Interface: MEUpgrade
|
|
8
|
+
|
|
9
|
+
Defined in: [src/core.ts:169](../src/core.ts#L169)
|
|
10
|
+
|
|
11
|
+
## Extends
|
|
12
|
+
|
|
13
|
+
- `Interface`
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
### type
|
|
18
|
+
|
|
19
|
+
> **type**: `"upgrade"`
|
|
20
|
+
|
|
21
|
+
Defined in: [src/core.ts:170](../src/core.ts#L170)
|
|
22
|
+
|
|
23
|
+
#### Overrides
|
|
24
|
+
|
|
25
|
+
`Interface.type`
|
|
26
|
+
|
|
27
|
+
***
|
|
28
|
+
|
|
29
|
+
### upMigrations
|
|
30
|
+
|
|
31
|
+
> **upMigrations**: [`UpMigration`](core.Interface.UpMigration.md)
|
|
32
|
+
|
|
33
|
+
Defined in: [src/core.ts:171](../src/core.ts#L171)
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
[**simplex-chat**](README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[simplex-chat](README.md) / [core](Namespace.core.md) / [MigrationError](core.Namespace.MigrationError.md) / MigrationError
|
|
6
|
+
|
|
7
|
+
# Interface: MigrationError
|
|
8
|
+
|
|
9
|
+
Defined in: [src/core.ts:179](../src/core.ts#L179)
|
|
10
|
+
|
|
11
|
+
## Extends
|
|
12
|
+
|
|
13
|
+
- `Interface`
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
### mtrError
|
|
18
|
+
|
|
19
|
+
> **mtrError**: [`MTRError`](core.TypeAlias.MTRError.md)
|
|
20
|
+
|
|
21
|
+
Defined in: [src/core.ts:181](../src/core.ts#L181)
|
|
22
|
+
|
|
23
|
+
***
|
|
24
|
+
|
|
25
|
+
### type
|
|
26
|
+
|
|
27
|
+
> **type**: `"migrationError"`
|
|
28
|
+
|
|
29
|
+
Defined in: [src/core.ts:180](../src/core.ts#L180)
|
|
30
|
+
|
|
31
|
+
#### Overrides
|
|
32
|
+
|
|
33
|
+
`Interface.type`
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
[**simplex-chat**](README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[simplex-chat](README.md) / [core](Namespace.core.md) / [MigrationError](core.Namespace.MigrationError.md) / Tag
|
|
6
|
+
|
|
7
|
+
# Type Alias: Tag
|
|
8
|
+
|
|
9
|
+
> **Tag** = `"upgrade"` \| `"downgrade"` \| `"migrationError"`
|
|
10
|
+
|
|
11
|
+
Defined in: [src/core.ts:163](../src/core.ts#L163)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
[**simplex-chat**](README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[simplex-chat](README.md) / [core](Namespace.core.md) / DBMigrationError
|
|
6
|
+
|
|
7
|
+
# DBMigrationError
|
|
8
|
+
|
|
9
|
+
## Interfaces
|
|
10
|
+
|
|
11
|
+
- [ErrorMigration](core.DBMigrationError.Interface.ErrorMigration.md)
|
|
12
|
+
- [ErrorNotADatabase](core.DBMigrationError.Interface.ErrorNotADatabase.md)
|
|
13
|
+
- [ErrorSQL](core.DBMigrationError.Interface.ErrorSQL.md)
|
|
14
|
+
- [InvalidConfirmation](core.DBMigrationError.Interface.InvalidConfirmation.md)
|
|
15
|
+
|
|
16
|
+
## Type Aliases
|
|
17
|
+
|
|
18
|
+
- [Tag](core.DBMigrationError.TypeAlias.Tag.md)
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
[**simplex-chat**](README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[simplex-chat](README.md) / [core](Namespace.core.md) / MTRError
|
|
6
|
+
|
|
7
|
+
# MTRError
|
|
8
|
+
|
|
9
|
+
## Interfaces
|
|
10
|
+
|
|
11
|
+
- [MTREDifferent](core.MTRError.Interface.MTREDifferent.md)
|
|
12
|
+
- [MTRENoDown](core.MTRError.Interface.MTRENoDown.md)
|
|
13
|
+
|
|
14
|
+
## Type Aliases
|
|
15
|
+
|
|
16
|
+
- [Tag](core.MTRError.TypeAlias.Tag.md)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[**simplex-chat**](README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[simplex-chat](README.md) / [core](Namespace.core.md) / MigrationError
|
|
6
|
+
|
|
7
|
+
# MigrationError
|
|
8
|
+
|
|
9
|
+
## Interfaces
|
|
10
|
+
|
|
11
|
+
- [MEDowngrade](core.MigrationError.Interface.MEDowngrade.md)
|
|
12
|
+
- [MEUpgrade](core.MigrationError.Interface.MEUpgrade.md)
|
|
13
|
+
- [MigrationError](core.MigrationError.Interface.MigrationError.md)
|
|
14
|
+
|
|
15
|
+
## Type Aliases
|
|
16
|
+
|
|
17
|
+
- [Tag](core.MigrationError.TypeAlias.Tag.md)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
[**simplex-chat**](README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[simplex-chat](README.md) / [core](Namespace.core.md) / DBMigrationError
|
|
6
|
+
|
|
7
|
+
# Type Alias: DBMigrationError
|
|
8
|
+
|
|
9
|
+
> **DBMigrationError** = [`InvalidConfirmation`](core.DBMigrationError.Interface.InvalidConfirmation.md) \| [`ErrorNotADatabase`](core.DBMigrationError.Interface.ErrorNotADatabase.md) \| [`ErrorMigration`](core.DBMigrationError.Interface.ErrorMigration.md) \| [`ErrorSQL`](core.DBMigrationError.Interface.ErrorSQL.md)
|
|
10
|
+
|
|
11
|
+
Defined in: [src/core.ts:122](../src/core.ts#L122)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
[**simplex-chat**](README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[simplex-chat](README.md) / [core](Namespace.core.md) / MTRError
|
|
6
|
+
|
|
7
|
+
# Type Alias: MTRError
|
|
8
|
+
|
|
9
|
+
> **MTRError** = [`MTRENoDown`](core.MTRError.Interface.MTRENoDown.md) \| [`MTREDifferent`](core.MTRError.Interface.MTREDifferent.md)
|
|
10
|
+
|
|
11
|
+
Defined in: [src/core.ts:190](../src/core.ts#L190)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
[**simplex-chat**](README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[simplex-chat](README.md) / [core](Namespace.core.md) / MigrationError
|
|
6
|
+
|
|
7
|
+
# Type Alias: MigrationError
|
|
8
|
+
|
|
9
|
+
> **MigrationError** = [`MEUpgrade`](core.MigrationError.Interface.MEUpgrade.md) \| [`MEDowngrade`](core.MigrationError.Interface.MEDowngrade.md) \| [`MigrationError`](core.MigrationError.Interface.MigrationError.md)
|
|
10
|
+
|
|
11
|
+
Defined in: [src/core.ts:157](../src/core.ts#L157)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[**simplex-chat**](README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[simplex-chat](README.md) / [util](Namespace.util.md) / botAddressSettings
|
|
6
|
+
|
|
7
|
+
# Function: botAddressSettings()
|
|
8
|
+
|
|
9
|
+
> **botAddressSettings**(`__namedParameters`): [`BotAddressSettings`](api.Interface.BotAddressSettings.md)
|
|
10
|
+
|
|
11
|
+
Defined in: [src/util.ts:48](../src/util.ts#L48)
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
### \_\_namedParameters
|
|
16
|
+
|
|
17
|
+
`UserContactLink`
|
|
18
|
+
|
|
19
|
+
## Returns
|
|
20
|
+
|
|
21
|
+
[`BotAddressSettings`](api.Interface.BotAddressSettings.md)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[**simplex-chat**](README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[simplex-chat](README.md) / [util](Namespace.util.md) / chatInfoName
|
|
6
|
+
|
|
7
|
+
# Function: chatInfoName()
|
|
8
|
+
|
|
9
|
+
> **chatInfoName**(`cInfo`): `string`
|
|
10
|
+
|
|
11
|
+
Defined in: [src/util.ts:18](../src/util.ts#L18)
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
### cInfo
|
|
16
|
+
|
|
17
|
+
`ChatInfo`
|
|
18
|
+
|
|
19
|
+
## Returns
|
|
20
|
+
|
|
21
|
+
`string`
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[**simplex-chat**](README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[simplex-chat](README.md) / [util](Namespace.util.md) / chatInfoRef
|
|
6
|
+
|
|
7
|
+
# Function: chatInfoRef()
|
|
8
|
+
|
|
9
|
+
> **chatInfoRef**(`cInfo`): `ChatRef` \| `undefined`
|
|
10
|
+
|
|
11
|
+
Defined in: [src/util.ts:4](../src/util.ts#L4)
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
### cInfo
|
|
16
|
+
|
|
17
|
+
`ChatInfo`
|
|
18
|
+
|
|
19
|
+
## Returns
|
|
20
|
+
|
|
21
|
+
`ChatRef` \| `undefined`
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[**simplex-chat**](README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[simplex-chat](README.md) / [util](Namespace.util.md) / ciBotCommand
|
|
6
|
+
|
|
7
|
+
# Function: ciBotCommand()
|
|
8
|
+
|
|
9
|
+
> **ciBotCommand**(`chatItem`): [`BotCommand`](util.Interface.BotCommand.md) \| `undefined`
|
|
10
|
+
|
|
11
|
+
Defined in: [src/util.ts:78](../src/util.ts#L78)
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
### chatItem
|
|
16
|
+
|
|
17
|
+
`ChatItem`
|
|
18
|
+
|
|
19
|
+
## Returns
|
|
20
|
+
|
|
21
|
+
[`BotCommand`](util.Interface.BotCommand.md) \| `undefined`
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[**simplex-chat**](README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[simplex-chat](README.md) / [util](Namespace.util.md) / ciContentText
|
|
6
|
+
|
|
7
|
+
# Function: ciContentText()
|
|
8
|
+
|
|
9
|
+
> **ciContentText**(`__namedParameters`): `string` \| `undefined`
|
|
10
|
+
|
|
11
|
+
Defined in: [src/util.ts:64](../src/util.ts#L64)
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
### \_\_namedParameters
|
|
16
|
+
|
|
17
|
+
`ChatItem`
|
|
18
|
+
|
|
19
|
+
## Returns
|
|
20
|
+
|
|
21
|
+
`string` \| `undefined`
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[**simplex-chat**](README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[simplex-chat](README.md) / [util](Namespace.util.md) / contactAddressStr
|
|
6
|
+
|
|
7
|
+
# Function: contactAddressStr()
|
|
8
|
+
|
|
9
|
+
> **contactAddressStr**(`link`): `string`
|
|
10
|
+
|
|
11
|
+
Defined in: [src/util.ts:44](../src/util.ts#L44)
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
### link
|
|
16
|
+
|
|
17
|
+
`CreatedConnLink`
|
|
18
|
+
|
|
19
|
+
## Returns
|
|
20
|
+
|
|
21
|
+
`string`
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[**simplex-chat**](README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[simplex-chat](README.md) / [util](Namespace.util.md) / fromLocalProfile
|
|
6
|
+
|
|
7
|
+
# Function: fromLocalProfile()
|
|
8
|
+
|
|
9
|
+
> **fromLocalProfile**(`__namedParameters`): `Profile`
|
|
10
|
+
|
|
11
|
+
Defined in: [src/util.ts:56](../src/util.ts#L56)
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
### \_\_namedParameters
|
|
16
|
+
|
|
17
|
+
`LocalProfile`
|
|
18
|
+
|
|
19
|
+
## Returns
|
|
20
|
+
|
|
21
|
+
`Profile`
|