Commit 3a8caee
committed
feat: add @libre.graph.permissions.actions.allowedValues to driveItem
Adds an optional, `$select`-gated instance annotation on `driveItem` that
carries the list of libre.graph actions the caller is allowed to perform on
the item. Mirrors the annotation of the same name on the `/permissions`
endpoint so clients (e.g. a sharing dialog in a search/listing UI) can get
the effective-actions view inline without a separate round-trip per item.
- Adds `@libre.graph.permissions.actions.allowedValues` to the `driveItem`
schema, marked read-only and documented as only populated when requested.
- Adds a reusable `driveItemSelect` component parameter with a narrow enum,
following the same pattern as PR #38 (feat/download-url). When both land,
the enum values merge.
- Wires the new parameter to `GetDriveItem`.
Rationale discussed in #34.1 parent 7fb96d4 commit 3a8caee
1 file changed
Lines changed: 23 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4990 | 4990 | | |
4991 | 4991 | | |
4992 | 4992 | | |
| 4993 | + | |
| 4994 | + | |
| 4995 | + | |
| 4996 | + | |
| 4997 | + | |
| 4998 | + | |
| 4999 | + | |
| 5000 | + | |
| 5001 | + | |
| 5002 | + | |
| 5003 | + | |
| 5004 | + | |
| 5005 | + | |
| 5006 | + | |
| 5007 | + | |
4993 | 5008 | | |
4994 | 5009 | | |
4995 | 5010 | | |
| |||
5987 | 6002 | | |
5988 | 6003 | | |
5989 | 6004 | | |
5990 | | - | |
| 6005 | + | |
| 6006 | + | |
| 6007 | + | |
| 6008 | + | |
5991 | 6009 | | |
5992 | 6010 | | |
5993 | 6011 | | |
| |||
5996 | 6014 | | |
5997 | 6015 | | |
5998 | 6016 | | |
| 6017 | + | |
5999 | 6018 | | |
6000 | 6019 | | |
6001 | 6020 | | |
6002 | 6021 | | |
6003 | 6022 | | |
| 6023 | + | |
| 6024 | + | |
| 6025 | + | |
6004 | 6026 | | |
6005 | 6027 | | |
6006 | 6028 | | |
| |||
0 commit comments