Commit 3ade948
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 883252e commit 3ade948
1 file changed
Lines changed: 23 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5187 | 5187 | | |
5188 | 5188 | | |
5189 | 5189 | | |
| 5190 | + | |
| 5191 | + | |
| 5192 | + | |
| 5193 | + | |
| 5194 | + | |
| 5195 | + | |
| 5196 | + | |
| 5197 | + | |
| 5198 | + | |
| 5199 | + | |
| 5200 | + | |
| 5201 | + | |
| 5202 | + | |
| 5203 | + | |
| 5204 | + | |
5190 | 5205 | | |
5191 | 5206 | | |
5192 | 5207 | | |
| |||
6279 | 6294 | | |
6280 | 6295 | | |
6281 | 6296 | | |
6282 | | - | |
| 6297 | + | |
| 6298 | + | |
| 6299 | + | |
| 6300 | + | |
6283 | 6301 | | |
6284 | 6302 | | |
6285 | 6303 | | |
| |||
6288 | 6306 | | |
6289 | 6307 | | |
6290 | 6308 | | |
| 6309 | + | |
6291 | 6310 | | |
6292 | 6311 | | |
6293 | 6312 | | |
6294 | 6313 | | |
6295 | 6314 | | |
| 6315 | + | |
| 6316 | + | |
| 6317 | + | |
6296 | 6318 | | |
6297 | 6319 | | |
6298 | 6320 | | |
| |||
0 commit comments