@abinnovision/payloadcms-mcpx 2.0.0-beta.18 → 2.0.0-beta.20
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/README.md +2 -2
- package/dist/admin/capability-matrix.d.mts +2 -1
- package/dist/admin/capability-matrix.mjs +291 -340
- package/dist/admin/capability-toggles.mjs +24 -31
- package/dist/admin/confirmations-panel.mjs +61 -71
- package/dist/admin/confirmations.mjs +2 -1
- package/dist/admin/endpoint-url.mjs +7 -0
- package/dist/admin/setup-guide.mjs +2 -1
- package/dist/api-keys/capability-matrix.d.mts +4 -7
- package/dist/api-keys/capability-matrix.mjs +12 -51
- package/dist/api-keys/collection.mjs +10 -17
- package/dist/api-keys/confirmation-view.mjs +2 -1
- package/dist/api-keys/fields.mjs +53 -69
- package/dist/auth/resolve.mjs +29 -10
- package/dist/capabilities.d.mts +2 -0
- package/dist/capabilities.mjs +62 -19
- package/dist/endpoint/confirmations.mjs +14 -14
- package/dist/endpoint/handler.mjs +6 -22
- package/dist/endpoint/http.mjs +27 -0
- package/dist/endpoint/upload.mjs +11 -43
- package/dist/grants/confirmation.mjs +11 -42
- package/dist/grants/grant.mjs +58 -40
- package/dist/guards.mjs +8 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/options.mjs +34 -54
- package/dist/plugin.mjs +2 -1
- package/dist/request.mjs +5 -1
- package/dist/result.mjs +11 -1
- package/dist/schema/admin-hidden.mjs +4 -4
- package/dist/schema/describe.mjs +12 -18
- package/dist/schema/index.mjs +5 -6
- package/dist/schema/lexical-pointer.mjs +8 -8
- package/dist/schema/lexical.mjs +15 -13
- package/dist/schema/outline.mjs +4 -5
- package/dist/schema/path.mjs +4 -1
- package/dist/schema/pointer.mjs +11 -17
- package/dist/schema/shape.mjs +38 -50
- package/dist/schema/walk.mjs +57 -18
- package/dist/tools/create-document.mjs +16 -44
- package/dist/tools/delete-document.mjs +14 -17
- package/dist/tools/describe-schema.mjs +7 -5
- package/dist/tools/document.mjs +130 -44
- package/dist/tools/duplicate-document.mjs +11 -10
- package/dist/tools/find-documents.mjs +15 -20
- package/dist/tools/find-versions.mjs +10 -14
- package/dist/tools/get-document.mjs +8 -12
- package/dist/tools/links.mjs +2 -1
- package/dist/tools/list-capabilities.mjs +2 -1
- package/dist/tools/patch-document.mjs +12 -44
- package/dist/tools/publish-document.mjs +9 -27
- package/dist/tools/query-paths.mjs +1 -1
- package/dist/tools/run-confirmed.mjs +38 -50
- package/dist/tools/shared.mjs +43 -41
- package/dist/tools/validate-document.mjs +4 -6
- package/dist/tools/versions.mjs +11 -6
- package/dist/types.d.mts +12 -26
- package/dist/upload/file.mjs +10 -18
- package/dist/write/draft-guard.mjs +20 -20
- package/dist/write/patch.mjs +4 -4
- package/dist/write/publish-intent.mjs +22 -28
- package/dist/write/row-ids.mjs +3 -1
- package/dist/write/write-data.mjs +18 -31
- package/package.json +5 -5
- package/dist/builtin-tool-names.mjs +0 -19
package/README.md
CHANGED
|
@@ -145,7 +145,7 @@ each one is readable, writable and publishable. A key cannot go past it.
|
|
|
145
145
|
Each key carries one checkbox per exposed entity and operation (`read`, `write`, `publish`,
|
|
146
146
|
`delete`, `deleteUnattended`), and
|
|
147
147
|
one per custom tool. The admin panel shows them as a matrix with a row per entity, an Access
|
|
148
|
-
control (None, Read, Write, Publish) and a Delete
|
|
148
|
+
control (None, Read, Write, Publish) and a Delete checkbox with an approval shield. Each access level
|
|
149
149
|
includes the ones before it, and a level the config does not expose has no segment. `publish`
|
|
150
150
|
exists only where the config exposes `write` and `publish` on an entity with drafts, and counts
|
|
151
151
|
only when `write` is ticked as well. `write` counts only when `read` is ticked, so a key never
|
|
@@ -154,7 +154,7 @@ immediately.
|
|
|
154
154
|
`delete` exists only where the config sets `delete: true` on a collection, and counts only when
|
|
155
155
|
`read` is ticked as well. Setting access to None clears it. A delete runs only after the key's user
|
|
156
156
|
approved it on the key's edit view, except where the config sets `delete: "unattended"` and the
|
|
157
|
-
key's
|
|
157
|
+
key's approval shield is off: there the document moves to trash at once. See
|
|
158
158
|
[deleting](./docs/concepts.md#deleting).
|
|
159
159
|
|
|
160
160
|
`tools/list` follows the key. A tool the key cannot use is not listed, and each `collection` and
|
|
@@ -26,7 +26,8 @@ interface McpxCapabilityMatrixProps {
|
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
* What an API key may do, as one table per namespace: a row per entity with
|
|
29
|
-
*
|
|
29
|
+
* an Access control and a Delete checkbox with an approval shield, and an
|
|
30
|
+
* "All" row that sets every row.
|
|
30
31
|
* The nested checkbox fields back every control, so the stored document is
|
|
31
32
|
* unaffected.
|
|
32
33
|
*/
|