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

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 CHANGED
@@ -8,7 +8,7 @@ This platform provides IRC client functionality, allowing web applications to co
8
8
  IRC servers, join channels, send messages, and handle IRC events through ActivityStreams
9
9
  messages.
10
10
 
11
- ## Implemented Verbs (`@type`)
11
+ ## Implemented Verbs (`type`)
12
12
 
13
13
  * **send** - Send messages to channels or users
14
14
  * **join** - Join IRC channels
@@ -22,16 +22,22 @@ messages.
22
22
 
23
23
  ```json
24
24
  {
25
- "@type": "send",
26
- "context": "irc",
25
+ "type": "send",
26
+ "@context": [
27
+ "https://www.w3.org/ns/activitystreams",
28
+ "https://sockethub.org/ns/context/v1.jsonld",
29
+ "https://sockethub.org/ns/context/platform/irc/v1.jsonld"
30
+ ],
27
31
  "actor": {
28
- "@id": "mynick@irc.libera.chat"
32
+ "id": "mynick@irc.libera.chat",
33
+ "type": "person"
29
34
  },
30
35
  "target": {
31
- "@id": "#general@irc.libera.chat"
36
+ "id": "#general@irc.libera.chat",
37
+ "type": "room"
32
38
  },
33
39
  "object": {
34
- "@type": "Note",
40
+ "type": "message",
35
41
  "content": "Hello IRC channel!"
36
42
  }
37
43
  }
@@ -41,13 +47,19 @@ messages.
41
47
 
42
48
  ```json
43
49
  {
44
- "@type": "join",
45
- "context": "irc",
50
+ "type": "join",
51
+ "@context": [
52
+ "https://www.w3.org/ns/activitystreams",
53
+ "https://sockethub.org/ns/context/v1.jsonld",
54
+ "https://sockethub.org/ns/context/platform/irc/v1.jsonld"
55
+ ],
46
56
  "actor": {
47
- "@id": "mynick@irc.libera.chat"
57
+ "id": "mynick@irc.libera.chat",
58
+ "type": "person"
48
59
  },
49
60
  "target": {
50
- "@id": "#general@irc.libera.chat"
61
+ "id": "#general@irc.libera.chat",
62
+ "type": "room"
51
63
  }
52
64
  }
53
65
  ```
@@ -56,16 +68,22 @@ messages.
56
68
 
57
69
  ```json
58
70
  {
59
- "@type": "send",
60
- "context": "irc",
71
+ "type": "send",
72
+ "@context": [
73
+ "https://www.w3.org/ns/activitystreams",
74
+ "https://sockethub.org/ns/context/v1.jsonld",
75
+ "https://sockethub.org/ns/context/platform/irc/v1.jsonld"
76
+ ],
61
77
  "actor": {
62
- "@id": "mynick@irc.libera.chat"
78
+ "id": "mynick@irc.libera.chat",
79
+ "type": "person"
63
80
  },
64
81
  "target": {
65
- "@id": "friend@irc.libera.chat"
82
+ "id": "friend@irc.libera.chat",
83
+ "type": "person"
66
84
  },
67
85
  "object": {
68
- "@type": "Note",
86
+ "type": "message",
69
87
  "content": "Hello friend!"
70
88
  }
71
89
  }