@fedify/fedify 0.15.0 → 1.0.0-dev.388
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGES.md +33 -0
- package/FEDERATION.md +2 -0
- package/esm/federation/handler.js +44 -17
- package/esm/federation/send.js +31 -13
- package/esm/runtime/contexts.js +152 -0
- package/esm/sig/http.js +11 -1
- package/esm/sig/ld.js +203 -0
- package/esm/sig/mod.js +1 -0
- package/esm/testing/fixtures/activitypub.academy/users/brauca_darradiul +83 -0
- package/esm/testing/fixtures/w3id.org/identity/v1 +152 -0
- package/esm/vocab/accept.yaml +1 -0
- package/esm/vocab/activity.yaml +1 -0
- package/esm/vocab/add.yaml +1 -0
- package/esm/vocab/announce.yaml +1 -0
- package/esm/vocab/arrive.yaml +1 -0
- package/esm/vocab/block.yaml +1 -0
- package/esm/vocab/create.yaml +1 -0
- package/esm/vocab/delete.yaml +1 -0
- package/esm/vocab/dislike.yaml +1 -0
- package/esm/vocab/flag.yaml +1 -0
- package/esm/vocab/follow.yaml +1 -0
- package/esm/vocab/ignore.yaml +1 -0
- package/esm/vocab/intransitiveactivity.yaml +1 -0
- package/esm/vocab/invite.yaml +1 -0
- package/esm/vocab/join.yaml +1 -0
- package/esm/vocab/leave.yaml +1 -0
- package/esm/vocab/like.yaml +1 -0
- package/esm/vocab/listen.yaml +1 -0
- package/esm/vocab/move.yaml +1 -0
- package/esm/vocab/offer.yaml +1 -0
- package/esm/vocab/question.yaml +1 -0
- package/esm/vocab/read.yaml +1 -0
- package/esm/vocab/reject.yaml +1 -0
- package/esm/vocab/remove.yaml +1 -0
- package/esm/vocab/tentativeaccept.yaml +1 -0
- package/esm/vocab/tentativereject.yaml +1 -0
- package/esm/vocab/travel.yaml +1 -0
- package/esm/vocab/undo.yaml +1 -0
- package/esm/vocab/update.yaml +1 -0
- package/esm/vocab/view.yaml +1 -0
- package/esm/vocab/vocab.js +59 -0
- package/package.json +1 -1
- package/types/federation/handler.d.ts.map +1 -1
- package/types/federation/send.d.ts.map +1 -1
- package/types/runtime/contexts.d.ts.map +1 -1
- package/types/sig/http.d.ts.map +1 -1
- package/types/sig/ld.d.ts +129 -0
- package/types/sig/ld.d.ts.map +1 -0
- package/types/sig/mod.d.ts +1 -0
- package/types/sig/mod.d.ts.map +1 -1
- package/types/vocab/vocab.d.ts.map +1 -1
@@ -0,0 +1,83 @@
|
|
1
|
+
{
|
2
|
+
"@context": [
|
3
|
+
"https://www.w3.org/ns/activitystreams",
|
4
|
+
"https://w3id.org/security/v1",
|
5
|
+
{
|
6
|
+
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
|
7
|
+
"toot": "http://joinmastodon.org/ns#",
|
8
|
+
"featured": {
|
9
|
+
"@id": "toot:featured",
|
10
|
+
"@type": "@id"
|
11
|
+
},
|
12
|
+
"featuredTags": {
|
13
|
+
"@id": "toot:featuredTags",
|
14
|
+
"@type": "@id"
|
15
|
+
},
|
16
|
+
"alsoKnownAs": {
|
17
|
+
"@id": "as:alsoKnownAs",
|
18
|
+
"@type": "@id"
|
19
|
+
},
|
20
|
+
"movedTo": {
|
21
|
+
"@id": "as:movedTo",
|
22
|
+
"@type": "@id"
|
23
|
+
},
|
24
|
+
"schema": "http://schema.org#",
|
25
|
+
"PropertyValue": "schema:PropertyValue",
|
26
|
+
"value": "schema:value",
|
27
|
+
"discoverable": "toot:discoverable",
|
28
|
+
"Device": "toot:Device",
|
29
|
+
"Ed25519Signature": "toot:Ed25519Signature",
|
30
|
+
"Ed25519Key": "toot:Ed25519Key",
|
31
|
+
"Curve25519Key": "toot:Curve25519Key",
|
32
|
+
"EncryptedMessage": "toot:EncryptedMessage",
|
33
|
+
"publicKeyBase64": "toot:publicKeyBase64",
|
34
|
+
"deviceId": "toot:deviceId",
|
35
|
+
"claim": {
|
36
|
+
"@type": "@id",
|
37
|
+
"@id": "toot:claim"
|
38
|
+
},
|
39
|
+
"fingerprintKey": {
|
40
|
+
"@type": "@id",
|
41
|
+
"@id": "toot:fingerprintKey"
|
42
|
+
},
|
43
|
+
"identityKey": {
|
44
|
+
"@type": "@id",
|
45
|
+
"@id": "toot:identityKey"
|
46
|
+
},
|
47
|
+
"devices": {
|
48
|
+
"@type": "@id",
|
49
|
+
"@id": "toot:devices"
|
50
|
+
},
|
51
|
+
"messageFranking": "toot:messageFranking",
|
52
|
+
"messageType": "toot:messageType",
|
53
|
+
"cipherText": "toot:cipherText",
|
54
|
+
"suspended": "toot:suspended"
|
55
|
+
}
|
56
|
+
],
|
57
|
+
"id": "https://activitypub.academy/users/brauca_darradiul",
|
58
|
+
"type": "Person",
|
59
|
+
"following": "https://activitypub.academy/users/brauca_darradiul/following",
|
60
|
+
"followers": "https://activitypub.academy/users/brauca_darradiul/followers",
|
61
|
+
"inbox": "https://activitypub.academy/users/brauca_darradiul/inbox",
|
62
|
+
"outbox": "https://activitypub.academy/users/brauca_darradiul/outbox",
|
63
|
+
"featured": "https://activitypub.academy/users/brauca_darradiul/collections/featured",
|
64
|
+
"featuredTags": "https://activitypub.academy/users/brauca_darradiul/collections/tags",
|
65
|
+
"preferredUsername": "brauca_darradiul",
|
66
|
+
"name": "Brauca Darradiul",
|
67
|
+
"summary": "",
|
68
|
+
"url": "https://activitypub.academy/@brauca_darradiul",
|
69
|
+
"manuallyApprovesFollowers": false,
|
70
|
+
"discoverable": false,
|
71
|
+
"published": "2024-09-12T00:00:00Z",
|
72
|
+
"devices": "https://activitypub.academy/users/brauca_darradiul/collections/devices",
|
73
|
+
"publicKey": {
|
74
|
+
"id": "https://activitypub.academy/users/brauca_darradiul#main-key",
|
75
|
+
"owner": "https://activitypub.academy/users/brauca_darradiul",
|
76
|
+
"publicKeyPem": "-----BEGIN PUBLIC KEY----- MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5W/9rYXddIjKo9Ury/LK XqQYbj0cOx/c+T1uRHJzced8JbvXdiBCNZXVVrIaygy3G/MOvxMW4kbA1bqeiSYY V9TXBMI6gVVDnl5VG64uGxswcvUWqQU5Q1mwuwyGCPhexAq3BKe/7uH64AZgx11e KLl3W3WcIMKmunYn8+z6hm0003hMensXMNpMVfqLoXaeuro7pYnwOSWoHFS3AxWK llMwAoa5waulgai8gD7/uA5Y9Hvguk/OBYBh9YnIX5N5jScsmY/EYuesNIH2Ct9s E3aVkTjZUt55JtXnk8Q9eTnrcB/98RtLWH4pJTKJhzxv19i3aZT3yDApPk0Q/biI JQIDAQAB -----END PUBLIC KEY----- "
|
77
|
+
},
|
78
|
+
"tag": [],
|
79
|
+
"attachment": [],
|
80
|
+
"endpoints": {
|
81
|
+
"sharedInbox": "https://activitypub.academy/inbox"
|
82
|
+
}
|
83
|
+
}
|
@@ -0,0 +1,152 @@
|
|
1
|
+
{
|
2
|
+
"@context": {
|
3
|
+
"id": "@id",
|
4
|
+
"type": "@type",
|
5
|
+
"cred": "https://w3id.org/credentials#",
|
6
|
+
"dc": "http://purl.org/dc/terms/",
|
7
|
+
"identity": "https://w3id.org/identity#",
|
8
|
+
"perm": "https://w3id.org/permissions#",
|
9
|
+
"ps": "https://w3id.org/payswarm#",
|
10
|
+
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
|
11
|
+
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
|
12
|
+
"sec": "https://w3id.org/security#",
|
13
|
+
"schema": "http://schema.org/",
|
14
|
+
"xsd": "http://www.w3.org/2001/XMLSchema#",
|
15
|
+
"Group": "https://www.w3.org/ns/activitystreams#Group",
|
16
|
+
"claim": {
|
17
|
+
"@id": "cred:claim",
|
18
|
+
"@type": "@id"
|
19
|
+
},
|
20
|
+
"credential": {
|
21
|
+
"@id": "cred:credential",
|
22
|
+
"@type": "@id"
|
23
|
+
},
|
24
|
+
"issued": {
|
25
|
+
"@id": "cred:issued",
|
26
|
+
"@type": "xsd:dateTime"
|
27
|
+
},
|
28
|
+
"issuer": {
|
29
|
+
"@id": "cred:issuer",
|
30
|
+
"@type": "@id"
|
31
|
+
},
|
32
|
+
"recipient": {
|
33
|
+
"@id": "cred:recipient",
|
34
|
+
"@type": "@id"
|
35
|
+
},
|
36
|
+
"Credential": "cred:Credential",
|
37
|
+
"CryptographicKeyCredential": "cred:CryptographicKeyCredential",
|
38
|
+
"about": {
|
39
|
+
"@id": "schema:about",
|
40
|
+
"@type": "@id"
|
41
|
+
},
|
42
|
+
"address": {
|
43
|
+
"@id": "schema:address",
|
44
|
+
"@type": "@id"
|
45
|
+
},
|
46
|
+
"addressCountry": "schema:addressCountry",
|
47
|
+
"addressLocality": "schema:addressLocality",
|
48
|
+
"addressRegion": "schema:addressRegion",
|
49
|
+
"comment": "rdfs:comment",
|
50
|
+
"created": {
|
51
|
+
"@id": "dc:created",
|
52
|
+
"@type": "xsd:dateTime"
|
53
|
+
},
|
54
|
+
"creator": {
|
55
|
+
"@id": "dc:creator",
|
56
|
+
"@type": "@id"
|
57
|
+
},
|
58
|
+
"description": "schema:description",
|
59
|
+
"email": "schema:email",
|
60
|
+
"familyName": "schema:familyName",
|
61
|
+
"givenName": "schema:givenName",
|
62
|
+
"image": {
|
63
|
+
"@id": "schema:image",
|
64
|
+
"@type": "@id"
|
65
|
+
},
|
66
|
+
"label": "rdfs:label",
|
67
|
+
"name": "schema:name",
|
68
|
+
"postalCode": "schema:postalCode",
|
69
|
+
"streetAddress": "schema:streetAddress",
|
70
|
+
"title": "dc:title",
|
71
|
+
"url": {
|
72
|
+
"@id": "schema:url",
|
73
|
+
"@type": "@id"
|
74
|
+
},
|
75
|
+
"Person": "schema:Person",
|
76
|
+
"PostalAddress": "schema:PostalAddress",
|
77
|
+
"Organization": "schema:Organization",
|
78
|
+
"identityService": {
|
79
|
+
"@id": "identity:identityService",
|
80
|
+
"@type": "@id"
|
81
|
+
},
|
82
|
+
"idp": {
|
83
|
+
"@id": "identity:idp",
|
84
|
+
"@type": "@id"
|
85
|
+
},
|
86
|
+
"Identity": "identity:Identity",
|
87
|
+
"paymentProcessor": "ps:processor",
|
88
|
+
"preferences": {
|
89
|
+
"@id": "ps:preferences",
|
90
|
+
"@type": "@vocab"
|
91
|
+
},
|
92
|
+
"cipherAlgorithm": "sec:cipherAlgorithm",
|
93
|
+
"cipherData": "sec:cipherData",
|
94
|
+
"cipherKey": "sec:cipherKey",
|
95
|
+
"digestAlgorithm": "sec:digestAlgorithm",
|
96
|
+
"digestValue": "sec:digestValue",
|
97
|
+
"domain": "sec:domain",
|
98
|
+
"expires": {
|
99
|
+
"@id": "sec:expiration",
|
100
|
+
"@type": "xsd:dateTime"
|
101
|
+
},
|
102
|
+
"initializationVector": "sec:initializationVector",
|
103
|
+
"member": {
|
104
|
+
"@id": "schema:member",
|
105
|
+
"@type": "@id"
|
106
|
+
},
|
107
|
+
"memberOf": {
|
108
|
+
"@id": "schema:memberOf",
|
109
|
+
"@type": "@id"
|
110
|
+
},
|
111
|
+
"nonce": "sec:nonce",
|
112
|
+
"normalizationAlgorithm": "sec:normalizationAlgorithm",
|
113
|
+
"owner": {
|
114
|
+
"@id": "sec:owner",
|
115
|
+
"@type": "@id"
|
116
|
+
},
|
117
|
+
"password": "sec:password",
|
118
|
+
"privateKey": {
|
119
|
+
"@id": "sec:privateKey",
|
120
|
+
"@type": "@id"
|
121
|
+
},
|
122
|
+
"privateKeyPem": "sec:privateKeyPem",
|
123
|
+
"publicKey": {
|
124
|
+
"@id": "sec:publicKey",
|
125
|
+
"@type": "@id"
|
126
|
+
},
|
127
|
+
"publicKeyPem": "sec:publicKeyPem",
|
128
|
+
"publicKeyService": {
|
129
|
+
"@id": "sec:publicKeyService",
|
130
|
+
"@type": "@id"
|
131
|
+
},
|
132
|
+
"revoked": {
|
133
|
+
"@id": "sec:revoked",
|
134
|
+
"@type": "xsd:dateTime"
|
135
|
+
},
|
136
|
+
"signature": "sec:signature",
|
137
|
+
"signatureAlgorithm": "sec:signatureAlgorithm",
|
138
|
+
"signatureValue": "sec:signatureValue",
|
139
|
+
"CryptographicKey": "sec:Key",
|
140
|
+
"EncryptedMessage": "sec:EncryptedMessage",
|
141
|
+
"GraphSignature2012": "sec:GraphSignature2012",
|
142
|
+
"LinkedDataSignature2015": "sec:LinkedDataSignature2015",
|
143
|
+
"accessControl": {
|
144
|
+
"@id": "perm:accessControl",
|
145
|
+
"@type": "@id"
|
146
|
+
},
|
147
|
+
"writePermission": {
|
148
|
+
"@id": "perm:writePermission",
|
149
|
+
"@type": "@id"
|
150
|
+
}
|
151
|
+
}
|
152
|
+
}
|
package/esm/vocab/accept.yaml
CHANGED
package/esm/vocab/activity.yaml
CHANGED
package/esm/vocab/add.yaml
CHANGED
package/esm/vocab/announce.yaml
CHANGED
@@ -11,6 +11,7 @@ description: |
|
|
11
11
|
defaultContext:
|
12
12
|
- "https://www.w3.org/ns/activitystreams"
|
13
13
|
- "https://w3id.org/security/data-integrity/v1"
|
14
|
+
- "https://w3id.org/identity/v1"
|
14
15
|
- toot: "http://joinmastodon.org/ns#"
|
15
16
|
misskey: "https://misskey-hub.net/ns#"
|
16
17
|
fedibird: "http://fedibird.com/ns#"
|
package/esm/vocab/arrive.yaml
CHANGED
package/esm/vocab/block.yaml
CHANGED
package/esm/vocab/create.yaml
CHANGED
@@ -8,6 +8,7 @@ description: Indicates that the `actor` has created the `object`.
|
|
8
8
|
defaultContext:
|
9
9
|
- "https://www.w3.org/ns/activitystreams"
|
10
10
|
- "https://w3id.org/security/data-integrity/v1"
|
11
|
+
- "https://w3id.org/identity/v1"
|
11
12
|
- toot: "http://joinmastodon.org/ns#"
|
12
13
|
misskey: "https://misskey-hub.net/ns#"
|
13
14
|
fedibird: "http://fedibird.com/ns#"
|
package/esm/vocab/delete.yaml
CHANGED
@@ -10,6 +10,7 @@ description: |
|
|
10
10
|
defaultContext:
|
11
11
|
- "https://www.w3.org/ns/activitystreams"
|
12
12
|
- "https://w3id.org/security/data-integrity/v1"
|
13
|
+
- "https://w3id.org/identity/v1"
|
13
14
|
- toot: "http://joinmastodon.org/ns#"
|
14
15
|
misskey: "https://misskey-hub.net/ns#"
|
15
16
|
fedibird: "http://fedibird.com/ns#"
|
package/esm/vocab/dislike.yaml
CHANGED
package/esm/vocab/flag.yaml
CHANGED
package/esm/vocab/follow.yaml
CHANGED
package/esm/vocab/ignore.yaml
CHANGED
package/esm/vocab/invite.yaml
CHANGED
package/esm/vocab/join.yaml
CHANGED
package/esm/vocab/leave.yaml
CHANGED
package/esm/vocab/like.yaml
CHANGED
package/esm/vocab/listen.yaml
CHANGED
package/esm/vocab/move.yaml
CHANGED
package/esm/vocab/offer.yaml
CHANGED
package/esm/vocab/question.yaml
CHANGED
@@ -16,6 +16,7 @@ description: |
|
|
16
16
|
defaultContext:
|
17
17
|
- "https://www.w3.org/ns/activitystreams"
|
18
18
|
- "https://w3id.org/security/data-integrity/v1"
|
19
|
+
- "https://w3id.org/identity/v1"
|
19
20
|
- toot: "http://joinmastodon.org/ns#"
|
20
21
|
misskey: "https://misskey-hub.net/ns#"
|
21
22
|
fedibird: "http://fedibird.com/ns#"
|
package/esm/vocab/read.yaml
CHANGED
package/esm/vocab/reject.yaml
CHANGED
package/esm/vocab/remove.yaml
CHANGED
package/esm/vocab/travel.yaml
CHANGED
package/esm/vocab/undo.yaml
CHANGED
package/esm/vocab/update.yaml
CHANGED
@@ -13,6 +13,7 @@ description: |
|
|
13
13
|
defaultContext:
|
14
14
|
- "https://www.w3.org/ns/activitystreams"
|
15
15
|
- "https://w3id.org/security/data-integrity/v1"
|
16
|
+
- "https://w3id.org/identity/v1"
|
16
17
|
- toot: "http://joinmastodon.org/ns#"
|
17
18
|
misskey: "https://misskey-hub.net/ns#"
|
18
19
|
fedibird: "http://fedibird.com/ns#"
|