@fedify/fedify 2.0.0-dev.1799 → 2.0.0-dev.1807

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 (149) hide show
  1. package/dist/{actor-CTwhkcnW.cjs → actor-D8N-x6RK.cjs} +185 -185
  2. package/dist/{actor-BpUS1sl7.js → actor-DkGm2Vey.js} +185 -185
  3. package/dist/{actor-DZI2Eq6g.js → actor-fckCvPRI.js} +1 -1
  4. package/dist/{builder-S2ysz7GA.js → builder-6CCE0NWI.js} +3 -3
  5. package/dist/compat/transformers.test.js +14 -14
  6. package/dist/{docloader-Bnd94aU-.js → docloader-BFSRBp3E.js} +2 -2
  7. package/dist/{esm-BB3LjTmr.js → esm-CS_NJHv2.js} +1 -1
  8. package/dist/federation/builder.test.js +4 -4
  9. package/dist/federation/collection.test.js +2 -2
  10. package/dist/federation/handler.test.js +15 -15
  11. package/dist/federation/idempotency.test.js +15 -15
  12. package/dist/federation/inbox.test.js +3 -3
  13. package/dist/federation/keycache.test.js +3 -3
  14. package/dist/federation/kv.test.js +2 -2
  15. package/dist/federation/middleware.test.js +16 -16
  16. package/dist/federation/mod.cjs +7 -7
  17. package/dist/federation/mod.js +7 -7
  18. package/dist/federation/mq.test.js +2 -2
  19. package/dist/federation/negotiation.test.js +2 -2
  20. package/dist/federation/retry.test.js +2 -2
  21. package/dist/federation/router.test.js +2 -2
  22. package/dist/federation/send.test.js +9 -9
  23. package/dist/{http-VDN7GIgq.js → http-Cg8Ax72D.js} +2 -2
  24. package/dist/{http-CnIS4WaO.js → http-DFVAm-l6.js} +2 -2
  25. package/dist/{http-rrDo85mK.cjs → http-DLOkWWst.cjs} +2 -2
  26. package/dist/{inbox-ChZYH0_S.js → inbox-gT4swOU9.js} +1 -1
  27. package/dist/{key-DFZXpDVU.js → key-DXBeBe4R.js} +2 -2
  28. package/dist/{keycache-CRn2fJ8O.js → keycache-ClbFIwbd.js} +1 -1
  29. package/dist/{keys-CNnanOyx.js → keys-BVYavftD.js} +1 -1
  30. package/dist/{kv-cache-GEfUw91f.cjs → kv-cache-C5-E9sVV.cjs} +1 -1
  31. package/dist/{kv-cache-DJXRF9ps.js → kv-cache-CufZ5BfH.js} +1 -1
  32. package/dist/{ld-tQ1R72-f.js → ld-w7RZKLeV.js} +2 -2
  33. package/dist/{lookup-CmHKc2w4.js → lookup-B9DRiI27.js} +188 -190
  34. package/dist/{lookup-DDrfNO6P.cjs → lookup-Cl0DidX5.cjs} +4 -6
  35. package/dist/{lookup-DDylqgix.js → lookup-CtRXLB0x.js} +4 -6
  36. package/dist/{middleware-j8P8mr9K.js → middleware-B1jX5KYz.js} +11 -11
  37. package/dist/middleware-BTzIySeS.js +26 -0
  38. package/dist/{middleware-DUY0M3NM.js → middleware-Bpnsl7cy.js} +7 -7
  39. package/dist/{middleware-QmbsVHb9.cjs → middleware-C0HBv0rD.cjs} +7 -7
  40. package/dist/middleware-CaurY3Hk.js +15 -0
  41. package/dist/middleware-nLCHpECz.cjs +15 -0
  42. package/dist/mod.cjs +7 -7
  43. package/dist/mod.js +7 -7
  44. package/dist/nodeinfo/client.test.js +3 -3
  45. package/dist/nodeinfo/handler.test.js +14 -14
  46. package/dist/nodeinfo/types.test.js +2 -2
  47. package/dist/{owner-DboWqOzn.js → owner-Di2F5Cm2.js} +2 -2
  48. package/dist/{proof-DWNlmskq.js → proof-UHDYYUPO.js} +2 -2
  49. package/dist/{proof-CLU5-_T9.js → proof-irqiG6ox.js} +3 -3
  50. package/dist/{proof-KpX2IIfN.cjs → proof-sad8AO1s.cjs} +3 -3
  51. package/dist/{send-cWF9KreR.js → send-Bhl7VuTN.js} +2 -2
  52. package/dist/sig/http.test.js +7 -7
  53. package/dist/sig/key.test.js +5 -5
  54. package/dist/sig/ld.test.js +6 -6
  55. package/dist/sig/mod.cjs +4 -4
  56. package/dist/sig/mod.js +4 -4
  57. package/dist/sig/owner.test.js +6 -6
  58. package/dist/sig/proof.test.js +6 -6
  59. package/dist/src/vocab/accept.yaml +1 -1
  60. package/dist/src/vocab/activity.yaml +1 -1
  61. package/dist/src/vocab/add.yaml +1 -1
  62. package/dist/src/vocab/announce.yaml +1 -1
  63. package/dist/src/vocab/application.yaml +1 -1
  64. package/dist/src/vocab/arrive.yaml +1 -1
  65. package/dist/src/vocab/article.yaml +1 -1
  66. package/dist/src/vocab/audio.yaml +1 -1
  67. package/dist/src/vocab/block.yaml +1 -1
  68. package/dist/src/vocab/chatmessage.yaml +1 -1
  69. package/dist/src/vocab/collection.yaml +1 -1
  70. package/dist/src/vocab/collectionpage.yaml +1 -1
  71. package/dist/src/vocab/create.yaml +1 -1
  72. package/dist/src/vocab/dataintegrityproof.yaml +1 -1
  73. package/dist/src/vocab/delete.yaml +1 -1
  74. package/dist/src/vocab/didservice.yaml +1 -1
  75. package/dist/src/vocab/dislike.yaml +1 -1
  76. package/dist/src/vocab/document.yaml +1 -1
  77. package/dist/src/vocab/emoji.yaml +1 -1
  78. package/dist/src/vocab/emojireact.yaml +1 -1
  79. package/dist/src/vocab/endpoints.yaml +1 -1
  80. package/dist/src/vocab/event.yaml +1 -1
  81. package/dist/src/vocab/export.yaml +1 -1
  82. package/dist/src/vocab/flag.yaml +1 -1
  83. package/dist/src/vocab/follow.yaml +1 -1
  84. package/dist/src/vocab/group.yaml +1 -1
  85. package/dist/src/vocab/hashtag.yaml +1 -1
  86. package/dist/src/vocab/ignore.yaml +1 -1
  87. package/dist/src/vocab/image.yaml +1 -1
  88. package/dist/src/vocab/intransitiveactivity.yaml +1 -1
  89. package/dist/src/vocab/invite.yaml +1 -1
  90. package/dist/src/vocab/join.yaml +1 -1
  91. package/dist/src/vocab/key.yaml +1 -1
  92. package/dist/src/vocab/leave.yaml +1 -1
  93. package/dist/src/vocab/like.yaml +1 -1
  94. package/dist/src/vocab/link.yaml +1 -1
  95. package/dist/src/vocab/listen.yaml +1 -1
  96. package/dist/src/vocab/mention.yaml +1 -1
  97. package/dist/src/vocab/move.yaml +1 -1
  98. package/dist/src/vocab/multikey.yaml +1 -1
  99. package/dist/src/vocab/note.yaml +1 -1
  100. package/dist/src/vocab/object.yaml +1 -1
  101. package/dist/src/vocab/offer.yaml +1 -1
  102. package/dist/src/vocab/orderedcollection.yaml +1 -1
  103. package/dist/src/vocab/orderedcollectionpage.yaml +1 -1
  104. package/dist/src/vocab/organization.yaml +1 -1
  105. package/dist/src/vocab/page.yaml +1 -1
  106. package/dist/src/vocab/person.yaml +1 -1
  107. package/dist/src/vocab/place.yaml +1 -1
  108. package/dist/src/vocab/profile.yaml +1 -1
  109. package/dist/src/vocab/propertyvalue.yaml +1 -1
  110. package/dist/src/vocab/question.yaml +1 -1
  111. package/dist/src/vocab/read.yaml +1 -1
  112. package/dist/src/vocab/reject.yaml +1 -1
  113. package/dist/src/vocab/relationship.yaml +1 -1
  114. package/dist/src/vocab/remove.yaml +1 -1
  115. package/dist/src/vocab/service.yaml +1 -1
  116. package/dist/src/vocab/source.yaml +1 -1
  117. package/dist/src/vocab/tentativeaccept.yaml +1 -1
  118. package/dist/src/vocab/tentativereject.yaml +1 -1
  119. package/dist/src/vocab/tombstone.yaml +1 -1
  120. package/dist/src/vocab/travel.yaml +1 -1
  121. package/dist/src/vocab/undo.yaml +1 -1
  122. package/dist/src/vocab/update.yaml +1 -1
  123. package/dist/src/vocab/video.yaml +1 -1
  124. package/dist/src/vocab/view.yaml +1 -1
  125. package/dist/testing/docloader.test.js +2 -2
  126. package/dist/testing/mod.js +2 -2
  127. package/dist/{testing--mggiiCg.js → testing-WGMRPu0i.js} +1 -1
  128. package/dist/utils/docloader.test.js +8 -8
  129. package/dist/utils/kv-cache.test.js +2 -2
  130. package/dist/utils/mod.cjs +4 -4
  131. package/dist/utils/mod.js +4 -4
  132. package/dist/vocab/actor.test.js +4 -4
  133. package/dist/vocab/lookup.test.js +3 -3
  134. package/dist/vocab/mod.cjs +3 -3
  135. package/dist/vocab/mod.js +3 -3
  136. package/dist/vocab/type.test.js +2 -2
  137. package/dist/vocab/vocab.test.js +7601 -1990
  138. package/dist/{vocab-D0dGzR9p.cjs → vocab-BG7hdPcE.cjs} +2 -2
  139. package/dist/{vocab-c8VtERiU.js → vocab-DTS_t8cd.js} +2 -2
  140. package/dist/webfinger/handler.test.js +14 -14
  141. package/dist/webfinger/lookup.test.js +3 -3
  142. package/dist/webfinger/mod.cjs +1 -1
  143. package/dist/webfinger/mod.js +1 -1
  144. package/dist/x/cfworkers.test.js +2 -2
  145. package/package.json +6 -6
  146. package/dist/middleware-BWvYGjVw.cjs +0 -15
  147. package/dist/middleware-D1T7z2JI.js +0 -26
  148. package/dist/middleware-DyBSgA4h.js +0 -15
  149. package/dist/vocab/schema.yaml +0 -247
@@ -3,8 +3,8 @@
3
3
  const { URLPattern } = require("urlpattern-polyfill");
4
4
 
5
5
  const require_chunk = require('./chunk-DqRYRqnO.cjs');
6
- const require_lookup = require('./lookup-DDrfNO6P.cjs');
7
- const require_actor = require('./actor-CTwhkcnW.cjs');
6
+ const require_lookup = require('./lookup-Cl0DidX5.cjs');
7
+ const require_actor = require('./actor-D8N-x6RK.cjs');
8
8
  const __logtape_logtape = require_chunk.__toESM(require("@logtape/logtape"));
9
9
  const __opentelemetry_api = require_chunk.__toESM(require("@opentelemetry/api"));
10
10
  const __fedify_vocab_runtime = require_chunk.__toESM(require("@fedify/vocab-runtime"));
@@ -2,8 +2,8 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import { deno_default, lookupWebFinger } from "./lookup-DDylqgix.js";
6
- import { Object as Object$1, getTypeId } from "./actor-BpUS1sl7.js";
5
+ import { deno_default, lookupWebFinger } from "./lookup-CtRXLB0x.js";
6
+ import { Object as Object$1, getTypeId } from "./actor-DkGm2Vey.js";
7
7
  import { getLogger } from "@logtape/logtape";
8
8
  import { SpanStatusCode, trace } from "@opentelemetry/api";
9
9
  import { getDocumentLoader } from "@fedify/vocab-runtime";
@@ -3,30 +3,30 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Image, Link, Person } from "../lookup-CmHKc2w4.js";
6
+ import { Image, Link, Person } from "../lookup-B9DRiI27.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import "../assert-MZs1qjMx.js";
9
9
  import "../assert_instance_of-DHz7EHNU.js";
10
10
  import { MemoryKvStore } from "../kv-CRZrzyXm.js";
11
- import { createFederation, handleWebFinger } from "../middleware-j8P8mr9K.js";
11
+ import { createFederation, handleWebFinger } from "../middleware-B1jX5KYz.js";
12
12
  import "../client-pY7-3icS.js";
13
13
  import "../types-C2XVl6gj.js";
14
- import "../actor-DZI2Eq6g.js";
15
- import "../key-DFZXpDVU.js";
16
- import "../http-CnIS4WaO.js";
17
- import "../ld-tQ1R72-f.js";
18
- import "../owner-DboWqOzn.js";
19
- import "../proof-DWNlmskq.js";
20
- import "../docloader-Bnd94aU-.js";
14
+ import "../actor-fckCvPRI.js";
15
+ import "../key-DXBeBe4R.js";
16
+ import "../http-DFVAm-l6.js";
17
+ import "../ld-w7RZKLeV.js";
18
+ import "../owner-Di2F5Cm2.js";
19
+ import "../proof-UHDYYUPO.js";
20
+ import "../docloader-BFSRBp3E.js";
21
21
  import "../kv-cache-DN9pfMBe.js";
22
- import "../inbox-ChZYH0_S.js";
23
- import "../builder-S2ysz7GA.js";
22
+ import "../inbox-gT4swOU9.js";
23
+ import "../builder-6CCE0NWI.js";
24
24
  import "../collection-BzWsN9pB.js";
25
- import "../keycache-CRn2fJ8O.js";
25
+ import "../keycache-ClbFIwbd.js";
26
26
  import "../negotiation-C4nFufNk.js";
27
27
  import "../retry-CfF8Gn4d.js";
28
- import "../send-cWF9KreR.js";
29
- import { createRequestContext, test } from "../testing--mggiiCg.js";
28
+ import "../send-Bhl7VuTN.js";
29
+ import { createRequestContext, test } from "../testing-WGMRPu0i.js";
30
30
  import "../std__assert-DWivtrGR.js";
31
31
  import "../assert_rejects-Ce45JcFg.js";
32
32
  import "../assert_throws-BNXdRGWP.js";
@@ -3,16 +3,16 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { lookupWebFinger } from "../lookup-CmHKc2w4.js";
6
+ import { lookupWebFinger } from "../lookup-B9DRiI27.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import "../assert-MZs1qjMx.js";
9
9
  import "../assert_instance_of-DHz7EHNU.js";
10
- import { test } from "../testing--mggiiCg.js";
10
+ import { test } from "../testing-WGMRPu0i.js";
11
11
  import "../std__assert-DWivtrGR.js";
12
12
  import "../assert_rejects-Ce45JcFg.js";
13
13
  import "../assert_throws-BNXdRGWP.js";
14
14
  import "../assert_not_equals-C80BG-_5.js";
15
- import { esm_default } from "../esm-BB3LjTmr.js";
15
+ import { esm_default } from "../esm-CS_NJHv2.js";
16
16
  import { withTimeout } from "es-toolkit";
17
17
 
18
18
  //#region src/webfinger/lookup.test.ts
@@ -2,7 +2,7 @@
2
2
  const { Temporal } = require("@js-temporal/polyfill");
3
3
  const { URLPattern } = require("urlpattern-polyfill");
4
4
 
5
- const require_lookup = require('../lookup-DDrfNO6P.cjs');
5
+ const require_lookup = require('../lookup-Cl0DidX5.cjs');
6
6
  require('../webfinger-vAtLmxOF.cjs');
7
7
 
8
8
  exports.lookupWebFinger = require_lookup.lookupWebFinger;
@@ -2,7 +2,7 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import { lookupWebFinger } from "../lookup-DDylqgix.js";
5
+ import { lookupWebFinger } from "../lookup-CtRXLB0x.js";
6
6
  import "../webfinger-C72Y8lrh.js";
7
7
 
8
8
  export { lookupWebFinger };
@@ -3,11 +3,11 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../lookup-CmHKc2w4.js";
6
+ import "../lookup-B9DRiI27.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import "../assert-MZs1qjMx.js";
9
9
  import "../assert_instance_of-DHz7EHNU.js";
10
- import { test } from "../testing--mggiiCg.js";
10
+ import { test } from "../testing-WGMRPu0i.js";
11
11
  import "../std__assert-DWivtrGR.js";
12
12
  import "../assert_rejects-Ce45JcFg.js";
13
13
  import "../assert_throws-BNXdRGWP.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "2.0.0-dev.1799+383e3c21",
3
+ "version": "2.0.0-dev.1807+00c7443d",
4
4
  "description": "An ActivityPub server framework",
5
5
  "keywords": [
6
6
  "ActivityPub",
@@ -150,7 +150,6 @@
150
150
  }
151
151
  },
152
152
  "dependencies": {
153
- "@cfworker/json-schema": "^4.1.1",
154
153
  "@js-temporal/polyfill": "^0.5.1",
155
154
  "@logtape/logtape": "^1.1.1",
156
155
  "@multiformats/base-x": "^4.0.1",
@@ -167,7 +166,7 @@
167
166
  "uri-template-router": "^0.0.17",
168
167
  "url-template": "^3.1.1",
169
168
  "urlpattern-polyfill": "^10.1.0",
170
- "@fedify/vocab-runtime": "2.0.0-dev.1799+383e3c21"
169
+ "@fedify/vocab-runtime": "2.0.0-dev.1807+00c7443d"
171
170
  },
172
171
  "devDependencies": {
173
172
  "@cloudflare/workers-types": "^4.20250529.0",
@@ -181,11 +180,12 @@
181
180
  "miniflare": "^4.20250523.0",
182
181
  "tsdown": "^0.12.9",
183
182
  "tsx": "^4.19.4",
184
- "typescript": "^5.9.2",
185
- "wrangler": "^4.17.0"
183
+ "typescript": "^5.9.3",
184
+ "wrangler": "^4.17.0",
185
+ "@fedify/vocab-tools": "^2.0.0-dev.1807+00c7443d"
186
186
  },
187
187
  "scripts": {
188
- "build": "deno task codegen && pnpm run --filter vocab-runtime build && tsdown",
188
+ "build": "deno task codegen && pnpm run --filter vocab-runtime build && pnpm run --filter vocab-tools build && tsdown",
189
189
  "prepublish": "pnpm run build",
190
190
  "test": "deno task codegen && tsdown && cd dist/ && node --test",
191
191
  "test:bun": "deno task codegen && deno task pnpm:build-vocab && tsdown && cd dist/ && bun test --timeout 60000",
@@ -1,15 +0,0 @@
1
-
2
- const { Temporal } = require("@js-temporal/polyfill");
3
- const { URLPattern } = require("urlpattern-polyfill");
4
-
5
- require('./transformers-CoBS-oFG.cjs');
6
- require('./lookup-DDrfNO6P.cjs');
7
- require('./actor-CTwhkcnW.cjs');
8
- const require_middleware = require('./middleware-QmbsVHb9.cjs');
9
- require('./http-rrDo85mK.cjs');
10
- require('./proof-KpX2IIfN.cjs');
11
- require('./types-CWgzGaqk.cjs');
12
- require('./kv-cache-GEfUw91f.cjs');
13
- require('./vocab-D0dGzR9p.cjs');
14
-
15
- exports.FederationImpl = require_middleware.FederationImpl;
@@ -1,26 +0,0 @@
1
-
2
- import { Temporal } from "@js-temporal/polyfill";
3
- import { URLPattern } from "urlpattern-polyfill";
4
- globalThis.addEventListener = () => {};
5
-
6
- import "./lookup-CmHKc2w4.js";
7
- import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-j8P8mr9K.js";
8
- import "./client-pY7-3icS.js";
9
- import "./types-C2XVl6gj.js";
10
- import "./actor-DZI2Eq6g.js";
11
- import "./key-DFZXpDVU.js";
12
- import "./http-CnIS4WaO.js";
13
- import "./ld-tQ1R72-f.js";
14
- import "./owner-DboWqOzn.js";
15
- import "./proof-DWNlmskq.js";
16
- import "./docloader-Bnd94aU-.js";
17
- import "./kv-cache-DN9pfMBe.js";
18
- import "./inbox-ChZYH0_S.js";
19
- import "./builder-S2ysz7GA.js";
20
- import "./collection-BzWsN9pB.js";
21
- import "./keycache-CRn2fJ8O.js";
22
- import "./negotiation-C4nFufNk.js";
23
- import "./retry-CfF8Gn4d.js";
24
- import "./send-cWF9KreR.js";
25
-
26
- export { FederationImpl };
@@ -1,15 +0,0 @@
1
-
2
- import { Temporal } from "@js-temporal/polyfill";
3
- import { URLPattern } from "urlpattern-polyfill";
4
-
5
- import "./transformers-BFT6d7J5.js";
6
- import "./lookup-DDylqgix.js";
7
- import "./actor-BpUS1sl7.js";
8
- import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-DUY0M3NM.js";
9
- import "./http-VDN7GIgq.js";
10
- import "./proof-CLU5-_T9.js";
11
- import "./types-BtUjyi5y.js";
12
- import "./kv-cache-DJXRF9ps.js";
13
- import "./vocab-c8VtERiU.js";
14
-
15
- export { FederationImpl };
@@ -1,247 +0,0 @@
1
- $schema: "https://json-schema.org/draft/2020-12/schema"
2
- title: Fedify model schema
3
-
4
- $defs:
5
- property:
6
- description: >-
7
- The schema of a property. It is used to generate property accessors of
8
- a class.
9
- anyOf:
10
- - allOf:
11
- - $ref: "#/$defs/property-base"
12
- - $ref: "#/$defs/property-typing"
13
- - type: object
14
- properties:
15
- functional:
16
- description: &functional-description >-
17
- Marks the property that it can have only one value. Turning on
18
- this flag will generate only singular property accessors,
19
- so pluralName and singularAccessor should not be specified.
20
- const: false
21
- pluralName:
22
- description: >-
23
- The plural form of the property name. It is used as the name of
24
- the generated property accessors.
25
- type: string
26
- singularAccessor:
27
- description: >-
28
- Whether to generate singular property accessors. Regardless of
29
- this flag, plural property accessors are generated
30
- (unless functional is turned on).
31
- type: boolean
32
- container:
33
- description: >-
34
- The container type of the property values. It can be unspecified.
35
- enum:
36
- - graph
37
- - list
38
- required:
39
- - pluralName
40
- - allOf:
41
- - $ref: "#/$defs/property-base"
42
- - $ref: "#/$defs/property-typing"
43
- - type: object
44
- properties:
45
- functional:
46
- description: *functional-description
47
- const: true
48
- redundantProperties::
49
- description: >-
50
- If it's present, those redundant properties are also filled with
51
- the same value altogether when the object is serialized into
52
- JSON-LD. When it's deserialized from JSON-LD, it tries to
53
- parse the values of the specified properties in order.
54
- type: array
55
- items:
56
- type: object
57
- properties:
58
- uri:
59
- description: The qualified URI of the property.
60
- type: string
61
- format: uri
62
- compactName:
63
- description: >-
64
- The property name used in the compacted JSON-LD document.
65
- It is used as the key of the property.
66
- type: string
67
- required:
68
- - uri
69
- required:
70
- - functional
71
-
72
- property-base:
73
- type: object
74
- properties:
75
- singularName:
76
- description: >-
77
- The singular form of the property name. It is used as the name of the
78
- generated property accessors.
79
- type: string
80
- uri:
81
- description: The qualified URI of the property.
82
- type: string
83
- format: uri
84
- compactName:
85
- description: >-
86
- The property name used in the compacted JSON-LD document. It is used
87
- as the key of the property.
88
- type: string
89
- subpropertyOf:
90
- description: >-
91
- The qualified URI of the superproperty of the property (if any).
92
- It means that the property is a specialization of the referenced
93
- property.
94
- type: string
95
- format: uri
96
- description:
97
- description: >-
98
- The description of the property. It is used as the doc comment of
99
- the generated property accessors.
100
- type: string
101
- embedContext:
102
- description: >-
103
- Whether the enclosed object should have its own context when
104
- the document is compacted.
105
- type: object
106
- properties:
107
- compactName:
108
- description: >-
109
- The compact name of the property that contains the context.
110
- type: string
111
- inherit:
112
- description: >-
113
- Whether the embedded context should be the same as the context of
114
- the enclosing document.
115
- const: true
116
- required:
117
- - singularName
118
- - uri
119
- - description
120
-
121
- property-typing:
122
- anyOf:
123
- - type: object
124
- properties:
125
- untyped:
126
- description: >-
127
- Whether the property value has @type field. If true, the range must
128
- have only one element.
129
- const: false
130
- range:
131
- description: >-
132
- The qualified URIs of all possible types of the property values.
133
- type: array
134
- items:
135
- $ref: "#/$defs/typeUri"
136
- minItems: 1
137
- uniqueItems: true
138
- required:
139
- - range
140
- - type: object
141
- properties:
142
- untyped:
143
- description: >-
144
- Whether the property value has @type field. If true, the range must
145
- have only one element.
146
- const: true
147
- range:
148
- description: >-
149
- The qualified URIs of all possible types of the property values.
150
- type: array
151
- items:
152
- $ref: "#/$defs/typeUri"
153
- minItems: 1
154
- maxItems: 1
155
- required:
156
- - untyped
157
- - range
158
-
159
- typeUri:
160
- description: >-
161
- The qualified URI of a type. It is used as the range of a property.
162
- anyOf:
163
- - type: string
164
- format: uri
165
- - enum:
166
- - fedify:langTag
167
-
168
- ldContext:
169
- anyOf:
170
- - type: string
171
- format: uri
172
- - $ref: "#/$defs/ldEmbeddedContext"
173
- - type: array
174
- items:
175
- anyOf:
176
- - type: string
177
- format: uri
178
- - $ref: "#/$defs/ldEmbeddedContext"
179
- uniqueItems: true
180
-
181
- ldEmbeddedContext:
182
- type: object
183
- patternProperties:
184
- "^.+$":
185
- $ref: "#/$defs/ldTermDefinition"
186
-
187
- ldTermDefinition:
188
- anyOf:
189
- - type: string
190
- format: uri
191
- - type: object
192
- patternProperties:
193
- "^.+$":
194
- anyOf:
195
- - type: string
196
- format: uri
197
- - const: "@id"
198
-
199
- description: The schema of a type. It is used to generate a class.
200
- type: object
201
- properties:
202
- name:
203
- description: The type name. It is used as the name of the generated class.
204
- type: string
205
- uri:
206
- description: The qualified URI of the type.
207
- type: string
208
- format: uri
209
- compactName:
210
- description: >-
211
- The type name used in the compacted JSON-LD document. It is used as the
212
- value of the `type` field.
213
- type: string
214
- extends:
215
- description: The qualified URIs of the base type of the type (if any).
216
- type: string
217
- format: uri
218
- entity:
219
- description: >-
220
- Marks the type an entity type rather than a value type. Turning on this
221
- flag will make property accessors for the type asynchronous, so that they
222
- can load the values of the properties from the remote server.
223
-
224
- The extended subtypes must have the consistent value of this flag.
225
- type: boolean
226
- description:
227
- description: >-
228
- The description of the type. It is used as the doc comment of
229
- the generated class.
230
- type: string
231
- properties:
232
- description: The possible properties of the type.
233
- type: array
234
- items:
235
- $ref: "#/$defs/property"
236
- uniqueItems: true
237
- defaultContext:
238
- description: >-
239
- The default JSON-LD context of the type. It is used as the default
240
- context of the generated toJsonLd() method.
241
- $ref: "#/$defs/ldContext"
242
- required:
243
- - name
244
- - uri
245
- - entity
246
- - description
247
- - properties