openapi battle

This commit is contained in:
Min Idzelis
2025-05-03 02:43:06 +00:00
parent 6e8993c6eb
commit bf0be6a655
13 changed files with 182 additions and 316 deletions

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env bash
OPENAPI_GENERATOR_VERSION=v7.8.0
OPENAPI_GENERATOR_VERSION=v7.12.0
# usage: ./bin/generate-open-api.sh

View File

@@ -13571,14 +13571,7 @@
"duration": {
"default": [],
"items": {
"oneOf": [
{
"type": "string"
},
{
"type": "null"
}
]
"type": "string"
},
"type": "array"
},
@@ -13627,14 +13620,7 @@
"livePhotoVideoId": {
"default": [],
"items": {
"oneOf": [
{
"type": "string"
},
{
"type": "null"
}
]
"type": "string"
},
"type": "array"
},
@@ -13656,14 +13642,7 @@
"projectionType": {
"default": [],
"items": {
"oneOf": [
{
"type": "string"
},
{
"type": "null"
}
]
"type": "string"
},
"type": "array"
},
@@ -13677,28 +13656,14 @@
"stack": {
"default": [],
"items": {
"oneOf": [
{
"type": "TimelineStackResponseDto"
},
{
"type": "null"
}
]
"$ref": "#/components/schemas/TimelineStackResponseDto"
},
"type": "array"
},
"thumbhash": {
"default": [],
"items": {
"oneOf": [
{
"type": "string"
},
{
"type": "null"
}
]
"type": "string"
},
"type": "array"
}
@@ -13769,6 +13734,25 @@
],
"type": "object"
},
"TimelineStackResponseDto": {
"properties": {
"assetCount": {
"type": "number"
},
"id": {
"type": "string"
},
"primaryAssetId": {
"type": "string"
}
},
"required": [
"assetCount",
"id",
"primaryAssetId"
],
"type": "object"
},
"ToneMapping": {
"enum": [
"hable",

View File

@@ -1388,22 +1388,27 @@ export type TimelineAssetDescriptionDto = {
city: string | null;
country: string | null;
};
export type TimelineStackResponseDto = {
assetCount: number;
id: string;
primaryAssetId: string;
};
export type TimeBucketAssetResponseDto = {
description: TimelineAssetDescriptionDto[];
duration: (string | null)[];
duration: string[];
id: string[];
isArchived: number[];
isFavorite: number[];
isImage: number[];
isTrashed: number[];
isVideo: number[];
livePhotoVideoId: (string | null)[];
livePhotoVideoId: string[];
localDateTime: string[];
ownerId: string[];
projectionType: (string | null)[];
projectionType: string[];
ratio: number[];
stack: (any | null)[];
thumbhash: (string | null)[];
stack: TimelineStackResponseDto[];
thumbhash: string[];
};
export type TimeBucketResponseDto = {
bucketAssets: TimeBucketAssetResponseDto;