@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.
- package/CHANGELOG.md +55 -0
- package/README.md +45 -5
- package/agent-docs/.well-known/shoalrun/navigation/project-updates-50f26fe22670.txt +3 -1
- package/agent-docs/SNAPSHOT.json +5 -5
- package/agent-docs/api-docs/support.md +11 -10
- package/agent-docs/author/components.md +13 -1
- package/agent-docs/author/frontmatter-reference.md +28 -25
- package/agent-docs/author/frontmatter-reference.sections/choose-a-publication-and-visibility.md +3 -1
- package/agent-docs/author/frontmatter-reference.sections/control-output-details.md +3 -1
- package/agent-docs/author/frontmatter-reference.sections/global-defaults-and-enforced-values.md +3 -1
- package/agent-docs/author/frontmatter-reference.sections/html-markdown-and-agents.md +3 -1
- package/agent-docs/author/frontmatter-reference.sections/identify-and-route-a-page.md +3 -1
- package/agent-docs/author/frontmatter-reference.sections/point-agents-to-it.md +3 -1
- package/agent-docs/author/frontmatter-reference.sections/project-defined-fields.md +3 -1
- package/agent-docs/author/frontmatter-reference.sections/related-reading.md +3 -1
- package/agent-docs/author/frontmatter-reference.sections/use-the-local-files-while-authoring.md +3 -1
- package/agent-docs/author/frontmatter-reference.sections/when-the-files-update.md +3 -1
- package/agent-docs/author/frontmatter.md +5 -2
- package/agent-docs/author/frontmatter.sections/audience-badges.md +1 -1
- package/agent-docs/author/frontmatter.sections/give-deprecation-guidance.md +1 -1
- package/agent-docs/author/frontmatter.sections/global-defaults-and-enforced-values.md +1 -1
- package/agent-docs/author/frontmatter.sections/optional-native-fields.md +5 -2
- package/agent-docs/author/frontmatter.sections/publication-fields.md +1 -1
- package/agent-docs/author/frontmatter.sections/publishing-policy.md +1 -1
- package/agent-docs/author/frontmatter.sections/related-metadata-tasks.md +1 -1
- package/agent-docs/author/frontmatter.sections/related-reading.md +1 -1
- package/agent-docs/author/frontmatter.sections/required-after-inheritance.md +1 -1
- package/agent-docs/author/frontmatter.sections/seo-fields.md +1 -1
- package/agent-docs/author/frontmatter.sections/validation-rules.md +1 -1
- package/agent-docs/author/markdown-metadata.md +13 -5
- package/agent-docs/author/navigation.md +12 -1
- package/agent-docs/author/navigation.sections/arrange-authored-pages.md +1 -1
- package/agent-docs/author/navigation.sections/fill-an-api-tag-group.md +1 -1
- package/agent-docs/author/navigation.sections/hide-group-page-counts.md +12 -1
- package/agent-docs/author/navigation.sections/html-markdown-and-agents.md +1 -1
- package/agent-docs/author/navigation.sections/local-api-preview.md +1 -1
- package/agent-docs/author/navigation.sections/mix-guides-and-api-references.md +1 -1
- package/agent-docs/author/navigation.sections/optionally-split-a-large-menu-into-files.md +1 -1
- package/agent-docs/author/navigation.sections/reach-navigation-while-reading.md +1 -1
- package/agent-docs/author/navigation.sections/related-reading.md +1 -1
- package/agent-docs/author/navigation.sections/split-navigation-into-tabs.md +1 -1
- package/agent-docs/author/navigation.sections/subject-lifecycle-labels.md +1 -1
- package/agent-docs/author/templates.md +10 -2
- package/agent-docs/author/templates.sections/built-in-feature-templates.md +1 -1
- package/agent-docs/author/templates.sections/built-in-templates.md +1 -1
- package/agent-docs/author/templates.sections/choose-formatting-enforcement-for-your-project.md +1 -1
- package/agent-docs/author/templates.sections/create-or-edit-a-project-template.md +10 -2
- package/agent-docs/author/templates.sections/keep-the-four-shapes-distinct.md +1 -1
- package/agent-docs/author/templates.sections/project-added-templates.md +1 -1
- package/agent-docs/author/templates.sections/related-reading.md +1 -1
- package/agent-docs/author/templates.sections/scaffold-a-page.md +1 -1
- package/agent-docs/author/templates.sections/short-cli-and-derived-values.md +1 -1
- package/agent-docs/author/templates.sections/what-every-template-gives-you.md +1 -1
- package/agent-docs/author/workspace.md +7 -1
- package/agent-docs/author/writing-style.md +13 -1
- package/agent-docs/author/writing-style.sections/adapt-this-example.md +1 -1
- package/agent-docs/author/writing-style.sections/choose-components-by-reader-need.md +1 -1
- package/agent-docs/author/writing-style.sections/evidence-and-uncertainty.md +1 -1
- package/agent-docs/author/writing-style.sections/example-audience-and-scope.md +1 -1
- package/agent-docs/author/writing-style.sections/feature-availability.md +36 -0
- package/agent-docs/author/writing-style.sections/ingredients-recipes-and-cookbooks.md +1 -1
- package/agent-docs/author/writing-style.sections/page-purpose-and-structure.md +1 -1
- package/agent-docs/author/writing-style.sections/procedures-and-examples.md +1 -1
- package/agent-docs/author/writing-style.sections/related-reading.md +1 -1
- package/agent-docs/author/writing-style.sections/review-a-draft.md +1 -1
- package/agent-docs/author/writing-style.sections/reviewed-writing-examples.md +1 -1
- package/agent-docs/author/writing-style.sections/voice-and-explanations.md +1 -1
- package/agent-docs/changelog/2026-10-28.md +89 -0
- package/agent-docs/changelog.md +9 -1
- package/agent-docs/config/outputs.md +15 -11
- package/agent-docs/config/outputs.sections/exports.md +14 -11
- package/agent-docs/config/outputs.sections/metadata.md +1 -1
- package/agent-docs/config/outputs.sections/related-reading.md +1 -1
- package/agent-docs/content-delivery/agents.md +86 -0
- package/agent-docs/content-delivery/api.md +130 -0
- package/agent-docs/content-delivery/client.md +79 -0
- package/agent-docs/content-delivery/http-api/operations/get-content-representation-fa1d2e3f.md +394 -0
- package/agent-docs/content-delivery/http-api/operations/get-content-representation-head-4052375c.md +256 -0
- package/agent-docs/content-delivery/http-api/operations/get-content-resource-849f1c49.md +911 -0
- package/agent-docs/content-delivery/http-api/operations/get-content-resource-head-0a352acd.md +246 -0
- package/agent-docs/content-delivery/http-api/operations/list-content-resources-8e977ec7.md +913 -0
- package/agent-docs/content-delivery/http-api/operations/list-content-resources-head-b67cbad9.md +236 -0
- package/agent-docs/content-delivery/http-api.md +78 -0
- package/agent-docs/content-delivery/manifest.md +79 -0
- package/agent-docs/content-delivery/publish.md +72 -0
- package/agent-docs/content-delivery/render.md +73 -0
- package/agent-docs/content-delivery/rest.md +108 -0
- package/agent-docs/content-delivery/sections.md +110 -0
- package/agent-docs/content-delivery/select.md +100 -0
- package/agent-docs/content-delivery.md +79 -0
- package/agent-docs/documents.json +6748 -5073
- package/agent-docs/provenance.json +4 -4
- package/agent-docs/publish/content-export.md +32 -16
- package/agent-docs/publish/content-export.sections/assets-downloads-and-notices.md +3 -3
- package/agent-docs/publish/content-export.sections/check-the-result.md +2 -2
- package/agent-docs/publish/content-export.sections/export-selected-pages.md +12 -9
- package/agent-docs/publish/content-export.sections/inspect-the-manifest.md +5 -3
- package/agent-docs/publish/content-export.sections/prerequisites.md +3 -3
- package/agent-docs/publish/content-export.sections/related-reading.md +2 -2
- package/agent-docs/publish/content-export.sections/review-exported-api-material.md +3 -3
- package/agent-docs/publish/content-export.sections/try-the-help-drawer-example.md +3 -3
- package/agent-docs/publish/content-export.sections/upgrade-an-existing-integration.md +34 -0
- package/agent-docs/publish/content-export.sections/what-the-representations-retain.md +4 -4
- package/agent-docs/publish/mcp.md +3 -1
- package/agent-docs/publish/mcp.sections/check-budgets-and-errors.md +1 -1
- package/agent-docs/publish/mcp.sections/choose-the-documentation-source.md +1 -1
- package/agent-docs/publish/mcp.sections/configure-the-client.md +1 -1
- package/agent-docs/publish/mcp.sections/generate-a-vercel-endpoint.md +1 -1
- package/agent-docs/publish/mcp.sections/related-reading.md +3 -1
- package/agent-docs/publish/mcp.sections/search-then-read.md +1 -1
- package/agent-docs/publish/mcp.sections/serve-a-public-endpoint-on-node.md +1 -1
- package/agent-docs/publish/mcp.sections/verify-the-connection.md +1 -1
- package/agent-docs/publish/mcp.sections/why-offer-mcp-for-public-docs.md +1 -1
- package/agent-docs/publish/seo.md +16 -2
- package/agent-docs/publish/seo.sections/related-reading.md +28 -0
- package/agent-docs/publish/seo.sections/set-the-public-address.md +36 -0
- package/agent-docs/publish/seo.sections/what-agents-receive.md +28 -0
- package/agent-docs/publish/seo.sections/what-the-build-adds.md +42 -0
- package/agent-docs/publish/seo.sections/write-the-page-title-and-summary.md +43 -0
- package/agent-docs/search-index.json +1 -1
- package/agent-docs/styling/layouts.md +21 -3
- package/agent-docs/styling/layouts.sections/build-a-landing-page.md +6 -3
- package/agent-docs/styling/layouts.sections/build-a-splash-page.md +6 -3
- package/agent-docs/styling/layouts.sections/control-navigation-tabs.md +6 -3
- package/agent-docs/styling/layouts.sections/customize-the-hero.md +6 -3
- package/agent-docs/styling/layouts.sections/hero.md +6 -3
- package/agent-docs/styling/layouts.sections/hide-the-table-of-contents-or-give-content-more-room.md +54 -0
- package/agent-docs/styling/layouts.sections/html-markdown-and-agents.md +6 -3
- package/agent-docs/styling/layouts.sections/related-reading.md +6 -3
- package/dist/api.js +70 -3
- package/dist/authoring-hints.d.ts +3 -0
- package/dist/authoring-hints.js +35 -0
- package/dist/authoring-project.d.ts +1 -1
- package/dist/authoring-project.js +2 -0
- package/dist/authoring-validation.js +2 -0
- package/dist/code-samples.js +22 -11
- package/dist/compiler-config.d.ts +1 -0
- package/dist/compiler-config.js +13 -0
- package/dist/compiler.js +2 -1
- package/dist/component-names.js +1 -1
- package/dist/component-transform.js +7 -1
- package/dist/content-delivery-contract.d.ts +108 -0
- package/dist/content-delivery-contract.js +15 -0
- package/dist/content-delivery-transport.d.ts +3 -0
- package/dist/content-delivery-transport.js +47 -0
- package/dist/content-delivery-validation.d.ts +7 -0
- package/dist/content-delivery-validation.js +122 -0
- package/dist/content-delivery.d.ts +21 -0
- package/dist/content-delivery.js +119 -0
- package/dist/content-export-anchors.d.ts +11 -0
- package/dist/content-export-anchors.js +79 -0
- package/dist/content-export-command.d.ts +4 -2
- package/dist/content-export-command.js +15 -2
- package/dist/content-export-comparison.d.ts +16 -0
- package/dist/content-export-comparison.js +48 -0
- package/dist/content-export-config.d.ts +17 -0
- package/dist/content-export-config.js +47 -3
- package/dist/content-export-render.js +20 -1
- package/dist/content-export.d.ts +5 -1
- package/dist/content-export.js +193 -40
- package/dist/content-mount.d.ts +11 -0
- package/dist/content-mount.js +73 -0
- package/dist/content-rest-client.d.ts +12 -0
- package/dist/content-rest-client.js +162 -0
- package/dist/content-rest-contract.d.ts +27 -0
- package/dist/content-rest-contract.js +9 -0
- package/dist/content-rest-server.d.ts +7 -0
- package/dist/content-rest-server.js +99 -0
- package/dist/content-source.d.ts +3 -1
- package/dist/frontmatter.js +8 -7
- package/dist/html-renderer.js +25 -0
- package/dist/markdown-sections.d.ts +2 -1
- package/dist/markdown-sections.js +8 -18
- package/dist/page-renderer.js +5 -3
- package/dist/publication-plan.js +2 -1
- package/dist/scaffold-placeholders.d.ts +2 -0
- package/dist/scaffold-placeholders.js +19 -0
- package/dist/section-identity.d.ts +24 -0
- package/dist/section-identity.js +137 -0
- package/examples/content-delivery/README.md +87 -0
- package/examples/content-delivery/app.js +91 -0
- package/examples/content-delivery/content/billing.mdx +22 -0
- package/examples/content-delivery/docs.config.yaml +36 -0
- package/examples/content-delivery/index.html +25 -0
- package/examples/content-delivery/preview.mjs +86 -0
- package/examples/content-delivery/snippets/refund-window.mdx +3 -0
- package/examples/help-drawer/README.md +2 -2
- package/examples/help-drawer/app.js +3 -3
- package/package.json +6 -3
- package/schemas/content-export.schema.json +469 -33
- package/schemas/content-rest.openapi.json +1627 -0
- package/skills/shoalrun-author/SKILL.md +2 -0
- 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
|
|
4
|
+
"title": "Shoalrun content delivery manifest, version 1",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"additionalProperties": false,
|
|
7
|
-
"required": [
|
|
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": {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
|
|
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",
|
|
37
|
+
"type": "object",
|
|
38
|
+
"additionalProperties": false,
|
|
39
|
+
"required": [
|
|
40
|
+
"status",
|
|
41
|
+
"apis"
|
|
42
|
+
],
|
|
16
43
|
"properties": {
|
|
17
|
-
"status": {
|
|
18
|
-
|
|
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
|
-
"
|
|
22
|
-
"type": "array",
|
|
77
|
+
"files": {
|
|
78
|
+
"type": "array",
|
|
23
79
|
"items": {
|
|
24
|
-
"
|
|
25
|
-
|
|
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
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
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": {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
"
|
|
48
|
-
|
|
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
|
-
"
|
|
51
|
-
|
|
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
|
}
|