Loading CHANGES.md +9 −0 Original line number Diff line number Diff line Loading @@ -62,6 +62,15 @@ To be released. - `Activity.clone()` method's `object` option no more accepts `Link` objects. - `Activity`'s `actor` property now accepts only `Actor` objects. - `new Activity()` constructor's `actor` option now accepts only `Actor` objects. - `Activity.getActor()` method now returns only an `Actor` object. - `Activity.getActors()` method now returns only `Actor` objects. - `Activity.clone()` method's `actor` option now accepts only `Actor` objects. - Added `sensitive` property to `Object` class. - `new Object()` constructor now accepts `sensitive` option. Loading codegen/__snapshots__/class.test.ts.snap +103 −81 File changed.Preview size limit exceeded, changes collapsed. Show changes examples/blog/federation/mod.ts +1 −1 Original line number Diff line number Diff line Loading @@ -148,7 +148,7 @@ federation.setInboxListeners("/users/{handle}/inbox", "/inbox") } const recipient = await follow.getActor(ctx); if ( !isActor(recipient) || recipient.id == null || recipient == null || recipient.id == null || recipient.preferredUsername == null || recipient.inboxId == null ) return; Loading vocab/__snapshots__/vocab.test.ts.snap +34 −34 Original line number Diff line number Diff line Loading @@ -97,7 +97,7 @@ snapshot[`Deno.inspect(Accept) [auto] 1`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Link {} ], actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], object: Object {} }' `; Loading Loading @@ -207,7 +207,7 @@ snapshot[`Deno.inspect(Accept) [auto] 3`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Object {} ], actors: [ Application {}, Application {} ], objects: [ Object {}, Object {} ] }' `; Loading Loading @@ -257,7 +257,7 @@ snapshot[`Deno.inspect(Activity) [auto] 1`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Link {} ], actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], object: Object {} }' `; Loading Loading @@ -367,7 +367,7 @@ snapshot[`Deno.inspect(Activity) [auto] 3`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Object {} ], actors: [ Application {}, Application {} ], objects: [ Object {}, Object {} ] }' `; Loading Loading @@ -417,7 +417,7 @@ snapshot[`Deno.inspect(Add) [auto] 1`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Link {} ], actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], object: Object {} }' `; Loading Loading @@ -527,7 +527,7 @@ snapshot[`Deno.inspect(Add) [auto] 3`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Object {} ], actors: [ Application {}, Application {} ], objects: [ Object {}, Object {} ] }' `; Loading Loading @@ -577,7 +577,7 @@ snapshot[`Deno.inspect(Announce) [auto] 1`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Link {} ], actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], object: Object {} }' `; Loading Loading @@ -687,7 +687,7 @@ snapshot[`Deno.inspect(Announce) [auto] 3`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Object {} ], actors: [ Application {}, Application {} ], objects: [ Object {}, Object {} ] }' `; Loading Loading @@ -1241,7 +1241,7 @@ snapshot[`Deno.inspect(Block) [auto] 1`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Link {} ], actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], object: Object {} }' `; Loading Loading @@ -1351,7 +1351,7 @@ snapshot[`Deno.inspect(Block) [auto] 3`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Object {} ], actors: [ Application {}, Application {} ], objects: [ Object {}, Object {} ] }' `; Loading Loading @@ -1748,7 +1748,7 @@ snapshot[`Deno.inspect(Create) [auto] 1`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Link {} ], actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], object: Object {} }' `; Loading Loading @@ -1858,7 +1858,7 @@ snapshot[`Deno.inspect(Create) [auto] 3`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Object {} ], actors: [ Application {}, Application {} ], objects: [ Object {}, Object {} ] }' `; Loading Loading @@ -1908,7 +1908,7 @@ snapshot[`Deno.inspect(Delete) [auto] 1`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Link {} ], actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], object: Object {} }' `; Loading Loading @@ -2018,7 +2018,7 @@ snapshot[`Deno.inspect(Delete) [auto] 3`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Object {} ], actors: [ Application {}, Application {} ], objects: [ Object {}, Object {} ] }' `; Loading Loading @@ -2068,7 +2068,7 @@ snapshot[`Deno.inspect(Dislike) [auto] 1`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Link {} ], actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], object: Object {} }' `; Loading Loading @@ -2178,7 +2178,7 @@ snapshot[`Deno.inspect(Dislike) [auto] 3`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Object {} ], actors: [ Application {}, Application {} ], objects: [ Object {}, Object {} ] }' `; Loading Loading @@ -2786,7 +2786,7 @@ snapshot[`Deno.inspect(Flag) [auto] 1`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Link {} ], actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], object: Object {} }' `; Loading Loading @@ -2896,7 +2896,7 @@ snapshot[`Deno.inspect(Flag) [auto] 3`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Object {} ], actors: [ Application {}, Application {} ], objects: [ Object {}, Object {} ] }' `; Loading Loading @@ -2946,7 +2946,7 @@ snapshot[`Deno.inspect(Follow) [auto] 1`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Link {} ], actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], object: Object {} }' `; Loading Loading @@ -3056,7 +3056,7 @@ snapshot[`Deno.inspect(Follow) [auto] 3`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Object {} ], actors: [ Application {}, Application {} ], objects: [ Object {}, Object {} ] }' `; Loading Loading @@ -3302,7 +3302,7 @@ snapshot[`Deno.inspect(Ignore) [auto] 1`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Link {} ], actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], object: Object {} }' `; Loading Loading @@ -3412,7 +3412,7 @@ snapshot[`Deno.inspect(Ignore) [auto] 3`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Object {} ], actors: [ Application {}, Application {} ], objects: [ Object {}, Object {} ] }' `; Loading Loading @@ -3616,7 +3616,7 @@ snapshot[`Deno.inspect(IntransitiveActivity) [auto] 1`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Link {} ], actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], object: Object {} }' `; Loading Loading @@ -3726,7 +3726,7 @@ snapshot[`Deno.inspect(IntransitiveActivity) [auto] 3`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Object {} ], actors: [ Application {}, Application {} ], objects: [ Object {}, Object {} ] }' `; Loading Loading @@ -3776,7 +3776,7 @@ snapshot[`Deno.inspect(Like) [auto] 1`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Link {} ], actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], object: Object {} }' `; Loading Loading @@ -3886,7 +3886,7 @@ snapshot[`Deno.inspect(Like) [auto] 3`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Object {} ], actors: [ Application {}, Application {} ], objects: [ Object {}, Object {} ] }' `; Loading Loading @@ -5657,7 +5657,7 @@ snapshot[`Deno.inspect(Reject) [auto] 1`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Link {} ], actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], object: Object {} }' `; Loading Loading @@ -5767,7 +5767,7 @@ snapshot[`Deno.inspect(Reject) [auto] 3`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Object {} ], actors: [ Application {}, Application {} ], objects: [ Object {}, Object {} ] }' `; Loading Loading @@ -5980,7 +5980,7 @@ snapshot[`Deno.inspect(Remove) [auto] 1`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Link {} ], actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], object: Object {} }' `; Loading Loading @@ -6090,7 +6090,7 @@ snapshot[`Deno.inspect(Remove) [auto] 3`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Object {} ], actors: [ Application {}, Application {} ], objects: [ Object {}, Object {} ] }' `; Loading Loading @@ -6336,7 +6336,7 @@ snapshot[`Deno.inspect(Undo) [auto] 1`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Link {} ], actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], object: Object {} }' `; Loading Loading @@ -6446,7 +6446,7 @@ snapshot[`Deno.inspect(Undo) [auto] 3`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Object {} ], actors: [ Application {}, Application {} ], objects: [ Object {}, Object {} ] }' `; Loading Loading @@ -6496,7 +6496,7 @@ snapshot[`Deno.inspect(Update) [auto] 1`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Link {} ], actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], object: Object {} }' `; Loading Loading @@ -6606,7 +6606,7 @@ snapshot[`Deno.inspect(Update) [auto] 3`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Object {} ], actors: [ Application {}, Application {} ], objects: [ Object {}, Object {} ] }' `; Loading vocab/activity.yaml +5 −2 Original line number Diff line number Diff line Loading @@ -24,8 +24,11 @@ properties: perform the activity. Any single activity can have multiple actors. The actor MAY be specified using an indirect {@link Link}. range: - "https://www.w3.org/ns/activitystreams#Object" - "https://www.w3.org/ns/activitystreams#Link" - "https://www.w3.org/ns/activitystreams#Application" - "https://www.w3.org/ns/activitystreams#Group" - "https://www.w3.org/ns/activitystreams#Organization" - "https://www.w3.org/ns/activitystreams#Person" - "https://www.w3.org/ns/activitystreams#Service" - pluralName: objects singularName: object Loading Loading
CHANGES.md +9 −0 Original line number Diff line number Diff line Loading @@ -62,6 +62,15 @@ To be released. - `Activity.clone()` method's `object` option no more accepts `Link` objects. - `Activity`'s `actor` property now accepts only `Actor` objects. - `new Activity()` constructor's `actor` option now accepts only `Actor` objects. - `Activity.getActor()` method now returns only an `Actor` object. - `Activity.getActors()` method now returns only `Actor` objects. - `Activity.clone()` method's `actor` option now accepts only `Actor` objects. - Added `sensitive` property to `Object` class. - `new Object()` constructor now accepts `sensitive` option. Loading
codegen/__snapshots__/class.test.ts.snap +103 −81 File changed.Preview size limit exceeded, changes collapsed. Show changes
examples/blog/federation/mod.ts +1 −1 Original line number Diff line number Diff line Loading @@ -148,7 +148,7 @@ federation.setInboxListeners("/users/{handle}/inbox", "/inbox") } const recipient = await follow.getActor(ctx); if ( !isActor(recipient) || recipient.id == null || recipient == null || recipient.id == null || recipient.preferredUsername == null || recipient.inboxId == null ) return; Loading
vocab/__snapshots__/vocab.test.ts.snap +34 −34 Original line number Diff line number Diff line Loading @@ -97,7 +97,7 @@ snapshot[`Deno.inspect(Accept) [auto] 1`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Link {} ], actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], object: Object {} }' `; Loading Loading @@ -207,7 +207,7 @@ snapshot[`Deno.inspect(Accept) [auto] 3`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Object {} ], actors: [ Application {}, Application {} ], objects: [ Object {}, Object {} ] }' `; Loading Loading @@ -257,7 +257,7 @@ snapshot[`Deno.inspect(Activity) [auto] 1`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Link {} ], actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], object: Object {} }' `; Loading Loading @@ -367,7 +367,7 @@ snapshot[`Deno.inspect(Activity) [auto] 3`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Object {} ], actors: [ Application {}, Application {} ], objects: [ Object {}, Object {} ] }' `; Loading Loading @@ -417,7 +417,7 @@ snapshot[`Deno.inspect(Add) [auto] 1`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Link {} ], actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], object: Object {} }' `; Loading Loading @@ -527,7 +527,7 @@ snapshot[`Deno.inspect(Add) [auto] 3`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Object {} ], actors: [ Application {}, Application {} ], objects: [ Object {}, Object {} ] }' `; Loading Loading @@ -577,7 +577,7 @@ snapshot[`Deno.inspect(Announce) [auto] 1`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Link {} ], actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], object: Object {} }' `; Loading Loading @@ -687,7 +687,7 @@ snapshot[`Deno.inspect(Announce) [auto] 3`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Object {} ], actors: [ Application {}, Application {} ], objects: [ Object {}, Object {} ] }' `; Loading Loading @@ -1241,7 +1241,7 @@ snapshot[`Deno.inspect(Block) [auto] 1`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Link {} ], actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], object: Object {} }' `; Loading Loading @@ -1351,7 +1351,7 @@ snapshot[`Deno.inspect(Block) [auto] 3`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Object {} ], actors: [ Application {}, Application {} ], objects: [ Object {}, Object {} ] }' `; Loading Loading @@ -1748,7 +1748,7 @@ snapshot[`Deno.inspect(Create) [auto] 1`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Link {} ], actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], object: Object {} }' `; Loading Loading @@ -1858,7 +1858,7 @@ snapshot[`Deno.inspect(Create) [auto] 3`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Object {} ], actors: [ Application {}, Application {} ], objects: [ Object {}, Object {} ] }' `; Loading Loading @@ -1908,7 +1908,7 @@ snapshot[`Deno.inspect(Delete) [auto] 1`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Link {} ], actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], object: Object {} }' `; Loading Loading @@ -2018,7 +2018,7 @@ snapshot[`Deno.inspect(Delete) [auto] 3`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Object {} ], actors: [ Application {}, Application {} ], objects: [ Object {}, Object {} ] }' `; Loading Loading @@ -2068,7 +2068,7 @@ snapshot[`Deno.inspect(Dislike) [auto] 1`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Link {} ], actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], object: Object {} }' `; Loading Loading @@ -2178,7 +2178,7 @@ snapshot[`Deno.inspect(Dislike) [auto] 3`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Object {} ], actors: [ Application {}, Application {} ], objects: [ Object {}, Object {} ] }' `; Loading Loading @@ -2786,7 +2786,7 @@ snapshot[`Deno.inspect(Flag) [auto] 1`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Link {} ], actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], object: Object {} }' `; Loading Loading @@ -2896,7 +2896,7 @@ snapshot[`Deno.inspect(Flag) [auto] 3`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Object {} ], actors: [ Application {}, Application {} ], objects: [ Object {}, Object {} ] }' `; Loading Loading @@ -2946,7 +2946,7 @@ snapshot[`Deno.inspect(Follow) [auto] 1`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Link {} ], actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], object: Object {} }' `; Loading Loading @@ -3056,7 +3056,7 @@ snapshot[`Deno.inspect(Follow) [auto] 3`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Object {} ], actors: [ Application {}, Application {} ], objects: [ Object {}, Object {} ] }' `; Loading Loading @@ -3302,7 +3302,7 @@ snapshot[`Deno.inspect(Ignore) [auto] 1`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Link {} ], actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], object: Object {} }' `; Loading Loading @@ -3412,7 +3412,7 @@ snapshot[`Deno.inspect(Ignore) [auto] 3`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Object {} ], actors: [ Application {}, Application {} ], objects: [ Object {}, Object {} ] }' `; Loading Loading @@ -3616,7 +3616,7 @@ snapshot[`Deno.inspect(IntransitiveActivity) [auto] 1`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Link {} ], actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], object: Object {} }' `; Loading Loading @@ -3726,7 +3726,7 @@ snapshot[`Deno.inspect(IntransitiveActivity) [auto] 3`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Object {} ], actors: [ Application {}, Application {} ], objects: [ Object {}, Object {} ] }' `; Loading Loading @@ -3776,7 +3776,7 @@ snapshot[`Deno.inspect(Like) [auto] 1`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Link {} ], actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], object: Object {} }' `; Loading Loading @@ -3886,7 +3886,7 @@ snapshot[`Deno.inspect(Like) [auto] 3`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Object {} ], actors: [ Application {}, Application {} ], objects: [ Object {}, Object {} ] }' `; Loading Loading @@ -5657,7 +5657,7 @@ snapshot[`Deno.inspect(Reject) [auto] 1`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Link {} ], actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], object: Object {} }' `; Loading Loading @@ -5767,7 +5767,7 @@ snapshot[`Deno.inspect(Reject) [auto] 3`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Object {} ], actors: [ Application {}, Application {} ], objects: [ Object {}, Object {} ] }' `; Loading Loading @@ -5980,7 +5980,7 @@ snapshot[`Deno.inspect(Remove) [auto] 1`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Link {} ], actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], object: Object {} }' `; Loading Loading @@ -6090,7 +6090,7 @@ snapshot[`Deno.inspect(Remove) [auto] 3`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Object {} ], actors: [ Application {}, Application {} ], objects: [ Object {}, Object {} ] }' `; Loading Loading @@ -6336,7 +6336,7 @@ snapshot[`Deno.inspect(Undo) [auto] 1`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Link {} ], actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], object: Object {} }' `; Loading Loading @@ -6446,7 +6446,7 @@ snapshot[`Deno.inspect(Undo) [auto] 3`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Object {} ], actors: [ Application {}, Application {} ], objects: [ Object {}, Object {} ] }' `; Loading Loading @@ -6496,7 +6496,7 @@ snapshot[`Deno.inspect(Update) [auto] 1`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Link {} ], actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], object: Object {} }' `; Loading Loading @@ -6606,7 +6606,7 @@ snapshot[`Deno.inspect(Update) [auto] 3`] = ` mediaType: "hello", duration: Duration [Temporal.Duration] {}, sensitive: true, actors: [ Object {}, Object {} ], actors: [ Application {}, Application {} ], objects: [ Object {}, Object {} ] }' `; Loading
vocab/activity.yaml +5 −2 Original line number Diff line number Diff line Loading @@ -24,8 +24,11 @@ properties: perform the activity. Any single activity can have multiple actors. The actor MAY be specified using an indirect {@link Link}. range: - "https://www.w3.org/ns/activitystreams#Object" - "https://www.w3.org/ns/activitystreams#Link" - "https://www.w3.org/ns/activitystreams#Application" - "https://www.w3.org/ns/activitystreams#Group" - "https://www.w3.org/ns/activitystreams#Organization" - "https://www.w3.org/ns/activitystreams#Person" - "https://www.w3.org/ns/activitystreams#Service" - pluralName: objects singularName: object Loading