@fedify/fedify 0.10.0-dev.197 → 0.10.0-dev.199
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGES.md +13 -0
- package/esm/vocab/accept.yaml +3 -1
- package/esm/vocab/activity.yaml +1 -0
- package/esm/vocab/add.yaml +3 -1
- package/esm/vocab/announce.yaml +1 -0
- package/esm/vocab/application.yaml +1 -0
- package/esm/vocab/article.yaml +1 -0
- package/esm/vocab/audio.yaml +3 -1
- package/esm/vocab/block.yaml +3 -1
- package/esm/vocab/create.yaml +1 -0
- package/esm/vocab/delete.yaml +3 -1
- package/esm/vocab/dislike.yaml +3 -1
- package/esm/vocab/document.yaml +4 -2
- package/esm/vocab/event.yaml +3 -1
- package/esm/vocab/flag.yaml +3 -1
- package/esm/vocab/follow.yaml +3 -1
- package/esm/vocab/group.yaml +1 -0
- package/esm/vocab/ignore.yaml +3 -1
- package/esm/vocab/intransitiveactivity.yaml +3 -1
- package/esm/vocab/like.yaml +3 -1
- package/esm/vocab/note.yaml +1 -0
- package/esm/vocab/object.yaml +10 -0
- package/esm/vocab/organization.yaml +1 -0
- package/esm/vocab/page.yaml +3 -1
- package/esm/vocab/person.yaml +1 -0
- package/esm/vocab/place.yaml +3 -1
- package/esm/vocab/profile.yaml +3 -1
- package/esm/vocab/reject.yaml +3 -1
- package/esm/vocab/relationship.yaml +3 -1
- package/esm/vocab/remove.yaml +3 -1
- package/esm/vocab/service.yaml +1 -0
- package/esm/vocab/tombstone.yaml +3 -1
- package/esm/vocab/undo.yaml +4 -2
- package/esm/vocab/update.yaml +1 -0
- package/esm/vocab/video.yaml +3 -1
- package/esm/vocab/vocab.js +419 -162
- package/package.json +1 -1
- package/types/vocab/vocab.d.ts +232 -0
- package/types/vocab/vocab.d.ts.map +1 -1
package/CHANGES.md
CHANGED
@@ -73,6 +73,19 @@ To be released.
|
|
73
73
|
- Added `DataIntegrityProof` class to Activity Vocabulary API.
|
74
74
|
[[FEP-8b32], [#54]]
|
75
75
|
|
76
|
+
- Added `proof` property to the `Object` class in the Activity
|
77
|
+
Vocabulary API. [[FEP-8b32], [#54]]
|
78
|
+
|
79
|
+
- Added `Object.getProof()` method.
|
80
|
+
- Added `Object.getProofs()` method.
|
81
|
+
- `new Object()` constructor now accepts `proof` option.
|
82
|
+
- `new Object()` constructor now accepts `proofs` option.
|
83
|
+
- `Object.clone()` method now accepts `proof` option.
|
84
|
+
- `Object.clone()` method now accepts `proofs` option.
|
85
|
+
|
86
|
+
- Added `context` option to `Object.toJsonLd()` method. This applies to
|
87
|
+
any subclasses of the `Object` class too.
|
88
|
+
|
76
89
|
- Deprecated `treatHttps` option in `FederationParameters` interface.
|
77
90
|
Instead, use the [x-forwarded-fetch] library to recognize the
|
78
91
|
`X-Forwarded-Host` and `X-Forwarded-Proto` headers.
|
package/esm/vocab/accept.yaml
CHANGED
@@ -7,5 +7,7 @@ description: |
|
|
7
7
|
Indicates that the `actor` accepts the `object`. The `target` property can be
|
8
8
|
used in certain circumstances to indicate the context into which the `object`
|
9
9
|
has been accepted.
|
10
|
-
defaultContext:
|
10
|
+
defaultContext:
|
11
|
+
- "https://www.w3.org/ns/activitystreams"
|
12
|
+
- "https://w3id.org/security/data-integrity/v1"
|
11
13
|
properties: []
|
package/esm/vocab/activity.yaml
CHANGED
package/esm/vocab/add.yaml
CHANGED
@@ -8,5 +8,7 @@ description: |
|
|
8
8
|
If the `target` property is not explicitly specified, the target would need
|
9
9
|
to be determined implicitly by context. The `origin` can be used to identify
|
10
10
|
the context from which the `object` originated.
|
11
|
-
defaultContext:
|
11
|
+
defaultContext:
|
12
|
+
- "https://www.w3.org/ns/activitystreams"
|
13
|
+
- "https://w3id.org/security/data-integrity/v1"
|
12
14
|
properties: []
|
package/esm/vocab/announce.yaml
CHANGED
@@ -9,6 +9,7 @@ description: |
|
|
9
9
|
The `origin` typically has no defined meaning.
|
10
10
|
defaultContext:
|
11
11
|
- "https://www.w3.org/ns/activitystreams"
|
12
|
+
- "https://w3id.org/security/data-integrity/v1"
|
12
13
|
- toot: "http://joinmastodon.org/ns#"
|
13
14
|
sensitive: "as:sensitive"
|
14
15
|
Emoji: "toot:Emoji"
|
@@ -7,6 +7,7 @@ description: Describes a software application.
|
|
7
7
|
defaultContext:
|
8
8
|
- "https://www.w3.org/ns/activitystreams"
|
9
9
|
- "https://w3id.org/security/v1"
|
10
|
+
- "https://w3id.org/security/data-integrity/v1"
|
10
11
|
- "https://www.w3.org/ns/did/v1"
|
11
12
|
- "https://w3id.org/security/multikey/v1"
|
12
13
|
- manuallyApprovesFollowers: "as:manuallyApprovesFollowers"
|
package/esm/vocab/article.yaml
CHANGED
@@ -6,6 +6,7 @@ entity: true
|
|
6
6
|
description: Represents any kind of multi-paragraph written work.
|
7
7
|
defaultContext:
|
8
8
|
- "https://www.w3.org/ns/activitystreams"
|
9
|
+
- "https://w3id.org/security/data-integrity/v1"
|
9
10
|
- toot: "http://joinmastodon.org/ns#"
|
10
11
|
sensitive: "as:sensitive"
|
11
12
|
Emoji: "toot:Emoji"
|
package/esm/vocab/audio.yaml
CHANGED
@@ -4,5 +4,7 @@ uri: "https://www.w3.org/ns/activitystreams#Audio"
|
|
4
4
|
extends: "https://www.w3.org/ns/activitystreams#Document"
|
5
5
|
entity: true
|
6
6
|
description: Represents an audio document of any kind.
|
7
|
-
defaultContext:
|
7
|
+
defaultContext:
|
8
|
+
- "https://www.w3.org/ns/activitystreams"
|
9
|
+
- "https://w3id.org/security/data-integrity/v1"
|
8
10
|
properties: []
|
package/esm/vocab/block.yaml
CHANGED
@@ -8,5 +8,7 @@ description: |
|
|
8
8
|
form of {@link Ignore}. The typical use is to support social systems that
|
9
9
|
allow one user to block activities or content of other users. The `target`
|
10
10
|
and `origin` typically have no defined meaning.
|
11
|
-
defaultContext:
|
11
|
+
defaultContext:
|
12
|
+
- "https://www.w3.org/ns/activitystreams"
|
13
|
+
- "https://w3id.org/security/data-integrity/v1"
|
12
14
|
properties: []
|
package/esm/vocab/create.yaml
CHANGED
@@ -6,6 +6,7 @@ entity: true
|
|
6
6
|
description: Indicates that the `actor` has created the `object`.
|
7
7
|
defaultContext:
|
8
8
|
- "https://www.w3.org/ns/activitystreams"
|
9
|
+
- "https://w3id.org/security/data-integrity/v1"
|
9
10
|
- toot: "http://joinmastodon.org/ns#"
|
10
11
|
sensitive: "as:sensitive"
|
11
12
|
Emoji: "toot:Emoji"
|
package/esm/vocab/delete.yaml
CHANGED
@@ -6,5 +6,7 @@ entity: true
|
|
6
6
|
description: |
|
7
7
|
Indicates that the `actor` has deleted the `object`. If specified,
|
8
8
|
the `origin` indicates the context from which the `object` was deleted.
|
9
|
-
defaultContext:
|
9
|
+
defaultContext:
|
10
|
+
- "https://www.w3.org/ns/activitystreams"
|
11
|
+
- "https://w3id.org/security/data-integrity/v1"
|
10
12
|
properties: []
|
package/esm/vocab/dislike.yaml
CHANGED
@@ -4,5 +4,7 @@ uri: "https://www.w3.org/ns/activitystreams#Dislike"
|
|
4
4
|
extends: "https://www.w3.org/ns/activitystreams#Activity"
|
5
5
|
entity: true
|
6
6
|
description: Indicates that the `actor` dislikes the `object`.
|
7
|
-
defaultContext:
|
7
|
+
defaultContext:
|
8
|
+
- "https://www.w3.org/ns/activitystreams"
|
9
|
+
- "https://w3id.org/security/data-integrity/v1"
|
8
10
|
properties: []
|
package/esm/vocab/document.yaml
CHANGED
@@ -4,7 +4,9 @@ uri: "https://www.w3.org/ns/activitystreams#Document"
|
|
4
4
|
extends: "https://www.w3.org/ns/activitystreams#Object"
|
5
5
|
entity: true
|
6
6
|
description: Represents a document of any kind.
|
7
|
-
defaultContext:
|
7
|
+
defaultContext:
|
8
|
+
- "https://www.w3.org/ns/activitystreams"
|
9
|
+
- "https://w3id.org/security/data-integrity/v1"
|
8
10
|
|
9
11
|
properties:
|
10
12
|
- singularName: width
|
@@ -21,6 +23,6 @@ properties:
|
|
21
23
|
uri: "https://www.w3.org/ns/activitystreams#height"
|
22
24
|
description: |
|
23
25
|
Specifies a hint as to the rendering height in
|
24
|
-
device-independent pixels of the linked resource.
|
26
|
+
device-independent pixels of the linked resource.
|
25
27
|
range:
|
26
28
|
- "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"
|
package/esm/vocab/event.yaml
CHANGED
@@ -4,5 +4,7 @@ uri: "https://www.w3.org/ns/activitystreams#Event"
|
|
4
4
|
extends: "https://www.w3.org/ns/activitystreams#Object"
|
5
5
|
entity: true
|
6
6
|
description: Represents any kind of event.
|
7
|
-
defaultContext:
|
7
|
+
defaultContext:
|
8
|
+
- "https://www.w3.org/ns/activitystreams"
|
9
|
+
- "https://w3id.org/security/data-integrity/v1"
|
8
10
|
properties: []
|
package/esm/vocab/flag.yaml
CHANGED
@@ -7,5 +7,7 @@ description: |
|
|
7
7
|
Indicates that the `actor` is "flagging" the `object`. Flagging is defined
|
8
8
|
in the sense common to many social platforms as reporting content as being
|
9
9
|
inappropriate for any number of reasons.
|
10
|
-
defaultContext:
|
10
|
+
defaultContext:
|
11
|
+
- "https://www.w3.org/ns/activitystreams"
|
12
|
+
- "https://w3id.org/security/data-integrity/v1"
|
11
13
|
properties: []
|
package/esm/vocab/follow.yaml
CHANGED
@@ -8,5 +8,7 @@ description: |
|
|
8
8
|
in the sense typically used within Social systems in which the actor is
|
9
9
|
interested in any activity performed by or on the object. The `target` and
|
10
10
|
`origin` typically have no defined meaning.
|
11
|
-
defaultContext:
|
11
|
+
defaultContext:
|
12
|
+
- "https://www.w3.org/ns/activitystreams"
|
13
|
+
- "https://w3id.org/security/data-integrity/v1"
|
12
14
|
properties: []
|
package/esm/vocab/group.yaml
CHANGED
@@ -7,6 +7,7 @@ description: Represents a formal or informal collective of Actors.
|
|
7
7
|
defaultContext:
|
8
8
|
- "https://www.w3.org/ns/activitystreams"
|
9
9
|
- "https://w3id.org/security/v1"
|
10
|
+
- "https://w3id.org/security/data-integrity/v1"
|
10
11
|
- "https://www.w3.org/ns/did/v1"
|
11
12
|
- "https://w3id.org/security/multikey/v1"
|
12
13
|
- manuallyApprovesFollowers: "as:manuallyApprovesFollowers"
|
package/esm/vocab/ignore.yaml
CHANGED
@@ -6,5 +6,7 @@ entity: true
|
|
6
6
|
description: |
|
7
7
|
Indicates that the `actor` is ignoring the `object`. The `target` and
|
8
8
|
`origin` typically have no defined meaning.
|
9
|
-
defaultContext:
|
9
|
+
defaultContext:
|
10
|
+
- "https://www.w3.org/ns/activitystreams"
|
11
|
+
- "https://w3id.org/security/data-integrity/v1"
|
10
12
|
properties: []
|
@@ -7,5 +7,7 @@ description: |
|
|
7
7
|
Instances of `IntransitiveActivity` are a subtype of {@link Activity}
|
8
8
|
representing intransitive actions. The `object` property is therefore
|
9
9
|
inappropriate for these activities.
|
10
|
-
defaultContext:
|
10
|
+
defaultContext:
|
11
|
+
- "https://www.w3.org/ns/activitystreams"
|
12
|
+
- "https://w3id.org/security/data-integrity/v1"
|
11
13
|
properties: []
|
package/esm/vocab/like.yaml
CHANGED
@@ -6,5 +6,7 @@ entity: true
|
|
6
6
|
description: |
|
7
7
|
Indicates that the `actor` likes, recommends or endorses the `object`.
|
8
8
|
The `target` and `origin` typically have no defined meaning.
|
9
|
-
defaultContext:
|
9
|
+
defaultContext:
|
10
|
+
- "https://www.w3.org/ns/activitystreams"
|
11
|
+
- "https://w3id.org/security/data-integrity/v1"
|
10
12
|
properties: []
|
package/esm/vocab/note.yaml
CHANGED
package/esm/vocab/object.yaml
CHANGED
@@ -10,6 +10,7 @@ description: |
|
|
10
10
|
{@link OrderedCollection}.
|
11
11
|
defaultContext:
|
12
12
|
- "https://www.w3.org/ns/activitystreams"
|
13
|
+
- "https://w3id.org/security/data-integrity/v1"
|
13
14
|
- sensitive: "as:sensitive"
|
14
15
|
|
15
16
|
properties:
|
@@ -300,3 +301,12 @@ properties:
|
|
300
301
|
description: Whether it contains any sensitive contents.
|
301
302
|
range:
|
302
303
|
- "http://www.w3.org/2001/XMLSchema#boolean"
|
304
|
+
|
305
|
+
- singularName: proof
|
306
|
+
pluralName: proofs
|
307
|
+
singularAccessor: true
|
308
|
+
uri: "https://w3id.org/security#proof"
|
309
|
+
description: |
|
310
|
+
A cryptographic proof that can be used to verify the integrity of an object.
|
311
|
+
range:
|
312
|
+
- "https://w3id.org/security#DataIntegrityProof"
|
@@ -7,6 +7,7 @@ description: Represents an organization.
|
|
7
7
|
defaultContext:
|
8
8
|
- "https://www.w3.org/ns/activitystreams"
|
9
9
|
- "https://w3id.org/security/v1"
|
10
|
+
- "https://w3id.org/security/data-integrity/v1"
|
10
11
|
- "https://www.w3.org/ns/did/v1"
|
11
12
|
- "https://w3id.org/security/multikey/v1"
|
12
13
|
- manuallyApprovesFollowers: "as:manuallyApprovesFollowers"
|
package/esm/vocab/page.yaml
CHANGED
@@ -4,5 +4,7 @@ uri: "https://www.w3.org/ns/activitystreams#Page"
|
|
4
4
|
extends: "https://www.w3.org/ns/activitystreams#Document"
|
5
5
|
entity: true
|
6
6
|
description: Represents a Web Page.
|
7
|
-
defaultContext:
|
7
|
+
defaultContext:
|
8
|
+
- "https://www.w3.org/ns/activitystreams"
|
9
|
+
- "https://w3id.org/security/data-integrity/v1"
|
8
10
|
properties: []
|
package/esm/vocab/person.yaml
CHANGED
@@ -7,6 +7,7 @@ description: Represents an individual person.
|
|
7
7
|
defaultContext:
|
8
8
|
- "https://www.w3.org/ns/activitystreams"
|
9
9
|
- "https://w3id.org/security/v1"
|
10
|
+
- "https://w3id.org/security/data-integrity/v1"
|
10
11
|
- "https://www.w3.org/ns/did/v1"
|
11
12
|
- "https://w3id.org/security/multikey/v1"
|
12
13
|
- manuallyApprovesFollowers: "as:manuallyApprovesFollowers"
|
package/esm/vocab/place.yaml
CHANGED
@@ -7,7 +7,9 @@ description: |
|
|
7
7
|
Represents a logical or physical location. See [5.3 Representing
|
8
8
|
Places](https://www.w3.org/TR/activitystreams-vocabulary/#places)
|
9
9
|
for additional information.
|
10
|
-
defaultContext:
|
10
|
+
defaultContext:
|
11
|
+
- "https://www.w3.org/ns/activitystreams"
|
12
|
+
- "https://w3id.org/security/data-integrity/v1"
|
11
13
|
|
12
14
|
properties:
|
13
15
|
- singularName: accuracy
|
package/esm/vocab/profile.yaml
CHANGED
@@ -9,7 +9,9 @@ description: |
|
|
9
9
|
Type](https://www.w3.org/TR/activitystreams-vocabulary/#actor-types) objects.
|
10
10
|
The {@link Profile.describes} property is used to reference the object being
|
11
11
|
described by the profile.
|
12
|
-
defaultContext:
|
12
|
+
defaultContext:
|
13
|
+
- "https://www.w3.org/ns/activitystreams"
|
14
|
+
- "https://w3id.org/security/data-integrity/v1"
|
13
15
|
|
14
16
|
properties:
|
15
17
|
- singularName: describes
|
package/esm/vocab/reject.yaml
CHANGED
@@ -6,5 +6,7 @@ entity: true
|
|
6
6
|
description: |
|
7
7
|
Indicates that the `actor` is rejecting the `object`. The `target` and
|
8
8
|
`origin` typically have no defined meaning.
|
9
|
-
defaultContext:
|
9
|
+
defaultContext:
|
10
|
+
- "https://www.w3.org/ns/activitystreams"
|
11
|
+
- "https://w3id.org/security/data-integrity/v1"
|
10
12
|
properties: []
|
@@ -11,7 +11,9 @@ description: |
|
|
11
11
|
See [5.2 Representing Relationships Between
|
12
12
|
Entities](https://www.w3.org/TR/activitystreams-vocabulary/#connections)
|
13
13
|
for additional information.
|
14
|
-
defaultContext:
|
14
|
+
defaultContext:
|
15
|
+
- "https://www.w3.org/ns/activitystreams"
|
16
|
+
- "https://w3id.org/security/data-integrity/v1"
|
15
17
|
|
16
18
|
properties:
|
17
19
|
- singularName: subject
|
package/esm/vocab/remove.yaml
CHANGED
@@ -6,5 +6,7 @@ entity: true
|
|
6
6
|
description: |
|
7
7
|
Indicates that the `actor` is removing the `object`. If specified,
|
8
8
|
the `origin` indicates the context from which the `object` is being removed.
|
9
|
-
defaultContext:
|
9
|
+
defaultContext:
|
10
|
+
- "https://www.w3.org/ns/activitystreams"
|
11
|
+
- "https://w3id.org/security/data-integrity/v1"
|
10
12
|
properties: []
|
package/esm/vocab/service.yaml
CHANGED
@@ -7,6 +7,7 @@ description: Represents a service of any kind.
|
|
7
7
|
defaultContext:
|
8
8
|
- "https://www.w3.org/ns/activitystreams"
|
9
9
|
- "https://w3id.org/security/v1"
|
10
|
+
- "https://w3id.org/security/data-integrity/v1"
|
10
11
|
- "https://www.w3.org/ns/did/v1"
|
11
12
|
- "https://w3id.org/security/multikey/v1"
|
12
13
|
- manuallyApprovesFollowers: "as:manuallyApprovesFollowers"
|
package/esm/vocab/tombstone.yaml
CHANGED
@@ -7,7 +7,9 @@ description: |
|
|
7
7
|
A `Tombstone` represents a content object that has been deleted.
|
8
8
|
It can be used in {@link Collection}s to signify that there used to be
|
9
9
|
an object at this position, but it has been deleted.
|
10
|
-
defaultContext:
|
10
|
+
defaultContext:
|
11
|
+
- "https://www.w3.org/ns/activitystreams"
|
12
|
+
- "https://w3id.org/security/data-integrity/v1"
|
11
13
|
|
12
14
|
properties:
|
13
15
|
- singularName: deleted
|
package/esm/vocab/undo.yaml
CHANGED
@@ -10,6 +10,8 @@ description: |
|
|
10
10
|
for whatever reason, might choose to undo that like at some later point in
|
11
11
|
time).
|
12
12
|
|
13
|
-
The `target` and `origin` typically have no defined meaning.
|
14
|
-
defaultContext:
|
13
|
+
The `target` and `origin` typically have no defined meaning.
|
14
|
+
defaultContext:
|
15
|
+
- "https://www.w3.org/ns/activitystreams"
|
16
|
+
- "https://w3id.org/security/data-integrity/v1"
|
15
17
|
properties: []
|
package/esm/vocab/update.yaml
CHANGED
@@ -11,6 +11,7 @@ description: |
|
|
11
11
|
The `target` and `origin` typically have no defined meaning.
|
12
12
|
defaultContext:
|
13
13
|
- "https://www.w3.org/ns/activitystreams"
|
14
|
+
- "https://w3id.org/security/data-integrity/v1"
|
14
15
|
- toot: "http://joinmastodon.org/ns#"
|
15
16
|
sensitive: "as:sensitive"
|
16
17
|
Emoji: "toot:Emoji"
|
package/esm/vocab/video.yaml
CHANGED
@@ -4,5 +4,7 @@ uri: "https://www.w3.org/ns/activitystreams#Video"
|
|
4
4
|
extends: "https://www.w3.org/ns/activitystreams#Document"
|
5
5
|
entity: true
|
6
6
|
description: Represents a video document of any kind.
|
7
|
-
defaultContext:
|
7
|
+
defaultContext:
|
8
|
+
- "https://www.w3.org/ns/activitystreams"
|
9
|
+
- "https://w3id.org/security/data-integrity/v1"
|
8
10
|
properties: []
|