@fedify/vocab 2.4.0-pr.934.40 → 2.4.0
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/mod.cjs +31713 -8698
- package/dist/mod.d.cts +4708 -7
- package/dist/mod.d.ts +4708 -7
- package/dist/mod.js +31606 -8598
- package/dist-tests/actor-D7_iX4I4.mjs +276 -0
- package/dist-tests/actor.test.mjs +55 -49
- package/dist-tests/application.yaml +15 -0
- package/dist-tests/audio.yaml +2 -1
- package/dist-tests/document.yaml +14 -1
- package/dist-tests/{actor-CnnyTI7i.mjs → esm-DP2Spt0u.mjs} +15 -211
- package/dist-tests/gateway.test.mjs +1906 -0
- package/dist-tests/group.yaml +15 -0
- package/dist-tests/image.yaml +2 -1
- package/dist-tests/link.yaml +14 -1
- package/dist-tests/lookup-IiNFWuXL.mjs +480 -0
- package/dist-tests/lookup.test.mjs +10 -268
- package/dist-tests/object.yaml +15 -0
- package/dist-tests/organization.yaml +15 -0
- package/dist-tests/page.yaml +2 -1
- package/dist-tests/person.yaml +15 -0
- package/dist-tests/portable-lookup.test.mjs +653 -0
- package/dist-tests/service.yaml +15 -0
- package/dist-tests/signed-representation.test.mjs +189 -0
- package/dist-tests/translation.test.mjs +404 -0
- package/dist-tests/translation.yaml +91 -0
- package/dist-tests/type.test.mjs +2 -2
- package/dist-tests/video.yaml +2 -1
- package/dist-tests/{vocab-OU5GYbNg.mjs → vocab-COZcxf00.mjs} +31227 -8501
- package/dist-tests/vocab.test.mjs +824 -6
- package/package.json +5 -5
- package/src/__snapshots__/vocab.test.ts.snap +345 -30
- package/src/actor.test.ts +41 -40
- package/src/actor.ts +120 -1
- package/src/application.yaml +15 -0
- package/src/audio.yaml +2 -1
- package/src/document.yaml +14 -1
- package/src/gateway.test.ts +2637 -0
- package/src/group.yaml +15 -0
- package/src/image.yaml +2 -1
- package/src/link.yaml +14 -1
- package/src/lookup.test.ts +6 -5
- package/src/lookup.ts +460 -33
- package/src/mod.ts +9 -0
- package/src/object.yaml +15 -0
- package/src/organization.yaml +15 -0
- package/src/page.yaml +2 -1
- package/src/person.yaml +15 -0
- package/src/portable-lookup.test.ts +889 -0
- package/src/preprocessors.ts +4 -2
- package/src/service.yaml +15 -0
- package/src/signed-representation.test.ts +277 -0
- package/src/translation.test.ts +518 -0
- package/src/translation.yaml +91 -0
- package/src/video.yaml +2 -1
- package/src/vocab.test.ts +1155 -2
- /package/dist-tests/{type-_BlsfT3S.mjs → type-BMdjm4Eg.mjs} +0 -0
- /package/dist-tests/{utils-CQjrpUkt.mjs → utils-Df2odC27.mjs} +0 -0
package/src/group.yaml
CHANGED
|
@@ -7,6 +7,7 @@ entity: true
|
|
|
7
7
|
description: Represents a formal or informal collective of Actors.
|
|
8
8
|
defaultContext:
|
|
9
9
|
- "https://www.w3.org/ns/activitystreams"
|
|
10
|
+
- "https://w3id.org/fep/ef61"
|
|
10
11
|
- "https://w3id.org/security/v1"
|
|
11
12
|
- "https://w3id.org/security/data-integrity/v1"
|
|
12
13
|
- "https://www.w3.org/ns/did/v1"
|
|
@@ -78,6 +79,20 @@ properties:
|
|
|
78
79
|
range:
|
|
79
80
|
- "https://w3id.org/security#Multikey"
|
|
80
81
|
|
|
82
|
+
- pluralName: gateways
|
|
83
|
+
singularName: gateway
|
|
84
|
+
singularAccessor: true
|
|
85
|
+
compactName: gateways
|
|
86
|
+
uri: "https://w3id.org/fep/ef61/gateways"
|
|
87
|
+
container: list
|
|
88
|
+
description: |
|
|
89
|
+
Gateways where the latest version of this portable actor object can be
|
|
90
|
+
retrieved.
|
|
91
|
+
|
|
92
|
+
See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
93
|
+
range:
|
|
94
|
+
- "fedify:gatewayUrl"
|
|
95
|
+
|
|
81
96
|
- singularName: manuallyApprovesFollowers
|
|
82
97
|
functional: true
|
|
83
98
|
compactName: manuallyApprovesFollowers
|
package/src/image.yaml
CHANGED
|
@@ -7,6 +7,7 @@ entity: true
|
|
|
7
7
|
description: An image document of any kind.
|
|
8
8
|
defaultContext:
|
|
9
9
|
- "https://www.w3.org/ns/activitystreams"
|
|
10
|
-
- "https://w3id.org/security/data-integrity/
|
|
10
|
+
- "https://w3id.org/security/data-integrity/v2"
|
|
11
|
+
- digestMultibase: "https://www.w3.org/ns/credentials/v2#digestMultibase"
|
|
11
12
|
- "https://gotosocial.org/ns"
|
|
12
13
|
properties: []
|
package/src/link.yaml
CHANGED
|
@@ -12,7 +12,9 @@ description: |
|
|
|
12
12
|
object) to the resource identified by the `href`. Properties of
|
|
13
13
|
the {@link Link} are properties of the reference as opposed to properties of
|
|
14
14
|
the resource.
|
|
15
|
-
defaultContext:
|
|
15
|
+
defaultContext:
|
|
16
|
+
- "https://www.w3.org/ns/activitystreams"
|
|
17
|
+
- "https://w3id.org/fep/ef61"
|
|
16
18
|
|
|
17
19
|
properties:
|
|
18
20
|
- singularName: href
|
|
@@ -48,6 +50,17 @@ properties:
|
|
|
48
50
|
range:
|
|
49
51
|
- "http://www.w3.org/2001/XMLSchema#string"
|
|
50
52
|
|
|
53
|
+
- singularName: digestMultibase
|
|
54
|
+
functional: true
|
|
55
|
+
compactName: digestMultibase
|
|
56
|
+
uri: "https://www.w3.org/ns/credentials/v2#digestMultibase"
|
|
57
|
+
description: |
|
|
58
|
+
The multibase-encoded integrity digest of the linked resource.
|
|
59
|
+
|
|
60
|
+
See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
61
|
+
range:
|
|
62
|
+
- "http://www.w3.org/2001/XMLSchema#string"
|
|
63
|
+
|
|
51
64
|
- pluralName: names
|
|
52
65
|
singularName: name
|
|
53
66
|
singularAccessor: true
|
package/src/lookup.test.ts
CHANGED
|
@@ -80,7 +80,8 @@ test("lookupObject()", {
|
|
|
80
80
|
);
|
|
81
81
|
});
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
// Workers load fixtures through fetch(), so keep the spy fallback between steps.
|
|
84
|
+
fetchMock.removeRoutes({ includeFallback: false });
|
|
84
85
|
fetchMock.get("begin:https://example.com/.well-known/webfinger", {
|
|
85
86
|
subject: "acct:janedoe@example.com",
|
|
86
87
|
links: [
|
|
@@ -100,7 +101,7 @@ test("lookupObject()", {
|
|
|
100
101
|
);
|
|
101
102
|
});
|
|
102
103
|
|
|
103
|
-
fetchMock.removeRoutes();
|
|
104
|
+
fetchMock.removeRoutes({ includeFallback: false });
|
|
104
105
|
fetchMock.get(
|
|
105
106
|
"begin:https://example.com/.well-known/webfinger",
|
|
106
107
|
() =>
|
|
@@ -131,7 +132,7 @@ test("lookupObject()", {
|
|
|
131
132
|
deepStrictEqual(await promise, null);
|
|
132
133
|
});
|
|
133
134
|
|
|
134
|
-
fetchMock.removeRoutes();
|
|
135
|
+
fetchMock.removeRoutes({ includeFallback: false });
|
|
135
136
|
fetchMock.get(
|
|
136
137
|
"begin:https://example.com/.well-known/webfinger",
|
|
137
138
|
{
|
|
@@ -156,7 +157,7 @@ test("lookupObject()", {
|
|
|
156
157
|
deepStrictEqual(person.id, new URL("https://example.com/person"));
|
|
157
158
|
});
|
|
158
159
|
|
|
159
|
-
fetchMock.removeRoutes();
|
|
160
|
+
fetchMock.removeRoutes({ includeFallback: false });
|
|
160
161
|
fetchMock.get(
|
|
161
162
|
"begin:https://example.com/.well-known/webfinger",
|
|
162
163
|
() =>
|
|
@@ -187,7 +188,7 @@ test("lookupObject()", {
|
|
|
187
188
|
deepStrictEqual(result, null);
|
|
188
189
|
});
|
|
189
190
|
|
|
190
|
-
fetchMock.removeRoutes();
|
|
191
|
+
fetchMock.removeRoutes({ includeFallback: false });
|
|
191
192
|
fetchMock.get(
|
|
192
193
|
"https://example.com/slow-object",
|
|
193
194
|
() =>
|