mirror of
https://github.com/immich-app/immich.git
synced 2025-12-27 17:24:58 +03:00
feat(web): granular api access controls (#18179)
* feat: api access control * feat(web): granular api access controls * fix test * fix e2e test * fix: lint * pr feedback * merge main + new design * finalize styling --------- Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
@@ -8294,10 +8294,18 @@
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"permissions": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/Permission"
|
||||
},
|
||||
"minItems": 1,
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"name"
|
||||
"name",
|
||||
"permissions"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
|
||||
@@ -408,6 +408,7 @@ export type ApiKeyCreateResponseDto = {
|
||||
};
|
||||
export type ApiKeyUpdateDto = {
|
||||
name: string;
|
||||
permissions: Permission[];
|
||||
};
|
||||
export type AssetBulkDeleteDto = {
|
||||
force?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user