@fedify/vocab 2.5.0-dev.2332 → 2.5.0-dev.2355

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.
Files changed (38) hide show
  1. package/deno.json +1 -1
  2. package/dist/mod.cjs +851 -2
  3. package/dist/mod.d.cts +227 -0
  4. package/dist/mod.d.ts +227 -0
  5. package/dist/mod.js +851 -2
  6. package/dist-tests/{actor-DpNkhFU9.mjs → actor-BbIjMjNa.mjs} +2 -2
  7. package/dist-tests/actor.test.mjs +3 -3
  8. package/dist-tests/application.yaml +15 -0
  9. package/dist-tests/{esm-Cncdk-Cm.mjs → esm-rg6f9oLR.mjs} +1 -1
  10. package/dist-tests/gateway.test.mjs +3 -3
  11. package/dist-tests/group.yaml +15 -0
  12. package/dist-tests/license.test.mjs +538 -0
  13. package/dist-tests/link.yaml +25 -0
  14. package/dist-tests/{lookup-CIDHxy5l.mjs → lookup-DKLMyPMJ.mjs} +2 -2
  15. package/dist-tests/lookup.test.mjs +3 -3
  16. package/dist-tests/object.yaml +30 -0
  17. package/dist-tests/organization.yaml +15 -0
  18. package/dist-tests/person.yaml +15 -0
  19. package/dist-tests/portable-lookup.test.mjs +4 -4
  20. package/dist-tests/service.yaml +15 -0
  21. package/dist-tests/signed-representation.test.mjs +1 -1
  22. package/dist-tests/src-DVk5F9Ik.mjs +9 -0
  23. package/dist-tests/translation.test.mjs +3 -6
  24. package/dist-tests/type.test.mjs +1 -1
  25. package/dist-tests/{vocab-EFWWufqL.mjs → vocab-Cg2PG-xH.mjs} +851 -2
  26. package/dist-tests/vocab.test.mjs +9 -3
  27. package/package.json +4 -4
  28. package/src/__snapshots__/vocab.test.ts.snap +480 -33
  29. package/src/application.yaml +15 -0
  30. package/src/group.yaml +15 -0
  31. package/src/license.test.ts +588 -0
  32. package/src/link.yaml +25 -0
  33. package/src/object.yaml +30 -0
  34. package/src/organization.yaml +15 -0
  35. package/src/person.yaml +15 -0
  36. package/src/service.yaml +15 -0
  37. package/src/vocab.test.ts +18 -6
  38. package/LICENSE +0 -20
@@ -484,3 +484,33 @@ properties:
484
484
  no authority to update the object.
485
485
  range:
486
486
  - "https://w3id.org/fep/22cd#Translation"
487
+
488
+ - pluralName: licenses
489
+ singularName: license
490
+ compactName: license
491
+ uri: "http://purl.org/dc/terms/license"
492
+ extraContext: "https://w3id.org/fep/6757"
493
+ redundantProperties:
494
+ - uri: "https://schema.org/license"
495
+ - uri: "http://creativecommons.org/ns#license"
496
+ redundantPropertiesWrite: canonical
497
+ description: |
498
+ The copyright licenses for this object, as defined by
499
+ [FEP-6757](https://w3id.org/fep/6757). Each license is identified by its
500
+ URI, such as <https://creativecommons.org/licenses/by/4.0/>; license names
501
+ and SPDX short identifiers are not license URIs. Multiple values are
502
+ alternatives that a consumer may choose from; their order has no meaning.
503
+
504
+ An empty list means the object carries no license metadata. Fedify does
505
+ not synthesize a default license for it; FEP-6757 suggests that consumers
506
+ treat such content as “all rights reserved,” but that is a consumer policy,
507
+ not a value of this property. A license on an actor, activity, or
508
+ collection covers that object itself, not the objects the actor authored,
509
+ the activity's object, or the collection's items. An actor's
510
+ `preferredLicense` is not a fallback for this property either.
511
+
512
+ The `https://schema.org/license` and
513
+ `http://creativecommons.org/ns#license` properties are read as synonyms
514
+ when this property is absent, but only this property is written.
515
+ range:
516
+ - "fedify:absoluteIri"
@@ -351,3 +351,18 @@ properties:
351
351
  attached in some clients.
352
352
  range:
353
353
  - "http://www.w3.org/2001/XMLSchema#boolean"
354
+
355
+ - singularName: preferredLicense
356
+ functional: true
357
+ compactName: preferredLicense
358
+ uri: "https://w3id.org/fep/6757#preferredLicense"
359
+ extraContext: "https://w3id.org/fep/6757"
360
+ description: |
361
+ The URI of the license this actor prefers for the new objects it creates,
362
+ as defined by [FEP-6757](https://w3id.org/fep/6757). A client can use it
363
+ as the default `license` of a new object and let the user choose another.
364
+
365
+ This is not a fallback license: an object without its own `license` is not
366
+ licensed under its author's preferred license.
367
+ range:
368
+ - "fedify:absoluteIri"
@@ -351,3 +351,18 @@ properties:
351
351
  attached in some clients.
352
352
  range:
353
353
  - "http://www.w3.org/2001/XMLSchema#boolean"
354
+
355
+ - singularName: preferredLicense
356
+ functional: true
357
+ compactName: preferredLicense
358
+ uri: "https://w3id.org/fep/6757#preferredLicense"
359
+ extraContext: "https://w3id.org/fep/6757"
360
+ description: |
361
+ The URI of the license this actor prefers for the new objects it creates,
362
+ as defined by [FEP-6757](https://w3id.org/fep/6757). A client can use it
363
+ as the default `license` of a new object and let the user choose another.
364
+
365
+ This is not a fallback license: an object without its own `license` is not
366
+ licensed under its author's preferred license.
367
+ range:
368
+ - "fedify:absoluteIri"
@@ -1,9 +1,9 @@
1
1
  import "temporal-polyfill";
2
2
  globalThis.addEventListener = () => {};
3
- import { F as Person } from "./vocab-EFWWufqL.mjs";
4
- import { t as esm_default } from "./esm-Cncdk-Cm.mjs";
5
- import { n as getActorHandle } from "./actor-DpNkhFU9.mjs";
6
- import { t as lookupObject } from "./lookup-CIDHxy5l.mjs";
3
+ import { F as Person } from "./vocab-Cg2PG-xH.mjs";
4
+ import { t as esm_default } from "./esm-rg6f9oLR.mjs";
5
+ import { n as getActorHandle } from "./actor-BbIjMjNa.mjs";
6
+ import { t as lookupObject } from "./lookup-DKLMyPMJ.mjs";
7
7
  import { t as assertInstanceOf } from "./utils-Df2odC27.mjs";
8
8
  import { mockDocumentLoader, test } from "@fedify/fixture";
9
9
  import { deepStrictEqual, equal, rejects } from "node:assert/strict";
@@ -351,3 +351,18 @@ properties:
351
351
  attached in some clients.
352
352
  range:
353
353
  - "http://www.w3.org/2001/XMLSchema#boolean"
354
+
355
+ - singularName: preferredLicense
356
+ functional: true
357
+ compactName: preferredLicense
358
+ uri: "https://w3id.org/fep/6757#preferredLicense"
359
+ extraContext: "https://w3id.org/fep/6757"
360
+ description: |
361
+ The URI of the license this actor prefers for the new objects it creates,
362
+ as defined by [FEP-6757](https://w3id.org/fep/6757). A client can use it
363
+ as the default `license` of a new object and let the user choose another.
364
+
365
+ This is not a fallback license: an object without its own `license` is not
366
+ licensed under its author's preferred license.
367
+ range:
368
+ - "fedify:absoluteIri"
@@ -1,6 +1,6 @@
1
1
  import "temporal-polyfill";
2
2
  globalThis.addEventListener = () => {};
3
- import { M as OrderedCollection, X as vocab_exports, i as Announce, k as Note, u as Create, z as Question } from "./vocab-EFWWufqL.mjs";
3
+ import { M as OrderedCollection, Z as vocab_exports, i as Announce, k as Note, u as Create, z as Question } from "./vocab-Cg2PG-xH.mjs";
4
4
  import { mockDocumentLoader, test } from "@fedify/fixture";
5
5
  import { deepStrictEqual, ok } from "node:assert/strict";
6
6
  import { isMarkerSafeContext, retainSignedRepresentation } from "@fedify/vocab-runtime/internal/signed-representation";
@@ -0,0 +1,9 @@
1
+ import "temporal-polyfill";
2
+ globalThis.addEventListener = () => {};
3
+ import "./vocab-Cg2PG-xH.mjs";
4
+ import "./actor-BbIjMjNa.mjs";
5
+ import "./lookup-DKLMyPMJ.mjs";
6
+ import { LanguageString as LanguageString$1 } from "@fedify/vocab-runtime";
7
+ new URL("https://www.w3.org/ns/activitystreams#Public");
8
+ //#endregion
9
+ export { LanguageString$1 as t };
@@ -1,13 +1,10 @@
1
1
  import "temporal-polyfill";
2
2
  globalThis.addEventListener = () => {};
3
- import { A as Object$1, E as Link, F as Person, K as Translation, L as PropertyValue, P as Organization, U as Service, a as Application, b as Group, k as Note, o as Article, q as Update, s as Collection, u as Create } from "./vocab-EFWWufqL.mjs";
4
- import "./actor-DpNkhFU9.mjs";
5
- import "./lookup-CIDHxy5l.mjs";
3
+ import { A as Object$1, E as Link, F as Person, K as Translation, L as PropertyValue, P as Organization, U as Service, a as Application, b as Group, k as Note, o as Article, q as Update, s as Collection, u as Create } from "./vocab-Cg2PG-xH.mjs";
4
+ import { t as LanguageString$1 } from "./src-DVk5F9Ik.mjs";
6
5
  import { test } from "@fedify/fixture";
7
6
  import { deepStrictEqual, ok, rejects } from "node:assert/strict";
8
- import { LanguageString as LanguageString$1, getDocumentLoader, preloadedContexts } from "@fedify/vocab-runtime";
9
- new URL("https://www.w3.org/ns/activitystreams#Public");
10
- //#endregion
7
+ import { getDocumentLoader, preloadedContexts } from "@fedify/vocab-runtime";
11
8
  //#region src/translation.test.ts
12
9
  const { Temporal: TemporalPolyfill } = await import("temporal-polyfill");
13
10
  const AS = "https://www.w3.org/ns/activitystreams";
@@ -1,6 +1,6 @@
1
1
  import "temporal-polyfill";
2
2
  globalThis.addEventListener = () => {};
3
- import { E as Link, F as Person, J as getEntityTypeById, Y as isEntityType } from "./vocab-EFWWufqL.mjs";
3
+ import { E as Link, F as Person, X as isEntityType, Y as getEntityTypeById } from "./vocab-Cg2PG-xH.mjs";
4
4
  import { t as getTypeId } from "./type-BMdjm4Eg.mjs";
5
5
  import { test } from "@fedify/fixture";
6
6
  import { deepStrictEqual } from "node:assert/strict";