mirror of
https://github.com/immich-app/immich.git
synced 2026-02-13 04:17:56 +03:00
add role to addUsersToAlbum endpoint
This commit is contained in:
@@ -7300,9 +7300,32 @@
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"AddUserDto": {
|
||||
"properties": {
|
||||
"role": {
|
||||
"$ref": "#/components/schemas/AlbumUserRole"
|
||||
},
|
||||
"userId": {
|
||||
"format": "uuid",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"userId"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"AddUsersDto": {
|
||||
"properties": {
|
||||
"albumUsers": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/AddUserDto"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"sharedUserIds": {
|
||||
"deprecated": true,
|
||||
"description": "Deprecated in favor of albumUsers",
|
||||
"items": {
|
||||
"format": "uuid",
|
||||
"type": "string"
|
||||
@@ -7311,7 +7334,7 @@
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"sharedUserIds"
|
||||
"albumUsers"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
|
||||
@@ -196,8 +196,14 @@ export type BulkIdResponseDto = {
|
||||
export type UpdateAlbumUserDto = {
|
||||
role: AlbumUserRole;
|
||||
};
|
||||
export type AddUserDto = {
|
||||
role?: AlbumUserRole;
|
||||
userId: string;
|
||||
};
|
||||
export type AddUsersDto = {
|
||||
sharedUserIds: string[];
|
||||
albumUsers: AddUserDto[];
|
||||
/** Deprecated in favor of albumUsers */
|
||||
sharedUserIds?: string[];
|
||||
};
|
||||
export type ApiKeyResponseDto = {
|
||||
createdAt: string;
|
||||
|
||||
Reference in New Issue
Block a user