@sockethub/irc2as 4.0.0-alpha.3 → 4.0.0-alpha.5

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.
@@ -1,108 +1,492 @@
1
- module.exports = [
2
- { context: 'irc',
3
- type: 'update',
4
- actor: {
5
- type: 'service',
6
- id: 'localhost',
7
- name: 'localhost'
8
- },
9
- object: {
10
- type: 'topic',
11
- content: '- -'
12
- }
13
- },
14
- { context: 'irc',
15
- type: 'update',
16
- actor: {
17
- type: 'service',
18
- id: 'localhost',
19
- name: 'localhost'
20
- },
21
- object: {
22
- type: 'topic',
23
- content: "- on the https://freenode.live website for our call for volunteers and call for - participation. " +
24
- "If you are interested in sponsoring next year's event, please - send us an e-mail to sponsor@freenode.live " +
25
- "- - Thank you for using freenode! - -"
26
- }
27
- },
28
- { context: 'irc',
29
- type: 'update',
30
- actor:
31
- { type: 'person',
32
- id: 'donkey2018@localhost',
33
- name: 'donkey2018' },
34
- target:
35
- { type: 'person',
36
- id: 'slvrbckt@localhost',
37
- name: 'slvrbckt' },
38
- object: { type: 'address' }
39
- },
40
- { context: 'irc',
41
- type: 'update',
42
- actor:
43
- { type: 'person',
44
- id: 'slvrbckt@localhost',
45
- name: 'slvrbckt' },
46
- target:
47
- { type: 'person',
48
- id: 'donkey2018@localhost',
49
- name: 'donkey2018' },
50
- object: { type: 'address' }
51
- },
52
- { context: 'irc',
53
- type: 'leave',
54
- actor:
55
- { type: 'person',
56
- id: 'slvrbckt@localhost',
57
- name: 'slvrbckt' },
58
- target:
59
- { type: 'room',
60
- id: 'localhost/#debian',
61
- name: '#debian' },
62
- object: { type: 'message', content: 'user has left the channel' }
63
- },
64
- {context:"irc",type:"leave",actor:{type:"person",id:"jarlaxl_@localhost",name:"jarlaxl_"},target:{type:"service",id:"localhost"},object:{type:"message",content:"user has quit"}},
65
- {context:"irc",type:"join",actor:{id:"localhost",type:"service"},error:"no such channel sdfsdfsdfsdfsdf",target:{id:"sdfsdfsdfsdfsdf@localhost",type:"person"}},
66
- {context:"irc",type:"update",actor:{type:"person",id:"lio17@localhost",name:"lio17"},target:{type:"room",id:"localhost/#kosmos-random",name:"#kosmos-random"},object:{type:"topic","content":"testing123"}},
67
- {context:"irc",type:"send",actor:{type:"person",id:"hyper_slvrbckt@localhost",name:"hyper_slvrbckt"},target:{type:"room", id:"localhost/#kosmos-random",name:"#kosmos-random"},object:{type:"message",content:"-ssssssss"}},
68
- {context:"irc",type:"update",actor:{type:"person",id:"lio17@localhost",name:"lio17"},target:{type:"room",id:"localhost/#kosmos-random",name:"#kosmos-random"},object:{type:"topic","content":"no longer boating in senegal"}},
69
- {context:"irc",type:"send",actor:{type:"person",id:"raucao@localhost",name:"raucao"},target:{type:"room",id:"localhost/#kosmos-random",name:"#kosmos-random"},object:{type:"me",content:"is thinking about sending someone to get b33rz"}},
70
- {context:"irc",type:"update",object:{type:"presence",role:"member"},actor:{type:"person",id:"hyper_slvrbckt@localhost",name:"hyper_slvrbckt"},target:{type:"room",id:"localhost/#kosmos-random",name:"#kosmos-random"}},
71
- {context:"irc",type:"update",object:{type:"presence",role:"member"},actor:{type:"person",id:"hyper_slvrbckt@localhost",name:"hyper_slvrbckt"},target:{type:"room",id:"localhost/#kosmos-random",name:"#kosmos-random"}},
72
- {context:"irc",type:"update",object:{type:"presence",role:"member"},actor:{type:"person",id:"hyper_slvrbckt@localhost",name:"hyper_slvrbckt"},target:{type:"room",id:"localhost/#kosmos-random",name:"#kosmos-random"}},
73
- {context:"irc",type:"update",object:{type:"presence",role:"member"},actor:{type:"person",id:"hyper_slvrbckt@localhost",name:"hyper_slvrbckt"},target:{type:"room",id:"localhost/#kosmos-random",name:"#kosmos-random"}},
74
- {context:"irc",type:"update",actor:{type:"person",id:"hyper_slvrbckt@localhost",name:"hyper_slvrbckt"},target:{type:"room",id:"localhost/#kosmos-random",name:"#kosmos-random"},object:{type:"presence",role:"member"}},
75
- {context:"irc",type:"update",actor:{type:"person",id:"gregkare@localhost",name:"gregkare"},target:{type:"room",id:"localhost/#kosmos-random",name:"#kosmos-random"},object:{type:"presence",role:"member"}},
76
- {context:"irc",type:"update",actor:{type:"person",id:"slvrbckt@localhost",name:"slvrbckt"},target:{type:"room",id:"localhost/#kosmos",name:"#kosmos"},object:{type:"presence",role:"member"}},
77
- {context:"irc",type:"update",actor:{type:"person",id:"lio17@localhost",name:"lio17"},target:{type:"room",id:"localhost/#kosmos",name:"#kosmos"},object:{type:"presence",role:"member"}},
78
- {context:"irc",type:"update",actor:{type:"person",id:"M-silverbucket@localhost",name:"M-silverbucket"},target:{type:"room",id:"localhost/#kosmos",name:"#kosmos"},object:{type:"presence",role:"member"}},
79
- {context:"irc",type:"update",actor:{type:"person",id:"botka1@localhost",name:"botka1"},target:{type:"room",id:"localhost/#kosmos",name:"#kosmos"},object:{type:"presence",role:"member"}},
80
- {context:"irc",type:"update",actor:{type:"person",id:"derbumi@localhost",name:"derbumi"},target:{type:"room",id:"localhost/#kosmos",name:"#kosmos"},object:{type:"presence",role:"member"}},
81
- {context:"irc",type:"update",actor:{type:"person",id:"ChanServ@localhost",name:"ChanServ"},target:{type:"room",id:"localhost/#kosmos",name:"#kosmos"},object:{type:"presence",role:"member"}},
82
- {context:"irc",type:"update",actor:{type:"person",id:"gregkare@localhost",name:"gregkare"},target:{type:"room",id:"localhost/#kosmos",name:"#kosmos"},object:{type:"presence",role:"member"}},
83
- {context:"irc",type:"update",actor:{type:"person",id:"hal8000@localhost",name:"hal8000"},target:{type:"room",id:"localhost/#kosmos-random",name:"#kosmos-random"},object:{type:"presence",role:"member"}},
84
- {context:"irc",type:"update",actor:{type:"person",id:"bkero-@localhost",name:"bkero-"},target:{type:"room",id:"localhost/#kosmos",name:"#kosmos"},object:{type:"presence",role:"member"}},
85
- {context:"irc",type:"update",actor:{type:"person",id:"galfert@localhost",name:"galfert"},target:{type:"room",id:"localhost/#kosmos",name:"#kosmos"},object:{type:"presence",role:"member"}},
86
- {context:"irc",type:"update",actor:{type:"person",id:"raucao@localhost",name:"raucao"},target:{type:"room",id:"localhost/#kosmos",name:"#kosmos"},object:{type:"presence",role:"member"}},
87
- {context:"irc",type:"update",actor:{type:"person",id:"hal8000@localhost",name:"hal8000"},target:{type:"room",id:"localhost/#kosmos",name:"#kosmos"},object:{type:"presence",role:"member"}},
88
- {context:"irc",type:"update",actor:{type:"person",id:"bkero@localhost",name:"bkero"},target:{type:"room",id:"localhost/#kosmos",name:"#kosmos"},object:{type:"presence",role:"member"}},
89
- {context:"irc",type:"update",actor:{type:"person",id:"bumi[m]@localhost",name:"bumi[m]"},target:{type:"room",id:"localhost/#kosmos",name:"#kosmos"},object:{type:"presence",role:"member"}},
90
- {context:"irc",type:"update",actor:{type:"person",id:"slvrbckt@localhost"},target:{type:"room",id:"localhost/#debian"},error:"You're not a channel operator"},
91
- {context:"irc",type:"update",actor:{type:"person",id:"slvrbckt@localhost"},target:{type:"room",id:"localhost/#kosmos-random"},error:"You're not a channel operator"},
92
- {context:'irc',type: "add", actor: { type: "person", id: "alice@localhost", name: "alice" }, target: { type: "person", id: "Kilroy@localhost", name: "Kilroy" }, object: { type: "relationship", relationship: "role", subject: { type: "presence", role: "owner" }, object: { type: "room", id: "localhost/#Finnish", name: "#Finnish" } } },
93
- {context:'irc',type: "add", actor: { type: "person", id: "bob@localhost", name: "bob" }, target: { type: "person", id: "alice@localhost", name: "alice" }, object: { type: "relationship", relationship: "role", subject: { type: "presence", role: "participant" }, object: { type: "room", id: "localhost/#room_a", name: "#room_a" } } },
94
- {context:'irc',type: "add", actor: { type: "person", id: "alice@localhost", name: "alice" }, target: { type: "person", id: "bob@localhost", name: "bob" }, object: { type: "relationship", relationship: "role", subject: { type: "presence", role: "admin" }, object: { type: "room", id: "localhost/#room_b", name: "#room_b" } } },
95
- {context:"irc",type:"update",target:{type:"room",id:"localhost/#freenode-sponsors"},actor:{type:"person",id:"hyper_slvrbckt@localhost"},error:"Cannot join channel (+i) - you must be invited"},
96
- {context:"irc",type:"update",target:{type:"service",id:"localhost"},error:"Nickname is already in use.",actor:{type:"person",id:"nkj@localhost",name:"nkj"}},
97
- {context:"irc",type:"update",target:{type:"service",id:"localhost"},error:"Nickname is already in use.",actor:{type:"person",id:"slvrbckt@localhost",name:"slvrbckt"}},
98
- {context:"irc",type:"send",actor:{type:"service",id:"localhost"},object:{type:"message",content:"This nickname is registered. Please choose a different nickname, or identify via /msg NickServ identify <password>."},target:{type:"person",id:"boo@localhost",name:"boo"}},
99
- {context:"irc",type:"send",actor:{type:"service",id:"localhost"},object:{type:"message",content:"You have 30 seconds to identify to your nickname before it is changed."},target:{type:"person",id:"boo@localhost",name:"boo"}},
100
- {context:"irc",type:"send",actor:{type:"service",id:"localhost"},object:{type:"message",content:"You failed to identify in time for the nickname boo"},target:{type:"person",id:"boo@localhost",name:"boo"}},
101
- {context:"irc",type:"update",target:{type:"service",id:"localhost"},error:"Nick/channel is temporarily unavailable",actor:{type:"person",id:"boo@localhost",name:"boo"}},
102
- {context:"irc",type:"update",actor:{type:"person",id:"sh-WjwOE@localhost",name:"sh-WjwOE"},target:{type:"person",id:"woooo@localhost",name:"woooo"},object:{type:"address"}},
103
- {context:"irc","type":"send","actor":{"type":"service","id":"localhost"},"object":{"type":"message","content":"Last login from: ~slvrbckt@localhost on Feb 09 18:45:19 2022 +0000."},"target":{"type":"person","id":"slvrbckt@localhost","name":"slvrbckt"}},
104
- {"context":"irc","type":"join","actor":{"type":"person","id":"myuser@localhost","name":"myuser"},"target":{"type":"room","id":"localhost/#kosmos-random","name":"#kosmos-random"}},
105
- {"context":"irc","type":"update","actor":{"type":"person","id":"myuser@localhost","name":"myuser"},"target":{"type":"room","id":"localhost/#kosmos-random","name":"#kosmos-random"},"object":{"type":"presence","role":"member"}},
106
- {"context":"irc","type":"update","actor":{"type":"person","id":"botka@localhost","name":"botka"},"target":{"type":"room","id":"localhost/#kosmos-random","name":"#kosmos-random"},"object":{"type":"presence","role":"owner"}},
107
- {"context":"irc","type":"update","actor":{"type":"person","id":"foouser@localhost","name":"foouser"},"target":{"type":"room","id":"localhost/#kosmos-random","name":"#kosmos-random"},"object":{"type":"presence","role":"member"}},
108
- ];
1
+ export const TestData = [
2
+ {
3
+ context: "irc",
4
+ type: "update",
5
+ actor: {
6
+ type: "service",
7
+ id: "localhost",
8
+ name: "localhost",
9
+ },
10
+ object: {
11
+ type: "topic",
12
+ content: "- -",
13
+ },
14
+ },
15
+ {
16
+ context: "irc",
17
+ type: "update",
18
+ actor: {
19
+ type: "service",
20
+ id: "localhost",
21
+ name: "localhost",
22
+ },
23
+ object: {
24
+ type: "topic",
25
+ content:
26
+ "- on the https://freenode.live website for our call for volunteers and call for - participation. " +
27
+ "If you are interested in sponsoring next year's event, please - send us an e-mail to sponsor@freenode.live " +
28
+ "- - Thank you for using freenode! - -",
29
+ },
30
+ },
31
+ {
32
+ context: "irc",
33
+ type: "update",
34
+ actor: {
35
+ type: "person",
36
+ id: "donkey2018@localhost",
37
+ name: "donkey2018",
38
+ },
39
+ target: { type: "person", id: "slvrbckt@localhost", name: "slvrbckt" },
40
+ object: { type: "address" },
41
+ },
42
+ {
43
+ context: "irc",
44
+ type: "update",
45
+ actor: { type: "person", id: "slvrbckt@localhost", name: "slvrbckt" },
46
+ target: {
47
+ type: "person",
48
+ id: "donkey2018@localhost",
49
+ name: "donkey2018",
50
+ },
51
+ object: { type: "address" },
52
+ },
53
+ {
54
+ context: "irc",
55
+ type: "leave",
56
+ actor: { type: "person", id: "slvrbckt@localhost", name: "slvrbckt" },
57
+ target: { type: "room", id: "localhost/#debian", name: "#debian" },
58
+ object: { type: "message", content: "user has left the channel" },
59
+ },
60
+ {
61
+ context: "irc",
62
+ type: "leave",
63
+ actor: { type: "person", id: "jarlaxl_@localhost", name: "jarlaxl_" },
64
+ target: { type: "service", id: "localhost" },
65
+ object: { type: "message", content: "user has quit" },
66
+ },
67
+ {
68
+ context: "irc",
69
+ type: "join",
70
+ actor: { id: "localhost", type: "service" },
71
+ error: "no such channel sdfsdfsdfsdfsdf",
72
+ target: { id: "sdfsdfsdfsdfsdf@localhost", type: "person" },
73
+ },
74
+ {
75
+ context: "irc",
76
+ type: "update",
77
+ actor: { type: "person", id: "lio17@localhost", name: "lio17" },
78
+ target: {
79
+ type: "room",
80
+ id: "localhost/#kosmos-random",
81
+ name: "#kosmos-random",
82
+ },
83
+ object: { type: "topic", content: "testing123" },
84
+ },
85
+ {
86
+ context: "irc",
87
+ type: "send",
88
+ actor: {
89
+ type: "person",
90
+ id: "hyper_slvrbckt@localhost",
91
+ name: "hyper_slvrbckt",
92
+ },
93
+ target: {
94
+ type: "room",
95
+ id: "localhost/#kosmos-random",
96
+ name: "#kosmos-random",
97
+ },
98
+ object: { type: "message", content: "-ssssssss" },
99
+ },
100
+ {
101
+ context: "irc",
102
+ type: "update",
103
+ actor: { type: "person", id: "lio17@localhost", name: "lio17" },
104
+ target: {
105
+ type: "room",
106
+ id: "localhost/#kosmos-random",
107
+ name: "#kosmos-random",
108
+ },
109
+ object: { type: "topic", content: "no longer boating in senegal" },
110
+ },
111
+ {
112
+ context: "irc",
113
+ type: "send",
114
+ actor: { type: "person", id: "raucao@localhost", name: "raucao" },
115
+ target: {
116
+ type: "room",
117
+ id: "localhost/#kosmos-random",
118
+ name: "#kosmos-random",
119
+ },
120
+ object: {
121
+ type: "me",
122
+ content: "is thinking about sending someone to get b33rz",
123
+ },
124
+ },
125
+ {
126
+ context: "irc",
127
+ type: "update",
128
+ object: { type: "presence", role: "member" },
129
+ actor: {
130
+ type: "person",
131
+ id: "hyper_slvrbckt@localhost",
132
+ name: "hyper_slvrbckt",
133
+ },
134
+ target: {
135
+ type: "room",
136
+ id: "localhost/#kosmos-random",
137
+ name: "#kosmos-random",
138
+ },
139
+ },
140
+ {
141
+ context: "irc",
142
+ type: "update",
143
+ object: { type: "presence", role: "member" },
144
+ actor: {
145
+ type: "person",
146
+ id: "hyper_slvrbckt@localhost",
147
+ name: "hyper_slvrbckt",
148
+ },
149
+ target: {
150
+ type: "room",
151
+ id: "localhost/#kosmos-random",
152
+ name: "#kosmos-random",
153
+ },
154
+ },
155
+ {
156
+ context: "irc",
157
+ type: "update",
158
+ object: { type: "presence", role: "member" },
159
+ actor: {
160
+ type: "person",
161
+ id: "hyper_slvrbckt@localhost",
162
+ name: "hyper_slvrbckt",
163
+ },
164
+ target: {
165
+ type: "room",
166
+ id: "localhost/#kosmos-random",
167
+ name: "#kosmos-random",
168
+ },
169
+ },
170
+ {
171
+ context: "irc",
172
+ type: "update",
173
+ object: { type: "presence", role: "member" },
174
+ actor: {
175
+ type: "person",
176
+ id: "hyper_slvrbckt@localhost",
177
+ name: "hyper_slvrbckt",
178
+ },
179
+ target: {
180
+ type: "room",
181
+ id: "localhost/#kosmos-random",
182
+ name: "#kosmos-random",
183
+ },
184
+ },
185
+ {
186
+ context: "irc",
187
+ type: "update",
188
+ actor: {
189
+ type: "person",
190
+ id: "hyper_slvrbckt@localhost",
191
+ name: "hyper_slvrbckt",
192
+ },
193
+ target: {
194
+ type: "room",
195
+ id: "localhost/#kosmos-random",
196
+ name: "#kosmos-random",
197
+ },
198
+ object: { type: "presence", role: "member" },
199
+ },
200
+ {
201
+ context: "irc",
202
+ type: "update",
203
+ actor: { type: "person", id: "gregkare@localhost", name: "gregkare" },
204
+ target: {
205
+ type: "room",
206
+ id: "localhost/#kosmos-random",
207
+ name: "#kosmos-random",
208
+ },
209
+ object: { type: "presence", role: "member" },
210
+ },
211
+ {
212
+ context: "irc",
213
+ type: "update",
214
+ actor: { type: "person", id: "slvrbckt@localhost", name: "slvrbckt" },
215
+ target: { type: "room", id: "localhost/#kosmos", name: "#kosmos" },
216
+ object: { type: "presence", role: "member" },
217
+ },
218
+ {
219
+ context: "irc",
220
+ type: "update",
221
+ actor: { type: "person", id: "lio17@localhost", name: "lio17" },
222
+ target: { type: "room", id: "localhost/#kosmos", name: "#kosmos" },
223
+ object: { type: "presence", role: "member" },
224
+ },
225
+ {
226
+ context: "irc",
227
+ type: "update",
228
+ actor: {
229
+ type: "person",
230
+ id: "M-silverbucket@localhost",
231
+ name: "M-silverbucket",
232
+ },
233
+ target: { type: "room", id: "localhost/#kosmos", name: "#kosmos" },
234
+ object: { type: "presence", role: "member" },
235
+ },
236
+ {
237
+ context: "irc",
238
+ type: "update",
239
+ actor: { type: "person", id: "botka1@localhost", name: "botka1" },
240
+ target: { type: "room", id: "localhost/#kosmos", name: "#kosmos" },
241
+ object: { type: "presence", role: "member" },
242
+ },
243
+ {
244
+ context: "irc",
245
+ type: "update",
246
+ actor: { type: "person", id: "derbumi@localhost", name: "derbumi" },
247
+ target: { type: "room", id: "localhost/#kosmos", name: "#kosmos" },
248
+ object: { type: "presence", role: "member" },
249
+ },
250
+ {
251
+ context: "irc",
252
+ type: "update",
253
+ actor: { type: "person", id: "ChanServ@localhost", name: "ChanServ" },
254
+ target: { type: "room", id: "localhost/#kosmos", name: "#kosmos" },
255
+ object: { type: "presence", role: "member" },
256
+ },
257
+ {
258
+ context: "irc",
259
+ type: "update",
260
+ actor: { type: "person", id: "gregkare@localhost", name: "gregkare" },
261
+ target: { type: "room", id: "localhost/#kosmos", name: "#kosmos" },
262
+ object: { type: "presence", role: "member" },
263
+ },
264
+ {
265
+ context: "irc",
266
+ type: "update",
267
+ actor: { type: "person", id: "hal8000@localhost", name: "hal8000" },
268
+ target: {
269
+ type: "room",
270
+ id: "localhost/#kosmos-random",
271
+ name: "#kosmos-random",
272
+ },
273
+ object: { type: "presence", role: "member" },
274
+ },
275
+ {
276
+ context: "irc",
277
+ type: "update",
278
+ actor: { type: "person", id: "bkero-@localhost", name: "bkero-" },
279
+ target: { type: "room", id: "localhost/#kosmos", name: "#kosmos" },
280
+ object: { type: "presence", role: "member" },
281
+ },
282
+ {
283
+ context: "irc",
284
+ type: "update",
285
+ actor: { type: "person", id: "galfert@localhost", name: "galfert" },
286
+ target: { type: "room", id: "localhost/#kosmos", name: "#kosmos" },
287
+ object: { type: "presence", role: "member" },
288
+ },
289
+ {
290
+ context: "irc",
291
+ type: "update",
292
+ actor: { type: "person", id: "raucao@localhost", name: "raucao" },
293
+ target: { type: "room", id: "localhost/#kosmos", name: "#kosmos" },
294
+ object: { type: "presence", role: "member" },
295
+ },
296
+ {
297
+ context: "irc",
298
+ type: "update",
299
+ actor: { type: "person", id: "hal8000@localhost", name: "hal8000" },
300
+ target: { type: "room", id: "localhost/#kosmos", name: "#kosmos" },
301
+ object: { type: "presence", role: "member" },
302
+ },
303
+ {
304
+ context: "irc",
305
+ type: "update",
306
+ actor: { type: "person", id: "bkero@localhost", name: "bkero" },
307
+ target: { type: "room", id: "localhost/#kosmos", name: "#kosmos" },
308
+ object: { type: "presence", role: "member" },
309
+ },
310
+ {
311
+ context: "irc",
312
+ type: "update",
313
+ actor: { type: "person", id: "bumi[m]@localhost", name: "bumi[m]" },
314
+ target: { type: "room", id: "localhost/#kosmos", name: "#kosmos" },
315
+ object: { type: "presence", role: "member" },
316
+ },
317
+ {
318
+ context: "irc",
319
+ type: "update",
320
+ actor: { type: "person", id: "slvrbckt@localhost" },
321
+ target: { type: "room", id: "localhost/#debian" },
322
+ error: "You're not a channel operator",
323
+ },
324
+ {
325
+ context: "irc",
326
+ type: "update",
327
+ actor: { type: "person", id: "slvrbckt@localhost" },
328
+ target: { type: "room", id: "localhost/#kosmos-random" },
329
+ error: "You're not a channel operator",
330
+ },
331
+ {
332
+ context: "irc",
333
+ type: "add",
334
+ actor: { type: "person", id: "alice@localhost", name: "alice" },
335
+ target: { type: "person", id: "Kilroy@localhost", name: "Kilroy" },
336
+ object: {
337
+ type: "relationship",
338
+ relationship: "role",
339
+ subject: { type: "presence", role: "owner" },
340
+ object: {
341
+ type: "room",
342
+ id: "localhost/#Finnish",
343
+ name: "#Finnish",
344
+ },
345
+ },
346
+ },
347
+ {
348
+ context: "irc",
349
+ type: "add",
350
+ actor: { type: "person", id: "bob@localhost", name: "bob" },
351
+ target: { type: "person", id: "alice@localhost", name: "alice" },
352
+ object: {
353
+ type: "relationship",
354
+ relationship: "role",
355
+ subject: { type: "presence", role: "participant" },
356
+ object: { type: "room", id: "localhost/#room_a", name: "#room_a" },
357
+ },
358
+ },
359
+ {
360
+ context: "irc",
361
+ type: "add",
362
+ actor: { type: "person", id: "alice@localhost", name: "alice" },
363
+ target: { type: "person", id: "bob@localhost", name: "bob" },
364
+ object: {
365
+ type: "relationship",
366
+ relationship: "role",
367
+ subject: { type: "presence", role: "admin" },
368
+ object: { type: "room", id: "localhost/#room_b", name: "#room_b" },
369
+ },
370
+ },
371
+ {
372
+ context: "irc",
373
+ type: "update",
374
+ target: { type: "room", id: "localhost/#freenode-sponsors" },
375
+ actor: { type: "person", id: "hyper_slvrbckt@localhost" },
376
+ error: "Cannot join channel (+i) - you must be invited",
377
+ },
378
+ {
379
+ context: "irc",
380
+ type: "update",
381
+ target: { type: "service", id: "localhost" },
382
+ error: "Nickname is already in use.",
383
+ actor: { type: "person", id: "nkj@localhost", name: "nkj" },
384
+ },
385
+ {
386
+ context: "irc",
387
+ type: "update",
388
+ target: { type: "service", id: "localhost" },
389
+ error: "Nickname is already in use.",
390
+ actor: { type: "person", id: "slvrbckt@localhost", name: "slvrbckt" },
391
+ },
392
+ {
393
+ context: "irc",
394
+ type: "send",
395
+ actor: { type: "service", id: "localhost" },
396
+ object: {
397
+ type: "message",
398
+ content:
399
+ "This nickname is registered. Please choose a different nickname, or identify via /msg NickServ identify <password>.",
400
+ },
401
+ target: { type: "person", id: "boo@localhost", name: "boo" },
402
+ },
403
+ {
404
+ context: "irc",
405
+ type: "send",
406
+ actor: { type: "service", id: "localhost" },
407
+ object: {
408
+ type: "message",
409
+ content:
410
+ "You have 30 seconds to identify to your nickname before it is changed.",
411
+ },
412
+ target: { type: "person", id: "boo@localhost", name: "boo" },
413
+ },
414
+ {
415
+ context: "irc",
416
+ type: "send",
417
+ actor: { type: "service", id: "localhost" },
418
+ object: {
419
+ type: "message",
420
+ content: "You failed to identify in time for the nickname boo",
421
+ },
422
+ target: { type: "person", id: "boo@localhost", name: "boo" },
423
+ },
424
+ {
425
+ context: "irc",
426
+ type: "update",
427
+ target: { type: "service", id: "localhost" },
428
+ error: "Nick/channel is temporarily unavailable",
429
+ actor: { type: "person", id: "boo@localhost", name: "boo" },
430
+ },
431
+ {
432
+ context: "irc",
433
+ type: "update",
434
+ actor: { type: "person", id: "sh-WjwOE@localhost", name: "sh-WjwOE" },
435
+ target: { type: "person", id: "woooo@localhost", name: "woooo" },
436
+ object: { type: "address" },
437
+ },
438
+ {
439
+ context: "irc",
440
+ type: "send",
441
+ actor: { type: "service", id: "localhost" },
442
+ object: {
443
+ type: "message",
444
+ content:
445
+ "Last login from: ~slvrbckt@localhost on Feb 09 18:45:19 2022 +0000.",
446
+ },
447
+ target: { type: "person", id: "slvrbckt@localhost", name: "slvrbckt" },
448
+ },
449
+ {
450
+ context: "irc",
451
+ type: "join",
452
+ actor: { type: "person", id: "myuser@localhost", name: "myuser" },
453
+ target: {
454
+ type: "room",
455
+ id: "localhost/#kosmos-random",
456
+ name: "#kosmos-random",
457
+ },
458
+ },
459
+ {
460
+ context: "irc",
461
+ type: "update",
462
+ actor: { type: "person", id: "myuser@localhost", name: "myuser" },
463
+ target: {
464
+ type: "room",
465
+ id: "localhost/#kosmos-random",
466
+ name: "#kosmos-random",
467
+ },
468
+ object: { type: "presence", role: "member" },
469
+ },
470
+ {
471
+ context: "irc",
472
+ type: "update",
473
+ actor: { type: "person", id: "botka@localhost", name: "botka" },
474
+ target: {
475
+ type: "room",
476
+ id: "localhost/#kosmos-random",
477
+ name: "#kosmos-random",
478
+ },
479
+ object: { type: "presence", role: "owner" },
480
+ },
481
+ {
482
+ context: "irc",
483
+ type: "update",
484
+ actor: { type: "person", id: "foouser@localhost", name: "foouser" },
485
+ target: {
486
+ type: "room",
487
+ id: "localhost/#kosmos-random",
488
+ name: "#kosmos-random",
489
+ },
490
+ object: { type: "presence", role: "member" },
491
+ },
492
+ ];