@fedify/vocab-runtime 2.4.0-dev.1873 → 2.4.0-dev.1889
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/deno.json +1 -1
- package/dist/{docloader-BK627tQQ.d.cts → docloader-Dr8wEkif.d.cts} +1 -0
- package/dist/{docloader-BK627tQQ.d.ts → docloader-Dr8wEkif.d.ts} +1 -0
- package/dist/internal/jsonld-cache.d.cts +1 -1
- package/dist/internal/jsonld-cache.d.ts +1 -1
- package/dist/mod.cjs +113 -1
- package/dist/mod.d.cts +1 -1
- package/dist/mod.d.ts +1 -1
- package/dist/mod.js +113 -1
- package/dist/tests/decimal.test.cjs +1 -1
- package/dist/tests/decimal.test.mjs +1 -1
- package/dist/tests/{docloader-Z0l0O1GH.mjs → docloader-C2gaJpBI.mjs} +496 -379
- package/dist/tests/{docloader-uFQgIcvu.cjs → docloader-CA_wa5EC.cjs} +501 -378
- package/dist/tests/docloader.test.cjs +11 -2
- package/dist/tests/docloader.test.mjs +11 -2
- package/dist/tests/{request-D5t8Xg89.mjs → request-Du7J1K0j.mjs} +1 -1
- package/dist/tests/{request-DsDLaP7D.cjs → request-oz_2l1wJ.cjs} +1 -1
- package/dist/tests/request.test.cjs +1 -1
- package/dist/tests/request.test.mjs +1 -1
- package/package.json +1 -1
- package/src/contexts/cid-v1.json +114 -0
- package/src/contexts.ts +9 -0
- package/src/docloader.test.ts +16 -0
- package/src/docloader.ts +1 -0
|
@@ -1,388 +1,503 @@
|
|
|
1
|
-
import { a as name, i as logRequest, n as createActivityPubRequest, o as version, t as FetchError } from "./request-
|
|
1
|
+
import { a as name, i as logRequest, n as createActivityPubRequest, o as version, t as FetchError } from "./request-Du7J1K0j.mjs";
|
|
2
2
|
import { t as HttpHeaderLink } from "./link-Cevmc87v.mjs";
|
|
3
3
|
import { g as validatePublicUrl, t as UrlError } from "./url-Basm1L_c.mjs";
|
|
4
4
|
import { getLogger } from "@logtape/logtape";
|
|
5
5
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
6
|
+
//#region src/contexts/activitystreams.json
|
|
7
|
+
var activitystreams_default = { "@context": {
|
|
8
|
+
"@vocab": "_:",
|
|
9
|
+
"xsd": "http://www.w3.org/2001/XMLSchema#",
|
|
10
|
+
"as": "https://www.w3.org/ns/activitystreams#",
|
|
11
|
+
"ldp": "http://www.w3.org/ns/ldp#",
|
|
12
|
+
"vcard": "http://www.w3.org/2006/vcard/ns#",
|
|
13
|
+
"id": "@id",
|
|
14
|
+
"type": "@type",
|
|
15
|
+
"Accept": "as:Accept",
|
|
16
|
+
"Activity": "as:Activity",
|
|
17
|
+
"IntransitiveActivity": "as:IntransitiveActivity",
|
|
18
|
+
"Add": "as:Add",
|
|
19
|
+
"Announce": "as:Announce",
|
|
20
|
+
"Application": "as:Application",
|
|
21
|
+
"Arrive": "as:Arrive",
|
|
22
|
+
"Article": "as:Article",
|
|
23
|
+
"Audio": "as:Audio",
|
|
24
|
+
"Block": "as:Block",
|
|
25
|
+
"Collection": "as:Collection",
|
|
26
|
+
"CollectionPage": "as:CollectionPage",
|
|
27
|
+
"Relationship": "as:Relationship",
|
|
28
|
+
"Create": "as:Create",
|
|
29
|
+
"Delete": "as:Delete",
|
|
30
|
+
"Dislike": "as:Dislike",
|
|
31
|
+
"Document": "as:Document",
|
|
32
|
+
"Event": "as:Event",
|
|
33
|
+
"Follow": "as:Follow",
|
|
34
|
+
"Flag": "as:Flag",
|
|
35
|
+
"Group": "as:Group",
|
|
36
|
+
"Ignore": "as:Ignore",
|
|
37
|
+
"Image": "as:Image",
|
|
38
|
+
"Invite": "as:Invite",
|
|
39
|
+
"Join": "as:Join",
|
|
40
|
+
"Leave": "as:Leave",
|
|
41
|
+
"Like": "as:Like",
|
|
42
|
+
"Link": "as:Link",
|
|
43
|
+
"Mention": "as:Mention",
|
|
44
|
+
"Note": "as:Note",
|
|
45
|
+
"Object": "as:Object",
|
|
46
|
+
"Offer": "as:Offer",
|
|
47
|
+
"OrderedCollection": "as:OrderedCollection",
|
|
48
|
+
"OrderedCollectionPage": "as:OrderedCollectionPage",
|
|
49
|
+
"Organization": "as:Organization",
|
|
50
|
+
"Page": "as:Page",
|
|
51
|
+
"Person": "as:Person",
|
|
52
|
+
"Place": "as:Place",
|
|
53
|
+
"Profile": "as:Profile",
|
|
54
|
+
"Question": "as:Question",
|
|
55
|
+
"Reject": "as:Reject",
|
|
56
|
+
"Remove": "as:Remove",
|
|
57
|
+
"Service": "as:Service",
|
|
58
|
+
"TentativeAccept": "as:TentativeAccept",
|
|
59
|
+
"TentativeReject": "as:TentativeReject",
|
|
60
|
+
"Tombstone": "as:Tombstone",
|
|
61
|
+
"Undo": "as:Undo",
|
|
62
|
+
"Update": "as:Update",
|
|
63
|
+
"Video": "as:Video",
|
|
64
|
+
"View": "as:View",
|
|
65
|
+
"Listen": "as:Listen",
|
|
66
|
+
"Read": "as:Read",
|
|
67
|
+
"Move": "as:Move",
|
|
68
|
+
"Travel": "as:Travel",
|
|
69
|
+
"IsFollowing": "as:IsFollowing",
|
|
70
|
+
"IsFollowedBy": "as:IsFollowedBy",
|
|
71
|
+
"IsContact": "as:IsContact",
|
|
72
|
+
"IsMember": "as:IsMember",
|
|
73
|
+
"subject": {
|
|
74
|
+
"@id": "as:subject",
|
|
75
|
+
"@type": "@id"
|
|
76
|
+
},
|
|
77
|
+
"relationship": {
|
|
78
|
+
"@id": "as:relationship",
|
|
79
|
+
"@type": "@id"
|
|
80
|
+
},
|
|
81
|
+
"actor": {
|
|
82
|
+
"@id": "as:actor",
|
|
83
|
+
"@type": "@id"
|
|
84
|
+
},
|
|
85
|
+
"attributedTo": {
|
|
86
|
+
"@id": "as:attributedTo",
|
|
87
|
+
"@type": "@id"
|
|
88
|
+
},
|
|
89
|
+
"attachment": {
|
|
90
|
+
"@id": "as:attachment",
|
|
91
|
+
"@type": "@id"
|
|
92
|
+
},
|
|
93
|
+
"bcc": {
|
|
94
|
+
"@id": "as:bcc",
|
|
95
|
+
"@type": "@id"
|
|
96
|
+
},
|
|
97
|
+
"bto": {
|
|
98
|
+
"@id": "as:bto",
|
|
99
|
+
"@type": "@id"
|
|
100
|
+
},
|
|
101
|
+
"cc": {
|
|
102
|
+
"@id": "as:cc",
|
|
103
|
+
"@type": "@id"
|
|
104
|
+
},
|
|
105
|
+
"context": {
|
|
106
|
+
"@id": "as:context",
|
|
107
|
+
"@type": "@id"
|
|
108
|
+
},
|
|
109
|
+
"current": {
|
|
110
|
+
"@id": "as:current",
|
|
111
|
+
"@type": "@id"
|
|
112
|
+
},
|
|
113
|
+
"first": {
|
|
114
|
+
"@id": "as:first",
|
|
115
|
+
"@type": "@id"
|
|
116
|
+
},
|
|
117
|
+
"generator": {
|
|
118
|
+
"@id": "as:generator",
|
|
119
|
+
"@type": "@id"
|
|
120
|
+
},
|
|
121
|
+
"icon": {
|
|
122
|
+
"@id": "as:icon",
|
|
123
|
+
"@type": "@id"
|
|
124
|
+
},
|
|
125
|
+
"image": {
|
|
126
|
+
"@id": "as:image",
|
|
127
|
+
"@type": "@id"
|
|
128
|
+
},
|
|
129
|
+
"inReplyTo": {
|
|
130
|
+
"@id": "as:inReplyTo",
|
|
131
|
+
"@type": "@id"
|
|
132
|
+
},
|
|
133
|
+
"items": {
|
|
134
|
+
"@id": "as:items",
|
|
135
|
+
"@type": "@id"
|
|
136
|
+
},
|
|
137
|
+
"instrument": {
|
|
138
|
+
"@id": "as:instrument",
|
|
139
|
+
"@type": "@id"
|
|
140
|
+
},
|
|
141
|
+
"orderedItems": {
|
|
142
|
+
"@id": "as:items",
|
|
143
|
+
"@type": "@id",
|
|
144
|
+
"@container": "@list"
|
|
145
|
+
},
|
|
146
|
+
"last": {
|
|
147
|
+
"@id": "as:last",
|
|
148
|
+
"@type": "@id"
|
|
149
|
+
},
|
|
150
|
+
"location": {
|
|
151
|
+
"@id": "as:location",
|
|
152
|
+
"@type": "@id"
|
|
153
|
+
},
|
|
154
|
+
"next": {
|
|
155
|
+
"@id": "as:next",
|
|
156
|
+
"@type": "@id"
|
|
157
|
+
},
|
|
158
|
+
"object": {
|
|
159
|
+
"@id": "as:object",
|
|
160
|
+
"@type": "@id"
|
|
161
|
+
},
|
|
162
|
+
"oneOf": {
|
|
163
|
+
"@id": "as:oneOf",
|
|
164
|
+
"@type": "@id"
|
|
165
|
+
},
|
|
166
|
+
"anyOf": {
|
|
167
|
+
"@id": "as:anyOf",
|
|
168
|
+
"@type": "@id"
|
|
169
|
+
},
|
|
170
|
+
"closed": {
|
|
171
|
+
"@id": "as:closed",
|
|
172
|
+
"@type": "xsd:dateTime"
|
|
173
|
+
},
|
|
174
|
+
"origin": {
|
|
175
|
+
"@id": "as:origin",
|
|
176
|
+
"@type": "@id"
|
|
177
|
+
},
|
|
178
|
+
"accuracy": {
|
|
179
|
+
"@id": "as:accuracy",
|
|
180
|
+
"@type": "xsd:float"
|
|
181
|
+
},
|
|
182
|
+
"prev": {
|
|
183
|
+
"@id": "as:prev",
|
|
184
|
+
"@type": "@id"
|
|
185
|
+
},
|
|
186
|
+
"preview": {
|
|
187
|
+
"@id": "as:preview",
|
|
188
|
+
"@type": "@id"
|
|
189
|
+
},
|
|
190
|
+
"replies": {
|
|
191
|
+
"@id": "as:replies",
|
|
192
|
+
"@type": "@id"
|
|
193
|
+
},
|
|
194
|
+
"result": {
|
|
195
|
+
"@id": "as:result",
|
|
196
|
+
"@type": "@id"
|
|
197
|
+
},
|
|
198
|
+
"audience": {
|
|
199
|
+
"@id": "as:audience",
|
|
200
|
+
"@type": "@id"
|
|
201
|
+
},
|
|
202
|
+
"partOf": {
|
|
203
|
+
"@id": "as:partOf",
|
|
204
|
+
"@type": "@id"
|
|
205
|
+
},
|
|
206
|
+
"tag": {
|
|
207
|
+
"@id": "as:tag",
|
|
208
|
+
"@type": "@id"
|
|
209
|
+
},
|
|
210
|
+
"target": {
|
|
211
|
+
"@id": "as:target",
|
|
212
|
+
"@type": "@id"
|
|
213
|
+
},
|
|
214
|
+
"to": {
|
|
215
|
+
"@id": "as:to",
|
|
216
|
+
"@type": "@id"
|
|
217
|
+
},
|
|
218
|
+
"url": {
|
|
219
|
+
"@id": "as:url",
|
|
220
|
+
"@type": "@id"
|
|
221
|
+
},
|
|
222
|
+
"altitude": {
|
|
223
|
+
"@id": "as:altitude",
|
|
224
|
+
"@type": "xsd:float"
|
|
225
|
+
},
|
|
226
|
+
"content": "as:content",
|
|
227
|
+
"contentMap": {
|
|
228
|
+
"@id": "as:content",
|
|
229
|
+
"@container": "@language"
|
|
230
|
+
},
|
|
231
|
+
"name": "as:name",
|
|
232
|
+
"nameMap": {
|
|
233
|
+
"@id": "as:name",
|
|
234
|
+
"@container": "@language"
|
|
235
|
+
},
|
|
236
|
+
"duration": {
|
|
237
|
+
"@id": "as:duration",
|
|
238
|
+
"@type": "xsd:duration"
|
|
239
|
+
},
|
|
240
|
+
"endTime": {
|
|
241
|
+
"@id": "as:endTime",
|
|
242
|
+
"@type": "xsd:dateTime"
|
|
243
|
+
},
|
|
244
|
+
"height": {
|
|
245
|
+
"@id": "as:height",
|
|
246
|
+
"@type": "xsd:nonNegativeInteger"
|
|
247
|
+
},
|
|
248
|
+
"href": {
|
|
249
|
+
"@id": "as:href",
|
|
250
|
+
"@type": "@id"
|
|
251
|
+
},
|
|
252
|
+
"hreflang": "as:hreflang",
|
|
253
|
+
"latitude": {
|
|
254
|
+
"@id": "as:latitude",
|
|
255
|
+
"@type": "xsd:float"
|
|
256
|
+
},
|
|
257
|
+
"longitude": {
|
|
258
|
+
"@id": "as:longitude",
|
|
259
|
+
"@type": "xsd:float"
|
|
260
|
+
},
|
|
261
|
+
"mediaType": "as:mediaType",
|
|
262
|
+
"published": {
|
|
263
|
+
"@id": "as:published",
|
|
264
|
+
"@type": "xsd:dateTime"
|
|
265
|
+
},
|
|
266
|
+
"radius": {
|
|
267
|
+
"@id": "as:radius",
|
|
268
|
+
"@type": "xsd:float"
|
|
269
|
+
},
|
|
270
|
+
"rel": "as:rel",
|
|
271
|
+
"startIndex": {
|
|
272
|
+
"@id": "as:startIndex",
|
|
273
|
+
"@type": "xsd:nonNegativeInteger"
|
|
274
|
+
},
|
|
275
|
+
"startTime": {
|
|
276
|
+
"@id": "as:startTime",
|
|
277
|
+
"@type": "xsd:dateTime"
|
|
278
|
+
},
|
|
279
|
+
"summary": "as:summary",
|
|
280
|
+
"summaryMap": {
|
|
281
|
+
"@id": "as:summary",
|
|
282
|
+
"@container": "@language"
|
|
283
|
+
},
|
|
284
|
+
"totalItems": {
|
|
285
|
+
"@id": "as:totalItems",
|
|
286
|
+
"@type": "xsd:nonNegativeInteger"
|
|
287
|
+
},
|
|
288
|
+
"units": "as:units",
|
|
289
|
+
"updated": {
|
|
290
|
+
"@id": "as:updated",
|
|
291
|
+
"@type": "xsd:dateTime"
|
|
292
|
+
},
|
|
293
|
+
"width": {
|
|
294
|
+
"@id": "as:width",
|
|
295
|
+
"@type": "xsd:nonNegativeInteger"
|
|
296
|
+
},
|
|
297
|
+
"describes": {
|
|
298
|
+
"@id": "as:describes",
|
|
299
|
+
"@type": "@id"
|
|
300
|
+
},
|
|
301
|
+
"formerType": {
|
|
302
|
+
"@id": "as:formerType",
|
|
303
|
+
"@type": "@id"
|
|
304
|
+
},
|
|
305
|
+
"deleted": {
|
|
306
|
+
"@id": "as:deleted",
|
|
307
|
+
"@type": "xsd:dateTime"
|
|
308
|
+
},
|
|
309
|
+
"inbox": {
|
|
310
|
+
"@id": "ldp:inbox",
|
|
311
|
+
"@type": "@id"
|
|
312
|
+
},
|
|
313
|
+
"outbox": {
|
|
314
|
+
"@id": "as:outbox",
|
|
315
|
+
"@type": "@id"
|
|
316
|
+
},
|
|
317
|
+
"following": {
|
|
318
|
+
"@id": "as:following",
|
|
319
|
+
"@type": "@id"
|
|
320
|
+
},
|
|
321
|
+
"followers": {
|
|
322
|
+
"@id": "as:followers",
|
|
323
|
+
"@type": "@id"
|
|
324
|
+
},
|
|
325
|
+
"streams": {
|
|
326
|
+
"@id": "as:streams",
|
|
327
|
+
"@type": "@id"
|
|
328
|
+
},
|
|
329
|
+
"preferredUsername": "as:preferredUsername",
|
|
330
|
+
"endpoints": {
|
|
331
|
+
"@id": "as:endpoints",
|
|
332
|
+
"@type": "@id"
|
|
333
|
+
},
|
|
334
|
+
"uploadMedia": {
|
|
335
|
+
"@id": "as:uploadMedia",
|
|
336
|
+
"@type": "@id"
|
|
337
|
+
},
|
|
338
|
+
"proxyUrl": {
|
|
339
|
+
"@id": "as:proxyUrl",
|
|
340
|
+
"@type": "@id"
|
|
341
|
+
},
|
|
342
|
+
"liked": {
|
|
343
|
+
"@id": "as:liked",
|
|
344
|
+
"@type": "@id"
|
|
345
|
+
},
|
|
346
|
+
"oauthAuthorizationEndpoint": {
|
|
347
|
+
"@id": "as:oauthAuthorizationEndpoint",
|
|
348
|
+
"@type": "@id"
|
|
349
|
+
},
|
|
350
|
+
"oauthTokenEndpoint": {
|
|
351
|
+
"@id": "as:oauthTokenEndpoint",
|
|
352
|
+
"@type": "@id"
|
|
353
|
+
},
|
|
354
|
+
"provideClientKey": {
|
|
355
|
+
"@id": "as:provideClientKey",
|
|
356
|
+
"@type": "@id"
|
|
357
|
+
},
|
|
358
|
+
"signClientKey": {
|
|
359
|
+
"@id": "as:signClientKey",
|
|
360
|
+
"@type": "@id"
|
|
361
|
+
},
|
|
362
|
+
"sharedInbox": {
|
|
363
|
+
"@id": "as:sharedInbox",
|
|
364
|
+
"@type": "@id"
|
|
365
|
+
},
|
|
366
|
+
"Public": {
|
|
367
|
+
"@id": "as:Public",
|
|
368
|
+
"@type": "@id"
|
|
369
|
+
},
|
|
370
|
+
"source": "as:source",
|
|
371
|
+
"likes": {
|
|
372
|
+
"@id": "as:likes",
|
|
373
|
+
"@type": "@id"
|
|
374
|
+
},
|
|
375
|
+
"shares": {
|
|
376
|
+
"@id": "as:shares",
|
|
377
|
+
"@type": "@id"
|
|
378
|
+
},
|
|
379
|
+
"alsoKnownAs": {
|
|
380
|
+
"@id": "as:alsoKnownAs",
|
|
381
|
+
"@type": "@id"
|
|
382
|
+
}
|
|
383
|
+
} };
|
|
384
|
+
//#endregion
|
|
385
|
+
//#region src/contexts/cid-v1.json
|
|
386
|
+
var cid_v1_default = { "@context": {
|
|
387
|
+
"@protected": true,
|
|
388
|
+
"id": "@id",
|
|
389
|
+
"type": "@type",
|
|
390
|
+
"alsoKnownAs": {
|
|
391
|
+
"@id": "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
392
|
+
"@type": "@id"
|
|
393
|
+
},
|
|
394
|
+
"assertionMethod": {
|
|
395
|
+
"@id": "https://w3id.org/security#assertionMethod",
|
|
396
|
+
"@type": "@id",
|
|
397
|
+
"@container": "@set"
|
|
398
|
+
},
|
|
399
|
+
"authentication": {
|
|
400
|
+
"@id": "https://w3id.org/security#authenticationMethod",
|
|
401
|
+
"@type": "@id",
|
|
402
|
+
"@container": "@set"
|
|
403
|
+
},
|
|
404
|
+
"capabilityDelegation": {
|
|
405
|
+
"@id": "https://w3id.org/security#capabilityDelegationMethod",
|
|
406
|
+
"@type": "@id",
|
|
407
|
+
"@container": "@set"
|
|
408
|
+
},
|
|
409
|
+
"capabilityInvocation": {
|
|
410
|
+
"@id": "https://w3id.org/security#capabilityInvocationMethod",
|
|
411
|
+
"@type": "@id",
|
|
412
|
+
"@container": "@set"
|
|
413
|
+
},
|
|
414
|
+
"controller": {
|
|
415
|
+
"@id": "https://w3id.org/security#controller",
|
|
416
|
+
"@type": "@id"
|
|
417
|
+
},
|
|
418
|
+
"keyAgreement": {
|
|
419
|
+
"@id": "https://w3id.org/security#keyAgreementMethod",
|
|
420
|
+
"@type": "@id",
|
|
421
|
+
"@container": "@set"
|
|
422
|
+
},
|
|
423
|
+
"service": {
|
|
424
|
+
"@id": "https://www.w3.org/ns/did#service",
|
|
425
|
+
"@type": "@id",
|
|
426
|
+
"@context": {
|
|
427
|
+
"@protected": true,
|
|
428
|
+
"id": "@id",
|
|
429
|
+
"type": "@type",
|
|
430
|
+
"serviceEndpoint": {
|
|
431
|
+
"@id": "https://www.w3.org/ns/did#serviceEndpoint",
|
|
432
|
+
"@type": "@id"
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
"verificationMethod": {
|
|
437
|
+
"@id": "https://w3id.org/security#verificationMethod",
|
|
438
|
+
"@type": "@id"
|
|
439
|
+
},
|
|
440
|
+
"Multikey": {
|
|
441
|
+
"@id": "https://w3id.org/security#Multikey",
|
|
442
|
+
"@context": {
|
|
443
|
+
"@protected": true,
|
|
444
|
+
"id": "@id",
|
|
445
|
+
"type": "@type",
|
|
446
|
+
"controller": {
|
|
447
|
+
"@id": "https://w3id.org/security#controller",
|
|
448
|
+
"@type": "@id"
|
|
449
|
+
},
|
|
450
|
+
"revoked": {
|
|
451
|
+
"@id": "https://w3id.org/security#revoked",
|
|
452
|
+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
|
|
453
|
+
},
|
|
454
|
+
"expires": {
|
|
455
|
+
"@id": "https://w3id.org/security#expiration",
|
|
456
|
+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
|
|
457
|
+
},
|
|
458
|
+
"publicKeyMultibase": {
|
|
459
|
+
"@id": "https://w3id.org/security#publicKeyMultibase",
|
|
460
|
+
"@type": "https://w3id.org/security#multibase"
|
|
461
|
+
},
|
|
462
|
+
"secretKeyMultibase": {
|
|
463
|
+
"@id": "https://w3id.org/security#secretKeyMultibase",
|
|
464
|
+
"@type": "https://w3id.org/security#multibase"
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
"JsonWebKey": {
|
|
469
|
+
"@id": "https://w3id.org/security#JsonWebKey",
|
|
470
|
+
"@context": {
|
|
471
|
+
"@protected": true,
|
|
472
|
+
"id": "@id",
|
|
473
|
+
"type": "@type",
|
|
474
|
+
"controller": {
|
|
475
|
+
"@id": "https://w3id.org/security#controller",
|
|
476
|
+
"@type": "@id"
|
|
477
|
+
},
|
|
478
|
+
"revoked": {
|
|
479
|
+
"@id": "https://w3id.org/security#revoked",
|
|
480
|
+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
|
|
481
|
+
},
|
|
482
|
+
"expires": {
|
|
483
|
+
"@id": "https://w3id.org/security#expiration",
|
|
484
|
+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
|
|
485
|
+
},
|
|
486
|
+
"publicKeyJwk": {
|
|
487
|
+
"@id": "https://w3id.org/security#publicKeyJwk",
|
|
488
|
+
"@type": "@json"
|
|
489
|
+
},
|
|
490
|
+
"secretKeyJwk": {
|
|
491
|
+
"@id": "https://w3id.org/security#secretKeyJwk",
|
|
492
|
+
"@type": "@json"
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
} };
|
|
6
497
|
//#endregion
|
|
7
498
|
//#region src/contexts.ts
|
|
8
499
|
const preloadedContexts = {
|
|
9
|
-
"https://www.w3.org/ns/activitystreams":
|
|
10
|
-
"@vocab": "_:",
|
|
11
|
-
"xsd": "http://www.w3.org/2001/XMLSchema#",
|
|
12
|
-
"as": "https://www.w3.org/ns/activitystreams#",
|
|
13
|
-
"ldp": "http://www.w3.org/ns/ldp#",
|
|
14
|
-
"vcard": "http://www.w3.org/2006/vcard/ns#",
|
|
15
|
-
"id": "@id",
|
|
16
|
-
"type": "@type",
|
|
17
|
-
"Accept": "as:Accept",
|
|
18
|
-
"Activity": "as:Activity",
|
|
19
|
-
"IntransitiveActivity": "as:IntransitiveActivity",
|
|
20
|
-
"Add": "as:Add",
|
|
21
|
-
"Announce": "as:Announce",
|
|
22
|
-
"Application": "as:Application",
|
|
23
|
-
"Arrive": "as:Arrive",
|
|
24
|
-
"Article": "as:Article",
|
|
25
|
-
"Audio": "as:Audio",
|
|
26
|
-
"Block": "as:Block",
|
|
27
|
-
"Collection": "as:Collection",
|
|
28
|
-
"CollectionPage": "as:CollectionPage",
|
|
29
|
-
"Relationship": "as:Relationship",
|
|
30
|
-
"Create": "as:Create",
|
|
31
|
-
"Delete": "as:Delete",
|
|
32
|
-
"Dislike": "as:Dislike",
|
|
33
|
-
"Document": "as:Document",
|
|
34
|
-
"Event": "as:Event",
|
|
35
|
-
"Follow": "as:Follow",
|
|
36
|
-
"Flag": "as:Flag",
|
|
37
|
-
"Group": "as:Group",
|
|
38
|
-
"Ignore": "as:Ignore",
|
|
39
|
-
"Image": "as:Image",
|
|
40
|
-
"Invite": "as:Invite",
|
|
41
|
-
"Join": "as:Join",
|
|
42
|
-
"Leave": "as:Leave",
|
|
43
|
-
"Like": "as:Like",
|
|
44
|
-
"Link": "as:Link",
|
|
45
|
-
"Mention": "as:Mention",
|
|
46
|
-
"Note": "as:Note",
|
|
47
|
-
"Object": "as:Object",
|
|
48
|
-
"Offer": "as:Offer",
|
|
49
|
-
"OrderedCollection": "as:OrderedCollection",
|
|
50
|
-
"OrderedCollectionPage": "as:OrderedCollectionPage",
|
|
51
|
-
"Organization": "as:Organization",
|
|
52
|
-
"Page": "as:Page",
|
|
53
|
-
"Person": "as:Person",
|
|
54
|
-
"Place": "as:Place",
|
|
55
|
-
"Profile": "as:Profile",
|
|
56
|
-
"Question": "as:Question",
|
|
57
|
-
"Reject": "as:Reject",
|
|
58
|
-
"Remove": "as:Remove",
|
|
59
|
-
"Service": "as:Service",
|
|
60
|
-
"TentativeAccept": "as:TentativeAccept",
|
|
61
|
-
"TentativeReject": "as:TentativeReject",
|
|
62
|
-
"Tombstone": "as:Tombstone",
|
|
63
|
-
"Undo": "as:Undo",
|
|
64
|
-
"Update": "as:Update",
|
|
65
|
-
"Video": "as:Video",
|
|
66
|
-
"View": "as:View",
|
|
67
|
-
"Listen": "as:Listen",
|
|
68
|
-
"Read": "as:Read",
|
|
69
|
-
"Move": "as:Move",
|
|
70
|
-
"Travel": "as:Travel",
|
|
71
|
-
"IsFollowing": "as:IsFollowing",
|
|
72
|
-
"IsFollowedBy": "as:IsFollowedBy",
|
|
73
|
-
"IsContact": "as:IsContact",
|
|
74
|
-
"IsMember": "as:IsMember",
|
|
75
|
-
"subject": {
|
|
76
|
-
"@id": "as:subject",
|
|
77
|
-
"@type": "@id"
|
|
78
|
-
},
|
|
79
|
-
"relationship": {
|
|
80
|
-
"@id": "as:relationship",
|
|
81
|
-
"@type": "@id"
|
|
82
|
-
},
|
|
83
|
-
"actor": {
|
|
84
|
-
"@id": "as:actor",
|
|
85
|
-
"@type": "@id"
|
|
86
|
-
},
|
|
87
|
-
"attributedTo": {
|
|
88
|
-
"@id": "as:attributedTo",
|
|
89
|
-
"@type": "@id"
|
|
90
|
-
},
|
|
91
|
-
"attachment": {
|
|
92
|
-
"@id": "as:attachment",
|
|
93
|
-
"@type": "@id"
|
|
94
|
-
},
|
|
95
|
-
"bcc": {
|
|
96
|
-
"@id": "as:bcc",
|
|
97
|
-
"@type": "@id"
|
|
98
|
-
},
|
|
99
|
-
"bto": {
|
|
100
|
-
"@id": "as:bto",
|
|
101
|
-
"@type": "@id"
|
|
102
|
-
},
|
|
103
|
-
"cc": {
|
|
104
|
-
"@id": "as:cc",
|
|
105
|
-
"@type": "@id"
|
|
106
|
-
},
|
|
107
|
-
"context": {
|
|
108
|
-
"@id": "as:context",
|
|
109
|
-
"@type": "@id"
|
|
110
|
-
},
|
|
111
|
-
"current": {
|
|
112
|
-
"@id": "as:current",
|
|
113
|
-
"@type": "@id"
|
|
114
|
-
},
|
|
115
|
-
"first": {
|
|
116
|
-
"@id": "as:first",
|
|
117
|
-
"@type": "@id"
|
|
118
|
-
},
|
|
119
|
-
"generator": {
|
|
120
|
-
"@id": "as:generator",
|
|
121
|
-
"@type": "@id"
|
|
122
|
-
},
|
|
123
|
-
"icon": {
|
|
124
|
-
"@id": "as:icon",
|
|
125
|
-
"@type": "@id"
|
|
126
|
-
},
|
|
127
|
-
"image": {
|
|
128
|
-
"@id": "as:image",
|
|
129
|
-
"@type": "@id"
|
|
130
|
-
},
|
|
131
|
-
"inReplyTo": {
|
|
132
|
-
"@id": "as:inReplyTo",
|
|
133
|
-
"@type": "@id"
|
|
134
|
-
},
|
|
135
|
-
"items": {
|
|
136
|
-
"@id": "as:items",
|
|
137
|
-
"@type": "@id"
|
|
138
|
-
},
|
|
139
|
-
"instrument": {
|
|
140
|
-
"@id": "as:instrument",
|
|
141
|
-
"@type": "@id"
|
|
142
|
-
},
|
|
143
|
-
"orderedItems": {
|
|
144
|
-
"@id": "as:items",
|
|
145
|
-
"@type": "@id",
|
|
146
|
-
"@container": "@list"
|
|
147
|
-
},
|
|
148
|
-
"last": {
|
|
149
|
-
"@id": "as:last",
|
|
150
|
-
"@type": "@id"
|
|
151
|
-
},
|
|
152
|
-
"location": {
|
|
153
|
-
"@id": "as:location",
|
|
154
|
-
"@type": "@id"
|
|
155
|
-
},
|
|
156
|
-
"next": {
|
|
157
|
-
"@id": "as:next",
|
|
158
|
-
"@type": "@id"
|
|
159
|
-
},
|
|
160
|
-
"object": {
|
|
161
|
-
"@id": "as:object",
|
|
162
|
-
"@type": "@id"
|
|
163
|
-
},
|
|
164
|
-
"oneOf": {
|
|
165
|
-
"@id": "as:oneOf",
|
|
166
|
-
"@type": "@id"
|
|
167
|
-
},
|
|
168
|
-
"anyOf": {
|
|
169
|
-
"@id": "as:anyOf",
|
|
170
|
-
"@type": "@id"
|
|
171
|
-
},
|
|
172
|
-
"closed": {
|
|
173
|
-
"@id": "as:closed",
|
|
174
|
-
"@type": "xsd:dateTime"
|
|
175
|
-
},
|
|
176
|
-
"origin": {
|
|
177
|
-
"@id": "as:origin",
|
|
178
|
-
"@type": "@id"
|
|
179
|
-
},
|
|
180
|
-
"accuracy": {
|
|
181
|
-
"@id": "as:accuracy",
|
|
182
|
-
"@type": "xsd:float"
|
|
183
|
-
},
|
|
184
|
-
"prev": {
|
|
185
|
-
"@id": "as:prev",
|
|
186
|
-
"@type": "@id"
|
|
187
|
-
},
|
|
188
|
-
"preview": {
|
|
189
|
-
"@id": "as:preview",
|
|
190
|
-
"@type": "@id"
|
|
191
|
-
},
|
|
192
|
-
"replies": {
|
|
193
|
-
"@id": "as:replies",
|
|
194
|
-
"@type": "@id"
|
|
195
|
-
},
|
|
196
|
-
"result": {
|
|
197
|
-
"@id": "as:result",
|
|
198
|
-
"@type": "@id"
|
|
199
|
-
},
|
|
200
|
-
"audience": {
|
|
201
|
-
"@id": "as:audience",
|
|
202
|
-
"@type": "@id"
|
|
203
|
-
},
|
|
204
|
-
"partOf": {
|
|
205
|
-
"@id": "as:partOf",
|
|
206
|
-
"@type": "@id"
|
|
207
|
-
},
|
|
208
|
-
"tag": {
|
|
209
|
-
"@id": "as:tag",
|
|
210
|
-
"@type": "@id"
|
|
211
|
-
},
|
|
212
|
-
"target": {
|
|
213
|
-
"@id": "as:target",
|
|
214
|
-
"@type": "@id"
|
|
215
|
-
},
|
|
216
|
-
"to": {
|
|
217
|
-
"@id": "as:to",
|
|
218
|
-
"@type": "@id"
|
|
219
|
-
},
|
|
220
|
-
"url": {
|
|
221
|
-
"@id": "as:url",
|
|
222
|
-
"@type": "@id"
|
|
223
|
-
},
|
|
224
|
-
"altitude": {
|
|
225
|
-
"@id": "as:altitude",
|
|
226
|
-
"@type": "xsd:float"
|
|
227
|
-
},
|
|
228
|
-
"content": "as:content",
|
|
229
|
-
"contentMap": {
|
|
230
|
-
"@id": "as:content",
|
|
231
|
-
"@container": "@language"
|
|
232
|
-
},
|
|
233
|
-
"name": "as:name",
|
|
234
|
-
"nameMap": {
|
|
235
|
-
"@id": "as:name",
|
|
236
|
-
"@container": "@language"
|
|
237
|
-
},
|
|
238
|
-
"duration": {
|
|
239
|
-
"@id": "as:duration",
|
|
240
|
-
"@type": "xsd:duration"
|
|
241
|
-
},
|
|
242
|
-
"endTime": {
|
|
243
|
-
"@id": "as:endTime",
|
|
244
|
-
"@type": "xsd:dateTime"
|
|
245
|
-
},
|
|
246
|
-
"height": {
|
|
247
|
-
"@id": "as:height",
|
|
248
|
-
"@type": "xsd:nonNegativeInteger"
|
|
249
|
-
},
|
|
250
|
-
"href": {
|
|
251
|
-
"@id": "as:href",
|
|
252
|
-
"@type": "@id"
|
|
253
|
-
},
|
|
254
|
-
"hreflang": "as:hreflang",
|
|
255
|
-
"latitude": {
|
|
256
|
-
"@id": "as:latitude",
|
|
257
|
-
"@type": "xsd:float"
|
|
258
|
-
},
|
|
259
|
-
"longitude": {
|
|
260
|
-
"@id": "as:longitude",
|
|
261
|
-
"@type": "xsd:float"
|
|
262
|
-
},
|
|
263
|
-
"mediaType": "as:mediaType",
|
|
264
|
-
"published": {
|
|
265
|
-
"@id": "as:published",
|
|
266
|
-
"@type": "xsd:dateTime"
|
|
267
|
-
},
|
|
268
|
-
"radius": {
|
|
269
|
-
"@id": "as:radius",
|
|
270
|
-
"@type": "xsd:float"
|
|
271
|
-
},
|
|
272
|
-
"rel": "as:rel",
|
|
273
|
-
"startIndex": {
|
|
274
|
-
"@id": "as:startIndex",
|
|
275
|
-
"@type": "xsd:nonNegativeInteger"
|
|
276
|
-
},
|
|
277
|
-
"startTime": {
|
|
278
|
-
"@id": "as:startTime",
|
|
279
|
-
"@type": "xsd:dateTime"
|
|
280
|
-
},
|
|
281
|
-
"summary": "as:summary",
|
|
282
|
-
"summaryMap": {
|
|
283
|
-
"@id": "as:summary",
|
|
284
|
-
"@container": "@language"
|
|
285
|
-
},
|
|
286
|
-
"totalItems": {
|
|
287
|
-
"@id": "as:totalItems",
|
|
288
|
-
"@type": "xsd:nonNegativeInteger"
|
|
289
|
-
},
|
|
290
|
-
"units": "as:units",
|
|
291
|
-
"updated": {
|
|
292
|
-
"@id": "as:updated",
|
|
293
|
-
"@type": "xsd:dateTime"
|
|
294
|
-
},
|
|
295
|
-
"width": {
|
|
296
|
-
"@id": "as:width",
|
|
297
|
-
"@type": "xsd:nonNegativeInteger"
|
|
298
|
-
},
|
|
299
|
-
"describes": {
|
|
300
|
-
"@id": "as:describes",
|
|
301
|
-
"@type": "@id"
|
|
302
|
-
},
|
|
303
|
-
"formerType": {
|
|
304
|
-
"@id": "as:formerType",
|
|
305
|
-
"@type": "@id"
|
|
306
|
-
},
|
|
307
|
-
"deleted": {
|
|
308
|
-
"@id": "as:deleted",
|
|
309
|
-
"@type": "xsd:dateTime"
|
|
310
|
-
},
|
|
311
|
-
"inbox": {
|
|
312
|
-
"@id": "ldp:inbox",
|
|
313
|
-
"@type": "@id"
|
|
314
|
-
},
|
|
315
|
-
"outbox": {
|
|
316
|
-
"@id": "as:outbox",
|
|
317
|
-
"@type": "@id"
|
|
318
|
-
},
|
|
319
|
-
"following": {
|
|
320
|
-
"@id": "as:following",
|
|
321
|
-
"@type": "@id"
|
|
322
|
-
},
|
|
323
|
-
"followers": {
|
|
324
|
-
"@id": "as:followers",
|
|
325
|
-
"@type": "@id"
|
|
326
|
-
},
|
|
327
|
-
"streams": {
|
|
328
|
-
"@id": "as:streams",
|
|
329
|
-
"@type": "@id"
|
|
330
|
-
},
|
|
331
|
-
"preferredUsername": "as:preferredUsername",
|
|
332
|
-
"endpoints": {
|
|
333
|
-
"@id": "as:endpoints",
|
|
334
|
-
"@type": "@id"
|
|
335
|
-
},
|
|
336
|
-
"uploadMedia": {
|
|
337
|
-
"@id": "as:uploadMedia",
|
|
338
|
-
"@type": "@id"
|
|
339
|
-
},
|
|
340
|
-
"proxyUrl": {
|
|
341
|
-
"@id": "as:proxyUrl",
|
|
342
|
-
"@type": "@id"
|
|
343
|
-
},
|
|
344
|
-
"liked": {
|
|
345
|
-
"@id": "as:liked",
|
|
346
|
-
"@type": "@id"
|
|
347
|
-
},
|
|
348
|
-
"oauthAuthorizationEndpoint": {
|
|
349
|
-
"@id": "as:oauthAuthorizationEndpoint",
|
|
350
|
-
"@type": "@id"
|
|
351
|
-
},
|
|
352
|
-
"oauthTokenEndpoint": {
|
|
353
|
-
"@id": "as:oauthTokenEndpoint",
|
|
354
|
-
"@type": "@id"
|
|
355
|
-
},
|
|
356
|
-
"provideClientKey": {
|
|
357
|
-
"@id": "as:provideClientKey",
|
|
358
|
-
"@type": "@id"
|
|
359
|
-
},
|
|
360
|
-
"signClientKey": {
|
|
361
|
-
"@id": "as:signClientKey",
|
|
362
|
-
"@type": "@id"
|
|
363
|
-
},
|
|
364
|
-
"sharedInbox": {
|
|
365
|
-
"@id": "as:sharedInbox",
|
|
366
|
-
"@type": "@id"
|
|
367
|
-
},
|
|
368
|
-
"Public": {
|
|
369
|
-
"@id": "as:Public",
|
|
370
|
-
"@type": "@id"
|
|
371
|
-
},
|
|
372
|
-
"source": "as:source",
|
|
373
|
-
"likes": {
|
|
374
|
-
"@id": "as:likes",
|
|
375
|
-
"@type": "@id"
|
|
376
|
-
},
|
|
377
|
-
"shares": {
|
|
378
|
-
"@id": "as:shares",
|
|
379
|
-
"@type": "@id"
|
|
380
|
-
},
|
|
381
|
-
"alsoKnownAs": {
|
|
382
|
-
"@id": "as:alsoKnownAs",
|
|
383
|
-
"@type": "@id"
|
|
384
|
-
}
|
|
385
|
-
} },
|
|
500
|
+
"https://www.w3.org/ns/activitystreams": activitystreams_default,
|
|
386
501
|
"https://w3id.org/security/v1": { "@context": {
|
|
387
502
|
"id": "@id",
|
|
388
503
|
"type": "@type",
|
|
@@ -4295,6 +4410,7 @@ const preloadedContexts = {
|
|
|
4295
4410
|
"@type": "@id"
|
|
4296
4411
|
}
|
|
4297
4412
|
} },
|
|
4413
|
+
"https://www.w3.org/ns/cid/v1": cid_v1_default,
|
|
4298
4414
|
"https://w3id.org/fep/ef61": { "@context": {
|
|
4299
4415
|
"gateways": {
|
|
4300
4416
|
"@id": "https://w3id.org/fep/ef61/gateways",
|
|
@@ -4550,6 +4666,7 @@ async function getRemoteDocument(url, response, fetch) {
|
|
|
4550
4666
|
* - <https://w3id.org/security/data-integrity/v1>
|
|
4551
4667
|
* - <https://w3id.org/security/data-integrity/v2>
|
|
4552
4668
|
* - <https://www.w3.org/ns/did/v1>
|
|
4669
|
+
* - <https://www.w3.org/ns/cid/v1>
|
|
4553
4670
|
* - <https://w3id.org/security/multikey/v1>
|
|
4554
4671
|
* - <https://w3id.org/fep/ef61>
|
|
4555
4672
|
* - <https://purl.archive.org/socialweb/webfinger>
|
|
@@ -4632,4 +4749,4 @@ function getDocumentLoader({ allowPrivateAddress, maxRedirection, skipPreloadedC
|
|
|
4632
4749
|
return load;
|
|
4633
4750
|
}
|
|
4634
4751
|
//#endregion
|
|
4635
|
-
export { getRemoteDocument as n, preloadedContexts as r, getDocumentLoader as t };
|
|
4752
|
+
export { cid_v1_default as i, getRemoteDocument as n, preloadedContexts as r, getDocumentLoader as t };
|