@fedify/vocab 2.1.0-dev.536 → 2.1.0-dev.565
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/deno.json +1 -1
- package/dist/accept.yaml +1 -0
- package/dist/activity.yaml +1 -0
- package/dist/actor.test.js +5 -5
- package/dist/add.yaml +1 -0
- package/dist/announce.yaml +1 -0
- package/dist/announceauthorization.yaml +40 -0
- package/dist/announcerequest.yaml +24 -0
- package/dist/application.yaml +1 -0
- package/dist/arrive.yaml +1 -0
- package/dist/article.yaml +1 -0
- package/dist/audio.yaml +1 -0
- package/dist/block.yaml +1 -0
- package/dist/chatmessage.yaml +1 -0
- package/dist/collection.yaml +1 -0
- package/dist/collectionpage.yaml +1 -0
- package/dist/create.yaml +1 -0
- package/dist/delete.yaml +1 -0
- package/dist/{deno-DtLTceue.js → deno-D6ZtKO2-.js} +2 -2
- package/dist/dislike.yaml +1 -0
- package/dist/document.yaml +1 -0
- package/dist/emojireact.yaml +1 -0
- package/dist/event.yaml +1 -0
- package/dist/flag.yaml +1 -0
- package/dist/follow.yaml +1 -0
- package/dist/group.yaml +1 -0
- package/dist/ignore.yaml +1 -0
- package/dist/image.yaml +4 -1
- package/dist/interactionpolicy.yaml +54 -0
- package/dist/interactionrule.yaml +50 -0
- package/dist/intransitiveactivity.yaml +1 -0
- package/dist/invite.yaml +1 -0
- package/dist/join.yaml +1 -0
- package/dist/leave.yaml +1 -0
- package/dist/like.yaml +1 -0
- package/dist/likeauthorization.yaml +39 -0
- package/dist/likerequest.yaml +23 -0
- package/dist/listen.yaml +1 -0
- package/dist/lookup.test.js +7 -6
- package/dist/mod.cjs +3924 -405
- package/dist/mod.d.cts +2154 -1
- package/dist/mod.d.ts +2154 -1
- package/dist/mod.js +3917 -406
- package/dist/move.yaml +1 -0
- package/dist/note.yaml +1 -0
- package/dist/object.yaml +61 -0
- package/dist/offer.yaml +1 -0
- package/dist/orderedcollection.yaml +1 -0
- package/dist/orderedcollectionpage.yaml +1 -0
- package/dist/organization.yaml +1 -0
- package/dist/page.yaml +1 -0
- package/dist/person.yaml +1 -0
- package/dist/place.yaml +1 -0
- package/dist/profile.yaml +1 -0
- package/dist/question.yaml +1 -0
- package/dist/read.yaml +1 -0
- package/dist/reject.yaml +1 -0
- package/dist/relationship.yaml +1 -0
- package/dist/remove.yaml +1 -0
- package/dist/replyauthorization.yaml +39 -0
- package/dist/replyrequest.yaml +23 -0
- package/dist/service.yaml +1 -0
- package/dist/tentativeaccept.yaml +1 -0
- package/dist/tentativereject.yaml +1 -0
- package/dist/tombstone.yaml +1 -0
- package/dist/travel.yaml +1 -0
- package/dist/type.test.js +3 -2
- package/dist/undo.yaml +1 -0
- package/dist/update.yaml +1 -0
- package/dist/video.yaml +1 -0
- package/dist/view.yaml +1 -0
- package/dist/{vocab-DNa6QysH.js → vocab-DErmegmL.js} +6904 -9618
- package/dist/vocab.test.js +15 -5
- package/package.json +4 -4
- package/src/__snapshots__/vocab.test.ts.snap +1756 -34
- package/src/accept.yaml +1 -0
- package/src/activity.yaml +1 -0
- package/src/add.yaml +1 -0
- package/src/announce.yaml +1 -0
- package/src/announceauthorization.yaml +40 -0
- package/src/announcerequest.yaml +24 -0
- package/src/application.yaml +1 -0
- package/src/arrive.yaml +1 -0
- package/src/article.yaml +1 -0
- package/src/audio.yaml +1 -0
- package/src/block.yaml +1 -0
- package/src/chatmessage.yaml +1 -0
- package/src/collection.yaml +1 -0
- package/src/collectionpage.yaml +1 -0
- package/src/create.yaml +1 -0
- package/src/delete.yaml +1 -0
- package/src/dislike.yaml +1 -0
- package/src/document.yaml +1 -0
- package/src/emojireact.yaml +1 -0
- package/src/event.yaml +1 -0
- package/src/flag.yaml +1 -0
- package/src/follow.yaml +1 -0
- package/src/group.yaml +1 -0
- package/src/ignore.yaml +1 -0
- package/src/image.yaml +4 -1
- package/src/interactionpolicy.yaml +54 -0
- package/src/interactionrule.yaml +50 -0
- package/src/intransitiveactivity.yaml +1 -0
- package/src/invite.yaml +1 -0
- package/src/join.yaml +1 -0
- package/src/leave.yaml +1 -0
- package/src/like.yaml +1 -0
- package/src/likeauthorization.yaml +39 -0
- package/src/likerequest.yaml +23 -0
- package/src/listen.yaml +1 -0
- package/src/move.yaml +1 -0
- package/src/note.yaml +1 -0
- package/src/object.yaml +61 -0
- package/src/offer.yaml +1 -0
- package/src/orderedcollection.yaml +1 -0
- package/src/orderedcollectionpage.yaml +1 -0
- package/src/organization.yaml +1 -0
- package/src/page.yaml +1 -0
- package/src/person.yaml +1 -0
- package/src/place.yaml +1 -0
- package/src/profile.yaml +1 -0
- package/src/question.yaml +1 -0
- package/src/read.yaml +1 -0
- package/src/reject.yaml +1 -0
- package/src/relationship.yaml +1 -0
- package/src/remove.yaml +1 -0
- package/src/replyauthorization.yaml +39 -0
- package/src/replyrequest.yaml +23 -0
- package/src/service.yaml +1 -0
- package/src/tentativeaccept.yaml +1 -0
- package/src/tentativereject.yaml +1 -0
- package/src/tombstone.yaml +1 -0
- package/src/travel.yaml +1 -0
- package/src/undo.yaml +1 -0
- package/src/update.yaml +1 -0
- package/src/video.yaml +1 -0
- package/src/view.yaml +1 -0
- package/src/vocab.test.ts +7 -1
- package/tsdown.config.ts +1 -1
- package/dist/chunk-BeeFIeNn.js +0 -45
- package/dist/execAsync-Bj-9hhe9.js +0 -17
- package/dist/getMachineId-bsd-JZpH2DVB.js +0 -34
- package/dist/getMachineId-darwin-CIJUQhqg.js +0 -30
- package/dist/getMachineId-linux-l0DNcix-.js +0 -27
- package/dist/getMachineId-unsupported-DFK1bZgt.js +0 -20
- package/dist/getMachineId-win-B0bq2tSf.js +0 -32
- /package/dist/{type-Dnf0m2yO.js → type-CNuABalk.js} +0 -0
- /package/dist/{utils-Dm0Onkcz.js → utils-BSWXlrig.js} +0 -0
package/dist/move.yaml
CHANGED
package/dist/note.yaml
CHANGED
|
@@ -10,6 +10,7 @@ description: |
|
|
|
10
10
|
defaultContext:
|
|
11
11
|
- "https://www.w3.org/ns/activitystreams"
|
|
12
12
|
- "https://w3id.org/security/data-integrity/v1"
|
|
13
|
+
- "https://gotosocial.org/ns"
|
|
13
14
|
- toot: "http://joinmastodon.org/ns#"
|
|
14
15
|
misskey: "https://misskey-hub.net/ns#"
|
|
15
16
|
fedibird: "http://fedibird.com/ns#"
|
package/dist/object.yaml
CHANGED
|
@@ -12,6 +12,7 @@ description: |
|
|
|
12
12
|
defaultContext:
|
|
13
13
|
- "https://www.w3.org/ns/activitystreams"
|
|
14
14
|
- "https://w3id.org/security/data-integrity/v1"
|
|
15
|
+
- "https://gotosocial.org/ns"
|
|
15
16
|
- fedibird: "http://fedibird.com/ns#"
|
|
16
17
|
sensitive: "as:sensitive"
|
|
17
18
|
emojiReactions:
|
|
@@ -402,3 +403,63 @@ properties:
|
|
|
402
403
|
A cryptographic proof that can be used to verify the integrity of an object.
|
|
403
404
|
range:
|
|
404
405
|
- "https://w3id.org/security#DataIntegrityProof"
|
|
406
|
+
|
|
407
|
+
- singularName: interactionPolicy
|
|
408
|
+
functional: true
|
|
409
|
+
compactName: interactionPolicy
|
|
410
|
+
uri: "https://gotosocial.org/ns#interactionPolicy"
|
|
411
|
+
untyped: true
|
|
412
|
+
description: |
|
|
413
|
+
The interaction policy for this object, specifying who can like, reply to,
|
|
414
|
+
or announce it. Contains sub-policies (`canLike`, `canReply`,
|
|
415
|
+
`canAnnounce`) each defining `automaticApproval` and `manualApproval`
|
|
416
|
+
lists.
|
|
417
|
+
|
|
418
|
+
When absent, implementations should assume anyone can interact with
|
|
419
|
+
the object. Setting this property signals that the server understands
|
|
420
|
+
and will enforce interaction controls.
|
|
421
|
+
|
|
422
|
+
See [GoToSocial interaction controls](https://docs.gotosocial.org/en/latest/federation/interaction_controls/)
|
|
423
|
+
for details.
|
|
424
|
+
range:
|
|
425
|
+
- "https://gotosocial.org/ns#InteractionPolicy"
|
|
426
|
+
|
|
427
|
+
- singularName: approvedBy
|
|
428
|
+
functional: true
|
|
429
|
+
compactName: approvedBy
|
|
430
|
+
uri: "https://gotosocial.org/ns#approvedBy"
|
|
431
|
+
description: |
|
|
432
|
+
A URI referencing an authorization object that proves this interaction
|
|
433
|
+
was approved by the target post's author.
|
|
434
|
+
range:
|
|
435
|
+
- "http://www.w3.org/2001/XMLSchema#anyURI"
|
|
436
|
+
|
|
437
|
+
- singularName: likeAuthorization
|
|
438
|
+
functional: true
|
|
439
|
+
compactName: likeAuthorization
|
|
440
|
+
uri: "https://gotosocial.org/ns#likeAuthorization"
|
|
441
|
+
description: |
|
|
442
|
+
A {@link LikeAuthorization} object that proves this like interaction
|
|
443
|
+
was approved by the target post's author.
|
|
444
|
+
range:
|
|
445
|
+
- "https://gotosocial.org/ns#LikeApproval"
|
|
446
|
+
|
|
447
|
+
- singularName: replyAuthorization
|
|
448
|
+
functional: true
|
|
449
|
+
compactName: replyAuthorization
|
|
450
|
+
uri: "https://gotosocial.org/ns#replyAuthorization"
|
|
451
|
+
description: |
|
|
452
|
+
A {@link ReplyAuthorization} object that proves this reply was approved
|
|
453
|
+
by the target post's author.
|
|
454
|
+
range:
|
|
455
|
+
- "https://gotosocial.org/ns#ReplyAuthorization"
|
|
456
|
+
|
|
457
|
+
- singularName: announceAuthorization
|
|
458
|
+
functional: true
|
|
459
|
+
compactName: announceAuthorization
|
|
460
|
+
uri: "https://gotosocial.org/ns#announceAuthorization"
|
|
461
|
+
description: |
|
|
462
|
+
An {@link AnnounceAuthorization} object that proves this announce
|
|
463
|
+
(boost) was approved by the target post's author.
|
|
464
|
+
range:
|
|
465
|
+
- "https://gotosocial.org/ns#AnnounceAuthorization"
|
package/dist/offer.yaml
CHANGED
|
@@ -10,6 +10,7 @@ description: |
|
|
|
10
10
|
defaultContext:
|
|
11
11
|
- "https://www.w3.org/ns/activitystreams"
|
|
12
12
|
- "https://w3id.org/security/data-integrity/v1"
|
|
13
|
+
- "https://gotosocial.org/ns"
|
|
13
14
|
- toot: "http://joinmastodon.org/ns#"
|
|
14
15
|
misskey: "https://misskey-hub.net/ns#"
|
|
15
16
|
fedibird: "http://fedibird.com/ns#"
|
|
@@ -11,6 +11,7 @@ description: |
|
|
|
11
11
|
defaultContext:
|
|
12
12
|
- "https://www.w3.org/ns/activitystreams"
|
|
13
13
|
- "https://w3id.org/security/data-integrity/v1"
|
|
14
|
+
- "https://gotosocial.org/ns"
|
|
14
15
|
- toot: "http://joinmastodon.org/ns#"
|
|
15
16
|
misskey: "https://misskey-hub.net/ns#"
|
|
16
17
|
fedibird: "http://fedibird.com/ns#"
|
package/dist/organization.yaml
CHANGED
package/dist/page.yaml
CHANGED
package/dist/person.yaml
CHANGED
package/dist/place.yaml
CHANGED
package/dist/profile.yaml
CHANGED
package/dist/question.yaml
CHANGED
|
@@ -17,6 +17,7 @@ defaultContext:
|
|
|
17
17
|
- "https://w3id.org/identity/v1"
|
|
18
18
|
- "https://www.w3.org/ns/activitystreams"
|
|
19
19
|
- "https://w3id.org/security/data-integrity/v1"
|
|
20
|
+
- "https://gotosocial.org/ns"
|
|
20
21
|
- toot: "http://joinmastodon.org/ns#"
|
|
21
22
|
misskey: "https://misskey-hub.net/ns#"
|
|
22
23
|
fedibird: "http://fedibird.com/ns#"
|
package/dist/read.yaml
CHANGED
package/dist/reject.yaml
CHANGED
package/dist/relationship.yaml
CHANGED
package/dist/remove.yaml
CHANGED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
$schema: ../../vocab-tools/schema.yaml
|
|
2
|
+
name: ReplyAuthorization
|
|
3
|
+
compactName: ReplyAuthorization
|
|
4
|
+
uri: "https://gotosocial.org/ns#ReplyAuthorization"
|
|
5
|
+
extends: "https://www.w3.org/ns/activitystreams#Object"
|
|
6
|
+
entity: true
|
|
7
|
+
description: |
|
|
8
|
+
Proves that a reply interaction has been approved by the post author.
|
|
9
|
+
|
|
10
|
+
This object is dereferenceable and is used by third parties to verify
|
|
11
|
+
that a reply was authorized. The `attributedTo` property identifies
|
|
12
|
+
the post author who granted the approval.
|
|
13
|
+
|
|
14
|
+
See [GoToSocial interaction controls](https://docs.gotosocial.org/en/latest/federation/interaction_controls/)
|
|
15
|
+
for details.
|
|
16
|
+
defaultContext:
|
|
17
|
+
- "https://www.w3.org/ns/activitystreams"
|
|
18
|
+
- "https://w3id.org/security/data-integrity/v1"
|
|
19
|
+
- "https://gotosocial.org/ns"
|
|
20
|
+
|
|
21
|
+
properties:
|
|
22
|
+
- singularName: interactingObject
|
|
23
|
+
functional: true
|
|
24
|
+
compactName: interactingObject
|
|
25
|
+
uri: "https://gotosocial.org/ns#interactingObject"
|
|
26
|
+
description: |
|
|
27
|
+
The URI of the reply object (e.g., a {@link Note}) that has been
|
|
28
|
+
authorized.
|
|
29
|
+
range:
|
|
30
|
+
- "https://www.w3.org/ns/activitystreams#Object"
|
|
31
|
+
|
|
32
|
+
- singularName: interactionTarget
|
|
33
|
+
functional: true
|
|
34
|
+
compactName: interactionTarget
|
|
35
|
+
uri: "https://gotosocial.org/ns#interactionTarget"
|
|
36
|
+
description: |
|
|
37
|
+
The URI of the post that is the target of the authorized reply.
|
|
38
|
+
range:
|
|
39
|
+
- "https://www.w3.org/ns/activitystreams#Object"
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
$schema: ../../vocab-tools/schema.yaml
|
|
2
|
+
name: ReplyRequest
|
|
3
|
+
compactName: ReplyRequest
|
|
4
|
+
uri: "https://gotosocial.org/ns#ReplyRequest"
|
|
5
|
+
extends: "https://www.w3.org/ns/activitystreams#Activity"
|
|
6
|
+
entity: true
|
|
7
|
+
description: |
|
|
8
|
+
A request to reply to a post that requires approval from the post author.
|
|
9
|
+
|
|
10
|
+
The `object` property references the post to be replied to, and
|
|
11
|
+
the `instrument` property contains the reply itself (e.g., a {@link Note}).
|
|
12
|
+
|
|
13
|
+
The post author responds with an {@link Accept} (with a
|
|
14
|
+
{@link ReplyAuthorization} as `result`) or a {@link Reject}.
|
|
15
|
+
|
|
16
|
+
See [GoToSocial interaction controls](https://docs.gotosocial.org/en/latest/federation/interaction_controls/)
|
|
17
|
+
for details.
|
|
18
|
+
defaultContext:
|
|
19
|
+
- "https://w3id.org/identity/v1"
|
|
20
|
+
- "https://www.w3.org/ns/activitystreams"
|
|
21
|
+
- "https://w3id.org/security/data-integrity/v1"
|
|
22
|
+
- "https://gotosocial.org/ns"
|
|
23
|
+
properties: []
|
package/dist/service.yaml
CHANGED
package/dist/tombstone.yaml
CHANGED
package/dist/travel.yaml
CHANGED
package/dist/type.test.js
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
4
|
|
|
5
|
-
import { Person
|
|
6
|
-
import { getTypeId } from "./type-
|
|
5
|
+
import { Person } from "./vocab-DErmegmL.js";
|
|
6
|
+
import { getTypeId } from "./type-CNuABalk.js";
|
|
7
|
+
import { test } from "@fedify/fixture";
|
|
7
8
|
import { deepStrictEqual } from "node:assert/strict";
|
|
8
9
|
|
|
9
10
|
//#region src/type.test.ts
|
package/dist/undo.yaml
CHANGED
|
@@ -19,6 +19,7 @@ defaultContext:
|
|
|
19
19
|
- "https://w3id.org/security/data-integrity/v1"
|
|
20
20
|
- "https://www.w3.org/ns/did/v1"
|
|
21
21
|
- "https://w3id.org/security/multikey/v1"
|
|
22
|
+
- "https://gotosocial.org/ns"
|
|
22
23
|
- litepub: "http://litepub.social/ns#"
|
|
23
24
|
toot: "http://joinmastodon.org/ns#"
|
|
24
25
|
EmojiReact: "litepub:EmojiReact"
|
package/dist/update.yaml
CHANGED
package/dist/video.yaml
CHANGED