@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.
Files changed (65) hide show
  1. package/README.md +2 -2
  2. package/dist/admin/capability-matrix.d.mts +2 -1
  3. package/dist/admin/capability-matrix.mjs +291 -340
  4. package/dist/admin/capability-toggles.mjs +24 -31
  5. package/dist/admin/confirmations-panel.mjs +61 -71
  6. package/dist/admin/confirmations.mjs +2 -1
  7. package/dist/admin/endpoint-url.mjs +7 -0
  8. package/dist/admin/setup-guide.mjs +2 -1
  9. package/dist/api-keys/capability-matrix.d.mts +4 -7
  10. package/dist/api-keys/capability-matrix.mjs +12 -51
  11. package/dist/api-keys/collection.mjs +10 -17
  12. package/dist/api-keys/confirmation-view.mjs +2 -1
  13. package/dist/api-keys/fields.mjs +53 -69
  14. package/dist/auth/resolve.mjs +29 -10
  15. package/dist/capabilities.d.mts +2 -0
  16. package/dist/capabilities.mjs +62 -19
  17. package/dist/endpoint/confirmations.mjs +14 -14
  18. package/dist/endpoint/handler.mjs +6 -22
  19. package/dist/endpoint/http.mjs +27 -0
  20. package/dist/endpoint/upload.mjs +11 -43
  21. package/dist/grants/confirmation.mjs +11 -42
  22. package/dist/grants/grant.mjs +58 -40
  23. package/dist/guards.mjs +8 -1
  24. package/dist/index.d.mts +2 -2
  25. package/dist/index.mjs +1 -1
  26. package/dist/options.mjs +34 -54
  27. package/dist/plugin.mjs +2 -1
  28. package/dist/request.mjs +5 -1
  29. package/dist/result.mjs +11 -1
  30. package/dist/schema/admin-hidden.mjs +4 -4
  31. package/dist/schema/describe.mjs +12 -18
  32. package/dist/schema/index.mjs +5 -6
  33. package/dist/schema/lexical-pointer.mjs +8 -8
  34. package/dist/schema/lexical.mjs +15 -13
  35. package/dist/schema/outline.mjs +4 -5
  36. package/dist/schema/path.mjs +4 -1
  37. package/dist/schema/pointer.mjs +11 -17
  38. package/dist/schema/shape.mjs +38 -50
  39. package/dist/schema/walk.mjs +57 -18
  40. package/dist/tools/create-document.mjs +16 -44
  41. package/dist/tools/delete-document.mjs +14 -17
  42. package/dist/tools/describe-schema.mjs +7 -5
  43. package/dist/tools/document.mjs +130 -44
  44. package/dist/tools/duplicate-document.mjs +11 -10
  45. package/dist/tools/find-documents.mjs +15 -20
  46. package/dist/tools/find-versions.mjs +10 -14
  47. package/dist/tools/get-document.mjs +8 -12
  48. package/dist/tools/links.mjs +2 -1
  49. package/dist/tools/list-capabilities.mjs +2 -1
  50. package/dist/tools/patch-document.mjs +12 -44
  51. package/dist/tools/publish-document.mjs +9 -27
  52. package/dist/tools/query-paths.mjs +1 -1
  53. package/dist/tools/run-confirmed.mjs +38 -50
  54. package/dist/tools/shared.mjs +43 -41
  55. package/dist/tools/validate-document.mjs +4 -6
  56. package/dist/tools/versions.mjs +11 -6
  57. package/dist/types.d.mts +12 -26
  58. package/dist/upload/file.mjs +10 -18
  59. package/dist/write/draft-guard.mjs +20 -20
  60. package/dist/write/patch.mjs +4 -4
  61. package/dist/write/publish-intent.mjs +22 -28
  62. package/dist/write/row-ids.mjs +3 -1
  63. package/dist/write/write-data.mjs +18 -31
  64. package/package.json +5 -5
  65. 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 control (Off, Approval, Trash). Each access level
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 Delete control is set to Trash: there the document moves to trash at once. See
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
- * segmented Access and Delete controls, and an "All" row that sets every row.
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
  */