Add ContributorCountResponseDto and expose contributorCounts

on AlbumResponseDto in OpenAPI spec. Regenerate TypeScript SDK
and mobile OpenAPI clients to include new types.

No breaking changes; fields are additive.
This commit is contained in:
Chaoscontrol 2025-10-02 17:50:31 +01:00 committed by Chaoscontrol
parent 5b333fc03e
commit bd87d2bd08
7 changed files with 145 additions and 1 deletions

View file

@ -10096,6 +10096,12 @@
},
"type": "array"
},
"contributorCounts": {
"items": {
"$ref": "#/components/schemas/ContributorCountResponseDto"
},
"type": "array"
},
"createdAt": {
"format": "date-time",
"type": "string"
@ -11471,6 +11477,21 @@
],
"type": "string"
},
"ContributorCountResponseDto": {
"properties": {
"assetCount": {
"type": "integer"
},
"userId": {
"type": "string"
}
},
"required": [
"assetCount",
"userId"
],
"type": "object"
},
"CreateAlbumDto": {
"properties": {
"albumName": {

View file

@ -356,12 +356,17 @@ export type AssetResponseDto = {
updatedAt: string;
visibility: AssetVisibility;
};
export type ContributorCountResponseDto = {
assetCount: number;
userId: string;
};
export type AlbumResponseDto = {
albumName: string;
albumThumbnailAssetId: string | null;
albumUsers: AlbumUserResponseDto[];
assetCount: number;
assets: AssetResponseDto[];
contributorCounts?: ContributorCountResponseDto[];
createdAt: string;
description: string;
endDate?: string;