@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.
Files changed (58) hide show
  1. package/deno.json +1 -1
  2. package/dist/mod.cjs +31713 -8698
  3. package/dist/mod.d.cts +4708 -7
  4. package/dist/mod.d.ts +4708 -7
  5. package/dist/mod.js +31606 -8598
  6. package/dist-tests/actor-D7_iX4I4.mjs +276 -0
  7. package/dist-tests/actor.test.mjs +55 -49
  8. package/dist-tests/application.yaml +15 -0
  9. package/dist-tests/audio.yaml +2 -1
  10. package/dist-tests/document.yaml +14 -1
  11. package/dist-tests/{actor-CnnyTI7i.mjs → esm-DP2Spt0u.mjs} +15 -211
  12. package/dist-tests/gateway.test.mjs +1906 -0
  13. package/dist-tests/group.yaml +15 -0
  14. package/dist-tests/image.yaml +2 -1
  15. package/dist-tests/link.yaml +14 -1
  16. package/dist-tests/lookup-IiNFWuXL.mjs +480 -0
  17. package/dist-tests/lookup.test.mjs +10 -268
  18. package/dist-tests/object.yaml +15 -0
  19. package/dist-tests/organization.yaml +15 -0
  20. package/dist-tests/page.yaml +2 -1
  21. package/dist-tests/person.yaml +15 -0
  22. package/dist-tests/portable-lookup.test.mjs +653 -0
  23. package/dist-tests/service.yaml +15 -0
  24. package/dist-tests/signed-representation.test.mjs +189 -0
  25. package/dist-tests/translation.test.mjs +404 -0
  26. package/dist-tests/translation.yaml +91 -0
  27. package/dist-tests/type.test.mjs +2 -2
  28. package/dist-tests/video.yaml +2 -1
  29. package/dist-tests/{vocab-OU5GYbNg.mjs → vocab-COZcxf00.mjs} +31227 -8501
  30. package/dist-tests/vocab.test.mjs +824 -6
  31. package/package.json +5 -5
  32. package/src/__snapshots__/vocab.test.ts.snap +345 -30
  33. package/src/actor.test.ts +41 -40
  34. package/src/actor.ts +120 -1
  35. package/src/application.yaml +15 -0
  36. package/src/audio.yaml +2 -1
  37. package/src/document.yaml +14 -1
  38. package/src/gateway.test.ts +2637 -0
  39. package/src/group.yaml +15 -0
  40. package/src/image.yaml +2 -1
  41. package/src/link.yaml +14 -1
  42. package/src/lookup.test.ts +6 -5
  43. package/src/lookup.ts +460 -33
  44. package/src/mod.ts +9 -0
  45. package/src/object.yaml +15 -0
  46. package/src/organization.yaml +15 -0
  47. package/src/page.yaml +2 -1
  48. package/src/person.yaml +15 -0
  49. package/src/portable-lookup.test.ts +889 -0
  50. package/src/preprocessors.ts +4 -2
  51. package/src/service.yaml +15 -0
  52. package/src/signed-representation.test.ts +277 -0
  53. package/src/translation.test.ts +518 -0
  54. package/src/translation.yaml +91 -0
  55. package/src/video.yaml +2 -1
  56. package/src/vocab.test.ts +1155 -2
  57. /package/dist-tests/{type-_BlsfT3S.mjs → type-BMdjm4Eg.mjs} +0 -0
  58. /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/v1"
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: "https://www.w3.org/ns/activitystreams"
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
@@ -80,7 +80,8 @@ test("lookupObject()", {
80
80
  );
81
81
  });
82
82
 
83
- fetchMock.removeRoutes();
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
  () =>