Unverified Commit 3298dafc authored by Hong Minhee's avatar Hong Minhee
Browse files

Activity.{target,result,origin,instrument} props

parent 7d2ba379
Loading
Loading
Loading
Loading
+36 −0
Original line number Diff line number Diff line
@@ -54,6 +54,42 @@ To be released.
     -  `CollectionPage.next`
     -  `CollectionPage.prev`

 -  Added `target` property to `Activity` class in Activity Vocabulary API.

     -  Added `Activity.getTarget()` method.
     -  Added `Activity.getTargets()` method.
     -  `new Activity()` constructor now accepts `target` option.
     -  `new Activity()` constructor now accepts `targets` option.
     -  `Activity.clone()` method now accepts `target` option.
     -  `Activity.clone()` method now accepts `targets` option.

 -  Added `result` property to `Activity` class in Activity Vocabulary API.

     -  Added `Activity.getResult()` method.
     -  Added `Activity.getResults()` method.
     -  `new Activity()` constructor now accepts `result` option.
     -  `new Activity()` constructor now accepts `results` option.
     -  `Activity.clone()` method now accepts `result` option.
     -  `Activity.clone()` method now accepts `results` option.

 -  Added `origin` property to `Activity` class in Activity Vocabulary API.

     -  Added `Activity.getOrigin()` method.
     -  Added `Activity.getOrigins()` method.
     -  `new Activity()` constructor now accepts `origin` option.
     -  `new Activity()` constructor now accepts `origins` option.
     -  `Activity.clone()` method now accepts `origin` option.
     -  `Activity.clone()` method now accepts `origins` option.

 -  Added `instrument` property to `Activity` class in Activity Vocabulary API.

     -  Added `Activity.getInstrument()` method.
     -  Added `Activity.getInstruments()` method.
     -  `new Activity()` constructor now accepts `instrument` option.
     -  `new Activity()` constructor now accepts `instruments` option.
     -  `Activity.clone()` method now accepts `instrument` option.
     -  `Activity.clone()` method now accepts `instruments` option.

 -  The key pair or the key pair for signing outgoing HTTP requests made from
    the shared inbox now can be configured.  This improves the compatibility
    with other ActivityPub implementations that require authorized fetches
+1234 −128

File changed.

Preview size limit exceeded, changes collapsed.

+297 −57

File changed.

Preview size limit exceeded, changes collapsed.

+47 −0
Original line number Diff line number Diff line
@@ -41,3 +41,50 @@ properties:
    wishlist", the object of the activity is the movie added.
  range:
  - "https://www.w3.org/ns/activitystreams#Object"

- pluralName: targets
  singularName: target
  singularAccessor: true
  uri: "https://www.w3.org/ns/activitystreams#target"
  description: |
    Describes the indirect object, or target, of the activity.  The precise
    meaning of the target is largely dependent on the type of action being
    described but will often be the object of the English preposition "to".
    For instance, in the activity "John added a movie to his wishlist",
    the target of the activity is John's wishlist.  An activity can have more
    than one target. 
  range:
  - "https://www.w3.org/ns/activitystreams#Object"

- pluralName: results
  singularName: result
  singularAccessor: true
  uri: "https://www.w3.org/ns/activitystreams#result"
  description: |
    Describes the result of the activity.  For instance, if a particular action
    results in the creation of a new resource, the result property can be used
    to describe that new resource. 
  range:
  - "https://www.w3.org/ns/activitystreams#Object"

- pluralName: origins
  singularName: origin
  singularAccessor: true
  uri: "https://www.w3.org/ns/activitystreams#origin"
  description: |
    Describes an indirect object of the activity from which the activity is
    directed.  The precise meaning of the origin is the object of the English
    preposition "from". For instance, in the activity "John moved an item to
    List B from List A", the origin of the activity is "List A".
  range:
  - "https://www.w3.org/ns/activitystreams#Object"

- pluralName: instruments
  singularName: instrument
  singularAccessor: true
  uri: "https://www.w3.org/ns/activitystreams#instrument"
  description: |
    Identifies one or more objects used (or to be used) in the completion of
    an {@link Activity}.
  range:
  - "https://www.w3.org/ns/activitystreams#Object"