mirror of
https://github.com/immich-app/immich.git
synced 2026-03-22 20:49:50 +03:00
Merge remote-tracking branch 'origin/main' into feat/integrity-checks-izzy
This commit is contained in:
@@ -5342,7 +5342,7 @@
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/AssetIdsDto"
|
||||
"$ref": "#/components/schemas/DownloadArchiveDto"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -11529,6 +11529,78 @@
|
||||
"x-immich-state": "Stable"
|
||||
}
|
||||
},
|
||||
"/shared-links/login": {
|
||||
"post": {
|
||||
"description": "Login to a password protected shared link",
|
||||
"operationId": "sharedLinkLogin",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "key",
|
||||
"required": false,
|
||||
"in": "query",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "slug",
|
||||
"required": false,
|
||||
"in": "query",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/SharedLinkLoginDto"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
"responses": {
|
||||
"201": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/SharedLinkResponseDto"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": ""
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"bearer": []
|
||||
},
|
||||
{
|
||||
"cookie": []
|
||||
},
|
||||
{
|
||||
"api_key": []
|
||||
}
|
||||
],
|
||||
"summary": "Shared link login",
|
||||
"tags": [
|
||||
"Shared links"
|
||||
],
|
||||
"x-immich-history": [
|
||||
{
|
||||
"version": "v2.6.0",
|
||||
"state": "Added"
|
||||
},
|
||||
{
|
||||
"version": "v2.6.0",
|
||||
"state": "Beta"
|
||||
}
|
||||
],
|
||||
"x-immich-state": "Beta"
|
||||
}
|
||||
},
|
||||
"/shared-links/me": {
|
||||
"get": {
|
||||
"description": "Retrieve the current shared link associated with authentication method.",
|
||||
@@ -16339,7 +16411,15 @@
|
||||
{
|
||||
"$ref": "#/components/schemas/AssetEditActionMirror"
|
||||
}
|
||||
]
|
||||
],
|
||||
"discriminator": {
|
||||
"mapping": {
|
||||
"crop": "#/components/schemas/AssetEditActionCrop",
|
||||
"mirror": "#/components/schemas/AssetEditActionMirror",
|
||||
"rotate": "#/components/schemas/AssetEditActionRotate"
|
||||
},
|
||||
"propertyName": "action"
|
||||
}
|
||||
},
|
||||
"minItems": 1,
|
||||
"type": "array"
|
||||
@@ -16410,7 +16490,15 @@
|
||||
{
|
||||
"$ref": "#/components/schemas/AssetEditActionMirror"
|
||||
}
|
||||
]
|
||||
],
|
||||
"discriminator": {
|
||||
"mapping": {
|
||||
"crop": "#/components/schemas/AssetEditActionCrop",
|
||||
"mirror": "#/components/schemas/AssetEditActionMirror",
|
||||
"rotate": "#/components/schemas/AssetEditActionRotate"
|
||||
},
|
||||
"propertyName": "action"
|
||||
}
|
||||
},
|
||||
"minItems": 1,
|
||||
"type": "array"
|
||||
@@ -17884,6 +17972,26 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"DownloadArchiveDto": {
|
||||
"properties": {
|
||||
"assetIds": {
|
||||
"description": "Asset IDs",
|
||||
"items": {
|
||||
"format": "uuid",
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"edited": {
|
||||
"description": "Download edited asset if available",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"assetIds"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"DownloadArchiveInfo": {
|
||||
"properties": {
|
||||
"assetIds": {
|
||||
@@ -22071,6 +22179,19 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"SharedLinkLoginDto": {
|
||||
"properties": {
|
||||
"password": {
|
||||
"description": "Shared link password",
|
||||
"example": "password",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"password"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"SharedLinkResponseDto": {
|
||||
"properties": {
|
||||
"album": {
|
||||
@@ -22129,9 +22250,25 @@
|
||||
"type": "string"
|
||||
},
|
||||
"token": {
|
||||
"deprecated": true,
|
||||
"description": "Access token",
|
||||
"nullable": true,
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"x-immich-history": [
|
||||
{
|
||||
"version": "v1",
|
||||
"state": "Added"
|
||||
},
|
||||
{
|
||||
"version": "v2",
|
||||
"state": "Stable"
|
||||
},
|
||||
{
|
||||
"version": "v2.6.0",
|
||||
"state": "Deprecated"
|
||||
}
|
||||
],
|
||||
"x-immich-state": "Deprecated"
|
||||
},
|
||||
"type": {
|
||||
"allOf": [
|
||||
|
||||
@@ -1 +1 @@
|
||||
24.13.0
|
||||
24.13.1
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
"@oazapfts/runtime": "^1.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^24.10.11",
|
||||
"@types/node": "^24.10.13",
|
||||
"typescript": "^5.3.3"
|
||||
},
|
||||
"repository": {
|
||||
@@ -28,6 +28,6 @@
|
||||
"directory": "open-api/typescript-sdk"
|
||||
},
|
||||
"volta": {
|
||||
"node": "24.13.0"
|
||||
"node": "24.13.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1146,9 +1146,11 @@ export type ValidateAccessTokenResponseDto = {
|
||||
/** Authentication status */
|
||||
authStatus: boolean;
|
||||
};
|
||||
export type AssetIdsDto = {
|
||||
export type DownloadArchiveDto = {
|
||||
/** Asset IDs */
|
||||
assetIds: string[];
|
||||
/** Download edited asset if available */
|
||||
edited?: boolean;
|
||||
};
|
||||
export type DownloadInfoDto = {
|
||||
/** Album ID to download */
|
||||
@@ -2302,6 +2304,10 @@ export type SharedLinkCreateDto = {
|
||||
/** Shared link type */
|
||||
"type": SharedLinkType;
|
||||
};
|
||||
export type SharedLinkLoginDto = {
|
||||
/** Shared link password */
|
||||
password: string;
|
||||
};
|
||||
export type SharedLinkEditDto = {
|
||||
/** Allow downloads */
|
||||
allowDownload?: boolean;
|
||||
@@ -2320,6 +2326,10 @@ export type SharedLinkEditDto = {
|
||||
/** Custom URL slug */
|
||||
slug?: string | null;
|
||||
};
|
||||
export type AssetIdsDto = {
|
||||
/** Asset IDs */
|
||||
assetIds: string[];
|
||||
};
|
||||
export type AssetIdsResponseDto = {
|
||||
/** Asset ID */
|
||||
assetId: string;
|
||||
@@ -4528,10 +4538,10 @@ export function validateAccessToken(opts?: Oazapfts.RequestOpts) {
|
||||
/**
|
||||
* Download asset archive
|
||||
*/
|
||||
export function downloadArchive({ key, slug, assetIdsDto }: {
|
||||
export function downloadArchive({ key, slug, downloadArchiveDto }: {
|
||||
key?: string;
|
||||
slug?: string;
|
||||
assetIdsDto: AssetIdsDto;
|
||||
downloadArchiveDto: DownloadArchiveDto;
|
||||
}, opts?: Oazapfts.RequestOpts) {
|
||||
return oazapfts.ok(oazapfts.fetchBlob<{
|
||||
status: 200;
|
||||
@@ -4542,7 +4552,7 @@ export function downloadArchive({ key, slug, assetIdsDto }: {
|
||||
}))}`, oazapfts.json({
|
||||
...opts,
|
||||
method: "POST",
|
||||
body: assetIdsDto
|
||||
body: downloadArchiveDto
|
||||
})));
|
||||
}
|
||||
/**
|
||||
@@ -5960,6 +5970,26 @@ export function createSharedLink({ sharedLinkCreateDto }: {
|
||||
body: sharedLinkCreateDto
|
||||
})));
|
||||
}
|
||||
/**
|
||||
* Shared link login
|
||||
*/
|
||||
export function sharedLinkLogin({ key, slug, sharedLinkLoginDto }: {
|
||||
key?: string;
|
||||
slug?: string;
|
||||
sharedLinkLoginDto: SharedLinkLoginDto;
|
||||
}, opts?: Oazapfts.RequestOpts) {
|
||||
return oazapfts.ok(oazapfts.fetchJson<{
|
||||
status: 201;
|
||||
data: SharedLinkResponseDto;
|
||||
}>(`/shared-links/login${QS.query(QS.explode({
|
||||
key,
|
||||
slug
|
||||
}))}`, oazapfts.json({
|
||||
...opts,
|
||||
method: "POST",
|
||||
body: sharedLinkLoginDto
|
||||
})));
|
||||
}
|
||||
/**
|
||||
* Retrieve current shared link
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user