1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2024-12-29 15:11:58 +00:00

chore: regen open-api

This commit is contained in:
Eli Gao 2024-12-25 04:52:57 +08:00
parent fe65c44cbc
commit 9426b4c1dd
6 changed files with 244 additions and 51 deletions

BIN
mobile/openapi/README.md generated

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -1424,7 +1424,6 @@
}, },
"/assets/bulk-upload-check": { "/assets/bulk-upload-check": {
"post": { "post": {
"description": "Checks if assets exist by checksums",
"operationId": "checkBulkUpload", "operationId": "checkBulkUpload",
"parameters": [], "parameters": [],
"requestBody": { "requestBody": {
@ -1460,6 +1459,7 @@
"api_key": [] "api_key": []
} }
], ],
"summary": "Checks if assets exist by checksums",
"tags": [ "tags": [
"Assets" "Assets"
] ]
@ -1467,7 +1467,6 @@
}, },
"/assets/device/{deviceId}": { "/assets/device/{deviceId}": {
"get": { "get": {
"description": "Get all asset of a device that are in the database, ID only.",
"operationId": "getAllUserAssetsByDeviceId", "operationId": "getAllUserAssetsByDeviceId",
"parameters": [ "parameters": [
{ {
@ -1505,6 +1504,7 @@
"api_key": [] "api_key": []
} }
], ],
"summary": "Get all asset of a device that are in the database, ID only.",
"tags": [ "tags": [
"Assets" "Assets"
] ]
@ -1512,7 +1512,6 @@
}, },
"/assets/exist": { "/assets/exist": {
"post": { "post": {
"description": "Checks if multiple assets exist on the server and returns all existing - used by background backup",
"operationId": "checkExistingAssets", "operationId": "checkExistingAssets",
"parameters": [], "parameters": [],
"requestBody": { "requestBody": {
@ -1548,6 +1547,7 @@
"api_key": [] "api_key": []
} }
], ],
"summary": "Checks if multiple assets exist on the server and returns all existing - used by background backup",
"tags": [ "tags": [
"Assets" "Assets"
] ]
@ -1903,7 +1903,6 @@
] ]
}, },
"put": { "put": {
"description": "Replace the asset with new file, without changing its id",
"operationId": "replaceAsset", "operationId": "replaceAsset",
"parameters": [ "parameters": [
{ {
@ -1957,6 +1956,7 @@
"api_key": [] "api_key": []
} }
], ],
"summary": "Replace the asset with new file, without changing its id",
"tags": [ "tags": [
"Assets" "Assets"
], ],
@ -7492,6 +7492,7 @@
"items": { "items": {
"$ref": "#/components/schemas/Permission" "$ref": "#/components/schemas/Permission"
}, },
"minItems": 1,
"type": "array" "type": "array"
} }
}, },
@ -7572,7 +7573,11 @@
"type": "string" "type": "string"
}, },
"type": { "type": {
"$ref": "#/components/schemas/ReactionType" "allOf": [
{
"$ref": "#/components/schemas/ReactionType"
}
]
} }
}, },
"required": [ "required": [
@ -7599,7 +7604,11 @@
"type": "string" "type": "string"
}, },
"type": { "type": {
"$ref": "#/components/schemas/ReactionType" "allOf": [
{
"$ref": "#/components/schemas/ReactionType"
}
]
}, },
"user": { "user": {
"$ref": "#/components/schemas/UserResponseDto" "$ref": "#/components/schemas/UserResponseDto"
@ -7631,6 +7640,7 @@
"items": { "items": {
"$ref": "#/components/schemas/AlbumUserAddDto" "$ref": "#/components/schemas/AlbumUserAddDto"
}, },
"minItems": 1,
"type": "array" "type": "array"
} }
}, },
@ -7699,7 +7709,11 @@
"type": "string" "type": "string"
}, },
"order": { "order": {
"$ref": "#/components/schemas/AssetOrder" "allOf": [
{
"$ref": "#/components/schemas/AssetOrder"
}
]
}, },
"owner": { "owner": {
"$ref": "#/components/schemas/UserResponseDto" "$ref": "#/components/schemas/UserResponseDto"
@ -7759,7 +7773,12 @@
"AlbumUserAddDto": { "AlbumUserAddDto": {
"properties": { "properties": {
"role": { "role": {
"$ref": "#/components/schemas/AlbumUserRole" "allOf": [
{
"$ref": "#/components/schemas/AlbumUserRole"
}
],
"default": "editor"
}, },
"userId": { "userId": {
"format": "uuid", "format": "uuid",
@ -7774,7 +7793,11 @@
"AlbumUserCreateDto": { "AlbumUserCreateDto": {
"properties": { "properties": {
"role": { "role": {
"$ref": "#/components/schemas/AlbumUserRole" "allOf": [
{
"$ref": "#/components/schemas/AlbumUserRole"
}
]
}, },
"userId": { "userId": {
"format": "uuid", "format": "uuid",
@ -7790,7 +7813,11 @@
"AlbumUserResponseDto": { "AlbumUserResponseDto": {
"properties": { "properties": {
"role": { "role": {
"$ref": "#/components/schemas/AlbumUserRole" "allOf": [
{
"$ref": "#/components/schemas/AlbumUserRole"
}
]
}, },
"user": { "user": {
"$ref": "#/components/schemas/UserResponseDto" "$ref": "#/components/schemas/UserResponseDto"
@ -8087,7 +8114,11 @@
"nullable": true "nullable": true
}, },
"sourceType": { "sourceType": {
"$ref": "#/components/schemas/SourceType" "allOf": [
{
"$ref": "#/components/schemas/SourceType"
}
]
} }
}, },
"required": [ "required": [
@ -8158,7 +8189,11 @@
"type": "integer" "type": "integer"
}, },
"sourceType": { "sourceType": {
"$ref": "#/components/schemas/SourceType" "allOf": [
{
"$ref": "#/components/schemas/SourceType"
}
]
} }
}, },
"required": [ "required": [
@ -8254,7 +8289,11 @@
"type": "array" "type": "array"
}, },
"name": { "name": {
"$ref": "#/components/schemas/AssetJobName" "allOf": [
{
"$ref": "#/components/schemas/AssetJobName"
}
]
} }
}, },
"required": [ "required": [
@ -8352,7 +8391,11 @@
"type": "string" "type": "string"
}, },
"status": { "status": {
"$ref": "#/components/schemas/AssetMediaStatus" "allOf": [
{
"$ref": "#/components/schemas/AssetMediaStatus"
}
]
} }
}, },
"required": [ "required": [
@ -8491,7 +8534,11 @@
"type": "string" "type": "string"
}, },
"type": { "type": {
"$ref": "#/components/schemas/AssetTypeEnum" "allOf": [
{
"$ref": "#/components/schemas/AssetTypeEnum"
}
]
}, },
"unassignedFaces": { "unassignedFaces": {
"items": { "items": {
@ -8604,7 +8651,11 @@
"AvatarResponse": { "AvatarResponse": {
"properties": { "properties": {
"color": { "color": {
"$ref": "#/components/schemas/UserAvatarColor" "allOf": [
{
"$ref": "#/components/schemas/UserAvatarColor"
}
]
} }
}, },
"required": [ "required": [
@ -8615,7 +8666,11 @@
"AvatarUpdate": { "AvatarUpdate": {
"properties": { "properties": {
"color": { "color": {
"$ref": "#/components/schemas/UserAvatarColor" "allOf": [
{
"$ref": "#/components/schemas/UserAvatarColor"
}
]
} }
}, },
"type": "object" "type": "object"
@ -8706,6 +8761,7 @@
"items": { "items": {
"type": "string" "type": "string"
}, },
"minItems": 1,
"type": "array" "type": "array"
}, },
"deviceId": { "deviceId": {
@ -8772,13 +8828,17 @@
"items": { "items": {
"type": "string" "type": "string"
}, },
"type": "array" "maxItems": 128,
"type": "array",
"uniqueItems": true
}, },
"importPaths": { "importPaths": {
"items": { "items": {
"type": "string" "type": "string"
}, },
"type": "array" "maxItems": 128,
"type": "array",
"uniqueItems": true
}, },
"name": { "name": {
"type": "string" "type": "string"
@ -9247,10 +9307,18 @@
"type": "string" "type": "string"
}, },
"entityType": { "entityType": {
"$ref": "#/components/schemas/PathEntityType" "allOf": [
{
"$ref": "#/components/schemas/PathEntityType"
}
]
}, },
"pathType": { "pathType": {
"$ref": "#/components/schemas/PathType" "allOf": [
{
"$ref": "#/components/schemas/PathType"
}
]
}, },
"pathValue": { "pathValue": {
"type": "string" "type": "string"
@ -9312,7 +9380,11 @@
"JobCommandDto": { "JobCommandDto": {
"properties": { "properties": {
"command": { "command": {
"$ref": "#/components/schemas/JobCommand" "allOf": [
{
"$ref": "#/components/schemas/JobCommand"
}
]
}, },
"force": { "force": {
"type": "boolean" "type": "boolean"
@ -9357,7 +9429,11 @@
"JobCreateDto": { "JobCreateDto": {
"properties": { "properties": {
"name": { "name": {
"$ref": "#/components/schemas/ManualJobName" "allOf": [
{
"$ref": "#/components/schemas/ManualJobName"
}
]
} }
}, },
"required": [ "required": [
@ -9545,6 +9621,7 @@
"properties": { "properties": {
"email": { "email": {
"example": "testuser@email.com", "example": "testuser@email.com",
"format": "email",
"type": "string" "type": "string"
}, },
"password": { "password": {
@ -9718,7 +9795,11 @@
"type": "string" "type": "string"
}, },
"type": { "type": {
"$ref": "#/components/schemas/MemoryType" "allOf": [
{
"$ref": "#/components/schemas/MemoryType"
}
]
} }
}, },
"required": [ "required": [
@ -9783,7 +9864,11 @@
"type": "string" "type": "string"
}, },
"type": { "type": {
"$ref": "#/components/schemas/MemoryType" "allOf": [
{
"$ref": "#/components/schemas/MemoryType"
}
]
}, },
"updatedAt": { "updatedAt": {
"format": "date-time", "format": "date-time",
@ -9912,7 +9997,11 @@
"type": "string" "type": "string"
}, },
"order": { "order": {
"$ref": "#/components/schemas/AssetOrder" "allOf": [
{
"$ref": "#/components/schemas/AssetOrder"
}
]
}, },
"originalFileName": { "originalFileName": {
"type": "string" "type": "string"
@ -9963,7 +10052,11 @@
"type": "string" "type": "string"
}, },
"type": { "type": {
"$ref": "#/components/schemas/AssetTypeEnum" "allOf": [
{
"$ref": "#/components/schemas/AssetTypeEnum"
}
]
}, },
"updatedAfter": { "updatedAfter": {
"format": "date-time", "format": "date-time",
@ -10047,7 +10140,11 @@
"PartnerResponseDto": { "PartnerResponseDto": {
"properties": { "properties": {
"avatarColor": { "avatarColor": {
"$ref": "#/components/schemas/UserAvatarColor" "allOf": [
{
"$ref": "#/components/schemas/UserAvatarColor"
}
]
}, },
"email": { "email": {
"type": "string" "type": "string"
@ -10566,7 +10663,11 @@
"type": "string" "type": "string"
}, },
"type": { "type": {
"$ref": "#/components/schemas/AssetTypeEnum" "allOf": [
{
"$ref": "#/components/schemas/AssetTypeEnum"
}
]
}, },
"updatedAfter": { "updatedAfter": {
"format": "date-time", "format": "date-time",
@ -11234,7 +11335,11 @@
"type": "boolean" "type": "boolean"
}, },
"type": { "type": {
"$ref": "#/components/schemas/SharedLinkType" "allOf": [
{
"$ref": "#/components/schemas/SharedLinkType"
}
]
} }
}, },
"required": [ "required": [
@ -11319,7 +11424,11 @@
"type": "string" "type": "string"
}, },
"type": { "type": {
"$ref": "#/components/schemas/SharedLinkType" "allOf": [
{
"$ref": "#/components/schemas/SharedLinkType"
}
]
}, },
"userId": { "userId": {
"type": "string" "type": "string"
@ -11352,6 +11461,7 @@
"properties": { "properties": {
"email": { "email": {
"example": "testuser@email.com", "example": "testuser@email.com",
"format": "email",
"type": "string" "type": "string"
}, },
"name": { "name": {
@ -11468,7 +11578,11 @@
"type": "string" "type": "string"
}, },
"type": { "type": {
"$ref": "#/components/schemas/AssetTypeEnum" "allOf": [
{
"$ref": "#/components/schemas/AssetTypeEnum"
}
]
}, },
"updatedAfter": { "updatedAfter": {
"format": "date-time", "format": "date-time",
@ -11509,6 +11623,7 @@
"format": "uuid", "format": "uuid",
"type": "string" "type": "string"
}, },
"minItems": 2,
"type": "array" "type": "array"
} }
}, },
@ -11649,7 +11764,11 @@
"SystemConfigFFmpegDto": { "SystemConfigFFmpegDto": {
"properties": { "properties": {
"accel": { "accel": {
"$ref": "#/components/schemas/TranscodeHWAccel" "allOf": [
{
"$ref": "#/components/schemas/TranscodeHWAccel"
}
]
}, },
"accelDecode": { "accelDecode": {
"type": "boolean" "type": "boolean"
@ -11678,7 +11797,11 @@
"type": "integer" "type": "integer"
}, },
"cqMode": { "cqMode": {
"$ref": "#/components/schemas/CQMode" "allOf": [
{
"$ref": "#/components/schemas/CQMode"
}
]
}, },
"crf": { "crf": {
"maximum": 51, "maximum": 51,
@ -11704,13 +11827,21 @@
"type": "integer" "type": "integer"
}, },
"targetAudioCodec": { "targetAudioCodec": {
"$ref": "#/components/schemas/AudioCodec" "allOf": [
{
"$ref": "#/components/schemas/AudioCodec"
}
]
}, },
"targetResolution": { "targetResolution": {
"type": "string" "type": "string"
}, },
"targetVideoCodec": { "targetVideoCodec": {
"$ref": "#/components/schemas/VideoCodec" "allOf": [
{
"$ref": "#/components/schemas/VideoCodec"
}
]
}, },
"temporalAQ": { "temporalAQ": {
"type": "boolean" "type": "boolean"
@ -11720,10 +11851,18 @@
"type": "integer" "type": "integer"
}, },
"tonemap": { "tonemap": {
"$ref": "#/components/schemas/ToneMapping" "allOf": [
{
"$ref": "#/components/schemas/ToneMapping"
}
]
}, },
"transcode": { "transcode": {
"$ref": "#/components/schemas/TranscodePolicy" "allOf": [
{
"$ref": "#/components/schemas/TranscodePolicy"
}
]
}, },
"twoPass": { "twoPass": {
"type": "boolean" "type": "boolean"
@ -11771,7 +11910,11 @@
"type": "boolean" "type": "boolean"
}, },
"format": { "format": {
"$ref": "#/components/schemas/ImageFormat" "allOf": [
{
"$ref": "#/components/schemas/ImageFormat"
}
]
}, },
"quality": { "quality": {
"maximum": 100, "maximum": 100,
@ -11789,7 +11932,11 @@
"SystemConfigGeneratedImageDto": { "SystemConfigGeneratedImageDto": {
"properties": { "properties": {
"format": { "format": {
"$ref": "#/components/schemas/ImageFormat" "allOf": [
{
"$ref": "#/components/schemas/ImageFormat"
}
]
}, },
"quality": { "quality": {
"maximum": 100, "maximum": 100,
@ -11811,7 +11958,11 @@
"SystemConfigImageDto": { "SystemConfigImageDto": {
"properties": { "properties": {
"colorspace": { "colorspace": {
"$ref": "#/components/schemas/Colorspace" "allOf": [
{
"$ref": "#/components/schemas/Colorspace"
}
]
}, },
"extractEmbedded": { "extractEmbedded": {
"type": "boolean" "type": "boolean"
@ -11933,7 +12084,11 @@
"type": "boolean" "type": "boolean"
}, },
"level": { "level": {
"$ref": "#/components/schemas/LogLevel" "allOf": [
{
"$ref": "#/components/schemas/LogLevel"
}
]
} }
}, },
"required": [ "required": [
@ -11962,6 +12117,7 @@
"type": "string" "type": "string"
}, },
"urls": { "urls": {
"format": "uri",
"items": { "items": {
"format": "uri", "format": "uri",
"type": "string" "type": "string"
@ -11982,12 +12138,14 @@
"SystemConfigMapDto": { "SystemConfigMapDto": {
"properties": { "properties": {
"darkStyle": { "darkStyle": {
"format": "uri",
"type": "string" "type": "string"
}, },
"enabled": { "enabled": {
"type": "boolean" "type": "boolean"
}, },
"lightStyle": { "lightStyle": {
"format": "uri",
"type": "string" "type": "string"
} }
}, },
@ -12062,6 +12220,7 @@
"type": "boolean" "type": "boolean"
}, },
"mobileRedirectUri": { "mobileRedirectUri": {
"format": "uri",
"type": "string" "type": "string"
}, },
"profileSigningAlgorithm": { "profileSigningAlgorithm": {
@ -12124,6 +12283,7 @@
"SystemConfigServerDto": { "SystemConfigServerDto": {
"properties": { "properties": {
"externalDomain": { "externalDomain": {
"format": "uri",
"type": "string" "type": "string"
}, },
"loginPageMessage": { "loginPageMessage": {
@ -12380,6 +12540,7 @@
"TagCreateDto": { "TagCreateDto": {
"properties": { "properties": {
"color": { "color": {
"pattern": "^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$",
"type": "string" "type": "string"
}, },
"name": { "name": {
@ -12435,6 +12596,7 @@
"properties": { "properties": {
"color": { "color": {
"nullable": true, "nullable": true,
"pattern": "^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$",
"type": "string" "type": "string"
} }
}, },
@ -12597,7 +12759,11 @@
"type": "boolean" "type": "boolean"
}, },
"order": { "order": {
"$ref": "#/components/schemas/AssetOrder" "allOf": [
{
"$ref": "#/components/schemas/AssetOrder"
}
]
} }
}, },
"type": "object" "type": "object"
@ -12605,7 +12771,11 @@
"UpdateAlbumUserDto": { "UpdateAlbumUserDto": {
"properties": { "properties": {
"role": { "role": {
"$ref": "#/components/schemas/AlbumUserRole" "allOf": [
{
"$ref": "#/components/schemas/AlbumUserRole"
}
]
} }
}, },
"required": [ "required": [
@ -12652,13 +12822,17 @@
"items": { "items": {
"type": "string" "type": "string"
}, },
"type": "array" "maxItems": 128,
"type": "array",
"uniqueItems": true
}, },
"importPaths": { "importPaths": {
"items": { "items": {
"type": "string" "type": "string"
}, },
"type": "array" "maxItems": 128,
"type": "array",
"uniqueItems": true
}, },
"name": { "name": {
"type": "string" "type": "string"
@ -12724,6 +12898,7 @@
"UserAdminCreateDto": { "UserAdminCreateDto": {
"properties": { "properties": {
"email": { "email": {
"format": "email",
"type": "string" "type": "string"
}, },
"name": { "name": {
@ -12767,7 +12942,11 @@
"UserAdminResponseDto": { "UserAdminResponseDto": {
"properties": { "properties": {
"avatarColor": { "avatarColor": {
"$ref": "#/components/schemas/UserAvatarColor" "allOf": [
{
"$ref": "#/components/schemas/UserAvatarColor"
}
]
}, },
"createdAt": { "createdAt": {
"format": "date-time", "format": "date-time",
@ -12822,7 +13001,11 @@
"type": "boolean" "type": "boolean"
}, },
"status": { "status": {
"$ref": "#/components/schemas/UserStatus" "allOf": [
{
"$ref": "#/components/schemas/UserStatus"
}
]
}, },
"storageLabel": { "storageLabel": {
"nullable": true, "nullable": true,
@ -12857,6 +13040,7 @@
"UserAdminUpdateDto": { "UserAdminUpdateDto": {
"properties": { "properties": {
"email": { "email": {
"format": "email",
"type": "string" "type": "string"
}, },
"name": { "name": {
@ -12994,7 +13178,11 @@
"UserResponseDto": { "UserResponseDto": {
"properties": { "properties": {
"avatarColor": { "avatarColor": {
"$ref": "#/components/schemas/UserAvatarColor" "allOf": [
{
"$ref": "#/components/schemas/UserAvatarColor"
}
]
}, },
"email": { "email": {
"type": "string" "type": "string"
@ -13034,6 +13222,7 @@
"UserUpdateMeDto": { "UserUpdateMeDto": {
"properties": { "properties": {
"email": { "email": {
"format": "email",
"type": "string" "type": "string"
}, },
"name": { "name": {
@ -13062,13 +13251,17 @@
"items": { "items": {
"type": "string" "type": "string"
}, },
"type": "array" "maxItems": 128,
"type": "array",
"uniqueItems": true
}, },
"importPaths": { "importPaths": {
"items": { "items": {
"type": "string" "type": "string"
}, },
"type": "array" "maxItems": 128,
"type": "array",
"uniqueItems": true
} }
}, },
"type": "object" "type": "object"