@fedify/fedify 1.0.0-dev.412 → 1.0.0-dev.414

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. package/CHANGES.md +18 -0
  2. package/esm/deps/jsr.io/@std/http/{1.0.6 → 1.0.7}/_negotiation/encoding.js +1 -1
  3. package/esm/federation/handler.js +1 -1
  4. package/esm/vocab/application.yaml +14 -0
  5. package/esm/vocab/group.yaml +14 -0
  6. package/esm/vocab/organization.yaml +14 -0
  7. package/esm/vocab/person.yaml +14 -0
  8. package/esm/vocab/service.yaml +14 -0
  9. package/esm/vocab/update.yaml +14 -0
  10. package/esm/vocab/vocab.js +430 -0
  11. package/package.json +2 -2
  12. package/types/deps/jsr.io/@std/http/{1.0.6 → 1.0.7}/_negotiation/common.d.ts.map +1 -1
  13. package/types/deps/jsr.io/@std/http/{1.0.6 → 1.0.7}/_negotiation/encoding.d.ts.map +1 -1
  14. package/types/deps/jsr.io/@std/http/{1.0.6 → 1.0.7}/_negotiation/language.d.ts.map +1 -1
  15. package/types/deps/jsr.io/@std/http/{1.0.6 → 1.0.7}/_negotiation/media_type.d.ts.map +1 -1
  16. package/types/deps/jsr.io/@std/http/{1.0.6 → 1.0.7}/negotiation.d.ts.map +1 -1
  17. package/types/vocab/vocab.d.ts +40 -0
  18. package/types/vocab/vocab.d.ts.map +1 -1
  19. /package/esm/deps/jsr.io/@std/http/{1.0.6 → 1.0.7}/_negotiation/common.js +0 -0
  20. /package/esm/deps/jsr.io/@std/http/{1.0.6 → 1.0.7}/_negotiation/language.js +0 -0
  21. /package/esm/deps/jsr.io/@std/http/{1.0.6 → 1.0.7}/_negotiation/media_type.js +0 -0
  22. /package/esm/deps/jsr.io/@std/http/{1.0.6 → 1.0.7}/negotiation.js +0 -0
  23. /package/types/deps/jsr.io/@std/http/{1.0.6 → 1.0.7}/_negotiation/common.d.ts +0 -0
  24. /package/types/deps/jsr.io/@std/http/{1.0.6 → 1.0.7}/_negotiation/encoding.d.ts +0 -0
  25. /package/types/deps/jsr.io/@std/http/{1.0.6 → 1.0.7}/_negotiation/language.d.ts +0 -0
  26. /package/types/deps/jsr.io/@std/http/{1.0.6 → 1.0.7}/_negotiation/media_type.d.ts +0 -0
  27. /package/types/deps/jsr.io/@std/http/{1.0.6 → 1.0.7}/negotiation.d.ts +0 -0
package/CHANGES.md CHANGED
@@ -102,6 +102,24 @@ To be released.
102
102
  - The first parameter of the `InboxListener` callback type became
103
103
  `InboxContext` (was `Context`).
104
104
 
105
+ - Added `cat` property to `Actor` type in Activity Vocabulary API.
106
+
107
+ - Added `Application.cat` property.
108
+ - `new Application()` constructor now accepts `cat` option.
109
+ - `Application.clone()` method now accepts `cat` option.
110
+ - Added `Group.cat` property.
111
+ - `new Group()` constructor now accepts `cat` option.
112
+ - `Group.clone()` method now accepts `cat` option.
113
+ - Added `Organization.cat` property.
114
+ - `new Organization()` constructor now accepts `cat` option.
115
+ - `Organization.clone()` method now accepts `cat` option.
116
+ - Added `Person.cat` property.
117
+ - `new Person()` constructor now accepts `cat` option.
118
+ - `Person.clone()` method now accepts `cat` option.
119
+ - Added `Service.cat` property.
120
+ - `new Service()` constructor now accepts `cat` option.
121
+ - `Service.clone()` method now accepts `cat` option.
122
+
105
123
  - The `Context.parseUri()` method's parameter type became `URL | null`
106
124
  (was `URL`).
107
125
 
@@ -54,7 +54,7 @@ function specify(encoding, spec, i = -1) {
54
54
  return;
55
55
  }
56
56
  let s = 0;
57
- if (spec.encoding.toLocaleLowerCase() === encoding.toLocaleLowerCase()) {
57
+ if (spec.encoding.toLowerCase() === encoding.toLowerCase()) {
58
58
  s = 1;
59
59
  }
60
60
  else if (spec.encoding !== "*") {
@@ -1,6 +1,6 @@
1
1
  import * as dntShim from "../_dnt.shims.js";
2
2
  import { getLogger } from "@logtape/logtape";
3
- import { accepts } from "../deps/jsr.io/@std/http/1.0.6/negotiation.js";
3
+ import { accepts } from "../deps/jsr.io/@std/http/1.0.7/negotiation.js";
4
4
  import { verifyRequest } from "../sig/http.js";
5
5
  import { detachSignature, verifyJsonLd } from "../sig/ld.js";
6
6
  import { doesActorOwnKey } from "../sig/owner.js";
@@ -26,6 +26,8 @@ defaultContext:
26
26
  schema: "http://schema.org#"
27
27
  PropertyValue: "schema:PropertyValue"
28
28
  value: "schema:value"
29
+ misskey: "https://misskey-hub.net/ns#"
30
+ isCat: "misskey:isCat"
29
31
 
30
32
  properties:
31
33
  - pluralName: preferredUsernames
@@ -259,3 +261,15 @@ properties:
259
261
  - "https://www.w3.org/ns/activitystreams#Organization"
260
262
  - "https://www.w3.org/ns/activitystreams#Person"
261
263
  - "https://www.w3.org/ns/activitystreams#Service"
264
+
265
+ - singularName: cat
266
+ functional: true
267
+ compactName: isCat
268
+ uri: "https://misskey-hub.net/ns#isCat"
269
+ description: |
270
+ Used on actors to indicate that they in some way identify as a cat,
271
+ expressed as a boolean value. If this property is set to `true`,
272
+ displaying the actor or their notes will have some special effects
273
+ attached in some clients.
274
+ range:
275
+ - "http://www.w3.org/2001/XMLSchema#boolean"
@@ -26,6 +26,8 @@ defaultContext:
26
26
  schema: "http://schema.org#"
27
27
  PropertyValue: "schema:PropertyValue"
28
28
  value: "schema:value"
29
+ misskey: "https://misskey-hub.net/ns#"
30
+ isCat: "misskey:isCat"
29
31
 
30
32
  properties:
31
33
  - pluralName: preferredUsernames
@@ -259,3 +261,15 @@ properties:
259
261
  - "https://www.w3.org/ns/activitystreams#Organization"
260
262
  - "https://www.w3.org/ns/activitystreams#Person"
261
263
  - "https://www.w3.org/ns/activitystreams#Service"
264
+
265
+ - singularName: cat
266
+ functional: true
267
+ compactName: isCat
268
+ uri: "https://misskey-hub.net/ns#isCat"
269
+ description: |
270
+ Used on actors to indicate that they in some way identify as a cat,
271
+ expressed as a boolean value. If this property is set to `true`,
272
+ displaying the actor or their notes will have some special effects
273
+ attached in some clients.
274
+ range:
275
+ - "http://www.w3.org/2001/XMLSchema#boolean"
@@ -26,6 +26,8 @@ defaultContext:
26
26
  schema: "http://schema.org#"
27
27
  PropertyValue: "schema:PropertyValue"
28
28
  value: "schema:value"
29
+ misskey: "https://misskey-hub.net/ns#"
30
+ isCat: "misskey:isCat"
29
31
 
30
32
  properties:
31
33
  - pluralName: preferredUsernames
@@ -259,3 +261,15 @@ properties:
259
261
  - "https://www.w3.org/ns/activitystreams#Organization"
260
262
  - "https://www.w3.org/ns/activitystreams#Person"
261
263
  - "https://www.w3.org/ns/activitystreams#Service"
264
+
265
+ - singularName: cat
266
+ functional: true
267
+ compactName: isCat
268
+ uri: "https://misskey-hub.net/ns#isCat"
269
+ description: |
270
+ Used on actors to indicate that they in some way identify as a cat,
271
+ expressed as a boolean value. If this property is set to `true`,
272
+ displaying the actor or their notes will have some special effects
273
+ attached in some clients.
274
+ range:
275
+ - "http://www.w3.org/2001/XMLSchema#boolean"
@@ -26,6 +26,8 @@ defaultContext:
26
26
  schema: "http://schema.org#"
27
27
  PropertyValue: "schema:PropertyValue"
28
28
  value: "schema:value"
29
+ misskey: "https://misskey-hub.net/ns#"
30
+ isCat: "misskey:isCat"
29
31
 
30
32
  properties:
31
33
  - pluralName: preferredUsernames
@@ -259,3 +261,15 @@ properties:
259
261
  - "https://www.w3.org/ns/activitystreams#Organization"
260
262
  - "https://www.w3.org/ns/activitystreams#Person"
261
263
  - "https://www.w3.org/ns/activitystreams#Service"
264
+
265
+ - singularName: cat
266
+ functional: true
267
+ compactName: isCat
268
+ uri: "https://misskey-hub.net/ns#isCat"
269
+ description: |
270
+ Used on actors to indicate that they in some way identify as a cat,
271
+ expressed as a boolean value. If this property is set to `true`,
272
+ displaying the actor or their notes will have some special effects
273
+ attached in some clients.
274
+ range:
275
+ - "http://www.w3.org/2001/XMLSchema#boolean"
@@ -26,6 +26,8 @@ defaultContext:
26
26
  schema: "http://schema.org#"
27
27
  PropertyValue: "schema:PropertyValue"
28
28
  value: "schema:value"
29
+ misskey: "https://misskey-hub.net/ns#"
30
+ isCat: "misskey:isCat"
29
31
 
30
32
  properties:
31
33
  - pluralName: preferredUsernames
@@ -259,3 +261,15 @@ properties:
259
261
  - "https://www.w3.org/ns/activitystreams#Organization"
260
262
  - "https://www.w3.org/ns/activitystreams#Person"
261
263
  - "https://www.w3.org/ns/activitystreams#Service"
264
+
265
+ - singularName: cat
266
+ functional: true
267
+ compactName: isCat
268
+ uri: "https://misskey-hub.net/ns#isCat"
269
+ description: |
270
+ Used on actors to indicate that they in some way identify as a cat,
271
+ expressed as a boolean value. If this property is set to `true`,
272
+ displaying the actor or their notes will have some special effects
273
+ attached in some clients.
274
+ range:
275
+ - "http://www.w3.org/2001/XMLSchema#boolean"
@@ -15,14 +15,28 @@ defaultContext:
15
15
  - "https://w3id.org/security/data-integrity/v1"
16
16
  - "https://w3id.org/identity/v1"
17
17
  - toot: "http://joinmastodon.org/ns#"
18
+ schema: "http://schema.org#"
18
19
  misskey: "https://misskey-hub.net/ns#"
19
20
  fedibird: "http://fedibird.com/ns#"
21
+ PropertyValue: "schema:PropertyValue"
22
+ value: "schema:value"
20
23
  sensitive: "as:sensitive"
21
24
  votersCount: "toot:votersCount"
25
+ featured:
26
+ "@id": "toot:featured"
27
+ "@type": "@id"
28
+ featuredTags:
29
+ "@id": "toot:featuredTags"
30
+ "@type": "@id"
31
+ discoverable: "toot:discoverable"
32
+ suspended: "toot:suspended"
33
+ memorial: "toot:memorial"
34
+ indexable: "toot:indexable"
22
35
  Emoji: "toot:Emoji"
23
36
  Hashtag: "as:Hashtag"
24
37
  ChatMessage: "http://litepub.social/ns#ChatMessage"
25
38
  quoteUrl: "as:quoteUrl"
26
39
  _misskey_quote: "misskey:_misskey_quote"
27
40
  quoteUri: "fedibird:quoteUri"
41
+ isCat: "misskey:isCat"
28
42
  properties: []