@shoalrun/cli 0.1.0-alpha.12 → 0.1.0-alpha.14

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 (193) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/README.md +45 -5
  3. package/agent-docs/.well-known/shoalrun/navigation/project-updates-50f26fe22670.txt +3 -1
  4. package/agent-docs/SNAPSHOT.json +5 -5
  5. package/agent-docs/api-docs/support.md +11 -10
  6. package/agent-docs/author/components.md +13 -1
  7. package/agent-docs/author/frontmatter-reference.md +28 -25
  8. package/agent-docs/author/frontmatter-reference.sections/choose-a-publication-and-visibility.md +3 -1
  9. package/agent-docs/author/frontmatter-reference.sections/control-output-details.md +3 -1
  10. package/agent-docs/author/frontmatter-reference.sections/global-defaults-and-enforced-values.md +3 -1
  11. package/agent-docs/author/frontmatter-reference.sections/html-markdown-and-agents.md +3 -1
  12. package/agent-docs/author/frontmatter-reference.sections/identify-and-route-a-page.md +3 -1
  13. package/agent-docs/author/frontmatter-reference.sections/point-agents-to-it.md +3 -1
  14. package/agent-docs/author/frontmatter-reference.sections/project-defined-fields.md +3 -1
  15. package/agent-docs/author/frontmatter-reference.sections/related-reading.md +3 -1
  16. package/agent-docs/author/frontmatter-reference.sections/use-the-local-files-while-authoring.md +3 -1
  17. package/agent-docs/author/frontmatter-reference.sections/when-the-files-update.md +3 -1
  18. package/agent-docs/author/frontmatter.md +5 -2
  19. package/agent-docs/author/frontmatter.sections/audience-badges.md +1 -1
  20. package/agent-docs/author/frontmatter.sections/give-deprecation-guidance.md +1 -1
  21. package/agent-docs/author/frontmatter.sections/global-defaults-and-enforced-values.md +1 -1
  22. package/agent-docs/author/frontmatter.sections/optional-native-fields.md +5 -2
  23. package/agent-docs/author/frontmatter.sections/publication-fields.md +1 -1
  24. package/agent-docs/author/frontmatter.sections/publishing-policy.md +1 -1
  25. package/agent-docs/author/frontmatter.sections/related-metadata-tasks.md +1 -1
  26. package/agent-docs/author/frontmatter.sections/related-reading.md +1 -1
  27. package/agent-docs/author/frontmatter.sections/required-after-inheritance.md +1 -1
  28. package/agent-docs/author/frontmatter.sections/seo-fields.md +1 -1
  29. package/agent-docs/author/frontmatter.sections/validation-rules.md +1 -1
  30. package/agent-docs/author/markdown-metadata.md +13 -5
  31. package/agent-docs/author/navigation.md +12 -1
  32. package/agent-docs/author/navigation.sections/arrange-authored-pages.md +1 -1
  33. package/agent-docs/author/navigation.sections/fill-an-api-tag-group.md +1 -1
  34. package/agent-docs/author/navigation.sections/hide-group-page-counts.md +12 -1
  35. package/agent-docs/author/navigation.sections/html-markdown-and-agents.md +1 -1
  36. package/agent-docs/author/navigation.sections/local-api-preview.md +1 -1
  37. package/agent-docs/author/navigation.sections/mix-guides-and-api-references.md +1 -1
  38. package/agent-docs/author/navigation.sections/optionally-split-a-large-menu-into-files.md +1 -1
  39. package/agent-docs/author/navigation.sections/reach-navigation-while-reading.md +1 -1
  40. package/agent-docs/author/navigation.sections/related-reading.md +1 -1
  41. package/agent-docs/author/navigation.sections/split-navigation-into-tabs.md +1 -1
  42. package/agent-docs/author/navigation.sections/subject-lifecycle-labels.md +1 -1
  43. package/agent-docs/author/templates.md +10 -2
  44. package/agent-docs/author/templates.sections/built-in-feature-templates.md +1 -1
  45. package/agent-docs/author/templates.sections/built-in-templates.md +1 -1
  46. package/agent-docs/author/templates.sections/choose-formatting-enforcement-for-your-project.md +1 -1
  47. package/agent-docs/author/templates.sections/create-or-edit-a-project-template.md +10 -2
  48. package/agent-docs/author/templates.sections/keep-the-four-shapes-distinct.md +1 -1
  49. package/agent-docs/author/templates.sections/project-added-templates.md +1 -1
  50. package/agent-docs/author/templates.sections/related-reading.md +1 -1
  51. package/agent-docs/author/templates.sections/scaffold-a-page.md +1 -1
  52. package/agent-docs/author/templates.sections/short-cli-and-derived-values.md +1 -1
  53. package/agent-docs/author/templates.sections/what-every-template-gives-you.md +1 -1
  54. package/agent-docs/author/workspace.md +7 -1
  55. package/agent-docs/author/writing-style.md +13 -1
  56. package/agent-docs/author/writing-style.sections/adapt-this-example.md +1 -1
  57. package/agent-docs/author/writing-style.sections/choose-components-by-reader-need.md +1 -1
  58. package/agent-docs/author/writing-style.sections/evidence-and-uncertainty.md +1 -1
  59. package/agent-docs/author/writing-style.sections/example-audience-and-scope.md +1 -1
  60. package/agent-docs/author/writing-style.sections/feature-availability.md +36 -0
  61. package/agent-docs/author/writing-style.sections/ingredients-recipes-and-cookbooks.md +1 -1
  62. package/agent-docs/author/writing-style.sections/page-purpose-and-structure.md +1 -1
  63. package/agent-docs/author/writing-style.sections/procedures-and-examples.md +1 -1
  64. package/agent-docs/author/writing-style.sections/related-reading.md +1 -1
  65. package/agent-docs/author/writing-style.sections/review-a-draft.md +1 -1
  66. package/agent-docs/author/writing-style.sections/reviewed-writing-examples.md +1 -1
  67. package/agent-docs/author/writing-style.sections/voice-and-explanations.md +1 -1
  68. package/agent-docs/changelog/2026-10-28.md +89 -0
  69. package/agent-docs/changelog.md +9 -1
  70. package/agent-docs/config/outputs.md +15 -11
  71. package/agent-docs/config/outputs.sections/exports.md +14 -11
  72. package/agent-docs/config/outputs.sections/metadata.md +1 -1
  73. package/agent-docs/config/outputs.sections/related-reading.md +1 -1
  74. package/agent-docs/content-delivery/agents.md +86 -0
  75. package/agent-docs/content-delivery/api.md +130 -0
  76. package/agent-docs/content-delivery/client.md +79 -0
  77. package/agent-docs/content-delivery/http-api/operations/get-content-representation-fa1d2e3f.md +394 -0
  78. package/agent-docs/content-delivery/http-api/operations/get-content-representation-head-4052375c.md +256 -0
  79. package/agent-docs/content-delivery/http-api/operations/get-content-resource-849f1c49.md +911 -0
  80. package/agent-docs/content-delivery/http-api/operations/get-content-resource-head-0a352acd.md +246 -0
  81. package/agent-docs/content-delivery/http-api/operations/list-content-resources-8e977ec7.md +913 -0
  82. package/agent-docs/content-delivery/http-api/operations/list-content-resources-head-b67cbad9.md +236 -0
  83. package/agent-docs/content-delivery/http-api.md +78 -0
  84. package/agent-docs/content-delivery/manifest.md +79 -0
  85. package/agent-docs/content-delivery/publish.md +72 -0
  86. package/agent-docs/content-delivery/render.md +73 -0
  87. package/agent-docs/content-delivery/rest.md +108 -0
  88. package/agent-docs/content-delivery/sections.md +110 -0
  89. package/agent-docs/content-delivery/select.md +100 -0
  90. package/agent-docs/content-delivery.md +79 -0
  91. package/agent-docs/documents.json +6748 -5073
  92. package/agent-docs/provenance.json +4 -4
  93. package/agent-docs/publish/content-export.md +32 -16
  94. package/agent-docs/publish/content-export.sections/assets-downloads-and-notices.md +3 -3
  95. package/agent-docs/publish/content-export.sections/check-the-result.md +2 -2
  96. package/agent-docs/publish/content-export.sections/export-selected-pages.md +12 -9
  97. package/agent-docs/publish/content-export.sections/inspect-the-manifest.md +5 -3
  98. package/agent-docs/publish/content-export.sections/prerequisites.md +3 -3
  99. package/agent-docs/publish/content-export.sections/related-reading.md +2 -2
  100. package/agent-docs/publish/content-export.sections/review-exported-api-material.md +3 -3
  101. package/agent-docs/publish/content-export.sections/try-the-help-drawer-example.md +3 -3
  102. package/agent-docs/publish/content-export.sections/upgrade-an-existing-integration.md +34 -0
  103. package/agent-docs/publish/content-export.sections/what-the-representations-retain.md +4 -4
  104. package/agent-docs/publish/mcp.md +3 -1
  105. package/agent-docs/publish/mcp.sections/check-budgets-and-errors.md +1 -1
  106. package/agent-docs/publish/mcp.sections/choose-the-documentation-source.md +1 -1
  107. package/agent-docs/publish/mcp.sections/configure-the-client.md +1 -1
  108. package/agent-docs/publish/mcp.sections/generate-a-vercel-endpoint.md +1 -1
  109. package/agent-docs/publish/mcp.sections/related-reading.md +3 -1
  110. package/agent-docs/publish/mcp.sections/search-then-read.md +1 -1
  111. package/agent-docs/publish/mcp.sections/serve-a-public-endpoint-on-node.md +1 -1
  112. package/agent-docs/publish/mcp.sections/verify-the-connection.md +1 -1
  113. package/agent-docs/publish/mcp.sections/why-offer-mcp-for-public-docs.md +1 -1
  114. package/agent-docs/publish/seo.md +16 -2
  115. package/agent-docs/publish/seo.sections/related-reading.md +28 -0
  116. package/agent-docs/publish/seo.sections/set-the-public-address.md +36 -0
  117. package/agent-docs/publish/seo.sections/what-agents-receive.md +28 -0
  118. package/agent-docs/publish/seo.sections/what-the-build-adds.md +42 -0
  119. package/agent-docs/publish/seo.sections/write-the-page-title-and-summary.md +43 -0
  120. package/agent-docs/search-index.json +1 -1
  121. package/agent-docs/styling/layouts.md +21 -3
  122. package/agent-docs/styling/layouts.sections/build-a-landing-page.md +6 -3
  123. package/agent-docs/styling/layouts.sections/build-a-splash-page.md +6 -3
  124. package/agent-docs/styling/layouts.sections/control-navigation-tabs.md +6 -3
  125. package/agent-docs/styling/layouts.sections/customize-the-hero.md +6 -3
  126. package/agent-docs/styling/layouts.sections/hero.md +6 -3
  127. package/agent-docs/styling/layouts.sections/hide-the-table-of-contents-or-give-content-more-room.md +54 -0
  128. package/agent-docs/styling/layouts.sections/html-markdown-and-agents.md +6 -3
  129. package/agent-docs/styling/layouts.sections/related-reading.md +6 -3
  130. package/dist/api.js +70 -3
  131. package/dist/authoring-hints.d.ts +3 -0
  132. package/dist/authoring-hints.js +35 -0
  133. package/dist/authoring-project.d.ts +1 -1
  134. package/dist/authoring-project.js +2 -0
  135. package/dist/authoring-validation.js +2 -0
  136. package/dist/code-samples.js +22 -11
  137. package/dist/compiler-config.d.ts +1 -0
  138. package/dist/compiler-config.js +13 -0
  139. package/dist/compiler.js +2 -1
  140. package/dist/component-names.js +1 -1
  141. package/dist/component-transform.js +7 -1
  142. package/dist/content-delivery-contract.d.ts +108 -0
  143. package/dist/content-delivery-contract.js +15 -0
  144. package/dist/content-delivery-transport.d.ts +3 -0
  145. package/dist/content-delivery-transport.js +47 -0
  146. package/dist/content-delivery-validation.d.ts +7 -0
  147. package/dist/content-delivery-validation.js +122 -0
  148. package/dist/content-delivery.d.ts +21 -0
  149. package/dist/content-delivery.js +119 -0
  150. package/dist/content-export-anchors.d.ts +11 -0
  151. package/dist/content-export-anchors.js +79 -0
  152. package/dist/content-export-command.d.ts +4 -2
  153. package/dist/content-export-command.js +15 -2
  154. package/dist/content-export-comparison.d.ts +16 -0
  155. package/dist/content-export-comparison.js +48 -0
  156. package/dist/content-export-config.d.ts +17 -0
  157. package/dist/content-export-config.js +47 -3
  158. package/dist/content-export-render.js +20 -1
  159. package/dist/content-export.d.ts +5 -1
  160. package/dist/content-export.js +193 -40
  161. package/dist/content-mount.d.ts +11 -0
  162. package/dist/content-mount.js +73 -0
  163. package/dist/content-rest-client.d.ts +12 -0
  164. package/dist/content-rest-client.js +162 -0
  165. package/dist/content-rest-contract.d.ts +27 -0
  166. package/dist/content-rest-contract.js +9 -0
  167. package/dist/content-rest-server.d.ts +7 -0
  168. package/dist/content-rest-server.js +99 -0
  169. package/dist/content-source.d.ts +3 -1
  170. package/dist/frontmatter.js +8 -7
  171. package/dist/html-renderer.js +25 -0
  172. package/dist/markdown-sections.d.ts +2 -1
  173. package/dist/markdown-sections.js +8 -18
  174. package/dist/page-renderer.js +5 -3
  175. package/dist/publication-plan.js +2 -1
  176. package/dist/scaffold-placeholders.d.ts +2 -0
  177. package/dist/scaffold-placeholders.js +19 -0
  178. package/dist/section-identity.d.ts +24 -0
  179. package/dist/section-identity.js +137 -0
  180. package/examples/content-delivery/README.md +87 -0
  181. package/examples/content-delivery/app.js +91 -0
  182. package/examples/content-delivery/content/billing.mdx +22 -0
  183. package/examples/content-delivery/docs.config.yaml +36 -0
  184. package/examples/content-delivery/index.html +25 -0
  185. package/examples/content-delivery/preview.mjs +86 -0
  186. package/examples/content-delivery/snippets/refund-window.mdx +3 -0
  187. package/examples/help-drawer/README.md +2 -2
  188. package/examples/help-drawer/app.js +3 -3
  189. package/package.json +6 -3
  190. package/schemas/content-export.schema.json +469 -33
  191. package/schemas/content-rest.openapi.json +1627 -0
  192. package/skills/shoalrun-author/SKILL.md +2 -0
  193. package/styles/site.css +9 -4
@@ -1,55 +1,491 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://shoalrun.com/schemas/content-export.schema.json",
4
- "title": "Shoalrun portable content export, version 1",
4
+ "title": "Shoalrun content delivery manifest, version 1",
5
5
  "type": "object",
6
6
  "additionalProperties": false,
7
- "required": ["schemaVersion", "kind", "digest", "publicBase", "publication", "review", "documents", "assets", "files", "diagnostics"],
7
+ "required": [
8
+ "schemaVersion",
9
+ "kind",
10
+ "digest",
11
+ "publicBase",
12
+ "publication",
13
+ "review",
14
+ "resources",
15
+ "assets",
16
+ "files",
17
+ "diagnostics"
18
+ ],
8
19
  "properties": {
9
- "schemaVersion": { "const": 1 },
10
- "kind": { "const": "shoalrun-content-export" },
11
- "digest": { "$ref": "#/$defs/digest" },
12
- "publicBase": { "type": "string", "pattern": "^/(?:(?!\\.{1,2}/)[A-Za-z0-9_~.-]+/)*$" },
13
- "publication": { "$ref": "#/$defs/publication" },
20
+ "schemaVersion": {
21
+ "const": 1
22
+ },
23
+ "kind": {
24
+ "const": "shoalrun-content-export"
25
+ },
26
+ "digest": {
27
+ "$ref": "#/$defs/digest"
28
+ },
29
+ "publicBase": {
30
+ "type": "string",
31
+ "pattern": "^/(?:(?!\\.{1,2}/)[A-Za-z0-9_~.-]+/)*$"
32
+ },
33
+ "publication": {
34
+ "$ref": "#/$defs/publication"
35
+ },
14
36
  "review": {
15
- "type": "object", "additionalProperties": false, "required": ["status", "apis"],
37
+ "type": "object",
38
+ "additionalProperties": false,
39
+ "required": [
40
+ "status",
41
+ "apis"
42
+ ],
16
43
  "properties": {
17
- "status": { "enum": ["ok", "required"] },
18
- "apis": { "type": "array", "items": { "type": "object", "additionalProperties": false, "required": ["apiId", "digest"], "properties": { "apiId": { "type": "string" }, "digest": { "$ref": "#/$defs/digest" } } } }
44
+ "status": {
45
+ "enum": [
46
+ "ok",
47
+ "required"
48
+ ]
49
+ },
50
+ "apis": {
51
+ "type": "array",
52
+ "items": {
53
+ "type": "object",
54
+ "additionalProperties": false,
55
+ "required": [
56
+ "apiId",
57
+ "digest"
58
+ ],
59
+ "properties": {
60
+ "apiId": {
61
+ "type": "string"
62
+ },
63
+ "digest": {
64
+ "$ref": "#/$defs/digest"
65
+ }
66
+ }
67
+ }
68
+ }
69
+ }
70
+ },
71
+ "assets": {
72
+ "type": "array",
73
+ "items": {
74
+ "$ref": "#/$defs/asset"
19
75
  }
20
76
  },
21
- "documents": {
22
- "type": "array", "minItems": 1,
77
+ "files": {
78
+ "type": "array",
23
79
  "items": {
24
- "type": "object", "additionalProperties": false,
25
- "required": ["id", "publication", "title", "summary", "type", "representations", "assets", "externalDependencies"],
80
+ "$ref": "#/$defs/file"
81
+ }
82
+ },
83
+ "diagnostics": {
84
+ "type": "array",
85
+ "items": {
86
+ "type": "object",
87
+ "additionalProperties": false,
88
+ "required": [
89
+ "code",
90
+ "message"
91
+ ],
26
92
  "properties": {
27
- "id": { "type": "string", "minLength": 1 }, "publication": { "$ref": "#/$defs/publication" },
28
- "title": { "type": "string" }, "summary": { "type": "string" }, "type": { "type": "string" },
29
- "canonicalUrl": { "type": "string", "format": "uri" },
30
- "representations": { "type": "object", "minProperties": 1, "additionalProperties": false, "properties": { "html": { "$ref": "#/$defs/representation" }, "markdown": { "$ref": "#/$defs/representation" } } },
31
- "assets": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/path" } },
32
- "externalDependencies": { "type": "array", "items": { "type": "object", "additionalProperties": false, "required": ["url", "kind"], "properties": { "url": { "type": "string", "format": "uri" }, "kind": { "const": "image" } } } }
93
+ "code": {
94
+ "type": "string"
95
+ },
96
+ "documentId": {
97
+ "type": "string"
98
+ },
99
+ "message": {
100
+ "type": "string"
101
+ }
33
102
  }
34
103
  }
35
104
  },
36
- "assets": { "type": "array", "items": { "$ref": "#/$defs/asset" } },
37
- "files": { "type": "array", "items": { "$ref": "#/$defs/file" } },
38
- "diagnostics": { "type": "array", "items": { "type": "object", "additionalProperties": false, "required": ["code", "documentId", "message"], "properties": { "code": { "type": "string" }, "documentId": { "type": "string" }, "message": { "type": "string" } } } }
105
+ "resources": {
106
+ "type": "array",
107
+ "minItems": 1,
108
+ "items": {
109
+ "type": "object",
110
+ "additionalProperties": false,
111
+ "required": [
112
+ "ref",
113
+ "publication",
114
+ "title",
115
+ "summary",
116
+ "type",
117
+ "representations",
118
+ "assets",
119
+ "externalDependencies"
120
+ ],
121
+ "properties": {
122
+ "publication": {
123
+ "$ref": "#/$defs/publication"
124
+ },
125
+ "title": {
126
+ "type": "string"
127
+ },
128
+ "summary": {
129
+ "type": "string"
130
+ },
131
+ "type": {
132
+ "type": "string"
133
+ },
134
+ "canonicalUrl": {
135
+ "type": "string",
136
+ "format": "uri"
137
+ },
138
+ "representations": {
139
+ "type": "object",
140
+ "minProperties": 1,
141
+ "additionalProperties": false,
142
+ "properties": {
143
+ "html": {
144
+ "$ref": "#/$defs/representation"
145
+ },
146
+ "markdown": {
147
+ "$ref": "#/$defs/representation"
148
+ }
149
+ }
150
+ },
151
+ "assets": {
152
+ "type": "array",
153
+ "uniqueItems": true,
154
+ "items": {
155
+ "$ref": "#/$defs/path"
156
+ }
157
+ },
158
+ "externalDependencies": {
159
+ "type": "array",
160
+ "items": {
161
+ "type": "object",
162
+ "additionalProperties": false,
163
+ "required": [
164
+ "url",
165
+ "kind"
166
+ ],
167
+ "properties": {
168
+ "url": {
169
+ "type": "string",
170
+ "format": "uri"
171
+ },
172
+ "kind": {
173
+ "const": "image"
174
+ }
175
+ }
176
+ }
177
+ },
178
+ "ref": {
179
+ "$ref": "#/$defs/contentRef"
180
+ },
181
+ "source": {
182
+ "type": "object",
183
+ "additionalProperties": false,
184
+ "minProperties": 1,
185
+ "properties": {
186
+ "documentId": {
187
+ "type": "string",
188
+ "minLength": 1
189
+ },
190
+ "snippetId": {
191
+ "type": "string",
192
+ "minLength": 1
193
+ },
194
+ "valuesDigest": {
195
+ "$ref": "#/$defs/digest"
196
+ }
197
+ }
198
+ }
199
+ }
200
+ }
201
+ }
39
202
  },
40
203
  "$defs": {
41
- "digest": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
42
- "path": { "type": "string", "pattern": "^(?:NOTICES\\.txt|(?:content|assets)/(?!\\.{1,2}(?:/|$))[A-Za-z0-9_.-]+(?:/(?!\\.{1,2}(?:/|$))[A-Za-z0-9_.-]+)*)$" },
43
- "publication": { "type": "object", "additionalProperties": false, "required": ["channel", "version", "language"], "properties": { "channel": { "type": "string", "minLength": 1 }, "version": { "type": "string", "minLength": 1 }, "language": { "type": "string", "minLength": 1 } } },
44
- "file": { "type": "object", "required": ["path", "bytes", "digest"], "properties": { "path": { "$ref": "#/$defs/path" }, "bytes": { "type": "integer", "minimum": 0 }, "digest": { "$ref": "#/$defs/digest" } } },
45
- "asset": { "allOf": [{ "$ref": "#/$defs/file" }], "type": "object", "required": ["mediaType"], "properties": { "mediaType": { "type": "string" } } },
46
- "representation": {
47
- "allOf": [{ "$ref": "#/$defs/asset" }],
48
- "type": "object", "required": ["anchors", "links"],
204
+ "digest": {
205
+ "type": "string",
206
+ "pattern": "^[a-f0-9]{64}$"
207
+ },
208
+ "path": {
209
+ "type": "string",
210
+ "pattern": "^(?:NOTICES\\.txt|(?:content|assets)/(?!\\.{1,2}(?:/|$))[A-Za-z0-9_.-]+(?:/(?!\\.{1,2}(?:/|$))[A-Za-z0-9_.-]+)*)$"
211
+ },
212
+ "publication": {
213
+ "type": "object",
214
+ "additionalProperties": false,
215
+ "required": [
216
+ "channel",
217
+ "version",
218
+ "language"
219
+ ],
49
220
  "properties": {
50
- "anchors": { "type": "array", "items": { "type": "object", "additionalProperties": false, "required": ["id", "exportedId"], "properties": { "id": { "type": "string" }, "exportedId": { "type": "string" }, "title": { "type": "string" } } } },
51
- "links": { "type": "array", "items": { "type": "object", "additionalProperties": false, "required": ["key", "kind", "href"], "properties": { "key": { "type": "string" }, "kind": { "enum": ["document", "canonical", "external", "asset"] }, "href": { "type": "string" }, "documentId": { "type": "string" }, "fragment": { "type": "string" }, "query": { "type": "string" }, "asset": { "$ref": "#/$defs/path" } } } }
221
+ "channel": {
222
+ "type": "string",
223
+ "minLength": 1
224
+ },
225
+ "version": {
226
+ "type": "string",
227
+ "minLength": 1
228
+ },
229
+ "language": {
230
+ "type": "string",
231
+ "minLength": 1
232
+ }
52
233
  }
234
+ },
235
+ "file": {
236
+ "type": "object",
237
+ "required": [
238
+ "path",
239
+ "bytes",
240
+ "digest"
241
+ ],
242
+ "properties": {
243
+ "path": {
244
+ "$ref": "#/$defs/path"
245
+ },
246
+ "bytes": {
247
+ "type": "integer",
248
+ "minimum": 0
249
+ },
250
+ "digest": {
251
+ "$ref": "#/$defs/digest"
252
+ }
253
+ },
254
+ "additionalProperties": false
255
+ },
256
+ "asset": {
257
+ "type": "object",
258
+ "required": [
259
+ "path",
260
+ "bytes",
261
+ "digest",
262
+ "mediaType"
263
+ ],
264
+ "properties": {
265
+ "path": {
266
+ "$ref": "#/$defs/path"
267
+ },
268
+ "bytes": {
269
+ "type": "integer",
270
+ "minimum": 0
271
+ },
272
+ "digest": {
273
+ "$ref": "#/$defs/digest"
274
+ },
275
+ "mediaType": {
276
+ "type": "string"
277
+ }
278
+ },
279
+ "additionalProperties": false
280
+ },
281
+ "representation": {
282
+ "type": "object",
283
+ "required": [
284
+ "path",
285
+ "bytes",
286
+ "digest",
287
+ "mediaType",
288
+ "anchors",
289
+ "links"
290
+ ],
291
+ "properties": {
292
+ "path": {
293
+ "$ref": "#/$defs/path"
294
+ },
295
+ "bytes": {
296
+ "type": "integer",
297
+ "minimum": 0
298
+ },
299
+ "digest": {
300
+ "$ref": "#/$defs/digest"
301
+ },
302
+ "mediaType": {
303
+ "type": "string"
304
+ },
305
+ "anchors": {
306
+ "type": "array",
307
+ "items": {
308
+ "type": "object",
309
+ "additionalProperties": false,
310
+ "required": [
311
+ "id",
312
+ "exportedId"
313
+ ],
314
+ "properties": {
315
+ "id": {
316
+ "type": "string"
317
+ },
318
+ "exportedId": {
319
+ "type": "string"
320
+ },
321
+ "title": {
322
+ "type": "string"
323
+ }
324
+ }
325
+ }
326
+ },
327
+ "links": {
328
+ "type": "array",
329
+ "items": {
330
+ "oneOf": [
331
+ {
332
+ "type": "object",
333
+ "additionalProperties": false,
334
+ "required": [
335
+ "key",
336
+ "kind",
337
+ "href",
338
+ "ref"
339
+ ],
340
+ "properties": {
341
+ "key": {
342
+ "type": "string"
343
+ },
344
+ "kind": {
345
+ "enum": [
346
+ "resource"
347
+ ]
348
+ },
349
+ "href": {
350
+ "type": "string"
351
+ },
352
+ "fragment": {
353
+ "type": "string"
354
+ },
355
+ "query": {
356
+ "type": "string"
357
+ },
358
+ "ref": {
359
+ "$ref": "#/$defs/contentRef"
360
+ }
361
+ }
362
+ },
363
+ {
364
+ "type": "object",
365
+ "additionalProperties": false,
366
+ "required": [
367
+ "key",
368
+ "kind",
369
+ "href",
370
+ "asset"
371
+ ],
372
+ "properties": {
373
+ "key": {
374
+ "type": "string"
375
+ },
376
+ "kind": {
377
+ "enum": [
378
+ "asset"
379
+ ]
380
+ },
381
+ "href": {
382
+ "type": "string"
383
+ },
384
+ "fragment": {
385
+ "type": "string"
386
+ },
387
+ "query": {
388
+ "type": "string"
389
+ },
390
+ "asset": {
391
+ "$ref": "#/$defs/path"
392
+ }
393
+ }
394
+ },
395
+ {
396
+ "type": "object",
397
+ "additionalProperties": false,
398
+ "required": [
399
+ "key",
400
+ "kind",
401
+ "href"
402
+ ],
403
+ "properties": {
404
+ "key": {
405
+ "type": "string"
406
+ },
407
+ "kind": {
408
+ "enum": [
409
+ "canonical",
410
+ "external"
411
+ ]
412
+ },
413
+ "href": {
414
+ "type": "string"
415
+ },
416
+ "fragment": {
417
+ "type": "string"
418
+ },
419
+ "query": {
420
+ "type": "string"
421
+ }
422
+ }
423
+ }
424
+ ]
425
+ }
426
+ }
427
+ },
428
+ "additionalProperties": false
429
+ },
430
+ "contentRef": {
431
+ "oneOf": [
432
+ {
433
+ "type": "object",
434
+ "additionalProperties": false,
435
+ "required": [
436
+ "kind",
437
+ "documentId"
438
+ ],
439
+ "properties": {
440
+ "kind": {
441
+ "const": "page"
442
+ },
443
+ "documentId": {
444
+ "type": "string",
445
+ "minLength": 1
446
+ }
447
+ }
448
+ },
449
+ {
450
+ "type": "object",
451
+ "additionalProperties": false,
452
+ "required": [
453
+ "kind",
454
+ "documentId",
455
+ "sectionId"
456
+ ],
457
+ "properties": {
458
+ "kind": {
459
+ "const": "section"
460
+ },
461
+ "documentId": {
462
+ "type": "string",
463
+ "minLength": 1
464
+ },
465
+ "sectionId": {
466
+ "type": "string",
467
+ "pattern": "^[a-z0-9][a-z0-9-]{0,511}$"
468
+ }
469
+ }
470
+ },
471
+ {
472
+ "type": "object",
473
+ "additionalProperties": false,
474
+ "required": [
475
+ "kind",
476
+ "id"
477
+ ],
478
+ "properties": {
479
+ "kind": {
480
+ "const": "snippet"
481
+ },
482
+ "id": {
483
+ "type": "string",
484
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$"
485
+ }
486
+ }
487
+ }
488
+ ]
53
489
  }
54
490
  }
55
491
  }