@sockethub/schemas 3.0.0-beta.2 → 3.0.0-beta.4
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/dist/contexts/platform/whatsapp/v1.jsonld +8 -0
- package/dist/index.js +4 -3
- package/dist/index.js.map +3 -3
- package/dist/maps/context-map.json +5 -2
- package/dist/schemas/json/activity-stream.json +1 -1
- package/dist/schemas/json/platform.json +1 -1
- package/dist/schemas/json/service-descriptor.json +1 -1
- package/dist/schemas/json/sockethub-config.json +2 -1
- package/dist/schemas/platform/whatsapp/v1/credentials.schema.json +31 -0
- package/dist/schemas/platform/whatsapp/v1/messages.schema.json +68 -0
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"schemaVersion": "3.0.0-beta.
|
|
3
|
-
"generatedAt": "2026-11-
|
|
2
|
+
"schemaVersion": "3.0.0-beta.4",
|
|
3
|
+
"generatedAt": "2026-11-08T23:22:13.053Z",
|
|
4
4
|
"contextToPlatformId": {
|
|
5
5
|
"https://sockethub.org/ns/context/platform/caldav/v1.jsonld": "caldav",
|
|
6
6
|
"https://sockethub.org/ns/context/platform/carddav/v1.jsonld": "carddav",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"https://sockethub.org/ns/context/platform/messenger/v1.jsonld": "messenger",
|
|
14
14
|
"https://sockethub.org/ns/context/platform/metadata/v1.jsonld": "metadata",
|
|
15
15
|
"https://sockethub.org/ns/context/platform/sockethub:internal/v1.jsonld": "sockethub:internal",
|
|
16
|
+
"https://sockethub.org/ns/context/platform/whatsapp/v1.jsonld": "whatsapp",
|
|
16
17
|
"https://sockethub.org/ns/context/platform/xmpp/v1.jsonld": "xmpp"
|
|
17
18
|
},
|
|
18
19
|
"contextToSchemaId": {
|
|
@@ -27,6 +28,7 @@
|
|
|
27
28
|
"https://sockethub.org/ns/context/platform/messenger/v1.jsonld": "https://sockethub.org/schemas/as2/platform/messenger/v1/messages.schema.json",
|
|
28
29
|
"https://sockethub.org/ns/context/platform/metadata/v1.jsonld": "https://sockethub.org/schemas/as2/platform/metadata/v1/messages.schema.json",
|
|
29
30
|
"https://sockethub.org/ns/context/platform/sockethub:internal/v1.jsonld": "https://sockethub.org/schemas/as2/platform/sockethub%3Ainternal/v1/messages.schema.json",
|
|
31
|
+
"https://sockethub.org/ns/context/platform/whatsapp/v1.jsonld": "https://sockethub.org/schemas/as2/platform/whatsapp/v1/messages.schema.json",
|
|
30
32
|
"https://sockethub.org/ns/context/platform/xmpp/v1.jsonld": "https://sockethub.org/schemas/as2/platform/xmpp/v1/messages.schema.json"
|
|
31
33
|
},
|
|
32
34
|
"contextToCredentialsSchemaId": {
|
|
@@ -41,6 +43,7 @@
|
|
|
41
43
|
"https://sockethub.org/ns/context/platform/messenger/v1.jsonld": "https://sockethub.org/schemas/as2/platform/messenger/v1/credentials.schema.json",
|
|
42
44
|
"https://sockethub.org/ns/context/platform/metadata/v1.jsonld": "https://sockethub.org/schemas/as2/platform/metadata/v1/credentials.schema.json",
|
|
43
45
|
"https://sockethub.org/ns/context/platform/sockethub:internal/v1.jsonld": "https://sockethub.org/schemas/as2/platform/sockethub%3Ainternal/v1/credentials.schema.json",
|
|
46
|
+
"https://sockethub.org/ns/context/platform/whatsapp/v1.jsonld": "https://sockethub.org/schemas/as2/platform/whatsapp/v1/credentials.schema.json",
|
|
44
47
|
"https://sockethub.org/ns/context/platform/xmpp/v1.jsonld": "https://sockethub.org/schemas/as2/platform/xmpp/v1/credentials.schema.json"
|
|
45
48
|
},
|
|
46
49
|
"constants": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://sockethub.org/schemas/3.0.0-beta.
|
|
2
|
+
"$id": "https://sockethub.org/schemas/3.0.0-beta.4/sockethub-config.json",
|
|
3
3
|
"description": "Sockethub Config Schema",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"required": [
|
|
@@ -116,6 +116,7 @@
|
|
|
116
116
|
"@sockethub/platform-metadata",
|
|
117
117
|
"@sockethub/platform-messenger",
|
|
118
118
|
"@sockethub/platform-instagram",
|
|
119
|
+
"@sockethub/platform-whatsapp",
|
|
119
120
|
"@sockethub/platform-xmpp"
|
|
120
121
|
]
|
|
121
122
|
},
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"required": [
|
|
3
|
+
"object"
|
|
4
|
+
],
|
|
5
|
+
"properties": {
|
|
6
|
+
"object": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"required": [
|
|
9
|
+
"type",
|
|
10
|
+
"token",
|
|
11
|
+
"apiVersion"
|
|
12
|
+
],
|
|
13
|
+
"additionalProperties": false,
|
|
14
|
+
"properties": {
|
|
15
|
+
"type": {
|
|
16
|
+
"const": "credentials"
|
|
17
|
+
},
|
|
18
|
+
"token": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"minLength": 1,
|
|
21
|
+
"maxLength": 8192,
|
|
22
|
+
"pattern": "^[^\\r\\n]+$"
|
|
23
|
+
},
|
|
24
|
+
"apiVersion": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"pattern": "^v[0-9]{1,3}\\.[0-9]{1,2}$"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"required": [
|
|
3
|
+
"type",
|
|
4
|
+
"actor",
|
|
5
|
+
"target",
|
|
6
|
+
"object"
|
|
7
|
+
],
|
|
8
|
+
"properties": {
|
|
9
|
+
"type": {
|
|
10
|
+
"enum": [
|
|
11
|
+
"send"
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
"actor": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"required": [
|
|
17
|
+
"id",
|
|
18
|
+
"type"
|
|
19
|
+
],
|
|
20
|
+
"additionalProperties": false,
|
|
21
|
+
"properties": {
|
|
22
|
+
"id": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"pattern": "^[0-9]+$",
|
|
25
|
+
"maxLength": 128
|
|
26
|
+
},
|
|
27
|
+
"type": {
|
|
28
|
+
"const": "person"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"target": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"required": [
|
|
35
|
+
"id",
|
|
36
|
+
"type"
|
|
37
|
+
],
|
|
38
|
+
"additionalProperties": false,
|
|
39
|
+
"properties": {
|
|
40
|
+
"id": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"pattern": "^\\+?[1-9][0-9]{6,14}$"
|
|
43
|
+
},
|
|
44
|
+
"type": {
|
|
45
|
+
"const": "person"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"object": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"required": [
|
|
52
|
+
"type",
|
|
53
|
+
"content"
|
|
54
|
+
],
|
|
55
|
+
"additionalProperties": false,
|
|
56
|
+
"properties": {
|
|
57
|
+
"type": {
|
|
58
|
+
"const": "message"
|
|
59
|
+
},
|
|
60
|
+
"content": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"minLength": 1,
|
|
63
|
+
"maxLength": 4096
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sockethub/schemas",
|
|
3
3
|
"description": "JSON schema files for validating Sockethub Activity Streams",
|
|
4
|
-
"version": "3.0.0-beta.
|
|
4
|
+
"version": "3.0.0-beta.4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
7
7
|
"author": "Nick Jennings <nick@silverbucket.net>",
|
|
@@ -71,6 +71,6 @@
|
|
|
71
71
|
"ajv-formats": "^2.1.1",
|
|
72
72
|
"ajv-formats-draft2019": "^1.6.1"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "2839403a8add67c25f39e164d4ba24ddb8a7ed3e",
|
|
75
75
|
"types": "./dist/index.d.ts"
|
|
76
76
|
}
|