@sockethub/platform-irc 4.0.0-alpha.8 → 4.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +332 -16
- package/dist/index.d.ts +155 -0
- package/dist/index.js +18333 -1727
- package/dist/index.js.map +159 -17
- package/dist/schema.d.ts +421 -0
- package/{src/types.ts → dist/types.d.ts} +4 -2
- package/package.json +10 -9
- package/src/index.test.data.ts +0 -60
- package/src/index.test.ts +0 -277
- package/src/index.ts +0 -764
- package/src/octal-hack.js +0 -4
- package/src/schema.ts +0 -66
package/src/octal-hack.js
DELETED
package/src/schema.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import packageJson from "../package.json" with { type: "json" };
|
|
2
|
-
const version = packageJson.version;
|
|
3
|
-
|
|
4
|
-
export const PlatformIrcSchema = {
|
|
5
|
-
name: "irc",
|
|
6
|
-
version: version,
|
|
7
|
-
messages: {
|
|
8
|
-
required: ["type"],
|
|
9
|
-
properties: {
|
|
10
|
-
type: {
|
|
11
|
-
enum: [
|
|
12
|
-
"connect",
|
|
13
|
-
"update",
|
|
14
|
-
"join",
|
|
15
|
-
"leave",
|
|
16
|
-
"send",
|
|
17
|
-
"query",
|
|
18
|
-
"announce",
|
|
19
|
-
"disconnect",
|
|
20
|
-
],
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
credentials: {
|
|
25
|
-
required: ["object"],
|
|
26
|
-
properties: {
|
|
27
|
-
// TODO platforms shouldn't have to define the actor property
|
|
28
|
-
// if they don't want to, just credential specifics
|
|
29
|
-
actor: {
|
|
30
|
-
type: "object",
|
|
31
|
-
required: ["id"],
|
|
32
|
-
},
|
|
33
|
-
object: {
|
|
34
|
-
type: "object",
|
|
35
|
-
required: ["type", "nick", "server"],
|
|
36
|
-
additionalProperties: false,
|
|
37
|
-
properties: {
|
|
38
|
-
type: {
|
|
39
|
-
type: "string",
|
|
40
|
-
},
|
|
41
|
-
nick: {
|
|
42
|
-
type: "string",
|
|
43
|
-
},
|
|
44
|
-
username: {
|
|
45
|
-
type: "string",
|
|
46
|
-
},
|
|
47
|
-
password: {
|
|
48
|
-
type: "string",
|
|
49
|
-
},
|
|
50
|
-
server: {
|
|
51
|
-
type: "string",
|
|
52
|
-
},
|
|
53
|
-
port: {
|
|
54
|
-
type: "number",
|
|
55
|
-
},
|
|
56
|
-
secure: {
|
|
57
|
-
type: "boolean",
|
|
58
|
-
},
|
|
59
|
-
sasl: {
|
|
60
|
-
type: "boolean",
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
};
|