@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 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.
@@ -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: "https://www.w3.org/ns/activitystreams"
10
+ defaultContext:
11
+ - "https://www.w3.org/ns/activitystreams"
12
+ - "https://w3id.org/security/data-integrity/v1"
11
13
  properties: []
@@ -12,6 +12,7 @@ description: |
12
12
  defaultContext:
13
13
  - "https://www.w3.org/ns/activitystreams"
14
14
  - "https://w3id.org/security/v1"
15
+ - "https://w3id.org/security/data-integrity/v1"
15
16
 
16
17
  properties:
17
18
  - pluralName: actors
@@ -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: "https://www.w3.org/ns/activitystreams"
11
+ defaultContext:
12
+ - "https://www.w3.org/ns/activitystreams"
13
+ - "https://w3id.org/security/data-integrity/v1"
12
14
  properties: []
@@ -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"
@@ -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"
@@ -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: "https://www.w3.org/ns/activitystreams"
7
+ defaultContext:
8
+ - "https://www.w3.org/ns/activitystreams"
9
+ - "https://w3id.org/security/data-integrity/v1"
8
10
  properties: []
@@ -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: "https://www.w3.org/ns/activitystreams"
11
+ defaultContext:
12
+ - "https://www.w3.org/ns/activitystreams"
13
+ - "https://w3id.org/security/data-integrity/v1"
12
14
  properties: []
@@ -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"
@@ -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: "https://www.w3.org/ns/activitystreams"
9
+ defaultContext:
10
+ - "https://www.w3.org/ns/activitystreams"
11
+ - "https://w3id.org/security/data-integrity/v1"
10
12
  properties: []
@@ -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: "https://www.w3.org/ns/activitystreams"
7
+ defaultContext:
8
+ - "https://www.w3.org/ns/activitystreams"
9
+ - "https://w3id.org/security/data-integrity/v1"
8
10
  properties: []
@@ -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: "https://www.w3.org/ns/activitystreams"
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"
@@ -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: "https://www.w3.org/ns/activitystreams"
7
+ defaultContext:
8
+ - "https://www.w3.org/ns/activitystreams"
9
+ - "https://w3id.org/security/data-integrity/v1"
8
10
  properties: []
@@ -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: "https://www.w3.org/ns/activitystreams"
10
+ defaultContext:
11
+ - "https://www.w3.org/ns/activitystreams"
12
+ - "https://w3id.org/security/data-integrity/v1"
11
13
  properties: []
@@ -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: "https://www.w3.org/ns/activitystreams"
11
+ defaultContext:
12
+ - "https://www.w3.org/ns/activitystreams"
13
+ - "https://w3id.org/security/data-integrity/v1"
12
14
  properties: []
@@ -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"
@@ -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: "https://www.w3.org/ns/activitystreams"
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: "https://www.w3.org/ns/activitystreams"
10
+ defaultContext:
11
+ - "https://www.w3.org/ns/activitystreams"
12
+ - "https://w3id.org/security/data-integrity/v1"
11
13
  properties: []
@@ -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: "https://www.w3.org/ns/activitystreams"
9
+ defaultContext:
10
+ - "https://www.w3.org/ns/activitystreams"
11
+ - "https://w3id.org/security/data-integrity/v1"
10
12
  properties: []
@@ -8,6 +8,7 @@ description: |
8
8
  length.
9
9
  defaultContext:
10
10
  - "https://www.w3.org/ns/activitystreams"
11
+ - "https://w3id.org/security/data-integrity/v1"
11
12
  - toot: "http://joinmastodon.org/ns#"
12
13
  sensitive: "as:sensitive"
13
14
  Emoji: "toot:Emoji"
@@ -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"
@@ -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: "https://www.w3.org/ns/activitystreams"
7
+ defaultContext:
8
+ - "https://www.w3.org/ns/activitystreams"
9
+ - "https://w3id.org/security/data-integrity/v1"
8
10
  properties: []
@@ -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"
@@ -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: "https://www.w3.org/ns/activitystreams"
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
@@ -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: "https://www.w3.org/ns/activitystreams"
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
@@ -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: "https://www.w3.org/ns/activitystreams"
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: "https://www.w3.org/ns/activitystreams"
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
@@ -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: "https://www.w3.org/ns/activitystreams"
9
+ defaultContext:
10
+ - "https://www.w3.org/ns/activitystreams"
11
+ - "https://w3id.org/security/data-integrity/v1"
10
12
  properties: []
@@ -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"
@@ -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: "https://www.w3.org/ns/activitystreams"
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
@@ -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: "https://www.w3.org/ns/activitystreams"
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: []
@@ -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"
@@ -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: "https://www.w3.org/ns/activitystreams"
7
+ defaultContext:
8
+ - "https://www.w3.org/ns/activitystreams"
9
+ - "https://w3id.org/security/data-integrity/v1"
8
10
  properties: []