@sockethub/platform-irc 4.0.0-alpha.11 → 4.0.0-alpha.13

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.
@@ -0,0 +1,324 @@
1
+ export declare const PlatformIrcSchema: {
2
+ name: string;
3
+ version: string;
4
+ contextUrl: string;
5
+ contextVersion: string;
6
+ schemaVersion: string;
7
+ messages: {
8
+ required: string[];
9
+ properties: {
10
+ type: {
11
+ enum: string[];
12
+ };
13
+ object: {
14
+ oneOf: {
15
+ $ref: string;
16
+ }[];
17
+ };
18
+ };
19
+ definitions: {
20
+ objectTypes: {
21
+ message: {
22
+ type: string;
23
+ required: string[];
24
+ additionalProperties: boolean;
25
+ properties: {
26
+ type: {
27
+ enum: string[];
28
+ };
29
+ content: {
30
+ type: string;
31
+ };
32
+ };
33
+ };
34
+ topic: {
35
+ type: string;
36
+ required: string[];
37
+ additionalProperties: boolean;
38
+ properties: {
39
+ type: {
40
+ enum: string[];
41
+ };
42
+ content: {
43
+ type: string;
44
+ };
45
+ };
46
+ };
47
+ address: {
48
+ type: string;
49
+ required: string[];
50
+ additionalProperties: boolean;
51
+ properties: {
52
+ type: {
53
+ enum: string[];
54
+ };
55
+ };
56
+ };
57
+ attendance: {
58
+ type: string;
59
+ required: string[];
60
+ additionalProperties: boolean;
61
+ properties: {
62
+ type: {
63
+ enum: string[];
64
+ };
65
+ };
66
+ };
67
+ };
68
+ };
69
+ };
70
+ responses: {
71
+ type: string;
72
+ required: string[];
73
+ additionalProperties: boolean;
74
+ properties: {
75
+ "@context": {
76
+ type: string;
77
+ items: {
78
+ type: string;
79
+ };
80
+ };
81
+ id: {
82
+ type: string;
83
+ };
84
+ published: {
85
+ type: string;
86
+ };
87
+ type: {
88
+ enum: string[];
89
+ };
90
+ actor: {
91
+ oneOf: {
92
+ $ref: string;
93
+ }[];
94
+ };
95
+ target: {
96
+ oneOf: {
97
+ $ref: string;
98
+ }[];
99
+ };
100
+ error: {
101
+ type: string;
102
+ };
103
+ object: {
104
+ oneOf: {
105
+ $ref: string;
106
+ }[];
107
+ };
108
+ };
109
+ definitions: {
110
+ responses: {
111
+ person: {
112
+ type: string;
113
+ required: string[];
114
+ additionalProperties: boolean;
115
+ properties: {
116
+ id: {
117
+ type: string;
118
+ };
119
+ type: {
120
+ enum: string[];
121
+ };
122
+ name: {
123
+ type: string;
124
+ };
125
+ };
126
+ };
127
+ service: {
128
+ type: string;
129
+ required: string[];
130
+ additionalProperties: boolean;
131
+ properties: {
132
+ id: {
133
+ type: string;
134
+ };
135
+ type: {
136
+ enum: string[];
137
+ };
138
+ name: {
139
+ type: string;
140
+ };
141
+ };
142
+ };
143
+ room: {
144
+ type: string;
145
+ required: string[];
146
+ additionalProperties: boolean;
147
+ properties: {
148
+ id: {
149
+ type: string;
150
+ };
151
+ type: {
152
+ enum: string[];
153
+ };
154
+ name: {
155
+ type: string;
156
+ };
157
+ };
158
+ };
159
+ message: {
160
+ type: string;
161
+ required: string[];
162
+ additionalProperties: boolean;
163
+ properties: {
164
+ type: {
165
+ enum: string[];
166
+ };
167
+ content: {
168
+ type: string;
169
+ };
170
+ };
171
+ };
172
+ me: {
173
+ type: string;
174
+ required: string[];
175
+ additionalProperties: boolean;
176
+ properties: {
177
+ type: {
178
+ enum: string[];
179
+ };
180
+ content: {
181
+ type: string;
182
+ };
183
+ };
184
+ };
185
+ presence: {
186
+ type: string;
187
+ required: string[];
188
+ additionalProperties: boolean;
189
+ properties: {
190
+ type: {
191
+ enum: string[];
192
+ };
193
+ role: {
194
+ enum: string[];
195
+ };
196
+ };
197
+ };
198
+ topic: {
199
+ type: string;
200
+ required: string[];
201
+ additionalProperties: boolean;
202
+ properties: {
203
+ type: {
204
+ enum: string[];
205
+ };
206
+ content: {
207
+ type: string;
208
+ };
209
+ };
210
+ };
211
+ address: {
212
+ type: string;
213
+ required: string[];
214
+ additionalProperties: boolean;
215
+ properties: {
216
+ type: {
217
+ enum: string[];
218
+ };
219
+ };
220
+ };
221
+ relationship: {
222
+ type: string;
223
+ required: string[];
224
+ additionalProperties: boolean;
225
+ properties: {
226
+ type: {
227
+ enum: string[];
228
+ };
229
+ relationship: {
230
+ enum: string[];
231
+ };
232
+ subject: {
233
+ type: string;
234
+ required: string[];
235
+ additionalProperties: boolean;
236
+ properties: {
237
+ type: {
238
+ enum: string[];
239
+ };
240
+ role: {
241
+ enum: string[];
242
+ };
243
+ };
244
+ };
245
+ object: {
246
+ $ref: string;
247
+ };
248
+ };
249
+ };
250
+ };
251
+ };
252
+ };
253
+ credentials: {
254
+ required: string[];
255
+ properties: {
256
+ actor: {
257
+ type: string;
258
+ required: string[];
259
+ };
260
+ object: {
261
+ type: string;
262
+ required: string[];
263
+ additionalProperties: boolean;
264
+ not: {
265
+ required: string[];
266
+ };
267
+ allOf: {
268
+ anyOf: ({
269
+ not: {
270
+ properties: {
271
+ saslMechanism: {
272
+ const: string;
273
+ };
274
+ };
275
+ required: string[];
276
+ };
277
+ required?: undefined;
278
+ } | {
279
+ required: string[];
280
+ not?: undefined;
281
+ })[];
282
+ }[];
283
+ properties: {
284
+ type: {
285
+ type: string;
286
+ };
287
+ nick: {
288
+ type: string;
289
+ };
290
+ username: {
291
+ type: string;
292
+ };
293
+ password: {
294
+ type: string;
295
+ minLength: number;
296
+ };
297
+ token: {
298
+ type: string;
299
+ minLength: number;
300
+ };
301
+ server: {
302
+ type: string;
303
+ };
304
+ port: {
305
+ type: string;
306
+ };
307
+ secure: {
308
+ type: string;
309
+ };
310
+ sasl: {
311
+ type: string;
312
+ };
313
+ saslMechanism: {
314
+ type: string;
315
+ enum: string[];
316
+ };
317
+ allowInvalidCert: {
318
+ type: string;
319
+ };
320
+ };
321
+ };
322
+ };
323
+ };
324
+ };
@@ -1,7 +1,6 @@
1
1
  import type { ActivityActor, CredentialsObject } from "@sockethub/schemas";
2
-
3
2
  export interface PlatformIrcCredentialsObject extends CredentialsObject {
4
- context: "irc";
3
+ "@context": Array<string>;
5
4
  type: "credentials";
6
5
  actor: ActivityActor;
7
6
  target?: ActivityActor;
@@ -11,8 +10,11 @@ export interface PlatformIrcCredentialsObject extends CredentialsObject {
11
10
  server: string;
12
11
  username?: string;
13
12
  password?: string;
13
+ token?: string;
14
14
  port?: number;
15
15
  secure?: boolean;
16
16
  sasl?: boolean;
17
+ saslMechanism?: "PLAIN" | "OAUTHBEARER";
18
+ allowInvalidCert?: boolean;
17
19
  };
18
20
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sockethub/platform-irc",
3
3
  "description": "A sockethub platform module implementing IRC functionality",
4
- "version": "4.0.0-alpha.11",
4
+ "version": "4.0.0-alpha.13",
5
5
  "private": false,
6
6
  "author": "Nick Jennings <nick@silverbucket.net>",
7
7
  "license": "LGPL-3.0+",
@@ -12,17 +12,16 @@
12
12
  "main": "dist/index.js",
13
13
  "exports": {
14
14
  ".": {
15
- "bun": "./src/index.ts",
15
+ "types": "./dist/index.d.ts",
16
16
  "import": "./dist/index.js",
17
17
  "default": "./dist/index.js"
18
18
  }
19
19
  },
20
20
  "files": [
21
- "src/",
22
21
  "dist/"
23
22
  ],
24
23
  "engines": {
25
- "bun": ">=1.2"
24
+ "node": ">=20"
26
25
  },
27
26
  "keywords": [
28
27
  "sockethub",
@@ -46,21 +45,22 @@
46
45
  "doc": "typedoc --options typedoc.json"
47
46
  },
48
47
  "dependencies": {
49
- "@sockethub/irc2as": "^4.0.0-alpha.11",
50
- "irc-socket-sasl": "^4.0.0"
48
+ "@sockethub/irc2as": "^4.0.0-alpha.13",
49
+ "irc-socket-sasl": "^4.1.2"
51
50
  },
52
51
  "devDependencies": {
53
- "@sockethub/schemas": "^3.0.0-alpha.11",
52
+ "@sockethub/schemas": "^3.0.0-alpha.13",
54
53
  "@types/bun": "latest",
55
54
  "typedoc": "^0.28.14"
56
55
  },
57
56
  "peerDependencies": {
58
- "@sockethub/server": "^5.0.0-alpha.11"
57
+ "@sockethub/server": "^5.0.0-alpha.13"
59
58
  },
60
59
  "peerDependenciesMeta": {
61
60
  "@sockethub/server": {
62
61
  "optional": true
63
62
  }
64
63
  },
65
- "gitHead": "c243fa9e76c688ce5ffcf524400b1dd27dcce615"
64
+ "gitHead": "864733e5b34449ef39542eceb4ff11aa308081bc",
65
+ "types": "./dist/index.d.ts"
66
66
  }
@@ -1,60 +0,0 @@
1
- export default [
2
- {
3
- name: "irc credentials",
4
- valid: true,
5
- type: "credentials",
6
- input: {
7
- context: "irc",
8
- type: "credentials",
9
- actor: {
10
- id: "sh-9K3Vk@irc.freenode.net",
11
- type: "person",
12
- name: "sh-9K3Vk",
13
- image: {
14
- height: 250,
15
- mediaType: "image/jpeg",
16
- url: "http://example.org/image.jpg",
17
- width: 250,
18
- },
19
- url: "http://sockethub.org",
20
- },
21
- object: {
22
- type: "credentials",
23
- nick: "sh-9K3Vk",
24
- port: 6667,
25
- secure: false,
26
- server: "irc.freenode.net",
27
- },
28
- },
29
- output: "same",
30
- },
31
- {
32
- name: "bad irc credentials: user/nick host/server",
33
- valid: false,
34
- type: "credentials",
35
- input: {
36
- context: "irc",
37
- type: "credentials",
38
- actor: {
39
- id: "sh-9K3Vk@irc.freenode.net",
40
- type: "person",
41
- name: "sh-9K3Vk",
42
- image: {
43
- height: 250,
44
- mediaType: "image/jpeg",
45
- url: "http://example.org/image.jpg",
46
- width: 250,
47
- },
48
- url: "http://sockethub.org",
49
- },
50
- object: {
51
- type: "credentials",
52
- user: "sh-9K3Vk",
53
- port: 6667,
54
- secure: false,
55
- host: "irc.freenode.net",
56
- },
57
- },
58
- error: "Error: [irc] /object: must NOT have additional properties: host",
59
- },
60
- ];