@fedify/vocab-runtime 2.1.0-dev.565 → 2.1.0-dev.599

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.
Files changed (71) hide show
  1. package/deno.json +4 -3
  2. package/dist/chunk-CUT6urMc.cjs +30 -0
  3. package/dist/jsonld.cjs +8 -0
  4. package/dist/jsonld.d.cts +6 -0
  5. package/dist/jsonld.d.ts +6 -0
  6. package/dist/jsonld.js +7 -0
  7. package/dist/mod.cjs +4485 -4329
  8. package/dist/mod.d.cts +95 -4
  9. package/dist/mod.d.ts +95 -4
  10. package/dist/mod.js +4474 -4299
  11. package/dist/tests/decimal.test.cjs +154 -0
  12. package/dist/tests/decimal.test.d.cts +1 -0
  13. package/dist/tests/decimal.test.d.ts +1 -0
  14. package/dist/tests/decimal.test.js +153 -0
  15. package/dist/tests/docloader-B7jXFZpf.cjs +4562 -0
  16. package/dist/tests/docloader-DMCOWvVB.js +4550 -0
  17. package/dist/tests/docloader.test.cjs +7 -4491
  18. package/dist/tests/docloader.test.js +4 -4488
  19. package/dist/tests/internal/multicodec.test.cjs +77 -0
  20. package/dist/tests/internal/multicodec.test.d.cts +1 -0
  21. package/dist/tests/internal/multicodec.test.d.ts +1 -0
  22. package/dist/tests/internal/multicodec.test.js +76 -0
  23. package/dist/tests/key-ByCmSI2y.js +183 -0
  24. package/dist/tests/key-CCPn6TEY.cjs +231 -0
  25. package/dist/tests/key.test.cjs +36 -212
  26. package/dist/tests/key.test.js +9 -185
  27. package/dist/tests/langstr-BsVE3s9u.js +30 -0
  28. package/dist/tests/langstr-EPh86hXK.cjs +36 -0
  29. package/dist/tests/langstr.test.cjs +5 -33
  30. package/dist/tests/langstr.test.js +1 -29
  31. package/dist/tests/link.test.cjs +1 -1
  32. package/dist/tests/link.test.js +1 -1
  33. package/dist/tests/multibase/multibase.test.cjs +1 -1
  34. package/dist/tests/multibase/multibase.test.js +1 -1
  35. package/dist/tests/multicodec--6hQ74zI.cjs +59 -0
  36. package/dist/tests/multicodec-Dq3IiOV4.js +41 -0
  37. package/dist/tests/{request-3ywvRFy1.js → request-BQtyeAfw.js} +6 -3
  38. package/dist/tests/{request-Dhnqve0g.cjs → request-CW9KOmQu.cjs} +6 -3
  39. package/dist/tests/request.test.cjs +1 -1
  40. package/dist/tests/request.test.js +1 -1
  41. package/dist/tests/url.test.cjs +1 -1
  42. package/dist/tests/url.test.js +1 -1
  43. package/package.json +12 -2
  44. package/src/contexts/activitystreams.json +379 -0
  45. package/src/contexts/did-v1.json +57 -0
  46. package/src/contexts/fep-5711.json +36 -0
  47. package/src/contexts/gotosocial.json +86 -0
  48. package/src/contexts/identity-v1.json +152 -0
  49. package/src/contexts/joinmastodon.json +28 -0
  50. package/src/contexts/schemaorg.json +8845 -0
  51. package/src/contexts/security-data-integrity-v1.json +78 -0
  52. package/src/contexts/security-data-integrity-v2.json +81 -0
  53. package/src/contexts/security-multikey-v1.json +35 -0
  54. package/src/contexts/security-v1.json +74 -0
  55. package/src/contexts/webfinger.json +10 -0
  56. package/src/contexts.ts +33 -4392
  57. package/src/decimal.test.ts +90 -0
  58. package/src/decimal.ts +112 -0
  59. package/src/internal/multicodec.test.ts +68 -0
  60. package/src/internal/multicodec.ts +53 -0
  61. package/src/jsonld.ts +4 -0
  62. package/src/key.test.ts +22 -1
  63. package/src/key.ts +9 -8
  64. package/src/mod.ts +6 -0
  65. package/tsdown.config.ts +1 -1
  66. /package/dist/tests/{link-Ck2yj4dH.js → link-C3q2TC2G.js} +0 -0
  67. /package/dist/tests/{link-CdFPEo9O.cjs → link-DYNFAdNu.cjs} +0 -0
  68. /package/dist/tests/{multibase-DStmqni9.js → multibase-B4g8pz6F.js} +0 -0
  69. /package/dist/tests/{multibase-BFbBiaPE.cjs → multibase-o_ovPHYJ.cjs} +0 -0
  70. /package/dist/tests/{url-fW_DHbih.js → url-CWEP9Zs9.js} +0 -0
  71. /package/dist/tests/{url-C5Vs9nYh.cjs → url-DIjOdK8Q.cjs} +0 -0
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require('../chunk-DWy1uDak.cjs');
2
- const require_multibase = require('../multibase-BFbBiaPE.cjs');
2
+ const require_multibase = require('../multibase-o_ovPHYJ.cjs');
3
3
  const node_assert = require_chunk.__toESM(require("node:assert"));
4
4
  const node_test = require_chunk.__toESM(require("node:test"));
5
5
 
@@ -1,4 +1,4 @@
1
- import { codes, decodeMultibase, decodeText, encodeMultibase, encodeText, names } from "../multibase-DStmqni9.js";
1
+ import { codes, decodeMultibase, decodeText, encodeMultibase, encodeText, names } from "../multibase-B4g8pz6F.js";
2
2
  import { deepStrictEqual } from "node:assert";
3
3
  import { test } from "node:test";
4
4
 
@@ -0,0 +1,59 @@
1
+
2
+ //#region src/internal/multicodec.ts
3
+ const INVALID_MULTICODEC_PREFIX = "Invalid multicodec prefix.";
4
+ function getMulticodecPrefix(data) {
5
+ if (data.length < 1) throw new TypeError(INVALID_MULTICODEC_PREFIX);
6
+ let code = 0;
7
+ let shift = 0;
8
+ for (let i = 0; i < data.length; i++) {
9
+ const byte = data[i];
10
+ code += (byte & 127) * 2 ** shift;
11
+ if (code > Number.MAX_SAFE_INTEGER) throw new TypeError(INVALID_MULTICODEC_PREFIX);
12
+ if ((byte & 128) === 0) return {
13
+ code,
14
+ prefixLength: i + 1
15
+ };
16
+ shift += 7;
17
+ if (shift >= 53) throw new TypeError(INVALID_MULTICODEC_PREFIX);
18
+ }
19
+ throw new TypeError(INVALID_MULTICODEC_PREFIX);
20
+ }
21
+ function removeMulticodecPrefix(data) {
22
+ const { prefixLength } = getMulticodecPrefix(data);
23
+ return data.slice(prefixLength);
24
+ }
25
+ function addMulticodecPrefix(code, payload) {
26
+ if (!Number.isSafeInteger(code) || code < 0) throw new TypeError("Invalid multicodec code.");
27
+ const prefix = [];
28
+ let value = code;
29
+ do {
30
+ let byte = value & 127;
31
+ value = Math.floor(value / 128);
32
+ if (value > 0) byte |= 128;
33
+ prefix.push(byte);
34
+ } while (value > 0);
35
+ const prefixed = new Uint8Array(prefix.length + payload.length);
36
+ prefixed.set(prefix);
37
+ prefixed.set(payload, prefix.length);
38
+ return prefixed;
39
+ }
40
+
41
+ //#endregion
42
+ Object.defineProperty(exports, 'addMulticodecPrefix', {
43
+ enumerable: true,
44
+ get: function () {
45
+ return addMulticodecPrefix;
46
+ }
47
+ });
48
+ Object.defineProperty(exports, 'getMulticodecPrefix', {
49
+ enumerable: true,
50
+ get: function () {
51
+ return getMulticodecPrefix;
52
+ }
53
+ });
54
+ Object.defineProperty(exports, 'removeMulticodecPrefix', {
55
+ enumerable: true,
56
+ get: function () {
57
+ return removeMulticodecPrefix;
58
+ }
59
+ });
@@ -0,0 +1,41 @@
1
+ //#region src/internal/multicodec.ts
2
+ const INVALID_MULTICODEC_PREFIX = "Invalid multicodec prefix.";
3
+ function getMulticodecPrefix(data) {
4
+ if (data.length < 1) throw new TypeError(INVALID_MULTICODEC_PREFIX);
5
+ let code = 0;
6
+ let shift = 0;
7
+ for (let i = 0; i < data.length; i++) {
8
+ const byte = data[i];
9
+ code += (byte & 127) * 2 ** shift;
10
+ if (code > Number.MAX_SAFE_INTEGER) throw new TypeError(INVALID_MULTICODEC_PREFIX);
11
+ if ((byte & 128) === 0) return {
12
+ code,
13
+ prefixLength: i + 1
14
+ };
15
+ shift += 7;
16
+ if (shift >= 53) throw new TypeError(INVALID_MULTICODEC_PREFIX);
17
+ }
18
+ throw new TypeError(INVALID_MULTICODEC_PREFIX);
19
+ }
20
+ function removeMulticodecPrefix(data) {
21
+ const { prefixLength } = getMulticodecPrefix(data);
22
+ return data.slice(prefixLength);
23
+ }
24
+ function addMulticodecPrefix(code, payload) {
25
+ if (!Number.isSafeInteger(code) || code < 0) throw new TypeError("Invalid multicodec code.");
26
+ const prefix = [];
27
+ let value = code;
28
+ do {
29
+ let byte = value & 127;
30
+ value = Math.floor(value / 128);
31
+ if (value > 0) byte |= 128;
32
+ prefix.push(byte);
33
+ } while (value > 0);
34
+ const prefixed = new Uint8Array(prefix.length + payload.length);
35
+ prefixed.set(prefix);
36
+ prefixed.set(payload, prefix.length);
37
+ return prefixed;
38
+ }
39
+
40
+ //#endregion
41
+ export { addMulticodecPrefix, getMulticodecPrefix, removeMulticodecPrefix };
@@ -2,9 +2,12 @@ import process from "node:process";
2
2
 
3
3
  //#region deno.json
4
4
  var name = "@fedify/vocab-runtime";
5
- var version = "2.1.0-dev.565+b4d238a9";
5
+ var version = "2.1.0-dev.599+1ff26884";
6
6
  var license = "MIT";
7
- var exports = { ".": "./src/mod.ts" };
7
+ var exports = {
8
+ ".": "./src/mod.ts",
9
+ "./jsonld": "./src/jsonld.ts"
10
+ };
8
11
  var description = "Runtime library for @fedify/vocab";
9
12
  var author = {
10
13
  "name": "Hong Minhee",
@@ -16,7 +19,7 @@ var imports = {
16
19
  "asn1js": "npm:asn1js@^3.0.6",
17
20
  "byte-encodings": "npm:byte-encodings@^1.0.11",
18
21
  "fetch-mock": "npm:fetch-mock@^12.5.4",
19
- "multicodec": "npm:multicodec@^3.2.1",
22
+ "jsonld": "npm:jsonld@^9.0.0",
20
23
  "pkijs": "npm:pkijs@^3.2.5"
21
24
  };
22
25
  var exclude = ["dist", "node_modules"];
@@ -3,9 +3,12 @@ const node_process = require_chunk.__toESM(require("node:process"));
3
3
 
4
4
  //#region deno.json
5
5
  var name = "@fedify/vocab-runtime";
6
- var version = "2.1.0-dev.565+b4d238a9";
6
+ var version = "2.1.0-dev.599+1ff26884";
7
7
  var license = "MIT";
8
- var exports$1 = { ".": "./src/mod.ts" };
8
+ var exports$1 = {
9
+ ".": "./src/mod.ts",
10
+ "./jsonld": "./src/jsonld.ts"
11
+ };
9
12
  var description = "Runtime library for @fedify/vocab";
10
13
  var author = {
11
14
  "name": "Hong Minhee",
@@ -17,7 +20,7 @@ var imports = {
17
20
  "asn1js": "npm:asn1js@^3.0.6",
18
21
  "byte-encodings": "npm:byte-encodings@^1.0.11",
19
22
  "fetch-mock": "npm:fetch-mock@^12.5.4",
20
- "multicodec": "npm:multicodec@^3.2.1",
23
+ "jsonld": "npm:jsonld@^9.0.0",
21
24
  "pkijs": "npm:pkijs@^3.2.5"
22
25
  };
23
26
  var exclude = ["dist", "node_modules"];
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require('./chunk-DWy1uDak.cjs');
2
- const require_request = require('./request-Dhnqve0g.cjs');
2
+ const require_request = require('./request-CW9KOmQu.cjs');
3
3
  const node_assert = require_chunk.__toESM(require("node:assert"));
4
4
  const node_test = require_chunk.__toESM(require("node:test"));
5
5
  const node_process = require_chunk.__toESM(require("node:process"));
@@ -1,4 +1,4 @@
1
- import { deno_default, getUserAgent } from "./request-3ywvRFy1.js";
1
+ import { deno_default, getUserAgent } from "./request-BQtyeAfw.js";
2
2
  import { deepStrictEqual } from "node:assert";
3
3
  import { test } from "node:test";
4
4
  import process from "node:process";
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require('./chunk-DWy1uDak.cjs');
2
- const require_url = require('./url-C5Vs9nYh.cjs');
2
+ const require_url = require('./url-DIjOdK8Q.cjs');
3
3
  const node_assert = require_chunk.__toESM(require("node:assert"));
4
4
  const node_test = require_chunk.__toESM(require("node:test"));
5
5
 
@@ -1,4 +1,4 @@
1
- import { UrlError, expandIPv6Address, isValidPublicIPv4Address, isValidPublicIPv6Address, validatePublicUrl } from "./url-fW_DHbih.js";
1
+ import { UrlError, expandIPv6Address, isValidPublicIPv4Address, isValidPublicIPv6Address, validatePublicUrl } from "./url-CWEP9Zs9.js";
2
2
  import { deepStrictEqual, ok, rejects } from "node:assert";
3
3
  import { test } from "node:test";
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/vocab-runtime",
3
- "version": "2.1.0-dev.565+b4d238a9",
3
+ "version": "2.1.0-dev.599+1ff26884",
4
4
  "homepage": "https://fedify.dev/",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,6 +35,16 @@
35
35
  "require": "./dist/mod.cjs",
36
36
  "default": "./dist/mod.js"
37
37
  },
38
+ "./jsonld": {
39
+ "types": {
40
+ "import": "./dist/jsonld.d.ts",
41
+ "require": "./dist/jsonld.d.cts",
42
+ "default": "./dist/jsonld.d.ts"
43
+ },
44
+ "import": "./dist/jsonld.js",
45
+ "require": "./dist/jsonld.cjs",
46
+ "default": "./dist/jsonld.js"
47
+ },
38
48
  "./package.json": "./package.json"
39
49
  },
40
50
  "keywords": [
@@ -60,7 +70,7 @@
60
70
  "@opentelemetry/api": "^1.9.0",
61
71
  "asn1js": "^3.0.6",
62
72
  "byte-encodings": "^1.0.11",
63
- "multicodec": "^3.2.1",
73
+ "jsonld": "^9.0.0",
64
74
  "pkijs": "^3.3.3"
65
75
  },
66
76
  "scripts": {
@@ -0,0 +1,379 @@
1
+ {
2
+ "@context": {
3
+ "@vocab": "_:",
4
+ "xsd": "http://www.w3.org/2001/XMLSchema#",
5
+ "as": "https://www.w3.org/ns/activitystreams#",
6
+ "ldp": "http://www.w3.org/ns/ldp#",
7
+ "vcard": "http://www.w3.org/2006/vcard/ns#",
8
+ "id": "@id",
9
+ "type": "@type",
10
+ "Accept": "as:Accept",
11
+ "Activity": "as:Activity",
12
+ "IntransitiveActivity": "as:IntransitiveActivity",
13
+ "Add": "as:Add",
14
+ "Announce": "as:Announce",
15
+ "Application": "as:Application",
16
+ "Arrive": "as:Arrive",
17
+ "Article": "as:Article",
18
+ "Audio": "as:Audio",
19
+ "Block": "as:Block",
20
+ "Collection": "as:Collection",
21
+ "CollectionPage": "as:CollectionPage",
22
+ "Relationship": "as:Relationship",
23
+ "Create": "as:Create",
24
+ "Delete": "as:Delete",
25
+ "Dislike": "as:Dislike",
26
+ "Document": "as:Document",
27
+ "Event": "as:Event",
28
+ "Follow": "as:Follow",
29
+ "Flag": "as:Flag",
30
+ "Group": "as:Group",
31
+ "Ignore": "as:Ignore",
32
+ "Image": "as:Image",
33
+ "Invite": "as:Invite",
34
+ "Join": "as:Join",
35
+ "Leave": "as:Leave",
36
+ "Like": "as:Like",
37
+ "Link": "as:Link",
38
+ "Mention": "as:Mention",
39
+ "Note": "as:Note",
40
+ "Object": "as:Object",
41
+ "Offer": "as:Offer",
42
+ "OrderedCollection": "as:OrderedCollection",
43
+ "OrderedCollectionPage": "as:OrderedCollectionPage",
44
+ "Organization": "as:Organization",
45
+ "Page": "as:Page",
46
+ "Person": "as:Person",
47
+ "Place": "as:Place",
48
+ "Profile": "as:Profile",
49
+ "Question": "as:Question",
50
+ "Reject": "as:Reject",
51
+ "Remove": "as:Remove",
52
+ "Service": "as:Service",
53
+ "TentativeAccept": "as:TentativeAccept",
54
+ "TentativeReject": "as:TentativeReject",
55
+ "Tombstone": "as:Tombstone",
56
+ "Undo": "as:Undo",
57
+ "Update": "as:Update",
58
+ "Video": "as:Video",
59
+ "View": "as:View",
60
+ "Listen": "as:Listen",
61
+ "Read": "as:Read",
62
+ "Move": "as:Move",
63
+ "Travel": "as:Travel",
64
+ "IsFollowing": "as:IsFollowing",
65
+ "IsFollowedBy": "as:IsFollowedBy",
66
+ "IsContact": "as:IsContact",
67
+ "IsMember": "as:IsMember",
68
+ "subject": {
69
+ "@id": "as:subject",
70
+ "@type": "@id"
71
+ },
72
+ "relationship": {
73
+ "@id": "as:relationship",
74
+ "@type": "@id"
75
+ },
76
+ "actor": {
77
+ "@id": "as:actor",
78
+ "@type": "@id"
79
+ },
80
+ "attributedTo": {
81
+ "@id": "as:attributedTo",
82
+ "@type": "@id"
83
+ },
84
+ "attachment": {
85
+ "@id": "as:attachment",
86
+ "@type": "@id"
87
+ },
88
+ "bcc": {
89
+ "@id": "as:bcc",
90
+ "@type": "@id"
91
+ },
92
+ "bto": {
93
+ "@id": "as:bto",
94
+ "@type": "@id"
95
+ },
96
+ "cc": {
97
+ "@id": "as:cc",
98
+ "@type": "@id"
99
+ },
100
+ "context": {
101
+ "@id": "as:context",
102
+ "@type": "@id"
103
+ },
104
+ "current": {
105
+ "@id": "as:current",
106
+ "@type": "@id"
107
+ },
108
+ "first": {
109
+ "@id": "as:first",
110
+ "@type": "@id"
111
+ },
112
+ "generator": {
113
+ "@id": "as:generator",
114
+ "@type": "@id"
115
+ },
116
+ "icon": {
117
+ "@id": "as:icon",
118
+ "@type": "@id"
119
+ },
120
+ "image": {
121
+ "@id": "as:image",
122
+ "@type": "@id"
123
+ },
124
+ "inReplyTo": {
125
+ "@id": "as:inReplyTo",
126
+ "@type": "@id"
127
+ },
128
+ "items": {
129
+ "@id": "as:items",
130
+ "@type": "@id"
131
+ },
132
+ "instrument": {
133
+ "@id": "as:instrument",
134
+ "@type": "@id"
135
+ },
136
+ "orderedItems": {
137
+ "@id": "as:items",
138
+ "@type": "@id",
139
+ "@container": "@list"
140
+ },
141
+ "last": {
142
+ "@id": "as:last",
143
+ "@type": "@id"
144
+ },
145
+ "location": {
146
+ "@id": "as:location",
147
+ "@type": "@id"
148
+ },
149
+ "next": {
150
+ "@id": "as:next",
151
+ "@type": "@id"
152
+ },
153
+ "object": {
154
+ "@id": "as:object",
155
+ "@type": "@id"
156
+ },
157
+ "oneOf": {
158
+ "@id": "as:oneOf",
159
+ "@type": "@id"
160
+ },
161
+ "anyOf": {
162
+ "@id": "as:anyOf",
163
+ "@type": "@id"
164
+ },
165
+ "closed": {
166
+ "@id": "as:closed",
167
+ "@type": "xsd:dateTime"
168
+ },
169
+ "origin": {
170
+ "@id": "as:origin",
171
+ "@type": "@id"
172
+ },
173
+ "accuracy": {
174
+ "@id": "as:accuracy",
175
+ "@type": "xsd:float"
176
+ },
177
+ "prev": {
178
+ "@id": "as:prev",
179
+ "@type": "@id"
180
+ },
181
+ "preview": {
182
+ "@id": "as:preview",
183
+ "@type": "@id"
184
+ },
185
+ "replies": {
186
+ "@id": "as:replies",
187
+ "@type": "@id"
188
+ },
189
+ "result": {
190
+ "@id": "as:result",
191
+ "@type": "@id"
192
+ },
193
+ "audience": {
194
+ "@id": "as:audience",
195
+ "@type": "@id"
196
+ },
197
+ "partOf": {
198
+ "@id": "as:partOf",
199
+ "@type": "@id"
200
+ },
201
+ "tag": {
202
+ "@id": "as:tag",
203
+ "@type": "@id"
204
+ },
205
+ "target": {
206
+ "@id": "as:target",
207
+ "@type": "@id"
208
+ },
209
+ "to": {
210
+ "@id": "as:to",
211
+ "@type": "@id"
212
+ },
213
+ "url": {
214
+ "@id": "as:url",
215
+ "@type": "@id"
216
+ },
217
+ "altitude": {
218
+ "@id": "as:altitude",
219
+ "@type": "xsd:float"
220
+ },
221
+ "content": "as:content",
222
+ "contentMap": {
223
+ "@id": "as:content",
224
+ "@container": "@language"
225
+ },
226
+ "name": "as:name",
227
+ "nameMap": {
228
+ "@id": "as:name",
229
+ "@container": "@language"
230
+ },
231
+ "duration": {
232
+ "@id": "as:duration",
233
+ "@type": "xsd:duration"
234
+ },
235
+ "endTime": {
236
+ "@id": "as:endTime",
237
+ "@type": "xsd:dateTime"
238
+ },
239
+ "height": {
240
+ "@id": "as:height",
241
+ "@type": "xsd:nonNegativeInteger"
242
+ },
243
+ "href": {
244
+ "@id": "as:href",
245
+ "@type": "@id"
246
+ },
247
+ "hreflang": "as:hreflang",
248
+ "latitude": {
249
+ "@id": "as:latitude",
250
+ "@type": "xsd:float"
251
+ },
252
+ "longitude": {
253
+ "@id": "as:longitude",
254
+ "@type": "xsd:float"
255
+ },
256
+ "mediaType": "as:mediaType",
257
+ "published": {
258
+ "@id": "as:published",
259
+ "@type": "xsd:dateTime"
260
+ },
261
+ "radius": {
262
+ "@id": "as:radius",
263
+ "@type": "xsd:float"
264
+ },
265
+ "rel": "as:rel",
266
+ "startIndex": {
267
+ "@id": "as:startIndex",
268
+ "@type": "xsd:nonNegativeInteger"
269
+ },
270
+ "startTime": {
271
+ "@id": "as:startTime",
272
+ "@type": "xsd:dateTime"
273
+ },
274
+ "summary": "as:summary",
275
+ "summaryMap": {
276
+ "@id": "as:summary",
277
+ "@container": "@language"
278
+ },
279
+ "totalItems": {
280
+ "@id": "as:totalItems",
281
+ "@type": "xsd:nonNegativeInteger"
282
+ },
283
+ "units": "as:units",
284
+ "updated": {
285
+ "@id": "as:updated",
286
+ "@type": "xsd:dateTime"
287
+ },
288
+ "width": {
289
+ "@id": "as:width",
290
+ "@type": "xsd:nonNegativeInteger"
291
+ },
292
+ "describes": {
293
+ "@id": "as:describes",
294
+ "@type": "@id"
295
+ },
296
+ "formerType": {
297
+ "@id": "as:formerType",
298
+ "@type": "@id"
299
+ },
300
+ "deleted": {
301
+ "@id": "as:deleted",
302
+ "@type": "xsd:dateTime"
303
+ },
304
+ "inbox": {
305
+ "@id": "ldp:inbox",
306
+ "@type": "@id"
307
+ },
308
+ "outbox": {
309
+ "@id": "as:outbox",
310
+ "@type": "@id"
311
+ },
312
+ "following": {
313
+ "@id": "as:following",
314
+ "@type": "@id"
315
+ },
316
+ "followers": {
317
+ "@id": "as:followers",
318
+ "@type": "@id"
319
+ },
320
+ "streams": {
321
+ "@id": "as:streams",
322
+ "@type": "@id"
323
+ },
324
+ "preferredUsername": "as:preferredUsername",
325
+ "endpoints": {
326
+ "@id": "as:endpoints",
327
+ "@type": "@id"
328
+ },
329
+ "uploadMedia": {
330
+ "@id": "as:uploadMedia",
331
+ "@type": "@id"
332
+ },
333
+ "proxyUrl": {
334
+ "@id": "as:proxyUrl",
335
+ "@type": "@id"
336
+ },
337
+ "liked": {
338
+ "@id": "as:liked",
339
+ "@type": "@id"
340
+ },
341
+ "oauthAuthorizationEndpoint": {
342
+ "@id": "as:oauthAuthorizationEndpoint",
343
+ "@type": "@id"
344
+ },
345
+ "oauthTokenEndpoint": {
346
+ "@id": "as:oauthTokenEndpoint",
347
+ "@type": "@id"
348
+ },
349
+ "provideClientKey": {
350
+ "@id": "as:provideClientKey",
351
+ "@type": "@id"
352
+ },
353
+ "signClientKey": {
354
+ "@id": "as:signClientKey",
355
+ "@type": "@id"
356
+ },
357
+ "sharedInbox": {
358
+ "@id": "as:sharedInbox",
359
+ "@type": "@id"
360
+ },
361
+ "Public": {
362
+ "@id": "as:Public",
363
+ "@type": "@id"
364
+ },
365
+ "source": "as:source",
366
+ "likes": {
367
+ "@id": "as:likes",
368
+ "@type": "@id"
369
+ },
370
+ "shares": {
371
+ "@id": "as:shares",
372
+ "@type": "@id"
373
+ },
374
+ "alsoKnownAs": {
375
+ "@id": "as:alsoKnownAs",
376
+ "@type": "@id"
377
+ }
378
+ }
379
+ }
@@ -0,0 +1,57 @@
1
+ {
2
+ "@context": {
3
+ "@protected": true,
4
+ "id": "@id",
5
+ "type": "@type",
6
+ "alsoKnownAs": {
7
+ "@id": "https://www.w3.org/ns/activitystreams#alsoKnownAs",
8
+ "@type": "@id"
9
+ },
10
+ "assertionMethod": {
11
+ "@id": "https://w3id.org/security#assertionMethod",
12
+ "@type": "@id",
13
+ "@container": "@set"
14
+ },
15
+ "authentication": {
16
+ "@id": "https://w3id.org/security#authenticationMethod",
17
+ "@type": "@id",
18
+ "@container": "@set"
19
+ },
20
+ "capabilityDelegation": {
21
+ "@id": "https://w3id.org/security#capabilityDelegationMethod",
22
+ "@type": "@id",
23
+ "@container": "@set"
24
+ },
25
+ "capabilityInvocation": {
26
+ "@id": "https://w3id.org/security#capabilityInvocationMethod",
27
+ "@type": "@id",
28
+ "@container": "@set"
29
+ },
30
+ "controller": {
31
+ "@id": "https://w3id.org/security#controller",
32
+ "@type": "@id"
33
+ },
34
+ "keyAgreement": {
35
+ "@id": "https://w3id.org/security#keyAgreementMethod",
36
+ "@type": "@id",
37
+ "@container": "@set"
38
+ },
39
+ "service": {
40
+ "@id": "https://www.w3.org/ns/did#service",
41
+ "@type": "@id",
42
+ "@context": {
43
+ "@protected": true,
44
+ "id": "@id",
45
+ "type": "@type",
46
+ "serviceEndpoint": {
47
+ "@id": "https://www.w3.org/ns/did#serviceEndpoint",
48
+ "@type": "@id"
49
+ }
50
+ }
51
+ },
52
+ "verificationMethod": {
53
+ "@id": "https://w3id.org/security#verificationMethod",
54
+ "@type": "@id"
55
+ }
56
+ }
57
+ }