@fedify/vocab 2.3.0-pr.809.39 → 2.4.0-dev.1417

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.
@@ -1,6 +1,6 @@
1
1
  import "@js-temporal/polyfill";
2
2
  globalThis.addEventListener = () => {};
3
- import { A as __commonJSMin, M as __toESM, r as Application, u as Group, v as Organization, w as Service, y as Person } from "./vocab-BBRml5cy.mjs";
3
+ import { E as Person, N as Service, T as Organization, V as __toESM, a as Application, m as Group, z as __commonJSMin } from "./vocab-XnSGFOqq.mjs";
4
4
  import { t as getTypeId } from "./type-Cf-vxmre.mjs";
5
5
  import { lookupWebFinger } from "@fedify/webfinger";
6
6
  import { SpanStatusCode, trace } from "@opentelemetry/api";
@@ -1206,7 +1206,7 @@ var esm_default = new class FetchMock {
1206
1206
  //#endregion
1207
1207
  //#region deno.json
1208
1208
  var name = "@fedify/vocab";
1209
- var version = "2.3.0-pr.809.39+f65f60c0";
1209
+ var version = "2.4.0-dev.1417+43d75b89";
1210
1210
  //#endregion
1211
1211
  //#region src/actor.ts
1212
1212
  const ACTOR_DISCOVERY_HISTOGRAM_BUCKETS = [
@@ -1,7 +1,7 @@
1
1
  import "@js-temporal/polyfill";
2
2
  globalThis.addEventListener = () => {};
3
- import { j as __exportAll, r as Application, u as Group, v as Organization, w as Service, y as Person } from "./vocab-BBRml5cy.mjs";
4
- import { a as normalizeActorHandle, c as esm_default, i as isActor, n as getActorHandle, r as getActorTypeName, t as getActorClassByTypeName } from "./actor-CjyrAA03.mjs";
3
+ import { B as __exportAll, E as Person, N as Service, T as Organization, a as Application, m as Group } from "./vocab-XnSGFOqq.mjs";
4
+ import { a as normalizeActorHandle, c as esm_default, i as isActor, n as getActorHandle, r as getActorTypeName, t as getActorClassByTypeName } from "./actor-Buop31ap.mjs";
5
5
  import { createTestMeterProvider, test } from "@fedify/fixture";
6
6
  import { deepStrictEqual, ok, rejects, strictEqual, throws } from "node:assert/strict";
7
7
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/precondition/PreconditionFailure.js
@@ -0,0 +1,68 @@
1
+ $schema: ../../vocab-tools/schema.yaml
2
+ name: Agreement
3
+ compactName: Agreement
4
+ uri: "https://w3id.org/valueflows/ont/vf#Agreement"
5
+ extends: "https://www.w3.org/ns/activitystreams#Object"
6
+ entity: true
7
+ description: |
8
+ The agreement reached between parties responding to a {@link Proposal}.
9
+
10
+ An interested party sends an `Agreement` wrapped in an {@link Offer}
11
+ activity. The proposing party then either finalizes the agreement by
12
+ sending an {@link Accept} activity with the finalized `Agreement` as
13
+ its `result`, or sends a {@link Reject} activity.
14
+
15
+ Note: This type extends ActivityStreams `Object` for practical
16
+ interoperability within ActivityPub federation, even though FEP-0837
17
+ defines `Agreement` as a pure ValueFlows type. Extending `Object`
18
+ provides useful inherited properties such as `id`, `attributedTo`,
19
+ `url`, `to`, and `published` without needing to redefine them.
20
+ # NOTE: The context includes mappings for Commitment and Measure properties
21
+ # (satisfies, resourceQuantity, hasUnit, hasNumericalValue) because the
22
+ # code generator does not automatically merge contexts from referenced
23
+ # types. Agreement must declare all mappings needed for correct JSON-LD
24
+ # serialization of its embedded Commitment and Measure objects.
25
+ defaultContext:
26
+ - "https://www.w3.org/ns/activitystreams"
27
+ - "https://w3id.org/security/data-integrity/v1"
28
+ - "https://gotosocial.org/ns"
29
+ - vf: "https://w3id.org/valueflows/ont/vf#"
30
+ om2: "http://www.ontology-of-units-of-measure.org/resource/om-2/"
31
+ fedibird: "http://fedibird.com/ns#"
32
+ sensitive: "as:sensitive"
33
+ emojiReactions:
34
+ "@id": "fedibird:emojiReactions"
35
+ "@type": "@id"
36
+ Agreement: "vf:Agreement"
37
+ Commitment: "vf:Commitment"
38
+ stipulates: "vf:stipulates"
39
+ stipulatesReciprocal: "vf:stipulatesReciprocal"
40
+ satisfies:
41
+ "@id": "vf:satisfies"
42
+ "@type": "@id"
43
+ resourceQuantity: "vf:resourceQuantity"
44
+ hasUnit: "om2:hasUnit"
45
+ hasNumericalValue: "om2:hasNumericalValue"
46
+
47
+ properties:
48
+ - singularName: stipulates
49
+ functional: true
50
+ compactName: stipulates
51
+ uri: "https://w3id.org/valueflows/ont/vf#stipulates"
52
+ description: |
53
+ The primary {@link Commitment} associated with the agreement. This
54
+ commitment satisfies the primary {@link Intent} of the corresponding
55
+ {@link Proposal}.
56
+ range:
57
+ - "https://w3id.org/valueflows/ont/vf#Commitment"
58
+
59
+ - singularName: stipulatesReciprocal
60
+ functional: true
61
+ compactName: stipulatesReciprocal
62
+ uri: "https://w3id.org/valueflows/ont/vf#stipulatesReciprocal"
63
+ description: |
64
+ The reciprocal {@link Commitment} associated with the agreement.
65
+ Required if the corresponding {@link Proposal} has a reciprocal
66
+ {@link Intent}.
67
+ range:
68
+ - "https://w3id.org/valueflows/ont/vf#Commitment"
@@ -0,0 +1,47 @@
1
+ $schema: ../../vocab-tools/schema.yaml
2
+ name: Commitment
3
+ compactName: Commitment
4
+ uri: "https://w3id.org/valueflows/ont/vf#Commitment"
5
+ entity: false
6
+ description: |
7
+ A promised economic transaction, referenced by an {@link Agreement}.
8
+
9
+ A commitment satisfies an {@link Intent} of a {@link Proposal} and
10
+ specifies the actual amount of the economic resource being committed.
11
+ defaultContext:
12
+ - "https://www.w3.org/ns/activitystreams"
13
+ - vf: "https://w3id.org/valueflows/ont/vf#"
14
+ om2: "http://www.ontology-of-units-of-measure.org/resource/om-2/"
15
+ Commitment: "vf:Commitment"
16
+ satisfies:
17
+ "@id": "vf:satisfies"
18
+ "@type": "@id"
19
+ resourceQuantity: "vf:resourceQuantity"
20
+ hasUnit: "om2:hasUnit"
21
+ hasNumericalValue: "om2:hasNumericalValue"
22
+
23
+ properties:
24
+ - singularName: satisfies
25
+ functional: true
26
+ compactName: satisfies
27
+ uri: "https://w3id.org/valueflows/ont/vf#satisfies"
28
+ description: |
29
+ The {@link Intent} of a {@link Proposal} that this commitment
30
+ satisfies. The value is the proposal's URI with a
31
+ [fragment](https://developer.mozilla.org/en-US/docs/Web/URI/Reference/Fragment)
32
+ appended to identify the intent. Recommended fragments are
33
+ `primary` and `reciprocal`.
34
+ range:
35
+ - "http://www.w3.org/2001/XMLSchema#anyURI"
36
+
37
+ - singularName: resourceQuantity
38
+ functional: true
39
+ compactName: resourceQuantity
40
+ uri: "https://w3id.org/valueflows/ont/vf#resourceQuantity"
41
+ untyped: true
42
+ description: |
43
+ The amount and unit of the economic resource being committed. The
44
+ unit must match the unit specified in the corresponding {@link Intent}
45
+ of the proposal.
46
+ range:
47
+ - "http://www.ontology-of-units-of-measure.org/resource/om-2/Measure"
@@ -1,7 +1,7 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  globalThis.addEventListener = () => {};
3
- import { g as Object$1, h as Note, i as Collection, y as Person } from "./vocab-BBRml5cy.mjs";
4
- import { c as esm_default, i as isActor, o as name, s as version } from "./actor-CjyrAA03.mjs";
3
+ import { E as Person, S as Object$1, o as Collection, x as Note } from "./vocab-XnSGFOqq.mjs";
4
+ import { c as esm_default, i as isActor, o as name, s as version } from "./actor-Buop31ap.mjs";
5
5
  import { t as getTypeId } from "./type-Cf-vxmre.mjs";
6
6
  import { t as assertInstanceOf } from "./utils-CE8Dk5hm.mjs";
7
7
  import { createTestMeterProvider, createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
@@ -1,6 +1,6 @@
1
1
  import "@js-temporal/polyfill";
2
2
  globalThis.addEventListener = () => {};
3
- import { D as getEntityTypeById, O as isEntityType, m as Link, y as Person } from "./vocab-BBRml5cy.mjs";
3
+ import { E as Person, I as getEntityTypeById, L as isEntityType, y as Link } from "./vocab-XnSGFOqq.mjs";
4
4
  import { t as getTypeId } from "./type-Cf-vxmre.mjs";
5
5
  import { test } from "@fedify/fixture";
6
6
  import { deepStrictEqual } from "node:assert/strict";