Unverified Commit 68ec66b9 authored by Hong Minhee (洪 民憙)'s avatar Hong Minhee (洪 民憙) Committed by GitHub
Browse files

Merge pull request #68 from randy5235/Add-Arrive.yml

#65: add Arrive to vocab
parents c98828aa cb26a72d
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -106,6 +106,9 @@ To be released.
     -  The `Context.sendActivity()` method's first parameter now accepts
        `SenderKeyPair[]` as well.

 -  Added `Arrive` class to Activity Vocabulary API.
    [[#65], [#68] by Randy Wressell]

 -  Added `Question` class to Activity Vocabulary API.

 -  Added `context` option to `Object.toJsonLd()` method.  This applies to
@@ -140,6 +143,8 @@ To be released.

[#54]: https://github.com/dahlia/fedify/issues/54
[#55]: https://github.com/dahlia/fedify/issues/55
[#65]: https://github.com/dahlia/fedify/issues/65
[#68]: https://github.com/dahlia/fedify/pull/68
[FEP-521a]: https://codeberg.org/fediverse/fep/src/branch/main/fep/521a/fep-521a.md
[FEP-8b32]: https://codeberg.org/fediverse/fep/src/branch/main/fep/8b32/fep-8b32.md
[x-forwarded-fetch]: https://github.com/dahlia/x-forwarded-fetch
+1 −0
Original line number Diff line number Diff line
@@ -48,6 +48,7 @@ lists the activity types that Fedify provides:
 -  [`Accept`](https://jsr.io/@fedify/fedify/doc/vocab/~/Accept)
 -  [`Add`](https://jsr.io/@fedify/fedify/doc/vocab/~/Add)
 -  [`Announce`](https://jsr.io/@fedify/fedify/doc/vocab/~/Announce)
 -  [`Arrive`](https://jsr.io/@fedify/fedify/doc/vocab/~/Arrive)
 -  [`Block`](https://jsr.io/@fedify/fedify/doc/vocab/~/Block)
 -  [`Create`](https://jsr.io/@fedify/fedify/doc/vocab/~/Create)
 -  [`Delete`](https://jsr.io/@fedify/fedify/doc/vocab/~/Delete)
+454 −236

File changed.

Preview size limit exceeded, changes collapsed.

+108 −0
Original line number Diff line number Diff line
@@ -834,6 +834,114 @@ snapshot[`Deno.inspect(Application) [auto] 3`] = `
}'
`;

snapshot[`Deno.inspect(Arrive) [auto] 1`] = `
'Arrive {
  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 {}
}'
`;

snapshot[`Deno.inspect(Arrive) [auto] 2`] = `
'Arrive {
  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/"
}'
`;

snapshot[`Deno.inspect(Arrive) [auto] 3`] = `
'Arrive {
  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 {} ]
}'
`;

snapshot[`Deno.inspect(Article) [auto] 1`] = `
'Article {
  id: URL "https://example.com/",

vocab/arrive.yaml

0 → 100644
+13 −0
Original line number Diff line number Diff line
$schema: ../codegen/schema.yaml
name: Arrive
uri: "https://www.w3.org/ns/activitystreams#Arrive"
extends: "https://www.w3.org/ns/activitystreams#IntransitiveActivity"
entity: true
description: |
  An `IntransitiveActivity` that indicates that the `actor` has arrived at the `location`.
  The `origin` can be used to identify the context from which the `actor` originated.
  The `target` typically has no defined meaning.
defaultContext:
- "https://www.w3.org/ns/activitystreams"
- "https://w3id.org/security/data-integrity/v1"
properties: []