@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.
- package/deno.json +4 -3
- package/dist/chunk-CUT6urMc.cjs +30 -0
- package/dist/jsonld.cjs +8 -0
- package/dist/jsonld.d.cts +6 -0
- package/dist/jsonld.d.ts +6 -0
- package/dist/jsonld.js +7 -0
- package/dist/mod.cjs +4485 -4329
- package/dist/mod.d.cts +95 -4
- package/dist/mod.d.ts +95 -4
- package/dist/mod.js +4474 -4299
- package/dist/tests/decimal.test.cjs +154 -0
- package/dist/tests/decimal.test.d.cts +1 -0
- package/dist/tests/decimal.test.d.ts +1 -0
- package/dist/tests/decimal.test.js +153 -0
- package/dist/tests/docloader-B7jXFZpf.cjs +4562 -0
- package/dist/tests/docloader-DMCOWvVB.js +4550 -0
- package/dist/tests/docloader.test.cjs +7 -4491
- package/dist/tests/docloader.test.js +4 -4488
- package/dist/tests/internal/multicodec.test.cjs +77 -0
- package/dist/tests/internal/multicodec.test.d.cts +1 -0
- package/dist/tests/internal/multicodec.test.d.ts +1 -0
- package/dist/tests/internal/multicodec.test.js +76 -0
- package/dist/tests/key-ByCmSI2y.js +183 -0
- package/dist/tests/key-CCPn6TEY.cjs +231 -0
- package/dist/tests/key.test.cjs +36 -212
- package/dist/tests/key.test.js +9 -185
- package/dist/tests/langstr-BsVE3s9u.js +30 -0
- package/dist/tests/langstr-EPh86hXK.cjs +36 -0
- package/dist/tests/langstr.test.cjs +5 -33
- package/dist/tests/langstr.test.js +1 -29
- package/dist/tests/link.test.cjs +1 -1
- package/dist/tests/link.test.js +1 -1
- package/dist/tests/multibase/multibase.test.cjs +1 -1
- package/dist/tests/multibase/multibase.test.js +1 -1
- package/dist/tests/multicodec--6hQ74zI.cjs +59 -0
- package/dist/tests/multicodec-Dq3IiOV4.js +41 -0
- package/dist/tests/{request-3ywvRFy1.js → request-BQtyeAfw.js} +6 -3
- package/dist/tests/{request-Dhnqve0g.cjs → request-CW9KOmQu.cjs} +6 -3
- package/dist/tests/request.test.cjs +1 -1
- package/dist/tests/request.test.js +1 -1
- package/dist/tests/url.test.cjs +1 -1
- package/dist/tests/url.test.js +1 -1
- package/package.json +12 -2
- package/src/contexts/activitystreams.json +379 -0
- package/src/contexts/did-v1.json +57 -0
- package/src/contexts/fep-5711.json +36 -0
- package/src/contexts/gotosocial.json +86 -0
- package/src/contexts/identity-v1.json +152 -0
- package/src/contexts/joinmastodon.json +28 -0
- package/src/contexts/schemaorg.json +8845 -0
- package/src/contexts/security-data-integrity-v1.json +78 -0
- package/src/contexts/security-data-integrity-v2.json +81 -0
- package/src/contexts/security-multikey-v1.json +35 -0
- package/src/contexts/security-v1.json +74 -0
- package/src/contexts/webfinger.json +10 -0
- package/src/contexts.ts +33 -4392
- package/src/decimal.test.ts +90 -0
- package/src/decimal.ts +112 -0
- package/src/internal/multicodec.test.ts +68 -0
- package/src/internal/multicodec.ts +53 -0
- package/src/jsonld.ts +4 -0
- package/src/key.test.ts +22 -1
- package/src/key.ts +9 -8
- package/src/mod.ts +6 -0
- package/tsdown.config.ts +1 -1
- /package/dist/tests/{link-Ck2yj4dH.js → link-C3q2TC2G.js} +0 -0
- /package/dist/tests/{link-CdFPEo9O.cjs → link-DYNFAdNu.cjs} +0 -0
- /package/dist/tests/{multibase-DStmqni9.js → multibase-B4g8pz6F.js} +0 -0
- /package/dist/tests/{multibase-BFbBiaPE.cjs → multibase-o_ovPHYJ.cjs} +0 -0
- /package/dist/tests/{url-fW_DHbih.js → url-CWEP9Zs9.js} +0 -0
- /package/dist/tests/{url-C5Vs9nYh.cjs → url-DIjOdK8Q.cjs} +0 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": {
|
|
3
|
+
"id": "@id",
|
|
4
|
+
"type": "@type",
|
|
5
|
+
"@protected": true,
|
|
6
|
+
"digestMultibase": {
|
|
7
|
+
"@id": "https://w3id.org/security#digestMultibase",
|
|
8
|
+
"@type": "https://w3id.org/security#multibase"
|
|
9
|
+
},
|
|
10
|
+
"proof": {
|
|
11
|
+
"@id": "https://w3id.org/security#proof",
|
|
12
|
+
"@type": "@id",
|
|
13
|
+
"@container": "@graph"
|
|
14
|
+
},
|
|
15
|
+
"DataIntegrityProof": {
|
|
16
|
+
"@id": "https://w3id.org/security#DataIntegrityProof",
|
|
17
|
+
"@context": {
|
|
18
|
+
"@protected": true,
|
|
19
|
+
"id": "@id",
|
|
20
|
+
"type": "@type",
|
|
21
|
+
"challenge": "https://w3id.org/security#challenge",
|
|
22
|
+
"created": {
|
|
23
|
+
"@id": "http://purl.org/dc/terms/created",
|
|
24
|
+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
|
|
25
|
+
},
|
|
26
|
+
"domain": "https://w3id.org/security#domain",
|
|
27
|
+
"expires": {
|
|
28
|
+
"@id": "https://w3id.org/security#expiration",
|
|
29
|
+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
|
|
30
|
+
},
|
|
31
|
+
"nonce": "https://w3id.org/security#nonce",
|
|
32
|
+
"proofPurpose": {
|
|
33
|
+
"@id": "https://w3id.org/security#proofPurpose",
|
|
34
|
+
"@type": "@vocab",
|
|
35
|
+
"@context": {
|
|
36
|
+
"@protected": true,
|
|
37
|
+
"id": "@id",
|
|
38
|
+
"type": "@type",
|
|
39
|
+
"assertionMethod": {
|
|
40
|
+
"@id": "https://w3id.org/security#assertionMethod",
|
|
41
|
+
"@type": "@id",
|
|
42
|
+
"@container": "@set"
|
|
43
|
+
},
|
|
44
|
+
"authentication": {
|
|
45
|
+
"@id": "https://w3id.org/security#authenticationMethod",
|
|
46
|
+
"@type": "@id",
|
|
47
|
+
"@container": "@set"
|
|
48
|
+
},
|
|
49
|
+
"capabilityInvocation": {
|
|
50
|
+
"@id": "https://w3id.org/security#capabilityInvocationMethod",
|
|
51
|
+
"@type": "@id",
|
|
52
|
+
"@container": "@set"
|
|
53
|
+
},
|
|
54
|
+
"capabilityDelegation": {
|
|
55
|
+
"@id": "https://w3id.org/security#capabilityDelegationMethod",
|
|
56
|
+
"@type": "@id",
|
|
57
|
+
"@container": "@set"
|
|
58
|
+
},
|
|
59
|
+
"keyAgreement": {
|
|
60
|
+
"@id": "https://w3id.org/security#keyAgreementMethod",
|
|
61
|
+
"@type": "@id",
|
|
62
|
+
"@container": "@set"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"cryptosuite": "https://w3id.org/security#cryptosuite",
|
|
67
|
+
"proofValue": {
|
|
68
|
+
"@id": "https://w3id.org/security#proofValue",
|
|
69
|
+
"@type": "https://w3id.org/security#multibase"
|
|
70
|
+
},
|
|
71
|
+
"verificationMethod": {
|
|
72
|
+
"@id": "https://w3id.org/security#verificationMethod",
|
|
73
|
+
"@type": "@id"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": {
|
|
3
|
+
"id": "@id",
|
|
4
|
+
"type": "@type",
|
|
5
|
+
"@protected": true,
|
|
6
|
+
"proof": {
|
|
7
|
+
"@id": "https://w3id.org/security#proof",
|
|
8
|
+
"@type": "@id",
|
|
9
|
+
"@container": "@graph"
|
|
10
|
+
},
|
|
11
|
+
"DataIntegrityProof": {
|
|
12
|
+
"@id": "https://w3id.org/security#DataIntegrityProof",
|
|
13
|
+
"@context": {
|
|
14
|
+
"@protected": true,
|
|
15
|
+
"id": "@id",
|
|
16
|
+
"type": "@type",
|
|
17
|
+
"challenge": "https://w3id.org/security#challenge",
|
|
18
|
+
"created": {
|
|
19
|
+
"@id": "http://purl.org/dc/terms/created",
|
|
20
|
+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
|
|
21
|
+
},
|
|
22
|
+
"domain": "https://w3id.org/security#domain",
|
|
23
|
+
"expires": {
|
|
24
|
+
"@id": "https://w3id.org/security#expiration",
|
|
25
|
+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
|
|
26
|
+
},
|
|
27
|
+
"nonce": "https://w3id.org/security#nonce",
|
|
28
|
+
"previousProof": {
|
|
29
|
+
"@id": "https://w3id.org/security#previousProof",
|
|
30
|
+
"@type": "@id"
|
|
31
|
+
},
|
|
32
|
+
"proofPurpose": {
|
|
33
|
+
"@id": "https://w3id.org/security#proofPurpose",
|
|
34
|
+
"@type": "@vocab",
|
|
35
|
+
"@context": {
|
|
36
|
+
"@protected": true,
|
|
37
|
+
"id": "@id",
|
|
38
|
+
"type": "@type",
|
|
39
|
+
"assertionMethod": {
|
|
40
|
+
"@id": "https://w3id.org/security#assertionMethod",
|
|
41
|
+
"@type": "@id",
|
|
42
|
+
"@container": "@set"
|
|
43
|
+
},
|
|
44
|
+
"authentication": {
|
|
45
|
+
"@id": "https://w3id.org/security#authenticationMethod",
|
|
46
|
+
"@type": "@id",
|
|
47
|
+
"@container": "@set"
|
|
48
|
+
},
|
|
49
|
+
"capabilityInvocation": {
|
|
50
|
+
"@id": "https://w3id.org/security#capabilityInvocationMethod",
|
|
51
|
+
"@type": "@id",
|
|
52
|
+
"@container": "@set"
|
|
53
|
+
},
|
|
54
|
+
"capabilityDelegation": {
|
|
55
|
+
"@id": "https://w3id.org/security#capabilityDelegationMethod",
|
|
56
|
+
"@type": "@id",
|
|
57
|
+
"@container": "@set"
|
|
58
|
+
},
|
|
59
|
+
"keyAgreement": {
|
|
60
|
+
"@id": "https://w3id.org/security#keyAgreementMethod",
|
|
61
|
+
"@type": "@id",
|
|
62
|
+
"@container": "@set"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"cryptosuite": {
|
|
67
|
+
"@id": "https://w3id.org/security#cryptosuite",
|
|
68
|
+
"@type": "https://w3id.org/security#cryptosuiteString"
|
|
69
|
+
},
|
|
70
|
+
"proofValue": {
|
|
71
|
+
"@id": "https://w3id.org/security#proofValue",
|
|
72
|
+
"@type": "https://w3id.org/security#multibase"
|
|
73
|
+
},
|
|
74
|
+
"verificationMethod": {
|
|
75
|
+
"@id": "https://w3id.org/security#verificationMethod",
|
|
76
|
+
"@type": "@id"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": {
|
|
3
|
+
"id": "@id",
|
|
4
|
+
"type": "@type",
|
|
5
|
+
"@protected": true,
|
|
6
|
+
"Multikey": {
|
|
7
|
+
"@id": "https://w3id.org/security#Multikey",
|
|
8
|
+
"@context": {
|
|
9
|
+
"@protected": true,
|
|
10
|
+
"id": "@id",
|
|
11
|
+
"type": "@type",
|
|
12
|
+
"controller": {
|
|
13
|
+
"@id": "https://w3id.org/security#controller",
|
|
14
|
+
"@type": "@id"
|
|
15
|
+
},
|
|
16
|
+
"revoked": {
|
|
17
|
+
"@id": "https://w3id.org/security#revoked",
|
|
18
|
+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
|
|
19
|
+
},
|
|
20
|
+
"expires": {
|
|
21
|
+
"@id": "https://w3id.org/security#expiration",
|
|
22
|
+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
|
|
23
|
+
},
|
|
24
|
+
"publicKeyMultibase": {
|
|
25
|
+
"@id": "https://w3id.org/security#publicKeyMultibase",
|
|
26
|
+
"@type": "https://w3id.org/security#multibase"
|
|
27
|
+
},
|
|
28
|
+
"secretKeyMultibase": {
|
|
29
|
+
"@id": "https://w3id.org/security#secretKeyMultibase",
|
|
30
|
+
"@type": "https://w3id.org/security#multibase"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": {
|
|
3
|
+
"id": "@id",
|
|
4
|
+
"type": "@type",
|
|
5
|
+
"dc": "http://purl.org/dc/terms/",
|
|
6
|
+
"sec": "https://w3id.org/security#",
|
|
7
|
+
"xsd": "http://www.w3.org/2001/XMLSchema#",
|
|
8
|
+
"EcdsaKoblitzSignature2016": "sec:EcdsaKoblitzSignature2016",
|
|
9
|
+
"Ed25519Signature2018": "sec:Ed25519Signature2018",
|
|
10
|
+
"EncryptedMessage": "sec:EncryptedMessage",
|
|
11
|
+
"GraphSignature2012": "sec:GraphSignature2012",
|
|
12
|
+
"LinkedDataSignature2015": "sec:LinkedDataSignature2015",
|
|
13
|
+
"LinkedDataSignature2016": "sec:LinkedDataSignature2016",
|
|
14
|
+
"CryptographicKey": "sec:Key",
|
|
15
|
+
"authenticationTag": "sec:authenticationTag",
|
|
16
|
+
"canonicalizationAlgorithm": "sec:canonicalizationAlgorithm",
|
|
17
|
+
"cipherAlgorithm": "sec:cipherAlgorithm",
|
|
18
|
+
"cipherData": "sec:cipherData",
|
|
19
|
+
"cipherKey": "sec:cipherKey",
|
|
20
|
+
"created": {
|
|
21
|
+
"@id": "dc:created",
|
|
22
|
+
"@type": "xsd:dateTime"
|
|
23
|
+
},
|
|
24
|
+
"creator": {
|
|
25
|
+
"@id": "dc:creator",
|
|
26
|
+
"@type": "@id"
|
|
27
|
+
},
|
|
28
|
+
"digestAlgorithm": "sec:digestAlgorithm",
|
|
29
|
+
"digestValue": "sec:digestValue",
|
|
30
|
+
"domain": "sec:domain",
|
|
31
|
+
"encryptionKey": "sec:encryptionKey",
|
|
32
|
+
"expiration": {
|
|
33
|
+
"@id": "sec:expiration",
|
|
34
|
+
"@type": "xsd:dateTime"
|
|
35
|
+
},
|
|
36
|
+
"expires": {
|
|
37
|
+
"@id": "sec:expiration",
|
|
38
|
+
"@type": "xsd:dateTime"
|
|
39
|
+
},
|
|
40
|
+
"initializationVector": "sec:initializationVector",
|
|
41
|
+
"iterationCount": "sec:iterationCount",
|
|
42
|
+
"nonce": "sec:nonce",
|
|
43
|
+
"normalizationAlgorithm": "sec:normalizationAlgorithm",
|
|
44
|
+
"owner": {
|
|
45
|
+
"@id": "sec:owner",
|
|
46
|
+
"@type": "@id"
|
|
47
|
+
},
|
|
48
|
+
"password": "sec:password",
|
|
49
|
+
"privateKey": {
|
|
50
|
+
"@id": "sec:privateKey",
|
|
51
|
+
"@type": "@id"
|
|
52
|
+
},
|
|
53
|
+
"privateKeyPem": "sec:privateKeyPem",
|
|
54
|
+
"publicKey": {
|
|
55
|
+
"@id": "sec:publicKey",
|
|
56
|
+
"@type": "@id"
|
|
57
|
+
},
|
|
58
|
+
"publicKeyBase58": "sec:publicKeyBase58",
|
|
59
|
+
"publicKeyPem": "sec:publicKeyPem",
|
|
60
|
+
"publicKeyWif": "sec:publicKeyWif",
|
|
61
|
+
"publicKeyService": {
|
|
62
|
+
"@id": "sec:publicKeyService",
|
|
63
|
+
"@type": "@id"
|
|
64
|
+
},
|
|
65
|
+
"revoked": {
|
|
66
|
+
"@id": "sec:revoked",
|
|
67
|
+
"@type": "xsd:dateTime"
|
|
68
|
+
},
|
|
69
|
+
"salt": "sec:salt",
|
|
70
|
+
"signature": "sec:signature",
|
|
71
|
+
"signatureAlgorithm": "sec:signingAlgorithm",
|
|
72
|
+
"signatureValue": "sec:signatureValue"
|
|
73
|
+
}
|
|
74
|
+
}
|