generate openapi

This commit is contained in:
mgabor
2024-04-12 13:49:06 +02:00
parent 06028a283b
commit 44a086c2f9
12 changed files with 227 additions and 20 deletions

View File

@@ -7065,11 +7065,32 @@
],
"type": "object"
},
"AlbumPermissionResponseDto": {
"properties": {
"readonly": {
"type": "boolean"
},
"user": {
"$ref": "#/components/schemas/UserResponseDto"
}
},
"required": [
"readonly",
"user"
],
"type": "object"
},
"AlbumResponseDto": {
"properties": {
"albumName": {
"type": "string"
},
"albumPermissions": {
"items": {
"$ref": "#/components/schemas/AlbumPermissionResponseDto"
},
"type": "array"
},
"albumThumbnailAssetId": {
"nullable": true,
"type": "string"
@@ -7120,6 +7141,8 @@
"type": "boolean"
},
"sharedUsers": {
"deprecated": true,
"description": "Deprecated in favor of albumPermissions",
"items": {
"$ref": "#/components/schemas/UserResponseDto"
},
@@ -7136,6 +7159,7 @@
},
"required": [
"albumName",
"albumPermissions",
"albumThumbnailAssetId",
"assetCount",
"assets",

View File

@@ -38,6 +38,28 @@ export type ActivityCreateDto = {
export type ActivityStatisticsResponseDto = {
comments: number;
};
export type UserResponseDto = {
avatarColor: UserAvatarColor;
createdAt: string;
deletedAt: string | null;
email: string;
id: string;
isAdmin: boolean;
memoriesEnabled?: boolean;
name: string;
oauthId: string;
profileImagePath: string;
quotaSizeInBytes: number | null;
quotaUsageInBytes: number | null;
shouldChangePassword: boolean;
status: UserStatus;
storageLabel: string | null;
updatedAt: string;
};
export type AlbumPermissionResponseDto = {
"readonly": boolean;
user: UserResponseDto;
};
export type ExifResponseDto = {
city?: string | null;
country?: string | null;
@@ -61,24 +83,6 @@ export type ExifResponseDto = {
state?: string | null;
timeZone?: string | null;
};
export type UserResponseDto = {
avatarColor: UserAvatarColor;
createdAt: string;
deletedAt: string | null;
email: string;
id: string;
isAdmin: boolean;
memoriesEnabled?: boolean;
name: string;
oauthId: string;
profileImagePath: string;
quotaSizeInBytes: number | null;
quotaUsageInBytes: number | null;
shouldChangePassword: boolean;
status: UserStatus;
storageLabel: string | null;
updatedAt: string;
};
export type AssetFaceWithoutPersonResponseDto = {
boundingBoxX1: number;
boundingBoxX2: number;
@@ -143,6 +147,7 @@ export type AssetResponseDto = {
};
export type AlbumResponseDto = {
albumName: string;
albumPermissions: AlbumPermissionResponseDto[];
albumThumbnailAssetId: string | null;
assetCount: number;
assets: AssetResponseDto[];
@@ -157,6 +162,7 @@ export type AlbumResponseDto = {
owner: UserResponseDto;
ownerId: string;
shared: boolean;
/** Deprecated in favor of albumPermissions */
sharedUsers: UserResponseDto[];
startDate?: string;
updatedAt: string;