Loading CHANGES.md +3 −0 Original line number Diff line number Diff line Loading @@ -83,6 +83,9 @@ To be released. - Added `TentativeAccept` class to Activity Vocabulary API. [[#65], [#92] by Lee Dogeon] - Added `TentativeReject` class to Activity Vocabulary API. [[#65], [#92] by Lee Dogeon] [#53]: https://github.com/dahlia/fedify/issues/53 [#66]: https://github.com/dahlia/fedify/issues/66 [#70]: https://github.com/dahlia/fedify/issues/70 Loading FEDERATION.md +1 −0 Original line number Diff line number Diff line Loading @@ -68,6 +68,7 @@ lists the activity types that Fedify provides: - [`Reject`](https://jsr.io/@fedify/fedify/doc/vocab/~/Reject) - [`Remove`](https://jsr.io/@fedify/fedify/doc/vocab/~/Remove) - [`TentativeAccept`](https://jsr.io/@fedify/fedify/doc/vocab/~/TentativeAccept) - [`TentativeReject`](https://jsr.io/@fedify/fedify/doc/vocab/~/TentativeReject) - [`Travel`](https://jsr.io/@fedify/fedify/doc/vocab/~/Travel) - [`Undo`](https://jsr.io/@fedify/fedify/doc/vocab/~/Undo) - [`Update`](https://jsr.io/@fedify/fedify/doc/vocab/~/Update) Loading codegen/__snapshots__/class.test.ts.snap +257 −11 File changed.Preview size limit exceeded, changes collapsed. Show changes vocab/__snapshots__/vocab.test.ts.snap +120 −0 Original line number Diff line number Diff line Loading @@ -6009,6 +6009,126 @@ snapshot[`Deno.inspect(TentativeAccept) [auto] 3`] = ` }' `; snapshot[`Deno.inspect(TentativeReject) [auto] 1`] = ` 'TentativeReject { id: URL "https://example.com/", attachments: [ Object {}, Link {}, PropertyValue {} ], attributions: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], audience: Object {}, contents: [ "hello", <en> "hello" ], contexts: [ Object {}, Link {} ], names: [ "hello", <en> "hello" ], endTime: 2024-03-03T08:30:06.796196096Z, generators: [ Object {}, Link {} ], icon: Image {}, image: Image {}, replyTargets: [ Object {}, Link {} ], locations: [ Object {}, Link {} ], previews: [ Link {}, Object {} ], published: 2024-03-03T08:30:06.796196096Z, replies: Collection {}, startTime: 2024-03-03T08:30:06.796196096Z, summaries: [ "hello", <en> "hello" ], tags: [ Object {}, Link {} ], updated: 2024-03-03T08:30:06.796196096Z, urls: [ URL "https://example.com/", Link {} ], to: Object {}, bto: Object {}, cc: Object {}, bcc: Object {}, mediaType: "hello", duration: PT1H, sensitive: true, proof: DataIntegrityProof {}, actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], object: Object {}, target: Object {}, result: Object {}, origin: Object {}, instrument: Object {} }' `; snapshot[`Deno.inspect(TentativeReject) [auto] 2`] = ` 'TentativeReject { id: URL "https://example.com/", attachments: [ URL "https://example.com/" ], attribution: URL "https://example.com/", audience: URL "https://example.com/", contents: [ "hello", <en> "hello" ], contexts: [ URL "https://example.com/" ], names: [ "hello", <en> "hello" ], endTime: 2024-03-03T08:30:06.796196096Z, generators: [ URL "https://example.com/" ], icon: URL "https://example.com/", image: URL "https://example.com/", replyTarget: URL "https://example.com/", location: URL "https://example.com/", preview: URL "https://example.com/", published: 2024-03-03T08:30:06.796196096Z, replies: URL "https://example.com/", startTime: 2024-03-03T08:30:06.796196096Z, summaries: [ "hello", <en> "hello" ], tags: [ URL "https://example.com/" ], updated: 2024-03-03T08:30:06.796196096Z, urls: [ URL "https://example.com/", Link {} ], to: URL "https://example.com/", bto: URL "https://example.com/", cc: URL "https://example.com/", bcc: URL "https://example.com/", mediaType: "hello", duration: PT1H, sensitive: true, proof: URL "https://example.com/", actor: URL "https://example.com/", object: URL "https://example.com/", target: URL "https://example.com/", result: URL "https://example.com/", origin: URL "https://example.com/", instrument: URL "https://example.com/" }' `; snapshot[`Deno.inspect(TentativeReject) [auto] 3`] = ` 'TentativeReject { id: URL "https://example.com/", attachments: [ Object {}, Object {} ], attributions: [ Application {}, Application {} ], audiences: [ Object {}, Object {} ], contents: [ "hello", "hello" ], contexts: [ Object {}, Object {} ], names: [ "hello", "hello" ], endTime: 2024-03-03T08:30:06.796196096Z, generators: [ Object {}, Object {} ], icons: [ Image {}, Image {} ], images: [ Image {}, Image {} ], replyTargets: [ Object {}, Object {} ], locations: [ Object {}, Object {} ], previews: [ Link {}, Link {} ], published: 2024-03-03T08:30:06.796196096Z, replies: Collection {}, startTime: 2024-03-03T08:30:06.796196096Z, summaries: [ "hello", "hello" ], tags: [ Object {}, Object {} ], updated: 2024-03-03T08:30:06.796196096Z, urls: [ URL "https://example.com/", URL "https://example.com/" ], tos: [ Object {}, Object {} ], btos: [ Object {}, Object {} ], ccs: [ Object {}, Object {} ], bccs: [ Object {}, Object {} ], mediaType: "hello", duration: PT1H, sensitive: true, proofs: [ DataIntegrityProof {}, DataIntegrityProof {} ], actors: [ Application {}, Application {} ], objects: [ Object {}, Object {} ], targets: [ Object {}, Object {} ], results: [ Object {}, Object {} ], origins: [ Object {}, Object {} ], instruments: [ Object {}, Object {} ] }' `; snapshot[`Deno.inspect(Tombstone) [auto] 1`] = ` 'Tombstone { id: URL "https://example.com/", Loading vocab/tentativereject.yaml 0 → 100644 +12 −0 Original line number Diff line number Diff line $schema: ../codegen/schema.yaml name: TentativeReject uri: "https://www.w3.org/ns/activitystreams#TentativeReject" extends: "https://www.w3.org/ns/activitystreams#Reject" entity: true description: | A specialization of {@link Reject} in which the rejection is considered tentative. defaultContext: - "https://www.w3.org/ns/activitystreams" - "https://w3id.org/security/data-integrity/v1" properties: [] Loading
CHANGES.md +3 −0 Original line number Diff line number Diff line Loading @@ -83,6 +83,9 @@ To be released. - Added `TentativeAccept` class to Activity Vocabulary API. [[#65], [#92] by Lee Dogeon] - Added `TentativeReject` class to Activity Vocabulary API. [[#65], [#92] by Lee Dogeon] [#53]: https://github.com/dahlia/fedify/issues/53 [#66]: https://github.com/dahlia/fedify/issues/66 [#70]: https://github.com/dahlia/fedify/issues/70 Loading
FEDERATION.md +1 −0 Original line number Diff line number Diff line Loading @@ -68,6 +68,7 @@ lists the activity types that Fedify provides: - [`Reject`](https://jsr.io/@fedify/fedify/doc/vocab/~/Reject) - [`Remove`](https://jsr.io/@fedify/fedify/doc/vocab/~/Remove) - [`TentativeAccept`](https://jsr.io/@fedify/fedify/doc/vocab/~/TentativeAccept) - [`TentativeReject`](https://jsr.io/@fedify/fedify/doc/vocab/~/TentativeReject) - [`Travel`](https://jsr.io/@fedify/fedify/doc/vocab/~/Travel) - [`Undo`](https://jsr.io/@fedify/fedify/doc/vocab/~/Undo) - [`Update`](https://jsr.io/@fedify/fedify/doc/vocab/~/Update) Loading
codegen/__snapshots__/class.test.ts.snap +257 −11 File changed.Preview size limit exceeded, changes collapsed. Show changes
vocab/__snapshots__/vocab.test.ts.snap +120 −0 Original line number Diff line number Diff line Loading @@ -6009,6 +6009,126 @@ snapshot[`Deno.inspect(TentativeAccept) [auto] 3`] = ` }' `; snapshot[`Deno.inspect(TentativeReject) [auto] 1`] = ` 'TentativeReject { id: URL "https://example.com/", attachments: [ Object {}, Link {}, PropertyValue {} ], attributions: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], audience: Object {}, contents: [ "hello", <en> "hello" ], contexts: [ Object {}, Link {} ], names: [ "hello", <en> "hello" ], endTime: 2024-03-03T08:30:06.796196096Z, generators: [ Object {}, Link {} ], icon: Image {}, image: Image {}, replyTargets: [ Object {}, Link {} ], locations: [ Object {}, Link {} ], previews: [ Link {}, Object {} ], published: 2024-03-03T08:30:06.796196096Z, replies: Collection {}, startTime: 2024-03-03T08:30:06.796196096Z, summaries: [ "hello", <en> "hello" ], tags: [ Object {}, Link {} ], updated: 2024-03-03T08:30:06.796196096Z, urls: [ URL "https://example.com/", Link {} ], to: Object {}, bto: Object {}, cc: Object {}, bcc: Object {}, mediaType: "hello", duration: PT1H, sensitive: true, proof: DataIntegrityProof {}, actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], object: Object {}, target: Object {}, result: Object {}, origin: Object {}, instrument: Object {} }' `; snapshot[`Deno.inspect(TentativeReject) [auto] 2`] = ` 'TentativeReject { id: URL "https://example.com/", attachments: [ URL "https://example.com/" ], attribution: URL "https://example.com/", audience: URL "https://example.com/", contents: [ "hello", <en> "hello" ], contexts: [ URL "https://example.com/" ], names: [ "hello", <en> "hello" ], endTime: 2024-03-03T08:30:06.796196096Z, generators: [ URL "https://example.com/" ], icon: URL "https://example.com/", image: URL "https://example.com/", replyTarget: URL "https://example.com/", location: URL "https://example.com/", preview: URL "https://example.com/", published: 2024-03-03T08:30:06.796196096Z, replies: URL "https://example.com/", startTime: 2024-03-03T08:30:06.796196096Z, summaries: [ "hello", <en> "hello" ], tags: [ URL "https://example.com/" ], updated: 2024-03-03T08:30:06.796196096Z, urls: [ URL "https://example.com/", Link {} ], to: URL "https://example.com/", bto: URL "https://example.com/", cc: URL "https://example.com/", bcc: URL "https://example.com/", mediaType: "hello", duration: PT1H, sensitive: true, proof: URL "https://example.com/", actor: URL "https://example.com/", object: URL "https://example.com/", target: URL "https://example.com/", result: URL "https://example.com/", origin: URL "https://example.com/", instrument: URL "https://example.com/" }' `; snapshot[`Deno.inspect(TentativeReject) [auto] 3`] = ` 'TentativeReject { id: URL "https://example.com/", attachments: [ Object {}, Object {} ], attributions: [ Application {}, Application {} ], audiences: [ Object {}, Object {} ], contents: [ "hello", "hello" ], contexts: [ Object {}, Object {} ], names: [ "hello", "hello" ], endTime: 2024-03-03T08:30:06.796196096Z, generators: [ Object {}, Object {} ], icons: [ Image {}, Image {} ], images: [ Image {}, Image {} ], replyTargets: [ Object {}, Object {} ], locations: [ Object {}, Object {} ], previews: [ Link {}, Link {} ], published: 2024-03-03T08:30:06.796196096Z, replies: Collection {}, startTime: 2024-03-03T08:30:06.796196096Z, summaries: [ "hello", "hello" ], tags: [ Object {}, Object {} ], updated: 2024-03-03T08:30:06.796196096Z, urls: [ URL "https://example.com/", URL "https://example.com/" ], tos: [ Object {}, Object {} ], btos: [ Object {}, Object {} ], ccs: [ Object {}, Object {} ], bccs: [ Object {}, Object {} ], mediaType: "hello", duration: PT1H, sensitive: true, proofs: [ DataIntegrityProof {}, DataIntegrityProof {} ], actors: [ Application {}, Application {} ], objects: [ Object {}, Object {} ], targets: [ Object {}, Object {} ], results: [ Object {}, Object {} ], origins: [ Object {}, Object {} ], instruments: [ Object {}, Object {} ] }' `; snapshot[`Deno.inspect(Tombstone) [auto] 1`] = ` 'Tombstone { id: URL "https://example.com/", Loading
vocab/tentativereject.yaml 0 → 100644 +12 −0 Original line number Diff line number Diff line $schema: ../codegen/schema.yaml name: TentativeReject uri: "https://www.w3.org/ns/activitystreams#TentativeReject" extends: "https://www.w3.org/ns/activitystreams#Reject" entity: true description: | A specialization of {@link Reject} in which the rejection is considered tentative. defaultContext: - "https://www.w3.org/ns/activitystreams" - "https://w3id.org/security/data-integrity/v1" properties: []