@kardalum/plugin-sdk 0.16.0 → 0.17.0
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 +38 -0
- package/dist/admin-section-registry.d.ts +14 -5
- package/dist/admin-section-registry.js +14 -4
- package/dist/capabilities.js +0 -3
- package/dist/host-entry.d.ts +1 -1
- package/dist/host-entry.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -8
- package/dist/license-verdict-keys.d.ts +4 -3
- package/dist/license-verdict-keys.js +4 -7
- package/dist/manifest-entry.d.ts +2 -2
- package/dist/manifest-entry.js +1 -1
- package/dist/manifest-schema.d.ts +51 -62
- package/dist/manifest-schema.js +97 -249
- package/dist/manifest.d.ts +41 -73
- package/dist/manifest.js +13 -36
- package/dist/plugin-screen-context.d.ts +11 -1
- package/dist/richtext/block-panel.js +2 -2
- package/dist/richtext/insert-menu.js +1 -1
- package/dist/richtext/style-listbox.js +4 -4
- package/dist/tokens/tokens.css +1 -0
- package/dist/tokens/tokens.json +2 -1
- package/dist/type-equality.d.ts +2 -0
- package/dist/type-equality.js +1 -0
- package/dist/views/html-view.js +1 -1
- package/dist/views/rich-text-view.js +1 -1
- package/node_modules/@kardalum/api-schemas/dist/asset-api.schema.d.ts +90 -0
- package/node_modules/@kardalum/api-schemas/dist/asset-api.schema.js +32 -1
- package/node_modules/@kardalum/api-schemas/dist/asset.schema.d.ts +22 -1
- package/node_modules/@kardalum/api-schemas/dist/asset.schema.js +50 -15
- package/node_modules/@kardalum/api-schemas/dist/audit-api.schema.d.ts +204 -0
- package/node_modules/@kardalum/api-schemas/dist/audit-api.schema.js +134 -0
- package/node_modules/@kardalum/api-schemas/dist/content-api.schema.js +6 -5
- package/node_modules/@kardalum/api-schemas/dist/content-list.schema.d.ts +2 -2
- package/node_modules/@kardalum/api-schemas/dist/content-trash-api.schema.d.ts +4 -0
- package/node_modules/@kardalum/api-schemas/dist/content-trash-api.schema.js +3 -0
- package/node_modules/@kardalum/api-schemas/dist/content-trash.schema.js +2 -1
- package/node_modules/@kardalum/api-schemas/dist/core-actions.d.ts +41 -5
- package/node_modules/@kardalum/api-schemas/dist/core-actions.js +23 -9
- package/node_modules/@kardalum/api-schemas/dist/index.d.ts +36 -20
- package/node_modules/@kardalum/api-schemas/dist/index.js +21 -11
- package/node_modules/@kardalum/api-schemas/dist/install-warnings.schema.d.ts +4 -0
- package/node_modules/@kardalum/api-schemas/dist/install-warnings.schema.js +8 -0
- package/node_modules/@kardalum/api-schemas/dist/issue-list.d.ts +6 -0
- package/node_modules/@kardalum/api-schemas/dist/issue-list.js +6 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.d.ts +101 -62
- package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.js +15 -4
- package/node_modules/@kardalum/api-schemas/dist/plugin-actions.schema.d.ts +6 -2
- package/node_modules/@kardalum/api-schemas/dist/plugin-actions.schema.js +8 -6
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs-api.schema.d.ts +1 -16
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs.d.ts +3 -19
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs.js +13 -15
- package/node_modules/@kardalum/api-schemas/dist/plugin-id-rules.d.ts +17 -7
- package/node_modules/@kardalum/api-schemas/dist/plugin-id-rules.js +18 -8
- package/node_modules/@kardalum/api-schemas/dist/plugin-install-record.schema.d.ts +1 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-install.d.ts +97 -85
- package/node_modules/@kardalum/api-schemas/dist/plugin-install.js +35 -68
- package/node_modules/@kardalum/api-schemas/dist/plugin-labels.d.ts +60 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-labels.js +116 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-locales.d.ts +9 -2
- package/node_modules/@kardalum/api-schemas/dist/plugin-locales.js +22 -7
- package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.d.ts +13 -6
- package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.js +7 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.d.ts +4 -3
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.js +1 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.d.ts +14 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.js +37 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-fields.d.ts +64 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-fields.js +134 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-registry-api.schema.d.ts +2 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-registry-api.schema.js +4 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-template-payload.d.ts +74 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-template-payload.js +132 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-vocabulary.d.ts +13 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-vocabulary.js +15 -0
- package/node_modules/@kardalum/api-schemas/dist/public-api.schema.js +12 -3
- package/node_modules/@kardalum/api-schemas/dist/role.schema.d.ts +11 -0
- package/node_modules/@kardalum/api-schemas/dist/role.schema.js +7 -0
- package/node_modules/@kardalum/api-schemas/dist/sample-content.schema.d.ts +11 -2
- package/node_modules/@kardalum/api-schemas/dist/sample-content.schema.js +21 -3
- package/node_modules/@kardalum/api-schemas/dist/sandbox-attach.schema.d.ts +126 -0
- package/node_modules/@kardalum/api-schemas/dist/sandbox-attach.schema.js +70 -0
- package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.d.ts +6 -6
- package/node_modules/@kardalum/api-schemas/dist/sites.schema.d.ts +44 -25
- package/node_modules/@kardalum/api-schemas/dist/sites.schema.js +187 -48
- package/node_modules/@kardalum/api-schemas/dist/snapshot-api.schema.d.ts +15 -3
- package/node_modules/@kardalum/api-schemas/dist/snapshot-api.schema.js +14 -0
- package/node_modules/@kardalum/api-schemas/dist/snapshot.schema.d.ts +1 -1
- package/node_modules/@kardalum/api-schemas/dist/strict-url.d.ts +12 -0
- package/node_modules/@kardalum/api-schemas/dist/strict-url.js +31 -0
- package/node_modules/@kardalum/api-schemas/dist/template-api.schema.d.ts +105 -1
- package/node_modules/@kardalum/api-schemas/dist/template-api.schema.js +43 -3
- package/node_modules/@kardalum/api-schemas/dist/template.schema.d.ts +30 -2
- package/node_modules/@kardalum/api-schemas/dist/template.schema.js +19 -5
- package/node_modules/@kardalum/api-schemas/dist/trash-cursor.schema.d.ts +4 -0
- package/node_modules/@kardalum/api-schemas/dist/trash-cursor.schema.js +29 -0
- package/node_modules/@kardalum/api-schemas/dist/user-api.schema.d.ts +4 -0
- package/node_modules/@kardalum/api-schemas/dist/user-api.schema.js +3 -0
- package/node_modules/@kardalum/api-schemas/dist/whoami-api.schema.d.ts +19 -0
- package/node_modules/@kardalum/api-schemas/dist/whoami-api.schema.js +22 -0
- package/node_modules/@kardalum/api-schemas/package.json +2 -2
- package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.d.ts +1 -0
- package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.js +2 -0
- package/node_modules/@kardalum/design-tokens/dist/tokens.css +1 -0
- package/node_modules/@kardalum/design-tokens/dist/tokens.js +3 -0
- package/node_modules/@kardalum/design-tokens/dist/tokens.json +2 -1
- package/node_modules/@kardalum/design-tokens/dist/types.d.ts +1 -0
- package/node_modules/@kardalum/plugin-package/README.md +4 -1
- package/node_modules/@kardalum/plugin-package/dist/build-reference.d.ts +6 -21
- package/node_modules/@kardalum/plugin-package/dist/build-reference.js +13 -8
- package/node_modules/@kardalum/plugin-package/dist/capabilities.d.ts +4 -4
- package/node_modules/@kardalum/plugin-package/dist/capabilities.js +9 -14
- package/node_modules/@kardalum/plugin-package/dist/client-bundle.d.ts +4 -0
- package/node_modules/@kardalum/plugin-package/dist/client-bundle.js +25 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/archive-names.d.ts +25 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/archive-names.js +203 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/bundle.d.ts +3 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/bundle.js +73 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/contributions.d.ts +5 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/contributions.js +60 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/icon-names.generated.d.ts +1 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/icon-names.generated.js +2052 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/icons.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/icons.js +51 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/index.d.ts +8 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/index.js +7 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/label-languages.d.ts +17 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/label-languages.js +119 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/limits.d.ts +14 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/limits.js +21 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/locales.d.ts +5 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/locales.js +148 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/package-files.d.ts +5 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/package-files.js +76 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/registry.d.ts +22 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/registry.js +133 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/sample-content.d.ts +3 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/sample-content.js +90 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/support.d.ts +24 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/support.js +55 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/templates.d.ts +6 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/templates.js +158 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/types.d.ts +53 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/types.js +1 -0
- package/node_modules/@kardalum/plugin-package/dist/docs-contract.d.ts +3 -2
- package/node_modules/@kardalum/plugin-package/dist/docs-contract.js +4 -2
- package/node_modules/@kardalum/plugin-package/dist/extract.d.ts +92 -3
- package/node_modules/@kardalum/plugin-package/dist/extract.js +251 -41
- package/node_modules/@kardalum/plugin-package/dist/index.d.ts +9 -2
- package/node_modules/@kardalum/plugin-package/dist/index.js +7 -2
- package/node_modules/@kardalum/plugin-package/dist/manifest-entry.d.ts +5 -0
- package/node_modules/@kardalum/plugin-package/dist/manifest-entry.js +20 -0
- package/node_modules/@kardalum/plugin-package/dist/reference-entry.d.ts +1 -0
- package/node_modules/@kardalum/plugin-package/dist/reference-entry.js +1 -0
- package/node_modules/@kardalum/plugin-package/dist/sample-content.d.ts +21 -3
- package/node_modules/@kardalum/plugin-package/dist/sample-content.js +37 -9
- package/node_modules/@kardalum/plugin-package/dist/shipped-files.d.ts +39 -0
- package/node_modules/@kardalum/plugin-package/dist/shipped-files.js +133 -0
- package/node_modules/@kardalum/plugin-package/dist/shipped-locales.d.ts +7 -0
- package/node_modules/@kardalum/plugin-package/dist/shipped-locales.js +27 -0
- package/node_modules/@kardalum/plugin-package/package.json +4 -2
- package/node_modules/@kardalum/ui/dist/components/dropdown-menu.js +2 -2
- package/node_modules/@kardalum/ui/package.json +1 -1
- package/package.json +6 -6
|
@@ -135,11 +135,17 @@ export declare const CORE_ACTIONS: readonly [{
|
|
|
135
135
|
readonly adminGatedToday: false;
|
|
136
136
|
readonly label: "Configure data types";
|
|
137
137
|
readonly route: "PATCH /api/manage/v1/data-types/:id";
|
|
138
|
+
}, {
|
|
139
|
+
readonly action: "dataTypes.delete";
|
|
140
|
+
readonly adminGatedToday: true;
|
|
141
|
+
readonly label: "Delete data types";
|
|
142
|
+
readonly keyNote: "Removes a data type for good. The server refuses a built-in data type, and one any document type still has a field of, naming those types.";
|
|
143
|
+
readonly route: "DELETE /api/manage/v1/data-types/:id";
|
|
138
144
|
}, {
|
|
139
145
|
readonly action: "templates.read";
|
|
140
146
|
readonly adminGatedToday: false;
|
|
141
147
|
readonly label: "View templates";
|
|
142
|
-
readonly route: "GET /api/manage/v1/templates, GET /api/manage/v1/templates/:id";
|
|
148
|
+
readonly route: "GET /api/manage/v1/templates, GET /api/manage/v1/templates/:id, GET /api/manage/v1/templates/trash, GET /api/manage/v1/templates/:id/versions, GET /api/manage/v1/templates/:id/versions/:version";
|
|
143
149
|
}, {
|
|
144
150
|
readonly action: "templates.create";
|
|
145
151
|
readonly adminGatedToday: true;
|
|
@@ -151,7 +157,7 @@ export declare const CORE_ACTIONS: readonly [{
|
|
|
151
157
|
readonly adminGatedToday: true;
|
|
152
158
|
readonly label: "Edit templates";
|
|
153
159
|
readonly keyNote: "Changes code the server serves from the admin's own origin: with managementApi.use this is as strong as an admin session.";
|
|
154
|
-
readonly route: "PATCH /api/manage/v1/templates/:id";
|
|
160
|
+
readonly route: "PATCH /api/manage/v1/templates/:id, POST /api/manage/v1/templates/:id/versions/:version/current, POST /api/manage/v1/templates/:id/restore";
|
|
155
161
|
}, {
|
|
156
162
|
readonly action: "templates.delete";
|
|
157
163
|
readonly adminGatedToday: true;
|
|
@@ -168,7 +174,7 @@ export declare const CORE_ACTIONS: readonly [{
|
|
|
168
174
|
readonly action: "assets.read";
|
|
169
175
|
readonly adminGatedToday: false;
|
|
170
176
|
readonly label: "View site assets";
|
|
171
|
-
readonly route: "GET /api/manage/v1/assets/tree, GET /api/manage/v1/assets/content, GET /api/manage/v1/assets/raw";
|
|
177
|
+
readonly route: "GET /api/manage/v1/assets/tree, GET /api/manage/v1/assets/content, GET /api/manage/v1/assets/raw, GET /api/manage/v1/assets/versions, GET /api/manage/v1/assets/versions/:version, GET /api/manage/v1/assets/trash";
|
|
172
178
|
}, {
|
|
173
179
|
readonly action: "assets.create";
|
|
174
180
|
readonly adminGatedToday: true;
|
|
@@ -180,7 +186,7 @@ export declare const CORE_ACTIONS: readonly [{
|
|
|
180
186
|
readonly adminGatedToday: true;
|
|
181
187
|
readonly label: "Edit and rename site assets";
|
|
182
188
|
readonly keyNote: "Changes code the server serves from the admin's own origin: with managementApi.use this is as strong as an admin session.";
|
|
183
|
-
readonly route: "PUT /api/manage/v1/assets/content, PATCH /api/manage/v1/assets/rename";
|
|
189
|
+
readonly route: "PUT /api/manage/v1/assets/content, PATCH /api/manage/v1/assets/rename, POST /api/manage/v1/assets/versions/:version/current, POST /api/manage/v1/assets/restore";
|
|
184
190
|
}, {
|
|
185
191
|
readonly action: "assets.delete";
|
|
186
192
|
readonly adminGatedToday: true;
|
|
@@ -207,7 +213,7 @@ export declare const CORE_ACTIONS: readonly [{
|
|
|
207
213
|
readonly action: "settings.read";
|
|
208
214
|
readonly adminGatedToday: false;
|
|
209
215
|
readonly label: "View settings";
|
|
210
|
-
readonly route: "GET /api/manage/v1/settings/render, GET /api/manage/v1/settings/cultures, GET /api/manage/v1/settings/sites";
|
|
216
|
+
readonly route: "GET /api/manage/v1/settings/render, GET /api/manage/v1/settings/cultures, GET /api/manage/v1/settings/sites, GET /api/manage/v1/settings/nav, GET /api/manage/v1/settings/audit-retention";
|
|
211
217
|
}, {
|
|
212
218
|
readonly action: "settings.update";
|
|
213
219
|
readonly adminGatedToday: true;
|
|
@@ -240,6 +246,12 @@ export declare const CORE_ACTIONS: readonly [{
|
|
|
240
246
|
readonly label: "Change user roles";
|
|
241
247
|
readonly keyNote: "Changes what a person may do by changing their role. A key is refused the admin role.";
|
|
242
248
|
readonly route: "PATCH /api/manage/v1/users/:id/role";
|
|
249
|
+
}, {
|
|
250
|
+
readonly action: "users.delete";
|
|
251
|
+
readonly adminGatedToday: true;
|
|
252
|
+
readonly label: "Delete users";
|
|
253
|
+
readonly keyNote: "Removes a person's account and ends their sessions. A key is refused when the account is an administrator's.";
|
|
254
|
+
readonly route: "DELETE /api/manage/v1/users/:id";
|
|
243
255
|
}, {
|
|
244
256
|
readonly action: "roles.read";
|
|
245
257
|
readonly adminGatedToday: true;
|
|
@@ -285,6 +297,24 @@ export declare const CORE_ACTIONS: readonly [{
|
|
|
285
297
|
readonly adminGatedToday: true;
|
|
286
298
|
readonly label: "Use the API playground";
|
|
287
299
|
readonly route: "GET /api/manage/v1/api-playground/openapi";
|
|
300
|
+
}, {
|
|
301
|
+
readonly action: "audit.read";
|
|
302
|
+
readonly adminGatedToday: true;
|
|
303
|
+
readonly label: "View the audit log";
|
|
304
|
+
readonly keyNote: "Reads every audit entry, with the name and email of everyone who acted and the address they came from.";
|
|
305
|
+
readonly route: "GET /api/manage/v1/audit";
|
|
306
|
+
}, {
|
|
307
|
+
readonly action: "audit.export";
|
|
308
|
+
readonly adminGatedToday: true;
|
|
309
|
+
readonly label: "Export the audit log";
|
|
310
|
+
readonly keyNote: "Exports a month of audit entries, with the name and email of everyone who acted and the address they came from.";
|
|
311
|
+
readonly route: "GET /api/manage/v1/audit/export";
|
|
312
|
+
}, {
|
|
313
|
+
readonly action: "audit.prune";
|
|
314
|
+
readonly adminGatedToday: true;
|
|
315
|
+
readonly label: "Set audit log retention and remove archived months";
|
|
316
|
+
readonly keyNote: "A key is refused here: retention and pruning take a session, so this matters only to a session's role.";
|
|
317
|
+
readonly route: "PUT /api/manage/v1/settings/audit-retention, POST /api/manage/v1/audit/prune";
|
|
288
318
|
}, {
|
|
289
319
|
readonly action: "managementApi.use";
|
|
290
320
|
readonly adminGatedToday: true;
|
|
@@ -338,6 +368,12 @@ export declare const CORE_ACTIONS: readonly [{
|
|
|
338
368
|
readonly adminGatedToday: true;
|
|
339
369
|
readonly label: "Restore a snapshot";
|
|
340
370
|
readonly route: "POST /api/manage/v1/snapshots/:id/restore";
|
|
371
|
+
}, {
|
|
372
|
+
readonly action: "snapshots.delete";
|
|
373
|
+
readonly adminGatedToday: true;
|
|
374
|
+
readonly label: "Delete snapshots";
|
|
375
|
+
readonly keyNote: "Removes a snapshot for good: its record of which page versions were published. No page changes.";
|
|
376
|
+
readonly route: "DELETE /api/manage/v1/snapshots/:id";
|
|
341
377
|
}];
|
|
342
378
|
/** Every core action as a literal union, so a mistyped action string is a
|
|
343
379
|
* compile error at the call site rather than a permission nobody holds. */
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
// checklist. Since S271 the `adminGatedToday: true` routes carry
|
|
9
9
|
// requireAction(<action>), and since S276 and S277 so do all the content rows.
|
|
10
10
|
// Since S298 so do all the document type, data type and template rows.
|
|
11
|
-
// Since S300a so do the asset and settings reads (the
|
|
12
|
-
// excepted on purpose: it is open to every signed-in user and no
|
|
13
|
-
// route). Since S300b so do the media rows: no route in the vocabulary asks
|
|
11
|
+
// Since S300a so do the asset and settings reads (the admin shell's app bar
|
|
12
|
+
// order read excepted on purpose: it is open to every signed-in user and no
|
|
13
|
+
// action's route; its management read, S309, asks settings.read). Since S300b so do the media rows: no route in the vocabulary asks
|
|
14
14
|
// only for a session. The flag remains what the seeded editor role is derived
|
|
15
15
|
// from.
|
|
16
16
|
// Since S299 the `/api/v1` delivery routes ask the same actions for an API
|
|
@@ -60,20 +60,22 @@ export const CORE_ACTIONS = [
|
|
|
60
60
|
{ action: "dataTypes.read", adminGatedToday: false, label: "View data types", route: "GET /api/manage/v1/data-types, GET /api/manage/v1/data-types/:id" },
|
|
61
61
|
{ action: "dataTypes.create", adminGatedToday: false, label: "Create data types", route: "POST /api/manage/v1/data-types" },
|
|
62
62
|
{ action: "dataTypes.update", adminGatedToday: false, label: "Configure data types", route: "PATCH /api/manage/v1/data-types/:id" },
|
|
63
|
-
{ action: "
|
|
63
|
+
{ action: "dataTypes.delete", adminGatedToday: true, label: "Delete data types", keyNote: "Removes a data type for good. The server refuses a built-in data type, and one any document type still has a field of, naming those types.", route: "DELETE /api/manage/v1/data-types/:id" },
|
|
64
|
+
{ action: "templates.read", adminGatedToday: false, label: "View templates", route: "GET /api/manage/v1/templates, GET /api/manage/v1/templates/:id, GET /api/manage/v1/templates/trash, GET /api/manage/v1/templates/:id/versions, GET /api/manage/v1/templates/:id/versions/:version" },
|
|
64
65
|
{ action: "templates.create", adminGatedToday: true, label: "Create templates", keyNote: "Changes code the server serves from the admin's own origin: with managementApi.use this is as strong as an admin session.", route: "POST /api/manage/v1/templates" },
|
|
65
|
-
{ action: "templates.update", adminGatedToday: true, label: "Edit templates", keyNote: "Changes code the server serves from the admin's own origin: with managementApi.use this is as strong as an admin session.", route: "PATCH /api/manage/v1/templates/:id" },
|
|
66
|
+
{ action: "templates.update", adminGatedToday: true, label: "Edit templates", keyNote: "Changes code the server serves from the admin's own origin: with managementApi.use this is as strong as an admin session.", route: "PATCH /api/manage/v1/templates/:id, POST /api/manage/v1/templates/:id/versions/:version/current, POST /api/manage/v1/templates/:id/restore" },
|
|
66
67
|
{ action: "templates.delete", adminGatedToday: true, label: "Delete templates", keyNote: "Changes code the server serves from the admin's own origin: with managementApi.use this is as strong as an admin session.", route: "DELETE /api/manage/v1/templates/:id" },
|
|
67
68
|
{ action: "templates.sync", adminGatedToday: true, label: "Sync templates from disk", keyNote: "Changes code the server serves from the admin's own origin: with managementApi.use this is as strong as an admin session.", route: "POST /api/manage/v1/templates/sync" },
|
|
68
|
-
{ action: "assets.read", adminGatedToday: false, label: "View site assets", route: "GET /api/manage/v1/assets/tree, GET /api/manage/v1/assets/content, GET /api/manage/v1/assets/raw" },
|
|
69
|
+
{ action: "assets.read", adminGatedToday: false, label: "View site assets", route: "GET /api/manage/v1/assets/tree, GET /api/manage/v1/assets/content, GET /api/manage/v1/assets/raw, GET /api/manage/v1/assets/versions, GET /api/manage/v1/assets/versions/:version, GET /api/manage/v1/assets/trash" },
|
|
69
70
|
{ action: "assets.create", adminGatedToday: true, label: "Upload site assets and create folders", keyNote: "Changes code the server serves from the admin's own origin: with managementApi.use this is as strong as an admin session.", route: "POST /api/manage/v1/assets/upload, POST /api/manage/v1/assets/extract-zip, POST /api/manage/v1/assets/folder" },
|
|
70
|
-
{ action: "assets.update", adminGatedToday: true, label: "Edit and rename site assets", keyNote: "Changes code the server serves from the admin's own origin: with managementApi.use this is as strong as an admin session.", route: "PUT /api/manage/v1/assets/content, PATCH /api/manage/v1/assets/rename" },
|
|
71
|
+
{ action: "assets.update", adminGatedToday: true, label: "Edit and rename site assets", keyNote: "Changes code the server serves from the admin's own origin: with managementApi.use this is as strong as an admin session.", route: "PUT /api/manage/v1/assets/content, PATCH /api/manage/v1/assets/rename, POST /api/manage/v1/assets/versions/:version/current, POST /api/manage/v1/assets/restore" },
|
|
71
72
|
{ action: "assets.delete", adminGatedToday: true, label: "Delete site assets", keyNote: "Changes code the server serves from the admin's own origin: with managementApi.use this is as strong as an admin session.", route: "DELETE /api/manage/v1/assets" },
|
|
72
73
|
{ action: "assets.sync", adminGatedToday: true, label: "Sync site assets from disk", keyNote: "Changes code the server serves from the admin's own origin: with managementApi.use this is as strong as an admin session.", route: "POST /api/manage/v1/assets/sync" },
|
|
73
74
|
{ action: "render.read", adminGatedToday: true, label: "View text styles and embeddable blocks", route: "GET /api/manage/v1/render/text-styles, GET /api/manage/v1/render/blocks" },
|
|
74
75
|
{ action: "render.preview", adminGatedToday: true, label: "Render a block preview", route: "POST /api/manage/v1/render/block" },
|
|
75
|
-
// S300a: the app bar's order read (GET /api/settings/nav) is open to every signed-in user on purpose (S281) and
|
|
76
|
-
|
|
76
|
+
// S300a: the app bar's order read in the shell (GET /api/settings/nav) is open to every signed-in user on purpose (S281) and asks no action;
|
|
77
|
+
// its management read (GET /api/manage/v1/settings/nav, S309) asks settings.read, and its write is settings.update.
|
|
78
|
+
{ action: "settings.read", adminGatedToday: false, label: "View settings", route: "GET /api/manage/v1/settings/render, GET /api/manage/v1/settings/cultures, GET /api/manage/v1/settings/sites, GET /api/manage/v1/settings/nav, GET /api/manage/v1/settings/audit-retention" },
|
|
77
79
|
{ action: "settings.update", adminGatedToday: true, label: "Change settings", route: "PUT /api/manage/v1/settings/render, PUT /api/manage/v1/settings/cultures, PUT /api/manage/v1/settings/nav" },
|
|
78
80
|
// S277d: a site's domains and the choice of default site. New with the
|
|
79
81
|
// Site tab, so there was no earlier gate to read; admin-gated because it
|
|
@@ -86,6 +88,7 @@ export const CORE_ACTIONS = [
|
|
|
86
88
|
{ action: "users.read", adminGatedToday: true, label: "View users", route: "GET /api/manage/v1/users" },
|
|
87
89
|
{ action: "users.create", adminGatedToday: true, label: "Invite users", keyNote: "A key is refused here: creating a user takes a session, so this matters only to a session's role.", route: "POST /api/manage/v1/users" },
|
|
88
90
|
{ action: "users.update", adminGatedToday: true, label: "Change user roles", keyNote: "Changes what a person may do by changing their role. A key is refused the admin role.", route: "PATCH /api/manage/v1/users/:id/role" },
|
|
91
|
+
{ action: "users.delete", adminGatedToday: true, label: "Delete users", keyNote: "Removes a person's account and ends their sessions. A key is refused when the account is an administrator's.", route: "DELETE /api/manage/v1/users/:id" },
|
|
89
92
|
// S272: new with the role editor, so there was no requireAdmin gate to
|
|
90
93
|
// read. Marked admin-gated because granting the role editor to the seeded
|
|
91
94
|
// editor would let that role grant itself anything.
|
|
@@ -97,6 +100,16 @@ export const CORE_ACTIONS = [
|
|
|
97
100
|
{ action: "apiKeys.create", adminGatedToday: true, label: "Create API keys", keyNote: "A key is refused here: key routes take a session only, so this matters only to a session's role.", route: "POST /api/manage/v1/api-keys" },
|
|
98
101
|
{ action: "apiKeys.revoke", adminGatedToday: true, label: "Revoke API keys", keyNote: "A key is refused here: key routes take a session only, so this matters only to a session's role.", route: "POST /api/manage/v1/api-keys/:id/revoke" },
|
|
99
102
|
{ action: "apiPlayground.read", adminGatedToday: true, label: "Use the API playground", route: "GET /api/manage/v1/api-playground/openapi" },
|
|
103
|
+
// S314b (P11): the audit log. Both admin-gated and both through requireAction, so a key
|
|
104
|
+
// that holds one beside managementApi.use reads the log too; the entries carry the name
|
|
105
|
+
// and email of everyone who acted, which the note says. The list is not itself recorded;
|
|
106
|
+
// the export is.
|
|
107
|
+
{ action: "audit.read", adminGatedToday: true, label: "View the audit log", keyNote: "Reads every audit entry, with the name and email of everyone who acted and the address they came from.", route: "GET /api/manage/v1/audit" },
|
|
108
|
+
{ action: "audit.export", adminGatedToday: true, label: "Export the audit log", keyNote: "Exports a month of audit entries, with the name and email of everyone who acted and the address they came from.", route: "GET /api/manage/v1/audit/export" },
|
|
109
|
+
// S314b2 (D2): audit log retention. Admin-gated and session-only: requireSessionAction
|
|
110
|
+
// refuses every key, so no script removes entries; the note says so. Reading the setting
|
|
111
|
+
// asks settings.read.
|
|
112
|
+
{ action: "audit.prune", adminGatedToday: true, label: "Set audit log retention and remove archived months", keyNote: "A key is refused here: retention and pruning take a session, so this matters only to a session's role.", route: "PUT /api/manage/v1/settings/audit-retention, POST /api/manage/v1/audit/prune" },
|
|
100
113
|
// Row C2 of 2026-10-16-s300a-management-routes-the-structure-side-design.md
|
|
101
114
|
// (section 4b): what an API key must hold, beside the route's own action, to
|
|
102
115
|
// reach any route under /api/manage/v1, hence the wildcard. requireAction
|
|
@@ -119,6 +132,7 @@ export const CORE_ACTIONS = [
|
|
|
119
132
|
{ action: "snapshots.read", adminGatedToday: true, label: "View snapshots", route: "GET /api/manage/v1/snapshots" },
|
|
120
133
|
{ action: "snapshots.create", adminGatedToday: true, label: "Create snapshots", route: "POST /api/manage/v1/snapshots" },
|
|
121
134
|
{ action: "snapshots.restore", adminGatedToday: true, label: "Restore a snapshot", route: "POST /api/manage/v1/snapshots/:id/restore" },
|
|
135
|
+
{ action: "snapshots.delete", adminGatedToday: true, label: "Delete snapshots", keyNote: "Removes a snapshot for good: its record of which page versions were published. No page changes.", route: "DELETE /api/manage/v1/snapshots/:id" },
|
|
122
136
|
];
|
|
123
137
|
export const CORE_ACTION_STRINGS = CORE_ACTIONS.map((entry) => entry.action);
|
|
124
138
|
const CORE_SET = new Set(CORE_ACTION_STRINGS);
|
|
@@ -3,21 +3,25 @@ export type { ActionString } from "./action.schema.js";
|
|
|
3
3
|
export { CORE_ACTIONS, CORE_ACTION_STRINGS, coreKeyNote, isCoreAction } from "./core-actions.js";
|
|
4
4
|
export type { CoreAction, CoreActionString } from "./core-actions.js";
|
|
5
5
|
export * from "./management-multipart.schema.js";
|
|
6
|
-
export {
|
|
7
|
-
export
|
|
6
|
+
export { TRASH_CURSOR_MAX, TrashCursorSchema, isTrashCursor } from "./trash-cursor.schema.js";
|
|
7
|
+
export { ROLE_ID_PATTERN, SEEDED_ROLE_IDS, RoleIdSchema, ActionSummarySchema, ActionListResponseSchema, RoleSchema, RoleListQuerySchema, RoleListResponseSchema, CreateRoleRequestSchema, UpdateRoleRequestSchema, RoleResponseSchema, DeleteRoleResponseSchema, RoleEscalationRefusalSchema, RoleForbiddenSchema, RoleParamsSchema, } from "./role.schema.js";
|
|
8
|
+
export type { SeededRoleId, RoleId, ActionSummary, ActionListResponse, Role, RoleListQuery, RoleListResponse, CreateRoleRequest, UpdateRoleRequest, RoleResponse, DeleteRoleResponse, RoleEscalationRefusal, RoleParams, } from "./role.schema.js";
|
|
8
9
|
export { RESTRICTABLE_ACTIONS, isRestrictableAction, MAX_RESTRICTED_NODES, MAX_RESTRICTED_NODES_WITH_TRASH, MAX_GRANTS_PER_ENTRY, NODE_ACCESS_SUBJECT_ID_MAX, NodeAccessModeSchema, NodeAccessSubjectKindSchema, NodeAccessGrantSchema, NodeAccessEntrySchema, NodeAccessReasonSchema, NodeAccessDecisionSchema, NODE_ACCESS_REFUSED_MESSAGE, NodeAccessFlagsSchema, NodeAccessRefusalSchema, NodeAccessRefusalDecisionSchema, DecidingEntryGrantSchema, DecidingEntrySchema, NodeAccessDenialSchema, MoveImpactQuerySchema, MoveImpactResponseSchema, ClearRestrictionsResponseSchema, ContentForbiddenSchema, ALL_NODE_ACCESS, nodeAccessFlagKey, PermissionGrantViewSchema, NodePermissionRowSchema, NodePermissionsResponseSchema, NodePermissionInputSchema, SaveNodePermissionsRequestSchema, NodePermissionsRefusalSchema, PermissionSubjectSchema, PermissionSubjectsResponseSchema, PermissionSubjectsQuerySchema, PERMISSION_SUBJECT_QUERY_MAX, PERMISSION_SUBJECT_CURSOR_MAX, ExplainSubjectQuerySchema, AccessTraceViewSchema, ExplainResponseSchema, ExplainOperationQuerySchema, ExplainOperationResponseSchema, OPENED_BELOW_MAX, WhoCanResponseSchema, } from "./node-access.schema.js";
|
|
9
10
|
export type { RestrictableAction, NodeAccessMode, NodeAccessSubjectKind, NodeAccessGrant, NodeAccessEntry, NodeAccessReason, NodeAccessDecision, NodeAccessFlags, NodeAccessRefusal, NodeAccessRefusalDecision, DecidingEntryGrant, DecidingEntry, NodeAccessDenial, NodeAccessFlagKey, MoveImpactQuery, MoveImpactResponse, ClearRestrictionsResponse, PermissionGrantView, NodePermissionRow, NodePermissionsResponse, NodePermissionInput, SaveNodePermissionsRequest, NodePermissionsRefusal, PermissionSubject, PermissionSubjectsResponse, PermissionSubjectsQuery, ExplainSubjectQuery, AccessTraceView, ExplainResponse, ExplainOperationQuery, ExplainOperationResponse, WhoCanResponse, } from "./node-access.schema.js";
|
|
10
11
|
export { ContentNodeSchema, NodeCultureSchema } from "./content.schema.js";
|
|
11
12
|
export type { ContentNode, NodeCulture } from "./content.schema.js";
|
|
12
13
|
export { RESERVED_ROOT_SLUGS, isReservedRootSlug } from "./reserved-slugs.js";
|
|
13
14
|
export { CONTENT_NAME_KEY, canonicalPath, firstSegment, joinContentPath, NEXT_FREE_SLUG_ATTEMPTS, nextAvailableName, nextFreeSlug, publicPath, slugify, } from "./content-path.js";
|
|
14
|
-
export { DefaultSiteSchema,
|
|
15
|
-
export type { DefaultSite, SetDefaultSiteRequest, SetSiteHostnamesRequest, SiteAddress, SiteAddressOptions, SiteHostnames, SiteListQuery, SiteListResponse, SiteListRow, SiteSummary, SitesSettings, SitesSettingsResponse, } from "./sites.schema.js";
|
|
15
|
+
export { DefaultSiteSchema, MAX_HOSTNAMES_PER_SITE, SetDefaultSiteRequestSchema, SetSiteHostnamesRequestSchema, SiteDomainSchema, SiteHostnamesSchema, SiteListQuerySchema, SiteListResponseSchema, SiteListRowSchema, SiteSummarySchema, SitesSettingsResponseSchema, SitesSettingsSchema, addressFromSitesRecord, formatSiteDomain, parseSiteDomain, siteAddress, siteDomainAuthority, siteDomainOrigin, } from "./sites.schema.js";
|
|
16
|
+
export type { DefaultSite, SetDefaultSiteRequest, SetSiteHostnamesRequest, SiteAddress, SiteAddressOptions, SiteDomain, SiteHostnames, SiteListQuery, SiteListResponse, SiteListRow, SiteSummary, SitesSettings, SitesSettingsResponse, } from "./sites.schema.js";
|
|
16
17
|
export { NAV_ORDER_MAX, NavIdSchema, NavSettingsSchema } from "./nav.schema.js";
|
|
17
18
|
export type { NavSettings } from "./nav.schema.js";
|
|
18
19
|
export { LicensingSettingsSchema } from "./licensing.schema.js";
|
|
19
20
|
export type { LicensingSettings } from "./licensing.schema.js";
|
|
20
21
|
export { MANIFEST_ID_SEGMENT_MAX, PLUGIN_ID_REGEX, SLOT_ID_MAX, SLOT_ID_REGEX, isPluginManifestId } from "./plugin-id-rules.js";
|
|
22
|
+
export { PLUGIN_AUTHOR_MAX, PLUGIN_CMS_VERSION_MAX, PLUGIN_DESCRIPTION_MAX, PLUGIN_ID_MAX, PLUGIN_ID_MESSAGE, PLUGIN_ID_SEGMENTS_MESSAGE, PLUGIN_LICENSE_MAX, PLUGIN_NAME_MAX, PLUGIN_VERSION_MAX, PLUGIN_VERSION_MESSAGE, PluginAuthorSchema, PluginCmsVersionSchema, PluginDescriptionSchema, PluginLicenseSchema, PluginManifestIdSchema, PluginNameSchema, PluginVersionSchema, checkPluginListingFields, isPluginVersion, pluginManifestFields, } from "./plugin-manifest-fields.js";
|
|
23
|
+
export { API_ROUTE_ACCESS_TIERS, DATABASE_DIALECTS, PLUGIN_TYPES, STORAGE_TYPES, TEMPLATE_KINDS, TIER1_DIALECTS, } from "./plugin-vocabulary.js";
|
|
24
|
+
export type { DatabaseDialectValue, PluginTypeValue, Tier1Dialect } from "./plugin-vocabulary.js";
|
|
21
25
|
export { cultureDirection } from "./culture-direction.js";
|
|
22
26
|
export { ContentVersionSchema, flattenForCulture } from "./content-version.schema.js";
|
|
23
27
|
export type { ContentVersion } from "./content-version.schema.js";
|
|
@@ -39,14 +43,14 @@ export { FieldValidationSchema, FieldDefinitionSchema, TabDefinitionSchema, Tree
|
|
|
39
43
|
export type { FieldValidation, FieldDefinition, TabDefinition, TreeRules, DocumentTypeDefinition, } from "./document-type.schema.js";
|
|
40
44
|
export { CreateDocumentTypeRequestSchema, UpdateDocumentTypeRequestSchema, CreateDocumentTypeResponseSchema, DocumentTypeListQuerySchema, DocumentTypeListResponseSchema, DeleteDocumentTypeResponseSchema, } from "./document-type-api.schema.js";
|
|
41
45
|
export type { CreateDocumentTypeRequest, CreateDocumentTypeRequestInput, UpdateDocumentTypeRequest, UpdateDocumentTypeRequestInput, CreateDocumentTypeResponse, DocumentTypeListQuery, DocumentTypeListResponse, DeleteDocumentTypeResponse, } from "./document-type-api.schema.js";
|
|
42
|
-
export { TemplateAliasSchema, TemplateDefinitionSchema, TemplateKindSchema, TemplateVersionSchema, TemplateVersionSourceSchema, } from "./template.schema.js";
|
|
43
|
-
export type { TemplateDefinition, TemplateKind, TemplateVersion, TemplateVersionSource, } from "./template.schema.js";
|
|
44
|
-
export { CreateTemplateRequestSchema, CreateTemplateResponseSchema, DeleteTemplateQuerySchema, MAX_TEMPLATE_CONTENT_BYTES, SetDefaultTemplateRequestSchema, TemplateConflictResponseSchema, TemplateDeleteBlockedResponseSchema, TemplateListQuerySchema, TemplateListResponseSchema, TemplateResponseSchema, TemplateSyncReportSchema, UpdateTemplateRequestSchema, } from "./template-api.schema.js";
|
|
45
|
-
export type { CreateTemplateRequest, CreateTemplateRequestInput, CreateTemplateResponse, DeleteTemplateQuery, SetDefaultTemplateRequest, TemplateConflictResponse, TemplateDeleteBlockedResponse, TemplateListQuery, TemplateListResponse, TemplateResponse, TemplateSyncReport, UpdateTemplateRequest, UpdateTemplateRequestInput, } from "./template-api.schema.js";
|
|
46
|
-
export { AssetDefinitionSchema, AssetPathSchema, AssetVersionSchema, MAX_ASSET_CONTENT_BYTES } from "./asset.schema.js";
|
|
47
|
-
export type { AssetDefinition, AssetVersion } from "./asset.schema.js";
|
|
48
|
-
export { ASSET_TREE_MAX_DEPTH, ASSET_TREE_MAX_ENTRIES, AssetTreeEntrySchema, AssetTreeResponseSchema, AssetContentResponseSchema, WriteAssetContentRequestSchema, CreateAssetFolderRequestSchema, RenameAssetRequestSchema, DeleteAssetQuerySchema, AssetDeleteBlockedResponseSchema, ZipExtractReportSchema, AssetSyncReportSchema, } from "./asset-api.schema.js";
|
|
49
|
-
export type { AssetTreeEntry, AssetTreeResponse, AssetContentResponse, WriteAssetContentRequest, CreateAssetFolderRequest, RenameAssetRequest, DeleteAssetQuery, AssetDeleteBlockedResponse, ZipExtractReport, AssetSyncReport, } from "./asset-api.schema.js";
|
|
46
|
+
export { TEMPLATE_ALIAS_MAX_SEGMENTS, TemplateAliasSchema, TemplateDefinitionSchema, TemplateKindSchema, TemplateVersionMetaSchema, TemplateVersionSchema, TemplateVersionSourceSchema, TrashedTemplateSchema, } from "./template.schema.js";
|
|
47
|
+
export type { TemplateDefinition, TemplateKind, TemplateVersion, TemplateVersionMeta, TemplateVersionSource, TrashedTemplate, } from "./template.schema.js";
|
|
48
|
+
export { CreateTemplateRequestSchema, CreateTemplateResponseSchema, DeleteTemplateQuerySchema, MAX_TEMPLATE_CONTENT_BYTES, SetDefaultTemplateRequestSchema, TemplateConflictResponseSchema, TemplateDeleteBlockedResponseSchema, TemplateListItemSchema, TemplateListQuerySchema, TemplateListResponseSchema, TemplateResponseSchema, RestoreTemplateResponseSchema, TemplateSyncReportSchema, TemplateTrashListQuerySchema, TemplateTrashListResponseSchema, TemplateVersionListResponseSchema, TemplateVersionParamsSchema, TemplateVersionResponseSchema, UpdateTemplateRequestSchema, } from "./template-api.schema.js";
|
|
49
|
+
export type { CreateTemplateRequest, CreateTemplateRequestInput, CreateTemplateResponse, DeleteTemplateQuery, SetDefaultTemplateRequest, TemplateConflictResponse, TemplateDeleteBlockedResponse, TemplateListItem, TemplateListQuery, TemplateListResponse, TemplateResponse, RestoreTemplateResponse, TemplateSyncReport, TemplateTrashListQuery, TemplateTrashListResponse, TemplateVersionListResponse, TemplateVersionParams, TemplateVersionResponse, UpdateTemplateRequest, UpdateTemplateRequestInput, } from "./template-api.schema.js";
|
|
50
|
+
export { AssetDefinitionSchema, AssetPathSchema, AssetVersionMetaSchema, AssetVersionSchema, MAX_ASSET_CONTENT_BYTES, TrashedAssetSchema } from "./asset.schema.js";
|
|
51
|
+
export type { AssetDefinition, AssetVersion, AssetVersionMeta, TrashedAsset } from "./asset.schema.js";
|
|
52
|
+
export { ASSET_TREE_MAX_DEPTH, ASSET_TREE_MAX_ENTRIES, AssetTreeEntrySchema, AssetTreeSkipSchema, AssetTreeResponseSchema, AssetContentResponseSchema, WriteAssetContentRequestSchema, CreateAssetFolderRequestSchema, RenameAssetRequestSchema, DeleteAssetQuerySchema, AssetDeleteBlockedResponseSchema, ZipExtractReportSchema, AssetSyncReportSchema, AssetVersionParamsSchema, AssetVersionListQuerySchema, AssetVersionQuerySchema, AssetVersionListResponseSchema, AssetVersionResponseSchema, MakeAssetVersionCurrentRequestSchema, RestoreAssetRequestSchema, RestoreAssetResponseSchema, AssetTrashListQuerySchema, AssetTrashListResponseSchema, } from "./asset-api.schema.js";
|
|
53
|
+
export type { AssetTreeEntry, AssetTreeSkip, AssetTreeResponse, AssetContentResponse, WriteAssetContentRequest, CreateAssetFolderRequest, RenameAssetRequest, DeleteAssetQuery, AssetDeleteBlockedResponse, ZipExtractReport, AssetSyncReport, AssetVersionParams, AssetVersionListQuery, AssetVersionQuery, AssetVersionListResponse, AssetVersionResponse, MakeAssetVersionCurrentRequest, RestoreAssetRequest, RestoreAssetResponse, AssetTrashListQuery, AssetTrashListResponse, } from "./asset-api.schema.js";
|
|
50
54
|
export { RenderSettingsSchema, UpdateRenderSettingsRequestSchema } from "./render-settings-api.schema.js";
|
|
51
55
|
export type { RenderSettings, UpdateRenderSettingsRequest } from "./render-settings-api.schema.js";
|
|
52
56
|
export { MediaFileSchema, MediaVisibilitySchema, MediaFolderSchema, MediaVersionSchema, MEDIA_PRIVATE_ALIAS, IMAGE_MEDIA_TYPE_ID, FILE_MEDIA_TYPE_ID, IMAGE_FILE_DATA_TYPE_ID, ANY_FILE_DATA_TYPE_ID, } from "./media.schema.js";
|
|
@@ -59,12 +63,12 @@ export { HealthCheckSchema } from "./health.schema.js";
|
|
|
59
63
|
export type { HealthCheck } from "./health.schema.js";
|
|
60
64
|
export { LoginRequestSchema, LoginResponseSchema, RefreshResponseSchema, LogoutResponseSchema, AuthErrorSchema, } from "./auth.schema.js";
|
|
61
65
|
export type { LoginRequest, LoginResponse, RefreshResponse, LogoutResponse, AuthError, } from "./auth.schema.js";
|
|
62
|
-
export { UserSummarySchema, UserListQuerySchema, UserListResponseSchema, CreateUserRequestSchema, CreateUserResponseSchema, UpdateUserRoleRequestSchema, UpdateUserRoleResponseSchema, UserParamsSchema, ADMIN_LOCALES, ThemeModeSchema, UserPreferencesSchema, UpdateUserPreferencesSchema, } from "./user-api.schema.js";
|
|
63
|
-
export type { UserSummary, UserListQuery, UserListResponse, CreateUserRequest, CreateUserResponse, UpdateUserRoleRequest, UpdateUserRoleResponse, UserParams, AdminLocale, UserPreferences, UpdateUserPreferences, } from "./user-api.schema.js";
|
|
66
|
+
export { UserSummarySchema, UserListQuerySchema, UserListResponseSchema, CreateUserRequestSchema, CreateUserResponseSchema, UpdateUserRoleRequestSchema, UpdateUserRoleResponseSchema, DeleteUserResponseSchema, UserParamsSchema, ADMIN_LOCALES, ThemeModeSchema, UserPreferencesSchema, UpdateUserPreferencesSchema, } from "./user-api.schema.js";
|
|
67
|
+
export type { UserSummary, UserListQuery, UserListResponse, CreateUserRequest, CreateUserResponse, UpdateUserRoleRequest, UpdateUserRoleResponse, DeleteUserResponse, UserParams, AdminLocale, UserPreferences, UpdateUserPreferences, } from "./user-api.schema.js";
|
|
64
68
|
export { DEFAULT_DOCS_LANGUAGE, DOCS_LANGUAGE_MAX_LENGTH, DocsLanguageSchema, PLUGIN_LOCALE_MAX_BYTES, PLUGIN_LOCALE_MAX_KEYS, PLUGIN_LOCALE_KEY_MAX_LENGTH, PLUGIN_LOCALE_VALUE_MAX_LENGTH, PluginLanguagesSchema, PluginLocaleFileSchema, compareLocaleFiles, isPluginLocaleKey, localePlaceholders, parsePluginLocaleFile, pluginLocaleFileLanguage, summarizePluginLanguages, } from "./plugin-locales.js";
|
|
65
69
|
export type { LocaleFileComparison, ParsedPluginLocaleFile, PluginLanguages, PluginLocaleFile } from "./plugin-locales.js";
|
|
66
|
-
export { CreateSnapshotRequestSchema, SnapshotResponseSchema, SnapshotListQuerySchema, SnapshotListResponseSchema, RestoreSnapshotResponseSchema, SnapshotParamsSchema, } from "./snapshot-api.schema.js";
|
|
67
|
-
export type { CreateSnapshotRequest, SnapshotResponse, SnapshotListQuery, SnapshotListResponse, RestoreSnapshotResponse, SnapshotParams, } from "./snapshot-api.schema.js";
|
|
70
|
+
export { CreateSnapshotRequestSchema, SnapshotResponseSchema, SnapshotListQuerySchema, SnapshotListResponseSchema, RestoreSnapshotResponseSchema, RestoreSnapshotRequestSchema, RestoreSnapshotConfirmationSchema, SnapshotParamsSchema, } from "./snapshot-api.schema.js";
|
|
71
|
+
export type { CreateSnapshotRequest, SnapshotResponse, SnapshotListQuery, SnapshotListResponse, RestoreSnapshotResponse, RestoreSnapshotRequest, RestoreSnapshotConfirmation, SnapshotParams, } from "./snapshot-api.schema.js";
|
|
68
72
|
export { DataTypeConfigSchema, BUILT_IN_DATA_TYPE_CONFIGS } from "./data-type-config.schema.js";
|
|
69
73
|
export type { DataTypeConfig } from "./data-type-config.schema.js";
|
|
70
74
|
export { CONTENT_TREE_HINT_THRESHOLD, CONTENT_LIST_EDITOR_ID, CONTENT_LIST_PROPERTIES, ContentListColumnSchema, ContentListSettingsSchema, CONTENT_LIST_DEFAULT_SETTINGS, ContentListQuerySchema, ContentListRowSchema, ContentListResponseSchema, CONTENT_LIST_DATA_TYPE_CONFIG, FILE_UPLOAD_EDITOR_ID, FileUploadSettingsSchema, VALUELESS_EDITOR_IDS, } from "./content-list.schema.js";
|
|
@@ -78,26 +82,34 @@ export type { Plugin, PluginListQuery, PluginListResponse } from "./plugin-regis
|
|
|
78
82
|
export { ManagedPluginSchema, PluginTamperKindSchema, ManagedPluginRoleOfferSchema, ManagedPluginListQuerySchema, ManagedPluginListResponseSchema, PluginIdParamsSchema, UninstallPluginBodySchema, UninstallConfirmationRequiredSchema, BundleUninstallConfirmationRequiredSchema, UninstallBlockedByDocumentTypesSchema, UninstallSucceededSchema, BundleUninstallSucceededSchema, LicenseRecheckResponseSchema, LicenseVerdictEnvelopeSchema, EntitlementSchema, EntitlementResponseSchema, EntitlementRefusalSchema, MarketplaceStatusResponseSchema, SnapshotGroupSchema, SnapshotGroupListQuerySchema, SnapshotGroupListResponseSchema, RestorePlanEntrySchema, RestoreConfirmationRequiredSchema, RestoreSucceededSchema, RestoreBodySchema, PackageRefusedSchema, PluginUploadResponseSchema, PluginUploadQuerySchema, TrustDowngradeConfirmationSchema, } from "./plugin-management-api.schema.js";
|
|
79
83
|
export { SampleContentOutcomeSchema } from "./sample-content-outcome.schema.js";
|
|
80
84
|
export type { SampleContentOutcome } from "./sample-content-outcome.schema.js";
|
|
85
|
+
export { INSTALL_WARNINGS_MAX, INSTALL_WARNING_MAX_LENGTH, InstallWarningsSchema } from "./install-warnings.schema.js";
|
|
81
86
|
export type { ManagedPlugin, ManagedPluginListResponse, ManagedPluginListQuery, UninstallPluginBody, SnapshotGroupListQuery, RestoreBody, PluginTamperKind, ManagedPluginRoleOffer, UninstallBlockedByDocumentTypes, UninstallSucceeded, BundleUninstallSucceeded, LicenseRecheckResponse, LicenseVerdictEnvelopeWire, EntitlementWire, EntitlementResponse, EntitlementRefusal, MarketplaceStatusResponse, SnapshotGroup, SnapshotGroupListResponse, RestorePlanEntry, RestoreConfirmationRequired, RestoreSucceeded, PackageRefused, PluginUploadResponse, PluginUploadQuery, TrustDowngradeConfirmation, } from "./plugin-management-api.schema.js";
|
|
87
|
+
export { SANDBOX_ATTACH_OUTCOMES, SandboxAttachRequestSchema, SandboxAttachResponseSchema, SandboxLocalPluginInstallRequestSchema, SandboxLocalPluginSchema, } from "./sandbox-attach.schema.js";
|
|
88
|
+
export type { SandboxAttachRequest, SandboxAttachResponse, SandboxLocalPlugin, SandboxLocalPluginInstallRequest, } from "./sandbox-attach.schema.js";
|
|
82
89
|
export { PublicContentItemSchema, PublicContentItemQuerySchema, PublicContentByPathQuerySchema, PublicContentByAddressQuerySchema, PublicContentByAddressResponseSchema, PublicSiteSchema, PublicSitesQuerySchema, PublicSitesResponseSchema, PublicContentListQuerySchema, PublicContentNodeSummarySchema, PublicContentListResponseSchema, PublicContentSearchQuerySchema, PublicContentExtensionsSchema, PublicContentFormatResponseSchema, PublicMediaFileSchema, PublicMediaListQuerySchema, PublicMediaListResponseSchema, PublicFieldDefinitionSchema, PublicDocumentTypeSchema, PublicDocumentTypeListQuerySchema, PublicDocumentTypeListResponseSchema, PublicTemplateSchema, PublicTemplateListQuerySchema, PublicTemplateListResponseSchema, PublicContentWriteResponseSchema, PublicCreateContentRequestSchema, PublicUpdateContentRequestSchema, PublicContentDeleteResponseSchema, PublicContentDeleteQuerySchema, PublicContentDeleteConfirmationSchema, PublicMediaUploadFieldsSchema, PublicMediaUploadBodySchema, PublicMediaUpdateRequestSchema, PublicMediaWriteResponseSchema, PublicMediaDeleteResponseSchema, } from "./public-api.schema.js";
|
|
83
90
|
export type { PublicContentItem, PublicContentItemQuery, PublicContentByPathQuery, PublicContentByAddressQuery, PublicContentByAddressResponse, PublicSite, PublicSitesQuery, PublicSitesResponse, PublicContentListQuery, PublicContentNodeSummary, PublicContentListResponse, PublicContentSearchQuery, PublicContentFormatResponse, PublicMediaFile, PublicMediaListQuery, PublicMediaListResponse, PublicFieldDefinition, PublicDocumentType, PublicDocumentTypeListQuery, PublicDocumentTypeListResponse, PublicTemplate, PublicTemplateListQuery, PublicTemplateListResponse, PublicContentWriteResponse, PublicCreateContentRequest, PublicCreateContentRequestInput, PublicUpdateContentRequest, PublicContentDeleteResponse, PublicContentDeleteQuery, PublicContentDeleteConfirmation, PublicMediaUploadFields, PublicMediaUploadBody, PublicMediaUpdateRequest, PublicMediaWriteResponse, PublicMediaDeleteResponse, } from "./public-api.schema.js";
|
|
84
91
|
export { MarketplaceCapabilitySchema, MarketplaceListingVersionSchema, MarketplaceListingSchema, MarketplaceStarterSchema, MarketplaceDocumentTypeSummarySchema, MarketplaceBundleMemberSchema, MarketplaceListingDetailVersionSchema, MarketplaceListingDetailSchema, MarketplaceListQuerySchema, MarketplaceListResponseSchema, MARKETPLACE_VERSIONS_MAX_IDS, MARKETPLACE_VERSIONS_IDS_MAX_LENGTH, MarketplaceLatestVersionSchema, MarketplaceVersionsResponseSchema, parseMarketplaceVersionsIds, MarketplacePluginIdParamsSchema, MarketplaceInstallBodySchema, MarketplaceInstallMemberSchema, MarketplaceInstallResponseSchema, MarketplaceInstallConflictSchema, MarketplacePublicBaseSchema, } from "./marketplace-listing-api.schema.js";
|
|
85
92
|
export type { MarketplaceCapability, MarketplaceListing, MarketplaceStarter, MarketplaceDocumentTypeSummary, MarketplaceBundleMember, MarketplaceListingDetailVersion, MarketplaceListingDetail, MarketplaceInstallMember, MarketplaceListQuery, MarketplaceInstallBody, MarketplaceInstallResponse, MarketplaceInstallConflict, MarketplacePublicBase, MarketplaceListResponse, MarketplaceLatestVersion, MarketplaceVersionsResponse, ParsedMarketplaceVersionsIds, } from "./marketplace-listing-api.schema.js";
|
|
86
93
|
export { ApiKeySummarySchema, ApiKeyListQuerySchema, ApiKeyListResponseSchema, CreateApiKeyRequestSchema, CreateApiKeyResponseSchema, ApiKeyRefusalSchema, ApiKeyCreateForbiddenSchema, RevokeApiKeyResponseSchema, API_KEY_PRESETS, API_KEY_MAX_ACTIONS, ApiKeyParamsSchema, } from "./api-key-api.schema.js";
|
|
87
94
|
export type { ApiKeyPresetId, ApiKeySummary, ApiKeyListQuery, ApiKeyListResponse, CreateApiKeyRequest, CreateApiKeyResponse, ApiKeyRefusal, RevokeApiKeyResponse, ApiKeyParams, } from "./api-key-api.schema.js";
|
|
95
|
+
export { WhoamiResponseSchema, type WhoamiResponse } from "./whoami-api.schema.js";
|
|
96
|
+
export { AUDIT_IP_MAX, AUDIT_METHOD_MAX, AUDIT_PERIOD_PATTERN, AUDIT_REQUEST_ID_MAX, AUDIT_RETENTION_MAX_MONTHS, AUDIT_SUMMARY_MAX_BYTES, AUDIT_TEXT_MAX, AuditActorKindSchema, AuditEntrySchema, AuditExportQuerySchema, AuditListQuerySchema, AuditListResponseSchema, AuditOutcomeSchema, AuditPruneBusySchema, AuditPruneResponseSchema, AuditRetentionReasonSchema, AuditRetentionResponseSchema, AuditRetentionSchema, AuditSummaryValueSchema, } from "./audit-api.schema.js";
|
|
97
|
+
export type { AuditActorKind, AuditEntry, AuditExportQuery, AuditListQuery, AuditListResponse, AuditOutcome, AuditPruneBusy, AuditPruneResponse, AuditRetention, AuditRetentionReason, AuditRetentionResponse, AuditSummaryValue, } from "./audit-api.schema.js";
|
|
88
98
|
export { ThemeListItemSchema, ThemeListResponseSchema } from "./theme-api.schema.js";
|
|
89
99
|
export type { ThemeListItem, ThemeListResponse } from "./theme-api.schema.js";
|
|
90
|
-
export { ContentTrashBodySchema, ContentTrashConfirmationSchema, ContentTrashResultSchema, ContentRestoreResultSchema, } from "./content-trash-api.schema.js";
|
|
91
|
-
export type { ContentTrashBody, ContentTrashConfirmation, ContentTrashResult, ContentRestoreResult, } from "./content-trash-api.schema.js";
|
|
100
|
+
export { ContentTrashBodySchema, ContentTrashConfirmationSchema, ContentTrashResultSchema, ContentRestoreResultSchema, ContentRestoreRequestSchema, } from "./content-trash-api.schema.js";
|
|
101
|
+
export type { ContentTrashBody, ContentTrashConfirmation, ContentTrashResult, ContentRestoreResult, ContentRestoreRequest, } from "./content-trash-api.schema.js";
|
|
92
102
|
export { ContentTrashListQuerySchema, TrashedSubtreeSchema, ContentTrashListResponseSchema, ContentRestoreBlockedSchema, ContentRestoreConflictSchema, ContentRestoreLimitSchema, ContentRestoreNameTakenSchema, ContentRestoreOrphanSchema, ContentRestorePathOccupiedSchema, } from "./content-trash.schema.js";
|
|
93
103
|
export type { ContentTrashListQuery, ContentTrashListResponse, TrashedSubtreeDto, ContentRestoreBlocked, ContentRestoreLimit, ContentRestoreNameTaken, } from "./content-trash.schema.js";
|
|
94
104
|
export { TextStyleEntrySchema, TextStylesResponseSchema, BlockParamTypeSchema, BlockParamSchema, BlockListingSchema, BlockListResponseSchema, RenderBlockRequestSchema, RenderBlockResponseSchema, } from "./render-editing.js";
|
|
95
105
|
export type { TextStyleEntry, TextStylesResponse, BlockParamType, BlockParam, BlockListing, BlockListResponse, RenderBlockRequest, RenderBlockResponse, } from "./render-editing.js";
|
|
106
|
+
export { PLUGIN_LABEL_MAX, PluginLabelSchema, PluginLabelStringSchema, SlotLabelSchema, resolveLabel } from "./plugin-labels.js";
|
|
107
|
+
export type { PluginLabel, SlotLabelMap } from "./plugin-labels.js";
|
|
96
108
|
export { PluginActionDeclarationSchema, PluginRoleOfferSchema, OfferedRoleParamsSchema } from "./plugin-actions.schema.js";
|
|
97
109
|
export type { PluginActionDeclaration, PluginRoleOffer, OfferedRoleParams } from "./plugin-actions.schema.js";
|
|
98
110
|
export { ACTION_GATED_CONTRIBUTION_KEYS, OFFERABLE_BUILT_IN_ACTIONS, checkActionDeclarations } from "./plugin-manifest-actions.js";
|
|
99
111
|
export type { ActionDeclarationInput, ActionDeclarationIssue } from "./plugin-manifest-actions.js";
|
|
100
|
-
export { API_ROUTE_METHODS, API_ROUTE_PATH_MAX, API_ROUTE_RESPONSE_STATUSES_MAX, API_ROUTES_MAX, isApiRouteResponseStatus, apiRoutePathProblem, checkApiRouteActions, checkApiRouteDeclarations } from "./plugin-manifest-api-routes.js";
|
|
112
|
+
export { API_ROUTE_METHODS, API_ROUTE_PATH_MAX, API_ROUTE_RESPONSE_STATUSES_MAX, API_ROUTES_MAX, isApiRouteResponseStatus, apiRoutePathProblem, apiRoutePathParams, checkApiRouteActions, checkApiRouteDeclarations, checkApiRouteTiers, isApiRouteMethod } from "./plugin-manifest-api-routes.js";
|
|
101
113
|
export type { ApiRouteDeclarationIssue } from "./plugin-manifest-api-routes.js";
|
|
102
114
|
export { PLUGIN_DOC_ROLES, PluginDocsPageSchema, MAX_DOC_PAGES, MAX_DOC_PAGE_BYTES, RESERVED_DOC_SLUGS, docSlug, effectiveDocsPages, checkDocsDeclaration, docsFactsFrom, requiredDocRoles, ReferenceLabelMapSchema, PluginReferenceSchema, emptyPluginReference, REFERENCE_PAGE_SLUGS, REFERENCE_PAGE_TABLES, isReferencePageSlug, referencePageHasContent, referencePageSlugs, } from "./plugin-docs.js";
|
|
103
115
|
export type { PluginDocRole, PluginDocsPage, DocsFacts, PluginReference, ReferencePageSlug } from "./plugin-docs.js";
|
|
@@ -107,7 +119,11 @@ export { PluginDocsPageRefSchema, PluginDocsIndexItemSchema, PluginDocsIndexResp
|
|
|
107
119
|
export type { PluginDocsPageRef, PluginDocsIndexItem, PluginDocsIndexResponse, PluginDocsPageParams, PluginDocsPluginParams, PluginDocsPageResponse, PluginDocsReferenceResponse, PluginReferenceSource, PluginDocsSearchItem, PluginDocsSearchIndexResponse, MarketplaceDocsSearchQuery, MarketplaceDocsSearchResult, MarketplaceDocsSearchResponse, } from "./plugin-docs-api.schema.js";
|
|
108
120
|
export { INSTALL_CONSENT_IDS, INSTALL_DESCRIPTION_MAX_LENGTH, INSTALL_LABEL_KEY_MAX_LENGTH, INSTALL_LABEL_MAX_LANGUAGES, INSTALL_LABEL_MAX_LENGTH, INSTALL_MAX_CHOICES_PER_OPTION, INSTALL_MAX_OPTION_ANSWERS, INSTALL_MAX_OPTIONS_PER_STEP, INSTALL_MAX_ROLE_ANSWERS, INSTALL_MAX_STEPS, INSTALL_OPTION_KINDS, InstallAnswerValueSchema, InstallAnswersManifestSchema, InstallAnswersSchema, InstallDescriptionSchema, InstallIdSchema, InstallInterfaceSchema, InstallInterfaceWireSchema, InstallLabelSchema, InstallOptionSchema, InstallStepSchema, PluginInstallDeclarationSchema, ResolvedInstallAnswersSchema, checkInstallDeclaration, installInterfaceFor, installOptionNeedsAnswer, parseInstallAnswersManifest, resolveInstallAnswers, resolveUpdateAnswers, stepsNotCoveredBy, } from "./plugin-install.js";
|
|
109
121
|
export type { InstallAnswerIssue, InstallAnswerValue, InstallAnswers, InstallAnswersManifest, InstallAnswersResult, InstallChoice, InstallConsentId, InstallDeclarationIssue, InstallDescription, InstallInterface, InstallInterfaceManifest, InstallInterfaceWire, InstallLabel, InstallOption, InstallOptionKind, InstallStep, ParsedInstallAnswersManifest, PluginInstallDeclaration, ResolvedInstallAnswers, ShippedInstallFacts, } from "./plugin-install.js";
|
|
110
|
-
export { SAMPLE_CONTENT_MEDIA_FILE_PATTERN, SampleContentFileSchema, parseSampleContentFile } from "./sample-content.schema.js";
|
|
122
|
+
export { SAMPLE_CONTENT_MAX_MEDIA, SAMPLE_CONTENT_MAX_NODES, SAMPLE_CONTENT_MEDIA_FILE_PATTERN, SampleContentFileSchema, parseSampleContentFile, } from "./sample-content.schema.js";
|
|
111
123
|
export type { ParsedSampleContentFile, SampleContentFile } from "./sample-content.schema.js";
|
|
112
124
|
export { INSTALL_RECORD_SUMMARY_TITLES, INSTALL_ROLE_OUTCOMES, InstallAnswersRefusedSchema, InstallRoleOutcomeSchema, PluginInstallCreatedSchema, PluginInstallRecordSchema, PluginInstallRecordSummarySchema, emptyInstallCreated, readInstallRecord, } from "./plugin-install-record.schema.js";
|
|
113
125
|
export type { InstallAnswersRefused, InstallRoleOutcome, PluginInstallRecord, PluginInstallRecordSummary } from "./plugin-install-record.schema.js";
|
|
126
|
+
export { listIssues } from "./issue-list.js";
|
|
127
|
+
export type { ListedIssue } from "./issue-list.js";
|
|
128
|
+
export { ASSET_PATH_MAX, FILE_NAME_MAX, PACKAGE_PATH_MAX, MAX_TEMPLATE_PAYLOAD_ENTRIES, PluginAssetPathSchema, PluginTemplateAliasSchema, PluginTemplateEntrySchema, PluginTemplateFileSchema, PluginTemplatePayloadSchema, REGISTERED_ASSET_TEXT_EXTENSIONS, RESERVED_ASSET_ROOTS, TEMPLATE_ALIAS_MAX, TEMPLATE_FILE_MAX, checkTemplateAndAssetDeclarations, hasRegisteredAssetTextExtension, } from "./plugin-template-payload.js";
|
|
129
|
+
export type { DeclarationIssue, PluginTemplateEntry } from "./plugin-template-payload.js";
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
export { ActionStringSchema, ACTION_SEGMENT_MIN, ACTION_SEGMENT_MAX, ACTION_MAX_LENGTH, isPluginActionFor } from "./action.schema.js";
|
|
2
2
|
export { CORE_ACTIONS, CORE_ACTION_STRINGS, coreKeyNote, isCoreAction } from "./core-actions.js";
|
|
3
3
|
export * from "./management-multipart.schema.js";
|
|
4
|
-
export {
|
|
4
|
+
export { TRASH_CURSOR_MAX, TrashCursorSchema, isTrashCursor } from "./trash-cursor.schema.js";
|
|
5
|
+
export { ROLE_ID_PATTERN, SEEDED_ROLE_IDS, RoleIdSchema, ActionSummarySchema, ActionListResponseSchema, RoleSchema, RoleListQuerySchema, RoleListResponseSchema, CreateRoleRequestSchema, UpdateRoleRequestSchema, RoleResponseSchema, DeleteRoleResponseSchema, RoleEscalationRefusalSchema, RoleForbiddenSchema, RoleParamsSchema, } from "./role.schema.js";
|
|
5
6
|
export { RESTRICTABLE_ACTIONS, isRestrictableAction, MAX_RESTRICTED_NODES, MAX_RESTRICTED_NODES_WITH_TRASH, MAX_GRANTS_PER_ENTRY, NODE_ACCESS_SUBJECT_ID_MAX, NodeAccessModeSchema, NodeAccessSubjectKindSchema, NodeAccessGrantSchema, NodeAccessEntrySchema, NodeAccessReasonSchema, NodeAccessDecisionSchema, NODE_ACCESS_REFUSED_MESSAGE, NodeAccessFlagsSchema, NodeAccessRefusalSchema, NodeAccessRefusalDecisionSchema, DecidingEntryGrantSchema, DecidingEntrySchema, NodeAccessDenialSchema, MoveImpactQuerySchema, MoveImpactResponseSchema, ClearRestrictionsResponseSchema, ContentForbiddenSchema, ALL_NODE_ACCESS, nodeAccessFlagKey, PermissionGrantViewSchema, NodePermissionRowSchema, NodePermissionsResponseSchema, NodePermissionInputSchema, SaveNodePermissionsRequestSchema, NodePermissionsRefusalSchema, PermissionSubjectSchema, PermissionSubjectsResponseSchema, PermissionSubjectsQuerySchema, PERMISSION_SUBJECT_QUERY_MAX, PERMISSION_SUBJECT_CURSOR_MAX, ExplainSubjectQuerySchema, AccessTraceViewSchema, ExplainResponseSchema, ExplainOperationQuerySchema, ExplainOperationResponseSchema, OPENED_BELOW_MAX, WhoCanResponseSchema, } from "./node-access.schema.js";
|
|
6
7
|
export { ContentNodeSchema, NodeCultureSchema } from "./content.schema.js";
|
|
7
8
|
export { RESERVED_ROOT_SLUGS, isReservedRootSlug } from "./reserved-slugs.js";
|
|
8
9
|
export { CONTENT_NAME_KEY, canonicalPath, firstSegment, joinContentPath, NEXT_FREE_SLUG_ATTEMPTS, nextAvailableName, nextFreeSlug, publicPath, slugify, } from "./content-path.js";
|
|
9
|
-
export { DefaultSiteSchema,
|
|
10
|
+
export { DefaultSiteSchema, MAX_HOSTNAMES_PER_SITE, SetDefaultSiteRequestSchema, SetSiteHostnamesRequestSchema, SiteDomainSchema, SiteHostnamesSchema, SiteListQuerySchema, SiteListResponseSchema, SiteListRowSchema, SiteSummarySchema, SitesSettingsResponseSchema, SitesSettingsSchema, addressFromSitesRecord, formatSiteDomain, parseSiteDomain, siteAddress, siteDomainAuthority, siteDomainOrigin, } from "./sites.schema.js";
|
|
10
11
|
export { NAV_ORDER_MAX, NavIdSchema, NavSettingsSchema } from "./nav.schema.js";
|
|
11
12
|
export { LicensingSettingsSchema } from "./licensing.schema.js";
|
|
12
13
|
export { MANIFEST_ID_SEGMENT_MAX, PLUGIN_ID_REGEX, SLOT_ID_MAX, SLOT_ID_REGEX, isPluginManifestId } from "./plugin-id-rules.js";
|
|
14
|
+
export { PLUGIN_AUTHOR_MAX, PLUGIN_CMS_VERSION_MAX, PLUGIN_DESCRIPTION_MAX, PLUGIN_ID_MAX, PLUGIN_ID_MESSAGE, PLUGIN_ID_SEGMENTS_MESSAGE, PLUGIN_LICENSE_MAX, PLUGIN_NAME_MAX, PLUGIN_VERSION_MAX, PLUGIN_VERSION_MESSAGE, PluginAuthorSchema, PluginCmsVersionSchema, PluginDescriptionSchema, PluginLicenseSchema, PluginManifestIdSchema, PluginNameSchema, PluginVersionSchema, checkPluginListingFields, isPluginVersion, pluginManifestFields, } from "./plugin-manifest-fields.js";
|
|
15
|
+
export { API_ROUTE_ACCESS_TIERS, DATABASE_DIALECTS, PLUGIN_TYPES, STORAGE_TYPES, TEMPLATE_KINDS, TIER1_DIALECTS, } from "./plugin-vocabulary.js";
|
|
13
16
|
export { cultureDirection } from "./culture-direction.js";
|
|
14
17
|
export { ContentVersionSchema, flattenForCulture } from "./content-version.schema.js";
|
|
15
18
|
export { mediaReferencesIn } from "./media-reference.js";
|
|
@@ -26,19 +29,19 @@ export { BundledTemplateSchema, SetupStatusResponseSchema, SetupStarterSelection
|
|
|
26
29
|
export { CreateContentRequestSchema, ContentItemQuerySchema, ContentItemResponseSchema, ContentByAddressQuerySchema, ContentByAddressResponseSchema, ContentByPathQuerySchema, ContentByPathResponseSchema, SaveContentRequestSchema, SaveContentResponseSchema, LatestVersionQuerySchema, LatestVersionResponseSchema, VersionQuerySchema, ContentVersionMetaSchema, VersionListQuerySchema, VersionListResponseSchema, PublishContentRequestSchema, PublishContentResponseSchema, PublishAllRequestSchema, PublishAllResultSchema, PublishAllResponseSchema, PreviewTokenResponseSchema, ContentUrlImpactResponseSchema, ContentChildrenQuerySchema, ContentChildrenResponseSchema, ContentNodeWithNameSchema, ContentPathConflictSchema, CopyContentRequestSchema, CultureSchema, CultureSettingsSchema, MoveContentRequestSchema, MoveContentResponseSchema, ReorderNodesRequestSchema, ReorderNodesResponseSchema, FieldValidationFailureSchema, ContentValidationErrorSchema, TranslationIncompleteResponseSchema, } from "./content-api.schema.js";
|
|
27
30
|
export { FieldValidationSchema, FieldDefinitionSchema, TabDefinitionSchema, TreeRulesSchema, DocumentTypeDefinitionSchema, } from "./document-type.schema.js";
|
|
28
31
|
export { CreateDocumentTypeRequestSchema, UpdateDocumentTypeRequestSchema, CreateDocumentTypeResponseSchema, DocumentTypeListQuerySchema, DocumentTypeListResponseSchema, DeleteDocumentTypeResponseSchema, } from "./document-type-api.schema.js";
|
|
29
|
-
export { TemplateAliasSchema, TemplateDefinitionSchema, TemplateKindSchema, TemplateVersionSchema, TemplateVersionSourceSchema, } from "./template.schema.js";
|
|
30
|
-
export { CreateTemplateRequestSchema, CreateTemplateResponseSchema, DeleteTemplateQuerySchema, MAX_TEMPLATE_CONTENT_BYTES, SetDefaultTemplateRequestSchema, TemplateConflictResponseSchema, TemplateDeleteBlockedResponseSchema, TemplateListQuerySchema, TemplateListResponseSchema, TemplateResponseSchema, TemplateSyncReportSchema, UpdateTemplateRequestSchema, } from "./template-api.schema.js";
|
|
31
|
-
export { AssetDefinitionSchema, AssetPathSchema, AssetVersionSchema, MAX_ASSET_CONTENT_BYTES } from "./asset.schema.js";
|
|
32
|
-
export { ASSET_TREE_MAX_DEPTH, ASSET_TREE_MAX_ENTRIES, AssetTreeEntrySchema, AssetTreeResponseSchema, AssetContentResponseSchema, WriteAssetContentRequestSchema, CreateAssetFolderRequestSchema, RenameAssetRequestSchema, DeleteAssetQuerySchema, AssetDeleteBlockedResponseSchema, ZipExtractReportSchema, AssetSyncReportSchema, } from "./asset-api.schema.js";
|
|
32
|
+
export { TEMPLATE_ALIAS_MAX_SEGMENTS, TemplateAliasSchema, TemplateDefinitionSchema, TemplateKindSchema, TemplateVersionMetaSchema, TemplateVersionSchema, TemplateVersionSourceSchema, TrashedTemplateSchema, } from "./template.schema.js";
|
|
33
|
+
export { CreateTemplateRequestSchema, CreateTemplateResponseSchema, DeleteTemplateQuerySchema, MAX_TEMPLATE_CONTENT_BYTES, SetDefaultTemplateRequestSchema, TemplateConflictResponseSchema, TemplateDeleteBlockedResponseSchema, TemplateListItemSchema, TemplateListQuerySchema, TemplateListResponseSchema, TemplateResponseSchema, RestoreTemplateResponseSchema, TemplateSyncReportSchema, TemplateTrashListQuerySchema, TemplateTrashListResponseSchema, TemplateVersionListResponseSchema, TemplateVersionParamsSchema, TemplateVersionResponseSchema, UpdateTemplateRequestSchema, } from "./template-api.schema.js";
|
|
34
|
+
export { AssetDefinitionSchema, AssetPathSchema, AssetVersionMetaSchema, AssetVersionSchema, MAX_ASSET_CONTENT_BYTES, TrashedAssetSchema } from "./asset.schema.js";
|
|
35
|
+
export { ASSET_TREE_MAX_DEPTH, ASSET_TREE_MAX_ENTRIES, AssetTreeEntrySchema, AssetTreeSkipSchema, AssetTreeResponseSchema, AssetContentResponseSchema, WriteAssetContentRequestSchema, CreateAssetFolderRequestSchema, RenameAssetRequestSchema, DeleteAssetQuerySchema, AssetDeleteBlockedResponseSchema, ZipExtractReportSchema, AssetSyncReportSchema, AssetVersionParamsSchema, AssetVersionListQuerySchema, AssetVersionQuerySchema, AssetVersionListResponseSchema, AssetVersionResponseSchema, MakeAssetVersionCurrentRequestSchema, RestoreAssetRequestSchema, RestoreAssetResponseSchema, AssetTrashListQuerySchema, AssetTrashListResponseSchema, } from "./asset-api.schema.js";
|
|
33
36
|
export { RenderSettingsSchema, UpdateRenderSettingsRequestSchema } from "./render-settings-api.schema.js";
|
|
34
37
|
export { MediaFileSchema, MediaVisibilitySchema, MediaFolderSchema, MediaVersionSchema, MEDIA_PRIVATE_ALIAS, IMAGE_MEDIA_TYPE_ID, FILE_MEDIA_TYPE_ID, IMAGE_FILE_DATA_TYPE_ID, ANY_FILE_DATA_TYPE_ID, } from "./media.schema.js";
|
|
35
38
|
export { MediaFileResponseSchema, MediaDeleteResponseSchema, MediaLinkResponseSchema, MediaListQuerySchema, MediaListResponseSchema, MediaVersionListResponseSchema, MediaRenditionListResponseSchema, UpdateMediaRequestSchema, CreateMediaFolderRequestSchema, UpdateMediaFolderRequestSchema, MediaFolderListResponseSchema, MEDIA_NESTED_LIST_PAGE_MAX, MediaNestedListQuerySchema, MediaTrashListQuerySchema, MediaTrashListResponseSchema, MediaEmptyTrashResponseSchema, MediaReadQuerySchema, } from "./media-api.schema.js";
|
|
36
39
|
export { CROP_EDITOR_ID, THUMBNAIL_EDITOR_ID, CROP_DATA_TYPE_ID, THUMBNAIL_DATA_TYPE_ID, CropRectSchema, CropSettingsSchema, ThumbnailSettingsSchema, ImageSettingsSchema, MediaRenditionSchema, renditionName, renditionShape, renditionFilename, } from "./media-rendition.schema.js";
|
|
37
40
|
export { HealthCheckSchema } from "./health.schema.js";
|
|
38
41
|
export { LoginRequestSchema, LoginResponseSchema, RefreshResponseSchema, LogoutResponseSchema, AuthErrorSchema, } from "./auth.schema.js";
|
|
39
|
-
export { UserSummarySchema, UserListQuerySchema, UserListResponseSchema, CreateUserRequestSchema, CreateUserResponseSchema, UpdateUserRoleRequestSchema, UpdateUserRoleResponseSchema, UserParamsSchema, ADMIN_LOCALES, ThemeModeSchema, UserPreferencesSchema, UpdateUserPreferencesSchema, } from "./user-api.schema.js";
|
|
42
|
+
export { UserSummarySchema, UserListQuerySchema, UserListResponseSchema, CreateUserRequestSchema, CreateUserResponseSchema, UpdateUserRoleRequestSchema, UpdateUserRoleResponseSchema, DeleteUserResponseSchema, UserParamsSchema, ADMIN_LOCALES, ThemeModeSchema, UserPreferencesSchema, UpdateUserPreferencesSchema, } from "./user-api.schema.js";
|
|
40
43
|
export { DEFAULT_DOCS_LANGUAGE, DOCS_LANGUAGE_MAX_LENGTH, DocsLanguageSchema, PLUGIN_LOCALE_MAX_BYTES, PLUGIN_LOCALE_MAX_KEYS, PLUGIN_LOCALE_KEY_MAX_LENGTH, PLUGIN_LOCALE_VALUE_MAX_LENGTH, PluginLanguagesSchema, PluginLocaleFileSchema, compareLocaleFiles, isPluginLocaleKey, localePlaceholders, parsePluginLocaleFile, pluginLocaleFileLanguage, summarizePluginLanguages, } from "./plugin-locales.js";
|
|
41
|
-
export { CreateSnapshotRequestSchema, SnapshotResponseSchema, SnapshotListQuerySchema, SnapshotListResponseSchema, RestoreSnapshotResponseSchema, SnapshotParamsSchema, } from "./snapshot-api.schema.js";
|
|
44
|
+
export { CreateSnapshotRequestSchema, SnapshotResponseSchema, SnapshotListQuerySchema, SnapshotListResponseSchema, RestoreSnapshotResponseSchema, RestoreSnapshotRequestSchema, RestoreSnapshotConfirmationSchema, SnapshotParamsSchema, } from "./snapshot-api.schema.js";
|
|
42
45
|
export { DataTypeConfigSchema, BUILT_IN_DATA_TYPE_CONFIGS } from "./data-type-config.schema.js";
|
|
43
46
|
export { CONTENT_TREE_HINT_THRESHOLD, CONTENT_LIST_EDITOR_ID, CONTENT_LIST_PROPERTIES, ContentListColumnSchema, ContentListSettingsSchema, CONTENT_LIST_DEFAULT_SETTINGS, ContentListQuerySchema, ContentListRowSchema, ContentListResponseSchema, CONTENT_LIST_DATA_TYPE_CONFIG, FILE_UPLOAD_EDITOR_ID, FileUploadSettingsSchema, VALUELESS_EDITOR_IDS, } from "./content-list.schema.js";
|
|
44
47
|
export { CreateDataTypeRequestSchema, UpdateDataTypeRequestSchema, DataTypeResponseSchema, DataTypeListQuerySchema, DataTypeListResponseSchema, } from "./data-type-api.schema.js";
|
|
@@ -46,19 +49,26 @@ export { PluginStorageParamsSchema, SetPluginFieldValueRequestSchema, PluginFiel
|
|
|
46
49
|
export { PluginSchema, PluginListQuerySchema, PluginListResponseSchema } from "./plugin-registry-api.schema.js";
|
|
47
50
|
export { ManagedPluginSchema, PluginTamperKindSchema, ManagedPluginRoleOfferSchema, ManagedPluginListQuerySchema, ManagedPluginListResponseSchema, PluginIdParamsSchema, UninstallPluginBodySchema, UninstallConfirmationRequiredSchema, BundleUninstallConfirmationRequiredSchema, UninstallBlockedByDocumentTypesSchema, UninstallSucceededSchema, BundleUninstallSucceededSchema, LicenseRecheckResponseSchema, LicenseVerdictEnvelopeSchema, EntitlementSchema, EntitlementResponseSchema, EntitlementRefusalSchema, MarketplaceStatusResponseSchema, SnapshotGroupSchema, SnapshotGroupListQuerySchema, SnapshotGroupListResponseSchema, RestorePlanEntrySchema, RestoreConfirmationRequiredSchema, RestoreSucceededSchema, RestoreBodySchema, PackageRefusedSchema, PluginUploadResponseSchema, PluginUploadQuerySchema, TrustDowngradeConfirmationSchema, } from "./plugin-management-api.schema.js";
|
|
48
51
|
export { SampleContentOutcomeSchema } from "./sample-content-outcome.schema.js";
|
|
52
|
+
export { INSTALL_WARNINGS_MAX, INSTALL_WARNING_MAX_LENGTH, InstallWarningsSchema } from "./install-warnings.schema.js";
|
|
53
|
+
export { SANDBOX_ATTACH_OUTCOMES, SandboxAttachRequestSchema, SandboxAttachResponseSchema, SandboxLocalPluginInstallRequestSchema, SandboxLocalPluginSchema, } from "./sandbox-attach.schema.js";
|
|
49
54
|
export { PublicContentItemSchema, PublicContentItemQuerySchema, PublicContentByPathQuerySchema, PublicContentByAddressQuerySchema, PublicContentByAddressResponseSchema, PublicSiteSchema, PublicSitesQuerySchema, PublicSitesResponseSchema, PublicContentListQuerySchema, PublicContentNodeSummarySchema, PublicContentListResponseSchema, PublicContentSearchQuerySchema, PublicContentExtensionsSchema, PublicContentFormatResponseSchema, PublicMediaFileSchema, PublicMediaListQuerySchema, PublicMediaListResponseSchema, PublicFieldDefinitionSchema, PublicDocumentTypeSchema, PublicDocumentTypeListQuerySchema, PublicDocumentTypeListResponseSchema, PublicTemplateSchema, PublicTemplateListQuerySchema, PublicTemplateListResponseSchema, PublicContentWriteResponseSchema, PublicCreateContentRequestSchema, PublicUpdateContentRequestSchema, PublicContentDeleteResponseSchema, PublicContentDeleteQuerySchema, PublicContentDeleteConfirmationSchema, PublicMediaUploadFieldsSchema, PublicMediaUploadBodySchema, PublicMediaUpdateRequestSchema, PublicMediaWriteResponseSchema, PublicMediaDeleteResponseSchema, } from "./public-api.schema.js";
|
|
50
55
|
export { MarketplaceCapabilitySchema, MarketplaceListingVersionSchema, MarketplaceListingSchema, MarketplaceStarterSchema, MarketplaceDocumentTypeSummarySchema, MarketplaceBundleMemberSchema, MarketplaceListingDetailVersionSchema, MarketplaceListingDetailSchema, MarketplaceListQuerySchema, MarketplaceListResponseSchema, MARKETPLACE_VERSIONS_MAX_IDS, MARKETPLACE_VERSIONS_IDS_MAX_LENGTH, MarketplaceLatestVersionSchema, MarketplaceVersionsResponseSchema, parseMarketplaceVersionsIds, MarketplacePluginIdParamsSchema, MarketplaceInstallBodySchema, MarketplaceInstallMemberSchema, MarketplaceInstallResponseSchema, MarketplaceInstallConflictSchema, MarketplacePublicBaseSchema, } from "./marketplace-listing-api.schema.js";
|
|
51
56
|
export { ApiKeySummarySchema, ApiKeyListQuerySchema, ApiKeyListResponseSchema, CreateApiKeyRequestSchema, CreateApiKeyResponseSchema, ApiKeyRefusalSchema, ApiKeyCreateForbiddenSchema, RevokeApiKeyResponseSchema, API_KEY_PRESETS, API_KEY_MAX_ACTIONS, ApiKeyParamsSchema, } from "./api-key-api.schema.js";
|
|
57
|
+
export { WhoamiResponseSchema } from "./whoami-api.schema.js";
|
|
58
|
+
export { AUDIT_IP_MAX, AUDIT_METHOD_MAX, AUDIT_PERIOD_PATTERN, AUDIT_REQUEST_ID_MAX, AUDIT_RETENTION_MAX_MONTHS, AUDIT_SUMMARY_MAX_BYTES, AUDIT_TEXT_MAX, AuditActorKindSchema, AuditEntrySchema, AuditExportQuerySchema, AuditListQuerySchema, AuditListResponseSchema, AuditOutcomeSchema, AuditPruneBusySchema, AuditPruneResponseSchema, AuditRetentionReasonSchema, AuditRetentionResponseSchema, AuditRetentionSchema, AuditSummaryValueSchema, } from "./audit-api.schema.js";
|
|
52
59
|
export { ThemeListItemSchema, ThemeListResponseSchema } from "./theme-api.schema.js";
|
|
53
|
-
export { ContentTrashBodySchema, ContentTrashConfirmationSchema, ContentTrashResultSchema, ContentRestoreResultSchema, } from "./content-trash-api.schema.js";
|
|
60
|
+
export { ContentTrashBodySchema, ContentTrashConfirmationSchema, ContentTrashResultSchema, ContentRestoreResultSchema, ContentRestoreRequestSchema, } from "./content-trash-api.schema.js";
|
|
54
61
|
export { ContentTrashListQuerySchema, TrashedSubtreeSchema, ContentTrashListResponseSchema, ContentRestoreBlockedSchema, ContentRestoreConflictSchema, ContentRestoreLimitSchema, ContentRestoreNameTakenSchema, ContentRestoreOrphanSchema, ContentRestorePathOccupiedSchema, } from "./content-trash.schema.js";
|
|
55
62
|
export { TextStyleEntrySchema, TextStylesResponseSchema, BlockParamTypeSchema, BlockParamSchema, BlockListingSchema, BlockListResponseSchema, RenderBlockRequestSchema, RenderBlockResponseSchema, } from "./render-editing.js";
|
|
63
|
+
export { PLUGIN_LABEL_MAX, PluginLabelSchema, PluginLabelStringSchema, SlotLabelSchema, resolveLabel } from "./plugin-labels.js";
|
|
56
64
|
export { PluginActionDeclarationSchema, PluginRoleOfferSchema, OfferedRoleParamsSchema } from "./plugin-actions.schema.js";
|
|
57
65
|
export { ACTION_GATED_CONTRIBUTION_KEYS, OFFERABLE_BUILT_IN_ACTIONS, checkActionDeclarations } from "./plugin-manifest-actions.js";
|
|
58
|
-
export { API_ROUTE_METHODS, API_ROUTE_PATH_MAX, API_ROUTE_RESPONSE_STATUSES_MAX, API_ROUTES_MAX, isApiRouteResponseStatus, apiRoutePathProblem, checkApiRouteActions, checkApiRouteDeclarations } from "./plugin-manifest-api-routes.js";
|
|
66
|
+
export { API_ROUTE_METHODS, API_ROUTE_PATH_MAX, API_ROUTE_RESPONSE_STATUSES_MAX, API_ROUTES_MAX, isApiRouteResponseStatus, apiRoutePathProblem, apiRoutePathParams, checkApiRouteActions, checkApiRouteDeclarations, checkApiRouteTiers, isApiRouteMethod } from "./plugin-manifest-api-routes.js";
|
|
59
67
|
export { PLUGIN_DOC_ROLES, PluginDocsPageSchema, MAX_DOC_PAGES, MAX_DOC_PAGE_BYTES, RESERVED_DOC_SLUGS, docSlug, effectiveDocsPages, checkDocsDeclaration, docsFactsFrom, requiredDocRoles, ReferenceLabelMapSchema, PluginReferenceSchema, emptyPluginReference, REFERENCE_PAGE_SLUGS, REFERENCE_PAGE_TABLES, isReferencePageSlug, referencePageHasContent, referencePageSlugs, } from "./plugin-docs.js";
|
|
60
68
|
export { HOSTILE_CHARS_MESSAGE, MAX_DOCS_TARGET_LENGTH, docHeadingId, docHeadingKey, docSearchEntry, extractDocHeadings, hasHostileChars, isRenderableExternalHref, resolveDocsPath, resolveDocsLink, } from "./plugin-docs-text.js";
|
|
61
69
|
export { PluginDocsPageRefSchema, PluginDocsIndexItemSchema, PluginDocsIndexResponseSchema, PluginDocsPageParamsSchema, PluginDocsPluginParamsSchema, PluginDocsPageResponseSchema, PluginDocsReferenceResponseSchema, PluginReferenceSourceSchema, PluginDocsSearchItemSchema, PluginDocsSearchIndexResponseSchema, MARKETPLACE_DOCS_SEARCH_MAX_QUERY, MARKETPLACE_DOCS_SEARCH_MAX_RESULTS, MarketplaceDocsSearchQuerySchema, MarketplaceDocsSearchResultSchema, MarketplaceDocsSearchResponseSchema, } from "./plugin-docs-api.schema.js";
|
|
62
70
|
export { INSTALL_CONSENT_IDS, INSTALL_DESCRIPTION_MAX_LENGTH, INSTALL_LABEL_KEY_MAX_LENGTH, INSTALL_LABEL_MAX_LANGUAGES, INSTALL_LABEL_MAX_LENGTH, INSTALL_MAX_CHOICES_PER_OPTION, INSTALL_MAX_OPTION_ANSWERS, INSTALL_MAX_OPTIONS_PER_STEP, INSTALL_MAX_ROLE_ANSWERS, INSTALL_MAX_STEPS, INSTALL_OPTION_KINDS, InstallAnswerValueSchema, InstallAnswersManifestSchema, InstallAnswersSchema, InstallDescriptionSchema, InstallIdSchema, InstallInterfaceSchema, InstallInterfaceWireSchema, InstallLabelSchema, InstallOptionSchema, InstallStepSchema, PluginInstallDeclarationSchema, ResolvedInstallAnswersSchema, checkInstallDeclaration, installInterfaceFor, installOptionNeedsAnswer, parseInstallAnswersManifest, resolveInstallAnswers, resolveUpdateAnswers, stepsNotCoveredBy, } from "./plugin-install.js";
|
|
63
|
-
export { SAMPLE_CONTENT_MEDIA_FILE_PATTERN, SampleContentFileSchema, parseSampleContentFile } from "./sample-content.schema.js";
|
|
71
|
+
export { SAMPLE_CONTENT_MAX_MEDIA, SAMPLE_CONTENT_MAX_NODES, SAMPLE_CONTENT_MEDIA_FILE_PATTERN, SampleContentFileSchema, parseSampleContentFile, } from "./sample-content.schema.js";
|
|
64
72
|
export { INSTALL_RECORD_SUMMARY_TITLES, INSTALL_ROLE_OUTCOMES, InstallAnswersRefusedSchema, InstallRoleOutcomeSchema, PluginInstallCreatedSchema, PluginInstallRecordSchema, PluginInstallRecordSummarySchema, emptyInstallCreated, readInstallRecord, } from "./plugin-install-record.schema.js";
|
|
73
|
+
export { listIssues } from "./issue-list.js";
|
|
74
|
+
export { ASSET_PATH_MAX, FILE_NAME_MAX, PACKAGE_PATH_MAX, MAX_TEMPLATE_PAYLOAD_ENTRIES, PluginAssetPathSchema, PluginTemplateAliasSchema, PluginTemplateEntrySchema, PluginTemplateFileSchema, PluginTemplatePayloadSchema, REGISTERED_ASSET_TEXT_EXTENSIONS, RESERVED_ASSET_ROOTS, TEMPLATE_ALIAS_MAX, TEMPLATE_FILE_MAX, checkTemplateAndAssetDeclarations, hasRegisteredAssetTextExtension, } from "./plugin-template-payload.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
// S314 (D4, W7): what an update says about the templates and assets it did
|
|
3
|
+
// not apply as shipped, or removed: one sentence per entry. Capped so a
|
|
4
|
+
// package cannot flood an answer; the server log keeps the full list, and the
|
|
5
|
+
// server caps what it answers with these same two numbers.
|
|
6
|
+
export const INSTALL_WARNINGS_MAX = 100;
|
|
7
|
+
export const INSTALL_WARNING_MAX_LENGTH = 500;
|
|
8
|
+
export const InstallWarningsSchema = z.array(z.string().max(INSTALL_WARNING_MAX_LENGTH)).max(INSTALL_WARNINGS_MAX);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** `path: message` joined by "; ", cut at `limit` with a count of the rest. */
|
|
2
|
+
export function listIssues(issues, limit = 5) {
|
|
3
|
+
const shown = issues.slice(0, limit).map((issue) => `${issue.path.map(String).join(".")}: ${issue.message}`);
|
|
4
|
+
const more = issues.length - shown.length;
|
|
5
|
+
return more > 0 ? `${shown.join("; ")} (and ${more} more)` : shown.join("; ");
|
|
6
|
+
}
|